/* Mazeheart TD website. Dark like the game: deep navy, glossy 3D art, rounded heavy type (SF Rounded on Apple
   devices, the same face the game uses). No web fonts, no trackers. */
:root {
  --bg: #0a0c12;
  --bg2: #0f131b;
  --panel: #151a24;
  --card: #1b2130;
  --card2: #222a3b;
  --stroke: rgba(255, 255, 255, 0.11);
  --stroke2: rgba(255, 255, 255, 0.18);
  --text: #f7f8fb;
  --sub: rgba(236, 240, 248, 0.70);
  --dim: rgba(236, 240, 248, 0.52);
  --gold: #ffd140;
  --gold2: #ffb22e;
  --xp: #6bd1ff;
  --pass: #b38cff;
  --teal: #46dbe8;
  --lives: #ff6b6b;
  --frost: #73ccff;
  --ember: #ff8c33;
  --storm: #ffd638;
  --thorn: #6bd15c;
  --umbral: #a375ff;
  --r-s: 12px;
  --r-m: 18px;
  --r-l: 28px;
  --round: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--round);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--xp); text-underline-offset: 3px; }
a:hover { color: #9fe2ff; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 12px; top: 12px; background: var(--gold); color: #000; padding: 8px 14px; border-radius: 10px; z-index: 10; }

/* ---------- nav ---------- */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  background: rgba(10, 12, 18, 0.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--stroke); }
.nav .wrap { display: flex; align-items: center; gap: 12px; min-height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 900; letter-spacing: 0.01em; }
.brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 2px 10px rgba(70, 219, 232, 0.25); }
.brand span { font-size: 18px; white-space: nowrap; }
.nav nav { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.nav nav a { color: var(--sub); text-decoration: none; font-weight: 700; font-size: 15px; padding: 8px 12px; border-radius: 999px; }
.nav nav a:hover, .nav nav a[aria-current="page"] { color: var(--text); background: var(--card); }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--round); text-wrap: balance; margin: 0; }
h1 { font-weight: 900; font-size: clamp(40px, 6.4vw, 72px); line-height: 1.02; letter-spacing: -0.02em; }
h2 { font-weight: 900; font-size: clamp(30px, 4.2vw, 46px); line-height: 1.08; letter-spacing: -0.015em; }
h3 { font-weight: 800; font-size: 21px; line-height: 1.25; }
p { margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--teal); }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--sub); max-width: 34em; }
.sub { color: var(--sub); }
.gold-text { background: linear-gradient(180deg, #fff3b8, var(--gold) 45%, #e08a12); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: 56px 72px; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 900px; height: 900px; max-width: 120vw;
  background: radial-gradient(closest-side, rgba(70, 219, 232, 0.30), rgba(70, 219, 232, 0.08) 55%, transparent 70%);
  pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 140px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 36px; align-items: center; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 4px; }
.soon { display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px 12px 14px; border-radius: 16px;
  background: #000; border: 1px solid rgba(255, 255, 255, 0.28); color: #fff; }
.soon svg { width: 26px; height: 26px; flex: none; }
.soon b { display: block; font-size: 18px; line-height: 1.1; font-weight: 800; }
.soon small { display: block; font-size: 12px; line-height: 1.1; color: rgba(255, 255, 255, 0.75); font-weight: 600; }
.btn-ghost { display: inline-flex; align-items: center; gap: 8px; padding: 13px 18px; border-radius: 16px; border: 1px solid var(--stroke2);
  color: var(--text); text-decoration: none; font-weight: 800; background: rgba(255, 255, 255, 0.04); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); }
.facts { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.facts li { padding: 7px 13px; border-radius: 999px; background: var(--card); border: 1px solid var(--stroke); font-weight: 800; font-size: 14px; color: var(--sub); }
.facts b { color: var(--text); font-variant-numeric: tabular-nums; }
.hero-art { position: relative; aspect-ratio: 1 / 1.02; max-width: 580px; width: 100%; justify-self: center; }
.hero-art .layer { position: absolute; inset: 0;
  translate: calc(var(--mx, 0) * var(--depth, 0) * 1px) calc(var(--my, 0) * var(--depth, 0) * 1px + var(--sy, 0) * var(--sd, 0) * 1px);
  transition: translate 0.35s cubic-bezier(.2, .7, .2, 1); }
.hero-art .glow { position: absolute; left: 8%; right: 8%; top: 0; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #b8fbff 0%, #5fe3ee 30%, #23b4cc 52%, rgba(20, 120, 150, 0.35) 64%, rgba(10, 70, 90, 0) 71%);
  filter: blur(2px); opacity: 0.9; }
.hero-art .spark { position: absolute; left: var(--x); top: var(--y); width: 26px; height: 26px; scale: var(--s); opacity: 0.85;
  background: radial-gradient(closest-side, #fff, rgba(255, 255, 255, 0) 70%);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); }
.hero-art .ring { position: absolute; left: 50%; bottom: 10%; width: 46%; aspect-ratio: 1; translate: -50% 0; border-radius: 50%;
  border: 3px solid rgba(140, 236, 255, 0.85); opacity: 0; pointer-events: none; }
.hero-art .maw { position: absolute; left: 10%; width: 80%; top: 9%; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.55)); }
.hero-art .row { position: absolute; left: -2%; right: -2%; bottom: 0; display: flex; justify-content: center; align-items: flex-end; }
.hero-art .row img { width: 22%; margin-inline: -1.6%; filter: drop-shadow(0 14px 16px rgba(0, 0, 0, 0.65)); }
.hero-art .row img:nth-child(1), .hero-art .row img:nth-child(5) { width: 19%; margin-bottom: 7%; }
.hero-art .row img:nth-child(2), .hero-art .row img:nth-child(4) { width: 20%; margin-bottom: 2.5%; }
.hero-art .row img:nth-child(3) { width: 26%; z-index: 1; }

/* ---------- sections ---------- */
section { padding-block: 72px; }
.section-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: 36px; }
.band { background: linear-gradient(180deg, var(--bg2), var(--bg)); border-top: 1px solid var(--stroke); }

/* how it plays */
.how { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; }
.board { background: var(--panel); border: 1px solid var(--stroke); border-radius: var(--r-l); padding: 18px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45); }
.board svg { width: 100%; height: auto; display: block; border-radius: 14px; }
.board figcaption { color: var(--dim); font-size: 14px; margin-top: 12px; text-align: center; }
.steps { display: grid; gap: 14px; counter-reset: s; margin: 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 16px; padding: 20px; border-radius: var(--r-m);
  background: var(--card); border: 1px solid var(--stroke); }
.steps li::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
  background: linear-gradient(180deg, #fff1a6, var(--gold) 50%, var(--gold2)); color: #2a1c00; font-weight: 900; font-size: 21px;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.18); }
.steps h3 { margin-bottom: 4px; }
.steps p { color: var(--sub); }

/* races */
.races { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.race { --c: var(--frost); position: relative; padding: 18px 16px 20px; border-radius: var(--r-m); background: var(--card);
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); overflow: hidden; display: grid; gap: 8px; align-content: start; }
.race::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 120px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 32%, transparent), transparent); pointer-events: none; }
.race img { position: relative; width: 84px; height: 84px; margin: 4px auto 6px; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.5)); }
.race h3 { color: var(--c); text-align: center; font-weight: 900; }
.race p { color: var(--sub); font-size: 15px; text-align: center; }

/* towers */
.towers { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; align-items: end; }
.towers figure { margin: 0; display: grid; gap: 10px; justify-items: center; }
.towers img { width: 100%; max-width: 190px; filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.55)); }
.towers figcaption { font-weight: 800; font-size: 15px; text-align: center; }
.towers figcaption small { display: block; font-weight: 700; color: var(--dim); font-size: 13px; }
@media (prefers-reduced-motion: no-preference) {
  .float { animation: float 4.2s ease-in-out infinite; }
  .towers figure:nth-child(2) .float { animation-delay: -1.1s; }
  .towers figure:nth-child(3) .float { animation-delay: -2.3s; }
  .towers figure:nth-child(4) .float { animation-delay: -0.6s; }
  .towers figure:nth-child(5) .float { animation-delay: -3.1s; }
  @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
}
.callouts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
.callout { padding: 18px 20px; border-radius: var(--r-m); background: var(--card); border: 1px solid var(--stroke); }
.callout b { display: block; font-size: 17px; margin-bottom: 4px; }
.callout span { color: var(--sub); font-size: 15px; }

/* leaderboard */
.score { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 34px; align-items: center; }
.scorecard { background: linear-gradient(160deg, #2a2412, var(--panel) 60%); border: 1px solid rgba(255, 209, 64, 0.35);
  border-radius: var(--r-l); padding: 28px; display: grid; gap: 18px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4); }
.scorecard .top { display: flex; align-items: center; gap: 16px; }
.scorecard .top img { width: 74px; height: 74px; }
.big { font-size: clamp(64px, 9vw, 96px); font-weight: 900; line-height: 0.9; font-variant-numeric: tabular-nums; }
.big small { font-size: 0.32em; color: var(--sub); font-weight: 800; margin-left: 6px; }
.bars { display: grid; gap: 9px; }
.bar { display: grid; grid-template-columns: 64px minmax(0, 1fr) 38px; gap: 10px; align-items: center; font-weight: 800; font-size: 14px; }
.bar i { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, 0.09); position: relative; overflow: hidden; }
.bar i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--c); border-radius: 99px; }
.bar em { font-style: normal; text-align: right; color: var(--sub); font-variant-numeric: tabular-nums; }
.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; color: var(--sub); }
.ticks li::before { content: ""; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%;
  background: var(--good, #64e085) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23062a10' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.ticks b { color: var(--text); }

/* pass */
.pass { position: relative; border-radius: var(--r-l); padding: clamp(24px, 4vw, 44px); overflow: hidden;
  background: radial-gradient(120% 90% at 100% 0%, rgba(179, 140, 255, 0.28), transparent 60%), linear-gradient(180deg, #1b1630, var(--panel));
  border: 1px solid rgba(179, 140, 255, 0.4); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 34px; align-items: center; }
.pass .eyebrow { color: var(--pass); }
.pass h2 { margin: 10px 0 14px; }
.perks { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.perks li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; color: var(--sub); }
.perks li span { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: rgba(179, 140, 255, 0.18);
  color: var(--pass); font-weight: 900; font-size: 16px; }
.perks b { color: var(--text); }
.promise { margin-top: 22px; padding: 14px 16px; border-radius: var(--r-s); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--stroke);
  font-weight: 700; }
.promise b { color: var(--gold); }
.loot { display: grid; gap: 14px; }
.skins { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.skins figure { margin: 0; text-align: center; }
.skins img { filter: drop-shadow(0 12px 14px rgba(0, 0, 0, 0.55)); }
.skins figcaption { font-size: 13px; font-weight: 800; color: var(--sub); margin-top: 6px; }
.chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.chips div { aspect-ratio: 1; border-radius: 18px; display: grid; place-items: center;
  background: linear-gradient(180deg, #2b2645, #15121f); border: 1px solid rgba(255, 255, 255, 0.14); }
.chips img { width: 74%; }

/* free + privacy */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.panel { padding: 28px; border-radius: var(--r-l); background: var(--card); border: 1px solid var(--stroke); display: grid; gap: 14px; align-content: start; }
.label { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 15px; color: var(--teal); }
.privacy-mark { display: inline-flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; background: rgba(100, 224, 133, 0.10);
  border: 1px solid rgba(100, 224, 133, 0.35); width: fit-content; max-width: 100%; }
.privacy-mark b { color: #8ff0a9; font-size: 18px; }
.privacy-mark svg { width: 26px; height: 26px; flex: none; }

/* final cta */
.final-sec { padding-block: 40px 88px; }
.final { text-align: center; display: grid; gap: 18px; justify-items: center; }
.final img { width: 132px; height: 132px; border-radius: 30px; box-shadow: 0 18px 50px rgba(70, 219, 232, 0.25), 0 10px 30px rgba(0, 0, 0, 0.5); }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--stroke); padding-block: 30px 40px; color: var(--dim); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer a { color: var(--sub); text-decoration: none; font-weight: 700; }
footer a:hover { color: var(--text); }

/* ---------- document pages (privacy, terms, support) ---------- */
.doc { padding-block: 48px 72px; }
.doc .wrap { max-width: 760px; }
.doc header { display: grid; gap: 10px; margin-bottom: 30px; }
.doc .meta { color: var(--dim); font-size: 15px; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.doc h2 { font-size: 24px; margin: 34px 0 10px; letter-spacing: -0.005em; }
.doc p, .doc li { color: var(--sub); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 1.2em; margin: 10px 0 0; display: grid; gap: 8px; }
.doc strong { color: var(--text); }
.short { padding: 20px 22px; border-radius: var(--r-m); background: var(--card); border: 1px solid var(--stroke); }
.short h2 { margin-top: 0; }
.mailcard { display: grid; gap: 10px; padding: 24px; border-radius: var(--r-l); background: linear-gradient(160deg, rgba(70, 219, 232, 0.12), var(--card));
  border: 1px solid rgba(70, 219, 232, 0.35); }
.mailcard a.mail { font-size: clamp(20px, 3.4vw, 28px); font-weight: 900; color: var(--text); text-decoration: none; word-break: break-all; }
.mailcard a.mail:hover { color: var(--teal); }
.copy { justify-self: start; display: inline-flex; gap: 8px; align-items: center; padding: 9px 14px; border-radius: 12px; border: 1px solid var(--stroke2);
  background: rgba(255, 255, 255, 0.05); color: var(--text); font: 800 14px var(--round); cursor: pointer; }
.copy:hover { background: rgba(255, 255, 255, 0.1); }
.faq { display: grid; gap: 10px; margin-top: 14px; }
.faq details { border-radius: var(--r-m); background: var(--card); border: 1px solid var(--stroke); }
.faq summary { cursor: pointer; padding: 16px 18px; font-weight: 800; color: var(--text); list-style: none; display: flex; gap: 10px; justify-content: space-between; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal); font-weight: 900; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 18px 18px; color: var(--sub); }
.faq details > div p + p { margin-top: 10px; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .races { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .towers { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 26px; }
}
@media (max-width: 860px) {
  .hero { padding-block: 28px 56px; }
  .hero .wrap, .how, .score, .pass, .duo { grid-template-columns: minmax(0, 1fr); }
  .hero-art { max-width: 440px; order: -1; }
  .callouts { grid-template-columns: minmax(0, 1fr); }
  section { padding-block: 56px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 16px; }
  .races { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .races .race:last-child { grid-column: 1 / -1; }
  .towers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .towers figure:last-child { grid-column: 1 / -1; }
  .towers figure:last-child img { max-width: 50%; }
  .chips { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .brand span { font-size: 16px; }
  .nav nav a { padding: 8px 12px; font-size: 15px; }
  .nav nav a.opt { display: none; }
  .steps li { grid-template-columns: 40px minmax(0, 1fr); padding: 16px; gap: 12px; }
  .steps li::before { width: 40px; height: 40px; font-size: 18px; }
}

/* =====================================================================================================
   Motion. Only with JavaScript on (html.js) and only when the visitor hasn't asked for reduced motion.
   ===================================================================================================== */
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold2), var(--gold), #fff3b8);
  transform: scaleX(0); transform-origin: 0 50%; box-shadow: 0 0 10px rgba(255, 209, 64, 0.6); }
.nav { transition: background-color 0.3s, box-shadow 0.3s; }
.nav.scrolled { background: rgba(10, 12, 18, 0.9); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }

/* the live board */
.board { position: relative; }
.mz-hud { display: flex; gap: 8px; justify-content: center; margin-bottom: 12px; font-weight: 800; font-size: 13px; flex-wrap: wrap; }
.mz-hud span { padding: 5px 11px; border-radius: 999px; background: var(--card); border: 1px solid var(--stroke); color: var(--sub);
  font-variant-numeric: tabular-nums; transition: background-color .3s, color .3s; }
.mz-hud b { color: var(--text); }
.mz-hud .g b { color: var(--gold); }
.mz-hud .l b { color: var(--lives); }
.mz-hud .w.boss { background: rgba(255, 92, 92, 0.18); color: #ffb3b3; border-color: rgba(255, 92, 92, 0.5); }
.mz-gem, .mz-ring, .mz-fx circle, .mz-gold { transform-box: fill-box; transform-origin: center; }
.mz-gold { font: 900 11px var(--round); fill: var(--gold); paint-order: stroke; stroke: rgba(0, 0, 0, 0.55); stroke-width: 2.5px; }
.mz-shot { filter: drop-shadow(0 0 3px currentColor); }

@media (prefers-reduced-motion: no-preference) {
  /* reveal on scroll */
  .js .reveal { opacity: 0; translate: 0 26px; transition: opacity 0.75s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms), translate 0.75s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms); }
  .js .reveal.in { opacity: 1; translate: 0 0; }

  /* hero entrance: copy rises in, the glow blooms, the boss drops and lands, towers pop up one by one */
  .js .intro > * { animation: rise 0.8s cubic-bezier(.2, .7, .2, 1) both; }
  .js .intro > :nth-child(1) { animation-delay: 0.05s; }
  .js .intro > :nth-child(2) { animation-delay: 0.15s; }
  .js .intro > :nth-child(3) { animation-delay: 0.3s; }
  .js .intro > :nth-child(4) { animation-delay: 0.42s; }
  .js .intro > :nth-child(5) { animation-delay: 0.54s; }
  @keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

  .js .hero h1 .gold-text { background-image: linear-gradient(100deg, #e08a12 0%, var(--gold) 30%, #fff8d6 45%, var(--gold) 60%, #e08a12 100%);
    background-size: 250% 100%; background-position: 100% 0; animation: shine 1.6s 1.2s ease-in-out both; }
  @keyframes shine { from { background-position: 100% 0; } to { background-position: 0 0; } }

  .js .hero-art .glow { animation: bloom 1.1s cubic-bezier(.2, .7, .2, 1) both, breathe 5.5s 1.1s ease-in-out infinite; }
  @keyframes bloom { from { opacity: 0; transform: scale(0.55); } to { opacity: 0.9; transform: scale(1); } }
  @keyframes breathe { 0%, 100% { transform: scale(1); opacity: 0.9; } 50% { transform: scale(1.04); opacity: 1; } }

  .js .hero-art .maw { transform-origin: 50% 92%; animation: drop 1.05s 0.25s cubic-bezier(.3, .6, .3, 1) both, idle 5s 1.4s ease-in-out infinite; }
  @keyframes drop {
    0% { opacity: 0; transform: translateY(-90px) scale(0.94, 1.08); }
    48% { opacity: 1; transform: translateY(0) scale(1.07, 0.9); }
    66% { transform: translateY(-10px) scale(0.97, 1.04); }
    82% { transform: translateY(0) scale(1.02, 0.98); }
    100% { transform: none; }
  }
  @keyframes idle { 0%, 100% { transform: none; } 50% { transform: translateY(-9px) scale(1.012, 0.99); } }

  .js .hero-art .row img { opacity: 0; animation: popup 0.65s cubic-bezier(.3, 1.4, .5, 1) both; transform-origin: 50% 100%; }
  .js .hero-art .row img:nth-child(3) { animation-delay: 0.95s; }
  .js .hero-art .row img:nth-child(2) { animation-delay: 1.07s; }
  .js .hero-art .row img:nth-child(4) { animation-delay: 1.15s; }
  .js .hero-art .row img:nth-child(1) { animation-delay: 1.25s; }
  .js .hero-art .row img:nth-child(5) { animation-delay: 1.33s; }
  @keyframes popup { from { opacity: 0; transform: translateY(38px) scale(0.55); } to { opacity: 1; transform: none; } }

  /* the top-level tower's shockwave, every few seconds */
  .js .hero-art .ring { animation: shock 3.6s 1.9s cubic-bezier(.2, .7, .2, 1) infinite; }
  @keyframes shock { 0% { opacity: 0.95; transform: scale(0.2); } 32% { opacity: 0; transform: scale(1.9); } 100% { opacity: 0; transform: scale(1.9); } }

  .js .hero-art .spark { animation: twinkle 3.2s var(--t) ease-in-out infinite; }
  @keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(0.3) rotate(0deg); } 45%, 55% { opacity: 0.95; transform: scale(1) rotate(45deg); } }

  /* the board demo: towers drop onto the board, the path's dashes march toward the exit */
  .js .board .mz-tower { opacity: 0; transform-box: fill-box; transform-origin: center; }
  .js .board.live .mz-tower { animation: drop-in 0.5s calc(var(--i) * 45ms) cubic-bezier(.3, 1.5, .5, 1) both; }
  @keyframes drop-in { from { opacity: 0; transform: translateY(-14px) scale(0.6); } to { opacity: 1; transform: none; } }
  .js .board .mz-path { opacity: 0; transition: opacity 0.6s 0.9s; }
  .js .board.live .mz-path { opacity: 1; animation: march 0.9s linear infinite; }
  @keyframes march { to { stroke-dashoffset: -13; } }

  /* steps: the number pops as each card arrives */
  .js .steps li.in::before { animation: badge-pop 0.55s calc(var(--d, 0ms) + 0.15s) cubic-bezier(.3, 1.6, .5, 1) both; }
  @keyframes badge-pop { from { transform: scale(0.4) rotate(-12deg); } to { transform: none; } }

  /* race cards: gems float, cards tilt toward the pointer with a moving shine */
  .race img { animation: gem-float 4.6s ease-in-out infinite; }
  .race:nth-child(2) img { animation-delay: -0.9s; }
  .race:nth-child(3) img { animation-delay: -1.8s; }
  .race:nth-child(4) img { animation-delay: -2.7s; }
  .race:nth-child(5) img { animation-delay: -3.6s; }
  @keyframes gem-float { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-8px) rotate(3deg); } }
  .tilt { transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.45s cubic-bezier(.2, .7, .2, 1), border-color 0.3s; }
  .tilt.tilting { transition: transform 0.08s linear; }
  .tilt::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.3s;
    background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.16), transparent 55%); }
  .tilt.tilting::after { opacity: 1; }

  /* towers: lift on hover */
  .towers figure img { transition: translate 0.35s cubic-bezier(.2, .7, .2, 1), scale 0.35s cubic-bezier(.2, .7, .2, 1), filter 0.35s; }
  .towers figure:hover img { translate: 0 -10px; scale: 1.05; filter: drop-shadow(0 22px 22px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 18px rgba(255, 255, 255, 0.18)); }

  /* scorecard: bars fill from empty */
  .js .scorecard .bar i::after { width: 0; transition: width 1.1s cubic-bezier(.2, .7, .2, 1); }
  .js .scorecard.in .bar i::after { width: var(--w); }
  .js .scorecard.in .bar:nth-child(2) i::after { transition-delay: 0.1s; }
  .js .scorecard.in .bar:nth-child(3) i::after { transition-delay: 0.2s; }
  .js .scorecard.in .bar:nth-child(4) i::after { transition-delay: 0.3s; }
  .scorecard .top img { animation: gem-float 5s ease-in-out infinite; }

  /* season pass: a light runs around the border, the finishes take turns in the spotlight, rewards bob */
  .pass::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
    background: conic-gradient(from var(--a, 0deg), transparent 0deg, rgba(179, 140, 255, 0) 250deg, rgba(220, 200, 255, 0.95) 320deg, transparent 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
    animation: orbit 6s linear infinite; }
  .skins figure { animation: spotlight 6.6s ease-in-out infinite; }
  .skins figure:nth-child(2) { animation-delay: 2.2s; }
  .skins figure:nth-child(3) { animation-delay: 4.4s; }
  @keyframes spotlight { 0%, 34%, 100% { transform: none; filter: none; } 10%, 24% { transform: translateY(-8px) scale(1.07); filter: drop-shadow(0 0 16px rgba(179, 140, 255, 0.55)); } }
  .chips div { animation: bob 3.8s ease-in-out infinite; }
  .chips div:nth-child(2) { animation-delay: -0.95s; }
  .chips div:nth-child(3) { animation-delay: -1.9s; }
  .chips div:nth-child(4) { animation-delay: -2.85s; }
  @keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

  /* privacy shield: the check draws itself */
  .js .panel .privacy-mark path + path { stroke-dasharray: 14; stroke-dashoffset: 14; }
  .js .panel.in .privacy-mark path + path { animation: check 0.6s 0.45s ease-out forwards; }
  @keyframes check { to { stroke-dashoffset: 0; } }

  /* final: the icon floats with a breathing glow */
  .final img { animation: icon-float 5s ease-in-out infinite; }
  @keyframes icon-float { 0%, 100% { transform: translateY(0) rotate(-2deg); box-shadow: 0 18px 50px rgba(70, 219, 232, 0.22), 0 10px 30px rgba(0, 0, 0, 0.5); }
    50% { transform: translateY(-10px) rotate(2deg); box-shadow: 0 26px 70px rgba(70, 219, 232, 0.4), 0 16px 34px rgba(0, 0, 0, 0.5); } }

  /* buttons */
  .soon { position: relative; overflow: hidden; }
  .soon::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.22) 50%, transparent 70%);
    transform: translateX(-120%); animation: sweep 5s 2.2s ease-in-out infinite; }
  @keyframes sweep { 0% { transform: translateX(-120%); } 25%, 100% { transform: translateX(120%); } }
  .btn-ghost { transition: translate 0.25s, background-color 0.25s, border-color 0.25s; }
  .btn-ghost:hover { translate: 0 -2px; border-color: rgba(255, 255, 255, 0.35); }
}
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes orbit { to { --a: 360deg; } }
