/* Letter themes (options.stationery), handwriting (options.font) and stickers — shared by index.html and create.html.
   Every theme is pure CSS (gradients + tiny inline SVG): 0 image files. An AI texture can be dropped in later with
   --st-image: url(assets/stationery/<id>.jpg) on the theme (see docs/ASSET_PROMPTS.md). */

/* ---------------- stationery ---------------- */
.card.st-kraft-twine{
  color:#3d2a18;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .22 0 0 0 0 .1 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"),
    var(--st-image, linear-gradient(160deg,#d7b48a,#c49a6c));
}
.card.st-kraft-twine::before{width:auto;left:-6px;right:-6px;height:5px;top:22px;transform:rotate(-1deg);border-radius:3px;
  background:repeating-linear-gradient(110deg,#f3e2c4 0 5px,#c9a878 5px 8px);box-shadow:0 1px 2px rgba(0,0,0,.25)}
.card.st-kraft-twine h2,.card.st-kraft-twine .sig{color:#7a2e1a}

.card.st-love-letter{
  color:#5a1a2a;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath d='M14 20c-5-3-3-8 0-6 3-2 5 3 0 6z' fill='%23ff9fb4' opacity='.45'/%3E%3Cpath d='M42 46c-4-2.5-2.5-6.5 0-5 2.5-1.5 4 2.5 0 5z' fill='%23ff9fb4' opacity='.35'/%3E%3C/svg%3E"),
    var(--st-image, linear-gradient(160deg,#fff0f3,#ffdbe4));
}
.card.st-love-letter::before{width:38px;height:38px;top:-16px;border-radius:50%;transform:translateX(-50%);
  background:radial-gradient(circle at 40% 35%,#f05a72,#b3142f 70%);box-shadow:0 3px 8px rgba(120,10,30,.35),inset 0 0 0 4px rgba(255,255,255,.15)}
.card.st-love-letter h2,.card.st-love-letter .sig{color:#c41b3b}

.card.st-snowy{
  color:#2e3d5c;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Cg stroke='%23b9cde6' stroke-width='1.6' stroke-linecap='round' fill='none'%3E%3Cpath d='M20 10v16M12 18h16M14 12l12 12M26 12 14 24'/%3E%3Cpath d='M68 58v12M62 64h12M64 60l8 8M72 60l-8 8'/%3E%3C/g%3E%3Ccircle cx='60' cy='22' r='2' fill='%23cfe0f2'/%3E%3Ccircle cx='28' cy='70' r='1.6' fill='%23cfe0f2'/%3E%3C/svg%3E"),
    var(--st-image, linear-gradient(160deg,#fbfdff,#e8f0f9));
}
.card.st-snowy::before{background:rgba(185,205,230,.8)}
.card.st-snowy h2,.card.st-snowy .sig{color:#b3142f}

.card.st-gold-edge{
  background:var(--st-image, linear-gradient(160deg,#fffaf0,#fbefdc));
  box-shadow:0 24px 60px rgba(0,0,0,.45),inset 0 0 0 3px #e8c36a,inset 0 0 0 7px #fffaf0,inset 0 0 0 8px #d9a93f;
}
.card.st-gold-edge::before{display:none}
.card.st-gold-edge h2,.card.st-gold-edge .sig{color:#9a6a12}

.card.st-polaroid{
  background:var(--st-image, #fdfcf9);border-radius:6px;padding-top:12px;
  box-shadow:0 24px 60px rgba(0,0,0,.45),0 0 0 1px rgba(0,0,0,.05);
}
.card.st-polaroid::before{background:rgba(255,236,170,.85)}
.card .photo{display:none}
.card.st-polaroid .photo{display:block;width:100%;aspect-ratio:4/3;margin-bottom:10px;border-radius:2px;object-fit:cover;object-position:50% 38%;
  background:radial-gradient(120% 90% at 50% 40%,#f6d9a8,#c98a52 60%,#7a4a2a);box-shadow:inset 0 0 0 1px rgba(0,0,0,.08)}

.card.st-notebook{
  color:#2b3550;
  background:
    linear-gradient(90deg,transparent 30px,rgba(232,51,79,.45) 30px 32px,transparent 32px),
    var(--st-image, repeating-linear-gradient(#fffef8 0 31px,#b9cde6 31px 32px));
  padding-left:44px;
}
.card.st-notebook::before{display:none}
.card.st-notebook::after{content:"";position:absolute;left:10px;top:18px;bottom:18px;width:10px;
  background:radial-gradient(circle,#e9dfcf 4px,transparent 4.5px) 0 0/10px 34px repeat-y}

.card.st-starry{
  color:#fff3dc;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cpath d='M20 14l2 5 5 .4-4 3.2 1.4 5-4.4-2.8-4.4 2.8 1.4-5-4-3.2 5-.4z' fill='%23f6cf6b'/%3E%3Cpath d='M86 74l1.4 3.4 3.6.3-2.8 2.3 1 3.5-3.2-2-3.2 2 1-3.5-2.8-2.3 3.6-.3z' fill='%23f6cf6b' opacity='.8'/%3E%3Ccircle cx='70' cy='26' r='1.6' fill='%23fff1c9'/%3E%3Ccircle cx='34' cy='92' r='1.3' fill='%23fff1c9'/%3E%3Ccircle cx='104' cy='108' r='1.8' fill='%23fff1c9' opacity='.7'/%3E%3C/svg%3E"),
    var(--st-image, linear-gradient(160deg,#3a2c5c,#241a3e));
}
.card.st-starry h2,.card.st-starry .sig{color:#f6cf6b}
.card.st-starry::before{background:rgba(246,207,107,.7)}
.card.st-starry #replay,.card.st-starry .ghost{color:#fff3dc;border-color:rgba(255,243,220,.4)}

.card.st-pastel-grid{
  color:#3d2a3a;
  background:
    linear-gradient(rgba(160,210,190,.35) 1px,transparent 1px) 0 0/22px 22px,
    linear-gradient(90deg,rgba(160,210,190,.35) 1px,transparent 1px) 0 0/22px 22px,
    var(--st-image, linear-gradient(160deg,#fff4f7,#fde8ef));
}
.card.st-pastel-grid::before{background:rgba(160,210,190,.8)}
.card.st-pastel-grid h2,.card.st-pastel-grid .sig{color:#d0457a}

/* ---------------- handwriting ---------------- */
.card.font-pacifico h2,.card.font-pacifico p,.card.font-pacifico .sig{font-family:Pacifico,cursive;font-weight:400}
.card.font-pacifico h2{font-size:28px}.card.font-pacifico p{font-size:18px;line-height:1.35}.card.font-pacifico .sig{font-size:20px}
.card.font-homemade-apple h2,.card.font-homemade-apple p,.card.font-homemade-apple .sig{font-family:'Homemade Apple',cursive;font-weight:400}
.card.font-homemade-apple h2{font-size:24px;line-height:1.5}.card.font-homemade-apple p{font-size:16px;line-height:1.75}.card.font-homemade-apple .sig{font-size:18px}
.card.font-patrick-hand h2,.card.font-patrick-hand p,.card.font-patrick-hand .sig{font-family:'Patrick Hand',cursive;font-weight:400}
.card.font-patrick-hand h2{font-size:32px}.card.font-patrick-hand p{font-size:22px;line-height:1.15}.card.font-patrick-hand .sig{font-size:24px}
.card.font-indie-flower h2,.card.font-indie-flower p,.card.font-indie-flower .sig{font-family:'Indie Flower',cursive;font-weight:400}
.card.font-indie-flower h2{font-size:30px}.card.font-indie-flower p{font-size:21px;line-height:1.2}.card.font-indie-flower .sig{font-size:24px}

/* ---------------- stickers ---------------- */
.card .stickers{position:absolute;inset:0;pointer-events:none;z-index:2}
.stk{position:absolute;width:44px;height:44px;margin:-22px 0 0 -22px;transform:rotate(var(--r,0deg));filter:drop-shadow(0 2px 3px rgba(60,20,10,.25))}
.stk svg{width:100%;height:100%;display:block}
.stk-bob{animation:stk-bob 2.4s ease-in-out infinite}
.stk-pulse{animation:stk-pulse 1.3s ease-in-out infinite}
.stk-spin{animation:stk-spin 6s linear infinite}
.stk-spin-slow{animation:stk-spin 10s linear infinite}
.stk-wiggle{animation:stk-wiggle 1.8s ease-in-out infinite}
@keyframes stk-bob{50%{transform:rotate(var(--r,0deg)) translateY(-5px)}}
@keyframes stk-pulse{50%{transform:rotate(var(--r,0deg)) scale(1.14)}}
@keyframes stk-spin{to{transform:rotate(calc(var(--r,0deg) + 360deg))}}
@keyframes stk-wiggle{25%{transform:rotate(calc(var(--r,0deg) - 9deg))}75%{transform:rotate(calc(var(--r,0deg) + 9deg))}}
@media (prefers-reduced-motion:reduce){.stk{animation:none!important}}
