/* Snowfriend: a winter-night page with paper gift tags.
   Palette is pine, cranberry, gold and cream. */

:root {
  --night: #0d1c1a;
  --night-2: #132a24;
  --pine: #1b3d31;
  --pine-deep: #153126;
  --paper: #f8efdc;
  --paper-2: #efe2c6;
  --ink: #33241c;
  --ink-soft: #6b5648;
  --berry: #b42a3c;
  --berry-deep: #8a1a2b;
  --gold: #e8b94f;
  --gold-deep: #b98a26;
  --snow: #f3f8fb;
  --text: #f6ecd9;
  --muted: #b5c4b9;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", "Bradley Hand", "Segoe Print", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--night); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: linear-gradient(#0b1a23 0, #0f2620 55%, var(--night) 100%) fixed;
  color: var(--text); font: 400 16px/1.6 var(--sans);
}
/* a handful of stars */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 8% 14%, #fff, transparent),
    radial-gradient(1px 1px at 17% 40%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 29% 8%, #fff, transparent),
    radial-gradient(1px 1px at 38% 62%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 47% 22%, #fff, transparent),
    radial-gradient(1px 1px at 58% 78%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 66% 12%, #fff, transparent),
    radial-gradient(1px 1px at 74% 48%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 83% 30%, #fff, transparent),
    radial-gradient(1px 1px at 91% 70%, #fff, transparent),
    radial-gradient(1px 1px at 52% 92%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 12% 84%, #fff, transparent);
  opacity: .55; animation: stars 7s ease-in-out infinite alternate;
}
@keyframes stars { to { opacity: .22; } }

a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.1; }
button, input { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.page { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px; flex: 1; }
.hand-note, .hand { font-family: var(--hand); font-weight: 700; color: var(--gold); font-size: 24px; line-height: 1.1; margin-bottom: 10px; }
.hand-note.dark { color: var(--berry); }

/* ---------- string lights + snow ---------- */
.lights { position: absolute; top: 0; left: 0; right: 0; height: 52px; z-index: 5; pointer-events: none; overflow: hidden; }
.lights svg { position: absolute; top: 0; left: 0; }
.bulb {
  position: absolute; width: 10px; height: 15px; margin-left: -5px;
  background: var(--c); border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  box-shadow: 0 0 12px 3px var(--c);
  animation: glow 2.6s ease-in-out infinite; animation-delay: calc(var(--i) * -.55s);
}
.bulb::before { content: ""; position: absolute; left: 2px; top: -5px; width: 6px; height: 6px; background: #1b2a24; border-radius: 1px; }
@keyframes glow { 0%, 100% { opacity: 1; } 50% { opacity: .38; box-shadow: 0 0 5px 1px var(--c); } }

.snow { position: fixed; inset: 0; z-index: 60; pointer-events: none; overflow: hidden; }
.flake {
  position: absolute; top: -12px; left: var(--x); width: var(--s); height: var(--s);
  background: #fff; border-radius: 50%; opacity: var(--o);
  animation: fall var(--t) linear infinite; animation-delay: var(--w);
}
@keyframes fall {
  from { transform: translate3d(0, -5vh, 0); }
  to { transform: translate3d(var(--dx), 108vh, 0); }
}

/* ---------- header ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 54px 0 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 24px var(--serif); letter-spacing: -.3px; }
.brand-bauble { width: 28px; height: 28px; transition: transform .4s; transform-origin: 50% 0; }
.brand:hover .brand-bauble { animation: swing-once 1s ease-in-out; }
@keyframes swing-once { 20% { transform: rotate(14deg); } 45% { transform: rotate(-10deg); } 70% { transform: rotate(5deg); } }
.nav { display: flex; align-items: center; gap: 24px; font-size: 15px; color: var(--muted); }
.nav a:not(.button):hover, .nav-button:hover { color: var(--gold); }
.inline-form { display: inline; margin: 0; }
.nav-button { background: none; border: 0; padding: 0; color: inherit; cursor: pointer; }

/* ---------- buttons ---------- */
.button {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 28px; border: 0; border-radius: 999px;
  background: var(--berry); color: #fff7e8; font: 700 15px/1 var(--sans); cursor: pointer;
  box-shadow: 0 3px 0 var(--berry-deep), 0 12px 24px rgba(0, 0, 0, .3);
  transition: transform .15s, box-shadow .15s;
}
.button::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-130%);
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .3) 50%, transparent 70%);
}
.button:hover::after { transform: translateX(130%); transition: transform .7s; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--berry-deep), 0 4px 10px rgba(0, 0, 0, .3); }
.button:focus-visible, a:focus-visible, summary:focus-visible, .link-button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.button-small { min-height: 38px; padding: 0 18px; font-size: 14px; }
.button-full { width: 100%; }
.button-gold { background: var(--gold); color: #3a2a08; box-shadow: 0 3px 0 var(--gold-deep), 0 12px 24px rgba(0, 0, 0, .25); }
.button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.button:disabled::after { display: none; }
.text-link { color: var(--muted); text-decoration: underline; text-underline-offset: 4px; font-size: 15px; }
.text-link:hover { color: var(--gold); }
.link-button { background: none; border: 0; padding: 0; color: var(--berry); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; cursor: pointer; }

/* ---------- toasts ---------- */
.toasts { position: fixed; z-index: 80; top: 70px; left: 50%; transform: translateX(-50%); width: min(92vw, 520px); display: grid; gap: 10px; }
.toast {
  padding: 13px 18px; border-radius: 10px; background: var(--paper); color: var(--ink);
  border-left: 6px solid var(--pine); font-size: 15px; box-shadow: 0 14px 30px rgba(0, 0, 0, .35);
  animation: toast-in .5s cubic-bezier(.2, .9, .3, 1.2) both; cursor: pointer; transition: opacity .5s, transform .5s;
}
.toast.error { border-left-color: var(--berry); }
.toast.success { border-left-color: #2f8f5f; }
.toast.leaving { opacity: 0; transform: translateY(-14px); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-24px) scale(.96); } }

/* ---------- scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .3, 1); transition-delay: var(--d, 0s); }

/* ---------- home: hero ---------- */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 30px; padding: 30px 0 70px; }
.hero h1 { font-size: clamp(46px, 6.4vw, 84px); letter-spacing: -2px; margin-bottom: 22px; }
.hero h1 em { color: var(--gold); font-style: italic; font-weight: 500; }
.hero-intro { max-width: 500px; color: var(--muted); font-size: 18px; }
.hero-actions { display: flex; align-items: center; gap: 24px; margin: 30px 0 34px; flex-wrap: wrap; }
.hero-facts { list-style: none; display: flex; gap: 34px; margin: 0; padding: 0; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.hero-facts strong { display: block; font: 700 38px/1 var(--serif); color: var(--paper); margin-bottom: 4px; }
.hero-copy > * { animation: rise .8s cubic-bezier(.2, .8, .3, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: .1s; } .hero-copy > :nth-child(3) { animation-delay: .2s; }
.hero-copy > :nth-child(4) { animation-delay: .3s; } .hero-copy > :nth-child(5) { animation-delay: .4s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
.hero-art { max-width: 460px; justify-self: center; width: 100%; animation: rise 1s .2s cubic-bezier(.2, .8, .3, 1) both; }
.hero-art svg { display: block; width: 100%; height: auto; overflow: visible; }
.swing { animation: swing 4.4s ease-in-out infinite; animation-delay: var(--s, 0s); }
@keyframes swing { 0%, 100% { transform: rotate(5deg); } 50% { transform: rotate(-5deg); } }
.orn { transform-box: fill-box; transform-origin: center; animation: twinkle 2.8s ease-in-out infinite; animation-delay: calc(var(--i) * -.45s); }
@keyframes twinkle { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .6; transform: scale(1.18); } }
.star { transform-box: fill-box; transform-origin: center; animation: star 3.2s ease-in-out infinite; filter: drop-shadow(0 0 8px rgba(232, 185, 79, .9)); }
@keyframes star { 0%, 100% { transform: scale(1) rotate(-3deg); } 50% { transform: scale(1.14) rotate(3deg); } }

/* ---------- home: how it works ---------- */
.how { padding: 30px 0 70px; }
.section-title { font-size: clamp(30px, 4vw, 42px); letter-spacing: -1px; margin-bottom: 34px; }
.tag-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.paper-tag {
  position: relative; padding: 44px 26px 28px; background: var(--paper); color: var(--ink);
  border-radius: 6px 6px 12px 12px; transform: rotate(var(--r)); transition: transform .3s;
  background-image: radial-gradient(rgba(120, 80, 40, .07) 1px, transparent 1px); background-size: 7px 7px;
  box-shadow: 0 16px 30px rgba(0, 0, 0, .3);
}
.paper-tag::before { content: ""; position: absolute; top: 14px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--night-2); box-shadow: inset 0 2px 3px rgba(0, 0, 0, .5), 0 0 0 3px #d9c59b; }
.js .paper-tag.reveal.in { transform: rotate(var(--r)); }
.paper-tag.in:hover { transform: rotate(0) translateY(-6px); }
.tag-num { position: absolute; top: 12px; right: 18px; font: 700 40px/1 var(--hand); color: var(--berry); }
.paper-tag h3 { font-size: 24px; margin: 6px 0 8px; }
.paper-tag p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

/* ---------- home: faq + banner ---------- */
.faq { max-width: 760px; padding-bottom: 70px; }
.faq details { border-bottom: 1px dashed rgba(246, 236, 217, .25); padding: 4px 0; }
.faq summary { list-style: none; cursor: pointer; padding: 16px 34px 16px 0; position: relative; font: 700 19px var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-52%); color: var(--gold); font: 500 28px var(--sans); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-52%) rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); animation: fade .35s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(-6px); } }

.banner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 70px; padding: 40px 46px; border-radius: 14px;
  background: repeating-linear-gradient(135deg, var(--berry) 0 26px, #a32335 26px 52px); box-shadow: 0 20px 40px rgba(0, 0, 0, .35);
}
.banner h2 { font-size: 34px; margin-bottom: 6px; color: #fff7e8; }
.banner p { margin: 0; color: #f6d9d9; }

/* ---------- forms and paper cards ---------- */
.center-wrap { display: grid; place-items: center; padding: 40px 0 80px; }
.paper-card {
  width: 100%; max-width: 520px; padding: 38px 40px; border-radius: 14px; color: var(--ink);
  background-color: var(--paper); background-image: radial-gradient(rgba(120, 80, 40, .07) 1px, transparent 1px); background-size: 7px 7px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, .4);
}
.paper-card.narrow { max-width: 440px; }
.card-title { font-size: 34px; letter-spacing: -.5px; margin-bottom: 6px; }
.card-sub { color: var(--ink-soft); margin-bottom: 4px; }
.form-fields { display: grid; gap: 16px; margin-top: 22px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 14px; color: var(--ink); }
.field input {
  width: 100%; padding: 12px 14px; border: 2px solid #d9c9a6; border-radius: 8px; background: #fffaf0; color: var(--ink); font-size: 16px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus { border-color: var(--berry); box-shadow: 0 0 0 4px rgba(180, 42, 60, .14); }
.help-text { color: var(--ink-soft); font-size: 13px; line-height: 1.5; }
.help-text ul { margin: 4px 0 0; padding-left: 18px; }
.field-error { color: var(--berry-deep); font-size: 14px; font-weight: 500; }
.privacy-note { margin: 0; color: var(--ink-soft); font-size: 13px; }
.form-bottom { margin: 20px 0 0; text-align: center; color: var(--ink-soft); font-size: 14px; }
.form-bottom a { color: var(--berry); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.signup-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 6%; align-items: center; padding: 40px 0 80px; }
.signup-aside h1 { font-size: clamp(44px, 5.5vw, 70px); letter-spacing: -2px; margin-bottom: 16px; }
.signup-aside p:last-child { max-width: 380px; color: var(--muted); font-size: 17px; }

/* ---------- account ---------- */
.account-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 26px 0 28px; }
.account-head h1 { font-size: clamp(38px, 5vw, 56px); letter-spacing: -1.5px; margin: 0; }
.chip { padding: 8px 16px; border: 1px dashed rgba(232, 185, 79, .6); border-radius: 999px; color: var(--gold); font-size: 14px; font-weight: 500; }
.account-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(250px, .85fr); gap: 26px; padding-bottom: 80px; align-items: start; }
.account-main { min-width: 0; }

.panel { padding: 26px; border-radius: 14px; background: var(--pine); box-shadow: 0 18px 36px rgba(0, 0, 0, .3); }
.draw-panel { position: relative; background: linear-gradient(160deg, #20483a, var(--pine-deep)); }
.draw-panel::before { content: ""; position: absolute; inset: 8px; border: 1px dashed rgba(232, 185, 79, .35); border-radius: 10px; pointer-events: none; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin-bottom: 8px; position: relative; }
.panel h2 { font-size: 28px; margin: 0; }
.progress-label { color: var(--muted); font-size: 13px; }
.progress { height: 6px; margin-top: 22px; border-radius: 6px; background: rgba(255, 255, 255, .1); overflow: hidden; position: relative; }
.progress span { display: block; height: 100%; border-radius: 6px; background: repeating-linear-gradient(45deg, var(--berry) 0 8px, #d04558 8px 16px); transition: width 1s ease; }

/* the draw: a wrapped box that opens, then a swinging name tag */
.draw-stage { position: relative; min-height: 270px; display: grid; place-items: center; overflow: visible; }
.gift-tag { position: relative; width: min(100%, 290px); margin-top: 38px; transform-origin: 50% -38px; animation: tag-sway 6s ease-in-out infinite; filter: drop-shadow(0 14px 14px rgba(0, 0, 0, .4)); }
.gift-tag::before { content: ""; position: absolute; left: 50%; top: -46px; width: 2px; height: 56px; margin-left: -1px; background: #cdb078; }
.tag-body {
  position: relative; padding: 52px 24px 26px; text-align: center; color: var(--ink);
  background-color: var(--paper); background-image: radial-gradient(rgba(120, 80, 40, .07) 1px, transparent 1px); background-size: 7px 7px;
  clip-path: polygon(16% 0, 84% 0, 100% 15%, 100% 100%, 0 100%, 0 15%);
}
.tag-body::before { content: ""; position: absolute; top: 18px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--pine-deep); box-shadow: inset 0 2px 3px rgba(0, 0, 0, .5), 0 0 0 3px #d9c59b; }
.tag-to { margin: 0; font: 700 26px/1 var(--hand); color: var(--berry); }
.tag-name { margin: 4px 0 2px; font: 700 29px/1.15 var(--serif); overflow-wrap: anywhere; }
.tag-class { margin: 0 0 14px; color: var(--ink-soft); font-size: 15px; }
.tag-from { margin: 0; font: 700 21px/1 var(--hand); color: var(--ink-soft); }
@keyframes tag-sway { 0%, 100% { transform: rotate(2.2deg); } 50% { transform: rotate(-2.2deg); } }
.draw-note { margin: 4px 0 0; color: var(--muted); font-size: 14px; text-align: center; position: relative; }

.pop-box { position: absolute; left: calc(50% - 75px); bottom: 14px; width: 150px; height: 134px; }
.pop-body { position: absolute; bottom: 0; width: 100%; height: 94px; border-radius: 6px; background: var(--berry); }
.pop-body::before { content: ""; position: absolute; left: 50%; width: 24px; height: 100%; margin-left: -12px; background: var(--gold); }
.pop-lid { position: absolute; bottom: 88px; left: -8px; right: -8px; height: 38px; border-radius: 6px; background: var(--berry-deep); transform-origin: 15% 100%; }
.pop-lid::before { content: ""; position: absolute; left: 50%; width: 24px; height: 100%; margin-left: -12px; background: var(--gold); }
.pop-lid::after { content: ""; position: absolute; left: 50%; top: -16px; width: 44px; height: 24px; margin-left: -22px; border: 6px solid var(--gold); border-radius: 50% 50% 0 50%; transform: rotate(8deg); }
.is-new .pop-box { animation: box-shake 1s ease-in-out both, box-leave .5s 1.9s ease-in forwards; }
.is-new .pop-lid { animation: lid-pop .85s 1s cubic-bezier(.3, 0, .6, 1) forwards; }
.is-new .gift-tag { animation: tag-rise .9s 1.7s cubic-bezier(.2, .9, .3, 1.15) both, tag-sway 6s 2.6s ease-in-out infinite; }
@keyframes box-shake { 10% { transform: rotate(-5deg); } 20% { transform: rotate(5deg); } 30% { transform: rotate(-6deg); } 40% { transform: rotate(6deg); } 50% { transform: rotate(-4deg); } 60% { transform: rotate(4deg); } 75%, 100% { transform: rotate(0); } }
@keyframes lid-pop { 0% { transform: none; } 55% { transform: translateY(-160px) rotate(-20deg); opacity: 1; } 100% { transform: translate(-110px, -230px) rotate(-70deg); opacity: 0; } }
@keyframes box-leave { to { opacity: 0; transform: translateY(26px) scale(.6); } }
@keyframes tag-rise { from { opacity: 0; transform: translateY(70px) scale(.6) rotate(-8deg); } }
.confetti-layer { position: fixed; inset: 0; z-index: 90; pointer-events: none; overflow: hidden; }
.confetti-layer i { position: absolute; width: 9px; height: 14px; border-radius: 2px; }

.draw-ready { display: flex; align-items: center; gap: 34px; padding: 22px 6px 4px; position: relative; }
.draw-ready .pop-box { position: relative; left: auto; bottom: auto; flex: 0 0 150px; animation: nudge 3.6s ease-in-out infinite; }
.draw-ready .pop-lid { animation: lid-wiggle 3.6s ease-in-out infinite; }
.draw-ready .pop-box.locked { filter: grayscale(.75) brightness(.8); animation: none; }
.draw-ready .pop-box.locked .pop-lid { animation: none; }
@keyframes nudge { 0%, 70%, 100% { transform: none; } 76% { transform: rotate(-4deg); } 82% { transform: rotate(4deg); } 88% { transform: rotate(-3deg); } 94% { transform: rotate(2deg); } }
@keyframes lid-wiggle { 0%, 70%, 100% { transform: none; } 80% { transform: translateY(-7px) rotate(-3deg); } 90% { transform: none; } }
.draw-ready-text h3 { font-size: 26px; margin-bottom: 8px; }
.draw-ready-text p { color: var(--muted); max-width: 420px; margin-bottom: 18px; }

/* gift list */
.catalog { padding-top: 54px; }
.catalog-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.catalog-head h2 { font-size: clamp(28px, 3.4vw, 36px); margin: 0; letter-spacing: -.8px; }
.catalog-head .hand-note { margin: 0; font-size: 22px; }
.gift-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.gift-card { overflow: hidden; border-radius: 12px; background: var(--paper); color: var(--ink); box-shadow: 0 14px 28px rgba(0, 0, 0, .3); transition: transform .25s, box-shadow .25s; }
.gift-card.in:hover { transform: translateY(-5px) rotate(-.6deg); box-shadow: 0 22px 36px rgba(0, 0, 0, .38); }
.gift-art { position: relative; height: 200px; overflow: hidden; background-color: var(--c1); background-image: var(--pattern); }
.gift-art::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 18px; margin-left: -9px; background: var(--c2); }
.gift-art::after { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 18px; margin-top: -9px; background: var(--c2); }
.gift-art i { position: absolute; z-index: 1; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: var(--c2); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .15); }
.gift-card:hover .gift-art i { animation: bow-bounce .6s ease; }
@keyframes bow-bounce { 40% { transform: scale(1.25) rotate(8deg); } }
.tone-1 { --c1: var(--berry); --c2: var(--gold); --pattern: repeating-linear-gradient(45deg, rgba(255,255,255,.1) 0 10px, transparent 10px 20px); }
.tone-2 { --c1: #237050; --c2: #f8efdc; --pattern: radial-gradient(rgba(255,255,255,.22) 2px, transparent 2.5px); background-size: 16px 16px; }
.tone-3 { --c1: #3f78b5; --c2: #f8efdc; --pattern: repeating-linear-gradient(90deg, rgba(255,255,255,.12) 0 8px, transparent 8px 16px); }
.tone-4 { --c1: #e0c28a; --c2: var(--berry); --pattern: repeating-linear-gradient(-45deg, rgba(255,255,255,.3) 0 8px, transparent 8px 16px); }
.gift-info { padding: 16px 18px 18px; }
.gift-category { margin: 0; color: var(--berry); font-size: 12px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.gift-info h3 { font-size: 21px; margin: 4px 0 6px; }
.gift-desc { min-height: 48px; margin: 0; color: var(--ink-soft); font-size: 14.5px; line-height: 1.5; }
.gift-buy { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed #cdb98f; }
.gift-buy strong { font: 700 18px var(--serif); }
.gift-buy form { display: flex; align-items: center; gap: 8px; margin: 0; }
.gift-buy input { width: 52px; min-height: 38px; padding: 4px; border: 2px solid #d9c9a6; border-radius: 8px; background: #fffaf0; color: var(--ink); text-align: center; }
.locked-note { padding: 26px; border: 2px dashed rgba(246, 236, 217, .25); border-radius: 12px; color: var(--muted); }
.locked-note p, .muted { margin: 0; color: var(--muted); }

/* sidebar */
.account-side { display: grid; gap: 18px; }
.side-panel { padding: 22px; }
.side-panel h3 { font-size: 22px; margin-bottom: 14px; }
.muted-small { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.order { display: grid; gap: 4px; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.order:first-of-type { border-top: 0; padding-top: 0; }
.order strong { font-size: 15px; }
.order span { color: var(--muted); font-size: 13.5px; }
.order .link-button { color: #ff8e9c; justify-self: start; margin-top: 6px; }
.order.incoming { display: flex; align-items: center; gap: 14px; }
.order.incoming > div:last-child { display: grid; gap: 2px; }
.mini-box { position: relative; flex: 0 0 34px; height: 30px; border-radius: 4px; background: var(--berry); animation: bob 2.4s ease-in-out infinite; }
.mini-box::before { content: ""; position: absolute; left: 50%; width: 6px; height: 100%; margin-left: -3px; background: var(--gold); }
.mini-box::after { content: ""; position: absolute; left: -2px; right: -2px; top: -7px; height: 9px; border-radius: 3px; background: var(--berry-deep); }
@keyframes bob { 50% { transform: translateY(-5px); } }
.stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 10px 0 0; padding: 0; list-style: none; }
.stepper li { position: relative; padding-top: 14px; color: rgba(246, 236, 217, .45); font-size: 11px; text-align: center; }
.stepper li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .14); }
.s-placed li:nth-child(-n+1), .s-preparing li:nth-child(-n+2), .s-ready li:nth-child(-n+3), .s-delivered li { color: var(--gold); }
.s-placed li:nth-child(-n+1)::before, .s-preparing li:nth-child(-n+2)::before, .s-ready li:nth-child(-n+3)::before, .s-delivered li::before { background: var(--gold); }
.reveal-giver { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .1); color: var(--muted); font-size: 14px; }
.reveal-giver strong { color: var(--gold); }
.note-card { padding: 20px 22px; border-radius: 4px; background: #f3e4a8; color: #4a3a12; transform: rotate(-1.5deg); box-shadow: 0 12px 22px rgba(0, 0, 0, .3); }
.note-card .hand { color: var(--berry); margin-bottom: 4px; }
.note-card p:last-child { margin: 0; font-size: 14.5px; line-height: 1.5; }

/* ---------- footer ---------- */
.footer { margin-top: 20px; position: relative; background: var(--snow); color: #3d4a52; }
.snow-edge { position: absolute; left: 0; bottom: 100%; width: 100%; height: 44px; display: block; }
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 22px 28px 28px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 14px; }
.footer-brand { font: 700 18px var(--serif); color: var(--berry); }
.footer .hand { margin: 0; color: var(--berry); font-size: 24px; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .hero, .signup-layout { grid-template-columns: 1fr; }
  .hero-art { max-width: 340px; }
  .tag-row { grid-template-columns: 1fr; max-width: 460px; }
  .account-grid { grid-template-columns: 1fr; }
  .account-side { grid-template-columns: 1fr 1fr; }
  .note-card { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .page { padding: 0 18px; }
  .topbar { padding-top: 50px; }
  .nav { gap: 14px; font-size: 14px; }
  .nav-hide-small { display: none; }
  .hero { padding-top: 14px; }
  .banner { flex-direction: column; align-items: flex-start; padding: 30px 24px; }
  .paper-card { padding: 28px 22px; }
  .account-head { flex-direction: column; align-items: flex-start; }
  .gift-grid { grid-template-columns: 1fr; }
  .account-side { grid-template-columns: 1fr; }
  .draw-ready { flex-direction: column; text-align: center; gap: 22px; }
  .draw-ready-text p { margin-inline: auto; }
  .panel-head { flex-direction: column; gap: 2px; }
  .footer-inner { flex-direction: column; }
}

/* anyone who has asked their device for less motion gets a still page */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .is-new .pop-box { display: none; }
  .snow, .confetti-layer { display: none; }
}

/* ---- payments ---- */
.badge { display: inline-block; justify-self: start; padding: 2px 10px; border-radius: 99px; font-size: 12px !important; font-weight: 700; background: rgba(255, 255, 255, .12); color: var(--cream, #f6ecd9) !important; }
.badge.pay-unpaid, .badge.pay-refund_due { background: rgba(232, 185, 79, .22); color: #f3cf7e !important; }
.badge.pay-submitted { background: rgba(106, 184, 255, .2); color: #a9d4ff !important; }
.badge.pay-paid, .badge.pay-refunded { background: rgba(47, 143, 95, .3); color: #8fdcb2 !important; }
.order.cancelled strong { text-decoration: line-through; opacity: .7; }
.order-pay { justify-self: start; margin-top: 4px; text-decoration: none; }
.pay-card { max-width: 460px; width: 100%; }
.pay-amount { font-family: Fraunces, Georgia, serif; font-size: 44px; font-weight: 700; margin: 6px 0 14px; color: #b42a3c; }
.pay-methods { display: grid; gap: 12px; justify-items: center; text-align: center; }
.pay-qr { width: 220px; max-width: 80%; padding: 0; overflow: hidden; background: #fff; border-radius: 10px; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.pay-qr svg { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; }
.pay-open { text-decoration: none; text-align: center; }
.pay-hint { margin: 0; font-size: 13.5px; opacity: .75; }
.pay-vpa { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; justify-content: center; }
.pay-vpa strong { word-break: break-all; }
.link-button.dark { color: #b42a3c; }
.pay-form { margin-top: 26px; padding-top: 22px; border-top: 1px dashed rgba(0, 0, 0, .2); }

/* ---- gift photos ---- */
.gift-art.has-photo { background: #efe4cc; background-image: none; }
.gift-art.has-photo::before, .gift-art.has-photo::after { content: none; }
.gift-art.has-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---- seller site ---- */
.seller-wrap { max-width: 980px; margin: 0 auto; padding: 24px 0 70px; color: #f6ecd9; }
.seller-wrap h1 { font-family: Fraunces, Georgia, serif; font-size: 38px; margin: 0 0 18px; }
.seller-wrap h2 { font-family: Fraunces, Georgia, serif; font-size: 22px; margin: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 10px; }
.stat { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; padding: 16px 18px; display: grid; gap: 4px; }
.stat span { font-size: 13px; opacity: .8; }
.stat strong { font-family: Fraunces, Georgia, serif; font-size: 30px; }
.stat small { font-size: 12px; opacity: .7; }
.stat.soft { background: rgba(255, 255, 255, .04); }
.seller-note { font-size: 14px; opacity: .8; margin: 8px 0 22px; }
.seller-note a, .seller-wrap a { color: #f3cf7e; }
.seller-panel { background: #f8efdc; color: #33241c; border-radius: 16px; padding: 20px 22px; margin-bottom: 22px; box-shadow: 0 8px 22px rgba(0, 0, 0, .25); }
.seller-panel a { color: #b42a3c; }
.seller-panel .button { color: #fff; text-decoration: none; }
.seller-panel-head { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.table-scroll { overflow-x: auto; }
.seller-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.seller-table th, .seller-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid rgba(0, 0, 0, .12); vertical-align: middle; }
.seller-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; opacity: .7; }
.seller-table .num { text-align: right; white-space: nowrap; }
.seller-table tr.total td { font-weight: 700; border-bottom: 0; }
.row-actions { display: flex; gap: 14px; align-items: center; justify-content: flex-end; }
.row-actions form { margin: 0; }
.filter-links { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.filter-links a.current { font-weight: 700; text-decoration: none; color: #33241c; border-bottom: 2px solid #b42a3c; }
.seller-total { margin: 14px 0 0; text-align: right; }
.field-check { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.field-check input[type=checkbox] { width: auto; }
