/* Wrong Way site. Tokens, gradients and shapes come from the game itself
   (web edition style.css / skins.css / levels.css, Flutter lib/theme.dart). */

@font-face {
  font-family: 'Fredoka';
  src: url('/assets/fonts/Fredoka.ttf') format('truetype');
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('/assets/fonts/Nunito.ttf') format('truetype');
  font-weight: 200 1000;
  font-display: swap;
}
@property --a {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

:root {
  --bg: #0E0F2E;
  --bg-2: #1B1446;
  --bg-3: #2A1C6B;
  --bg-deep: #0A0B24;
  --modal: #1E175A;
  --modal-2: #15113F;
  --surface: rgba(255, 255, 255, .07);
  --surface-2: rgba(255, 255, 255, .10);
  --surface-3: rgba(255, 255, 255, .15);
  --line: rgba(255, 255, 255, .12);
  --line-2: rgba(255, 255, 255, .22);
  --text: #F6F4FF;
  --muted: #ADA8DC;
  --soft: #CFCBEF;
  --faint: #8F8AC4;
  --violet: #7C5CFF;
  --violet-2: #9F88FF;
  --violet-dark: #5636E6;
  --cyan: #22D3EE;
  --magenta: #FF4D9D;
  --gold: #FFC24B;
  --mint: #2EE6A6;
  --coral: #FF6B57;
  --radius: 22px;
  --shadow: 0 10px 28px rgba(4, 3, 24, .42);
  --shadow-lg: 0 24px 60px rgba(4, 3, 24, .6);
  --font-display: 'Fredoka', 'Nunito', ui-rounded, system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --way: linear-gradient(100deg, var(--cyan) 0%, #8DA2FF 45%, var(--magenta) 100%);
  --brand: linear-gradient(140deg, var(--cyan), var(--violet) 55%, var(--magenta));
  --frame: linear-gradient(145deg, #9F88FF, #22D3EE 40%, #7C5CFF 70%, #FF4D9D);
  --glass: linear-gradient(180deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .05));
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);
  --nav-h: 68px;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--bg);
}
body {
  margin: 0;
  min-height: 100vh;
  font: 600 17px/1.6 var(--font-body);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 10px; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.01em;
}
p { margin: 0; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 12px; top: -80px; z-index: 100;
  padding: 10px 16px; border-radius: 12px;
  background: var(--cyan); color: var(--bg); font-weight: 800;
}
.skip:focus { top: 12px; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.grad {
  background: var(--way);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- the night sky behind every page ---------- */
.sky {
  position: fixed; inset: 0; z-index: -1;
  overflow: hidden; pointer-events: none;
  background:
    radial-gradient(120% 70% at 50% -10%, #33208A 0%, rgba(51, 32, 138, 0) 60%),
    radial-gradient(90% 60% at 100% 100%, rgba(255, 77, 157, .14), rgba(255, 77, 157, 0) 60%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 55%, var(--bg-deep) 100%);
}
.sky .blob {
  position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%;
  animation: drift 30s ease-in-out infinite alternate;
}
.sky .b1 { left: -30vmax; top: -22vmax; background: radial-gradient(circle, rgba(124, 92, 255, .5), rgba(124, 92, 255, 0) 62%); }
.sky .b2 { right: -32vmax; top: 18vh; background: radial-gradient(circle, rgba(34, 211, 238, .24), rgba(34, 211, 238, 0) 62%); animation-duration: 34s; animation-delay: -9s; }
.sky .b3 { left: -10vmax; bottom: -40vmax; background: radial-gradient(circle, rgba(255, 77, 157, .28), rgba(255, 77, 157, 0) 62%); animation-duration: 40s; animation-delay: -17s; }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(6vmax, 4vmax, 0) scale(1.08); }
  100% { transform: translate3d(-4vmax, 7vmax, 0) scale(.96); }
}
.sky .stars { position: absolute; left: 0; right: 0; top: 0; height: calc(100% + 420px); }
.sky .st1 {
  transform: translate3d(0, var(--sy1, 0px), 0);
  background-image:
    radial-gradient(1.6px 1.6px at 24px 40px, #fff, transparent),
    radial-gradient(1.2px 1.2px at 120px 160px, #dcd6ff, transparent),
    radial-gradient(1.8px 1.8px at 210px 70px, #fff, transparent),
    radial-gradient(1.1px 1.1px at 300px 230px, #b4f6ff, transparent),
    radial-gradient(1.4px 1.4px at 70px 290px, #fff, transparent),
    radial-gradient(1px 1px at 180px 330px, #ffc2de, transparent),
    radial-gradient(1.3px 1.3px at 330px 20px, #fff, transparent);
  background-size: 360px 360px;
  opacity: .7;
  animation: twinkle 5s ease-in-out infinite alternate;
}
.sky .st2 {
  transform: translate3d(0, var(--sy2, 0px), 0);
  background-image:
    radial-gradient(1px 1px at 60px 100px, #fff, transparent),
    radial-gradient(1.4px 1.4px at 190px 20px, #fff, transparent),
    radial-gradient(1px 1px at 260px 180px, #dcd6ff, transparent),
    radial-gradient(1.2px 1.2px at 30px 210px, #fff, transparent),
    radial-gradient(1px 1px at 150px 250px, #b4f6ff, transparent);
  background-size: 280px 280px;
  opacity: .45;
  animation: twinkle 7s ease-in-out infinite alternate-reverse;
}
@keyframes twinkle { from { opacity: .25; } to { opacity: .8; } }

.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60;
  transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--cyan), var(--violet-2), var(--magenta));
  box-shadow: 0 0 12px rgba(124, 92, 255, .8);
}

/* ---------- buttons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 24px; border-radius: 18px;
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text);
  font: 700 18px/1 var(--font-display); letter-spacing: .01em;
  text-decoration: none !important; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background .25s;
}
.btn::after {
  content: ''; position: absolute; z-index: 1; top: -40%; bottom: -40%; left: 0; width: 38%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .55), rgba(255, 255, 255, 0));
  transform: skewX(-20deg) translateX(-160%); pointer-events: none;
}
.btn:hover { transform: translateY(-3px); }
.btn:hover::after { animation: shine .9s var(--ease-out); }
.btn:active { transform: translateY(2px); }
@keyframes shine { to { transform: skewX(-20deg) translateX(330%); } }
.btn-primary {
  color: #06243A; border-color: rgba(255, 255, 255, .5);
  background: linear-gradient(180deg, #B4F6FF 0%, var(--cyan) 55%, #12A9C9 100%);
  box-shadow: 0 6px 0 #0B6E8C, 0 14px 30px rgba(34, 211, 238, .35);
}
.btn-primary:hover { box-shadow: 0 9px 0 #0B6E8C, 0 22px 40px rgba(34, 211, 238, .45); }
.btn-primary:active { transform: translateY(5px); box-shadow: 0 1px 0 #0B6E8C, 0 6px 16px rgba(34, 211, 238, .3); }
.btn-violet {
  border-color: rgba(255, 255, 255, .2);
  background: linear-gradient(180deg, #8F72FF, var(--violet) 55%, var(--violet-dark));
  box-shadow: 0 6px 0 #3B22B0, 0 14px 30px rgba(124, 92, 255, .35);
}
.btn-violet:hover { box-shadow: 0 9px 0 #3B22B0, 0 22px 40px rgba(124, 92, 255, .45); }
.btn-ghost { background: rgba(255, 255, 255, .07); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn .ic { width: 26px; height: 26px; flex: none; }
.btn .two { display: grid; gap: 4px; text-align: left; }
.btn .two small {
  font: 800 11px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; opacity: .75;
}
.btn-store { min-height: 62px; padding: 0 26px 0 20px; font-size: 21px; }

/* ---------- top bar ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  transition: background .3s, box-shadow .3s;
}
.nav.scrolled, .nav.open {
  background: rgba(14, 15, 46, .78);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(4, 3, 24, .35);
}
.nav-in { height: 100%; display: flex; align-items: center; gap: 16px; }
.brand {
  display: flex; align-items: center; gap: 10px; flex: none;
  color: var(--text); font: 700 24px/1 var(--font-display); text-decoration: none !important;
}
.brand img {
  width: 40px; height: 40px; border-radius: 11px;
  box-shadow: 0 6px 18px rgba(124, 92, 255, .45);
  transition: transform .4s var(--ease-back);
}
.brand:hover img { transform: rotate(-8deg) scale(1.08); }
.brand .way {
  background: var(--way); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav-links { display: flex; gap: 2px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav-links a {
  display: block; padding: 10px 13px; border-radius: 12px;
  color: var(--muted); font-weight: 800; font-size: 15px; text-decoration: none;
  transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface); }
.nav-cta { min-height: 44px; padding: 0 18px; font-size: 16px; border-radius: 14px; }
.nav-cta.btn-primary { box-shadow: 0 4px 0 #0B6E8C, 0 10px 22px rgba(34, 211, 238, .3); }
.menu-btn {
  display: none; width: 46px; height: 46px; padding: 0; margin-left: 4px;
  border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface);
  cursor: pointer; place-content: center; gap: 5px;
}
.menu-btn i {
  display: block; width: 20px; height: 2.5px; border-radius: 2px; background: var(--text);
  transition: transform .3s var(--ease-out), opacity .2s;
}
.nav.open .menu-btn i:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav.open .menu-btn i:nth-child(2) { opacity: 0; }
.nav.open .menu-btn i:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.nav-panel {
  position: absolute; top: var(--nav-h); left: 0; right: 0;
  padding: 10px 16px 22px;
  background: linear-gradient(180deg, #16123F, #0E0F2E); border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 40px rgba(4, 3, 24, .55);
  opacity: 0; transform: translateY(-10px); pointer-events: none; visibility: hidden;
  transition: opacity .25s, transform .25s var(--ease-out), visibility 0s .25s;
}
.nav.open .nav-panel {
  opacity: 1; transform: none; pointer-events: auto; visibility: visible;
  transition: opacity .25s, transform .25s var(--ease-out);
}
.nav-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.nav-panel a {
  display: flex; align-items: center; gap: 12px; padding: 14px 12px; border-radius: 14px;
  color: var(--text); font: 700 19px/1 var(--font-display); text-decoration: none;
}
.nav-panel a:hover { background: var(--surface); }
.nav-panel .btn { width: 100%; margin-top: 12px; }
@media (max-width: 1040px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .menu-btn { display: grid; }
}
@media (max-width: 400px) {
  .brand { font-size: 21px; }
  .brand img { width: 36px; height: 36px; }
  .nav-cta { padding: 0 14px; font-size: 15px; }
}

/* ---------- reveal on scroll ---------- */
html.js [data-reveal] {
  opacity: 0;
  translate: 0 44px;
  transition: opacity .9s var(--ease-out), translate .9s var(--ease-out), scale .9s var(--ease-out), rotate .9s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
html.js [data-reveal="zoom"] { translate: 0 20px; scale: .86; }
html.js [data-reveal="left"] { translate: -60px 0; }
html.js [data-reveal="right"] { translate: 60px 0; }
html.js [data-reveal="flip"] { translate: 0 60px; rotate: x 28deg; }
html.js [data-reveal].in { opacity: 1; translate: none; scale: none; rotate: none; }

/* sections out of view stop their loops */
.paused *, .paused *::before, .paused *::after { animation-play-state: paused !important; }

/* ---------- section heads ---------- */
.sec { position: relative; padding-block: clamp(72px, 10vw, 130px); }
.sec-head { max-width: 780px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.sec-head.left { margin-left: 0; text-align: left; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--gold); font: 800 13px/1 var(--font-body); letter-spacing: .28em; text-transform: uppercase;
}
.eyebrow::before, .eyebrow::after {
  content: ''; width: 28px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(255, 194, 75, 0), var(--gold));
}
.eyebrow::after { transform: scaleX(-1); }
.sec-head.left .eyebrow::before { display: none; }
.sec-title { margin-top: 14px; font-size: clamp(38px, 5.6vw, 66px); }
.sec-lead { margin-top: 16px; color: var(--muted); font-size: clamp(17px, 2vw, 20px); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; align-items: center;
  padding: calc(var(--nav-h) + 28px) 0 84px;
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center; gap: 28px;
}
.hero-copy { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 16px 6px 6px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--soft); font-weight: 800; font-size: 14.5px;
}
.hero-badge b {
  padding: 5px 11px; border-radius: 999px;
  background: linear-gradient(180deg, #7DF7CB, var(--mint)); color: #052a1d;
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
}
.hero-logo {
  width: 92px; height: 92px; border-radius: 24px; margin-bottom: 18px;
  box-shadow: 0 18px 40px rgba(124, 92, 255, .5), 0 0 0 1px rgba(255, 255, 255, .12);
  animation: logoIn 1s var(--ease-back) both .05s, floaty 5s ease-in-out infinite 1.2s;
}
@keyframes logoIn { from { opacity: 0; transform: translateY(30px) scale(.6) rotate(-14deg); } }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-8px) rotate(-3deg); } }
.wordmark {
  margin-top: 20px; white-space: nowrap;
  font-size: clamp(58px, 6.7vw, 102px); line-height: .95; letter-spacing: -.025em;
  perspective: 700px;
}
.wordmark .w { display: inline-block; transform-origin: 50% 100%; }
.wordmark .wrong {
  color: #fff;
  text-shadow: 0 6px 0 rgba(20, 14, 70, .6), 0 22px 50px rgba(124, 92, 255, .5);
  animation: wIn 1.1s var(--ease-out) both .15s;
}
.wordmark .way {
  padding-right: .06em;
  background: var(--way); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 0 rgba(20, 14, 70, .6)) drop-shadow(0 16px 30px rgba(255, 77, 157, .35));
  animation: wIn 1.1s var(--ease-out) both .38s, sheen 7s ease-in-out infinite 1.6s;
}
@keyframes wIn { from { opacity: 0; transform: translateY(46px) rotateX(-75deg); } to { opacity: 1; transform: none; } }
@keyframes sheen { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.tagline {
  display: flex; align-items: center; gap: 14px; margin-top: 20px;
  color: #DCD7FF; font: 700 clamp(13px, 1.5vw, 17px)/1 var(--font-display);
  letter-spacing: .42em; text-transform: uppercase;
}
.tagline::before, .tagline::after {
  content: ''; width: 46px; height: 3px; border-radius: 3px; flex: none;
  background: linear-gradient(90deg, rgba(255, 194, 75, 0), var(--gold));
}
.tagline::after { transform: scaleX(-1); margin-left: -.42em; }
.lead { margin-top: 22px; max-width: 34ch; color: var(--soft); font-size: clamp(18px, 1.8vw, 21px); line-height: 1.55; }
.cta-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.facts {
  display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 26px 0 0; padding: 0; list-style: none;
  color: var(--muted); font-weight: 800; font-size: 14.5px;
}
.facts li { display: flex; align-items: center; gap: 7px; }

.hero-stage { position: relative; width: 100%; max-width: 700px; margin-inline: auto; aspect-ratio: 1; }
.stage-halo {
  position: absolute; inset: 6%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(124, 92, 255, .42), rgba(34, 211, 238, .14) 55%, rgba(124, 92, 255, 0));
  animation: halo 6s ease-in-out infinite;
}
@keyframes halo { 0%, 100% { transform: scale(.94); opacity: .8; } 50% { transform: scale(1.05); opacity: 1; } }
.hero-stage canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 1.4s ease; touch-action: pan-y;
}
.hero-stage.is-3d canvas { opacity: 1; }
.stage-fallback {
  position: absolute; top: 5%; left: 50%; width: 44%; translate: -50% 0;
  rotate: z 6deg; transition: opacity .8s, visibility 0s .8s;
}
.hero-stage.is-3d .stage-fallback { opacity: 0; visibility: hidden; }
.hud {
  position: absolute; top: 2%; left: 50%; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  transform: translateX(-50%);
  opacity: 0; transition: opacity .6s .9s;
}
.hero-stage.is-3d .hud { opacity: 1; }
.hud-pill {
  --pc: var(--cyan); --hi: #B4F6FF; --lo: #0B6E8C;
  display: flex; align-items: center; gap: 9px;
  padding: 6px 13px 6px 6px; border-radius: 17px;
  background: rgba(21, 17, 63, .78); border: 2px solid var(--line);
  font: 700 15.5px/1 var(--font-display); white-space: nowrap;
  transition: border-color .35s, box-shadow .35s, transform .35s var(--ease-back);
}
.hud-pill.m { --pc: var(--magenta); --hi: #FFC2DE; --lo: #A11558; }
.hud-pill .dot {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 36% 30%, var(--hi) 0%, var(--pc) 46%, var(--lo) 100%);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .35);
}
.hud-pill .wl { color: var(--muted); font: 800 13.5px/1 var(--font-body); }
.hud-pill .wl b { color: var(--text); }
.hud-pill.on {
  border-color: var(--pc); transform: translateY(-2px) scale(1.04);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pc) 22%, transparent), 0 0 26px color-mix(in srgb, var(--pc) 55%, transparent);
}
.hud .vs { font: 700 17px/1 var(--font-display); color: var(--gold); text-shadow: 0 2px 0 rgba(0, 0, 0, .35); }
.stage-toast {
  position: absolute; left: 50%; top: 44%; z-index: 3;
  display: flex; align-items: center; gap: 10px;
  transform: translate(-50%, -50%); opacity: 0; pointer-events: none; white-space: nowrap;
}
.stage-toast .ti { font-size: clamp(30px, 4.4vw, 50px); }
.stage-toast .tt {
  font: 700 clamp(28px, 4.4vw, 50px)/1 var(--font-display); letter-spacing: .01em;
  background: linear-gradient(180deg, #FFF3C8 0%, var(--gold) 55%, #F59E0B 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 0 rgba(70, 30, 0, .6)) drop-shadow(0 10px 30px rgba(255, 194, 75, .5));
}
.stage-toast.show { animation: toast 1.8s var(--ease-out) forwards; }
@keyframes toast {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.5) rotate(-8deg); }
  16% { opacity: 1; transform: translate(-50%, -50%) scale(1.14) rotate(2deg); }
  28% { transform: translate(-50%, -50%) scale(1) rotate(0); }
  78% { opacity: 1; transform: translate(-50%, -62%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -82%) scale(.96); }
}
.scroll-cue {
  position: absolute; left: 50%; bottom: 18px; translate: -50% 0;
  display: grid; justify-items: center; gap: 8px;
  color: var(--faint); font: 800 11px/1 var(--font-body); letter-spacing: .24em; text-transform: uppercase;
  text-decoration: none !important;
}
.scroll-cue i { position: relative; width: 24px; height: 38px; border: 2px solid var(--line-2); border-radius: 14px; }
.scroll-cue i::after {
  content: ''; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: var(--cyan); animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(-3px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

@media (max-width: 900px) {
  .hero { padding-top: calc(var(--nav-h) + 20px); min-height: 0; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .hero-copy { text-align: center; }
  .hero-logo { margin-inline: auto; width: 80px; height: 80px; }
  .tagline, .cta-row, .facts { justify-content: center; }
  .lead { margin-inline: auto; }
  .hero-stage { max-width: 560px; margin-top: 8px; }
  .scroll-cue { display: none; }
}
@media (max-width: 370px) { .wordmark { font-size: 50px; } }
@media (max-width: 520px) {
  .tagline { letter-spacing: .3em; gap: 10px; }
  .tagline::before, .tagline::after { width: 28px; }
  .cta-row .btn { width: 100%; }
  .hud { gap: 6px; }
  .hud-pill { padding: 4px 10px 4px 4px; font-size: 13px; gap: 6px; }
  .hud-pill .dot { width: 22px; height: 22px; }
  .hud-pill .wl { font-size: 12px; }
  .hud .vs { font-size: 14px; }
}

/* ---------- ribbons ---------- */
.ribbons { position: relative; height: 170px; overflow: hidden; }
.ribbon {
  position: absolute; left: -6%; right: -6%; top: 50%;
  display: flex; overflow: hidden; padding: 15px 0;
  transform: translateY(-50%) rotate(-3deg);
  background: linear-gradient(90deg, var(--cyan), var(--violet) 50%, var(--magenta));
  box-shadow: 0 16px 44px rgba(124, 92, 255, .4);
}
.ribbon.back {
  transform: translateY(-50%) rotate(2.6deg);
  background: rgba(27, 20, 70, .92); border-block: 1px solid var(--line); box-shadow: none;
}
.ribbon .track { display: flex; flex: none; animation: marquee 34s linear infinite; }
.ribbon.back .track { animation-direction: reverse; animation-duration: 44s; }
.ribbon span {
  flex: none; padding: 0 20px; white-space: nowrap;
  color: #10113A; font: 700 22px/1 var(--font-display); letter-spacing: .05em; text-transform: uppercase;
}
.ribbon span.s { color: #fff; opacity: .9; }
.ribbon.back span { color: var(--muted); }
.ribbon.back span.s { color: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- numbers ---------- */
.sec-stats { padding-block: 30px clamp(40px, 6vw, 70px); }
.stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
.stat {
  padding: 22px 10px 20px; border-radius: var(--radius); text-align: center;
  background: var(--glass); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.stat b {
  display: block; font: 700 clamp(36px, 4.2vw, 52px)/1 var(--font-display);
  background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat span {
  display: block; margin-top: 8px; color: var(--muted);
  font-weight: 800; font-size: 13.5px; letter-spacing: .06em; text-transform: uppercase;
}
@media (max-width: 900px) { .stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .stats { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* ---------- tilt ---------- */
[data-tilt] {
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform .6s var(--ease-out), box-shadow .4s;
}
[data-tilt].tilting { transition: transform .1s linear, box-shadow .4s; }
.glare {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 55%);
  opacity: 0; transition: opacity .3s;
}
.tilting .glare { opacity: 1; }

/* ---------- how to play ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; perspective: 1400px; }
.step {
  position: relative; height: 100%; padding: 30px 24px 28px; border-radius: 30px;
  background: var(--glass); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.step .num {
  position: absolute; top: -18px; left: 24px;
  width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center;
  font: 700 23px/1 var(--font-display); color: #3a2300;
  background: linear-gradient(145deg, #FFD978, #F59E0B);
  box-shadow: 0 5px 0 #A86A12, 0 12px 24px rgba(255, 194, 75, .4);
  transform: translateZ(50px);
}
.mini {
  width: 100%; max-width: 270px; height: auto; margin: 8px auto 20px;
  transform: translateZ(36px);
  filter: drop-shadow(0 18px 26px rgba(4, 3, 24, .55));
}
.step h3 { font-size: 27px; transform: translateZ(28px); }
.step p { margin-top: 8px; color: var(--muted); transform: translateZ(16px); }
.rules {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin: 30px 0 0; padding: 0; list-style: none;
}
.rules li {
  padding: 10px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--muted); font-weight: 700; font-size: 15px;
}
.rules b { color: var(--text); }
@media (max-width: 900px) {
  .steps { grid-template-columns: minmax(0, 1fr); max-width: 440px; margin-inline: auto; gap: 34px; }
}

/* mini boards: the SVG pieces animate in place */
.mini .pawn, .mini .wall, .mini .fx { transform-box: fill-box; transform-origin: center; }
.s1 .pawn { animation: s1Hop 3.4s var(--ease-out) infinite; }
@keyframes s1Hop {
  0%, 40% { transform: none; opacity: 1; }
  50% { transform: translate(0, -27px) scale(1.2); }
  58% { transform: translate(0, -41px) scale(1.1, .88); }
  64%, 90% { transform: translate(0, -41px); opacity: 1; }
  95% { transform: translate(0, -41px); opacity: 0; }
  96% { transform: none; opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.s1 .dots { animation: s1Dots 3.4s ease-in-out infinite; }
@keyframes s1Dots { 0%, 100% { opacity: 0; } 8%, 38% { opacity: 1; } 46%, 96% { opacity: 0; } }
.s1 .dots circle { transform-box: fill-box; transform-origin: center; animation: dotPulse 1.1s ease-in-out infinite alternate; }
@keyframes dotPulse { from { transform: scale(.7); } to { transform: scale(1.15); } }
.s1 .tap { animation: s1Tap 3.4s ease-in-out infinite; }
@keyframes s1Tap {
  0%, 12% { opacity: 0; transform: translate(16px, 22px); }
  24% { opacity: 1; transform: none; }
  31% { transform: scale(.82); }
  38% { opacity: 1; transform: none; }
  46%, 100% { opacity: 0; }
}
.s2 .wall { animation: s2Wall 4.6s var(--ease-out) infinite; }
@keyframes s2Wall {
  0%, 12% { opacity: 0; transform: translateY(-50px) scale(1.5); }
  25% { opacity: 1; transform: translateY(3px) scale(1); }
  30% { transform: translateY(-2px); }
  34%, 88% { opacity: 1; transform: none; }
  96%, 100% { opacity: 0; transform: none; }
}
.s2 .impact { animation: s2Impact 4.6s ease-out infinite; }
@keyframes s2Impact { 0%, 24% { opacity: 0; transform: scale(.4); } 27% { opacity: .9; } 44%, 100% { opacity: 0; transform: scale(1.9); } }
.s2 .pawn { animation: s2Bump 4.6s ease-in-out infinite; }
@keyframes s2Bump { 0%, 36% { transform: none; } 40% { transform: translateY(9px); } 46% { transform: translateY(-2px); } 50%, 100% { transform: none; } }
.s2 .nope { animation: s2Nope 4.6s ease-out infinite; }
@keyframes s2Nope { 0%, 38% { opacity: 0; transform: scale(.3); } 44% { opacity: 1; transform: scale(1.2); } 50%, 60% { opacity: 1; transform: none; } 68%, 100% { opacity: 0; } }
.s2 .route { stroke-dasharray: 190; stroke-dashoffset: 190; animation: s2Route 4.6s ease-in-out infinite; }
@keyframes s2Route { 0%, 52% { stroke-dashoffset: 190; opacity: 1; } 82% { stroke-dashoffset: 0; opacity: 1; } 94%, 100% { stroke-dashoffset: 0; opacity: 0; } }
.s2 .arrow { animation: s2Arrow 4.6s ease-in-out infinite; }
@keyframes s2Arrow { 0%, 78% { opacity: 0; } 82%, 90% { opacity: 1; } 96%, 100% { opacity: 0; } }
.s3 .pawn { animation: s3Hop 3.8s var(--ease-out) infinite; }
@keyframes s3Hop {
  0%, 30% { transform: none; opacity: 1; }
  40% { transform: translate(0, -27px) scale(1.2); }
  48% { transform: translate(0, -41px) scale(1.1, .88); }
  54%, 88% { transform: translate(0, -41px); opacity: 1; }
  94% { transform: translate(0, -41px); opacity: 0; }
  95% { transform: none; opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.s3 .goal { animation: s3Goal 3.8s ease-in-out infinite; }
@keyframes s3Goal { 0%, 46% { opacity: 0; } 52% { opacity: 1; } 80% { opacity: .55; } 94%, 100% { opacity: 0; } }
.s3 .spark { animation: s3Spark 3.8s ease-out infinite; }
@keyframes s3Spark {
  0%, 47% { opacity: 0; transform: scale(.2); }
  53% { opacity: 1; transform: scale(1); }
  78%, 100% { opacity: 0; transform: translate(var(--sx), var(--sy)) scale(.6); }
}
.s3 .cup { animation: s3Cup 3.8s var(--ease-back) infinite; }
@keyframes s3Cup { 0%, 50% { opacity: 0; transform: translateY(10px) scale(.3); } 58% { opacity: 1; transform: none; } 88% { opacity: 1; transform: none; } 95%, 100% { opacity: 0; } }

/* ---------- modes ---------- */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; perspective: 1400px; }
.mode {
  --mc-bg: var(--glass); --mc-edge: rgba(8, 6, 32, .7); --mc-shadow: rgba(4, 3, 24, .5);
  position: relative; height: 100%; min-height: 280px; padding: 28px 26px;
  border-radius: 30px; color: #fff;
  background: var(--mc-bg); border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 9px 0 var(--mc-edge), 0 26px 50px var(--mc-shadow);
}
.mode::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 42%);
}
.mode .ic {
  width: 66px; height: 66px; border-radius: 21px; display: grid; place-items: center;
  font-size: 34px; line-height: 1;
  background: rgba(255, 255, 255, .22); border: 1px solid rgba(255, 255, 255, .32);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .2);
  transform: translateZ(54px);
}
.mode .ic svg { width: 34px; height: 34px; fill: #fff; }
.mode h3 { margin-top: 20px; font-size: 31px; text-shadow: 0 2px 0 rgba(0, 0, 0, .12); transform: translateZ(38px); }
.mode p { margin-top: 8px; color: rgba(255, 255, 255, .9); font-size: 16.5px; transform: translateZ(24px); }
.mode .tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; transform: translateZ(30px); }
.mode .tags li { padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, .2); font-weight: 800; font-size: 13px; }
.m-levels { --mc-bg: linear-gradient(120deg, var(--mint), var(--cyan)); --mc-edge: #0C8E86; --mc-shadow: rgba(46, 230, 166, .28); }
.m-online { --mc-bg: linear-gradient(120deg, #8F6BFF 0%, #6B46FF 48%, #E0459B 115%); --mc-edge: #3B21B0; --mc-shadow: rgba(124, 92, 255, .36); }
.m-friend { --mc-bg: linear-gradient(150deg, #FFB25B -10%, #FF6B57 45%, #E0459B 120%); --mc-edge: #B23A4C; --mc-shadow: rgba(255, 107, 87, .3); }
.m-rooms { --mc-bg: linear-gradient(150deg, #2BD9F0 -10%, #2F7BFF 55%, #4B3BD6 120%); --mc-edge: #2638A8; --mc-shadow: rgba(47, 123, 255, .32); }
.m-ai .ic { background: linear-gradient(145deg, #FFD978, #F59E0B); }
.m-local .ic { background: linear-gradient(145deg, var(--violet-2), var(--violet-dark)); }
.m-ai .tags li, .m-local .tags li { background: rgba(255, 255, 255, .08); }
@media (max-width: 1000px) { .modes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .modes { grid-template-columns: minmax(0, 1fr); } .mode { min-height: 0; } }

/* ---------- powers ---------- */
.powers-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: center; }
.ring-stage {
  --ring-r: 250; --ring-tilt: .22; --pw-size: 86px;
  position: relative; height: 460px; perspective: 1100px;
  touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none;
}
.ring-stage.dragging { cursor: grabbing; }
.ring-floor {
  position: absolute; left: 50%; top: 56%; width: 560px; height: 560px; margin: -280px 0 0 -280px;
  border-radius: 50%; transform: rotateX(80deg);
  background:
    radial-gradient(closest-side, rgba(124, 92, 255, .38), rgba(124, 92, 255, .1) 62%, rgba(124, 92, 255, 0) 70%),
    repeating-radial-gradient(circle, rgba(159, 136, 255, .18) 0 2px, rgba(159, 136, 255, 0) 2px 44px);
}
.ring { position: absolute; left: 50%; top: 46%; width: 0; height: 0; transform-style: preserve-3d; }
.pw {
  --pc: var(--cyan);
  position: absolute; left: 0; top: 0;
  width: var(--pw-size); margin: calc(var(--pw-size) * -.62) 0 0 calc(var(--pw-size) * -.5);
  padding: 0; border: 0; background: none; cursor: pointer; text-align: center;
  will-change: transform, opacity;
}
.pw .tile {
  position: relative; display: grid; place-items: center;
  width: var(--pw-size); height: var(--pw-size); border-radius: 28%;
  font-size: calc(var(--pw-size) * .48); line-height: 1;
  background: linear-gradient(180deg, rgba(43, 31, 104, .97), rgba(21, 17, 63, .97));
  border: 2px solid color-mix(in srgb, var(--pc) 70%, transparent);
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--pc) 14%, transparent),
    0 16px 30px rgba(4, 3, 24, .55),
    0 0 34px color-mix(in srgb, var(--pc) 38%, transparent),
    inset 0 2px 0 rgba(255, 255, 255, .16);
  transition: transform .4s var(--ease-back), box-shadow .4s;
}
.pw.super .tile::after {
  content: '✦'; position: absolute; top: -9px; right: -9px;
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; color: #3a2300; background: linear-gradient(180deg, #FFE7A0, var(--gold));
  box-shadow: 0 3px 8px rgba(0, 0, 0, .35);
}
.pw .nm { display: block; margin-top: 10px; color: var(--text); font: 700 15px/1 var(--font-display); white-space: nowrap; transition: opacity .3s; }
.pw.back .nm { opacity: 0; }
.pw.front .tile {
  transform: scale(1.1);
  box-shadow:
    0 0 0 5px color-mix(in srgb, var(--pc) 28%, transparent),
    0 18px 34px rgba(4, 3, 24, .55),
    0 0 60px color-mix(in srgb, var(--pc) 60%, transparent),
    inset 0 2px 0 rgba(255, 255, 255, .2);
}
.ring-btns { position: absolute; left: 50%; bottom: 0; translate: -50% 0; display: flex; gap: 12px; }
.icon-btn {
  width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line-2); cursor: pointer;
  font: 700 26px/1 var(--font-display); color: var(--text);
  transition: background .2s, transform .2s var(--ease-back);
}
.icon-btn:hover { background: var(--surface-3); transform: translateY(-2px); }
.icon-btn:active { transform: scale(.94); }
.power-card {
  position: relative; padding: 30px; border-radius: 30px;
  background: linear-gradient(180deg, rgba(43, 31, 104, .9), rgba(14, 15, 46, .9));
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.power-card::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: linear-gradient(160deg, var(--pc, var(--cyan)), rgba(255, 255, 255, 0) 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  transition: background .5s;
}
.pc-top { display: flex; align-items: center; gap: 18px; }
.pc-ic {
  width: 84px; height: 84px; flex: none; border-radius: 26px; display: grid; place-items: center;
  font-size: 46px; line-height: 1;
  background: color-mix(in srgb, var(--pc, var(--cyan)) 20%, rgba(255, 255, 255, .05));
  border: 2px solid color-mix(in srgb, var(--pc, var(--cyan)) 60%, transparent);
  box-shadow: 0 0 34px color-mix(in srgb, var(--pc, var(--cyan)) 40%, transparent);
}
.pc-kind {
  display: inline-block; padding: 4px 11px; border-radius: 999px;
  background: linear-gradient(180deg, #7DF7CB, var(--mint)); color: #052a1d;
  font: 800 12px/1.3 var(--font-body); letter-spacing: .08em; text-transform: uppercase;
}
.pc-kind.super { background: linear-gradient(180deg, #FFE7A0, var(--gold)); color: #3a2300; }
.pc-name { margin-top: 8px; font-size: 38px; }
.pc-desc { margin-top: 18px; font-size: 20px; color: var(--text); }
.pc-how { margin-top: 10px; color: var(--muted); }
.pc-swap { transition: opacity .25s, transform .35s var(--ease-out); }
.pc-swap.out { opacity: 0; transform: translateY(10px); }
.pick3 {
  display: grid; gap: 10px; margin: 22px 0 0; padding: 20px 0 0; list-style: none;
  border-top: 1px dashed var(--line-2); color: var(--muted); font-weight: 700; font-size: 15px;
}
.pick3 li { display: flex; align-items: center; gap: 10px; }
.pick3 .free, .pick3 .sup {
  flex: none; padding: 4px 10px; border-radius: 999px; font-weight: 800; font-size: 12px; letter-spacing: .08em;
  background: linear-gradient(180deg, #7DF7CB, var(--mint)); color: #052a1d;
}
.pick3 .sup { background: linear-gradient(180deg, #FFE7A0, var(--gold)); color: #3a2300; }
html:not(.js) .ring { position: static; display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; width: auto; height: auto; }
html:not(.js) .pw { position: static; margin: 0; }
html:not(.js) .ring-stage { height: auto; }
@media (max-width: 900px) {
  .powers-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ring-stage { --ring-r: 190; height: 400px; }
}
@media (max-width: 520px) {
  .ring-stage { --ring-r: 140; --ring-tilt: .34; --pw-size: 58px; height: 360px; }
  .ring { top: 44%; }
  .ring-floor { width: 400px; height: 400px; margin: -200px 0 0 -200px; top: 50%; transform: rotateX(72deg); }
  .pw .nm { font-size: 13px; margin-top: 8px; }
  .power-card { padding: 24px 20px; }
  .pc-ic { width: 70px; height: 70px; font-size: 38px; }
  .pc-name { font-size: 32px; }
  .pc-desc { font-size: 18px; }
}

/* ---------- ranks: 3D stairs ---------- */
.climb { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.stairs-stage { position: relative; height: 540px; perspective: 1500px; }
.stairs {
  --w: 80px; --h: 40px; --d: 116px;
  position: absolute; left: 50%; bottom: 190px;
  width: calc(var(--w) * 7); height: calc(var(--h) * 7); margin-left: calc(var(--w) * -3.5);
  transform-style: preserve-3d; transform: rotateX(-22deg) rotateY(-34deg);
}
.stp { position: absolute; bottom: 0; left: calc(var(--i) * var(--w)); width: var(--w); height: calc((var(--i) + 1) * var(--h)); transform-style: preserve-3d; }
.stp > i { position: absolute; display: block; }
.stp .fr {
  inset: 0; transform: translateZ(calc(var(--d) / 2));
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 88%, #fff), var(--c) 30%, color-mix(in srgb, var(--c) 52%, #0E0F2E));
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .45), inset 0 -10px 18px rgba(8, 6, 32, .25);
}
.stp .fr b {
  position: absolute; left: 0; right: 0; top: 10px; text-align: center;
  font: 700 12.5px/1.1 var(--font-display); font-style: normal; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
  padding: 0 4px;
}
.stp .tp {
  left: 0; top: 0; width: var(--w); height: var(--d);
  transform: translateY(-50%) rotateX(90deg);
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 62%, #fff), color-mix(in srgb, var(--c) 86%, #fff));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
}
.stp .sd {
  top: 0; left: calc(var(--w) - var(--d) / 2); width: var(--d); height: 100%;
  transform: rotateY(90deg);
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 60%, #0E0F2E), color-mix(in srgb, var(--c) 40%, #0E0F2E));
}
.stp.top .tp { background: linear-gradient(180deg, #FFF3C8, var(--gold)); }
.stair-pawn {
  position: absolute; left: 0; top: 0; width: 40px; height: 40px;
  transform-style: preserve-3d; will-change: transform;
}
.stair-pawn i {
  display: block; width: 100%; height: 100%; border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #B4F6FF 0%, var(--cyan) 46%, #0B6E8C 100%);
  box-shadow: 0 0 22px rgba(34, 211, 238, .7);
}
.stair-crown {
  position: absolute; left: 0; top: 0; font-size: 38px; line-height: 1;
  opacity: 0; transition: opacity .3s; pointer-events: none;
}
.stair-crown.show { opacity: 1; }
.rank-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; position: absolute; left: 0; right: 0; bottom: 6px; }
.rank-row li {
  --c: var(--violet);
  padding: 6px 11px; border-radius: 999px; font: 700 13px/1 var(--font-display);
  background: var(--surface); border: 1.5px solid var(--line); color: var(--muted);
  transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease-back);
}
.rank-row li.on { color: #fff; border-color: var(--c); background: color-mix(in srgb, var(--c) 35%, transparent); transform: translateY(-3px); }
.feat-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.feat {
  display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: 22px;
  background: var(--glass); border: 1px solid var(--line);
  transition: transform .3s var(--ease-out), border-color .3s, background .3s;
}
.feat:hover { transform: translateX(6px); border-color: var(--line-2); background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .06)); }
.feat .fi {
  width: 52px; height: 52px; flex: none; border-radius: 16px; display: grid; place-items: center;
  font-size: 28px; line-height: 1; background: var(--fi, linear-gradient(145deg, var(--violet-2), var(--violet-dark)));
  box-shadow: 0 8px 18px rgba(4, 3, 24, .35);
}
.feat h3 { font-size: 21px; }
.feat p { margin-top: 4px; color: var(--muted); font-size: 16px; }
@media (max-width: 960px) {
  .climb { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .climb .sec-head.left { text-align: center; margin-inline: auto; }
  .climb .sec-head.left .eyebrow::before { display: block; }
  .stairs-stage { order: 2; margin-top: 20px; }
}
@media (max-width: 600px) {
  .stairs { --w: 46px; --h: 26px; --d: 70px; bottom: 150px; }
  .stp .fr b { display: none; }
  .stairs-stage { height: 400px; }
  .stair-pawn { width: 26px; height: 26px; }
  .stair-crown { font-size: 26px; }
}

/* ---------- pawn studio ---------- */
.studio { display: grid; grid-template-columns: 1.05fr 1fr; gap: 28px; align-items: stretch; }
.pawn-lab, .skins {
  position: relative; padding: 26px; border-radius: 32px;
  background: linear-gradient(180deg, rgba(43, 31, 104, .82), rgba(14, 15, 46, .82));
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.lab-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lab-title h3 { font-size: 26px; }
.lab-title span { color: var(--muted); font-weight: 700; font-size: 14px; }
.pl-stage { position: relative; height: 280px; display: grid; place-items: center; perspective: 700px; }
.pl-pedestal {
  position: absolute; bottom: 22px; left: 50%; width: 230px; height: 64px; margin-left: -115px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(124, 92, 255, .6), rgba(124, 92, 255, 0));
}
/* a dashed turntable lying flat under the pawn */
.pl-ring {
  position: absolute; bottom: -78px; left: 50%; width: 250px; height: 250px; margin-left: -125px; border-radius: 50%;
  border: 2px dashed rgba(159, 136, 255, .55);
  box-shadow: 0 0 30px rgba(124, 92, 255, .25), inset 0 0 30px rgba(124, 92, 255, .25);
  transform: rotateX(76deg); animation: plRing 14s linear infinite;
}
@keyframes plRing { from { transform: rotateX(76deg) rotateZ(0deg); } to { transform: rotateX(76deg) rotateZ(360deg); } }
.pl-pawn {
  --c1: #22D3EE; --c2: #6D28D9; --hi: #B4F6FF; --pc: #fff;
  position: relative; width: 170px; height: 170px; margin-bottom: 34px;
  animation: bob 3.2s ease-in-out infinite;
  filter: drop-shadow(0 26px 20px rgba(4, 3, 24, .55));
}
.pl-pawn.swap { animation: bob 3.2s ease-in-out infinite, pop .5s var(--ease-back); }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes pop { 0% { scale: .7; } 60% { scale: 1.08; } 100% { scale: 1; } }
.pl-body {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 34% 28%, var(--hi) 0%, var(--c1) 44%, var(--c2) 100%);
  transition: border-radius .4s var(--ease-out), clip-path .4s var(--ease-out);
}
.pl-pat { position: absolute; inset: 0; opacity: .5; }
.pl-shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 33% 26%, rgba(255, 255, 255, .85) 0 5%, rgba(255, 255, 255, 0) 20%),
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0) 52%, rgba(0, 0, 0, .3) 100%);
}
.pl-face { position: absolute; inset: 0; display: grid; place-items: center; font-size: 66px; line-height: 1; padding-top: 6px; }
.pl-pawn[data-shape="cube"] .pl-body { border-radius: 26%; }
.pl-pawn[data-shape="gem"] .pl-body { border-radius: 0; clip-path: polygon(50% 2%, 98% 36%, 80% 98%, 20% 98%, 2% 36%); }
.pl-pawn[data-shape="star"] .pl-body { border-radius: 0; clip-path: polygon(50% 0, 62% 34%, 98% 35%, 69% 57%, 79% 93%, 50% 72%, 21% 93%, 31% 57%, 2% 35%, 38% 34%); }
.pl-pawn[data-shape="star"] .pl-face { font-size: 48px; padding-top: 18px; }
.pl-pawn[data-finish="matte"] .pl-body { background: radial-gradient(circle at 40% 36%, var(--hi) 0%, var(--c1) 52%, var(--c2) 100%); }
.pl-pawn[data-finish="matte"] .pl-shade { background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .22) 100%); }
.pl-pawn[data-finish="metal"] .pl-body { background: linear-gradient(160deg, #fff 0%, var(--c1) 26%, var(--c2) 50%, var(--c1) 72%, #fff 100%); }
.pl-pawn[data-finish="neon"] { filter: drop-shadow(0 0 16px var(--c1)) drop-shadow(0 0 34px var(--c1)); }
.pl-pawn[data-finish="neon"] .pl-body { background: radial-gradient(circle at 50% 45%, #fff 0%, var(--hi) 22%, var(--c1) 60%, var(--c2) 100%); }
.pl-pawn[data-pat="stripes"] .pl-pat { background: linear-gradient(45deg, var(--pc) 25%, transparent 25% 50%, var(--pc) 50% 75%, transparent 75%) 0 0 / 34px 34px; animation: patRoll 2.4s linear infinite; }
.pl-pawn[data-pat="dots"] .pl-pat { background: radial-gradient(circle, var(--pc) 0 5px, transparent 5.5px) 0 0 / 30px 30px; animation: patRoll2 3s linear infinite; }
.pl-pawn[data-pat="checker"] .pl-pat { background: conic-gradient(var(--pc) 25%, transparent 0 50%, var(--pc) 0 75%, transparent 0) 0 0 / 44px 44px; animation: patRoll3 3.6s linear infinite; }
.pl-pawn[data-pat="rings"] .pl-pat { background: repeating-radial-gradient(circle at 50% 50%, var(--pc) 0 7px, transparent 7px 18px); }
.pl-pawn[data-pat="split"] .pl-pat { background: linear-gradient(90deg, transparent 50%, var(--pc) 50%); }
.pl-pawn[data-pat="stars"] .pl-pat, .pl-pawn[data-pat="hearts"] .pl-pat {
  background: var(--pc);
  -webkit-mask: var(--m) 0 0 / 34px 34px repeat; mask: var(--m) 0 0 / 34px 34px repeat;
  animation: maskRoll 3s linear infinite;
}
.pl-pawn[data-pat="stars"] .pl-pat { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 34'%3E%3Cpath d='M17 5l3.2 7.4 8 .7-6 5.3 1.8 7.9L17 22.2l-7 4.1 1.8-7.9-6-5.3 8-.7z'/%3E%3C/svg%3E"); }
.pl-pawn[data-pat="hearts"] .pl-pat { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 34'%3E%3Cpath d='M17 27s-10-6.2-10-13a5.6 5.6 0 0 1 10-3.4A5.6 5.6 0 0 1 27 14c0 6.8-10 13-10 13z'/%3E%3C/svg%3E"); }
@keyframes patRoll { to { background-position: 68px 0; } }
@keyframes patRoll2 { to { background-position: 60px 0; } }
@keyframes patRoll3 { to { background-position: 88px 0; } }
@keyframes maskRoll { to { -webkit-mask-position: 68px 0; mask-position: 68px 0; } }
.pl-controls { display: grid; gap: 12px; }
.pl-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pl-row > span { width: 74px; flex: none; color: var(--muted); font-weight: 800; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; }
.chip {
  min-width: 40px; height: 40px; padding: 0 11px; border-radius: 12px; cursor: pointer;
  display: inline-grid; place-items: center;
  background: var(--surface); border: 1.5px solid var(--line); color: var(--text);
  font: 800 15px/1 var(--font-body);
  transition: border-color .2s, background .2s, transform .2s var(--ease-back);
}
.chip:hover { transform: translateY(-2px); border-color: var(--line-2); }
.chip[aria-pressed="true"] { border-color: var(--cyan); background: rgba(34, 211, 238, .16); box-shadow: 0 0 0 3px rgba(34, 211, 238, .18); }
.chip.sw { width: 34px; min-width: 34px; height: 34px; padding: 0; border-radius: 50%; background: var(--sw); border: 2px solid rgba(255, 255, 255, .28); }
.chip.sw[aria-pressed="true"] { border-color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .25), 0 0 16px var(--sw); }
.chip.emo { font-size: 20px; padding: 0 6px; }
/* the boards rise from the stack's base, so it sits low in its box */
.skin-stage { position: relative; height: 400px; display: grid; place-items: end center; padding-bottom: 46px; perspective: 1200px; }
.skin-stack {
  --gap: 20px;
  position: relative; width: 180px; height: 180px;
  transform-style: preserve-3d; transform: rotateX(58deg) rotateZ(-40deg);
}
.skin-layer {
  position: absolute; inset: 0; padding: 12px; border-radius: 28px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px;
  border: 5px solid transparent;
  background: var(--sk-bg) padding-box, var(--sk-frame) border-box;
  box-shadow: 0 0 30px var(--sk-glow), 0 12px 0 rgba(4, 3, 24, .35);
  transform: translateZ(calc(var(--i) * var(--gap)));
  transition: transform .8s var(--ease-out), box-shadow .4s;
}
.skin-layer i { display: block; border-radius: 24%; background: var(--sk-tile); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .22), inset 0 -3px 0 rgba(0, 0, 0, .22); }
.skin-stack.spread .skin-layer { transform: translateZ(calc(var(--i) * 42px)); }
.skin-stack .skin-layer.lift { transform: translateZ(calc(var(--i) * 42px + 26px)); box-shadow: 0 0 60px var(--sk-glow), 0 12px 0 rgba(4, 3, 24, .35); }
.skin-names { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 6px 0 0; padding: 0; list-style: none; }
.skin-names button {
  display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px; cursor: pointer;
  background: var(--surface); border: 1.5px solid var(--line); font: 700 15px/1 var(--font-display);
  transition: border-color .2s, background .2s;
}
.skin-names button i { width: 20px; height: 20px; border-radius: 50%; background: var(--sk-frame); }
.skin-names button.on, .skin-names button:hover { border-color: var(--line-2); background: var(--surface-2); }
.sk-neon { --sk-bg: radial-gradient(120% 90% at 50% 30%, #2C1F73 0%, #1A1448 60%, #120E35 100%); --sk-frame: linear-gradient(145deg, #9F88FF, #22D3EE 40%, #7C5CFF 70%, #FF4D9D); --sk-tile: linear-gradient(160deg, rgba(160, 140, 255, .4), rgba(124, 92, 255, .2)); --sk-glow: rgba(124, 92, 255, .55); }
.sk-candy { --sk-bg: linear-gradient(160deg, #FF9FCF 0%, #F77DBE 55%, #D35FA8 100%); --sk-frame: linear-gradient(145deg, #FFF3A8, #FF9ED0 35%, #B79BFF 70%, #8BE9FF); --sk-tile: linear-gradient(170deg, #FFFFFF 0%, #FFE6F3 100%); --sk-glow: rgba(255, 158, 208, .55); }
.sk-jungle { --sk-bg: radial-gradient(120% 90% at 50% 20%, #1D5C3A 0%, #0F3D28 60%, #08291A 100%); --sk-frame: linear-gradient(145deg, #C6F57A, #2EE6A6 40%, #0F8A63 70%, #FFC24B); --sk-tile: linear-gradient(160deg, #4C8C55 0%, #2C6339 100%); --sk-glow: rgba(46, 230, 166, .45); }
.sk-ice { --sk-bg: radial-gradient(120% 90% at 50% 25%, #2D74AD 0%, #17507F 55%, #0C3156 100%); --sk-frame: linear-gradient(145deg, #FFFFFF, #BAE6FD 35%, #22D3EE 70%, #A5B4FC); --sk-tile: linear-gradient(160deg, rgba(232, 246, 255, .45), rgba(186, 230, 253, .16)); --sk-glow: rgba(139, 233, 255, .5); }
.sk-lava { --sk-bg: radial-gradient(110% 100% at 50% 55%, #FF9A3D 0%, #EE4A1F 45%, #7A1408 100%); --sk-frame: linear-gradient(145deg, #FFD36B, #FF6B57 40%, #9E1B0E 75%, #FFC24B); --sk-tile: radial-gradient(circle at 35% 30%, #4A2C26 0%, #2B1713 70%, #1C0E0B 100%); --sk-glow: rgba(255, 107, 87, .55); }
.sk-galaxy { --sk-bg: radial-gradient(circle at 30% 20%, #3A1C7A 0%, #160A3A 60%, #070417 100%); --sk-frame: conic-gradient(from 20deg, #FF4D9D, #7C5CFF, #22D3EE, #FFC24B, #FF4D9D); --sk-tile: linear-gradient(160deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .05)); --sk-glow: rgba(255, 77, 157, .45); }
@media (max-width: 960px) { .studio { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) {
  .pawn-lab, .skins { padding: 20px 16px; }
  .pl-row > span { width: 100%; }
  .skin-stage { height: 340px; padding-bottom: 40px; }
  .skin-stack { width: 140px; height: 140px; }
  .skin-stack.spread .skin-layer { transform: translateZ(calc(var(--i) * 34px)); }
  .skin-stack .skin-layer.lift { transform: translateZ(calc(var(--i) * 34px + 20px)); }
}

/* ---------- screenshots ---------- */
.phone {
  position: relative; aspect-ratio: 9 / 20; border-radius: 15% / 6.8%; padding: 3.2%;
  background: linear-gradient(160deg, #3D3778, #17143E 60%, #0D0B28);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .2), inset 0 0 0 6px #08071C, 0 30px 70px rgba(4, 3, 24, .65);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 12% / 5.6%; }
.phone::after {
  content: ''; position: absolute; inset: 3.2%; border-radius: 12% / 5.6%; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, .14) 0%, rgba(255, 255, 255, 0) 30%);
}
.cf { position: relative; height: 660px; perspective: 1500px; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.cf-item {
  position: absolute; left: 50%; top: 0; width: 272px; margin: 0 0 0 -136px;
  transition: transform .8s var(--ease-out), opacity .8s, filter .8s; will-change: transform;
  cursor: pointer;
}
.cf-item figcaption {
  margin-top: 18px; text-align: center; font: 700 21px/1.2 var(--font-display);
  opacity: 0; transition: opacity .5s;
}
.cf-item.cur figcaption { opacity: 1; }
.cf-item .phone img { pointer-events: none; }
.cf-ctrl { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 10px; }
.cf-dots { display: flex; gap: 8px; }
.cf-dots button {
  width: 10px; height: 10px; padding: 0; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--line-2); transition: width .35s var(--ease-out), background .35s;
}
.cf-dots button.on { width: 30px; background: var(--brand); }
html:not(.js) .cf { display: flex; gap: 20px; overflow-x: auto; height: auto; }
html:not(.js) .cf-item { position: static; margin: 0; flex: none; }
@media (max-width: 560px) {
  .cf { height: 540px; }
  .cf-item { width: 220px; margin-left: -110px; }
}

/* ---------- faq ---------- */
.faq { max-width: 840px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  border-radius: 22px; background: var(--glass); border: 1px solid var(--line);
  transition: border-color .3s, background .3s;
}
.faq details[open] { border-color: rgba(34, 211, 238, .38); background: linear-gradient(180deg, rgba(34, 211, 238, .1), rgba(124, 92, 255, .06)); }
.faq summary {
  position: relative; padding: 20px 64px 20px 22px; list-style: none; cursor: pointer;
  font: 700 19.5px/1.3 var(--font-display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 18px; top: 50%;
  width: 32px; height: 32px; margin-top: -16px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--surface-2); color: var(--cyan); font: 700 24px/1 var(--font-display);
  transition: transform .35s var(--ease-back), background .3s;
}
.faq details[open] summary::after { transform: rotate(135deg); background: rgba(34, 211, 238, .2); }
.faq .ans { padding: 0 22px 22px; color: var(--soft); }
.faq details[open] .ans { animation: ansIn .45s var(--ease-out); }
@keyframes ansIn { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- final call ---------- */
.cta-card {
  position: relative; isolation: isolate; overflow: hidden; text-align: center;
  padding: clamp(46px, 7vw, 86px) 22px; border-radius: 40px;
  background:
    radial-gradient(70% 90% at 50% 0%, rgba(124, 92, 255, .45), rgba(124, 92, 255, 0) 70%),
    radial-gradient(60% 80% at 100% 100%, rgba(255, 77, 157, .25), rgba(255, 77, 157, 0) 70%),
    linear-gradient(180deg, #2A1C6B, #15113F);
  box-shadow: var(--shadow-lg);
}
.cta-card::before {
  content: ''; position: absolute; inset: 0; padding: 2px; border-radius: inherit; z-index: -1;
  background: conic-gradient(from var(--a), var(--cyan), var(--violet), var(--magenta), var(--gold), var(--cyan));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spinA 6s linear infinite;
}
@keyframes spinA { to { --a: 360deg; } }
.cta-card h2 { font-size: clamp(38px, 6vw, 72px); }
.cta-card p { max-width: 560px; margin: 16px auto 0; color: var(--soft); font-size: clamp(17px, 2vw, 20px); }
.cta-card .cta-row { justify-content: center; }
.floater { position: absolute; z-index: -1; pointer-events: none; }
.floater.orb {
  border-radius: 50%; width: var(--s); height: var(--s);
  background: radial-gradient(circle at 36% 30%, var(--hi) 0%, var(--pc) 46%, var(--lo) 100%);
  box-shadow: 0 0 30px color-mix(in srgb, var(--pc) 60%, transparent);
  animation: fl 6s ease-in-out infinite;
}
.floater.bar {
  width: var(--l); height: 14px; border-radius: 7px;
  background: linear-gradient(180deg, var(--hi) 0%, var(--pc) 42%, var(--lo) 100%);
  box-shadow: 0 0 24px color-mix(in srgb, var(--pc) 70%, transparent);
  animation: fl 7s ease-in-out infinite;
}
@keyframes fl { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-16px) rotate(calc(var(--r, 0deg) + 8deg)); } }
.c-cyan { --pc: #22D3EE; --hi: #B4F6FF; --lo: #0B6E8C; }
.c-magenta { --pc: #FF4D9D; --hi: #FFC2DE; --lo: #A11558; }
.c-gold { --pc: #FFC24B; --hi: #FFF0C4; --lo: #A86A12; }
.c-mint { --pc: #2EE6A6; --hi: #C2FBE6; --lo: #0A7F5A; }
@media (max-width: 620px) { .floater { opacity: .55; } }

/* ---------- footer ---------- */
.footer { padding: 60px 0 34px; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(14, 15, 46, 0), rgba(10, 11, 36, .85)); }
.f-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; }
.f-about p { margin-top: 14px; max-width: 34ch; color: var(--muted); font-size: 15.5px; }
.f-col h4 {
  font: 800 13px/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--gold);
}
.f-col ul { display: grid; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.f-col a { color: var(--muted); font-weight: 700; }
.f-col a:hover { color: var(--text); }
.f-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line);
  color: var(--faint); font-size: 14px;
}
@media (max-width: 860px) { .f-grid { grid-template-columns: 1fr 1fr; } .f-about { grid-column: 1 / -1; } }
@media (max-width: 420px) { .f-grid { grid-template-columns: 1fr; } }

/* ---------- legal pages ---------- */
.doc-hero { padding: calc(var(--nav-h) + 58px) 0 40px; text-align: center; }
.doc-hero .doc-ic {
  width: 78px; height: 78px; margin: 0 auto 18px; border-radius: 24px; display: grid; place-items: center;
  font-size: 40px; line-height: 1; background: var(--brand);
  box-shadow: 0 16px 36px rgba(124, 92, 255, .5);
  animation: logoIn 1s var(--ease-back) both, floaty 5s ease-in-out infinite 1.2s;
}
.doc-hero h1 { font-size: clamp(42px, 6.4vw, 72px); animation: wIn 1s var(--ease-out) both .1s; }
.doc-hero .sub { max-width: 640px; margin: 14px auto 0; color: var(--soft); font-size: clamp(17px, 2vw, 19px); }
.doc-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.doc-meta span {
  padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  color: var(--muted); font-size: 14px; font-weight: 800;
}
.doc { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 34px; align-items: start; padding-bottom: 96px; }
.toc {
  position: sticky; top: calc(var(--nav-h) + 20px);
  padding: 18px 14px; border-radius: 22px; background: rgba(21, 17, 63, .7); border: 1px solid var(--line);
}
.toc h2 { padding: 0 8px; font: 800 12px/1 var(--font-body); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.toc ol { display: grid; gap: 2px; margin: 12px 0 0; padding: 0; list-style: none; }
.toc a {
  display: block; padding: 8px 10px; border-radius: 11px;
  color: var(--muted); font-size: 14.5px; font-weight: 700; line-height: 1.3; text-decoration: none;
  transition: background .2s, color .2s;
}
.toc a:hover, .toc a.active { background: var(--surface); color: var(--text); }
.prose {
  padding: clamp(24px, 4vw, 46px); border-radius: 32px;
  background: linear-gradient(180deg, rgba(43, 31, 104, .74), rgba(21, 17, 63, .74));
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.prose h2 {
  display: flex; align-items: center; gap: 12px; margin: 46px 0 14px;
  font-size: clamp(23px, 3vw, 29px); scroll-margin-top: calc(var(--nav-h) + 20px);
}
.prose > h2:first-child, .prose > .callout:first-child + h2 { margin-top: 0; }
.prose h2 .n {
  width: 36px; height: 36px; flex: none; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand); color: #fff; font-size: 16px;
}
.prose h3 { margin: 22px 0 8px; font-size: 20px; }
.prose p, .prose li { color: var(--soft); }
.prose p + p { margin-top: 12px; }
.prose ul, .prose ol { display: grid; gap: 8px; margin: 12px 0; padding-left: 22px; }
.prose li::marker { color: var(--cyan); font-weight: 800; }
.prose strong { color: var(--text); }
.prose a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.table-wrap { margin: 16px 0; overflow-x: auto; border-radius: 18px; border: 1px solid var(--line); }
.prose table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 15.5px; }
.prose th, .prose td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { background: rgba(124, 92, 255, .2); color: var(--text); font: 700 15px/1.3 var(--font-display); }
.prose td { color: var(--soft); }
.prose tr:last-child td { border-bottom: 0; }
.prose td:first-child { color: var(--text); }
.callout {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 20px; margin: 16px 0;
  background: linear-gradient(120deg, rgba(34, 211, 238, .14), rgba(124, 92, 255, .12));
  border: 1px solid rgba(34, 211, 238, .32);
}
.callout .ci { font-size: 26px; line-height: 1.2; }
.callout p { color: var(--text); }
.callout.warn { background: linear-gradient(120deg, rgba(255, 107, 87, .16), rgba(255, 77, 157, .1)); border-color: rgba(255, 107, 87, .4); }
.tldr { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; }
.prose .tldr { padding: 0; }
.tldr li {
  display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
}
.tldr li span { font-size: 24px; line-height: 1.1; }
.cards2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 16px 0; }
.card {
  padding: 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line);
}
.card h3 { margin: 0 0 6px; }
.card.ok { border-color: rgba(46, 230, 166, .4); background: linear-gradient(180deg, rgba(46, 230, 166, .1), rgba(46, 230, 166, .03)); }
.card.keep { border-color: rgba(255, 194, 75, .4); background: linear-gradient(180deg, rgba(255, 194, 75, .1), rgba(255, 194, 75, .03)); }
.howto { display: grid; gap: 12px; margin: 18px 0; padding: 0; list-style: none; counter-reset: s; }
.howto li {
  counter-increment: s; position: relative; display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: var(--text);
}
.howto li::before {
  content: counter(s); flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  font: 700 18px/1 var(--font-display); color: #3a2300; background: linear-gradient(145deg, #FFD978, #F59E0B);
  box-shadow: 0 4px 0 #A86A12;
}
.howto li > span { flex: 1; min-width: 0; }
.howto .k {
  display: inline-block; padding: 2px 9px; border-radius: 8px; margin: 0 2px;
  background: rgba(124, 92, 255, .25); border: 1px solid rgba(159, 136, 255, .4); color: #fff; font-weight: 800; white-space: nowrap;
}
.mail-btn { margin-top: 8px; }
@media (max-width: 960px) {
  .doc { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
  .toc ol { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}
@media (max-width: 640px) {
  .tldr, .cards2 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 404 ---------- */
.lost { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: calc(var(--nav-h) + 30px) 16px 60px; }
.lost-board { position: relative; width: 220px; height: 120px; margin: 0 auto 26px; }
.lost-board .wallx {
  position: absolute; left: 50%; top: 10px; width: 14px; height: 100px; margin-left: 30px; border-radius: 7px;
  background: linear-gradient(90deg, #FFC2DE 0%, #FF4D9D 42%, #A11558 100%);
  box-shadow: 0 0 26px rgba(255, 77, 157, .7);
}
.lost-board .pawnx {
  position: absolute; left: 30px; top: 36px; width: 48px; height: 48px; border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #B4F6FF 0%, #22D3EE 46%, #0B6E8C 100%);
  box-shadow: 0 0 26px rgba(34, 211, 238, .7);
  animation: bonk 1.8s var(--ease-out) infinite;
}
@keyframes bonk { 0%, 100% { transform: translateX(0); } 45% { transform: translateX(72px) scaleX(.86); } 60% { transform: translateX(40px); } }
.lost h1 { font-size: clamp(54px, 10vw, 110px); }
.lost p { max-width: 460px; margin: 14px auto 28px; color: var(--soft); font-size: 19px; }

/* ---------- motion off ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; transition-delay: 0s !important;
  }
  html.js [data-reveal] { opacity: 1; translate: none; scale: none; rotate: none; }
}
