/* Toycoin — a cream toy shop at Christmas: pine green, candy red, ribbon gold. */
:root {
  --cream: #FDEFC7;
  --paper: #FFF7DF;
  --ink: #1F2B26;
  --ink-soft: #4B5B53;
  --pine: #123D2E;
  --pine-2: #1C5C43;
  --night: #0C2A1F;
  --red: #C82C1F;
  --red-deep: #A3231A;
  --logo: #FFF2CA;
  --gold: #F4B53F;
  --pink: #F5B2A8;
  --sky: #9FCBE9;
  --display: 'Fredoka', ui-rounded, system-ui, sans-serif;
  --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Space Mono', ui-monospace, Menlo, monospace;
  --wrap: none;
  --gutter: clamp(18px, 3.6vw, 72px);
  --radius: 22px;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --out: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.is-loading, html.is-loading body { overflow: hidden; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
::selection { background: var(--gold); color: var(--ink); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 1000px; }

.label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
}
.eyebrow span {
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  border: 2px solid currentColor;
  font-weight: 700;
  letter-spacing: .04em;
}
.eyebrow.light { color: var(--gold); }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: .98;
  margin: 0;
}
h2 { font-size: clamp(42px, 6vw, 120px); color: var(--red); letter-spacing: -.03em; }

/* ---------- loading screen ---------- */
.loader {
  position: fixed; inset: 0; z-index: 500;
  background: var(--red); color: var(--cream);
  display: grid; place-items: center;
  transition: transform 1s cubic-bezier(.76, 0, .24, 1);
  animation: loaderFailsafe .5s 8s forwards;
}
.loader::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 244, 227, .22) 1.6px, transparent 2.1px), radial-gradient(rgba(255, 244, 227, .12) 1.1px, transparent 1.6px);
  background-size: 64px 64px, 37px 37px;
  background-position: 0 0, 18px 22px;
  animation: loaderSnow 10s linear infinite;
}
.loader::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -22px; height: 23px;
  background: radial-gradient(circle at 13px 0, var(--red) 12.5px, transparent 13px) repeat-x 0 0 / 26px 23px;
}
.loader.is-out { transform: translateY(calc(-100% - 30px)); }
.no-js .loader { display: none; }
@keyframes loaderSnow { to { background-position: 0 640px, 18px 392px; } }
@keyframes loaderFailsafe { to { opacity: 0; visibility: hidden; } }
.loader-inner { position: relative; display: grid; justify-items: center; text-align: center; padding: 0 16px; }
.loader-logo { position: relative; width: clamp(130px, 18vw, 190px); aspect-ratio: 1 / 1; }
.loader-logo svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.loader-ghost { opacity: .22; }
.loader-fill { clip-path: inset(calc((1 - var(--p, 0)) * 100%) 0 0 0); }
.loader.is-done .loader-logo { animation: giftPop .6s var(--spring); }
@keyframes giftPop {
  0% { transform: scale(1); }
  35% { transform: scale(1.2) rotate(-5deg); }
  65% { transform: scale(.94) rotate(3deg); }
  100% { transform: scale(1); }
}
.loader-title { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 4vw, 44px); letter-spacing: -.01em; margin: 28px 0 8px; }
.loader-count { display: flex; align-items: center; font-family: var(--mono); font-size: 15px; letter-spacing: .32em; margin: 0; opacity: .92; }
.odo { display: inline-flex; height: 1.2em; line-height: 1.2em; overflow: hidden; }
.odo-col { display: flex; flex-direction: column; transition: transform .35s var(--out); }
.odo-col span { display: block; height: 1.2em; }
.loader-days { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin: 18px 0 0; opacity: .8; min-height: 1.4em; }

/* ---------- scroll progress ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 60; pointer-events: none; }
.progress i { display: block; height: 100%; transform-origin: left; transform: scaleX(var(--p, 0)); background: repeating-linear-gradient(-45deg, var(--red) 0 8px, var(--paper) 8px 16px); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--paper);
  --fg: var(--ink);
  --edge: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 3px solid var(--edge);
  background: var(--bg);
  color: var(--fg);
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.1;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--edge);
  transition: transform .15s ease, box-shadow .15s ease;
  cursor: pointer;
}
.btn:hover { transform: translate(-2px, -2px) rotate(-1deg); box-shadow: 6px 6px 0 var(--edge); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--edge); }
.btn:focus-visible, .ca-pill:focus-visible, .x-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn-red { --bg: var(--red); --fg: var(--logo); }
.btn-ghost { --bg: transparent; }
.btn-gold { --bg: var(--gold); --fg: var(--ink); --edge: var(--ink); }
.btn-cream { --bg: var(--logo); --fg: var(--red); --edge: var(--ink); }
.btn-line { --bg: transparent; --fg: var(--logo); --edge: var(--logo); }
.btn.is-soon::after {
  content: 'soon';
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--ink);
  border-radius: 999px;
  padding: 3px 7px;
}
.btn-red.is-soon::after { background: var(--paper); }

/* ---------- header ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .25s, box-shadow .25s; }
.top .bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 22px; padding: 16px var(--gutter); }
.bar-end { display: flex; gap: 12px; align-items: center; justify-self: end; }
.top.is-scrolled { background: rgba(253, 239, 199, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(31, 43, 38, .12); }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 700; font-size: 23px; text-decoration: none; color: var(--pine); }
.brand-mark {
  display: grid; place-items: center; flex: none;
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--red); border: 2.5px solid var(--ink); box-shadow: 2px 2px 0 var(--ink);
  transform: rotate(-6deg); transition: transform .35s var(--spring);
}
.brand-mark svg { width: 86%; height: 86%; }
.brand:hover .brand-mark { transform: rotate(8deg) scale(1.1); }
.nav { display: flex; gap: 30px; }
.nav a { position: relative; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--ink-soft); padding: 4px 0; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--out); }
.nav a:hover { color: var(--red); }
.nav a:hover::after { transform: scaleX(1); }
.ca-pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid var(--ink); border-radius: 999px;
  padding: 7px 13px; background: var(--paper); color: var(--ink);
  font-family: var(--mono); font-size: 12px; cursor: pointer;
}
.ca-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.ca-pill.is-live .dot { background: #2BB673; box-shadow: 0 0 0 4px rgba(43, 182, 115, .18); }
.x-btn { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); transition: transform .2s var(--spring); }
.x-btn:hover { transform: rotate(-10deg) scale(1.08); }
@media (max-width: 960px) {
  .nav { display: none; }
  .top .bar { grid-template-columns: 1fr auto; gap: 10px; }
}

/* ---------- hero: full width, like a poster ---------- */
.hero { position: relative; min-height: 100svh; padding: 96px var(--gutter) 34px; overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; }
.confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.kicker { position: relative; font-family: var(--mono); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--red); display: flex; align-items: center; gap: 14px; margin: 18px 0 0; }
.kicker .dash { width: 36px; height: 2px; background: currentColor; }
.hero-mid { position: relative; display: grid; grid-template-columns: 1.6fr 1fr; align-items: center; gap: 2vw; }
.hero-title { font-size: clamp(64px, 8.6vw, 210px); color: var(--red); line-height: .86; letter-spacing: -.035em; }
.hero-title .line { display: block; overflow: hidden; padding: 0 .05em .24em; margin: 0 -.05em -.24em; }
.hero-title .line.l2 { padding-left: .5em; }
.hero-title .line-in { display: block; }
.hero-title em { font-style: normal; position: relative; display: inline-block; transform-origin: 50% 80%; }
.hero-title em::after {
  content: '';
  position: absolute; left: -2%; right: -2%; bottom: -.05em; height: .19em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 12'%3E%3Cpath d='M0 6 Q10 0 20 6 T40 6' fill='none' stroke='%23C82C1F' stroke-width='4.5' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x left center / auto 100%;
}
.hero-art { position: relative; width: min(100%, 38vw); aspect-ratio: 1 / 1; justify-self: center; }
.layer { position: absolute; inset: 0; will-change: transform; }
.spark { position: absolute; color: var(--red); opacity: .8; animation: twinkle 2.6s ease-in-out infinite; }
.spark.s1 { width: 5%; left: 4%; top: 14%; }
.spark.s2 { width: 4%; right: 6%; top: 6%; animation-delay: -1s; }
.spark.s3 { width: 4%; right: 2%; bottom: 22%; animation-delay: -1.7s; }
@keyframes twinkle { 0%, 100% { transform: scale(.7) rotate(0deg); opacity: .4; } 50% { transform: scale(1.15) rotate(20deg); opacity: .9; } }

.coin3d { position: absolute; width: 72%; aspect-ratio: 1 / 1; left: 14%; top: 10%; perspective: 1500px; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; --t: 22px; }
.coin3d.is-drag { cursor: grabbing; }
.coin3d-glow { position: absolute; inset: -18%; border-radius: 50%; background: radial-gradient(circle, rgba(232, 160, 120, .35) 0%, rgba(232, 160, 120, 0) 62%); pointer-events: none; animation: glow 3.2s ease-in-out infinite; }
@keyframes glow { 50% { transform: scale(1.08); opacity: .7; } }
.coin3d-body { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(-8deg) rotateY(-24deg); }
.coin3d-face { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; display: grid; place-items: center; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.coin3d-face::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(112deg, rgba(255, 255, 255, 0) 32%, rgba(255, 255, 255, .3) 47%, rgba(255, 255, 255, 0) 62%); transform: translateX(var(--sheen, 0%)); pointer-events: none; }
.coin3d-front { transform: translateZ(calc(var(--t) / 2)); background: radial-gradient(circle at 34% 28%, #E05A48 0%, #C82C1F 45%, #A8231A 100%); box-shadow: inset 0 0 0 calc(var(--t) * .3) #B5271C; }
.coin3d-front::before { content: ''; position: absolute; inset: 5%; border-radius: 50%; border: 2px solid rgba(255, 242, 202, .9); }
.coin3d-logo { position: absolute; width: 66%; height: 66%; left: 17%; top: 17%; filter: drop-shadow(0 calc(var(--t) * .14) 0 rgba(90, 15, 8, .35)); }
.coin3d-back { transform: rotateY(180deg) translateZ(calc(var(--t) / 2)); background: radial-gradient(circle at 36% 30%, #FFFBEA 0%, #FCEFC9 68%, #F2DDB0 100%); box-shadow: inset 0 0 0 calc(var(--t) * .55) #C82C1F; }
.coin3d-back canvas { width: 100%; height: 100%; }
.coin3d-edge i { position: absolute; inset: 0; border-radius: 50%; background: #9E2218; transform: translateZ(calc(var(--t) * var(--f, 0))); }
.coin3d-shadow { position: absolute; left: 22%; right: 22%; top: 106%; height: 8%; border-radius: 50%; background: radial-gradient(closest-side, rgba(70, 30, 15, .3), rgba(70, 30, 15, 0)); pointer-events: none; }

.hero-foot { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 24px; }
.lede { font-size: clamp(15px, 1.05vw, 18px); max-width: 38ch; color: var(--red); margin: 0; line-height: 1.5; }
.hero-cta { display: flex; gap: 14px; justify-self: center; }
.countdown { justify-self: end; text-align: right; }
.cd-label { color: var(--red); margin-bottom: 8px; letter-spacing: .24em; font-size: 12px; }
.cd { display: flex; gap: clamp(12px, 1.4vw, 26px); justify-content: flex-end; }
.cd-unit { text-align: center; perspective: 300px; }
.cd-unit b { display: block; font-family: var(--display); font-weight: 700; font-size: clamp(34px, 3.4vw, 64px); line-height: 1; color: var(--red); font-variant-numeric: tabular-nums; transform-origin: 50% 50%; }
.cd-unit span { display: block; margin-top: 6px; font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--red); opacity: .75; }

/* intro after the loading screen */
.js .hero [data-intro] { opacity: 0; }
.is-ready .hero [data-intro] { animation: introUp .8s var(--out) var(--d, 0s) both; }
@keyframes introUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.js .hero-title .line-in { transform: translateY(112%); }
.is-ready .hero-title .line-in { animation: lineUp .9s var(--out) var(--d, 0s) both; }
@keyframes lineUp { from { transform: translateY(112%); } to { transform: none; } }
.js .hero-title em::after { clip-path: inset(0 100% 0 0); }
.is-ready .hero-title em::after { animation: squiggle .8s ease-out 1.1s both; }
@keyframes squiggle { to { clip-path: inset(0 0 0 0); } }
.is-ready .hero-title em { animation: wiggle 4s ease-in-out 2.2s infinite; }
@keyframes wiggle { 0%, 84%, 100% { transform: none; } 88% { transform: rotate(-7deg) scale(1.06); } 92% { transform: rotate(5deg); } 96% { transform: rotate(-2deg); } }
.js .coin3d { opacity: 0; }
.is-ready .coin3d { animation: coinIn 1s var(--spring) .45s both; }
@keyframes coinIn { from { opacity: 0; transform: scale(.35) translateY(30px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .hero { padding-top: 84px; min-height: 0; gap: 18px; }
  .hero-mid { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(56px, 16vw, 110px); }
  .hero-art { width: min(80vw, 400px); }
  .hero-foot { grid-template-columns: 1fr; justify-items: start; }
  .hero-cta { justify-self: start; flex-wrap: wrap; }
  .countdown { justify-self: start; text-align: left; }
  .cd { justify-content: flex-start; }
}

/* ---------- live meter ---------- */
.meter-wrap { padding: 40px 0 90px; }
.meter {
  position: relative;
  background: var(--red);
  color: var(--logo);
  border-radius: 34px;
  padding: clamp(22px, 4vw, 48px);
  border: 3px solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
  overflow: hidden;
}
.meter::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 251, 243, .08) 1.5px, transparent 1.7px);
  background-size: 24px 24px;
  pointer-events: none;
}
.meter > * { position: relative; }
.meter-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.meter-head .label { color: rgba(255, 251, 243, .78); }
.meter-head .sep { opacity: .5; margin: 0 4px; }
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #7A8A83; margin-right: 8px; vertical-align: 1px; }
.meter[data-state="live"] .live-dot { background: #3DDC84; animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, .55); } 100% { box-shadow: 0 0 0 12px rgba(61, 220, 132, 0); } }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1.5px solid rgba(255, 251, 243, .38); border-radius: 999px;
  padding: 5px 11px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
}
.chip.dark { border-color: rgba(31, 43, 38, .35); color: var(--ink-soft); letter-spacing: .06em; }
.meter-main { text-align: center; padding: 26px 0 8px; }
.meter-big {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(64px, 13vw, 176px); line-height: .95; letter-spacing: -.02em;
  margin: 0; color: var(--logo);
  font-variant-numeric: tabular-nums;
  text-shadow: 5px 5px 0 rgba(0, 0, 0, .18);
}
.meter-sub { max-width: 54ch; margin: 14px auto 0; color: rgba(255, 251, 243, .82); }
.meter-pop {
  position: absolute; left: 50%; top: 32%; z-index: 2;
  font-family: var(--display); font-weight: 700; font-size: 20px; white-space: nowrap;
  color: var(--red); background: var(--logo); border: 2px solid var(--ink); border-radius: 999px; padding: 6px 14px;
  pointer-events: none;
}
.meter-ribbon {
  height: 18px;
  margin: 28px calc(-1 * clamp(22px, 4vw, 48px)) 30px;
  background: var(--red-deep) repeating-linear-gradient(90deg, transparent 0 22px, rgba(255, 242, 202, .95) 22px 30px);
  border-block: 3px solid var(--ink);
  animation: ribbonRun 1.6s linear infinite;
}
@keyframes ribbonRun { to { background-position: 30px 0; } }
.meter-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; }
.meter-stats div { padding: 4px 18px; border-left: 1.5px solid rgba(255, 251, 243, .18); min-width: 0; }
.meter-stats div:first-child { border-left: 0; padding-left: 0; }
.meter-stats dt { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 251, 243, .6); }
.meter-stats dd { margin: 6px 0 0; font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.5vw, 32px); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.meter-flow { display: grid; grid-template-columns: 1.45fr 1fr; gap: 36px; margin-top: 36px; }
.flow .label { color: rgba(255, 251, 243, .6); font-size: 11px; }
.flow ol { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.flow li {
  display: grid; grid-template-columns: 32px 1fr auto auto; align-items: center; gap: 12px;
  background: rgba(255, 251, 243, .06); border: 1.5px solid rgba(255, 251, 243, .14);
  border-radius: 16px; padding: 12px 14px;
  transition: background .2s, transform .2s;
}
.flow li:hover { background: rgba(255, 251, 243, .1); transform: translateX(4px); }
.flow .n { width: 30px; height: 30px; border-radius: 50%; background: var(--logo); color: var(--ink); display: grid; place-items: center; font-family: var(--display); font-weight: 700; }
.flow b { display: block; font-family: var(--display); font-weight: 600; font-size: 17px; }
.flow small { display: block; color: rgba(255, 251, 243, .66); font-size: 13px; line-height: 1.35; }
.flow .v { font-family: var(--mono); font-size: 14px; white-space: nowrap; }
.flow a { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--logo); text-decoration: none; white-space: nowrap; }
.flow a.off { opacity: .35; pointer-events: none; }
.meter-meta { display: grid; gap: 14px; margin: 0; align-content: start; }
.meter-meta dt { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 251, 243, .6); }
.meter-meta dd { margin: 4px 0 0; font-size: 15px; overflow-wrap: anywhere; }
.meter-meta a { color: var(--logo); }
.meter-meta small { display: block; color: rgba(255, 251, 243, .66); font-size: 13px; margin-top: 2px; }
.meter-badge {
  display: inline-flex; gap: 8px; align-items: center;
  margin: 28px 0 0; padding: 8px 16px;
  background: var(--paper); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 999px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
}
.meter-badge[hidden] { display: none; }
@media (max-width: 900px) {
  .meter-stats { grid-template-columns: 1fr 1fr; row-gap: 18px; }
  .meter-stats div:nth-child(3) { border-left: 0; padding-left: 0; }
  .meter-flow { grid-template-columns: 1fr; }
  .flow li { grid-template-columns: 30px 1fr auto; }
  .flow li a { grid-column: 2 / -1; }
}

/* ---------- ribbons ---------- */
.ribbons { position: relative; height: clamp(150px, 17vw, 220px); margin: 0 0 30px; overflow: hidden; }
.ribbon {
  position: absolute; left: -6%; right: -6%; top: 50%;
  padding: 13px 0;
  border-block: 3px solid var(--ink);
  white-space: nowrap; overflow: hidden;
  font-family: var(--display); font-weight: 700; font-size: clamp(24px, 3.3vw, 44px);
}
.ribbon.r1 { background: var(--red); color: var(--paper); transform: translateY(-50%) rotate(-3.2deg); z-index: 2; }
.ribbon.r2 { background: var(--logo); color: var(--red); transform: translateY(-50%) rotate(2.6deg); }
.ribbon .track { display: inline-flex; gap: 26px; padding-right: 26px; animation: marquee 38s linear infinite; }
.ribbon.r2 .track { animation-direction: reverse; animation-duration: 44s; }
.ribbon i { font-style: normal; color: var(--logo); display: inline-block; animation: spinStar 4s linear infinite; }
.ribbon.r2 i { color: var(--red); }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes spinStar { to { transform: rotate(360deg); } }

/* ---------- story ---------- */
.story { padding: 70px 0 110px; }
.story-text { font-family: var(--display); font-weight: 600; font-size: clamp(30px, 4.4vw, 84px); line-height: 1.08; letter-spacing: -.02em; color: var(--red); margin: 0; max-width: 22ch; }
.story-text mark { background: none; color: var(--red); text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .12em; }
.story-text .w { opacity: .16; transition: opacity .35s ease, background-size .5s ease; }
.story-text .w.on { opacity: 1; }
.story-text mark .w { background: linear-gradient(transparent 62%, rgba(244, 181, 63, .55) 62%) no-repeat 0 0 / 0% 100%; }
.story-text mark .w.on { background-size: 100% 100%; }

/* ---------- split headings ---------- */
[data-split].is-split .wd { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .04em .12em; margin: 0 -.04em -.12em; }
[data-split].is-split .wd > span { display: inline-block; transform: translateY(112%); transition: transform .8s var(--out); transition-delay: var(--i, 0s); }
[data-split].is-split.in .wd > span { transform: none; }

/* ---------- facts ---------- */
.index { padding: 30px 0 120px; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.sec-note { max-width: 32ch; color: var(--ink-soft); margin: 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat {
  --tilt: 0deg;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 24px 22px 18px;
  box-shadow: 6px 6px 0 var(--ink);
  display: flex; flex-direction: column; gap: 10px;
}
.stat:nth-child(1) { --tilt: -1.4deg; }
.stat:nth-child(2) { --tilt: .9deg; transition-delay: .08s; }
.stat:nth-child(3) { --tilt: -.7deg; transition-delay: .16s; }
.stat:nth-child(4) { --tilt: 1.2deg; transition-delay: .24s; }
.stat .num { font-family: var(--display); font-weight: 700; font-size: clamp(52px, 5.6vw, 110px); line-height: 1; color: var(--red); margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat p { margin: 0; }
.stat .src { margin-top: auto; padding-top: 12px; border-top: 1.5px dashed rgba(31, 43, 38, .25); font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--ink-soft); }
@media (max-width: 1060px) { .stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .stats { grid-template-columns: 1fr; } }

/* ---------- how it works ---------- */
.how { position: relative; }
.how-pin { padding: 40px 0 70px; overflow: hidden; }
.how-head { margin-bottom: 30px; }
.how-head p:not(.eyebrow) { max-width: 52ch; color: var(--ink-soft); margin: 16px 0 0; }
.how-track {
  display: flex; gap: 24px;
  padding: 10px var(--gutter) 34px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.how-track::-webkit-scrollbar { display: none; }
.card {
  position: relative;
  flex: 0 0 min(420px, 84vw);
  min-height: 410px;
  border: 3px solid var(--ink);
  border-radius: 30px;
  padding: 28px;
  box-shadow: 8px 8px 0 var(--ink);
  display: flex; flex-direction: column;
  overflow: hidden;
  scroll-snap-align: start;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { box-shadow: 12px 12px 0 var(--ink); }
.card-no { font-family: var(--display); font-weight: 700; font-size: 100px; line-height: .9; color: transparent; -webkit-text-stroke: 3px currentColor; opacity: .9; }
.card-art { position: absolute; right: -8px; top: 26px; width: 50%; animation: floaty 5s ease-in-out infinite; }
.card:nth-child(2) .card-art { animation-delay: -1.2s; }
.card:nth-child(3) .card-art { animation-delay: -2.4s; }
.card:nth-child(4) .card-art { animation-delay: -3.6s; }
@keyframes floaty { 0%, 100% { transform: rotate(6deg) translateY(0); } 50% { transform: rotate(2deg) translateY(-12px); } }
.card h3 { font-size: 46px; margin-top: auto; }
.card p { margin: 10px 0 0; font-size: 17px; }
.c-red { background: var(--red); color: var(--logo); }
.c-cream { background: var(--paper); color: var(--red); }
.how-progress { display: flex; align-items: center; gap: 12px; }
.how-progress .label { font-size: 11px; color: var(--ink-soft); transition: color .2s; }
.how-progress .label.on { color: var(--red); }
.how-progress .bar { flex: 1; height: 5px; border-radius: 99px; background: rgba(31, 43, 38, .12); overflow: hidden; }
.how-progress .bar i { display: block; height: 100%; background: var(--red); transform-origin: left; transform: scaleX(var(--p, 0)); }
.how:not(.is-pinned) .how-progress { display: none; }
@media (min-width: 1024px) {
  .how.is-pinned .how-pin { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 70px 0 40px; }
  .how.is-pinned .how-track { overflow: visible; width: max-content; will-change: transform; scroll-snap-type: none; }
}
@media (max-width: 800px) { .card { min-height: 400px; } .card h3 { font-size: 40px; } }

/* ---------- the tree ---------- */
.tree { position: relative; background: radial-gradient(120% 80% at 70% 30%, #164a37 0%, var(--night) 60%); color: var(--paper); }
.tree.is-scroll { height: 320vh; }
.tree-stage { position: sticky; top: 0; height: 100vh; min-height: 560px; overflow: hidden; display: flex; align-items: center; }
.snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.tree-grid { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: 30px; align-items: center; width: 100%; }
.tree-copy h2 { color: var(--paper); font-size: clamp(44px, 6vw, 86px); }
.tree-copy p { color: rgba(255, 251, 243, .76); max-width: 34ch; margin: 18px 0 0; }
.tree-count { display: flex; gap: 30px; margin-top: 26px; }
.tree-count div { font-family: var(--mono); font-size: 15px; color: rgba(255, 251, 243, .7); }
.tree-count b { display: inline-block; font-family: var(--display); font-weight: 700; font-size: 58px; color: var(--gold); line-height: 1; }
.tree-count b.bump { animation: bump .45s var(--spring); }
@keyframes bump { 40% { transform: scale(1.35) rotate(-6deg); } }
.tree-count span { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; margin-top: 6px; }
.tree-hint { color: var(--gold); margin-top: 28px; transition: opacity .3s; }
.tree-svg { width: 100%; max-height: 84vh; overflow: visible; }
.tree-svg .bulb { fill: #3B4D45; stroke: #0B241B; stroke-width: 2; transition: fill .35s; }
.tree-svg .strand.on .bulb:nth-child(4n+1) { fill: #FF6B5A; }
.tree-svg .strand.on .bulb:nth-child(4n+2) { fill: #FFD25E; }
.tree-svg .strand.on .bulb:nth-child(4n+3) { fill: #8FD3FF; }
.tree-svg .strand.on .bulb:nth-child(4n+4) { fill: #9CF2B8; }
.tree-svg .strand.on { filter: drop-shadow(0 0 5px rgba(255, 220, 140, .85)); }
.tree-svg .strand.on .bulb { animation: blink 2.2s ease-in-out infinite; }
.tree-svg .strand.on .bulb:nth-child(odd) { animation-delay: -1.1s; }
@keyframes blink { 50% { opacity: .55; } }
.tree-svg .tree-star { color: #55695F; transform-box: fill-box; transform-origin: center; transition: color .4s, filter .4s, transform .5s var(--spring); }
.tree-svg .tree-star.on { color: var(--gold); filter: drop-shadow(0 0 14px rgba(244, 181, 63, .95)); transform: scale(1.12); }
.tree-svg .gift { transform-box: fill-box; transform-origin: 50% 100%; transform: translateY(-40px) scale(0); opacity: 0; transition: transform .55s var(--spring), opacity .25s; }
.tree-svg .gift.on { transform: none; opacity: 1; }
@media (max-width: 900px) {
  .tree-grid { grid-template-columns: 1fr; gap: 6px; }
  .tree-svg { max-height: 50vh; }
  .tree-copy { text-align: center; }
  .tree-copy p { margin-left: auto; margin-right: auto; }
  .tree-count { justify-content: center; margin-top: 16px; }
  .tree-count b { font-size: 44px; }
  .tree-hint { margin-top: 14px; }
  .tree-copy .eyebrow { justify-content: center; }
}

/* ---------- the coin ---------- */
.coin { padding: 140px 0 100px; }
.coin-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.coin h2 { color: var(--red); font-size: clamp(50px, 7vw, 106px); }
.coin-grid > div > p:not(.eyebrow) { color: var(--ink-soft); max-width: 46ch; margin: 22px 0 0; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin: 28px 0 0; }
.facts div { padding: 14px 0; border-top: 2px solid rgba(31, 43, 38, .14); }
.facts dt { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.facts dd { margin: 4px 0 0; font-family: var(--display); font-weight: 600; font-size: 24px; color: var(--red); }
.ca-card { --tilt: 1.2deg; background: var(--paper); border: 3px solid var(--ink); border-radius: 30px; padding: 28px; box-shadow: 10px 10px 0 var(--ink); }
.ca-card .label { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--ink-soft); }
.ca { font-family: var(--mono); font-weight: 700; font-size: clamp(16px, 1.5vw, 24px); line-height: 1.4; word-break: break-all; color: var(--red); margin: 24px 0 26px; min-height: 2.8em; }
.ca-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.small { font-size: 13px; color: var(--ink-soft); margin: 20px 0 0; }
@media (max-width: 900px) { .coin { padding: 110px 0 80px; } .coin-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- roadmap: advent doors ---------- */
.roadmap { padding: 70px 0 120px; }
.doors { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.door { position: relative; background: var(--paper); border: 3px solid var(--ink); border-radius: 24px; padding: 92px 22px 24px; box-shadow: 6px 6px 0 var(--ink); min-height: 280px; }
.door:nth-child(2) { transition-delay: .1s; }
.door:nth-child(3) { transition-delay: .2s; }
.door:nth-child(4) { transition-delay: .3s; }
.door-no, .door-flap { position: absolute; top: 18px; left: 18px; width: 58px; height: 58px; border-radius: 16px; border: 3px solid var(--ink); }
.door-no { display: grid; place-items: center; background: var(--red); color: var(--paper); font-family: var(--display); font-weight: 700; font-size: 30px; }
.door-flap {
  background: repeating-linear-gradient(45deg, var(--red) 0 7px, var(--paper) 7px 14px);
  box-shadow: 2px 2px 0 var(--ink);
  transform-origin: left center;
  transform: perspective(500px) rotateY(0deg);
  transition: transform 1s var(--out) .45s;
}
.door-flap::after { content: ''; position: absolute; right: 7px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--gold); border: 2px solid var(--ink); }
.door.in .door-flap { transform: perspective(500px) rotateY(-118deg); }
.door:nth-child(2) .door-flap { transition-delay: .6s; }
.door:nth-child(3) .door-flap { transition-delay: .75s; }
.door:nth-child(4) .door-flap { transition-delay: .9s; }

.door h3 { font-size: 30px; color: var(--red); }
.door p { margin: 10px 0 0; color: var(--ink-soft); }
.after { font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.4vw, 30px); color: var(--pine); text-align: center; margin: 54px 0 0; }
@media (max-width: 1060px) { .doors { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .doors { grid-template-columns: 1fr; } .door { min-height: 0; } }

/* ---------- faq ---------- */
.faq { padding: 30px 0 120px; }
.faq-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 4vw; align-items: start; }
.faq-list { max-width: none; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } }
.faq details { border-top: 2px solid rgba(31, 43, 38, .14); padding: 18px 0; }
.faq details:last-child { border-bottom: 2px solid rgba(31, 43, 38, .14); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-family: var(--display); font-weight: 600; font-size: clamp(20px, 2vw, 30px); color: var(--red); transition: color .2s; }
.faq summary:hover { color: var(--red); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; font-family: var(--display); font-size: 32px; line-height: 1; color: var(--red); transition: transform .3s var(--spring); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: 6px; }
.faq details p { margin: 12px 0 4px; color: var(--ink-soft); max-width: 70ch; }
.faq details[open] p { animation: faqIn .35s var(--out); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- footer ---------- */
.foot { position: relative; overflow: hidden; background: var(--red); color: var(--logo); padding: 100px 0 40px; border-top: 3px solid var(--ink); }
.foot .wrap { position: relative; }
.foot-big { font-family: var(--display); font-weight: 700; font-size: clamp(46px, 8.6vw, 200px); line-height: .92; letter-spacing: -.02em; margin: 0; }
.foot-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 64px; }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; border-top: 1.5px solid rgba(255, 251, 243, .2); padding-top: 30px; }
.foot-grid .label { color: rgba(255, 251, 243, .6); }
.sources { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 9px; font-size: 14px; }
.sources a { color: var(--logo); text-underline-offset: 3px; }
.foot-grid p:not(.label) { font-size: 14px; color: rgba(255, 251, 243, .74); margin: 12px 0 0; }
.copy { margin: 44px 0 0; font-family: var(--mono); font-size: 12px; color: rgba(255, 251, 243, .55); }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- toast, bursts ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 100;
  transform: translate(-50%, 160%);
  background: var(--ink); color: var(--paper);
  padding: 12px 20px; border-radius: 999px;
  font-family: var(--display); font-weight: 600;
  box-shadow: 4px 4px 0 var(--red);
  transition: transform .3s var(--out);
  max-width: calc(100vw - 32px); text-align: center;
}
.toast.show { transform: translate(-50%, 0); }
.burst { position: fixed; z-index: 600; width: 10px; height: 6px; border-radius: 2px; pointer-events: none; }

/* ---------- reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(30px) rotate(var(--tilt, 0deg)) scale(.97); transition: opacity .7s ease, transform .8s var(--spring); }
[data-reveal].in { opacity: 1; transform: rotate(var(--tilt, 0deg)); }
.no-js [data-reveal] { opacity: 1; transform: rotate(var(--tilt, 0deg)); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: rotate(var(--tilt, 0deg)); transition: none; }
  .js .hero [data-intro], .js .coin3d { opacity: 1; }
  .js .hero-title .line-in { transform: none; }
  .js .hero-title em::after { clip-path: none; }
  .hero-art .piece, .spark, .ribbon .track, .ribbon i, .scroll-hint span, .tree-svg .strand.on .bulb,
  .live-dot, .cd-dot, .coin3d, .coin3d-glow, .card-art, .meter-ribbon, .hero-title em, .loader::before { animation: none !important; }
  .door-flap { transition: none; }
  .story-text .w { opacity: 1; }
}
