/* ==========================================================================
   Moto Warper — website styles
   Palette "Ultraviolet / Volt" (same tokens as the game's UI, src/ui/styles/base.css):
   ultraviolet night background, volt lime = every interaction (buttons, links, highlights),
   ultraviolet = brand marks only, amber = premium / shards / personal best, danger red = errors only.
   Self-hosted fonts (no third-party requests). Mobile-first.
   ========================================================================== */

@font-face { font-family: "Michroma"; src: url("../fonts/michroma-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Rajdhani"; src: url("../fonts/rajdhani-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Rajdhani"; src: url("../fonts/rajdhani-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Rajdhani"; src: url("../fonts/rajdhani-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  --night: #08061a;
  --bg: #08061a;
  --bg-2: #0d0a27;
  --bg-3: #151039;
  --panel: rgba(21, 15, 52, .74);
  --panel-solid: #130f31;
  --line: rgba(190, 180, 255, .26);
  --line-2: rgba(190, 180, 255, .14);
  --line-hot: rgba(201, 255, 61, .85);
  --fg: #f2eeff;
  --fg-2: #b9b3d9;
  --fg-3: #9089b5;
  --volt: #c9ff3d;
  --volt-2: #e0ff85;
  --volt-ink: #0d1400;
  --volt-dim: rgba(201, 255, 61, .1);
  --volt-soft: rgba(201, 255, 61, .16);
  --uv: #a06cff;
  --uv-2: #c3a4ff;
  --uv-soft: rgba(160, 108, 255, .5);
  --amber: #ffb340;
  --amber-dim: rgba(255, 179, 64, .12);
  --danger: #ff3b5c;
  --gain: #5cf5c8;
  --f-display: "Michroma", "Eurostile", "Segoe UI", system-ui, sans-serif;
  --f-ui: "Rajdhani", "Segoe UI", system-ui, sans-serif;
  --f-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;
  --r: 3px;               /* small corner */
  --r-big: 22px;          /* swoosh corner: panels round only two opposite corners */
  --slant: -12deg;        /* the "lean" of buttons, tags and rules */
  --gutter: max(16px, env(safe-area-inset-left), env(safe-area-inset-right));
  --header-h: 68px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .85);
  --glow: 0 0 0 1px rgba(201, 255, 61, .55), 0 0 30px -8px rgba(201, 255, 61, .55);
  --glow-uv: 0 0 60px -16px rgba(160, 108, 255, .7);
}

/* ---------- 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(--header-h) + 16px); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg-2);
  font: 400 1.0625rem/1.65 var(--f-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--volt); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--volt-2); }
:focus-visible { outline: 2px solid var(--volt); outline-offset: 3px; border-radius: 3px; }
main:focus { outline: none; }
h1, h2, h3, h4 { color: var(--fg); line-height: 1.2; margin: 0 0 .6em; font-weight: 400; }
h1, h2 { font-family: var(--f-display); letter-spacing: .02em; }
h3, h4 { font-family: var(--f-ui); font-weight: 700; letter-spacing: .03em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-inline-start: 1.3em; }
li { margin: .3em 0; }
strong { color: var(--fg); font-weight: 650; }
address { font-style: normal; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
::selection { background: var(--volt); color: var(--volt-ink); }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 860px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--fg-3); }
.ico { width: 1.25em; height: 1.25em; flex: none; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: .7rem 1rem; background: var(--volt); color: var(--volt-ink); font: 700 1rem var(--f-ui); border-radius: 3px; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- Buttons: a leaning parallelogram drawn by ::before, so the focus ring stays rectangular and visible ---------- */
.btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7rem 1.6rem;
  font: 700 1.05rem/1 var(--f-ui); letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  border: 0; background: none; cursor: pointer; color: var(--fg);
  transition: transform .2s ease, color .2s ease;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: var(--r);
  transform: skewX(var(--slant)); transition: background-color .2s ease, box-shadow .2s ease;
}
.btn--primary { color: var(--volt-ink); }
.btn--primary::before { background: var(--volt); box-shadow: 0 8px 28px -12px rgba(201, 255, 61, .8); }
.btn--primary:hover { color: var(--volt-ink); transform: translateX(2px); }
.btn--primary:hover::before { background: var(--volt-2); }
.btn--ghost { color: var(--fg); }
.btn--ghost::before { background: rgba(190, 180, 255, .08); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { color: var(--fg); transform: translateX(2px); }
.btn--ghost:hover::before { background: var(--volt-dim); box-shadow: inset 0 0 0 1px var(--line-hot); }
.btn--sm { min-height: 40px; padding: .5rem 1.2rem; font-size: .95rem; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* Store buttons (text buttons — swap in Apple/Google official badges if you prefer). */
.store-buttons { display: flex; flex-wrap: wrap; gap: .75rem; }
.store-btn {
  position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "ico text" "ico meta"; column-gap: .8rem; align-items: center;
  flex: 1 1 220px; max-width: 320px; min-height: 60px; padding: .65rem 1.1rem .65rem 1rem;
  color: var(--fg); text-align: left; text-decoration: none; background: linear-gradient(100deg, rgba(36, 26, 84, .95), rgba(14, 10, 38, .95));
  border: 1px solid var(--line); border-left: 4px solid var(--volt); border-radius: var(--r) var(--r-big) var(--r) var(--r-big);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.store-btn:hover { color: var(--fg); border-color: var(--volt); box-shadow: var(--glow); transform: translateY(-2px); }
.store-btn__ico { grid-area: ico; width: 30px; height: 30px; color: var(--volt); }
.store-btn__text { grid-area: text; display: flex; flex-direction: column; line-height: 1.05; }
.store-btn__text small { font: 600 .78rem var(--f-ui); letter-spacing: .06em; color: var(--fg-2); text-transform: uppercase; }
.store-btn__text strong { font: 700 1.3rem var(--f-ui); letter-spacing: .02em; }
.store-btn__meta { grid-area: meta; font: 500 .82rem var(--f-ui); color: var(--fg-3); letter-spacing: .03em; }
.store-btn--sm { flex: 0 1 auto; min-height: 52px; padding: .5rem .9rem .5rem .8rem; }
.store-btn--sm .store-btn__meta { display: none; }
.store-btn--sm .store-btn__text strong { font-size: 1.12rem; }
.store-btn--sm .store-btn__ico { width: 24px; height: 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 6, 26, .8);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s ease, background-color .3s ease;
  padding-top: env(safe-area-inset-top);
}
.site-header::after { /* warp edge: a hairline that fades from ultraviolet to volt */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; opacity: 0; transition: opacity .3s ease;
  background: linear-gradient(90deg, transparent, var(--uv-soft) 25%, var(--volt) 70%, transparent);
}
.site-header.is-scrolled { background: rgba(8, 6, 26, .94); }
.site-header.is-scrolled::after { opacity: .8; }
.site-header__inner { display: flex; align-items: center; gap: 1rem; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--fg); }
.brand:hover { color: var(--fg); }
.brand__icon { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 0 0 1px var(--line), 0 0 18px -4px var(--uv-soft); }
.brand__word { display: flex; flex-direction: column; line-height: 1; }
.brand__moto { display: flex; align-items: center; gap: .5em; font: 400 .66rem var(--f-display); letter-spacing: .5em; color: var(--volt); }
.brand__moto::after { content: ""; width: 2.2rem; height: 1px; background: linear-gradient(90deg, var(--volt), var(--uv)); }
.brand__warper { margin-top: .22rem; font: 400 1.22rem var(--f-display); font-style: italic; letter-spacing: .08em; color: var(--fg); }

.nav-toggle {
  margin-left: auto; display: inline-grid; place-items: center; width: 46px; height: 46px;
  color: var(--fg); background: var(--volt-dim); border: 1px solid var(--line); border-radius: var(--r); cursor: pointer;
}
.nav-toggle .ico { width: 24px; height: 24px; grid-area: 1 / 1; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

.site-nav {
  position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top)) 0 auto 0;
  max-height: calc(100dvh - var(--header-h) - env(safe-area-inset-top)); overflow-y: auto;
  padding: .75rem var(--gutter) 1.5rem; background: var(--bg); box-shadow: 0 30px 60px rgba(0, 0, 0, .6); border-bottom: 1px solid var(--line);
  transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.site-nav.is-open { transform: none; opacity: 1; visibility: visible; transition: opacity .2s ease, transform .2s ease; }
.site-nav ul { list-style: none; margin: 0 0 1rem; padding: 0; }
.site-nav li { margin: 0; border-bottom: 1px solid var(--line-2); }
.site-nav li a { display: flex; align-items: center; min-height: 52px; font: 600 1.2rem var(--f-ui); letter-spacing: .08em; color: var(--fg); text-decoration: none; text-transform: uppercase; }
.site-nav li a[aria-current="page"] { color: var(--volt); }
.site-nav__cta { width: 100%; }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static; display: flex; align-items: center; gap: 1.4rem; margin-left: auto;
    max-height: none; overflow: visible; padding: 0; background: none; border: 0; box-shadow: none; transform: none; opacity: 1; visibility: visible;
  }
  .site-nav ul { display: flex; gap: .2rem; margin: 0; }
  .site-nav li { border: 0; }
  .site-nav li a { min-height: 40px; padding: 0 .75rem; font-size: 1rem; color: var(--fg-2); border-radius: var(--r); position: relative; }
  .site-nav li a:hover { color: var(--fg); }
  .site-nav li a[aria-current="page"] { color: var(--fg); }
  .site-nav li a[aria-current="page"]::after { content: ""; position: absolute; left: .55rem; right: .55rem; bottom: 3px; height: 3px; background: var(--volt); transform: skewX(var(--slant)); box-shadow: 0 0 10px rgba(201, 255, 61, .7); }
  .site-nav__cta { width: auto; }
}

/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.section--alt { background: linear-gradient(180deg, transparent, rgba(24, 16, 64, .62) 14%, rgba(24, 16, 64, .62) 86%, transparent); }
.section--alt::before { /* a lane line that leans across the top edge of an alternate band */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; transform: skewY(-.45deg); transform-origin: 0 0;
  background: linear-gradient(90deg, transparent, var(--line) 20%, var(--uv-soft) 55%, var(--line-hot) 92%, transparent);
}
.section-head { max-width: 760px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .7em; margin-bottom: 1rem; font: 700 .86rem var(--f-ui); letter-spacing: .3em; text-transform: uppercase; color: var(--volt); }
.eyebrow::before, .section-head--center .eyebrow::after { /* two leaning dashes, like lane markings */
  content: ""; width: 9px; height: 15px; flex: none; transform: skewX(var(--slant));
  background: currentColor; box-shadow: 14px 0 0 -3px currentColor, 0 0 12px rgba(201, 255, 61, .45);
  margin-right: 14px;
}
.section-head--center .eyebrow::after { margin-right: 0; margin-left: 4px; box-shadow: -14px 0 0 -3px currentColor, 0 0 12px rgba(201, 255, 61, .45); }
.section-title { font-size: clamp(1.6rem, 4.2vw, 2.7rem); }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--fg-2); }

.panel {
  position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r) var(--r-big) var(--r) var(--r-big);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(2.5rem, 7vw, 6rem) clamp(4.5rem, 9vw, 7.5rem); isolation: isolate; }
.hero::before { /* ultraviolet night with a warp glow behind the visual */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(55% 60% at 78% 38%, rgba(124, 74, 240, .42), transparent 70%),
    radial-gradient(40% 40% at 8% 0%, rgba(160, 108, 255, .18), transparent 70%),
    radial-gradient(60% 30% at 60% 100%, rgba(201, 255, 61, .07), transparent 70%),
    var(--bg);
}
.hero::after { /* speed streaks: thin leaning lines in two tints, fading towards the copy */
  content: ""; position: absolute; inset: -10% -5% -10% 25%; z-index: -1; opacity: .75;
  background:
    repeating-linear-gradient(-16deg, transparent 0 46px, rgba(201, 255, 61, .20) 46px 47px, transparent 47px 130px),
    repeating-linear-gradient(-16deg, transparent 0 21px, rgba(190, 180, 255, .20) 21px 22px, transparent 22px 83px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%, #000 80%, transparent); mask-image: linear-gradient(90deg, transparent, #000 40%, #000 80%, transparent);
  animation: streaks 9s linear infinite;
}
@keyframes streaks { to { background-position: -260px 0, -166px 0; } }
.hero__grid { display: grid; gap: clamp(2.5rem, 6vw, 4rem); align-items: center; }
.hero__kicker { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: 1.4rem; }
.chip {
  display: inline-flex; align-items: center; gap: .45em; padding: .3rem .8rem .3rem .65rem; border-radius: 2px;
  font: 600 .86rem var(--f-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--fg);
  background: var(--volt-dim); border: 1px solid var(--line); border-left: 3px solid var(--volt);
}
.chip .ico { width: 1.05em; height: 1.05em; color: var(--volt); }
.chip--amber { background: var(--amber-dim); border-left-color: var(--amber); }
.chip--amber .ico { color: var(--amber); }
.hero__title { margin: 0 0 .35em; font-size: clamp(2.05rem, 7.2vw, 4.4rem); line-height: 1.06; letter-spacing: .01em; }
.hero__title span { display: block; }
.hero__title .glow { color: var(--volt); font-style: italic; text-shadow: 0 0 34px rgba(201, 255, 61, .4); }
.hero__lead { max-width: 36rem; font-size: clamp(1.08rem, 1.9vw, 1.3rem); color: var(--fg-2); margin-bottom: 2rem; }
.hero__facts { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin: 1.6rem 0 0; padding: 0; list-style: none; font: 600 1rem var(--f-ui); letter-spacing: .04em; color: var(--fg-2); }
.hero__facts li { display: inline-flex; align-items: center; gap: .45em; margin: 0; }
.hero__facts .ico { color: var(--gain); width: 1.1em; height: 1.1em; }

.hero__visual { position: relative; padding: 4% 0 6% 0; }
.hero__ring { /* the warp ring of the key art: a thin volt-to-white-to-ultraviolet circle with a glow */
  position: absolute; z-index: -1; right: -9%; top: -14%; width: 86%; aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(from 210deg, var(--volt), #fff 22%, var(--uv) 48%, rgba(160, 108, 255, 0) 62%, var(--volt) 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px)); mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
  filter: drop-shadow(0 0 14px rgba(201, 255, 61, .5)) drop-shadow(0 0 40px rgba(160, 108, 255, .45));
  animation: ring-turn 40s linear infinite;
}
@keyframes ring-turn { to { transform: rotate(360deg); } }
.device {
  position: relative; padding: clamp(6px, 1vw, 10px); border-radius: var(--r) var(--r-big) var(--r) var(--r-big);
  background: linear-gradient(135deg, rgba(190, 180, 255, .5), rgba(48, 32, 120, .55) 40%, rgba(201, 255, 61, .45));
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), var(--glow-uv);
  transform: skewX(-4deg) rotate(-1.2deg);
}
.device::before, .device::after { /* HUD corner brackets */
  content: ""; position: absolute; width: 26px; height: 26px; pointer-events: none; z-index: 2;
}
.device::before { left: -7px; top: -7px; border-left: 3px solid var(--volt); border-top: 3px solid var(--volt); }
.device::after { right: -7px; bottom: -7px; border-right: 3px solid var(--volt); border-bottom: 3px solid var(--volt); }
.device picture, .device img { border-radius: 1px var(--r-big) 1px var(--r-big); }
.device img { width: 100%; aspect-ratio: 2622 / 1206; object-fit: cover; }
.hero__bike { /* round livery badge cut from the app icon art */
  position: absolute; z-index: 3; width: 22%; left: -3%; bottom: -13%; border-radius: 50%;
  filter: drop-shadow(0 0 22px rgba(160, 108, 255, .7)); animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-12px) rotate(-3deg); } }

@media (max-width: 959px) {
  .hero__visual { padding: 6% 4% 9% 4%; }
  .hero__ring { right: -3%; width: 80%; }
  .hero__bike { left: -1%; width: 27%; bottom: -12%; }
}
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1.02fr 1fr; }
}

/* ---------- Stats strip: an instrument cluster ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r) var(--r-big) var(--r) var(--r-big); overflow: hidden; }
.stat { position: relative; padding: 1.4rem 1rem 1.3rem; text-align: center; background: var(--bg-2); }
.stat::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 34px; height: 3px; margin-left: -17px; background: var(--volt); transform: skewX(var(--slant)); opacity: .8; }
.stat__num { display: block; font: 400 clamp(1.7rem, 4vw, 2.5rem)/1 var(--f-display); color: var(--fg); }
.stat__num em { font-style: normal; color: var(--volt); }
.stat__label { display: block; margin-top: .55rem; font: 600 .92rem var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }
@media (max-width: 719px) { .stat:last-child { grid-column: 1 / -1; } }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(5, 1fr); } }
.stats-wrap { margin-top: -2.5rem; position: relative; z-index: 2; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 1rem; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step { padding: 1.6rem 1.4rem 1.4rem; margin: 0; }
.step__num { display: inline-block; font: 400 2.2rem/1 var(--f-display); font-style: italic; color: transparent; -webkit-text-stroke: 1px var(--uv-2); margin-bottom: 1rem; padding: 0 .5rem .35rem 0; border-bottom: 3px solid var(--volt); }
.step h3 { font-size: 1.35rem; margin-bottom: .35em; }
.step p { margin: 0; }
.steps-note { display: flex; gap: .8rem; align-items: flex-start; margin-top: 1.25rem; padding: 1rem 1.2rem; }
.steps-note .ico { color: var(--volt); width: 1.5rem; height: 1.5rem; margin-top: .1rem; }
.steps-note p { margin: 0; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }

/* The four moves of a ride */
.moves { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); list-style: none; padding: 0; margin: 1.25rem 0 0; }
.move { display: flex; gap: .9rem; align-items: flex-start; margin: 0; padding: 1rem 1.1rem; }
.move__ico { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: var(--r); color: var(--volt); background: var(--volt-dim); box-shadow: inset 0 0 0 1px var(--line); }
.move__ico .ico { width: 26px; height: 26px; }
.move h3 { font-size: 1.15rem; margin: 0 0 .15em; }
.move p { margin: 0; font-size: 1rem; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(86%, 620px); gap: 1rem;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--gutter), calc((100% - 1200px) / 2 + var(--gutter)));
  padding: .5rem max(var(--gutter), calc((100% - 1200px) / 2 + var(--gutter))) 1.25rem; margin: 0; list-style: none;
  scrollbar-width: thin; scrollbar-color: rgba(201, 255, 61, .5) transparent;
}
.gallery li { margin: 0; scroll-snap-align: start; }
.shot-fig { margin: 0; }
.shot { display: block; width: 100%; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--r) var(--r-big) var(--r) var(--r-big); background: var(--bg-3); overflow: hidden; cursor: zoom-in; color: inherit; text-align: left; font: inherit; transition: border-color .2s ease, box-shadow .2s ease; }
.shot:hover, .shot:focus-visible { border-color: var(--volt); box-shadow: var(--glow); }
.shot img { width: 100%; aspect-ratio: 2622 / 1206; object-fit: cover; }
.shot figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem; padding: .85rem 1rem; border-top: 2px solid var(--uv); }
.shot__n { font: 400 .85rem var(--f-display); color: var(--volt); }
.shot__name { font: 700 1.12rem var(--f-ui); color: var(--fg); letter-spacing: .03em; }
.shot__sub { font: 500 .98rem var(--f-ui); color: var(--fg-3); margin-left: auto; text-align: right; }
.gallery-controls { display: flex; justify-content: flex-end; gap: .5rem; margin-top: .25rem; }
.icon-btn { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: var(--r); border: 1px solid var(--line); background: var(--volt-dim); color: var(--fg); cursor: pointer; }
.icon-btn:hover { border-color: var(--volt); color: var(--volt); }
.icon-btn .ico { width: 22px; height: 22px; }
.icon-btn--prev .ico { transform: scaleX(-1); }

.lightbox { width: min(1400px, 100vw); max-width: 100vw; max-height: 100dvh; padding: 0; margin: auto; border: 0; background: transparent; color: var(--fg); overflow: visible; }
.lightbox::backdrop { background: rgba(4, 2, 14, .92); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox__fig { margin: 0; padding: var(--gutter); }
.lightbox__fig img { width: 100%; max-height: calc(100dvh - 140px); object-fit: contain; border-radius: 6px; }
.lightbox__fig figcaption { padding-top: .8rem; text-align: center; font: 600 1.1rem var(--f-ui); letter-spacing: .04em; }
.lightbox__bar { display: flex; justify-content: center; gap: .6rem; padding-bottom: var(--gutter); }

/* ---------- Worlds: each level is a race plate ---------- */
.worlds { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: .75rem; list-style: none; padding: 0; margin: 0; }
.world {
  position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: .85rem; align-content: center; margin: 0; padding: .95rem 1rem .95rem .9rem; min-height: 86px;
  background: linear-gradient(100deg, rgba(36, 26, 84, .7), rgba(14, 10, 38, .7)); border: 1px solid var(--line-2); border-radius: var(--r) 16px var(--r) 16px; overflow: hidden;
}
.world__n { grid-row: 1 / span 2; align-self: center; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--volt); color: var(--fg); font: 400 .82rem var(--f-display); letter-spacing: 0; box-shadow: 0 0 14px -4px rgba(201, 255, 61, .6); }
.world__name { font: 700 1.2rem/1.2 var(--f-ui); color: var(--fg); letter-spacing: .02em; padding-right: 3.6rem; }
.world__sub { font: 500 1rem var(--f-ui); color: var(--fg-3); }
.world__tag { position: absolute; top: .7rem; right: .75rem; padding: .1rem .5rem; border-radius: 2px; font: 700 .74rem var(--f-ui); letter-spacing: .12em; text-transform: uppercase; }
.world__tag--free { color: var(--volt-ink); background: var(--volt); }
.world__tag--full { color: var(--fg-2); border: 1px solid var(--line); }
.world__tag--lock { display: inline-grid; place-items: center; padding: .15rem .3rem; vertical-align: middle; }
.world__tag--lock .ico { width: 14px; height: 14px; }
.world--finale { border-color: var(--uv); box-shadow: inset 0 0 0 1px rgba(160, 108, 255, .4), var(--glow-uv); background: linear-gradient(100deg, rgba(70, 40, 160, .55), rgba(14, 10, 38, .8)); }
.world--finale .world__n { border-color: var(--amber); box-shadow: 0 0 16px -3px rgba(255, 179, 64, .7); }
.world--finale .world__sub { color: var(--fg-2); }
.world--finale .world__name { font-family: var(--f-display); font-weight: 400; letter-spacing: .14em; font-size: 1.05rem; }
.world--secret { border-style: dashed; border-color: var(--uv-soft); background: repeating-linear-gradient(-45deg, rgba(160, 108, 255, .08) 0 8px, transparent 8px 16px), rgba(8, 6, 26, .8); }
.world--secret .world__n { border-color: var(--uv); border-style: dashed; color: var(--uv-2); box-shadow: none; }
.worlds-legend { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1.25rem; font: 500 1rem var(--f-ui); color: var(--fg-3); }
.worlds-legend > span { display: inline-flex; align-items: center; gap: .5rem; }
.worlds-legend .world__tag { position: static; }

/* Difficulty acts (Teach, Expand, Challenge, Combine, Mastery) */
.acts { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); list-style: none; padding: 0; margin: 0 0 1.75rem; counter-reset: act; }
.act { margin: 0; padding: .7rem .9rem; border-top: 3px solid var(--uv); background: rgba(21, 15, 52, .6); }
.act:nth-child(n+3) { border-top-color: var(--volt); }
.act:last-child { border-top-color: var(--amber); }
.act strong { display: block; font: 700 1.05rem var(--f-ui); letter-spacing: .08em; text-transform: uppercase; }
.act span { font: 500 .98rem var(--f-ui); color: var(--fg-3); }

/* ---------- Power-ups ---------- */
.powerups { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 0; }
.powerup { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem; margin: 0; }
.powerup__ico { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: var(--r) 14px var(--r) 14px; color: var(--c, var(--volt)); background: rgba(8, 6, 26, .6); box-shadow: 0 0 0 1px color-mix(in srgb, var(--c, var(--volt)) 55%, transparent), 0 0 22px -6px var(--c, var(--volt)); }
.powerup__ico .ico { width: 26px; height: 26px; }
.powerup h3 { font-size: 1.25rem; margin: .1rem 0 .2rem; }
.powerup p { margin: 0; font-size: 1rem; }
.pu-surge { --c: #ff9a3d; } .pu-aegis { --c: #6cc8ff; } .pu-grip { --c: #9dff6a; }
.pu-chrono { --c: #c9a0ff; } .pu-lift { --c: #ff8fd8; } .pu-crystal { --c: #b8ffff; }

/* ---------- Feature bento ---------- */
.features { display: grid; gap: 1rem; grid-template-columns: 1fr; grid-auto-flow: dense; }
.feature { padding: 1.5rem 1.4rem; }
.feature__ico { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 1rem; color: var(--volt); border-radius: var(--r) 12px var(--r) 12px; background: var(--volt-dim); box-shadow: inset 0 0 0 1px var(--line); }
.feature__ico .ico { width: 24px; height: 24px; }
.feature h3 { font-size: 1.35rem; margin-bottom: .4em; }
.feature p:last-child, .feature ul:last-child { margin-bottom: 0; }
.feature ul { padding-inline-start: 1.1em; }
.feature .tags { padding: 0; }
.feature__note { margin: .8rem 0 0; font-size: .98rem; }
.feature li { margin: .2em 0; }
.feature--wide { overflow: hidden; }
.feature__img { margin: 1.25rem -1.4rem -1.5rem; border-top: 1px solid var(--line); }
.feature__img img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: .8rem 0 0; }
.tags li { margin: 0; padding: .2rem .65rem; border-radius: 2px; font: 600 .92rem var(--f-ui); color: var(--fg); background: rgba(190, 180, 255, .08); border: 1px solid var(--line-2); border-bottom: 2px solid var(--uv-soft); }
.tags--ranks li { font-family: var(--f-display); font-size: .8rem; letter-spacing: .08em; padding: .35rem .7rem; border-bottom-color: var(--volt); }
.tags--ranks li.is-top { color: var(--amber); border-bottom-color: var(--amber); border-color: rgba(255, 179, 64, .45); }
@media (min-width: 720px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) {
  .features { grid-template-columns: repeat(3, 1fr); }
  .feature--wide { grid-column: span 2; }
  .feature--full { grid-column: 1 / -1; }
}

/* ---------- Pricing ---------- */
.pricing { display: grid; gap: 1.25rem; align-items: stretch; }
.price-card { display: flex; flex-direction: column; padding: clamp(1.5rem, 3vw, 2.2rem); }
.price-card--full { border-color: var(--volt); box-shadow: var(--glow); background: linear-gradient(150deg, rgba(60, 38, 140, .72), rgba(14, 10, 38, .88)); }
.price-card__label { font: 700 .9rem var(--f-ui); letter-spacing: .24em; text-transform: uppercase; color: var(--volt); }
.price-card__price { margin: .6rem 0 .2rem; font: 400 clamp(2.1rem, 5vw, 2.9rem)/1 var(--f-display); color: var(--fg); }
.price-card--full .price-card__price { color: var(--amber); }
.price-card--full .price-card__note { color: var(--fg-2); } /* lighter tint behind this card: keep AA */
.price-card__note { font: 500 1rem var(--f-ui); color: var(--fg-3); margin-bottom: 1.3rem; }
.checklist { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.checklist li { display: flex; gap: .6rem; align-items: flex-start; margin: .55rem 0; }
.checklist .ico { color: var(--gain); margin-top: .2rem; }
.price-card .btn { margin-top: auto; align-self: flex-start; }
.fineprint { font-size: .95rem; color: var(--fg-3); margin-top: 1.25rem; }
@media (min-width: 860px) { .pricing { grid-template-columns: 1fr 1fr; } }

/* ---------- Comparison table (stacks on small screens) ---------- */
.table-wrap { border: 1px solid var(--line); border-radius: var(--r) var(--r-big) var(--r) var(--r-big); overflow: hidden; background: var(--panel); }
.compare { width: 100%; border-collapse: collapse; font-size: 1rem; }
.compare caption { text-align: left; padding: 1rem 1.2rem; font: 700 1.1rem var(--f-ui); color: var(--fg); }
.compare th, .compare td { padding: .9rem 1.1rem; text-align: left; vertical-align: top; border-top: 1px solid var(--line-2); }
.compare thead th { font: 700 .92rem var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--volt); background: rgba(190, 180, 255, .07); border-top: 0; border-bottom: 2px solid var(--uv-soft); }
.compare tbody th { font: 700 1.05rem var(--f-ui); color: var(--fg); width: 22%; }
@media (max-width: 760px) {
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare tr { display: block; padding: .9rem 1.1rem; border-top: 1px solid var(--line-2); }
  .compare th, .compare td { display: block; width: auto !important; padding: .25rem 0; border: 0; }
  .compare tbody th { font-size: 1.12rem; padding-bottom: .4rem; color: var(--volt); }
  .compare td::before { content: attr(data-label); display: block; font: 700 .8rem var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }
  .compare td + td { margin-top: .5rem; }
}

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; text-align: center; padding: clamp(2.5rem, 7vw, 5rem) var(--gutter); border-radius: var(--r) 34px var(--r) 34px; border: 1px solid var(--line); background: radial-gradient(70% 120% at 50% 0%, rgba(124, 74, 240, .35), transparent 62%), var(--bg-2); }
.cta::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--uv) 30%, var(--volt) 70%, transparent); }
.cta__img { width: min(560px, 100%); margin: 0 auto 1.5rem; border-radius: 12px; -webkit-mask-image: radial-gradient(75% 75% at 50% 50%, #000 55%, transparent 100%); mask-image: radial-gradient(75% 75% at 50% 50%, #000 55%, transparent 100%); }
.cta .store-buttons { justify-content: center; margin-top: 1.5rem; }
.cta .store-btn { flex: 0 1 250px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2rem, 5vw, 3rem); border-bottom: 1px solid var(--line-2); overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(55% 90% at 88% 0%, rgba(124, 74, 240, .34), transparent 70%), radial-gradient(40% 70% at 0% 100%, rgba(160, 108, 255, .12), transparent 70%); }
.page-hero::after { /* three leaning streaks in the corner */
  content: ""; position: absolute; z-index: -1; right: 4%; top: 0; width: 140px; height: 100%; opacity: .55;
  background: repeating-linear-gradient(-16deg, transparent 0 18px, rgba(201, 255, 61, .45) 18px 19px, transparent 19px 44px);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, transparent); mask-image: linear-gradient(180deg, transparent, #000 30%, transparent);
}
.page-hero h1 { font-size: clamp(1.8rem, 5vw, 3rem); margin-bottom: .4em; }
.page-hero .lead { max-width: 46rem; margin-bottom: 0; }
.meta-line { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 1.4rem; font: 600 1rem var(--f-ui); letter-spacing: .04em; color: var(--fg-3); }
.meta-line span { display: inline-flex; align-items: center; gap: .45em; }
.meta-line .ico { color: var(--volt); width: 1.1em; height: 1.1em; }

/* ---------- Legal documents ---------- */
.doc-layout { display: grid; gap: 2rem; padding-block: clamp(2rem, 5vw, 3.5rem) clamp(4rem, 8vw, 6rem); }
.toc { font-family: var(--f-ui); }
.toc details { border: 1px solid var(--line); border-radius: var(--r) 14px var(--r) 14px; background: var(--panel); }
.toc summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 1.1rem; cursor: pointer; list-style: none; font: 700 1rem var(--f-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--fg); }
.toc summary::-webkit-details-marker { display: none; }
.toc summary .ico { transition: transform .2s ease; color: var(--volt); }
.toc details[open] summary .ico { transform: rotate(180deg); }
.toc ol { margin: 0; padding: .25rem 1.1rem 1rem 2.4rem; }
.toc li { margin: .15rem 0; font-size: 1.05rem; font-weight: 600; color: var(--fg-3); }
.toc a { display: inline-block; padding: .25rem 0; color: var(--fg-2); text-decoration: none; }
.toc a:hover, .toc a.is-active { color: var(--volt); }
.doc { min-width: 0; max-width: 46rem; font-size: 1.0625rem; }
.doc > section { padding-top: 1.75rem; margin-top: 1.75rem; border-top: 1px solid var(--line-2); }
.doc > section:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.doc h2 { font-size: clamp(1.2rem, 2.6vw, 1.5rem); line-height: 1.35; scroll-margin-top: calc(var(--header-h) + 16px); }
.doc h3 { font-size: 1.22rem; margin-top: 1.5rem; }
.doc li { margin: .4em 0; }
.callout { display: flex; gap: .9rem; align-items: flex-start; padding: 1.1rem 1.25rem; margin: 0 0 1.5rem; border-radius: var(--r) 14px var(--r) 14px; background: rgba(160, 108, 255, .12); border: 1px solid var(--line); border-left: 4px solid var(--volt); }
.callout > .ico { color: var(--volt); width: 1.5rem; height: 1.5rem; margin-top: .15rem; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout--warn { background: var(--amber-dim); border-color: rgba(255, 179, 64, .4); border-left-color: var(--amber); }
.callout--warn > .ico { color: var(--amber); }
.glance { display: grid; gap: .6rem; list-style: none; padding: 0; margin: 0 0 1rem; }
.glance li { display: flex; align-items: center; gap: .7rem; margin: 0; padding: .8rem 1rem; border-radius: var(--r) 10px var(--r) 10px; background: var(--bg-3); border: 1px solid var(--line-2); color: var(--fg); font-weight: 600; }
.glance .ico { color: var(--gain); }
@media (min-width: 640px) { .glance { grid-template-columns: 1fr 1fr; } }
.kv { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0 0 1.25rem; border: 1px solid var(--line); border-radius: var(--r) 12px var(--r) 12px; overflow: hidden; }
.kv > div { display: grid; gap: .2rem; padding: .85rem 1.1rem; border-top: 1px solid var(--line-2); }
.kv > div:first-child { border-top: 0; }
.kv dt { font: 700 .82rem var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }
.kv dd { margin: 0; color: var(--fg); }
@media (min-width: 640px) { .kv > div { grid-template-columns: 13rem 1fr; gap: 1rem; } }
.platform-badge { display: inline-flex; align-items: center; gap: .35em; padding: .05rem .5rem; margin-right: .35rem; border-radius: 2px; font: 700 .8rem/1.6 var(--f-ui); letter-spacing: .1em; text-transform: uppercase; vertical-align: .1em; color: var(--fg); background: var(--volt-dim); border: 1px solid var(--line); border-left: 3px solid var(--volt); }
.updated { margin-top: 2.5rem; font-size: .95rem; color: var(--fg-3); }

@media (min-width: 1024px) {
  .doc-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 3.5rem; }
  .toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; }
  .toc details { border: 0; background: none; }
  .toc summary { pointer-events: none; padding: 0 0 .6rem; min-height: 0; font-size: .86rem; color: var(--fg-3); }
  .toc summary .ico { display: none; }
  .toc ol { padding: 0 0 0 2.3rem; border-left: 2px solid var(--line-2); }
  .toc li { font-size: .98rem; }
}

/* ---------- Support ---------- */
.help-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.help-card { display: flex; flex-direction: column; gap: .4rem; padding: 1.3rem 1.25rem; color: var(--fg-2); text-decoration: none; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.help-card:hover { color: var(--fg-2); border-color: var(--volt); box-shadow: var(--glow); transform: translateY(-2px); }
.help-card .ico { width: 28px; height: 28px; color: var(--volt); margin-bottom: .4rem; }
.help-card strong { font: 700 1.25rem var(--f-ui); }
.support-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
@media (min-width: 1040px) { .support-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; } }
.faq-group + .faq-group { margin-top: 2.25rem; }
.faq-group > h2 { font-size: clamp(1.15rem, 2.4vw, 1.4rem); display: flex; align-items: center; gap: .6rem; }
.faq-group > h2 .ico { color: var(--volt); }
.faq { border: 1px solid var(--line); border-radius: var(--r) 14px var(--r) 14px; background: var(--panel); overflow: hidden; }
.faq details + details { border-top: 1px solid var(--line-2); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 56px; padding: .85rem 1.1rem; cursor: pointer; list-style: none; font: 700 1.12rem/1.3 var(--f-ui); color: var(--fg); letter-spacing: .01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { color: var(--volt); transition: transform .2s ease; }
.faq details[open] summary .ico { transform: rotate(180deg); }
.faq details[open] summary { box-shadow: inset 3px 0 0 var(--volt); }
.faq summary:hover { background: var(--volt-dim); }
.faq__body { padding: 0 1.1rem 1.1rem; font-size: 1.02rem; }
.faq__body p:last-child, .faq__body ol:last-child, .faq__body ul:last-child { margin-bottom: 0; }

/* Contact form */
.form-card { padding: clamp(1.4rem, 3.5vw, 2.2rem); }
.form-card h2 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); }
.form-grid { display: grid; gap: 1.1rem; }
@media (min-width: 560px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.field label, .field legend { font: 700 1rem var(--f-ui); letter-spacing: .04em; color: var(--fg); padding: 0; }
.field .opt { font-weight: 500; color: var(--fg-3); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .75rem .9rem; font: 400 1rem/1.4 var(--f-body); color: var(--fg);
  background: rgba(5, 3, 16, .8); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 170px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 2.6rem; background-image: linear-gradient(45deg, transparent 50%, var(--volt) 50%), linear-gradient(135deg, var(--volt) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%; background-size: 6px 6px; background-repeat: no-repeat; }
.field select option { background: var(--panel-solid); color: var(--fg); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--volt); box-shadow: 0 0 0 3px rgba(201, 255, 61, .28); }
.field input::placeholder, .field textarea::placeholder { color: #7f78a6; }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field__hint { font-size: .9rem; color: var(--fg-3); }
.field__error { font: 600 .95rem var(--f-ui); color: #ff7b93; letter-spacing: .02em; }
.field__error:empty { display: none; }
.field .check { display: flex; gap: .7rem; align-items: flex-start; font: 400 .98rem/1.5 var(--f-body); letter-spacing: 0; color: var(--fg-2); }
.check input { width: 22px; height: 22px; min-height: 0; flex: none; margin: .15rem 0 0; accent-color: var(--volt); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: flex; gap: .7rem; align-items: flex-start; padding: 1rem 1.1rem; margin-bottom: 1.25rem; border-radius: var(--r); font-weight: 500; }
.form-status[hidden] { display: none; }
.form-status .ico { width: 1.4rem; height: 1.4rem; margin-top: .05rem; }
.form-status--ok { background: rgba(92, 245, 200, .1); border: 1px solid rgba(92, 245, 200, .45); color: #d9fff3; }
.form-status--ok .ico { color: var(--gain); }
.form-status--error { background: rgba(255, 59, 92, .1); border: 1px solid rgba(255, 59, 92, .55); color: #ffe3e8; }
.form-status--error .ico { color: #ff7b93; }
.form-status--ok .ico-warn, .form-status--error .ico-ok { display: none; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: .4rem; }
.form-actions .btn { min-width: 200px; }
.form-foot { font-size: .92rem; color: var(--fg-3); margin: 1rem 0 0; }
.publisher-card { margin-top: 1.25rem; padding: 1.2rem 1.25rem; }
.publisher-card h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.publisher-card p { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { position: relative; margin-top: 2rem; padding: clamp(3rem, 6vw, 4.5rem) 0 calc(2rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-2); background: linear-gradient(180deg, var(--bg-2), var(--bg)); font-size: 1rem; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: linear-gradient(90deg, transparent, var(--uv-soft) 30%, var(--volt) 75%, transparent); opacity: .7; }
.site-footer__grid { display: grid; gap: 2.25rem; }
.site-footer__brand p { max-width: 24rem; margin: 1rem 0 1.25rem; }
.site-footer h2 { font: 700 .9rem var(--f-ui); letter-spacing: .22em; text-transform: uppercase; color: var(--fg); margin-bottom: .9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0; }
.site-footer li a { display: inline-block; padding: .35rem 0; color: var(--fg-2); text-decoration: none; }
.site-footer li a:hover { color: var(--volt); }
.site-footer address { color: var(--fg-2); margin-bottom: .6rem; }
.site-footer__legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line-2); font-size: .9rem; color: var(--fg-3); }
.site-footer__legal p { margin: 0 0 .5rem; }
@media (min-width: 720px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (min-width: 1040px) { .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } .site-footer__brand { grid-column: auto; } }

/* ---------- Reveal on scroll (enabled by JS only) ---------- */
.js [data-reveal] { opacity: 0; transform: translateX(-18px); transition: opacity .7s ease, transform .7s ease; }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

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

/* ---------- Print (legal pages) ---------- */
@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  .site-header, .site-footer, .toc, .skip-link, .page-hero::before, .page-hero::after { display: none !important; }
  .doc { max-width: none; }
  h1, h2, h3, strong, .kv dd { color: #000; }
  a { color: #000; }
  .callout, .glance li, .kv { background: none; border-color: #999; }
}

/* ==========================================================================
   Desktop edition (desktop.php) and the home-page teaser
   ========================================================================== */
.hero__actions, .cta__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.cta__actions { justify-content: center; margin-top: 1.5rem; }

/* Demo player: a poster link (works without JavaScript: opens the demo page), replaced by the game in place. */
.demo { display: grid; gap: 1rem; }
.demo__stage { position: relative; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: var(--r) var(--r-big) var(--r) var(--r-big); overflow: hidden; background: #000; box-shadow: var(--shadow), var(--glow-uv); }
.demo__stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #000; }
.demo__poster { position: absolute; inset: 0; display: block; color: var(--fg); text-decoration: none; }
.demo__poster picture, .demo__poster img { width: 100%; height: 100%; object-fit: cover; }
.demo__poster::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 50% 55%, rgba(8, 6, 26, .15), rgba(8, 6, 26, .72)); transition: background .2s ease; }
.demo__play { position: absolute; left: 50%; top: 50%; z-index: 1; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 1rem; padding: .9rem 1.6rem .9rem .9rem; border-radius: var(--r) 26px var(--r) 26px; background: rgba(8, 6, 26, .86); border: 1px solid var(--line); border-left: 4px solid var(--volt); box-shadow: var(--glow); white-space: nowrap; transition: transform .2s ease, border-color .2s ease; }
.demo__play-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--r) 16px var(--r) 16px; background: var(--volt); color: var(--volt-ink); flex: none; }
.demo__play-ico .ico { width: 26px; height: 26px; margin-left: 3px; }
.demo__play-text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.demo__play-text strong { font: 700 1.3rem var(--f-ui); letter-spacing: .02em; }
.demo__play-text small { font: 500 .95rem var(--f-ui); color: var(--fg-2); letter-spacing: .03em; }
.demo__poster:hover .demo__play, .demo__poster:focus-visible .demo__play { transform: translate(-50%, -50%) scale(1.04); border-color: var(--volt); }
.demo__poster:focus-visible { outline-offset: -4px; }
.demo__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.25rem; }
.demo__hint { display: flex; gap: .6rem; align-items: flex-start; margin: 0; max-width: 44rem; font-size: 1rem; }
.demo__hint .ico { color: var(--volt); margin-top: .2rem; }
.demo__tools { display: flex; flex-wrap: wrap; gap: .5rem; }
.demo__mobile { display: none; margin: 0; }
.demo__mobile .store-buttons { margin-top: .75rem; }
.demo.is-playing .demo__poster { display: none; }
/* Phones and tablets (touch only): the poster stays, with a word on how the demo plays there. */
@media (hover: none) and (pointer: coarse) {
  .demo__mobile { display: flex; }
  .demo__hint { display: none; }
}
@media (max-width: 560px) {
  .demo__play { gap: .7rem; padding: .6rem 1rem .6rem .6rem; }
  .demo__play-ico { width: 44px; height: 44px; }
  .demo__play-text strong { font-size: 1.1rem; }
  .demo__play-text small { display: none; }
}

/* Controls table: four columns on wide screens, stacked cards on phones (see .compare). */
.compare--keys tbody th { width: 20%; }
.kbd { display: inline-block; min-width: 1.7em; padding: .02em .45em; margin: 0 .05em; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; background: rgba(190, 180, 255, .08); color: var(--fg); font: 600 .92em var(--f-ui); text-align: center; letter-spacing: .02em; }

/* Home-page teaser for the desktop edition. */
.desk-teaser { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); align-items: center; padding: clamp(1.25rem, 3vw, 2rem); }
.desk-teaser__img { border-radius: var(--r) 16px var(--r) 16px; overflow: hidden; border: 1px solid var(--line); }
.desk-teaser__img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.desk-teaser .section-title { margin-bottom: .4em; }
.desk-teaser__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.4rem; }
@media (min-width: 900px) { .desk-teaser { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.hero__alt { display: flex; gap: .55rem; align-items: center; margin: 1.1rem 0 0; font: 600 1.05rem var(--f-ui); letter-spacing: .02em; color: var(--fg-2); }
.hero__alt .ico { color: var(--volt); }
