/*
  VOICE   Festive, confident, a little cheeky. Christmas campaign, not a crypto dashboard.
  IDEA    The page is the night scene from the banner: one continuous indigo winter night.
          Presents tied to paper tags, a village ballot printed on gift-wrap paper,
          and a lantern-lit trail through the snow.
  PICTURE The supplied MemeTree banner, full panorama; tags hang from its painted gifts.
  COLOUR  Sky indigo #101c8a over night #0a1062; lantern gold #ffc54d (primary action);
          ribbon red #cf1f33 and pine #143c2d ink on gift paper #f6e6c7; snow #e8eeff.
  TYPE    Shrikhand for the wordmark and campaign headlines; Figtree for everything you read;
          JetBrains Mono only for the contract address.
*/

@font-face { font-family: 'Shrikhand'; src: url('../fonts/shrikhand.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('../fonts/figtree-var.woff2') format('woff2'); font-weight: 300 900; font-display: swap; }
@font-face { font-family: 'Young Serif'; src: url('../fonts/young-serif.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('../fonts/jetbrains-mono-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  color-scheme: dark;
  --night-0: #060a35;
  --night-1: #0a1062;
  --sky: #101c8a;
  --snow: #e8eeff;
  --snow-2: #c3cdfa;
  --text: #eef1ff;
  --text-2: #c2caf5;
  --lantern: #ffc54d;
  --lantern-2: #ffe39a;
  --ribbon: #cf1f33;
  --ribbon-dk: #9b1224;
  --paper: #f6e6c7;
  --paper-2: #fdf6e6;
  --pine: #143c2d;
  --pine-2: #2c5a47;
  --elon: #27c4a8;
  --trump: #e2a52b;
  --display: 'Shrikhand', 'Cooper Black', Georgia, serif;
  --ui: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.45, .64, 1);
  --frame-max: 1760px;
}

*, *::before, *::after { box-sizing: border-box; }
* { min-width: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night-1);
  color: var(--text);
  font: 400 17px/1.55 var(--ui);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

:focus-visible { outline: 3px solid var(--lantern); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--lantern); color: #2b1600; padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ── Header ──────────────────────────────────────────────────────────── */
.site-header { position: absolute; left: 0; right: 0; top: 0; z-index: 30; background: transparent; }
.header-inner { max-width: 1320px; margin: 0 auto; min-height: 60px; padding: 6px clamp(16px, 3vw, 32px); display: flex; align-items: center; gap: 28px; }
.header-mark { display: flex; align-items: center; gap: 8px; color: #fff1d4; text-decoration: none; border-radius: 8px; }
.mark-glyph { width: 28px; height: 28px; }
.mark-word { font-family: var(--display); font-size: 22px; line-height: 1; padding-top: 2px; }
.site-nav { margin-left: auto; display: flex; gap: clamp(14px, 2.4vw, 30px); }
.site-nav a { position: relative; color: var(--text-2); font-size: 15px; font-weight: 600; text-decoration: none; padding: 12px 0; white-space: nowrap; transition: color .2s; }
.site-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; border-radius: 2px; background: var(--lantern); transform: scaleX(0); transform-origin: left; transition: transform .28s var(--ease-out); }
.site-nav a:hover { color: var(--text); }
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); }
.motion-toggle { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 13px 0 11px; border-radius: 999px; border: 1px solid rgba(232, 238, 255, .22); background: transparent; color: var(--text-2); font-size: 13px; font-weight: 600; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.motion-toggle:hover { background: rgba(255, 255, 255, .07); color: var(--text); border-color: rgba(232, 238, 255, .4); }
.mt-icon { width: 14px; height: 14px; }
.mt-play { display: none; }
.motion-toggle[aria-pressed="true"] .mt-play { display: block; }
.motion-toggle[aria-pressed="true"] .mt-pause { display: none; }

@media (min-width: 900px) { html { scroll-padding-top: 64px; } }

/* ── The Tree: scroll scene ──────────────────────────────────────────────
   Static composition is the default (no JS, Pause motion, reduced motion).
   .js:not(.motion-paused) turns on the sticky scene driven by scene.js.
   The panorama box is measured in banner units (--u = CSS px per banner px):
   1500 wide, 1620 tall = 420 sky extension + 500 banner + 700 snow apron. */
.scene { position: relative; background: var(--night-0); }
.stage {
  --u: clamp(.85px, calc(76vh / 480), 1.45px);
  --gx: 69vw;
  position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden;
  background: linear-gradient(180deg, #03062a 0%, #070b4e 45%, #0d1670 100%);
  isolation: isolate;
}
.pano {
  position: absolute; z-index: 1;
  width: calc(1500 * var(--u)); height: calc(1620 * var(--u));
  left: calc(69vw - 748 * var(--u));
  top: calc(88vh - 890 * var(--u));
  transform-origin: 0 0;
}
.pano-sky {
  position: absolute; left: 0; right: 0; top: 0; height: 31.5%;
  background:
    radial-gradient(28% 34% at 22% 100%, rgba(150, 40, 230, .55), transparent 70%),
    radial-gradient(26% 30% at 78% 100%, rgba(20, 170, 200, .45), transparent 70%),
    radial-gradient(1.2px 1.2px at 12% 30%, #fff 60%, transparent), radial-gradient(1px 1px at 33% 62%, #fff 60%, transparent),
    radial-gradient(1.4px 1.4px at 47% 18%, #fff 60%, transparent), radial-gradient(1px 1px at 58% 74%, #fff 60%, transparent),
    radial-gradient(1.2px 1.2px at 71% 40%, #fff 60%, transparent), radial-gradient(1px 1px at 86% 22%, #fff 60%, transparent),
    radial-gradient(1px 1px at 93% 70%, #fff 60%, transparent), radial-gradient(1.3px 1.3px at 5% 80%, #fff 60%, transparent),
    linear-gradient(180deg, #03062a 0%, #070a5a 70%, #0a0a78 100%);
}
.pano picture { position: absolute; left: 0; width: 100%; top: calc(420 / 1620 * 100%); height: calc(500 / 1620 * 100%); }
.pano picture {
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 13%, #000 95%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 13%, #000 95%, transparent 100%);
}
.pano-img { display: block; width: 100%; height: 100%; }
.pano-apron { position: absolute; left: 0; right: 0; top: calc(912 / 1620 * 100%); bottom: 0; background: linear-gradient(180deg, #4e65d8 0%, #3a4fbb 22%, #222f86 55%, #0c1350 100%); }
.topper-glow {
  position: absolute; left: calc(750 / 1500 * 100%); top: calc(452 / 1620 * 100%); width: 9%; aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(closest-side, rgba(255, 236, 180, .4), rgba(255, 200, 90, .14) 50%, transparent);
}
.win { display: none; }
.js .win {
  display: block; position: absolute; pointer-events: none; mix-blend-mode: screen; opacity: .9;
  transform: scale(2.4); border-radius: 40%;
  background: radial-gradient(closest-side, rgba(255, 226, 150, .95), rgba(255, 170, 70, .4) 50%, transparent);
}
.snowfall { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, transparent var(--snow-cut, 0%), #000 calc(var(--snow-cut, 0%) + 14%));
  mask-image: linear-gradient(90deg, transparent 0, transparent var(--snow-cut, 0%), #000 calc(var(--snow-cut, 0%) + 14%)); }
.scrim { position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(90deg, rgba(3, 6, 38, .82) 0%, rgba(3, 6, 38, .55) 30%, rgba(3, 6, 38, 0) 56%); }

/* Poster: title, tagline, one dominant action */
.poster {
  position: absolute; z-index: 6; left: max(5vw, 28px); top: calc(50% + 32px); transform: translateY(-46%);
  width: min(38vw, 540px);
}
.poster.is-gone { visibility: hidden; }
.wordmark {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(60px, 7.4vw, 124px); line-height: .98; letter-spacing: -.005em; white-space: nowrap;
  color: #fff1d4; text-shadow: .03em .04em 0 var(--ribbon), .06em .08em 0 #04072c; padding-top: .16em;
}
.wm-t { position: relative; display: inline-block; }
.wm-star { position: absolute; width: .3em; height: .3em; left: 54%; top: -.2em; color: var(--lantern); filter: drop-shadow(0 0 .07em rgba(255, 205, 90, .9)); }
.tagline { margin-top: .55em; font-family: 'Young Serif', Georgia, serif; font-size: clamp(24px, 2.3vw, 34px); line-height: 1.15; color: var(--snow); text-wrap: balance; }
.poster-note { margin-top: 12px; max-width: 34ch; font-size: 17px; line-height: 1.5; color: var(--text-2); }
.poster-actions { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; }
.text-link { color: var(--snow); font-weight: 650; font-size: 16px; text-decoration: underline; text-decoration-color: rgba(255, 214, 120, .6); text-underline-offset: 5px; text-decoration-thickness: 1.5px; padding: 12px 0; }
.text-link:hover { text-decoration-color: var(--lantern); }
.contract { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 14px; color: var(--text-2); }
.contract.is-pending { font-weight: 600; }
.contract-label { font-weight: 700; color: var(--lantern-2); }
.contract-value { font-family: var(--mono); font-size: 13.5px; color: var(--snow); overflow-wrap: anywhere; }
.contract-copy { min-height: 36px; padding: 0 12px; border: 0; border-radius: 9px; background: rgba(232, 238, 255, .1); color: var(--snow); font-weight: 700; font-size: 13.5px; cursor: pointer; transition: background-color .2s; }
.contract-copy:hover { background: rgba(232, 238, 255, .18); }
.contract-copy.is-done { background: rgba(47, 227, 189, .2); color: #b4fff0; }
.contract-status, .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 0 28px; border: 0; border-radius: 14px;
  font: 700 17px/1.1 var(--ui); text-decoration: none; text-align: center; cursor: pointer;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: transform .2s var(--ease-out), box-shadow .25s var(--ease-out), background-color .2s, color .2s;
}
.btn:active { transform: scale(.96); transition-duration: .06s; }
.btn-buy {
  background: linear-gradient(180deg, #ffdb7d 0%, #ffbd3e 100%); color: #3a1d00;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), inset 0 -2px 0 rgba(150, 80, 0, .3), 0 12px 30px -8px rgba(255, 180, 60, .55);
}
.btn-buy:hover { transform: translateY(-2px); }
.btn-buy.is-pending { background: rgba(255, 214, 120, .1); color: var(--lantern-2); box-shadow: inset 0 0 0 1.5px rgba(255, 214, 120, .5); cursor: default; }
.btn-buy.is-pending:hover, .btn-buy.is-pending:active { transform: none; }

/* Near branch with baubles (foreground, moves faster than the village) */
.fg-branch { display: none; }
.fg-branch-art { display: block; width: 100%; height: auto; overflow: visible; }
.bauble { position: absolute; transform-origin: 50% 0; display: block; padding: 0; border: 0; background: none; color: inherit; -webkit-tap-highlight-color: transparent; }
.bauble-swing { display: block; }
.bauble:focus-visible { outline: 3px solid var(--lantern); outline-offset: 4px; border-radius: 40% 40% 50% 50%; }
.bauble svg { display: block; width: 100%; height: auto; overflow: visible; }
.bauble-swing { transform-origin: 50% 0; }
.bauble--1 { left: 24.6%; top: 50%; width: 12.6%; }
.bauble--2 { left: 50%; top: 39%; width: 14%; }
.bauble--3 { left: 73.6%; top: 30%; width: 11%; }
.bauble .glint { transform: translateX(-90px); }
.bauble.is-moment .bauble-swing { animation: bauble-swing 1.7s cubic-bezier(.3, .6, .3, 1) both; }
.bauble.is-moment .glint { animation: rim-glint .75s ease-out both; }
@keyframes bauble-swing { 0% { transform: rotate(0); } 18% { transform: rotate(5.5deg); } 42% { transform: rotate(-3.4deg); } 64% { transform: rotate(1.7deg); } 82% { transform: rotate(-.7deg); } 100% { transform: rotate(0); } }
@keyframes rim-glint { from { transform: translateX(-90px); } to { transform: translateX(110px); } }

/* Ground: snowbank with the presents */
.ground { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; height: 21vh; min-height: 170px; }
.ground-snow { position: absolute; inset: 0; pointer-events: none; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 7%); mask-image: linear-gradient(180deg, transparent 0, #000 7%); }
.snowbank-art { display: block; width: 100%; height: 100%; }
.gifts { position: absolute; left: var(--gx); top: 0; transform: translate(-50%, -36%); transform-origin: 50% 100%; display: flex; align-items: flex-end; gap: clamp(14px, 2.6vw, 40px); }

/* Presents */
.gift { --gw: 140px; position: relative; }
.gift--telegram { --gw: 196px; margin-bottom: -14px; }
.gift-box { position: relative; display: block; width: var(--gw); height: calc(var(--gw) * 1.12); cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; border-radius: 10px; }
.gift-box::-webkit-details-marker { display: none; }
.gift-box::marker { content: ''; }
.gift-shadow { position: absolute; left: -8%; right: -8%; bottom: -7%; height: 18%; border-radius: 50%; background: radial-gradient(closest-side, rgba(20, 30, 100, .5), transparent); }
.gift-body { position: absolute; left: 0; right: 0; bottom: 0; height: 64%; border-radius: 3px; overflow: hidden; box-shadow: 0 2px 0 rgba(0, 0, 0, .15); }
.gift-body-art { display: block; width: 100%; height: 100%; }
.gift-lid { position: absolute; left: -5%; width: 110%; bottom: 60%; transform-origin: 6% 92%; transition: transform .32s var(--ease-spring); }
.gift-lid-art { display: block; width: 100%; height: auto; overflow: visible; }
.gift-lid .bow-loop, .gift-lid .bow-tail { transform-box: fill-box; transition: transform .3s var(--ease-out), opacity .3s; }
.gift-lid .bow-loop-l { transform-origin: 100% 100%; }
.gift-lid .bow-loop-r { transform-origin: 0 100%; }
.gift-medal { position: absolute; right: 9%; bottom: 10%; width: 28%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: #fffaf0; box-shadow: 0 2px 6px rgba(20, 10, 0, .35); }
.gift-medal svg { width: 62%; height: 62%; }
.gift-medal--x { background: #111; color: #fff; }
.gift-medal--x svg { width: 48%; height: 48%; }
.gift-medal--chart { color: #3a2a1a; }
.gift-box:hover .gift-lid, .gift-box:focus-visible .gift-lid { transform: translateY(-9%) rotate(-3deg); }
.gift-box:focus-visible { outline: 3px solid var(--lantern); outline-offset: 8px; }
.gift-box:active .gift-body { transform: scaleY(.97); transform-origin: bottom; }
.gift[open] .gift-lid { transform: translate(-16%, -46%) rotate(-38deg); transition-duration: .38s; transition-delay: .08s; }
.gift[open] .bow-loop-l { transform: rotate(-38deg) scale(.82); opacity: .9; }
.gift[open] .bow-loop-r { transform: rotate(40deg) scale(.82); opacity: .9; }
.gift[open] .bow-tail { transform: translateY(18%) rotate(8deg); opacity: .7; }
.gift.is-closing .gift-lid { transform: none; transition-delay: 0s; }
.gift-card {
  position: absolute; z-index: 2; bottom: calc(var(--gw) * .9); left: 50%; width: 272px;
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start;
  padding: 14px 10px 14px 14px; border-radius: 14px; color: #2a1b10;
  background: linear-gradient(180deg, #fffaf0, #f3e3c2); box-shadow: 0 18px 40px -12px rgba(2, 4, 30, .7);
  transform: translateX(-50%); transform-origin: 50% 100%;
  animation: card-out .42s .14s cubic-bezier(.2, 1.3, .4, 1) both;
}
.gift--chart .gift-card { left: 0; transform: none; transform-origin: 20% 100%; }
.gift--x .gift-card { left: auto; right: 0; transform: none; transform-origin: 80% 100%; }
.gift.is-closing .gift-card { animation: card-in .2s ease-in both; }
@keyframes card-out { from { opacity: 0; translate: 0 34px; scale: .82; } }
@keyframes card-in { to { opacity: 0; translate: 0 24px; scale: .9; } }
.gift-card-logo { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: #fff; box-shadow: inset 0 0 0 1px rgba(120, 70, 20, .12); }
.gift-card-logo svg { width: 26px; height: 26px; }
.gift-card-logo.gift-medal--x svg { width: 18px; height: 18px; }
.gift-card-dest { font-size: 13px; font-weight: 700; color: #8a6038; }
.gift-card-title { font-size: 18px; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }
.gift-card-link { display: inline-block; margin-top: 6px; padding: 6px 0; font-size: 14px; font-weight: 700; color: #9b1224; overflow-wrap: break-word; text-decoration: underline; text-underline-offset: 3px; }
.gift-card-soon { margin-top: 4px; font-size: 14px; line-height: 1.35; color: #6e5236; }
.gift-close { width: 36px; height: 36px; margin: -6px -2px 0 0; border: 0; border-radius: 50%; background: transparent; color: #6e5236; font-size: 24px; line-height: 1; cursor: pointer; }
.gift-close:hover { background: rgba(110, 82, 54, .12); }
.gift-card :focus-visible { outline-color: #9b1224; }

/* Click spark */
.spark { position: fixed; z-index: 60; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #ffe39a; pointer-events: none; box-shadow: 0 0 6px #ffc54d; animation: spark .5s ease-out forwards; }
@keyframes spark { to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }

/* ── Animated mode ── */
@media (prefers-reduced-motion: no-preference) { .topper-glow { animation: topper 4.5s ease-in-out infinite; } }
@keyframes topper { 50% { opacity: .55; transform: translate(-50%, -50%) scale(.85); } }
.motion-paused .topper-glow { animation: none; }
.js:not(.motion-paused) .scene { height: 225vh; }
.js:not(.motion-paused) .stage {
  --u: clamp(.9px, calc((100vh - 110px) / 480), 1.75px); --gx: 50vw;
  position: sticky; top: 0;
}
/* hero frame: the whole tree from the Solana star to the presents, centred under the header */
.js:not(.motion-paused) .pano { left: min(0px, calc(68vw - 748 * var(--u))); top: calc(64px + max(0px, (100vh - 64px - 480 * var(--u)) / 2) - 420 * var(--u)); will-change: transform; }
.js:not(.motion-paused) .win { opacity: 0; }
.js:not(.motion-paused) .fg-branch { display: block; position: absolute; z-index: 5; right: -3vw; top: 0; width: min(72vw, 1180px); transform: translate3d(0, 110vh, 0); will-change: transform; }
.js:not(.motion-paused) .ground { top: 0; bottom: auto; height: 64vh; transform: translate3d(0, 100vh, 0); will-change: transform; }
.js:not(.motion-paused) .ground:not(.is-live) .gift-box { pointer-events: none; }
.js:not(.motion-paused) .poster { will-change: opacity, transform; }

/* ── Header over the scene ── */
@media (min-width: 900px) {
  .site-header { position: fixed; left: 0; right: 0; top: 0; background: transparent; transition: background-color .3s; }
  .site-header.is-solid { background: rgba(6, 10, 53, .94); }
  .site-header:not(.is-solid) .header-mark { opacity: 0; pointer-events: none; }
}

/* ── Portrait / phone composition ── */
@media (max-width: 699px), (max-aspect-ratio: 4/5) {
  .stage { --u: clamp(.55px, calc(100vw / 560), 1.2px); --gx: 50vw; min-height: 0; height: max(100svh, calc(400px + 480 * var(--u) + 150px)); }
  .pano { left: calc(50vw - 748 * var(--u)); top: calc(400px - 450 * var(--u)); }
  .scrim { background: linear-gradient(180deg, rgba(3, 6, 38, .7) 0%, rgba(3, 6, 38, .35) 30%, rgba(3, 6, 38, 0) 46%); }
  .poster { left: 20px; right: 20px; top: 64px; width: auto; transform: none; }
  .wordmark { font-size: clamp(46px, 15vw, 88px); }
  .tagline { font-size: 23px; margin-top: .4em; }
  .poster-note { font-size: 15.5px; margin-top: 8px; }
  .poster-actions { margin-top: 16px; gap: 6px 20px; }
  .poster-actions .btn { min-height: 50px; padding: 0 22px; font-size: 16px; }
  .contract { margin-top: 10px; font-size: 13px; }
  .ground { height: 150px; min-height: 0; }
  .gifts { gap: 10px; }
  .gift { --gw: 88px; }
  .gift--telegram { --gw: 124px; margin-bottom: -8px; }
  .gift-card { width: min(236px, calc(100vw - 32px)); }
  .js:not(.motion-paused) .scene { height: calc(100svh + 80svh); }
  .js:not(.motion-paused) .stage { --u: clamp(.62px, calc((100svh - 360px) / 480), 1.2px); height: 100svh; }
  .js:not(.motion-paused) .pano { left: calc(50vw - 748 * var(--u)); top: calc(100svh - 490 * var(--u) - 420 * var(--u)); }
  .js:not(.motion-paused) .fg-branch { width: 118vw; right: -14vw; }
  .js:not(.motion-paused) .ground { height: 66svh; }
  .snowfall { -webkit-mask-image: linear-gradient(180deg, transparent 0, transparent var(--snow-cut, 0%), #000 calc(var(--snow-cut, 0%) + 10%)); mask-image: linear-gradient(180deg, transparent 0, transparent var(--snow-cut, 0%), #000 calc(var(--snow-cut, 0%) + 10%)); }
}

/* ── Santa of the Year ───────────────────────────────────────────────── */
.santa {
  position: relative; padding: clamp(56px, 8vw, 112px) clamp(12px, 3vw, 32px);
  background: radial-gradient(60% 34% at 50% 32%, rgba(40, 56, 170, .45), transparent 75%), var(--night-1);
}
.ballot {
  position: relative; max-width: 1060px; margin: 0 auto; color: var(--pine);
  padding: clamp(26px, 4.4vw, 60px) clamp(16px, 4.4vw, 60px) clamp(26px, 4vw, 48px);
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .45  0 0 0 0 .3  0 0 0 0 .12  0 0 0 .09 0'/></filter><rect width='180' height='180' filter='url(%23n)'/></svg>"),
    radial-gradient(120% 80% at 20% 0%, #fdf3dd, transparent 60%),
    var(--paper);
  border-radius: 6px;
  box-shadow: 0 2px 0 #e2cca2, 0 40px 90px -20px rgba(2, 4, 30, .75);
}
.ballot::before { content: ''; position: absolute; inset: clamp(8px, 1.4vw, 14px); border: 4px double rgba(207, 31, 51, .8); border-radius: 3px; pointer-events: none; }
.ballot :focus-visible { outline-color: var(--ribbon-dk); }
.ballot-head { position: relative; padding-right: clamp(0px, 18vw, 200px); }
.ballot-issuer { font-size: 15px; font-style: italic; font-weight: 500; color: var(--pine-2); }
.ballot-title { margin-top: 6px; font-family: var(--display); font-weight: 400; font-size: clamp(40px, 6vw, 72px); line-height: 1.02; color: var(--ribbon); text-wrap: balance; }
.ballot-intro { margin-top: 10px; font-size: clamp(18px, 1.9vw, 21px); line-height: 1.4; font-weight: 600; max-width: 34ch; }
.ballot-deadline { margin-top: 10px; font-size: 15px; font-weight: 600; color: var(--pine-2); font-variant-numeric: tabular-nums; }
.postmark { position: absolute; right: -8px; top: -6px; width: clamp(150px, 20vw, 220px); color: rgba(207, 31, 51, .62); transform: rotate(-9deg); pointer-events: none; }

.candidates { margin-top: clamp(22px, 3.4vw, 40px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 3.4vw, 40px); }
.postcard {
  position: relative; background: var(--paper-2); padding: clamp(6px, 1vw, 12px);
  border-radius: 4px; box-shadow: 0 1px 0 rgba(120, 80, 30, .15), 0 14px 30px -14px rgba(60, 30, 0, .45);
}
@media (min-width: 720px) {
  .postcard--a { transform: rotate(-1deg); }
  .postcard--b { transform: rotate(1deg); }
}
.postcard-art { position: relative; aspect-ratio: 480 / 340; overflow: hidden; border-radius: 2px; background: #18239a; }
.postcard-art .sleigh-art { width: 100%; height: 100%; }
.postcard-body { padding: clamp(10px, 1.6vw, 18px) clamp(4px, 1vw, 10px) clamp(4px, .8vw, 8px); display: flex; flex-direction: column; gap: 4px; }
.postcard-name { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.05; color: var(--pine); }
.postcard-caption { font-size: clamp(15px, 1.5vw, 17px); line-height: 1.35; color: #4a3a26; min-height: 2.7em; }
.btn-vote { margin-top: 10px; width: 100%; background: var(--pine); color: var(--paper-2); border-radius: 12px; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .25); }
.btn-vote:hover:not(:disabled) { background: #1d5240; transform: translateY(-1px); }
.btn-vote:disabled { cursor: default; background: transparent; color: rgba(20, 60, 45, .62); box-shadow: inset 0 0 0 1.5px rgba(20, 60, 45, .3); }
.btn-vote:disabled:active { transform: none; }
.btn-vote.is-busy { background: var(--pine); color: var(--paper-2); box-shadow: none; opacity: .85; }
.btn-vote.is-chosen { opacity: 1; background: var(--ribbon); color: #fff6e8; }
.btn-vote.is-chosen::before { content: ''; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M4 10.5l3.6 3.6L16 5.8' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M4 10.5l3.6 3.6L16 5.8' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / contain no-repeat; }

/* Rubber stamp */
.vote-stamp {
  position: absolute; right: 7%; top: 9%; display: grid; place-items: center;
  padding: .3em .7em .38em; border: .14em solid currentColor; border-radius: .5em;
  color: #e3283f; font-family: var(--display); font-size: clamp(18px, 3.2vw, 34px); line-height: 1;
  background: rgba(255, 246, 232, .82);
  box-shadow: 0 0 0 .08em rgba(255, 246, 232, .82), inset 0 0 0 .06em currentColor;
  opacity: 0; transform: rotate(-12deg) scale(1.9); pointer-events: none;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='60'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' seed='4'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 -1.1 1.45'/></filter><rect width='120' height='60' filter='url(%23g)'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='60'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' seed='4'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 -1.1 1.45'/></filter><rect width='120' height='60' filter='url(%23g)'/></svg>");
}
.postcard.is-voted .vote-stamp { opacity: 1; transform: rotate(-12deg) scale(1); }
.postcard.stamp-anim .vote-stamp { animation: stamp-down .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.postcard.stamp-anim .postcard-art { animation: stamp-thud .5s ease-out both; }
@keyframes stamp-down {
  0% { opacity: 0; transform: rotate(-20deg) scale(2.2); }
  55% { opacity: 1; transform: rotate(-11deg) scale(.94); }
  100% { opacity: 1; transform: rotate(-12deg) scale(1); }
}
@keyframes stamp-thud { 0%, 40% { transform: none; } 55% { transform: translateY(2px) scale(.992); } 100% { transform: none; } }

/* Results */
.results { margin-top: clamp(24px, 3.6vw, 40px); }
.results-legend { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.legend { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; font-variant-numeric: tabular-nums; }
.legend--b { justify-content: flex-end; text-align: right; }
.legend-name { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; font-size: 17px; }
.legend-name::before { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--elon); box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, .15); }
.legend--b .legend-name::before { background: var(--trump); }
.legend-pct { font-weight: 800; font-size: clamp(22px, 2.6vw, 28px); line-height: 1; }
.legend-count { font-size: 14px; font-weight: 500; color: #5d4a33; }
.bar { position: relative; height: 24px; margin: 10px 0 12px; border-radius: 999px; overflow: hidden; background: #e7d2a8; box-shadow: inset 0 1px 3px rgba(80, 50, 10, .3); }
.bar-fill { position: absolute; top: 0; bottom: 0; width: 100%; transition: transform 1.1s var(--ease-out); }
.bar-a { left: 0; transform-origin: left center; transform: scaleX(var(--a, 0)); background: linear-gradient(180deg, #4fe0c4, var(--elon)); }
.bar-b { right: 0; transform-origin: right center; transform: scaleX(var(--b, 0)); background: linear-gradient(180deg, #f2c457, var(--trump)); }
.bar-empty { position: absolute; inset: 0; display: none; place-items: center; font-size: 13px; font-weight: 700; color: #5d4a33; }
.results[data-state="empty"] .bar { background: repeating-linear-gradient(-45deg, #ead8b3 0 10px, #e2cda2 10px 20px); }
.results[data-state="empty"] .bar-empty { display: grid; }
.results[data-state="loading"] .bar, .results[data-state="unavailable"] .bar { background: repeating-linear-gradient(-45deg, #ead8b3 0 10px, #e2cda2 10px 20px); }
.results[data-state="loading"] .legend-pct, .results[data-state="unavailable"] .legend-pct { color: #a08a6a; }
.results-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; }
.results-status { font-size: 15.5px; font-weight: 600; color: var(--pine); max-width: 52ch; }
.results-status.is-error { color: var(--ribbon-dk); }
.results-actions { display: flex; align-items: center; gap: 12px; }
.btn-ink { min-height: 46px; padding: 0 20px; font-size: 15.5px; background: transparent; color: var(--pine); box-shadow: inset 0 0 0 1.5px var(--pine); border-radius: 12px; }
.btn-ink:hover { background: rgba(20, 60, 45, .08); }
.preview-note { margin-top: 14px; padding-top: 12px; border-top: 1px dashed rgba(20, 60, 45, .3); font-size: 13.5px; color: #5d4a33; }
.share-status { font-size: 14px; font-weight: 600; color: var(--pine-2); overflow-wrap: anywhere; }

/* ── Roadmap ─────────────────────────────────────────────────────────── */
.roadmap { position: relative; overflow: hidden; padding: clamp(60px, 7vw, 104px) 0 clamp(44px, 5vw, 72px); background: linear-gradient(180deg, var(--night-1), #0b1366 70%, var(--night-0)); }
.roadmap-inner { max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 32px); }
.section-title { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 5.4vw, 64px); line-height: 1.04; color: #fff1d4; text-shadow: .03em .04em 0 var(--ribbon); text-wrap: balance; }
.route { position: relative; margin-top: clamp(4px, 1vw, 12px); }
.route-land { width: calc(100% + 2 * clamp(16px, 3vw, 32px)); max-width: none; margin-inline: calc(-1 * clamp(16px, 3vw, 32px)); height: auto;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%); }
.route-vertical { display: none; }
.milestones { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.milestone { text-align: center; }
.milestone-icon { display: none; }
.milestone-text { max-width: 30ch; margin: 0 auto; }
.milestone-num { font-size: 14px; font-weight: 800; color: var(--lantern); font-variant-numeric: tabular-nums; }
.milestone-title { margin-top: 2px; font-size: 21px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; color: var(--snow); }
.milestone-copy { margin-top: 6px; font-size: 16px; line-height: 1.5; color: var(--text-2); }
.badge { display: inline-block; vertical-align: 3px; margin-left: 4px; padding: 3px 9px 4px; border-radius: 999px; font-size: 12.5px; font-weight: 700; line-height: 1.1; letter-spacing: .01em; }
.badge--proposed { color: var(--lantern-2); box-shadow: inset 0 0 0 1.5px rgba(255, 214, 120, .6); background-image: none; border: 0; }
.badge--live { background: var(--lantern); color: #3a1d00; }
.badge--complete { background: rgba(47, 227, 189, .18); color: #a9fbe9; box-shadow: inset 0 0 0 1.5px rgba(47, 227, 189, .55); }

/* illuminated trail: armed by script, lit once when the section enters view */
.route.trail-armed .trail { stroke-dasharray: 1000; stroke-dashoffset: 1000; }
.route.trail-armed .trail-glow { stroke-dasharray: 1000; stroke-dashoffset: 1000; }
.route.trail-armed.is-lit .trail, .route.trail-armed.is-lit .trail-glow { stroke-dashoffset: 0; transition: stroke-dashoffset 2.4s cubic-bezier(.45, .05, .25, 1); }
.route.trail-armed.is-lit .trail-glow { transition-delay: .1s; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.site-footer { background: var(--night-0); padding: 36px clamp(16px, 3vw, 32px) 40px; }
.footer-inner { max-width: 1240px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.footer-mark { text-decoration: none; border-radius: 8px; }
.footer-mark .wordmark-sm { font-size: 34px; padding-top: .18em; text-shadow: .03em .04em 0 var(--ribbon); }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; font-weight: 600; }
.footer-links a { color: var(--text); text-decoration: none; display: inline-block; padding: 10px 0; border-bottom: 1.5px solid rgba(255, 214, 120, .45); line-height: 1.1; }
.footer-links a:hover { border-color: var(--lantern); }
.soon { color: var(--text-2); display: inline-block; padding: 10px 0; }
.soon-tag { color: #8f99d6; font-weight: 500; }
.back-to-tree { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 12px; color: var(--lantern-2); font-weight: 700; font-size: 15px; text-decoration: none; box-shadow: inset 0 0 0 1.5px rgba(255, 214, 120, .45); transition: background-color .2s; }
.back-to-tree::before { content: ''; width: 10px; height: 10px; border-left: 2px solid currentColor; border-top: 2px solid currentColor; transform: translateY(2px) rotate(45deg); }
.back-to-tree:hover { background: rgba(255, 214, 120, .1); }
.fine-print { max-width: 1240px; margin: 22px auto 0; font-size: 13px; line-height: 1.5; color: #8f99d6; }

/* ── Motion: first paint sequence, pause, reduced motion ─────────────── */
@media (prefers-reduced-motion: no-preference) {
  .poster > * { animation: rise .7s var(--ease-out) both; }
  .poster > :nth-child(2) { animation-delay: .08s; } .poster > :nth-child(n+3) { animation-delay: .16s; }
  .r1 { animation-delay: .04s; } .r2 { animation-delay: .1s; } .r3 { animation-delay: .2s; } .r4 { animation-delay: .3s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.motion-paused .poster > * { animation: none; }
.motion-paused .bar-fill, .motion-paused .route.is-lit .trail, .motion-paused .route.is-lit .trail-glow { transition: none !important; }
.motion-paused .postcard.stamp-anim .vote-stamp, .motion-paused .postcard.stamp-anim .postcard-art { animation: none; }
.motion-paused, .motion-paused body { scroll-behavior: auto; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ── Tablet ──────────────────────────────────────────────────────────── */
@media (max-width: 1023px) {
  .milestone-title { font-size: 19px; }
  .milestone-copy { font-size: 15px; }
}

/* ── Phone ───────────────────────────────────────────────────────────── */
@media (max-width: 719px) {
  body { font-size: 16px; }
  .header-inner { gap: 10px; min-height: 52px; padding-right: 8px; }
  .header-mark { display: none; }
  .site-nav { margin-left: 0; gap: 18px; overflow-x: auto; scrollbar-width: none; }
  .site-nav a { font-size: 14.5px; padding: 14px 0; }
  .motion-toggle { margin-left: auto; width: 44px; min-height: 44px; padding: 0; justify-content: center; border-color: rgba(232, 238, 255, .18); }
  .mt-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

  .ballot-head { padding-right: 0; }
  .postmark { width: 104px; right: -4px; top: -10px; }
  .ballot-issuer { font-size: 13.5px; padding-right: 96px; }
  .ballot-intro { font-size: 17px; }
  .postcard-name { font-size: 24px; }
  .postcard-caption { font-size: 14px; min-height: 3.9em; }
  .btn-vote { min-height: 48px; font-size: 15px; padding: 0 8px; }
  .vote-stamp { font-size: 17px; right: 5%; top: 7%; }
  .legend-pct { font-size: 22px; }
  .legend-count { flex-basis: 100%; font-size: 13px; }
  .results-foot { flex-direction: column; align-items: stretch; }
  .results-actions .btn-ink { width: 100%; }
  .results-actions { flex-direction: column; align-items: stretch; }

  .route-land { display: none; }
  .route { margin-top: 24px; }
  .route-vertical { display: block; position: absolute; left: 28px; top: 36px; bottom: 36px; width: 40px; height: calc(100% - 72px); }
  .milestones { grid-template-columns: minmax(0, 1fr); gap: 22px; margin: 0; }
  .milestone { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: start; text-align: left; }
  .milestone-icon { display: block; position: relative; z-index: 1; width: 96px; height: 96px; }
  .milestone-text { margin: 0; padding-top: 14px; max-width: none; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .back-to-tree { margin-left: 0; }
}
@media (max-width: 380px) {
  .site-nav { gap: 14px; }
  .site-nav a { font-size: 14px; }
}

/* ── Stage 2: calmer section type, posters on the square, sleigh trail ── */
.section-title { font-family: 'Young Serif', Georgia, serif; font-weight: 400; color: #fff1d4; text-shadow: none; font-size: clamp(38px, 4.6vw, 60px); letter-spacing: -.01em; }
.santa { overflow: hidden; padding: clamp(64px, 8vw, 112px) clamp(14px, 3vw, 32px) 0; background:
  radial-gradient(40% 30% at 50% 58%, rgba(255, 196, 100, .16), transparent 70%),
  linear-gradient(180deg, #0e1552 0%, var(--night-1) 45%, #0b1258 72%, #1a2670 100%); }
.santa-inner { position: relative; max-width: 1120px; margin: 0 auto; padding-bottom: clamp(48px, 6vw, 80px); }
.santa-head { text-align: center; max-width: 640px; margin: 0 auto; }
.santa-intro { margin-top: 12px; font-size: clamp(17px, 1.7vw, 20px); color: var(--text-2); }
.santa .ballot-deadline { margin-top: 10px; color: var(--lantern-2); font-size: 15px; font-weight: 600; }
.posters { position: relative; max-width: 860px; margin-left: auto; margin-right: auto; margin-top: clamp(30px, 4vw, 52px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 6vw, 96px); align-items: end; }
.posters::after { content: ''; position: absolute; left: -12%; right: -12%; bottom: 64px; height: 90px; z-index: 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(225, 233, 255, .9), rgba(150, 170, 240, .5) 60%, transparent); filter: blur(2px); }
.billboard { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.billboard-sheet { position: relative; z-index: 1; width: 100%; padding: clamp(10px, 1.6vw, 18px) clamp(10px, 1.6vw, 18px) clamp(14px, 2vw, 24px); border-radius: 6px; text-align: center; box-shadow: 0 30px 50px -24px rgba(0, 0, 0, .7); }
.billboard--a .billboard-sheet { transform: rotate(-1.2deg); color: #e9fbff;
  background: repeating-linear-gradient(-45deg, #f2c14e 0 10px, #0d2244 10px 20px) bottom / 100% 12px no-repeat,
    radial-gradient(circle at 50% 36%, transparent 30%, rgba(80, 230, 210, .18) 30.5%, transparent 31.5%, transparent 41%, rgba(80, 230, 210, .12) 41.5%, transparent 42.5%),
    linear-gradient(170deg, #0f3a5a, #071a3a 70%); }
.billboard--b .billboard-sheet { transform: rotate(1.2deg); color: #fff3d0;
  background: radial-gradient(circle at 0 0, #f2c14e 0 9px, transparent 10px), radial-gradient(circle at 100% 0, #f2c14e 0 9px, transparent 10px),
    radial-gradient(circle at 0 100%, #f2c14e 0 9px, transparent 10px), radial-gradient(circle at 100% 100%, #f2c14e 0 9px, transparent 10px),
    linear-gradient(170deg, #9b1029, #5a0618 75%);
  box-shadow: inset 0 0 0 5px #d9a43a, inset 0 0 0 7px #5a0618, inset 0 0 0 8px #f2c14e, 0 30px 50px -24px rgba(0, 0, 0, .7); }
.billboard-art { position: relative; overflow: hidden; aspect-ratio: 480 / 340; border-radius: 4px; }
.billboard--a .billboard-art { border-radius: 50% 50% 6px 6px / 38% 38% 6px 6px; }
.billboard--b .billboard-art { border-radius: 46% 46% 4px 4px / 30% 30% 4px 4px; box-shadow: 0 0 0 3px #f2c14e; }
.billboard-art .sleigh-art { width: 100%; height: 100%; }
.billboard-name { margin-top: clamp(10px, 1.4vw, 16px); font-family: 'Young Serif', Georgia, serif; font-weight: 400; font-size: clamp(28px, 3.6vw, 48px); line-height: 1.05; }
.billboard--b .billboard-name { color: #f6cf6a; }
.billboard-caption { margin-top: 6px; font-size: clamp(14px, 1.5vw, 18px); line-height: 1.35; opacity: .92; min-height: 2.7em; }
.billboard-posts { position: relative; z-index: 0; width: 64%; height: 46px; margin-top: -4px;
  background: linear-gradient(90deg, transparent 0 8%, #4a2f1c 8% 13%, transparent 13% 87%, #4a2f1c 87% 92%, transparent 92%); }
.billboard .btn-vote { position: relative; z-index: 2; margin-top: 4px; width: min(100%, 280px); background: #fff4dc; color: #2a1b10; border-radius: 14px; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .6); }
.billboard .btn-vote:hover:not(:disabled) { background: #fff; transform: translateY(-2px); }
.billboard .btn-vote:disabled { background: rgba(255, 244, 220, .14); color: rgba(255, 244, 220, .6); box-shadow: none; }
.billboard .btn-vote.is-busy { background: #fff4dc; color: #2a1b10; opacity: .8; }
.billboard .btn-vote.is-chosen { background: var(--ribbon); color: #fff6e8; opacity: 1; }
.billboard .vote-stamp { top: 12%; right: 8%; font-size: clamp(18px, 2.6vw, 32px); }
.billboard.is-voted .vote-stamp { opacity: 1; transform: rotate(-12deg) scale(1); }
.billboard.stamp-anim .vote-stamp { animation: stamp-down .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.billboard.stamp-anim .billboard-sheet { animation: sheet-thud .45s ease-out both; }
@keyframes sheet-thud { 45% { translate: 0 3px; } }
.santa .results { max-width: 760px; margin: clamp(26px, 3vw, 40px) auto 0; color: var(--text); }
.santa .legend-count { color: var(--text-2); }
.santa .bar { height: 12px; overflow: visible; background: rgba(232, 238, 255, .14); box-shadow: none; margin: 18px 0 16px; }
.santa .bar-fill { border-radius: 999px; }
.bar-marker { position: absolute; top: 50%; left: calc(var(--a, .5) * 100%); width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6cf, #f2c14e 55%, #a8711a); box-shadow: 0 0 0 3px #0a1062, 0 4px 12px rgba(0, 0, 0, .5); transition: left 1.1s var(--ease-out); }
.bar-marker::after { content: ''; position: absolute; inset: 9px; background: #7a4a0c; clip-path: polygon(50% 0, 62% 38%, 100% 38%, 69% 60%, 80% 100%, 50% 76%, 20% 100%, 31% 60%, 0 38%, 38% 38%); }
.santa .results[data-state="empty"] .bar-marker { left: 50%; }
.santa .results[data-state="loading"] .bar-marker, .santa .results[data-state="unavailable"] .bar-marker { display: none; }
.santa .results[data-state="empty"] .bar, .santa .results[data-state="loading"] .bar, .santa .results[data-state="unavailable"] .bar { background: rgba(232, 238, 255, .12); }
.santa .bar-empty { color: var(--text-2); top: 22px; inset: auto 0 auto 0; }
.santa .results[data-state="empty"] .bar-empty { display: block; text-align: center; top: 24px; }
.santa .results[data-state="empty"] .results-foot { margin-top: 34px; }
.santa .results-status { color: var(--text); }
.santa .results-status.is-error { color: #ff9aa6; }
.btn-quiet { min-height: 46px; padding: 0 20px; font-size: 15px; background: rgba(232, 238, 255, .1); color: var(--snow); border-radius: 12px; }
.btn-quiet:hover { background: rgba(232, 238, 255, .18); }
.santa .share-status { color: var(--text-2); }
.santa .preview-note { color: #8f99d6; border-top-color: rgba(232, 238, 255, .15); }
.motion-paused .billboard.stamp-anim .vote-stamp, .motion-paused .billboard.stamp-anim .billboard-sheet { animation: none; }
.motion-paused .bar-marker { transition: none; }

.route-sleigh { position: absolute; left: 0; top: 0; z-index: 3; width: 54px; height: 34px; margin: -30px 0 0 -27px; pointer-events: none; transform-origin: 27px 30px; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .45)); }
.route-sleigh svg { width: 100%; height: 100%; display: block; }
.route.trail-armed .trail, .route.trail-armed .trail-glow { stroke-dasharray: 1000; transition: none; }
.milestone-num, .milestone-title, .milestone-icon { transition: color .4s, filter .4s; }
.route.trail-armed .milestone:not(.is-reached) .milestone-num { color: #8f99d6; }
.milestone.is-reached .milestone-title { color: #fff1d4; }
.milestone.is-reached .milestone-icon { filter: drop-shadow(0 0 10px rgba(255, 200, 90, .55)); }

@media (max-width: 719px) {
  .posters { gap: 12px; }
  .posters::after { bottom: 58px; }
  .billboard-caption { font-size: 13.5px; min-height: 3.9em; }
  .billboard .btn-vote { min-height: 48px; font-size: 15px; padding: 0 8px; }
  .billboard-posts { height: 30px; }
  .route-sleigh { width: 44px; height: 28px; margin: -24px 0 0 -22px; transform-origin: 22px 24px; }
}

/* ── Intro: black, sharp digits, lots of space ─────────────────────────── */
@font-face { font-family: 'Chakra Petch'; src: url('../fonts/chakra-petch-400.woff2') format('woff2'); font-weight: 400; font-display: block; }
.intro { display: none; }
.js.show-intro .intro {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(44px, 9vh, 96px);
  position: fixed; inset: 0; z-index: 100; background: #000; color: #f1f4f8;
}
.js.show-intro, .js.show-intro body { overflow: hidden; }
.clock { display: flex; align-items: flex-start; justify-content: center; font-family: 'Chakra Petch', 'Arial Narrow', sans-serif; font-weight: 400; font-size: min(12.5vw, 24vh); line-height: 1; letter-spacing: 0; }
.clock-unit { display: flex; flex-direction: column; align-items: center; gap: .2em; }
.clock-digits { display: flex; }
.dg { position: relative; display: block; width: .6em; height: 1.06em; overflow: hidden; }
.dg-v { position: absolute; inset: 0; display: grid; place-items: center; }
.dg-v.is-in { animation: dg-in .18s cubic-bezier(.2, .7, .3, 1) both; }
.dg-v.is-out { animation: dg-out .16s ease-in both; }
@keyframes dg-in { from { transform: translateY(3px); opacity: 0; } }
@keyframes dg-out { to { transform: translateY(-3px); opacity: 0; } }
.clock-label { font-family: var(--ui); font-size: clamp(11px, .95vw, 13px); font-weight: 500; letter-spacing: .06em; color: #8b8f95; }
.clock-sep { width: .34em; text-align: center; color: #3c3f44; }
.intro-enter {
  position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 10px 6px;
  border: 0; background: none; color: #f1f4f8; font: 500 clamp(16px, 1.3vw, 18px)/1 var(--ui); letter-spacing: .02em; cursor: pointer; overflow: hidden;
}
.intro-enter::before { content: ''; position: absolute; left: 6px; right: 6px; bottom: 8px; height: 1px; background: #c4c8ce; }
.intro-enter::after { content: ''; position: absolute; left: -30%; bottom: 7px; width: 24%; height: 3px; background: linear-gradient(90deg, transparent, #fff, transparent); opacity: 0; pointer-events: none; }
.intro-enter:hover::after, .intro-enter:focus-visible::after { animation: line-glint .7s ease-out; }
@keyframes line-glint { 0% { left: -30%; opacity: 1; } 100% { left: 110%; opacity: 1; } }
.intro-arrow { display: inline-block; color: #c4c8ce; transition: transform .2s var(--ease-out); }
.intro-enter:hover .intro-arrow, .intro-enter:focus-visible .intro-arrow { transform: translate(3px, -3px); }
.intro-enter:focus-visible { outline: 1px solid #c4c8ce; outline-offset: 6px; }
.intro-enter:focus:not(:focus-visible) { outline: none; }
.intro-trail { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.intro-sol { position: fixed; left: 0; top: 0; opacity: 0; overflow: visible; pointer-events: none; }
.intro-sol .sol-base { fill: #34373b; transition: fill .14s ease-out; }
.intro-sol.is-lit .sol-base { fill: #8e9298; }
.intro-sol .sol-edge { fill: none; stroke: #e7eaee; stroke-width: .35; opacity: var(--edge, 0); }
.intro-star { position: fixed; left: 0; top: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; opacity: 0; pointer-events: none; filter: drop-shadow(0 0 3px rgba(255, 255, 255, .6)); }
.intro-flare { position: fixed; left: 0; top: 0; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; opacity: 0; pointer-events: none;
  background: radial-gradient(circle, #fff 0 18%, rgba(255, 255, 255, .45) 38%, rgba(255, 255, 255, 0) 70%); }
@media (max-width: 699px) {
  .js.show-intro .intro { padding: 0 16px; }
  .clock { font-size: calc((100vw - 40px) / 5.6); }
  .clock-label { font-size: 10.5px; letter-spacing: .04em; }
}

/* ── Memecoin baubles: hotspots and collector's label ── */
.ornaments { position: absolute; inset: 0; }
.orn { position: absolute; border: 0; padding: 0; border-radius: 50%; background: transparent; cursor: pointer; overflow: hidden; -webkit-tap-highlight-color: transparent; }
.orn::after { content: ''; position: absolute; inset: -10%; background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .55) 50%, transparent 62%); transform: translateX(-120%); }
.orn.is-active::after { animation: orn-glint .5s ease-out; }
@keyframes orn-glint { to { transform: translateX(120%); } }
.orn:focus-visible { outline: 3px solid var(--lantern); outline-offset: 3px; }
.orn.is-active { box-shadow: 0 0 0 2px rgba(255, 226, 150, .7), 0 0 18px rgba(255, 210, 120, .45); }
.fg-branch, .fg-branch * { pointer-events: none; }
.orn-label {
  position: absolute; left: 0; top: 0; z-index: 7; width: 236px; padding: 11px 14px 12px; border-radius: 10px;
  background: linear-gradient(180deg, #123b2c, #0b281e); color: #f3ecd8; box-shadow: 0 0 0 1px rgba(201, 162, 79, .7), 0 14px 30px -10px rgba(0, 0, 0, .65);
}
.orn-label[hidden] { display: none; }
.orn-label::before { content: ''; position: absolute; width: 10px; height: 10px; background: #123b2c; box-shadow: -1px 1px 0 rgba(201, 162, 79, .7); }
.orn-label[data-side="right"]::before { left: -5px; top: var(--ay, 18px); transform: rotate(45deg); }
.orn-label[data-side="left"]::before { right: -5px; top: var(--ay, 18px); transform: rotate(225deg); }
.orn-label[data-side="below"]::before { top: -5px; left: var(--ax, 50%); transform: rotate(135deg); margin-left: -5px; }
.orn-label.is-in { animation: orn-in .2s cubic-bezier(.2, .8, .3, 1); }
@keyframes orn-in { from { opacity: 0; scale: .92; translate: 0 -6px; } }
.orn-name { font-family: 'Young Serif', Georgia, serif; font-size: 19px; line-height: 1.15; }
.orn-ticker { font-family: var(--mono); font-size: 13px; color: #e6c46e; }
.orn-note { margin-top: 5px; font-size: 14px; line-height: 1.4; color: #d9e4dc; }
.motion-paused .orn-label.is-in, .motion-paused .orn.is-active::after { animation: none; }

/* one window lights up with its glow on the snow below */
.js .win--reflect { border-radius: 50%; transform: scale(1.6, 1); background: radial-gradient(closest-side, rgba(255, 196, 110, .7), rgba(255, 170, 70, .25) 55%, transparent); }

#hero-title:focus { outline: none; }
.intro-enter:focus:not(:focus-visible) { outline: none; }

/* ── Presents: DexScreener · Telegram · X, three boxes in one 3/4 view (body and lid share a drawing space) ── */
.gift--chart { --gw: 250px; --gwm: 138px; --ar: 1.38; --hinge-x: 0.76%; --hinge-y: 65.79%; --top: 42.63%; --shadow-l: 0.38%; --shadow-w: 100.76%; --base: 98.95%; }
.gift--telegram { --gw: 172px; --gwm: 106px; --ar: 1.02; --hinge-x: 0.76%; --hinge-y: 50%; --top: 31.4%; --shadow-l: 0.38%; --shadow-w: 100.76%; --base: 99.22%; }
.gift--x { --gw: 140px; --gwm: 88px; --ar: 1.07; --hinge-x: 0.76%; --hinge-y: 53.69%; --top: 33.2%; --shadow-l: 0.38%; --shadow-w: 100.76%; --base: 99.18%; }
.gifts { gap: clamp(18px, 3vw, 48px); }
.gift { margin: 0; }
.gift-box { width: var(--gw); height: auto; aspect-ratio: var(--ar); border-radius: 0; }
.gift-body, .gift-lid { position: absolute; inset: 0; width: auto; height: auto; left: 0; right: 0; top: 0; bottom: 0; border-radius: 0; overflow: visible; box-shadow: none; }
.gift-body-art, .gift-lid-art { display: block; width: 100%; height: 100%; overflow: visible; }
.gift-lid { z-index: 3; transform-origin: var(--hinge-x) var(--hinge-y); transition: transform .32s cubic-bezier(.22, 1, .36, 1); }
.gift-body .lid-ao { opacity: .55; transition: opacity .32s ease; }
/* hover / focus: the lid rises a few pixels, the gap darkens, a sheen runs down the ribbon; the mark stays put */
.gift-box:hover .gift-lid, .gift-box:focus-visible .gift-lid { transform: translateY(-4px); }
.gift-box:hover .lid-ao, .gift-box:focus-visible .lid-ao { opacity: 1; }
.gift .ribbon-sheen { transform-box: fill-box; transform: translateY(0); }
.gift-box:hover .ribbon-sheen, .gift-box:focus-visible .ribbon-sheen { transform: translateY(420%); transition: transform .75s cubic-bezier(.3, .6, .3, 1); }
.gift-box:active .gift-body { transform: none; }
/* open: the bow slackens, the lid tips back a little, the card slides out from under it (~460 ms) */
.gift[open] .gift-lid { transform: translate(-1%, -11%) rotate(-6deg); transition: transform .42s cubic-bezier(.2, .9, .25, 1); }
.gift.is-closing .gift-lid { transform: none; transition-duration: .28s; }
.gift-lid .bow-loop, .gift-lid .bow-tail { transform-box: fill-box; transition: transform .42s cubic-bezier(.2, .9, .25, 1), opacity .42s; }
.gift-lid .bow-loop-l { transform-origin: 100% 100%; } .gift-lid .bow-loop-r { transform-origin: 0 100%; } .gift-lid .bow-tail { transform-origin: 50% 0; }
.gift[open] .bow-loop-l { transform: rotate(-14deg) scale(.9, .84); }
.gift[open] .bow-loop-r { transform: rotate(16deg) scale(.9, .84); }
.gift[open] .bow-tail { transform: rotate(9deg) translateY(8%); }
.gift-shadow { left: var(--shadow-l); right: auto; width: var(--shadow-w); top: calc(var(--base) - 5%); bottom: auto; height: 10%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(6, 10, 34, .66), rgba(6, 10, 34, .26) 60%, rgba(6, 10, 34, 0)); }
.gift-medal { display: none; }
.gift-card { z-index: 4; bottom: calc(100% + 4px); width: 264px; padding: 16px 12px 16px 16px; border-radius: 16px;
  background: linear-gradient(180deg, #fffaf0, #f4e6c8); box-shadow: 0 22px 44px -14px rgba(2, 4, 30, .75), inset 0 1px 0 #fff;
  animation: card-rise .4s .04s cubic-bezier(.2, .9, .25, 1) both; }
@keyframes card-rise { from { opacity: 0; translate: 0 46px; scale: .9; } 35% { opacity: 1; } }
.gift.is-closing .gift-card { animation: card-in .2s ease-in both; }
.gift-card-logo { width: 42px; height: 42px; border-radius: 12px; background: #15171c; color: #fff; display: grid; place-items: center; box-shadow: none; }
.gift-card-logo svg { width: 24px; height: 24px; }
.gift--chart .gift-card-logo svg { width: 22px; height: 26px; }
.gift--telegram .gift-card-logo { background: #fff; box-shadow: inset 0 0 0 1px rgba(20, 30, 60, .12); }
.gift--telegram .gift-card-logo svg { width: 28px; height: 28px; }
.gift-card-dest { font-size: 12.5px; font-weight: 700; letter-spacing: .01em; color: #8a6038; }
.gift-card-title { font-family: 'Fraunces', Georgia, serif; font-weight: 640; font-variation-settings: 'opsz' 48; font-size: 19px; line-height: 1.15; }
.gift-card-action { display: inline-block; margin-top: 2px; padding: 6px 0; font-family: 'Fraunces', Georgia, serif; font-weight: 640; font-size: 18px; line-height: 1.2; color: #8e0f22; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.gift-card-url { margin-top: 2px; font-size: 12.5px; color: #8a6c4c; overflow-wrap: anywhere; }
.gift-box:focus-visible { outline: 3px solid var(--lantern); outline-offset: 8px; }
@media (max-width: 699px), (max-aspect-ratio: 4/5) {
  .gift--chart, .gift--telegram, .gift--x { --gw: var(--gwm); }
  .gifts { gap: 12px; }
}

/* branch baubles respond to the pointer */
.js:not(.motion-paused) .fg-branch .bauble { pointer-events: auto; cursor: pointer; clip-path: inset(30% 0 0 0 round 0 0 50% 50%); }
.js:not(.motion-paused) .fg-branch .bauble * { pointer-events: none; }

/* candidate photos */
.billboard-art { aspect-ratio: 1 / 1; border-radius: 6px !important; }
.billboard-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bauble-photo { display: block; width: 100%; height: auto; }

/* animated banner as a video over the still frame */
.pano-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s ease; pointer-events: none; }
.pano-video.is-playing { opacity: 1; }

/* compositor layers for everything that moves every frame */
.js:not(.motion-paused) .fg-branch { will-change: transform; }
.js:not(.motion-paused) .fg-branch .bauble { will-change: transform; }
.js:not(.motion-paused) .gifts { will-change: transform, opacity; }
.js:not(.motion-paused) .win { will-change: opacity; }

/* short phones: a tighter poster so the whole tree still fits below it */
@media (max-width: 699px) and (max-height: 740px) {
  .poster { top: 58px; }
  .wordmark { font-size: clamp(44px, 13vw, 60px); }
  .tagline { font-size: 20px; margin-top: .3em; }
  .poster-note { font-size: 14px; margin-top: 4px; }
  .poster-actions { margin-top: 10px; }
  .poster-actions .btn { min-height: 44px; font-size: 15px; }
  .contract { margin-top: 4px; }
}
.route-sleigh { will-change: transform; }

/* ═══ Round 5: cover-style first screen ═════════════════════════════════════
   One frame, shared by the animated scene and the paused/static page:
   wordmark, tagline and one action on a single left axis in deep dark;
   the tree's crown on the right with Dogecoin near the optical centre. */
@font-face { font-family: 'Fraunces'; src: url('../fonts/fraunces.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('../fonts/fraunces-italic.woff2') format('woff2'); font-weight: 100 900; font-style: italic; font-display: swap; }
:root { --display: 'Fraunces', Georgia, serif; --hero-x: clamp(28px, 6.5vw, 120px); --ink-0: #02030f; }

.wordmark {
  font-family: 'Fraunces', Georgia, serif; font-style: italic; font-weight: 800;
  font-variation-settings: 'opsz' 144, 'SOFT' 50, 'WONK' 1;
  font-size: clamp(60px, 7.8vw, 148px); line-height: .9; letter-spacing: -.024em;
  color: #fff3dc; text-shadow: 0 .03em .08em rgba(0, 0, 0, .55); padding-top: .14em;
  margin-left: -.045em; /* optical: the italic M's foot sits on the same axis as the button */
}
.wm-meme { letter-spacing: -.028em; }
.wm-tree { margin-left: -.012em; } /* e→T: pull the T's bar over the open e */
.wm-t { position: relative; display: inline-block; }
.wm-star { position: absolute; width: .2em; height: .2em; left: 58%; top: -.02em; color: #ffe2a0; filter: drop-shadow(0 0 .06em rgba(255, 214, 140, .9)); }
.tagline {
  margin-top: clamp(14px, 1.6vw, 22px); font-family: var(--ui); font-weight: 500;
  font-size: clamp(18px, 1.45vw, 23px); line-height: 1.35; letter-spacing: .004em; color: rgba(255, 241, 214, .78);
}
.poster-actions { margin-top: clamp(26px, 3.6vh, 40px); }
.poster-actions .btn { min-height: 52px; padding: 0 26px; border-radius: 999px; font-size: 16px; }
.btn-buy.is-pending { background: rgba(255, 236, 196, .06); color: #ffe7b0; box-shadow: inset 0 0 0 1.5px rgba(255, 226, 160, .55); }
.poster .contract { margin-top: 14px; font-size: 13px; color: rgba(214, 220, 255, .55); }
.poster .contract.is-pending { font-weight: 500; }

@media (min-width: 700px) and (min-aspect-ratio: 4/5) {
  .stage, .js:not(.motion-paused) .stage { --u: clamp(1.1px, calc(100vh / 470), 2.1px); }
  .pano, .js:not(.motion-paused) .pano { left: calc(56vw - 709 * var(--u)); top: calc(45vh - 563 * var(--u)); }
  .poster { left: var(--hero-x); top: 50vh; transform: translateY(-50%); width: auto; max-width: 46vw; }
  .scrim {
    background:
      linear-gradient(90deg, rgba(2, 3, 15, .96) 0%, rgba(2, 3, 15, .9) 20%, rgba(2, 3, 15, .62) 33%, rgba(2, 3, 15, .18) 44%, rgba(2, 3, 15, 0) 52%),
      linear-gradient(180deg, rgba(2, 3, 15, .5) 0%, rgba(2, 3, 15, 0) 18%);
  }
  /* paused / static page: the same first frame, presents a short scroll below it,
     on a snowbank that starts at the foot of the tree */
  .stage { height: calc(100vh + 46vh); min-height: 0; --gx: calc(56vw + 39 * var(--u)); }
  .ground { height: calc(101vh - 357 * var(--u) + 70px); min-height: 220px; }
  .js:not(.motion-paused) .stage { height: 100vh; --gx: 50vw; }
  .js:not(.motion-paused) .ground { height: 64vh; min-height: 0; }
}
@media (max-width: 699px), (max-aspect-ratio: 4/5) {
  .stage, .js:not(.motion-paused) .stage { --u: clamp(.9px, calc((100svh - 300px) / 430), 1.35px); }
  .pano, .js:not(.motion-paused) .pano { left: calc(50vw - 748 * var(--u)); top: calc(max(290px, 34svh) - 430 * var(--u)); }
  .poster { left: 22px; right: 22px; top: 76px; transform: none; width: auto; }
  .wordmark { font-size: clamp(54px, 16.4vw, 84px); margin-left: -.04em; }
  .tagline { font-size: 17px; margin-top: 10px; }
  .poster-actions { margin-top: 18px; }
  .poster-actions .btn { min-height: 48px; padding: 0 22px; font-size: 15.5px; }
  .scrim { background: linear-gradient(180deg, rgba(2, 3, 15, .94) 0%, rgba(2, 3, 15, .86) 24%, rgba(2, 3, 15, .35) 33%, rgba(2, 3, 15, 0) 40%); }
  .stage { height: calc(100svh + 40svh); --gx: 50vw; }
  .ground { height: calc(140svh - max(290px, 34svh) - 490 * var(--u) + 60px); min-height: 200px; }
  .js:not(.motion-paused) .stage { height: 100svh; }
  .js:not(.motion-paused) .ground { height: 66svh; min-height: 0; }
}
@media (max-width: 699px) and (max-height: 740px) {
  .poster { top: 64px; }
  .wordmark { font-size: clamp(48px, 14vw, 64px); }
}
/* (the poster's load-in runs under the intro, so nothing re-animates when it hands over) */

/* Section type follows the wordmark's family */
.section-title, .ballot-title { font-family: 'Fraunces', Georgia, serif; font-style: normal; font-weight: 640; font-variation-settings: 'opsz' 144, 'SOFT' 30, 'WONK' 0; letter-spacing: -.018em; text-shadow: none; color: #fff3dc; }
.billboard-name, .orn-name, .postcard-name { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-variation-settings: 'opsz' 72, 'SOFT' 40; }
.mark-word { font-family: 'Fraunces', Georgia, serif; font-style: italic; font-weight: 800; font-variation-settings: 'opsz' 72, 'SOFT' 50, 'WONK' 1; letter-spacing: -.02em; }

/* Light passes once over the bauble nearest the centre after entry */
.orn.is-hint::before { content: ''; position: absolute; inset: 0; border-radius: 50%; mix-blend-mode: soft-light; background: radial-gradient(circle at 38% 34%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 62%); opacity: 0; animation: orn-lift 1.3s ease-out both; }
.orn.is-hint::after { animation: orn-glint 1s .15s cubic-bezier(.3, .6, .3, 1) both; }
@keyframes orn-lift { 30% { opacity: 1; } 100% { opacity: 0; } }
.motion-paused .orn.is-hint::before, .motion-paused .orn.is-hint::after { animation: none; }
.intro-ring { position: fixed; z-index: 101; left: 0; top: 0; opacity: 0; overflow: visible; pointer-events: none; filter: drop-shadow(0 0 4px rgba(220, 228, 240, .5)); }
.intro-ring circle { stroke-dasharray: 1; stroke-dashoffset: 1; transform: rotate(-60deg); transform-origin: 50% 50%; }
/* one button shape across the page, matching the hero */
.btn, .btn-vote, .back-to-tree { border-radius: 999px; }
.section-head, .santa-head { margin-bottom: clamp(28px, 4vw, 48px); }

/* ═══ Round 6: slimmer entrance, compositor-only ambient motion, sleigh, supplied presents ═══ */
/* Comet: a small star with a short, sharply tapered tail; moved by one transform */
.intro-comet { position: fixed; left: 0; top: 0; width: 0; height: 0; opacity: 0; pointer-events: none; will-change: transform, opacity; }
.comet-star { position: absolute; width: 10px; height: 10px; left: -5px; top: -5px; overflow: visible; filter: drop-shadow(0 0 2px rgba(255, 255, 255, .75)); }
.comet-tail { position: absolute; right: 3px; top: -1.25px; width: 70px; height: 2.5px; transform-origin: 100% 50%; will-change: transform;
  background: linear-gradient(90deg, rgba(214, 222, 232, 0), rgba(238, 242, 248, .92)); clip-path: polygon(0 50%, 100% 0, 100% 100%); }
.intro-flare { width: 14px; height: 14px; margin: -7px 0 0 -7px; }
.intro-sol .sol-edge { opacity: 0; }
@media (max-width: 699px) { .comet-tail { width: 50px; } }

/* Snowfall: two tiled layers moved by the compositor (no canvas, no per-frame script) */
/* Desktop: the flakes fall straight down, so a plain clip (no mask, no offscreen pass)
   keeps them off the title without any visible edge */
.snowfall { position: absolute; top: 0; bottom: 0; left: 46%; right: 0; z-index: 2; width: auto; height: auto; overflow: hidden; pointer-events: none; contain: strict; }
.snow-far, .snow-near { position: absolute; left: 0; right: 0; top: -512px; height: calc(100% + 512px); background-repeat: repeat; background-size: 512px 512px;
  animation: snow-fall 26s linear infinite paused; will-change: transform; }
.snow-far { background-image: url('../assets/snow-far.webp'); opacity: .85; }
.snow-near { background-image: url('../assets/snow-near.webp'); animation-duration: 13s; opacity: .7; }
.snowfall.is-running .snow-far, .snowfall.is-running .snow-near { animation-play-state: running; }
@keyframes snow-fall { to { transform: translate3d(0, 512px, 0); } }
.motion-paused .snowfall { display: none; }
@media (max-width: 699px), (max-aspect-ratio: 4/5) {
  .snowfall { left: 0; -webkit-mask-image: linear-gradient(180deg, transparent 0, transparent 33%, #000 43%); mask-image: linear-gradient(180deg, transparent 0, transparent 33%, #000 43%); }
}

/* Sleigh flight: one image layer, plus a small crown cut-out drawn over it */
.flight { position: absolute; inset: 0; pointer-events: none; }
.flight[hidden] { display: none; }
.flight-team { position: absolute; left: 0; top: 0; width: calc(190 / 1500 * 100%); height: auto; opacity: 0; will-change: transform, opacity; }
.flight-crown { position: absolute; left: calc(635 / 1500 * 100%); top: calc(435 / 1620 * 100%); width: calc(230 / 1500 * 100%); height: auto; }

/* Presents: the three supplied boxes, bottoms on the snow line */
.gift--chart { --gw: 214px; --gwm: 112px; } .gift--telegram { --gw: 220px; --gwm: 116px; } .gift--x { --gw: 206px; --gwm: 108px; }
.gifts { align-items: flex-end; gap: clamp(10px, 2.4vw, 34px); }
.gift-box { width: var(--gw); height: auto; aspect-ratio: auto; display: block; position: relative; z-index: 2; border-radius: 0; }
.gift-img { display: block; width: 100%; height: auto; position: relative; z-index: 1; transition: transform .3s cubic-bezier(.22, 1, .36, 1); }
.gift-shadow { left: 4%; right: 4%; width: auto; top: auto; bottom: -7px; height: 18px; border-radius: 50%; z-index: 0;
  background: radial-gradient(closest-side, rgba(5, 9, 34, .72), rgba(5, 9, 34, .3) 55%, rgba(5, 9, 34, 0)); }
.gift-glint { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, .9) 50%, rgba(255, 255, 255, 0) 62%) 130% 0 / 260% 100% no-repeat; mix-blend-mode: screen; }
.gift--chart .gift-glint { -webkit-mask-image: url('../assets/gifts/gift-dex-mark.png'); mask-image: url('../assets/gifts/gift-dex-mark.png'); }
.gift--telegram .gift-glint { -webkit-mask-image: url('../assets/gifts/gift-telegram-mark.png'); mask-image: url('../assets/gifts/gift-telegram-mark.png'); }
.gift--x .gift-glint { -webkit-mask-image: url('../assets/gifts/gift-x-mark.png'); mask-image: url('../assets/gifts/gift-x-mark.png'); }
.gift-box:hover .gift-glint, .gift-box:focus-visible .gift-glint { animation: mark-glint .9s cubic-bezier(.3, .6, .3, 1) 1 both; }
@keyframes mark-glint { 0% { opacity: 0; background-position: 130% 0; } 20% { opacity: 1; } 100% { opacity: 0; background-position: -30% 0; } }
.gift-box:focus-visible { outline: 3px solid var(--lantern); outline-offset: 6px; border-radius: 8px; }
.gift-lid, .gift-body, .gift-medal, .gift-card { display: none; }
/* The tag slides up from behind the box's top edge; the box stays on the snow */
.gift-tag { position: absolute; z-index: 1; left: 50%; bottom: calc(100% - 12px); width: 206px; padding: 14px 40px 22px 16px; border-radius: 12px 12px 12px 12px;
  background: linear-gradient(180deg, #fffaf0, #f2e3c4); color: #2a1b10; box-shadow: 0 14px 30px -12px rgba(2, 4, 30, .7), inset 0 1px 0 #fff;
  transform: translateX(-50%); animation: tag-rise .42s cubic-bezier(.2, .9, .25, 1) both; }
.gift--chart .gift-tag { left: 0; transform: none; }
.gift--x .gift-tag { left: auto; right: 0; transform: none; }
.gift.is-closing .gift-tag { animation: tag-sink .2s ease-in both; }
@keyframes tag-rise { from { translate: 0 58px; opacity: 0; } 30% { opacity: 1; } }
@keyframes tag-sink { to { translate: 0 46px; opacity: 0; } }
.gift-tag-hole { position: absolute; left: 50%; top: 7px; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: rgba(42, 27, 16, .25); box-shadow: inset 0 1px 1px rgba(0, 0, 0, .35); }
.gift-tag-dest { margin-top: 4px; font-size: 12px; font-weight: 700; letter-spacing: .02em; color: #8a6038; }
.gift-tag-title { font-family: 'Fraunces', Georgia, serif; font-weight: 640; font-size: 18px; line-height: 1.15; }
.gift-tag-soon { margin-top: 2px; font-size: 13px; line-height: 1.35; color: #6e5236; }
.gift-tag-action { display: inline-block; margin-top: 2px; padding: 6px 0; font-family: 'Fraunces', Georgia, serif; font-weight: 640; font-size: 17px; line-height: 1.2; color: #8e0f22; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.gift-tag .gift-close { position: absolute; right: 4px; top: 4px; margin: 0; }
@media (max-width: 699px), (max-aspect-ratio: 4/5) {
  .gift--chart, .gift--telegram, .gift--x { --gw: var(--gwm); }
  .gift-tag { width: 184px; bottom: calc(100% - 8px); }
}
