/* Arrow Puzzle Game: Light City — one stylesheet for every page.
   Concept "Light the City": a graphite night, pale cyan arrows, warm amber windows.
   Palette and gradients come from assets/branding/*.svg; type is Rajdhani (SIL OFL). */

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

:root {
  --night-0: #040c13;
  --night-1: #071520;
  --night-2: #0b1c27;
  --night-3: #10283a;
  --line: #1c3442;
  --line-2: #2a4656;
  --ink: #e7f3f0;
  --ink-2: #bdd0d5;
  --muted: #8ea7b1;
  --cyan-hi: #c2fff7;
  --cyan: #91f0ee;
  --cyan-lo: #76dbdf;
  --amber-hi: #f2d397;
  --amber: #efbc62;
  --amber-lo: #dfaf6c;
  --coral: #ee987f;
  --window-off: #102331;
  --display: "Rajdhani", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --gutter: 20px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 120px; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--night-0);
  color: var(--ink);
  font: 400 17px/1.6 var(--text);
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--cyan-hi); }
p, ul, ol, dl, figure { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 700; line-height: 1.05; }
button { font: inherit; color: inherit; }
code { font: 600 .88em/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--cyan-hi); background: #0e2230; padding: .08em .35em; border-radius: 3px; overflow-wrap: anywhere; }
:focus-visible { outline: 2px solid var(--amber-hi); outline-offset: 3px; }
::selection { background: var(--amber); color: var(--night-0); }

.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: 12px; z-index: 100; padding: 10px 16px; background: var(--amber); color: var(--night-0); font: 700 15px/1 var(--display); text-transform: uppercase; letter-spacing: .08em; transform: translateY(-160%); }
.skip:focus { transform: none; color: var(--night-0); }

/* ── Header ──────────────────────────────────────────── */
.hdr { position: sticky; top: 0; z-index: 40; background: rgb(4 12 19 / .94); border-bottom: 1px solid var(--line); }
.hdr-in { display: flex; flex-wrap: wrap; align-items: center; column-gap: 14px; padding-top: 8px; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 48px; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand img { width: 34px; height: 34px; }
.brand-text { display: grid; font-family: var(--display); text-transform: uppercase; line-height: 1; }
.brand-text small { font-size: 10.5px; font-weight: 600; letter-spacing: .22em; color: var(--muted); }
.brand-text strong { font-size: 21px; letter-spacing: .06em; margin-top: 2px; }
.brand-text strong span { color: var(--amber-hi); }
.hdr-nav { order: 3; flex-basis: 100%; min-width: 0; margin-top: 6px; border-top: 1px solid #0f2230; }
.nav { display: flex; gap: 2px; list-style: none; margin: 0 -8px; padding: 4px 0; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { display: flex; align-items: center; min-height: 40px; padding: 0 10px; font: 600 15px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); text-decoration: none; white-space: nowrap; border-radius: 3px; }
.nav a:hover { color: var(--ink); background: #0e2230; }
.nav a[aria-current="page"] { color: var(--amber-hi); box-shadow: inset 0 -2px 0 var(--amber); }
@media (max-width: 400px) { .nav a { padding: 0 8px; font-size: 14px; letter-spacing: .07em; } }
.meter { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: #0c1c27; }
.meter[hidden] { display: none; }
.meter-fill { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--cyan-lo), var(--amber-hi) 70%, var(--amber)); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.meter-label { position: absolute; right: var(--gutter); top: 2px; padding: 4px 8px; font: 700 11px/1 var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--amber-hi); background: var(--night-0); border: 1px solid var(--line); border-top: 0; }
@media (min-width: 960px) {
  .hdr-in { flex-wrap: nowrap; min-height: 72px; padding: 0; column-gap: 22px; }
  .hdr-nav { order: 0; flex-basis: auto; margin: 0; border: 0; }
  .nav { margin: 0; padding: 0; }
}

/* ── Buttons and store badges ────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 1px solid transparent; border-radius: 3px; font: 700 16px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s; }
.btn-amber { background: linear-gradient(180deg, var(--amber-hi), var(--amber)); color: #1b1206; }
.btn-amber:hover { color: #1b1206; background: var(--amber-hi); transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { color: var(--ink); border-color: var(--cyan-lo); background: #0d2030; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn:focus-visible { outline-offset: 2px; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 18px 8px 14px; border: 1px solid var(--line-2); border-radius: 3px; background: #08141d; color: var(--ink); text-decoration: none; transition: border-color .2s, background-color .2s, transform .2s; }
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: grid; line-height: 1.05; }
.store small { font: 600 12px/1.1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.store strong { font: 700 21px/1.05 var(--display); letter-spacing: .03em; }
a.store:hover { color: var(--ink); border-color: var(--amber); background: #0f2230; transform: translateY(-1px); }
.store.is-soon { border-style: dashed; color: var(--ink-2); }
.store.is-soon svg { opacity: .7; }
.fine { font-size: 14px; color: var(--muted); }

/* ── Type helpers ────────────────────────────────────── */
.eyebrow { display: flex; align-items: center; gap: 12px; font: 600 14px/1.2 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--amber); }
.trail { width: 56px; height: 12px; flex: none; overflow: visible; }
.trail path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.trail-path { stroke: var(--cyan); stroke-width: 2; stroke-dasharray: 52; stroke-dashoffset: 0; }
.trail-glow { stroke: var(--cyan); stroke-width: 7; opacity: .16; }
.trail-tip { stroke: var(--amber-hi); stroke-width: 2.4; }
.js .trail.is-pending .trail-path { stroke-dashoffset: 52; }
.js .trail.is-pending .trail-tip, .js .trail.is-pending .trail-glow { opacity: 0; }
.trail.is-in .trail-path { transition: stroke-dashoffset .9s cubic-bezier(.3,.1,.2,1); }
.trail.is-in .trail-tip, .trail.is-in .trail-glow { transition: opacity .4s .7s; }
.h2 { margin-top: 14px; font-size: clamp(34px, 5.4vw, 64px); line-height: .92; text-transform: uppercase; letter-spacing: .005em; }
.h2 em { font-style: normal; color: var(--amber-hi); }
.lede { margin-top: 18px; max-width: 40em; font-size: 18px; color: var(--ink-2); }
.js [data-reveal].is-pending { opacity: 0; transform: translateY(18px); }
[data-reveal].is-in { transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }

/* ── City skylines ───────────────────────────────────── */
.city { position: relative; height: 150px; overflow: hidden; pointer-events: none; --lit: 0; }
.city::before { content: ""; position: absolute; inset: 20% -10% -30%; background: radial-gradient(55% 70% at 50% 100%, rgb(239 188 98 / .3), transparent 72%); opacity: calc(.2 + var(--lit) * .8); transition: opacity 1.2s; }
.city > img, .city-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.city > img { object-fit: cover; object-position: center bottom; }
.city-far { fill: #0c1e2a; opacity: .8; }
.city-body-top { stop-color: #10283a; }
.city-body-base { stop-color: #050d14; }
.city-rim { fill: none; stroke: rgb(145 240 238 / .18); stroke-width: 1; }
.w { fill: var(--window-off); }
.w.on { fill: var(--amber-hi); animation: window-on .5s steps(4, end); }
.w-c.on { fill: var(--cyan-hi); }
.city-beacon { fill: var(--coral); animation: beacon 2.4s steps(1, end) infinite; animation-delay: var(--blink-delay, 0s); }
.city--hero { height: clamp(190px, 27vw, 360px); margin-top: -120px; z-index: 1; }
.city--play { height: clamp(170px, 22vw, 300px); margin-top: -90px; }
.city--finale { height: clamp(240px, 34vw, 460px); }
.city--legal { height: 96px; }
@keyframes window-on { 0% { opacity: .2; } 40% { opacity: 1; } 60% { opacity: .45; } 100% { opacity: 1; } }
@keyframes beacon { 0%, 100% { opacity: 1; } 50% { opacity: .15; } }

/* ── Hero ────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; background: radial-gradient(130% 80% at 75% -10%, #12293a 0%, var(--night-1) 45%, var(--night-0) 80%); }
.hero::before { content: ""; position: absolute; inset: 0 0 30%; background-image:
  radial-gradient(1.4px 1.4px at 8% 14%, #c2fff7 60%, transparent 62%), radial-gradient(1px 1px at 18% 38%, #e7f3f0 60%, transparent 62%),
  radial-gradient(1.2px 1.2px at 31% 9%, #f2d397 60%, transparent 62%), radial-gradient(1px 1px at 44% 27%, #e7f3f0 60%, transparent 62%),
  radial-gradient(1.6px 1.6px at 57% 12%, #c2fff7 60%, transparent 62%), radial-gradient(1px 1px at 66% 41%, #e7f3f0 60%, transparent 62%),
  radial-gradient(1.2px 1.2px at 79% 7%, #e7f3f0 60%, transparent 62%), radial-gradient(1.4px 1.4px at 88% 30%, #f2d397 60%, transparent 62%),
  radial-gradient(1px 1px at 95% 16%, #c2fff7 60%, transparent 62%), radial-gradient(1px 1px at 4% 46%, #e7f3f0 60%, transparent 62%);
  opacity: .55; }
.hero-grid { position: relative; z-index: 2; display: grid; gap: 34px; padding: 34px 0 0; }
.hero-copy { position: relative; }
.h1 { text-transform: uppercase; }
.h1-kicker { display: block; font-size: clamp(17px, 1.3vw + 11px, 26px); font-weight: 600; letter-spacing: .17em; color: var(--cyan); }
.h1-title { display: block; margin-top: 4px; font-size: clamp(62px, 11vw, 150px); line-height: .82; letter-spacing: -.01em; }
.h1-title em { font-style: normal; color: var(--amber-hi); text-shadow: 0 0 32px rgb(239 188 98 / .35); }
.hero .lede { font-size: clamp(17px, .5vw + 15px, 20px); }
.hero .stores { margin-top: 26px; }
.hero .eyebrow { margin-bottom: 20px; }
.hero-note { margin-top: 14px; font: 600 15px/1.3 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.hero-note a { color: var(--amber-hi); }
.hero-demo { position: relative; width: 100%; max-width: 520px; justify-self: center; padding-bottom: 130px; }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: 56px; padding-top: 64px; }
  .hero-demo { justify-self: end; }
}

/* ── Demo console ────────────────────────────────────── */
.console { position: relative; padding: 14px; background: linear-gradient(165deg, #0e2433, #061019 72%); border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 40px 70px -30px #000, 0 0 0 1px #02070b; }
.console-head { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: end; padding: 2px 2px 0; }
.console-step { font: 600 13px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--amber); }
.console-name { grid-column: 1; font: 700 24px/1.05 var(--display); }
.console-count { grid-column: 2; grid-row: 1 / span 2; font: 600 15px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.level-picker { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.pick { width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 3px; background: #08141d; font: 700 16px/1 var(--display); cursor: pointer; position: relative; }
.pick:hover { border-color: var(--cyan-lo); }
.pick[aria-pressed="true"] { border-color: var(--amber); color: var(--amber-hi); background: #1a1a12; }
.pick.is-cleared::after { content: ""; position: absolute; right: 4px; top: 4px; width: 6px; height: 6px; background: var(--amber); border-radius: 50%; }
.board-frame { position: relative; margin-top: 12px; aspect-ratio: var(--board-ratio, 1); max-height: 68vh; margin-inline: auto; background: radial-gradient(ellipse at 50% 45%, #13293a 0%, #08151f 78%); border-radius: 3px; }
.board-frame::before, .board-frame::after { content: ""; position: absolute; width: 18px; height: 18px; border: 0 solid rgb(145 240 238 / .45); pointer-events: none; }
.board-frame::before { left: 0; top: 0; border-width: 1px 0 0 1px; }
.board-frame::after { right: 0; bottom: 0; border-width: 0 1px 1px 0; }
.board { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.board-fallback { display: block; padding: 18px; }
.board-fallback img { width: 100%; height: auto; }
.grid-dots circle { fill: #6993a7; opacity: .35; }
.arrow { cursor: pointer; outline: none; }
.arrow-hit { fill: none; stroke: transparent; stroke-width: .9; stroke-linecap: round; stroke-linejoin: round; pointer-events: stroke; transition: stroke .2s; }
.arrow-line, .arrow-head { fill: none; stroke: #c4f3ef; stroke-width: .105; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; transition: stroke .2s; }
.arrow-head { stroke-width: .11; }
.arrow-tail { fill: #a4d9d9; pointer-events: none; }
.arrow.is-relay .arrow-line, .arrow.is-relay .arrow-head { stroke: var(--amber); }
.arrow.is-relay .arrow-tail, .relay-disc { fill: var(--amber); }
.relay-disc { stroke: #081018; stroke-width: .05; pointer-events: none; }
.relay-number, .gate-number { font: 700 .23px/1 var(--display); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.relay-number { fill: #101b23; font-size: .22px; }
.gate-cell { fill: #372c1d; stroke: #e8b969; stroke-width: .045; }
.gate-number { fill: var(--amber); }
.arrow:hover .arrow-line, .arrow:hover .arrow-head { stroke: #fff; }
.arrow:focus-visible .arrow-hit { stroke: rgb(242 211 151 / .22); }
.arrow:focus-visible .arrow-line, .arrow:focus-visible .arrow-head { stroke: #fff; }
.arrow.is-hinted .arrow-line, .arrow.is-hinted .arrow-head { stroke: #6ffff2; animation: glow .7s ease-in-out infinite alternate; }
.arrow.is-blocked .arrow-line, .arrow.is-blocked .arrow-head { stroke: var(--coral); }
.arrow.is-blocked { animation: nudge .32s ease-in-out 2; transform-box: fill-box; }
.tap-cue { fill: none; stroke: var(--cyan); stroke-width: .04; transform-box: fill-box; transform-origin: center; animation: cue 1.4s ease-out infinite; pointer-events: none; }
.blocker-ring { fill: rgb(238 152 127 / .14); stroke: var(--coral); stroke-width: .035; pointer-events: none; animation: glow .3s ease-in-out infinite alternate; }
.exit-core, .exit-glow { fill: none; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.exit-core { stroke: #dffdf9; stroke-width: .11; }
.exit-glow { stroke: var(--cyan); stroke-width: .42; opacity: .28; }
.exit-core.is-relay { stroke: var(--amber-hi); }
.exit-glow.is-relay { stroke: var(--amber); }
.console-msg { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 3.2em; margin-top: 10px; padding: 0 8px; font-size: 15px; line-height: 1.4; text-align: center; color: var(--ink-2); }
.console-msg::before { content: ""; width: 5px; height: 5px; flex: none; background: var(--amber); transform: rotate(45deg); }
.console-tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 6px; }
.tool { min-height: 46px; border: 1px solid var(--line-2); border-radius: 3px; background: #0b1b26; font: 700 15px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: #d4e7ea; cursor: pointer; transition: background-color .2s, border-color .2s; }
.tool:hover:not(:disabled) { background: #12293a; border-color: var(--cyan-lo); }
.tool:first-child { color: var(--amber-hi); border-color: #5c4a2c; }
.tool:disabled { cursor: default; opacity: .45; }
.console-keys { margin-top: 10px; font-size: 13px; text-align: center; color: var(--muted); }
@media (hover: none) { .console-keys { display: none; } }
.console-done { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; gap: 10px; padding: 20px; text-align: center; background: rgb(4 12 19 / .9); border: 1px solid #5c4a2c; border-radius: 3px; }
.console-done[hidden] { display: none; }
.done-kicker { font: 600 14px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--amber); }
.done-title { font: 700 clamp(26px, 5vw, 34px)/1 var(--display); text-transform: uppercase; }
.done-stars { font-size: 30px; letter-spacing: .18em; color: var(--amber-hi); }
.done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }
.feed { display: none; }
.js .feed { display: block; position: absolute; left: 50%; bottom: 0; width: 2px; height: 130px; background: linear-gradient(rgb(145 240 238 / .5), rgb(145 240 238 / 0)); }
.js .feed i { position: absolute; left: -3px; top: 0; width: 8px; height: 22px; border-radius: 4px; background: var(--cyan-hi); box-shadow: 0 0 14px var(--cyan); opacity: 0; }
.js .feed i[data-tone="amber"] { background: var(--amber-hi); box-shadow: 0 0 14px var(--amber); }
.demo-fallback { padding: 18px; border: 1px dashed var(--line-2); border-radius: 4px; background: #07131c; }
.demo-fallback img { margin: 0 auto 14px; width: 100%; max-width: 380px; height: auto; }
.demo-fallback p { font-size: 15px; color: var(--ink-2); text-align: center; }

/* ── Sections ────────────────────────────────────────── */
.section { position: relative; padding: 76px 0; }
.section + .section { border-top: 1px solid #0c1d28; }
.section-head { max-width: 1040px; margin-bottom: 40px; }
.section-alt { background: linear-gradient(180deg, var(--night-1), var(--night-0)); }

/* How it works: a power line with three stations */
.circuit { list-style: none; padding: 0; display: grid; gap: 34px; counter-reset: step; }
.circuit li { position: relative; padding-left: 64px; }
.circuit li::before { content: ""; position: absolute; left: 21px; top: 46px; bottom: -34px; width: 2px; background: linear-gradient(var(--line-2), transparent); }
.circuit li:last-child::before { display: none; }
.node { position: absolute; left: 0; top: 0; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--amber); border-radius: 50%; background: radial-gradient(circle, rgb(239 188 98 / .35), rgb(239 188 98 / .05) 70%); font: 700 19px/1 var(--display); color: var(--amber-hi); transition: background-color .6s, border-color .6s, color .6s, box-shadow .6s; box-shadow: 0 0 22px rgb(239 188 98 / .25); }
.js .circuit li.is-pending .node { border-color: var(--line-2); color: var(--muted); background: #08141d; box-shadow: none; }
.circuit h3 { font-size: 27px; text-transform: uppercase; letter-spacing: .02em; }
.circuit p { margin-top: 8px; color: var(--ink-2); max-width: 34em; }
.mini { width: 100%; max-width: 240px; height: auto; margin-top: 16px; }
.mini .m-line { fill: none; stroke: #c4f3ef; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.mini .m-ray { fill: none; stroke: var(--cyan); stroke-width: 2; stroke-dasharray: 4 6; opacity: .7; }
.mini .m-block { fill: none; stroke: var(--coral); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.mini .m-x { stroke: var(--coral); stroke-width: 2.5; stroke-linecap: round; }
.mini .m-dot { fill: #6993a7; opacity: .5; }
.mini .m-bld { fill: #10283a; }
.mini .m-win { fill: var(--window-off); }
.mini .m-win.lit { fill: var(--amber-hi); }
.mini .m-win.cy { fill: var(--cyan-hi); }
@media (min-width: 860px) {
  .circuit { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .circuit li { padding: 70px 0 0; }
  .circuit li::before { left: 46px; right: -28px; top: 21px; bottom: auto; width: auto; height: 2px; background: linear-gradient(90deg, var(--line-2), var(--line)); }
}

/* Tools: the game's four buttons */
.dock { list-style: none; padding: 0; display: grid; gap: 14px; }
.key { display: grid; grid-template-columns: 76px 1fr; gap: 6px 18px; align-items: start; padding: 18px; border: 1px solid var(--line); border-radius: 4px; background: #07131c; }
.keycap { grid-row: 1 / span 3; display: grid; place-items: center; gap: 6px; width: 76px; height: 70px; padding-top: 4px; border: 1px solid var(--line-2); border-radius: 6px; background: linear-gradient(#152a37, #0b1923); font: 700 11px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.keycap svg { width: 24px; height: 24px; }
.key-hint .keycap { color: var(--amber-hi); border-color: #5c4a2c; }
.key h3 { font-size: 24px; text-transform: uppercase; letter-spacing: .03em; }
.uses { font: 600 14px/1.2 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.key p:last-child { color: var(--ink-2); font-size: 16px; }
@media (min-width: 720px) { .dock { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) {
  .dock { grid-template-columns: repeat(4, 1fr); }
  .key { grid-template-columns: 1fr; padding: 22px; }
  .keycap { grid-row: auto; margin-bottom: 12px; }
}

/* Statement band */
.band { padding: 84px 0; background: linear-gradient(90deg, rgb(239 188 98 / .07), transparent 60%), var(--night-0); border-block: 1px solid #142836; }
.band-lines { display: grid; gap: 6px; font: 700 clamp(44px, 9vw, 120px)/.9 var(--display); text-transform: uppercase; }
.band-lines span { display: block; }
.band-lines b { color: var(--muted); font-weight: 700; }
.band p { margin-top: 26px; max-width: 40em; font-size: 18px; color: var(--ink-2); }

/* Ten regions as a transit line */
.metro { list-style: none; padding: 0; display: grid; gap: 0; }
.metro li { position: relative; padding: 0 0 26px 46px; }
.metro li::before { content: ""; position: absolute; left: 11px; top: 14px; bottom: -14px; width: 2px; background: var(--line-2); }
.metro li:last-child::before { display: none; }
.metro li::after { content: ""; position: absolute; left: 2px; top: 4px; width: 20px; height: 20px; border-radius: 50%; border: 4px solid var(--night-0); background: var(--accent); box-shadow: 0 0 0 2px var(--accent), 0 0 18px var(--accent); }
.metro h3 { font-size: 24px; text-transform: uppercase; letter-spacing: .03em; }
.metro h3 span { color: var(--accent); margin-right: 8px; }
.metro .range { font: 600 14px/1.3 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.metro p:last-child { margin-top: 4px; color: var(--ink-2); font-size: 16px; max-width: 34em; }
.r1 { --accent: #efbc62; } .r2 { --accent: #a7e784; } .r3 { --accent: #9ee9ff; } .r4 { --accent: #ff9d68; } .r5 { --accent: #65dfd4; }
.r6 { --accent: #f5a26b; } .r7 { --accent: #a9e8b3; } .r8 { --accent: #c3b1ff; } .r9 { --accent: #b5a7e8; } .r10 { --accent: #ffd991; }
@media (min-width: 860px) {
  .metro { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(5, auto); grid-auto-flow: column; column-gap: 48px; }
  .metro li:nth-child(5)::before { display: none; }
}

/* Colors */
.swatches { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.swatches li { padding: 18px 16px; border: 1px solid var(--line); border-radius: 4px; background: #07131c; }
.swatches svg { width: 70px; height: 56px; margin-bottom: 12px; }
.swatches path { fill: none; stroke: var(--tone); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px var(--tone)); }
.swatches circle { fill: var(--accent-2); }
.swatches h3 { font-size: 22px; text-transform: uppercase; letter-spacing: .05em; }
.swatches p { font: 600 15px/1.3 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.c1 { --tone: #91f0ee; --accent-2: #efbc62; } .c2 { --tone: #ffc06c; --accent-2: #ff7f62; } .c3 { --tone: #c3a1ff; --accent-2: #ef8dd8; }
.c4 { --tone: #9df2af; --accent-2: #e4db80; } .c5 { --tone: #d3efff; --accent-2: #74baff; }
.note { margin-top: 22px; color: var(--ink-2); max-width: 46em; }

/* Screenshots */
.shots { list-style: none; margin: 0; padding: 4px 2px 18px; display: grid; grid-auto-flow: column; grid-auto-columns: min(64vw, 250px); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-color: var(--line-2) transparent; }
.shots li { scroll-snap-align: start; }
.shots img { width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 6px; border: 1px solid var(--line); background: var(--night-2); }
.shots figcaption { margin-top: 10px; font: 600 15px/1.3 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.shots:focus-visible { outline-offset: 6px; }

/* Trailer */
.trailer { display: grid; gap: 32px; align-items: center; }
.trailer video { width: 100%; max-width: 360px; aspect-ratio: 9 / 16; border-radius: 6px; border: 1px solid var(--line); background: var(--night-2); }
.trailer p + p { margin-top: 14px; }
@media (min-width: 860px) { .trailer { grid-template-columns: 360px 1fr; gap: 56px; } }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 900px; }
.faq-item { border: 1px solid var(--line); border-radius: 4px; background: #07131c; }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 20px; cursor: pointer; list-style: none; font: 700 20px/1.25 var(--display); letter-spacing: .02em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--amber); border-bottom: 2px solid var(--amber); transform: rotate(45deg) translate(-2px, -2px); transition: transform .25s; }
.faq-item[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.faq-item[open] { border-color: #3a3424; }
.faq-a { padding: 0 20px 20px; color: var(--ink-2); }
.faq-a p + p, .faq-a p + ul, .faq-a ul + p { margin-top: 10px; }
.faq-a ul { padding-left: 20px; }

/* Finale */
.finale { position: relative; padding: 80px 0 0; overflow: hidden; background: radial-gradient(120% 70% at 50% 100%, #1a2a2c 0%, var(--night-1) 45%, var(--night-0) 80%); }
.finale-in { position: relative; z-index: 2; display: grid; gap: 26px; }
.finale .h2 { font-size: clamp(44px, 7.4vw, 100px); }
.finale .stores { margin-top: 4px; }
.finale .city { margin-top: 28px; }
@media (min-width: 960px) {
  .finale-in { grid-template-columns: 1.1fr .9fr; align-items: end; }
  .finale-in > div:last-child { justify-self: end; text-align: right; }
  .finale .stores { justify-content: flex-end; }
}

/* ── Inner pages ─────────────────────────────────────── */
.page-head { position: relative; overflow: hidden; padding: 52px 0 0; background: radial-gradient(120% 90% at 80% -20%, #12293a 0%, var(--night-1) 50%, var(--night-0) 85%); }
.page-head .wrap { position: relative; z-index: 2; padding-bottom: 8px; }
.page-head .h1 { margin-top: 14px; font-size: clamp(42px, 7vw, 88px); line-height: .92; }
.page-head .lede { margin-top: 16px; }
.crumbs { font: 600 14px/1.2 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--amber-hi); }
.demo-label { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 8px 14px; border: 1px solid #5c4a2c; border-radius: 3px; background: #15120b; font: 700 15px/1.2 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--amber-hi); }
.demo-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.play-stage { position: relative; z-index: 2; display: grid; gap: 34px; padding-top: 30px; }
.play-stage .hero-demo { max-width: 560px; padding-bottom: 100px; }
.play-aside { align-self: start; }
.play-aside h2 { font-size: 30px; text-transform: uppercase; }
.play-aside ul { margin-top: 14px; padding-left: 20px; color: var(--ink-2); }
.play-aside li + li { margin-top: 8px; }
.play-aside .stores { margin-top: 22px; }
@media (min-width: 1000px) { .play-stage { grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 64px; } .play-stage .hero-demo { justify-self: start; } }

.prose { max-width: 74ch; }
.prose > * + * { margin-top: 16px; }
.prose h2 { margin-top: 52px; font-size: clamp(28px, 3.6vw, 38px); text-transform: uppercase; letter-spacing: .01em; scroll-margin-top: 120px; }
.prose h3 { margin-top: 30px; font-size: 23px; letter-spacing: .02em; scroll-margin-top: 120px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--amber); }
.prose strong { color: var(--ink); }
.prose p, .prose li { color: var(--ink-2); }
.card { padding: 20px 22px; border: 1px solid var(--line); border-left: 3px solid var(--amber); border-radius: 3px; background: #07131c; }
.card p + p, .card address + p { margin-top: 6px; }
address { font-style: normal; color: var(--ink-2); }
.summary { padding: 22px 24px; border: 1px solid #3a3424; border-radius: 4px; background: linear-gradient(135deg, rgb(239 188 98 / .07), transparent 60%), #07131c; }
.summary h2 { margin-top: 0; font-size: 26px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 4px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); color: var(--ink-2); }
th { font: 700 15px/1.2 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); background: #0a1923; }
tr:last-child td { border-bottom: 0; }
.doc { display: grid; gap: 34px; padding: 44px 0 90px; }
.toc { align-self: start; }
.toc details { border: 1px solid var(--line); border-radius: 4px; background: #07131c; }
.toc summary { padding: 14px 18px; cursor: pointer; font: 700 16px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.toc ol { margin: 0; padding: 0 18px 16px 40px; font-size: 15px; }
.toc li + li { margin-top: 6px; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--amber-hi); text-decoration: underline; }
.updated { margin-top: 12px; font: 600 15px/1.2 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 1000px) { .doc { grid-template-columns: 270px minmax(0, 1fr); gap: 64px; } .toc { position: sticky; top: 100px; } }

/* How to play */
.diagrams { display: grid; gap: 18px; margin-top: 24px; }
.diagram { padding: 18px; border: 1px solid var(--line); border-radius: 4px; background: #07131c; }
.diagram svg { width: 100%; max-width: 280px; height: auto; margin: 0 auto 14px; }
.diagram figcaption { font-size: 15px; color: var(--ink-2); }
.diagram figcaption strong { display: block; font: 700 19px/1.2 var(--display); letter-spacing: .04em; text-transform: uppercase; color: var(--ink); margin-bottom: 4px; }
.dg-dot { fill: #6993a7; opacity: .45; }
.dg-arrow { fill: none; stroke: #c4f3ef; stroke-width: .11; stroke-linecap: round; stroke-linejoin: round; }
.dg-relay { fill: none; stroke: var(--amber); stroke-width: .11; stroke-linecap: round; stroke-linejoin: round; }
.dg-ray { fill: none; stroke: var(--cyan); stroke-width: .05; stroke-dasharray: .12 .14; stroke-linecap: round; }
.dg-ray.bad { stroke: var(--coral); }
.dg-block { fill: none; stroke: var(--coral); stroke-width: .11; stroke-linecap: round; stroke-linejoin: round; }
.dg-gate { fill: #372c1d; stroke: #e8b969; stroke-width: .045; }
.dg-num { font: 700 .24px/1 var(--display); text-anchor: middle; dominant-baseline: central; fill: var(--amber); }
.dg-disc { fill: var(--amber); }
.dg-disc-num { font: 700 .22px/1 var(--display); text-anchor: middle; dominant-baseline: central; fill: #101b23; }
@media (min-width: 760px) { .diagrams { grid-template-columns: repeat(3, 1fr); } }
.steps { list-style: none; padding: 0; counter-reset: s; display: grid; gap: 14px; }
.howto-step { position: relative; padding: 16px 18px 16px 64px; border: 1px solid var(--line); border-radius: 4px; background: #07131c; counter-increment: s; }
.howto-step::before { content: counter(s); position: absolute; left: 16px; top: 16px; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--amber); border-radius: 50%; font: 700 17px/1 var(--display); color: var(--amber-hi); }
.howto-step h3 { margin: 0; font-size: 21px; }
.howto-step p { margin-top: 4px; }
.tips { display: grid; gap: 12px; padding: 0; list-style: none; }
.tips li { padding: 14px 18px; border-left: 3px solid var(--cyan-lo); background: #07131c; }
.tips li + li { margin-top: 0; }

/* Press */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 22px; margin: 0; }
.facts dt { font: 700 15px/1.5 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; color: var(--ink-2); }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; gap: 2px; } .facts dd { margin-bottom: 10px; } }
.downloads { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.downloads li { margin: 0; }
.downloads a { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 4px; background: #07131c; text-decoration: none; color: var(--ink-2); font-size: 14px; }
.downloads a:hover { border-color: var(--amber); color: var(--ink); }
.downloads img { width: 100%; height: auto; border-radius: 3px; background: var(--night-2); }
.downloads strong { font: 700 16px/1.2 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.boiler { padding: 20px 22px; border: 1px solid var(--line); border-radius: 4px; background: #07131c; }

/* ── Footer ──────────────────────────────────────────── */
.foot { padding: 46px 0 40px; border-top: 1px solid var(--line); background: #03090e; font-size: 15px; color: var(--muted); }
.foot-in { display: grid; gap: 30px; }
.foot strong { color: var(--ink); font-family: var(--display); font-size: 18px; letter-spacing: .04em; }
.foot p + p { margin-top: 6px; }
.foot ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.foot a { color: var(--ink-2); }
.foot a:hover { color: var(--amber-hi); }
.foot h2 { margin-bottom: 12px; font-size: 14px; letter-spacing: .2em; text-transform: uppercase; color: var(--amber); }
.foot-legal { margin-top: 34px; padding-top: 22px; border-top: 1px solid #0f2029; font-size: 13px; }
@media (min-width: 860px) { .foot-in { grid-template-columns: 1.4fr 1fr 1fr; } }

/* ── 404 ─────────────────────────────────────────────── */
.lost { padding: 80px 0 30px; }
.lost .h1 { font-size: clamp(56px, 12vw, 150px); line-height: .85; }
.lost .h1 em, .page-head .h1 em { font-style: normal; color: var(--amber-hi); }
.lost p { margin-top: 18px; max-width: 34em; color: var(--ink-2); }
.lost .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

@keyframes glow { from { opacity: .55; } to { opacity: 1; } }
@keyframes cue { 0% { transform: scale(.7); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(.06px); } }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
