/* =========================================================
   Uga Secret Santa 2026 — "Galle Fort at Christmas" theme
   Uga plum · lighthouse gold · rampart pine · fort-wall cream
   ========================================================= */
:root {
  --plum: #6a2c46; --plum-2: #4a1c33; --plum-3: #2e0f1f;
  --gold: #c9a24b; --gold-2: #b8862f; --gold-soft: #f4e6c3;
  --pine: #1f4a3a; --pine-soft: #e3efe8;
  --berry: #b23a48;
  --bg: #f8f1e8; --bg-2: #f1e6d8; --card: #ffffff; --ink: #2b1a22; --muted: #7e6672; --line: #ead9cf;
  --shadow: 0 1px 2px rgba(74,28,51,.06), 0 8px 28px rgba(74,28,51,.08);
  --radius: 18px; --r-sm: 12px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Fraunces", Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #160a10; --bg-2: #1e0e17; --card: #241520; --ink: #f6eaf0; --muted: #b59aa8; --line: #3b2532;
  --gold-soft: #3a2c14; --pine-soft: #13291f; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35); color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #160a10; --bg-2: #1e0e17; --card: #241520; --ink: #f6eaf0; --muted: #b59aa8; --line: #3b2532;
  --gold-soft: #3a2c14; --pine-soft: #13291f; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35); color-scheme: dark; }

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; min-height: 100vh; overflow-x: hidden; }
a { color: var(--gold-2); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5.5vw, 3.6rem); } h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); } h3 { font-size: 1.15rem; }
p { margin: 0 0 .8em; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
#sparkle { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
#app { position: relative; z-index: 1; }

/* ---------- boot ---------- */
.boot { min-height: 100vh; display: grid; place-content: center; gap: 14px; justify-items: center; color: var(--muted); }
.boot-gift { width: 46px; height: 46px; border-radius: 10px; background: var(--plum); position: relative; animation: bob 1.2s ease-in-out infinite; }
.boot-gift::before, .boot-gift::after { content: ""; position: absolute; background: var(--gold); }
.boot-gift::before { left: 20px; top: 0; bottom: 0; width: 6px; } .boot-gift::after { top: 18px; left: 0; right: 0; height: 6px; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-4deg); } }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 20; background: linear-gradient(180deg, var(--plum-3), var(--plum-2)); color: #fff; box-shadow: 0 2px 18px rgba(46,15,31,.35); }
.top-in { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 14px; padding: 10px 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; min-width: 0; }
.brand img { height: 30px; width: auto; }
.brand .sep { width: 1px; height: 26px; background: rgba(255,255,255,.25); }
.brand b { font-family: var(--display); font-size: 1.08rem; font-weight: 600; white-space: nowrap; }
.brand small { display: block; white-space: nowrap; font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-top: -2px; }
.nav { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.nav a, .nav button { color: rgba(255,255,255,.82); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: .9rem; font-weight: 500; background: none; border: 0; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; position: relative; white-space: nowrap; }
.nav a:hover, .nav button:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav a.on { background: rgba(201,162,75,.18); color: var(--gold-soft); }
:root[data-theme="dark"] .nav a.on { color: #f4e6c3; }
.nav .dot { position: absolute; top: 4px; right: 4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--berry); color: #fff; font-size: .68rem; font-weight: 700; display: grid; place-items: center; }
.nav svg, .ic { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.menu-btn { display: none !important; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #fff; width: 40px; height: 40px; border-radius: 12px; cursor: pointer; place-items: center; }
.menu-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--gold); color: var(--plum-3); display: grid; place-items: center; font-weight: 700; font-size: .8rem; }
@media (max-width: 900px) {
  .menu-btn { display: grid !important; margin-left: auto; }
  .nav { position: fixed; inset: 56px 0 auto 0; flex-direction: column; align-items: stretch; background: var(--plum-2); padding: 10px; gap: 4px; transform: translateY(-120%); transition: transform .25s ease; box-shadow: 0 14px 30px rgba(0,0,0,.3); }
  .nav.open { transform: none; }
  .nav a, .nav button { padding: 12px 14px; border-radius: 12px; }
  .nav .dot { position: static; margin-left: auto; }
  .brand .sep { display: none; } .brand img { height: 24px; }
}

/* ---------- layout ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 24px 16px 80px; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0,1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); } .split { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.card.pad-l { padding: 28px; }
.card-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.card-h h3 { margin: 0; }
.card-h .r { margin-left: auto; }
.eyebrow { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); font-weight: 600; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .tiny { font-size: .75rem; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sp { flex: 1; }
hr.soft { border: 0; border-top: 1px dashed var(--line); margin: 18px 0; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-radius: 26px; color: #fff; padding: clamp(28px, 6vw, 64px); margin-bottom: 22px;
  background:
    radial-gradient(1200px 400px at 85% -10%, rgba(233,201,122,.35), transparent 60%),
    radial-gradient(600px 300px at 0% 110%, rgba(31,74,58,.65), transparent 60%),
    linear-gradient(135deg, #6a2c46 0%, #4a1c33 45%, #2e0f1f 100%);
  box-shadow: 0 20px 50px rgba(46,15,31,.35); isolation: isolate; }
.hero.has-photo { background-image: linear-gradient(100deg, rgba(46,15,31,.92) 0%, rgba(74,28,51,.78) 45%, rgba(46,15,31,.25) 100%), var(--hero-photo); background-size: cover; background-position: center; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .16;
  background-image: radial-gradient(circle at 1px 1px, #e9c97a 1px, transparent 1.5px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent, #000 70%); }
.hero .eyebrow { color: var(--gold); }
.hero h1 { color: #fff; margin: 10px 0 12px; max-width: 14ch; }
.hero h1 em { font-style: italic; color: #f1d792; }
.hero p.lead { font-size: 1.08rem; max-width: 52ch; color: rgba(255,255,255,.86); }
.hero-garland { position: absolute; right: -20px; top: -10px; width: 46%; max-width: 480px; opacity: .95; z-index: -1; pointer-events: none; }
@media (max-width: 760px) { .hero-garland { opacity: .35; width: 80%; } }
.hero .chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 24px; }
.hero .chip { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: #fff; }
.countdown { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.countdown div { background: rgba(255,255,255,.08); border: 1px solid rgba(233,201,122,.35); border-radius: 14px; padding: 10px 14px; min-width: 74px; text-align: center; backdrop-filter: blur(6px); }
.countdown b { display: block; font-family: var(--display); font-size: 1.9rem; line-height: 1; color: #f4e2b0; }
.countdown span { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7); }

/* ---------- chips / pills ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 5px 12px; font-size: .82rem; font-weight: 500; background: var(--bg-2); color: var(--ink); border: 1px solid var(--line); }
.pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 2px 10px; font-size: .75rem; font-weight: 600; }
.pill.gold { background: var(--gold-soft); color: #7a5512; } .pill.pine { background: var(--pine-soft); color: var(--pine); } .pill.berry { background: #f8e1e4; color: var(--berry); } .pill.grey { background: var(--bg-2); color: var(--muted); }
:root[data-theme="dark"] .pill.gold { color: #f1d792; } :root[data-theme="dark"] .pill.pine { color: #8fd1b3; } :root[data-theme="dark"] .pill.berry { background: #3d1820; color: #f3a7b1; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pill.gold { color: #f1d792; } :root:not([data-theme="light"]) .pill.pine { color: #8fd1b3; } :root:not([data-theme="light"]) .pill.berry { background: #3d1820; color: #f3a7b1; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 999px; padding: 11px 20px; font-weight: 600; cursor: pointer; text-decoration: none; transition: transform .12s ease, box-shadow .2s, background .2s; font-size: .95rem; line-height: 1.1; }
.btn:active { transform: translateY(1px); }
.btn.gold { background: linear-gradient(180deg, #d9b25a, #b8862f); color: #2e0f1f; box-shadow: 0 6px 18px rgba(184,134,47,.35); }
.btn.gold:hover { box-shadow: 0 8px 24px rgba(184,134,47,.5); }
.btn.plum { background: var(--plum); color: #fff; } .btn.plum:hover { background: var(--plum-2); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--ink); } .btn.ghost:hover { background: var(--bg-2); }
.hero .btn.ghost { color: #fff; border-color: rgba(255,255,255,.35); } .hero .btn.ghost:hover { background: rgba(255,255,255,.08); }
.btn.danger { background: var(--berry); color: #fff; }
.btn.sm { padding: 7px 14px; font-size: .84rem; } .btn.block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 600; font-size: .88rem; }
.field .hint { font-size: .78rem; color: var(--muted); }
input[type=text], input[type=email], input[type=number], input[type=date], textarea, select { width: 100%; border: 1px solid var(--line); background: var(--bg); border-radius: 12px; padding: 11px 13px; outline: none; transition: border .15s, box-shadow .15s; }
input:focus, textarea:focus, select:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,162,75,.18); }
textarea { resize: vertical; min-height: 90px; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border-radius: 14px; background: var(--gold-soft); border: 1px solid rgba(201,162,75,.4); cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--plum); flex: none; }
.switch { position: relative; width: 44px; height: 24px; flex: none; } .switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--line); border-radius: 99px; transition: .2s; cursor: pointer; }
.switch span::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--pine); } .switch input:checked + span::before { transform: translateX(20px); }

/* ---------- stats ---------- */
.stat { padding: 18px; }
.stat b { display: block; font-family: var(--display); font-size: 2rem; line-height: 1.1; color: var(--plum); }
:root[data-theme="dark"] .stat b { color: #f1d792; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stat b { color: #f1d792; } }
.stat span { color: var(--muted); font-size: .85rem; }
.bar { height: 8px; border-radius: 99px; background: var(--bg-2); overflow: hidden; } .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--plum)); border-radius: 99px; }

/* ---------- rules ---------- */
.rules { counter-reset: r; display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.rules li { counter-increment: r; display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; padding: 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.rules li::before { content: counter(r); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--plum); color: var(--gold-soft); font-family: var(--display); font-weight: 700; }
.rules li b { display: block; margin-bottom: 2px; }
.rules li.key { background: linear-gradient(135deg, var(--gold-soft), transparent); border-color: rgba(201,162,75,.5); }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 800px) { .steps { grid-template-columns: repeat(2, 1fr); } }
.step { padding: 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); position: relative; overflow: hidden; }
.step .n { font-family: var(--display); font-size: 2.6rem; color: var(--gold); opacity: .55; line-height: 1; position: absolute; right: 12px; top: 6px; }
.step .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--pine-soft); color: var(--pine); margin-bottom: 10px; }
:root[data-theme="dark"] .step .ico { color: #8fd1b3; }

/* ---------- reveal ---------- */
.reveal-stage { min-height: 420px; display: grid; place-items: center; text-align: center; padding: 30px 16px; position: relative; }
.giftbox { width: 170px; height: 170px; position: relative; cursor: pointer; margin: 10px auto 26px; border: 0; background: none; padding: 0; }
.giftbox .box { position: absolute; left: 15px; right: 15px; bottom: 0; height: 110px; background: linear-gradient(160deg, #7c3554, #4a1c33); border-radius: 10px; box-shadow: 0 18px 40px rgba(46,15,31,.35); }
.giftbox .lid { position: absolute; left: 5px; right: 5px; top: 30px; height: 36px; background: linear-gradient(160deg, #8a3d5f, #5a2440); border-radius: 8px; transition: transform .7s cubic-bezier(.2,1.4,.4,1), opacity .5s .3s; z-index: 2; }
.giftbox .ribbon-v { position: absolute; left: 50%; transform: translateX(-50%); width: 22px; top: 30px; bottom: 0; background: linear-gradient(90deg, #b8862f, #f1d792, #b8862f); z-index: 3; transition: opacity .3s; }
.giftbox .bow { position: absolute; left: 50%; top: -2px; transform: translateX(-50%); width: 90px; height: 40px; z-index: 4; transition: transform .7s cubic-bezier(.2,1.4,.4,1), opacity .5s .3s; }
.giftbox:hover .lid, .giftbox:hover .bow { transform: translateY(-6px) rotate(-3deg); }
.giftbox.open .lid { transform: translate(-60px, -120px) rotate(-35deg); opacity: 0; }
.giftbox.open .bow { transform: translate(-50%, -160px) rotate(25deg); opacity: 0; }
.giftbox.open .ribbon-v { opacity: 0; }
.giftbox:not(.open) { animation: wiggle 2.4s ease-in-out infinite; }
@keyframes wiggle { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-5deg); } 90% { transform: rotate(5deg); } 95% { transform: rotate(-3deg); } }
.revealed-name { animation: rise .8s cubic-bezier(.2,1.2,.4,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.96); } to { opacity: 1; transform: none; } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 50; }

.giftee-card { background: linear-gradient(140deg, var(--plum) 0%, var(--plum-2) 60%, var(--plum-3) 100%); color: #fff; border-radius: 22px; padding: 26px; position: relative; overflow: hidden; }
.giftee-card::before { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(233,201,122,.35), transparent 70%); }
.giftee-card h2 { color: #fff; margin: 4px 0; font-size: clamp(1.6rem, 4vw, 2.3rem); }
.giftee-card .meta { color: rgba(255,255,255,.78); font-size: .92rem; }
.tag { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; background: #fbf3df; color: var(--plum-3); padding: 8px 16px 8px 12px; border-radius: 8px 22px 22px 8px; font-weight: 700; letter-spacing: .08em; font-family: ui-monospace, Menlo, monospace; position: relative; box-shadow: 0 6px 16px rgba(0,0,0,.2); }
.tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--plum); box-shadow: 0 0 0 3px #e6d3a6; }
.wish { display: grid; gap: 12px; }
.wish .w { padding: 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.wish .w h4 { margin: 0 0 4px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); display: flex; gap: 6px; align-items: center; }
.wish .w p { margin: 0; white-space: pre-wrap; }
.wish .w.avoid h4 { color: var(--berry); }

/* ---------- progress ---------- */
.track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 8px 0 4px; }
.track div { text-align: center; font-size: .74rem; color: var(--muted); }
.track div::before { content: ""; display: block; height: 6px; border-radius: 99px; background: var(--line); margin-bottom: 6px; }
.track div.done { color: var(--pine); font-weight: 600; } .track div.done::before { background: linear-gradient(90deg, var(--pine), #3d8a6a); }
:root[data-theme="dark"] .track div.done { color: #8fd1b3; }

/* ---------- chat ---------- */
.chat { display: flex; flex-direction: column; height: min(620px, 72vh); padding: 0; overflow: hidden; }
.chat-h { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: center; background: linear-gradient(180deg, var(--bg-2), transparent); }
.mask { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--plum); color: var(--gold-soft); flex: none; }
.mask svg { width: 24px; height: 24px; }
.chat-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; background-image: radial-gradient(circle at 1px 1px, var(--line) 1px, transparent 1.4px); background-size: 18px 18px; }
.msg { max-width: 78%; padding: 10px 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); align-self: flex-start; box-shadow: 0 1px 2px rgba(0,0,0,.04); white-space: pre-wrap; word-wrap: break-word; }
.msg.mine { align-self: flex-end; background: var(--plum); color: #fff; border-color: var(--plum); border-bottom-right-radius: 6px; }
.msg:not(.mine) { border-bottom-left-radius: 6px; }
.msg time { display: block; font-size: .68rem; opacity: .65; margin-top: 4px; }
.msg.sys { align-self: center; background: var(--gold-soft); border-color: rgba(201,162,75,.4); color: var(--ink); font-size: .84rem; text-align: center; border-radius: 12px; max-width: 90%; }
.chat-empty { margin: auto; text-align: center; color: var(--muted); max-width: 34ch; }
.chat-f { border-top: 1px solid var(--line); padding: 12px; display: flex; gap: 8px; align-items: flex-end; background: var(--card); }
.chat-f textarea { min-height: 46px; max-height: 140px; border-radius: 22px; padding: 12px 16px; }
.chat-f .btn { height: 46px; width: 46px; padding: 0; flex: none; }
.chat-warn { margin: 0 12px 10px; padding: 10px 14px; border-radius: 12px; background: #fbe6e9; color: #7d1f2b; font-size: .85rem; display: none; gap: 10px; align-items: flex-start; }
.chat-warn.show { display: flex; animation: shake .4s; }
:root[data-theme="dark"] .chat-warn { background: #3d1820; color: #f3b9c1; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.prompts { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 12px 10px; }
.prompts button { border: 1px dashed var(--line); background: var(--bg); border-radius: 999px; padding: 5px 11px; font-size: .78rem; cursor: pointer; color: var(--muted); }
.prompts button:hover { border-color: var(--gold); color: var(--ink); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); background: var(--bg-2); position: sticky; top: 0; }
tr:last-child td { border-bottom: 0; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.tabs a { padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 500; font-size: .9rem; }
.tabs a.on { background: var(--plum); color: #fff; }
.tabs a .pill { margin-left: 4px; }
.lockbox { text-align: center; padding: 40px 20px; }
.lockbox .big { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-2); }

/* ---------- empty / notice ---------- */
.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--pine-soft); color: var(--pine); align-items: flex-start; }
:root[data-theme="dark"] .notice { color: #a6dcc3; }
.notice.gold { background: var(--gold-soft); color: #6d4c10; } :root[data-theme="dark"] .notice.gold { color: #f1d792; }
.empty { text-align: center; padding: 50px 20px; }
.empty .big { width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 22px; background: var(--gold-soft); display: grid; place-items: center; color: var(--gold-2); }
.empty .big svg { width: 36px; height: 36px; }

/* ---------- toast ---------- */
#toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 220%); visibility: hidden; background: var(--plum-3); color: #fff; padding: 12px 20px; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.3); z-index: 100; transition: transform .3s cubic-bezier(.2,1.2,.4,1); max-width: calc(100vw - 32px); font-size: .92rem; }
#toast.show { transform: translate(-50%, 0); visibility: visible; } #toast.err { background: var(--berry); }

/* ---------- elf helper ---------- */
.elf-btn { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer; background: linear-gradient(160deg, var(--pine), #12302a); color: #f1d792; box-shadow: 0 10px 26px rgba(18,48,42,.45); display: grid; place-items: center; }
.elf-btn svg { width: 28px; height: 28px; }
.elf { position: fixed; right: 18px; bottom: 88px; z-index: 40; width: min(370px, calc(100vw - 36px)); max-height: min(560px, 70vh); display: none; flex-direction: column; padding: 0; overflow: hidden; }
.elf.open { display: flex; animation: rise .35s both; }
.elf .chat-h { background: linear-gradient(160deg, var(--pine), #12302a); color: #fff; border: 0; }
.elf .chat-body { padding: 14px; }
.elf .msg { max-width: 92%; font-size: .9rem; }
.elf .msg.mine { background: var(--pine); border-color: var(--pine); }

/* ---------- footer ---------- */
.foot { text-align: center; color: var(--muted); font-size: .8rem; padding: 26px 16px 90px; }
.foot img { height: 26px; opacity: .8; display: block; margin: 0 auto 8px; }

/* ---------- modal ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(23,8,16,.55); backdrop-filter: blur(3px); z-index: 60; display: grid; place-items: center; padding: 16px; animation: fade .2s; }
.modal { width: min(520px, 100%); max-height: 90vh; overflow: auto; }
@keyframes fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } #sparkle { display: none; } }
@media print { .top, .elf-btn, #sparkle { display: none; } }

/* dark-mode contrast for numbered rules + step icons */
:root[data-theme="dark"] .rules li::before { background: var(--gold); color: var(--plum-3); }
:root[data-theme="dark"] .step .ico { background: #1d3a2f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rules li::before { background: var(--gold); color: var(--plum-3); } :root:not([data-theme="light"]) .step .ico { background: #1d3a2f; color: #8fd1b3; } }
@media (max-width: 560px) { .countdown div { min-width: 0; flex: 1; padding: 8px 6px; } .countdown b { font-size: 1.5rem; } .hero .row .btn { width: 100%; } .elf-btn { width: 50px; height: 50px; right: 12px; bottom: 12px; } }
@media (max-width: 1320px) and (min-width: 901px) { .nav a, .nav button { padding: 8px 9px; font-size: .86rem; } .nav button span, #theme-btn span { display: none; } }

/* =========================================================
   CHRISTMAS LAYER — night sky, snow, fairy lights, tree
   ========================================================= */
:root { --snow-1: #fffaf3; --snow-2: #ffffff; --night-1: #1a0a14; --night-2: #3a1328; }
:root[data-theme="dark"] { --snow-1: #2b1a24; --snow-2: #33202b; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --snow-1: #2b1a24; --snow-2: #33202b; } }

#sparkle { display: none; }
#snow { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.sky { position: absolute; left: 0; right: 0; top: 0; height: 620px; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1.2px 1.2px at 12% 18%, #fff8 50%, transparent 51%), radial-gradient(1px 1px at 28% 42%, #fff7 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 46% 12%, #fff9 50%, transparent 51%), radial-gradient(1px 1px at 63% 33%, #fff6 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 79% 9%, #fff9 50%, transparent 51%), radial-gradient(1px 1px at 91% 38%, #fff6 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 52%, #fff5 50%, transparent 51%), radial-gradient(1.2px 1.2px at 55% 55%, #fff5 50%, transparent 51%),
    radial-gradient(900px 340px at 78% 0%, rgba(233,201,122,.22), transparent 70%),
    linear-gradient(180deg, var(--night-1) 0%, var(--night-2) 55%, transparent 100%); }
body { background: var(--bg); }

/* fairy lights */
.lights { display: block; width: 100%; height: 30px; overflow: visible; }
.lights .bulb ellipse:first-of-type { filter: drop-shadow(0 0 5px var(--c)); }
.lights .bulb { animation: twinkle 2.4s ease-in-out infinite; transform-box: fill-box; }
@keyframes twinkle { 0%, 100% { opacity: 1; } 45% { opacity: .35; } 55% { opacity: .5; } }
.top { overflow: visible; }
.top-lights { position: absolute; left: 0; right: 0; bottom: -22px; height: 26px; pointer-events: none; }
.hero-lights { position: absolute; left: 0; right: 0; top: -4px; height: 34px; z-index: 0; opacity: .95; }
main.wrap { padding-top: 40px; }

/* hero: translucent so snow drifts behind it */
.hero { background:
    radial-gradient(1100px 380px at 85% -10%, rgba(233,201,122,.32), transparent 60%),
    radial-gradient(600px 300px at 0% 110%, rgba(31,74,58,.6), transparent 60%),
    linear-gradient(135deg, rgba(106,44,70,.9) 0%, rgba(74,28,51,.9) 45%, rgba(46,15,31,.92) 100%);
  backdrop-filter: blur(2px); border: 1px solid rgba(233,201,122,.25); padding-bottom: clamp(70px, 9vw, 96px); }
.hero-garland { display: none; }
.hero-tree { position: absolute; right: clamp(-30px, 2vw, 40px); bottom: 40px; height: 88%; max-height: 430px; z-index: -1; filter: drop-shadow(0 18px 30px rgba(0,0,0,.35)); }
.hero-tree .star { transform-origin: 270px 40px; animation: starpulse 3s ease-in-out infinite; }
.hero-tree .star-glow { animation: glowpulse 3s ease-in-out infinite; transform-origin: 270px 42px; }
.hero-tree .orn { animation: twinkle 3.2s ease-in-out infinite; }
@keyframes starpulse { 50% { transform: scale(1.12) rotate(6deg); } }
@keyframes glowpulse { 50% { transform: scale(1.25); opacity: .7; } }
.hero-drift { position: absolute; left: 0; right: 0; bottom: -2px; width: 100%; height: 70px; z-index: -1; }
:root[data-theme="dark"] .hero-drift path { fill: #f3e9ee; }
@media (max-width: 860px) { .hero-tree { opacity: .28; height: 70%; right: -60px; } }
.hero h1 em { background: linear-gradient(100deg, #f1d792 20%, #fff6d8 40%, #e9b84a 60%, #f1d792 80%); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 5s linear infinite; }
@keyframes shimmer { to { background-position: -200% center; } }

/* countdown as little gifts */
.countdown div { position: relative; overflow: hidden; background: linear-gradient(160deg, rgba(178,58,72,.55), rgba(106,44,70,.55)); border-color: rgba(244,201,93,.55); }
.countdown div::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 6px; transform: translateX(-50%); background: rgba(244,201,93,.22); }
.countdown div b, .countdown div span { position: relative; }

/* festive cards: candy-stripe ribbon + holly */
.card.festive { position: relative; overflow: hidden; }
.card.festive::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px;
  background: repeating-linear-gradient(-45deg, #b23a48 0 10px, #fff 10px 20px, #2f6b54 20px 30px, #fff 30px 40px); opacity: .9; }
.card.festive::after { content: ""; position: absolute; right: -24px; top: -24px; width: 110px; height: 110px; border-radius: 50%;
  background: radial-gradient(circle, rgba(244,201,93,.18), transparent 70%); pointer-events: none; }
.ic.holly { color: #2f6b54; } :root[data-theme="dark"] .ic.holly { color: #6fcf9e; }

/* rule numbers as baubles */
.rules li::before { background: radial-gradient(circle at 28% 24%, #fff7 0 10%, transparent 11%), radial-gradient(circle at 50% 55%, #c0455d, #7a2235); color: #fff; box-shadow: 0 4px 10px rgba(122,34,53,.35); position: relative; }
.rules li:nth-child(3n+2)::before { background: radial-gradient(circle at 28% 24%, #fff7 0 10%, transparent 11%), radial-gradient(circle at 50% 55%, #e2b553, #a87920); color: #2e0f1f; }
.rules li:nth-child(3n)::before { background: radial-gradient(circle at 28% 24%, #fff7 0 10%, transparent 11%), radial-gradient(circle at 50% 55%, #3f8a6a, #1f4a3a); }
:root[data-theme="dark"] .rules li::before { color: #fff; }

/* steps: little gift tags */
.step { transition: transform .25s ease, box-shadow .25s ease; }
.step:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: 0 14px 30px rgba(74,28,51,.14); }
.step .ico { background: linear-gradient(160deg, #e3efe8, #cfe5d9); }

/* gold buttons shine */
.btn.gold { position: relative; overflow: hidden; }
.btn.gold::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg); transition: left .6s ease; }
.btn.gold:hover::after { left: 120%; }

/* giftee card sparkle edge */
.giftee-card { box-shadow: 0 20px 44px rgba(46,15,31,.32), inset 0 0 0 1px rgba(244,201,93,.28); }
.giftee-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26px; opacity: .9;
  background: radial-gradient(14px 12px at 10px 26px, #fff 98%, transparent) 0 0 / 28px 26px repeat-x; }

/* footer snow drift */
.drift { position: relative; z-index: 1; height: 90px; margin-top: 10px; }
.drift svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.foot { position: relative; z-index: 1; background: var(--snow-2); margin-top: -1px; padding-top: 6px; }
.merry { font-family: var(--display); font-size: 1.25rem; color: var(--plum); display: flex; gap: 8px; align-items: center; justify-content: center; margin-bottom: 12px; }
:root[data-theme="dark"] .merry { color: #f1d792; }
.merry .ic { width: 22px; height: 22px; color: #2f6b54; }

/* top bar velvet */
.top { background: linear-gradient(180deg, #2a0d1c, #4a1c33); border-bottom: 1px solid rgba(244,201,93,.25); }
.nav a.on { box-shadow: inset 0 0 0 1px rgba(244,201,93,.35); }
@media (max-width: 900px) { .top-lights { bottom: -20px; } }

@media (prefers-reduced-motion: reduce) { #snow { display: none; } }
.rules li::before { text-shadow: 0 1px 2px rgba(0,0,0,.35); }

#app { min-height: 100vh; display: flex; flex-direction: column; } #app > main { flex: 1; width: 100%; } .foot { padding-bottom: 110px; }

/* =========================================================
   ANIMATED SCENE — Galle Fort on Christmas night
   ========================================================= */
.sky { display: none; }
.scene { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; background: #12061a; }
.scene-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(18,6,26,.0), rgba(18,6,26,.35)); }
body { background: #12061a; }
.stars circle { animation: starTw 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes starTw { 0%, 100% { opacity: .9; } 50% { opacity: .2; } }
.moon-halo { animation: halo 6s ease-in-out infinite; transform-origin: 1060px 170px; }
@keyframes halo { 50% { transform: scale(1.12); opacity: .75; } }
.cloud.c1 { animation: cloud1 90s linear infinite; } .cloud.c2 { animation: cloud2 120s linear infinite; }
@keyframes cloud1 { from { transform: translate(-300px, 250px); } to { transform: translate(1900px, 230px); } }
@keyframes cloud2 { from { transform: translate(1900px, 120px); } to { transform: translate(-400px, 140px); } }
.sleigh { animation: sleigh 32s linear infinite; }
@keyframes sleigh { 0% { transform: translate(1750px, 120px) rotate(-4deg); } 40% { transform: translate(-300px, 230px) rotate(-6deg); } 100% { transform: translate(-300px, 230px); } }
.shoot { opacity: 0; animation: shoot 11s ease-in infinite 3s; }
@keyframes shoot { 0% { opacity: 0; transform: translate(1300px, 60px); } 3% { opacity: 1; } 10% { opacity: 0; transform: translate(900px, 200px); } 100% { opacity: 0; transform: translate(900px, 200px); } }
.beam-g { transform-origin: 1262px 452px; animation: beam 9s linear infinite; mix-blend-mode: screen; }
@keyframes beam { 0% { transform: rotateY(0deg) rotate(-8deg); opacity: .95; } 25% { opacity: .2; } 50% { transform: rotateY(180deg) rotate(-8deg); opacity: .95; } 75% { opacity: .2; } 100% { transform: rotateY(360deg) rotate(-8deg); opacity: .95; } }
.lamp { animation: halo 3s ease-in-out infinite; transform-origin: 1262px 455px; }
.reflect rect { animation: shimmer2 2.6s ease-in-out infinite; } @keyframes shimmer2 { 50% { opacity: .25; transform: translateX(6px); } }
.waves path { animation: wave 7s ease-in-out infinite; } @keyframes wave { 50% { transform: translateX(40px); } }
.scene .bulb { animation: bulbTw 2.2s ease-in-out infinite; filter: drop-shadow(0 0 6px var(--c)); }
@keyframes bulbTw { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.win { animation: bulbTw 5s ease-in-out infinite; }
.tstar { filter: drop-shadow(0 0 10px #ffd36b); animation: halo 3s ease-in-out infinite; transform-origin: 780px 505px; }
.palm { transform-box: fill-box; transform-origin: 50% 100%; animation: sway 7s ease-in-out infinite; } .palm:nth-of-type(2n) { animation-duration: 9s; }
@keyframes sway { 50% { transform: rotate(1.4deg); } }

/* glass hero over the scene */
.hero.glass { background: linear-gradient(135deg, rgba(74,28,51,.62), rgba(30,10,24,.55)); backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2);
  border: 1px solid rgba(244,201,93,.3); box-shadow: 0 30px 60px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.12); padding-bottom: clamp(28px, 6vw, 64px); }
.hero.glass::after { opacity: .08; }
.hero.glass h1 { text-shadow: 0 4px 24px rgba(0,0,0,.35); }
@media (min-width: 900px) { .hero.glass { max-width: 760px; } }
.on-scene, .on-scene h2 { color: #fff; } .on-scene .eyebrow { color: #f1d792; }
.tabs.on-scene { border-color: rgba(255,255,255,.15); } .tabs.on-scene a { color: rgba(255,255,255,.78); } .tabs.on-scene a.on { background: #f1d792; color: #2e0f1f; }
.drift { display: none; }
.foot { background: rgba(18,6,26,.55); backdrop-filter: blur(6px); color: rgba(255,255,255,.7); border-top: 1px solid rgba(244,201,93,.2); margin-top: 40px; }
.foot img { filter: brightness(0) invert(1); opacity: .8; } .merry { color: #f1d792; } .merry .ic { color: #6ff0b0; }
.card { backdrop-filter: blur(4px); }
@media (prefers-reduced-motion: reduce) { .scene * { animation: none !important; } }

/* =========================================================
   REAL PHOTO BACKGROUND — Christmas tree & bokeh, animated
   ========================================================= */
.scene.photo { background: #1a0a0e; }
.scene.photo::after { display: none; }
.ph { position: absolute; inset: -4%; background: url(../img/christmas-tree.jpg) center 40% / cover no-repeat;
  animation: kenburns 46s ease-in-out infinite alternate; will-change: transform; filter: saturate(1.08) contrast(1.04); }
@keyframes kenburns { 0% { transform: scale(1.02) translate(0, 0); } 50% { transform: scale(1.1) translate(-1.5%, -1%); } 100% { transform: scale(1.06) translate(1.5%, .5%); } }
.ph-grade { position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(40,10,24,.78) 0%, rgba(40,10,24,.45) 42%, rgba(40,10,24,.12) 70%, rgba(40,10,24,.3) 100%),
    linear-gradient(180deg, rgba(20,6,14,.35) 0%, rgba(20,6,14,0) 30%, rgba(20,6,14,.25) 70%, rgba(20,6,14,.85) 100%); }
.ph-vignette { position: absolute; inset: 0; box-shadow: inset 0 0 220px rgba(10,3,8,.75); pointer-events: none; }
.bokeh span { position: absolute; border-radius: 50%; mix-blend-mode: screen;
  background: radial-gradient(circle at 50% 50%, rgba(var(--c), .55) 0%, rgba(var(--c), .25) 45%, rgba(var(--c), 0) 70%);
  filter: blur(1.5px); animation-name: bokehRise, bokehPulse; animation-timing-function: linear, ease-in-out; animation-iteration-count: infinite, infinite; }
@keyframes bokehRise { from { transform: translate3d(0, 30vh, 0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { transform: translate3d(4vw, -40vh, 0); opacity: 0; } }
@keyframes bokehPulse { 50% { filter: blur(3px) brightness(1.4); } }
.sparks i { position: absolute; width: 18px; height: 18px; transform: scale(var(--s)); opacity: 0; animation: spark 4s ease-in-out infinite; }
.sparks i::before, .sparks i::after { content: ""; position: absolute; left: 50%; top: 50%; background: #fff6d8; border-radius: 2px; box-shadow: 0 0 8px #ffd36b; }
.sparks i::before { width: 2px; height: 18px; margin: -9px 0 0 -1px; } .sparks i::after { width: 18px; height: 2px; margin: -1px 0 0 -9px; }
@keyframes spark { 0%, 100% { opacity: 0; transform: scale(calc(var(--s) * .3)) rotate(0); } 50% { opacity: .95; transform: scale(var(--s)) rotate(45deg); } }
@media (max-width: 760px) { .ph { background-position: 30% 40%; } .ph-grade { background: linear-gradient(180deg, rgba(40,10,24,.55), rgba(20,6,14,.85)); } }
@media (prefers-reduced-motion: reduce) { .ph, .bokeh span, .sparks i { animation: none !important; } }

/* Rudolph helper button */
.elf-btn { width: 72px; height: 72px; background: radial-gradient(circle at 50% 35%, #2f6b54, #12302a); border: 3px solid #e9c97a; padding: 4px; overflow: visible; animation: deerBob 3.2s ease-in-out infinite; }
.elf-btn .deer { width: 100%; height: 100%; }
.elf-btn:hover { transform: scale(1.07) rotate(-4deg); animation-play-state: paused; }
@keyframes deerBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.elf-btn .eyes { animation: blink 5s infinite; transform-origin: 60px 60px; }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
.elf-tip { position: absolute; right: 82px; top: 50%; transform: translateY(-50%); white-space: nowrap; background: #fff6e0; color: #4a1c33; font-weight: 700; font-size: .82rem; padding: 6px 12px; border-radius: 999px; box-shadow: 0 6px 18px rgba(0,0,0,.25); opacity: 0; transition: opacity .2s; pointer-events: none; }
.elf-btn:hover .elf-tip { opacity: 1; }
@media (min-width: 900px) { .elf-btn .elf-tip { animation: tipFade 9s ease-in-out 2s 1 both; } }
@keyframes tipFade { 0% { opacity: 0; } 10%, 70% { opacity: 1; } 100% { opacity: 0; } }
.elf { bottom: 104px; }
.deer-av { width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #2f6b54, #12302a); border: 2px solid #e9c97a; padding: 3px; display: grid; place-items: center; flex: none; }
.deer-av .deer { width: 100%; height: 100%; }
.deer-av.sm { width: 40px; height: 40px; }
@media (max-width: 560px) { .elf-btn { width: 60px; height: 60px; } }

/* Santa's sleigh flying around */
.sleigh-fly { position: absolute; left: 0; top: 0; width: clamp(280px, 32vw, 500px); filter: drop-shadow(0 0 10px rgba(255,215,122,.75)) drop-shadow(0 0 22px rgba(255,190,90,.35));
  animation: sleighLoop 26s linear infinite; will-change: transform; opacity: 0; }
.sleigh-fly svg { width: 100%; height: auto; display: block; overflow: visible; }
.sleigh-fly .tw { animation: bulbTw 1.2s ease-in-out infinite; }
@keyframes sleighLoop {
  0%   { transform: translate(102vw, 14vh) rotate(-6deg) scale(1); opacity: 0; }
  3%   { opacity: 1; }
  20%  { transform: translate(55vw, 8vh) rotate(-2deg) scale(1); }
  38%  { transform: translate(-40vw, 20vh) rotate(4deg) scale(1); opacity: 1; }
  40%  { opacity: 0; transform: translate(-40vw, 20vh) scaleX(-1) scale(.75); }
  52%  { opacity: 0; transform: translate(-40vw, 46vh) scaleX(-1) scale(.75); }
  54%  { opacity: .85; }
  75%  { transform: translate(50vw, 36vh) rotate(-4deg) scaleX(-1) scale(.75); }
  92%  { transform: translate(110vw, 44vh) rotate(-2deg) scaleX(-1) scale(.75); opacity: .85; }
  94%, 100% { opacity: 0; transform: translate(110vw, 44vh) scaleX(-1) scale(.75); }
}
@media (prefers-reduced-motion: reduce) { .sleigh-fly { display: none; } }

/* ---------- join / wish-list form ---------- */
.idcard { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; margin: 6px 0 4px;
  background: linear-gradient(135deg, rgba(201,162,75,.16), rgba(106,44,70,.12)); border: 1px solid rgba(201,162,75,.35); }
.avatar.lg { width: 52px; height: 52px; font-size: 1.05rem; box-shadow: 0 0 0 3px rgba(233,201,122,.35); flex: none; }
.idcard-b { display: grid; gap: 3px; min-width: 0; }
.idcard-b b { font-size: 1.08rem; } .idcard-b > span:not(.pill) { color: var(--muted); font-size: .9rem; }
.idcard .pill { justify-self: start; margin-top: 2px; } .idcard .pill .ic { width: 13px; height: 13px; }
.fsec { margin-top: 18px; padding: 18px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); }
.fsec-h { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.fsec-n { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; font-family: var(--display); font-weight: 700; color: #2e0f1f;
  background: radial-gradient(circle at 35% 30%, #fff6 0 12%, transparent 13%), radial-gradient(circle at 50% 55%, #e2b553, #a87920); box-shadow: 0 3px 8px rgba(168,121,32,.35); }
.fsec-h h4 { margin: 3px 0 2px; font-size: 1rem; display: flex; gap: 6px; align-items: center; } .fsec-h h4 .ic { width: 16px; height: 16px; color: var(--gold-2); }
.fsec-h p { margin: 0; font-size: .84rem; color: var(--muted); }
.fsec .field:last-child { margin-bottom: 0; }
.req { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--berry); margin-left: 6px; font-weight: 700; }
:root[data-theme="dark"] .req { color: #f3a7b1; }
#wish-count { font-variant-numeric: tabular-nums; } #wish-count.ok { color: #6fcf9e; }
.idea-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.idea { border: 1px dashed rgba(201,162,75,.55); background: transparent; color: var(--ink); border-radius: 999px; padding: 5px 11px; font-size: .8rem; cursor: pointer; transition: all .15s; }
.idea:hover { background: rgba(201,162,75,.15); border-style: solid; }
.idea.on { background: rgba(111,207,158,.15); border-color: #6fcf9e; border-style: solid; color: #6fcf9e; }
.join-foot { margin-top: 20px; display: grid; gap: 12px; }
@media (min-width: 901px) { .sticky-side { position: sticky; top: 90px; } }

/* Rudolph tap sparkle burst */
.burst { position: fixed; z-index: 60; width: var(--sz); height: var(--sz); margin: calc(var(--sz) / -2) 0 0 calc(var(--sz) / -2); border-radius: 50%; background: var(--c);
  box-shadow: 0 0 8px var(--c), 0 0 16px var(--c); pointer-events: none; animation: burst .8s cubic-bezier(.2,.8,.3,1) forwards; }
.burst.star { border-radius: 2px; background: none; box-shadow: none; }
.burst.star::before, .burst.star::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--c); box-shadow: 0 0 6px var(--c); border-radius: 2px; }
.burst.star::before { width: 2px; height: calc(var(--sz) * 2.2); transform: translate(-50%, -50%); }
.burst.star::after { width: calc(var(--sz) * 2.2); height: 2px; transform: translate(-50%, -50%); }
@keyframes burst { 0% { transform: translate(0, 0) scale(.3) rotate(0); opacity: 1; } 70% { opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) scale(1) rotate(90deg); opacity: 0; } }
.elf-btn:active { transform: scale(.92); }
