/* Layout: one narrow centred column in a cosy Christmas evening: deep evergreen ground with a warm golden glow, fairy lights along the top, soft snow.
   The person view is a wreath wheel of family avatars; Santa's sleigh delivers the result. Deliberately one (dark, warm) theme. */
:root {
  color-scheme: dark;
  --night: #0a2118;
  --night-2: #154230;
  --glow: #2f6a3c;
  --line: #2d6349;
  --cream: #fdeedd;
  --muted: #bcd6c3;
  --paper: #fff5e6;
  --ink: #3b2219;
  --ink-soft: #8a6a58;
  --berry: #d8413f;
  --berry-deep: #a82c2e;
  --gold: #f4c463;
  --gold-deep: #dba53a;
  --pine: #2f8a5a;
  --font-display: "Fredoka", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --font-body: "Nunito", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-hand: "Caveat", "Bradley Hand", "Segoe Print", cursive;
}
/* the page always fills the screen, so the snowy village sits on the bottom edge */
body { min-height: 100dvh; display: flex; flex-direction: column; box-sizing: border-box; }
body {
  background:
    radial-gradient(70% 38% at 50% -8%, rgba(244,196,99,.30) 0%, transparent 70%) fixed,
    radial-gradient(90% 60% at 50% 0%, var(--glow) 0%, transparent 72%) fixed,
    radial-gradient(120% 90% at 50% 10%, var(--night-2) 0%, var(--night) 65%) fixed,
    var(--night);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  overflow-x: hidden;
}
#snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }

/* Fairy lights along the top */
.lights { position: absolute; top: env(safe-area-inset-top, 0px); left: 0; right: 0; height: 46px; display: flex; justify-content: center; overflow: hidden; z-index: 1; pointer-events: none; }
.lights svg { flex: none; width: 64px; height: 46px; }
.bulb { animation: twinkle 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 0; }
@keyframes twinkle { 0%, 100% { opacity: .55; filter: none; } 50% { opacity: 1; filter: drop-shadow(0 0 6px currentColor) drop-shadow(0 0 12px currentColor); } }

main { position: relative; z-index: 1; flex: 1 0 auto; width: 100%; box-sizing: border-box; max-width: 760px; margin: 0 auto; padding-block: 70px 28px; display: grid; gap: 26px; }

h1, h2 { font-family: var(--font-display); text-wrap: balance; margin: 0; line-height: 1.1; }
h1 { font-size: clamp(2.1rem, 7vw, 3.2rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0; }
.eyebrow { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--gold); font-weight: 700; }
.lede { color: var(--muted); max-width: 60ch; }
.hero { display: grid; gap: 10px; }
/* every screen eases in when it opens: heading first, then the rest */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes popin { from { opacity: 0; transform: scale(.4); } 70% { transform: scale(1.12); } }
.hero > * { animation: rise .55s ease-out backwards; }
.hero > *:nth-child(2) { animation-delay: .09s; } .hero > *:nth-child(3) { animation-delay: .18s; } .hero > *:nth-child(4) { animation-delay: .27s; }
.panel, .draw-stage, .oops-scene, .stage > .btn, .stage > .whisper, .banner, .picker { animation: rise .6s .2s ease-out backwards; }
.family .mini { animation: popin .5s ease-out backwards; }
.family .mini:nth-child(1) { animation-delay: .25s; } .family .mini:nth-child(2) { animation-delay: .32s; } .family .mini:nth-child(3) { animation-delay: .39s; } .family .mini:nth-child(4) { animation-delay: .46s; }
.family .mini:nth-child(5) { animation-delay: .53s; } .family .mini:nth-child(6) { animation-delay: .6s; } .family .mini:nth-child(7) { animation-delay: .67s; }
.member { animation: rise .45s ease-out backwards; }
.member:nth-child(1) { animation-delay: .25s; } .member:nth-child(2) { animation-delay: .31s; } .member:nth-child(3) { animation-delay: .37s; } .member:nth-child(4) { animation-delay: .43s; }
.member:nth-child(5) { animation-delay: .49s; } .member:nth-child(6) { animation-delay: .55s; } .member:nth-child(7) { animation-delay: .61s; }
@media (prefers-reduced-motion: reduce) { .hero > *, .panel, .draw-stage, .oops-scene, .stage > .btn, .stage > .whisper, .banner, .picker, .family .mini, .member { animation: none; } }
.hero .eyebrow::before { content: ""; display: inline-block; width: 30px; height: 19px; margin-right: 8px; vertical-align: -4px; background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2044%2028%22%3E%3Cpath%20d%3D%22M21%2016%20C14%206%206%206%202%209%20C5%2011%204%2014%202%2017%20C8%2021%2015%2020%2021%2016Z%22%20fill%3D%22%233fa06a%22%2F%3E%3Cpath%20d%3D%22M23%2016%20C30%206%2038%206%2042%209%20C39%2011%2040%2014%2042%2017%20C36%2021%2029%2020%2023%2016Z%22%20fill%3D%22%232f8a5a%22%2F%3E%3Ccircle%20cx%3D%2219%22%20cy%3D%2219%22%20r%3D%224.2%22%20fill%3D%22%23d8413f%22%2F%3E%3Ccircle%20cx%3D%2225.5%22%20cy%3D%2219%22%20r%3D%224.2%22%20fill%3D%22%23ee4a5c%22%2F%3E%3Ccircle%20cx%3D%2222%22%20cy%3D%2213.5%22%20r%3D%224.2%22%20fill%3D%22%23c41f34%22%2F%3E%3Ccircle%20cx%3D%2220.6%22%20cy%3D%2212.2%22%20r%3D%221.1%22%20fill%3D%22%23fff%22%20opacity%3D%22.8%22%2F%3E%3C%2Fsvg%3E") no-repeat center / contain; }
/* candy-cane ribbon along the top of each panel */
.panel::before { content: ""; height: 7px; margin: -6px 0 0; border-radius: 7px; background: repeating-linear-gradient(135deg, var(--berry) 0 11px, var(--paper) 11px 22px); }
/* snowy village at the foot of the page */
.scene { position: relative; z-index: 1; flex: none; height: 170px; margin-top: 8px; margin-left: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); margin-right: calc(-1 * max(16px, env(safe-area-inset-right, 0px))); overflow: hidden; pointer-events: none; }
.scene svg { display: block; width: 100%; height: 100%; }
.scene .win { animation: glowwin 3.4s ease-in-out infinite; }
.scene .star { animation: twinkle 2.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.scene .smoke { animation: smoke 5s ease-out infinite; transform-box: fill-box; }
@keyframes glowwin { 0%, 100% { opacity: .78; } 50% { opacity: 1; } }
@keyframes smoke { 0% { opacity: 0; transform: translate(0, 6px) scale(.6); } 30% { opacity: .5; } 100% { opacity: 0; transform: translate(10px, -22px) scale(1.5); } }
.hero.center { justify-items: center; text-align: center; }

.panel { background: color-mix(in srgb, var(--night-2) 78%, transparent); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: grid; gap: 18px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.count { color: var(--muted); font-size: 0.9rem; font-variant-numeric: tabular-nums; }

.fields { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
@media (max-width: 620px) { .fields { grid-template-columns: 1fr 1fr; } .fields .f-event { grid-column: 1 / -1; } }
label.f { display: grid; gap: 6px; font-size: 0.82rem; color: var(--muted); min-width: 0; }
input[type="text"], input[type="date"], input[type="password"], input[type="number"], input[type="email"], textarea {
  font: inherit; font-size: 1rem; color: var(--cream); background: var(--night); border: 1px solid var(--line);
  border-radius: 11px; padding: 10px 12px; width: 100%; box-sizing: border-box; min-width: 0;
}
input::placeholder { color: color-mix(in srgb, var(--muted) 55%, transparent); }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.people { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .people { grid-template-columns: 1fr; } }
.person { display: flex; gap: 8px; align-items: center; min-width: 0; }
.person input { flex: 1; }
.mini { flex: none; width: 42px; height: 42px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px var(--paper); }
.mini svg, .av svg, .big svg, .hub svg { display: block; width: 100%; height: 100%; }
.icon-btn { flex: none; width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 1.2rem; cursor: pointer; line-height: 1; }
.icon-btn:hover { color: var(--cream); border-color: var(--muted); }

.btn { font: inherit; font-weight: 700; border-radius: 999px; padding: 11px 20px; cursor: pointer; border: 1px solid transparent; text-decoration: none; display: inline-block; }
.btn-primary { background: var(--berry); color: #fff; box-shadow: 0 6px 0 var(--berry-deep), 0 14px 24px rgba(0,0,0,.3); transition: transform .12s, box-shadow .12s; }
.btn-primary:hover { transform: translateY(-1px); }
.btn-primary:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--berry-deep), 0 6px 12px rgba(0,0,0,.3); }
.btn-primary[disabled] { opacity: .7; cursor: default; }
.btn-ghost { background: transparent; color: var(--cream); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-small { padding: 7px 14px; font-size: 0.86rem; }
.btn-big { font-family: var(--font-display); font-size: 1.25rem; padding: 14px 34px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.error { color: #ffc2b5; font-size: 0.9rem; }
.note { color: var(--muted); font-size: 0.88rem; max-width: 65ch; }

.panel.narrow { max-width: 440px; width: 100%; justify-self: center; box-sizing: border-box; }
.panel.narrow form input { flex: 1 1 160px; width: auto; }
.family { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.family .mini { width: 58px; height: 58px; }
.members { display: grid; gap: 8px; }
.member { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--night); }
.member-who, .member-result, .result { display: flex; align-items: center; gap: 10px; min-width: 0; }
.member-name { display: grid; gap: 2px; min-width: 0; }
.member-result { justify-content: flex-end; }
.who { font-weight: 700; overflow-wrap: anywhere; }
.dots { color: var(--muted); letter-spacing: .1em; }
.result .mini { width: 34px; height: 34px; }
.tag-label.on-dark { color: var(--muted); }
.status { font-size: .78rem; font-weight: 700; color: var(--muted); }
.status.done { color: #8fe0a8; }
.icon-btn { display: inline-grid; place-items: center; }
@media (max-width: 640px) {
  .member { grid-template-columns: 1fr; gap: 10px; padding: 12px; }
  .member-result { justify-content: flex-start; }
  .member-result .icon-btn { margin-left: auto; }
  .member > .btn { width: 100%; }
}
/* wrong-link screen */
.oops { display: grid; justify-items: center; gap: 14px; text-align: center; }
.oops-scene { position: relative; width: min(440px, 100%); }
.oops-scene svg { display: block; width: 100%; height: auto; }
.oops-text { font-size: 1.1rem; color: var(--cream); max-width: 34ch; }
.watcher { position: absolute; left: 1%; top: 0; width: 23%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 4px var(--paper), 0 8px 18px rgba(0,0,0,.4); animation: bob 3.2s ease-in-out infinite; }
.watch-bubble { position: absolute; left: 0; top: 29%; background: var(--paper); color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: .9rem; padding: 5px 11px; border-radius: 14px; white-space: nowrap; box-shadow: 0 6px 14px rgba(0,0,0,.3); transform-origin: 30% 0; animation: seen 7s ease-in-out infinite; }
.watch-bubble::after { content: ""; position: absolute; left: 22%; top: -7px; border: 7px solid transparent; border-bottom-color: var(--paper); border-top: 0; }
.grump { transform-box: fill-box; transform-origin: 50% 100%; animation: peek 7s ease-in-out infinite; }
.grump-eyes { animation: glance 7s ease-in-out infinite; }
.grump-arm { transform-box: fill-box; transform-origin: 0 0; animation: reach 7s ease-in-out infinite; }
.oops-gift { transform-box: fill-box; transform-origin: 50% 100%; animation: giftshake 7s ease-in-out infinite; }
.oops-scene .star { animation: twinkle 2.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes peek { 0%, 10% { transform: translate(0, 0) rotate(0deg); } 20% { transform: translate(46px, 0) rotate(3deg); } 30% { transform: translate(30px, 0) rotate(0deg); } 44%, 75% { transform: translate(86px, 0) rotate(6deg); } 79% { transform: translate(86px, -10px) rotate(0deg); } 87%, 100% { transform: translate(0, 0) rotate(0deg); } }
@keyframes glance { 0%, 44% { transform: translateX(0); } 49%, 55% { transform: translateX(-3px); } 60%, 75% { transform: translateX(3px); } 79%, 100% { transform: translateX(0); } }
@keyframes reach { 0%, 57% { transform: scale(0); } 65%, 75% { transform: scale(1); } 79%, 100% { transform: scale(0); } }
@keyframes giftshake { 0%, 64%, 77%, 100% { transform: rotate(0deg); } 67% { transform: rotate(-7deg); } 70% { transform: rotate(7deg); } 73% { transform: rotate(-5deg); } }
@keyframes seen { 0%, 71% { transform: scale(0); opacity: 0; } 77%, 93% { transform: scale(1); opacity: 1; } 100% { transform: scale(0); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .grump { animation: none; transform: translate(86px, 0) rotate(6deg); } .grump-eyes, .grump-arm, .oops-gift, .watcher, .watch-bubble, .oops-scene .star { animation: none; } }
.links { display: grid; gap: 8px; }
.link-row { display: grid; grid-template-columns: auto minmax(70px, 130px) 1fr auto; gap: 12px; align-items: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--night); }
.link-row .who { font-weight: 700; overflow-wrap: anywhere; }
.link-row code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.76rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; user-select: all; }
@media (max-width: 520px) { .link-row { grid-template-columns: auto 1fr auto; } .link-row code { grid-column: 1 / -1; grid-row: 2; } }
.copied { color: var(--gold) !important; border-color: var(--gold) !important; }

/* ---------- Person view ---------- */
.stage { display: grid; justify-items: center; gap: 18px; text-align: center; }
.me { display: inline-flex; align-items: center; gap: 10px; padding: 5px 16px 5px 5px; border-radius: 999px; background: color-mix(in srgb, var(--night-2) 80%, transparent); border: 1px solid var(--line); font-weight: 700; }
.me .mini { width: 36px; height: 36px; }
.banner { background: var(--gold); color: var(--ink); border-radius: 12px; padding: 8px 14px; font-size: 0.9rem; font-weight: 600; }
.banner a { color: var(--ink); }
.picker { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; max-width: 620px; }
.picker-label { color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.pick { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px 3px 3px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--cream); font: inherit; font-size: 0.85rem; font-weight: 700; cursor: pointer; }
.pick:hover { border-color: var(--muted); }
.pick[aria-pressed="true"] { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.pick .mini { width: 28px; height: 28px; }

.topline { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; }
/* the wheel never grows taller than about half the screen, so the spin button stays in view */
.draw-stage { position: relative; width: min(400px, 100%, max(230px, 47dvh)); }
.sky { position: relative; height: 84px; }
.lane { position: absolute; top: -14px; left: 50%; width: 100vw; margin-left: -50vw; height: 120px; overflow: hidden; pointer-events: none; z-index: 4; }
.sleigh { position: absolute; left: 0; top: 10px; width: 230px; transform: translate(-260px, 0); }
/* phones: tighter header and less empty sky, so name, wheel and spin button fit on the first screen */
@media (max-width: 560px) {
  main { padding-block: 54px 24px; gap: 20px; }
  .stage { gap: 12px; }
  .stage .hero { gap: 6px; }
  .stage .hero h1 { font-size: 1.75rem; }
  .me { padding: 3px 12px 3px 3px; font-size: 0.9rem; }
  .me .mini { width: 28px; height: 28px; }
  .sky { height: 34px; }
  .lane { top: -66px; }
  .btn-big { font-size: 1.15rem; padding: 12px 30px; }
}
.wheel-box { position: relative; width: 100%; aspect-ratio: 1; }
.wheel-stage { position: absolute; inset: 0; }
.wheel-stage::before { content: ""; position: absolute; inset: -4%; border-radius: 50%; background: radial-gradient(circle, rgba(253,238,221,.16) 0 46%, rgba(244,196,99,.10) 60%, transparent 72%); }
.wheel { position: absolute; inset: 0; }
.wreath { position: absolute; inset: 0; width: 100%; height: 100%; }
.slot { position: absolute; left: 50%; top: 50%; aspect-ratio: 1; transform: translate(-50%, -50%); will-change: transform; }
.slot .av { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 3px var(--paper), 0 6px 14px rgba(0,0,0,.4); transition: opacity .4s, box-shadow .4s, filter .4s; will-change: transform; }
.slot.dim .av { filter: brightness(.5) saturate(.55); box-shadow: 0 0 0 3px #9b8a78, 0 6px 14px rgba(0,0,0,.4); }
.slot.winner .av { box-shadow: 0 0 0 4px var(--gold), 0 0 26px 8px rgba(244,196,99,.75); }
.hub { position: absolute; left: 50%; top: 50%; width: 30%; aspect-ratio: 1; margin: -15% 0 0 -15%; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 4px var(--paper), 0 8px 18px rgba(0,0,0,.4); animation: bob 3.2s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-3px) rotate(2deg); } }
.pointer { position: absolute; left: 50%; top: -7%; width: 15%; margin-left: -7.5%; z-index: 3; transform-origin: 50% 30%; filter: drop-shadow(0 3px 4px rgba(0,0,0,.45)); }
.pointer svg { display: block; width: 100%; }
.bubble { position: absolute; left: 50%; top: 22%; transform: translateX(-50%); background: var(--paper); color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; padding: 6px 14px; border-radius: 16px; white-space: nowrap; z-index: 3; box-shadow: 0 6px 14px rgba(0,0,0,.3); }
.bubble::after { content: ""; position: absolute; left: 50%; bottom: -7px; margin-left: -7px; border: 7px solid transparent; border-top-color: var(--paper); border-bottom: 0; }

.gift { position: absolute; z-index: 5; pointer-events: none; }
.gift svg { display: block; width: 100%; }
.gift .lid { width: 112%; margin: 0 -6% -5%; position: relative; z-index: 1; }

.reveal { position: absolute; inset: 0; display: grid; justify-items: center; align-content: center; gap: 6px; text-align: center; z-index: 2; }
/* The sun-ray glow belongs to the avatar: centred on it and fading out evenly all round, so nothing cuts it off.
   The fixed round frame clips the turning rays inside it, so the rotation never spills outside the page. */
.halo { position: relative; width: 54%; aspect-ratio: 1; }
.rays { position: absolute; inset: -45%; border-radius: 50%; overflow: hidden; pointer-events: none;
  -webkit-mask: radial-gradient(closest-side, #000 40%, transparent 100%); mask: radial-gradient(closest-side, #000 40%, transparent 100%); }
.rays::before { content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(244,196,99,.3) 0 9deg, transparent 9deg 18deg);
  animation: spin 22s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.big { position: relative; width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 5px var(--gold), 0 0 46px 10px rgba(244,196,99,.5); }
.reveal .name { position: relative; font-family: var(--font-hand); font-weight: 700; font-size: clamp(2.6rem, 11vw, 3.4rem); line-height: 1; color: var(--cream); overflow-wrap: anywhere; text-shadow: 0 3px 12px rgba(0,0,0,.5); margin-top: 6px; }
.reveal .desc { position: relative; color: var(--gold); font-weight: 600; max-width: 28ch; }
.draw-stage.revealed .wheel-stage { opacity: 0; visibility: hidden; }
.is-hidden .big, .is-hidden .reveal .name, .is-hidden .reveal .desc, .tag.is-hidden .to .hand { filter: blur(16px); user-select: none; }
.confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 6; }

/* Gift tag with the details */
.tag-wrap { position: relative; width: min(400px, 100%); padding-top: 54px; }
.string { position: absolute; top: 0; left: 50%; width: 120px; height: 76px; transform: translateX(-50%); }
.string svg { display: block; width: 100%; height: 100%; }
.tag { position: relative; background: var(--paper); color: var(--ink); clip-path: polygon(16% 0, 84% 0, 100% 14%, 100% 100%, 0 100%, 0 14%); padding: 58px 26px 24px; display: grid; gap: 14px; text-align: left; }
.eyelet { position: absolute; top: 20px; left: 50%; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; background: var(--night); box-shadow: 0 0 0 5px var(--gold-deep); }
.tag-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-soft); font-weight: 700; }
.hand { font-family: var(--font-hand); font-weight: 700; line-height: 1.05; overflow-wrap: anywhere; }
.from .hand { font-size: 1.9rem; }
.to { border-top: 2px dashed #e6d3bb; padding-top: 12px; display: grid; gap: 2px; }
.to .hand { font-size: clamp(2.3rem, 10vw, 3rem); color: var(--berry); }
.meta { display: flex; flex-wrap: wrap; gap: 8px; border-top: 2px dashed #e6d3bb; padding-top: 12px; }
.theme { border-top: 2px dashed #e6d3bb; padding-top: 12px; display: grid; gap: 4px; }
.elf-note { display: flex; align-items: center; gap: 12px; background: #e6f1e2; border-radius: 16px; padding: 10px 12px; }
.elf-note .mini { width: 52px; height: 52px; box-shadow: 0 0 0 2px #fff; }
.elf-text { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; line-height: 1.25; color: var(--ink); }
.theme-text { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; line-height: 1.25; color: #1f6b45; text-wrap: balance; }
.theme-hint { font-size: 0.9rem; color: var(--ink-soft); }
.chip { font-size: 0.82rem; padding: 4px 11px; border-radius: 999px; background: #f6e4cb; color: var(--ink); font-weight: 600; }
.tag .btn-ghost { color: var(--ink); border-color: #e0cbb0; }
.whisper { color: var(--muted); font-size: 0.95rem; max-width: 40ch; }
.foot { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; align-items: center; color: var(--muted); font-size: 0.85rem; }
.foot a { color: var(--gold); }

@media (prefers-reduced-motion: reduce) { .bulb, .hub, .rays::before, .scene .win, .scene .star, .scene .smoke { animation: none; } .scene .smoke { opacity: 0; } }
