/* Giftfall shared styles */
:root{
  --ink:#2A1410; --soft:#7A4A3E; --cream:#FFF4DC; --paper:#FFFDF6;
  --coral:#FF5A6A; --coral-d:#E63B4F; --gold:#FFC83D; --gold-d:#F0A80A;
  --plum:#8B3A9F; --mint:#26C98A; --line:#F3D7B0;
  --shadow:0 16px 36px rgba(226,59,79,.16);
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:"Nunito",ui-rounded,system-ui,sans-serif;background:
  radial-gradient(1200px 600px at 10% -10%,#FFE08A 0%,transparent 55%),
  radial-gradient(900px 500px at 110% 8%,#FFB3C0 0%,transparent 50%),
  radial-gradient(800px 500px at 50% 100%,#B8F0D8 0%,transparent 45%),
  var(--cream);color:var(--ink);-webkit-font-smoothing:antialiased;overflow-x:hidden;min-height:100vh}
.serif{font-family:"Fraunces",Georgia,serif}
a{color:var(--coral-d);font-weight:800}
.wrap{width:min(720px,calc(100% - 32px));margin:0 auto}
.top{display:flex;align-items:center;justify-content:space-between;padding:16px 0;position:relative;z-index:5;gap:10px}
.logo{display:flex;align-items:center;gap:8px;font-weight:800;font-size:22px;letter-spacing:-.03em;text-decoration:none;color:var(--ink)}
.logo svg{width:36px;height:36px}
.nav{display:flex;gap:8px;flex-wrap:wrap}
.btn{display:inline-flex;align-items:center;justify-content:center;border:none;border-radius:999px;padding:15px 24px;font:800 16px/1 "Nunito",system-ui,sans-serif;cursor:pointer;text-decoration:none;color:var(--ink);transition:transform .22s cubic-bezier(.34,1.56,.64,1),box-shadow .2s}
.btn:hover{transform:scale(1.05) rotate(-1deg)}
.btn:active{transform:scale(.95)}
.btn:disabled{opacity:.55;pointer-events:none}
.btn.primary{background:linear-gradient(180deg,#FF7A86,var(--coral-d));color:#fff;box-shadow:0 10px 22px rgba(230,59,79,.38)}
.btn.gold{background:linear-gradient(180deg,#FFE06A,var(--gold-d));color:#3a2600;box-shadow:0 10px 22px rgba(240,168,10,.35)}
.btn.ghost{background:#fff;box-shadow:0 6px 16px rgba(42,20,16,.08)}
h1{font-size:clamp(32px,7vw,52px);line-height:1.05;letter-spacing:-.03em;margin:8px 0 12px;text-align:center}
h1 .surprise{display:block;font-style:italic;color:var(--coral-d)}
.lede,.sub{text-align:center;color:var(--soft);font-weight:700;font-size:17px;line-height:1.45;margin-bottom:22px}
.card-box{background:var(--paper);border-radius:32px;padding:28px 22px;box-shadow:var(--shadow);margin:0 auto 48px}
label.f{display:block;font-weight:800;font-size:14px;margin:16px 0 7px}
input.t,select.t,textarea.t{width:100%;border:2px solid var(--line);background:#fff;border-radius:16px;padding:14px 15px;font:700 16px "Nunito",system-ui,sans-serif;color:var(--ink);outline:none}
textarea.t{min-height:110px;resize:vertical;line-height:1.4}
input.t:focus,select.t:focus,textarea.t:focus{border-color:var(--coral)}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{border:2px solid var(--line);background:#fff;border-radius:999px;padding:10px 16px;font:800 16px "Nunito",system-ui,sans-serif;cursor:pointer;color:var(--ink)}
.chip.sel{background:var(--ink);color:#fff;border-color:var(--ink)}
.designs{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.design{border:3px solid transparent;border-radius:18px;padding:0;cursor:pointer;background:none;aspect-ratio:3/4;overflow:hidden;box-shadow:0 8px 18px rgba(0,0,0,.08)}
.design.sel{border-color:var(--coral)}
.design svg,.design .art{width:100%;height:100%;display:block}
.note{font-size:13.5px;color:var(--soft);font-weight:700;line-height:1.45;margin-top:8px}
.consent{display:flex;gap:10px;align-items:flex-start;margin:18px 0 8px;font-weight:700;font-size:14.5px;line-height:1.4;color:var(--soft)}
.consent input{margin-top:4px;accent-color:var(--coral-d);width:18px;height:18px;flex:none}
.privacy{font-size:13px;color:var(--soft);line-height:1.45;margin:8px 0 18px}
.hp{position:absolute;left:-9999px;height:0;overflow:hidden}
.thanks{display:none;text-align:center;padding:8px}
.thanks h2{font-size:34px;margin-bottom:12px}
.thanks p{color:var(--soft);font-weight:700;font-size:17px;line-height:1.5;margin-bottom:10px;text-align:left}
.err{display:none;color:var(--coral-d);font-weight:800;margin:0 0 10px}
.banner{background:#FFF3D6;border:2px dashed var(--gold-d);border-radius:16px;padding:12px 14px;font-size:14px;line-height:1.45;color:#6b4b00;font-weight:700;margin:0 0 18px}
.pill{display:inline-block;background:#E9F7F2;color:#146B4E;border-radius:999px;padding:6px 12px;font-weight:800;font-size:13px;margin-bottom:10px}
footer{padding:10px 0 40px;text-align:center;color:var(--soft);font-weight:700;font-size:13.5px;line-height:1.55}
#fx{position:fixed;inset:0;pointer-events:none;z-index:80;width:100%;height:100%}
.note-bill{position:fixed;z-index:81;width:118px;height:58px;border-radius:7px;pointer-events:none;will-change:transform;box-shadow:0 6px 14px rgba(0,0,0,.16)}
@media (max-width:640px){.row2{grid-template-columns:1fr}}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .btn{animation:none!important;transition:none!important}
  .btn:hover{transform:none}
}

/* Card artwork & tone system */
.design{position:relative;display:flex;flex-direction:column;aspect-ratio:auto;border:none;overflow:visible;box-shadow:none;text-align:left}
.design-thumb{position:relative;width:100%;aspect-ratio:3/4;border-radius:18px;overflow:hidden;border:3px solid transparent;box-shadow:0 10px 24px rgba(42,20,16,.13);transition:transform .2s cubic-bezier(.34,1.56,.64,1),border-color .18s}
.design.sel .design-thumb{border-color:var(--coral-d);transform:translateY(-2px);box-shadow:0 14px 28px rgba(230,59,79,.24)}
.design-meta{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:7px 2px 2px}
.design-lab{font-weight:800;font-size:13.5px;color:var(--ink);line-height:1.2}
.design-tag{font-size:11px;font-weight:800;color:#146B4E;background:#E9F7F2;border-radius:999px;padding:2px 8px;flex:none}
.design-tag.xmas{background:#FCE8EA;color:#A61B2B}

.gf-card{position:relative;width:100%;height:100%;overflow:hidden;container-type:inline-size;user-select:none}
.gf-svg{position:absolute;inset:0;width:100%;height:100%;display:block}
.gf-inner{position:relative;z-index:2;width:100%;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;text-align:center;padding:12% 10% 13%}
.gf-has-photo .gf-inner{justify-content:space-between;padding:10% 9% 11%}
.gf-copy{width:100%}
.gf-title{font-family:"Fraunces",Georgia,serif;font-weight:800;font-size:9.2cqw;line-height:1.06;letter-spacing:-.02em;color:#fff;text-shadow:0 2px 10px rgba(0,0,0,.22)}
.gf-sub{margin-top:2.4cqw;font-family:"Nunito",system-ui,sans-serif;font-weight:700;font-size:4.4cqw;line-height:1.28;color:rgba(255,255,255,.88)}
.gf-name{margin-top:2.8cqw;font-family:"Fraunces",Georgia,serif;font-style:italic;font-weight:700;font-size:6.4cqw;line-height:1.15;color:#FCE38A}

/* Formal tone */
.gf-tone-formal .gf-title{font-weight:700;letter-spacing:-.01em;color:#F8E7A6;text-shadow:none}
.gf-tone-formal .gf-sub{font-family:"Fraunces",Georgia,serif;font-style:italic;font-weight:600;color:rgba(250,242,222,.82)}
.gf-tone-formal .gf-name{color:#FFFDF6;font-size:6.6cqw}
.gf-d-formal-gold .gf-title{color:#231812}
.gf-d-formal-gold .gf-sub{color:#6E5120}
.gf-d-formal-gold .gf-name{color:#8C6414}

/* Fun tone */
.gf-tone-fun .gf-title{font-weight:800;font-size:9.6cqw}
.gf-d-fun-xmas-cracker .gf-title{color:#A81424;text-shadow:none}
.gf-d-fun-xmas-cracker .gf-sub{color:#6B3A2E}
.gf-d-fun-xmas-cracker .gf-name{color:#166B3E}
.gf-d-balloons .gf-title,.gf-d-animals .gf-title{color:#2A1410;text-shadow:none}
.gf-d-balloons .gf-sub,.gf-d-animals .gf-sub{color:#7A4A3E}
.gf-d-balloons .gf-name,.gf-d-animals .gf-name{color:#E63B4F}

/* Cheeky tone */
.gf-tone-cheeky .gf-inner{justify-content:center;padding-top:24%}
.gf-tone-cheeky.gf-has-photo .gf-inner{justify-content:space-between;padding-top:10%}
.gf-tone-cheeky .gf-title{font-family:"Fraunces",Georgia,serif;font-weight:800;font-size:9.8cqw;line-height:1.05;color:#FFFDF6}
.gf-tone-cheeky .gf-sub{margin-top:3cqw;font-weight:800;font-size:4.8cqw;color:#FDE047}
.gf-tone-cheeky .gf-name{margin-top:3.5cqw;color:#fff;font-size:6cqw}
.gf-d-cheeky-effort .gf-title{color:#18181B;text-shadow:none}
.gf-d-cheeky-effort .gf-sub{color:#E63B4F}
.gf-d-cheeky-effort .gf-name{color:#18181B}
.gf-d-cheeky-effort.gf-has-photo .gf-name{color:#18181B;margin-top:3cqw}

/* Optional photo frame on card front */
.gf-photo{position:relative;width:54%;aspect-ratio:1/1;overflow:hidden;flex:none;margin-top:4%}
.gf-photo img{width:100%;height:100%;object-fit:cover;display:block}
.gf-photo-formal{width:48%;aspect-ratio:4/5;border-radius:999px 999px 14px 14px;border:2.5px solid #E5C158;box-shadow:0 8px 20px rgba(0,0,0,.35);padding:2px;background:rgba(255,250,235,.15)}
.gf-photo-formal img{border-radius:999px 999px 11px 11px}
.gf-photo-fun{width:54%;aspect-ratio:1/1;background:#fff;padding:4% 4% 11%;border-radius:6px;box-shadow:0 10px 22px rgba(0,0,0,.25);transform:rotate(-3deg)}
.gf-photo-fun img{border-radius:3px}
.gf-photo-cheeky{width:54%;aspect-ratio:1/1;background:#18181B;padding:3.5% 3.5% 9%;border-radius:6px;border:2px solid #FDE047;box-shadow:0 10px 22px rgba(0,0,0,.32);transform:rotate(2.5deg)}
.gf-photo-cheeky img{border-radius:3px}

/* Tone picker, suggestions & photo upload */
.tone-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:4px}
.tone-tab{border:2px solid var(--line);background:#fff;border-radius:16px;padding:11px 8px;text-align:center;cursor:pointer;color:var(--ink);font:800 15px "Nunito",system-ui,sans-serif;transition:all .16s}
.tone-tab small{display:block;font-weight:700;font-size:11.5px;color:var(--soft);margin-top:2px;line-height:1.2}
.tone-tab.sel{background:var(--ink);border-color:var(--ink);color:#fff}
.tone-tab.sel small{color:rgba(255,255,255,.78)}
.suggest-wrap{display:flex;flex-wrap:wrap;gap:7px;margin:8px 0 10px}
.suggest-btn{border:1.5px solid var(--line);background:#FFF9EE;border-radius:12px;padding:8px 11px;font:700 13px/1.3 "Nunito",system-ui,sans-serif;color:var(--ink);cursor:pointer;text-align:left;transition:border-color .15s,background .15s}
.suggest-btn:hover,.suggest-btn.sel{border-color:var(--coral);background:#FFF0F2}

.photo-box{border:2px dashed var(--line);background:#FFFDF9;border-radius:18px;padding:14px;display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.photo-preview{width:64px;height:64px;border-radius:12px;overflow:hidden;background:#F6EAD5;flex:none;display:none;box-shadow:0 4px 10px rgba(0,0,0,.1)}
.photo-preview img{width:100%;height:100%;object-fit:cover;display:block}
.photo-controls{flex:1;min-width:190px;display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.photo-btn{display:inline-flex;align-items:center;gap:6px;border:2px solid var(--line);background:#fff;border-radius:999px;padding:9px 15px;font:800 14px "Nunito",system-ui,sans-serif;color:var(--ink);cursor:pointer}
.photo-clear{border:none;background:none;color:var(--coral-d);font:800 13.5px "Nunito",system-ui,sans-serif;cursor:pointer;text-decoration:underline;display:none}
.photo-status{font-size:13px;font-weight:700;color:var(--soft);width:100%}

.tone-tab-18 small{display:inline-block;margin-top:3px;background:#18181B;color:#FDE047;border-radius:999px;padding:2px 7px;font-size:10.5px;font-weight:800;letter-spacing:.02em}
.tone-tab-18.sel small{background:#FDE047;color:#18181B}
.gf-d-cheeky-bday-knob .gf-title{color:#18181B;text-shadow:none}
.gf-d-cheeky-bday-knob .gf-sub{color:#18181B}
.gf-d-cheeky-bday-knob .gf-name{color:#18181B}
.gf-d-cheeky-xmas-prat .gf-title{color:#F8E7A6}
.gf-d-cheeky-xmas-prat .gf-sub{color:#E5C158}


/* Picture-card fronts (Tony's artwork) — framed at natural aspect, not stretched */
.gf-pic{background:linear-gradient(180deg,#F6E7C8 0%,#E8D3A8 100%)}
.gf-pic.gf-tone-formal{background:linear-gradient(180deg,#1A2233 0%,#121820 100%)}
.gf-pic-mat{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:5% 5% 10%;box-sizing:border-box}
.gf-pic-mat img{display:block;width:100%;height:auto;max-height:90%;object-fit:contain;border-radius:3px;box-shadow:0 10px 24px rgba(42,20,16,.38),0 0 0 1px rgba(42,20,16,.1);background:#111}
.gf-pic-name{margin-top:3.2%;font-family:"Fraunces",Georgia,serif;font-style:italic;font-weight:700;font-size:5.4cqw;color:#4A2E1C;text-align:center;line-height:1.15;max-width:92%}
.gf-pic.gf-tone-formal .gf-pic-name{color:#F8E7A6}

.design-thumb .gf-pic-name{display:none}
.design-thumb:has(.gf-pic){aspect-ratio:5/4}
.design-thumb .gf-pic-mat{padding:6%}
.design-thumb .gf-pic-mat img{max-height:100%}
