/* Neon Brink: the site wears the game's own night. Colours are the game's
   (lib/game/zone_palette.dart, brand_mark.dart); fonts are the game's
   (NeonDisplay for titles, Exo 2 for text). */

@font-face {
  font-family: "Neon Display";
  src: url("fonts/neon-display.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Exo 2";
  src: url("fonts/exo2.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --sky-top: #07001f;
  --sky-mid: #230659;
  --sky-low: #5b0a78;
  --ground: #0b0020;
  --panel: rgba(28, 8, 64, .62);
  --panel-solid: #150533;
  --line: rgba(194, 75, 255, .26);
  --line-strong: rgba(194, 75, 255, .5);
  --cyan: #22f5ff;
  --magenta: #ff23e0;
  --sun-high: #ffd966;
  --sun-low: #ff3d7f;
  --gold: #ffd966;
  --text: #efe8ff;
  --muted: #b3a6d9;
  --dim: #8b7fb4;
  --display: "Neon Display", "Orbitron", ui-sans-serif, system-ui, sans-serif;
  --body: "Exo 2", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 18px;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--sky-top);
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(91, 10, 120, .55), transparent 70%),
    radial-gradient(900px 500px at -10% 40%, rgba(35, 6, 89, .7), transparent 70%);
  color: var(--text);
  font: 400 17px/1.65 var(--body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.15; letter-spacing: .02em; margin: 0 0 .5em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.12rem; letter-spacing: .05em; }
p { margin: 0 0 1em; }
strong { color: #fff; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--cyan); color: #000; padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 0, 31, .78);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; flex-shrink: 0; }
.brand img { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 0 18px rgba(255, 35, 224, .35); }
.wordmark { font-family: var(--display); font-weight: 900; font-size: 1.08rem; letter-spacing: .08em; }
.wordmark .n { color: var(--cyan); text-shadow: 0 0 12px rgba(34, 245, 255, .55); }
.wordmark .b { color: var(--magenta); text-shadow: 0 0 12px rgba(255, 35, 224, .55); }
.nav-links { display: flex; gap: 4px; margin: 0 auto; padding: 0; list-style: none; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; background: rgba(194, 75, 255, .14); }
.nav-tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.lang {
  display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden;
  font-family: var(--display); font-weight: 700; font-size: .78rem; letter-spacing: .08em;
}
.lang a, .lang span { padding: 6px 11px; text-decoration: none; color: var(--muted); }
.lang [aria-current] { background: rgba(194, 75, 255, .3); color: #fff; }
.lang a:hover { color: #fff; }
.nav .btn-play { padding: 9px 16px; font-size: .9rem; white-space: nowrap; }
.nav .btn-play svg { width: 18px; height: 18px; }
@media (max-width: 900px) { .nav-links { display: none; } }
@media (max-width: 480px) {
  .nav { gap: 10px; }
  .wordmark { font-size: .92rem; }
  .nav .btn-play .long { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 13px 22px; border-radius: 14px;
  font: 700 1rem/1.15 var(--body); text-decoration: none; color: #fff;
  border: 1px solid transparent; transition: transform .15s, box-shadow .2s, background .2s;
}
.btn svg { width: 26px; height: 26px; flex-shrink: 0; }
.btn small { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.btn-play {
  background: linear-gradient(135deg, rgba(34, 245, 255, .22), rgba(255, 35, 224, .28));
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px rgba(34, 245, 255, .2) inset, 0 0 26px rgba(34, 245, 255, .28);
}
.btn-play:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(34, 245, 255, .35) inset, 0 0 40px rgba(34, 245, 255, .5); }
.btn-soon { border-color: var(--line-strong); color: var(--muted); background: rgba(255, 255, 255, .03); cursor: default; }
.btn-soon svg { fill: var(--muted); }
.btn-ghost { color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--cyan); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; padding: clamp(40px, 7vw, 88px) 0 0; }
.scene { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 42%, var(--sky-low) 62%, var(--ground) 62%); }
.stars { position: absolute; inset: 0 0 40% 0; opacity: .7;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff, transparent),
    radial-gradient(1px 1px at 28% 8%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 44% 26%, #ffd9fb, transparent),
    radial-gradient(1px 1px at 63% 12%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 78% 30%, #c8fbff, transparent),
    radial-gradient(1px 1px at 91% 9%, #fff, transparent),
    radial-gradient(1px 1px at 7% 40%, #fff, transparent),
    radial-gradient(1px 1px at 55% 40%, #fff, transparent); }
.sun {
  position: absolute; left: var(--sun-x, 50%); top: 62%; width: min(56vw, 520px); aspect-ratio: 1;
  transform: translate(-50%, -62%);
  border-radius: 50%;
  background: linear-gradient(180deg, var(--sun-high) 8%, #ff9a5c 45%, var(--sun-low) 75%);
  -webkit-mask: linear-gradient(180deg, #000 52%, transparent 52% 55%, #000 55% 63%, transparent 63% 67%, #000 67% 74%, transparent 74% 79%, #000 79% 85%, transparent 85%);
          mask: linear-gradient(180deg, #000 52%, transparent 52% 55%, #000 55% 63%, transparent 63% 67%, #000 67% 74%, transparent 74% 79%, #000 79% 85%, transparent 85%);
  filter: drop-shadow(0 0 60px rgba(255, 61, 127, .55));
  opacity: .92;
}
.floor { position: absolute; left: -50%; right: -50%; top: 62%; bottom: 0; perspective: 320px; overflow: hidden; }
.floor::before {
  content: ""; position: absolute; inset: 0 0 -100% 0;
  transform: rotateX(62deg); transform-origin: 50% 0;
  background-image:
    linear-gradient(rgba(194, 75, 255, .75) 2px, transparent 2px),
    linear-gradient(90deg, rgba(194, 75, 255, .55) 2px, transparent 2px);
  background-size: 64px 64px;
  animation: drive 1.1s linear infinite;
  -webkit-mask: linear-gradient(180deg, transparent, #000 18%);
          mask: linear-gradient(180deg, transparent, #000 18%);
}
.horizon { position: absolute; left: 0; right: 0; top: 62%; height: 2px; background: linear-gradient(90deg, transparent, var(--magenta), var(--cyan), transparent); box-shadow: 0 0 22px var(--magenta); }
@keyframes drive { to { background-position: 0 64px, 0 0; } }
@media (prefers-reduced-motion: reduce) { .floor::before { animation: none; } html { scroll-behavior: auto; } }

.hero .scene { --sun-x: 74%; }
@media (max-width: 860px) { .hero .scene { --sun-x: 50%; } }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.eyebrow {
  display: inline-flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none;
}
.eyebrow li {
  padding: 5px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(7, 0, 31, .55); border: 1px solid var(--line-strong); color: var(--text);
}
.hero h1 { margin: 0 0 18px; }
.hero h1 .logo {
  display: block; font-size: clamp(3rem, 9vw, 6.2rem); font-weight: 900; letter-spacing: .04em; line-height: .95;
}
.logo .n { color: var(--cyan); text-shadow: 0 0 18px rgba(34, 245, 255, .7), 0 0 60px rgba(34, 245, 255, .35); }
.logo .b { color: var(--magenta); text-shadow: 0 0 18px rgba(255, 35, 224, .7), 0 0 60px rgba(255, 35, 224, .35); }
.hero h1 .tag {
  display: block; margin-top: 14px; font-size: clamp(1.05rem, 2.3vw, 1.45rem); letter-spacing: .14em;
  color: var(--gold); text-shadow: 0 0 16px rgba(255, 217, 102, .45); text-transform: uppercase;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: #fff; max-width: 34em; margin-bottom: 26px; text-shadow: 0 1px 12px rgba(7, 0, 31, .9); }
.hero-more { margin-top: 18px; font-size: .95rem; color: var(--muted); }
.hero-more a { font-weight: 700; }

.phone {
  position: relative; width: min(300px, 70vw); margin: 0 auto; padding: 10px;
  border-radius: 40px; background: linear-gradient(160deg, #2a0f55, #0c0322);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 0 0 1px rgba(34, 245, 255, .25), 0 30px 80px rgba(0, 0, 0, .6), 0 0 80px rgba(255, 35, 224, .25);
}
.phone img { border-radius: 30px; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.hero .phone { margin-bottom: -40px; transform: rotate(2deg); }
.float {
  position: absolute; font-family: var(--display); font-weight: 900; letter-spacing: .06em;
  padding: 6px 12px; border-radius: 12px; background: rgba(7, 0, 31, .82); border: 1px solid currentColor;
  box-shadow: 0 0 20px currentColor; font-size: .9rem; white-space: nowrap;
}
.float.f1 { top: 16%; left: -14%; color: var(--magenta); transform: rotate(-6deg); }
.float.f2 { top: 46%; right: -12%; color: var(--cyan); transform: rotate(5deg); }
.float.f3 { bottom: 18%; left: -10%; color: var(--gold); transform: rotate(-3deg); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .eyebrow, .cta-row { justify-content: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .float.f1 { left: -4%; } .float.f2 { right: -4%; } .float.f3 { left: -2%; }
}

.stats {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  margin-top: 64px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--line);
}
.stats div { background: rgba(11, 0, 32, .92); padding: 20px 16px; text-align: center; }
.stats b { display: block; font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.2rem); color: #fff; line-height: 1.1; }
.stats span { color: var(--muted); font-size: .9rem; }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Sections ---------- */
section { padding: clamp(64px, 9vw, 112px) 0; }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { display: inline-block; margin-bottom: 10px; font-family: var(--display); font-size: .8rem; font-weight: 700; letter-spacing: .22em; color: var(--magenta); text-transform: uppercase; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.alt { background: linear-gradient(180deg, rgba(35, 6, 89, .35), rgba(11, 0, 32, .2)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.answer {
  border-left: 3px solid var(--cyan); padding: 4px 0 4px 20px; margin: 0 0 32px;
  font-size: 1.15rem; color: #fff; max-width: 52em;
}
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 44%), 1fr)); gap: 12px; margin: 0; }
.facts div { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.facts dt { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.facts dd { margin: 4px 0 0; color: #fff; font-weight: 600; }

.split { display: grid; grid-template-columns: 1fr 320px; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split.flip { grid-template-columns: 320px 1fr; }
.split.flip > :first-child { order: 2; }
@media (max-width: 860px) { .split, .split.flip { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }

.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { position: relative; padding: 18px 20px 18px 74px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 18px; top: 16px; width: 40px; height: 40px; display: grid; place-items: center;
  font-family: var(--display); font-weight: 900; font-size: 1.2rem; color: #000;
  background: linear-gradient(135deg, var(--cyan), var(--magenta)); border-radius: 12px;
}
.steps h3 { margin: 0 0 4px; }
.steps p { margin: 0; color: var(--muted); }

.calls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.calls span { font-family: var(--display); font-weight: 900; font-size: .85rem; letter-spacing: .08em; padding: 5px 11px; border-radius: 10px; border: 1px solid currentColor; }

/* Zones: each card is a little scene in that zone's own colours. */
.zones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .zones { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .zones { grid-template-columns: 1fr; } }
.zone { border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255, 255, 255, .1); background: var(--panel-solid); display: flex; flex-direction: column; }
.zone-art {
  position: relative; height: 150px; overflow: hidden;
  background: linear-gradient(180deg, var(--zt) 0%, var(--zm) 50%, var(--zl) 66%, var(--zg) 66%);
}
.zone-art::before {
  content: ""; position: absolute; left: 50%; top: 66%; width: 120px; height: 120px; transform: translate(-50%, -60%);
  border-radius: 50%; background: linear-gradient(180deg, var(--sh), var(--sl));
  -webkit-mask: linear-gradient(180deg, #000 50%, transparent 50% 55%, #000 55% 64%, transparent 64% 70%, #000 70%);
          mask: linear-gradient(180deg, #000 50%, transparent 50% 55%, #000 55% 64%, transparent 64% 70%, #000 70%);
  filter: drop-shadow(0 0 22px var(--sl));
}
.zone-art::after {
  content: ""; position: absolute; left: 0; right: 0; top: 66%; bottom: 0;
  background:
    linear-gradient(to top left, transparent calc(50% - 2px), var(--le) calc(50% - 1px), var(--le) calc(50% + 1px), transparent calc(50% + 2px)) left / 50% 100% no-repeat,
    linear-gradient(to top right, transparent calc(50% - 2px), var(--re) calc(50% - 1px), var(--re) calc(50% + 1px), transparent calc(50% + 2px)) right / 50% 100% no-repeat;
  filter: drop-shadow(0 0 6px var(--le));
}
.zone-num { position: absolute; top: 10px; left: 12px; z-index: 1; font-family: var(--display); font-weight: 900; font-size: .75rem; letter-spacing: .14em; color: rgba(255, 255, 255, .8); }
.zone-body { padding: 16px 18px 18px; }
.zone h3 { margin: 0; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .1em; }
.zone .rule { display: inline-block; margin: 6px 0 8px; font-family: var(--display); font-size: .74rem; font-weight: 800; letter-spacing: .14em; color: var(--re); }
.zone p { margin: 0; color: var(--muted); font-size: .96rem; }

/* Cars */
.cars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .cars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cars { grid-template-columns: 1fr; } }
.car { position: relative; padding: 20px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.car::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--trim); box-shadow: 0 0 18px var(--trim); }
.car h3 { margin: 0; color: var(--trim); text-shadow: 0 0 14px color-mix(in srgb, var(--trim) 50%, transparent); font-size: 1.25rem; letter-spacing: .1em; }
.car .tagline { margin: 2px 0 12px; font-size: .9rem; color: var(--dim); font-style: italic; }
.car ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: .95rem; }
.car li { padding-left: 26px; position: relative; }
.car li::before { position: absolute; left: 0; top: 0; font-weight: 900; width: 18px; text-align: center; }
.car .gain::before { content: "+"; color: #5bffb0; }
.car .cost::before { content: "−"; color: #ff6b8b; }
.car .even::before { content: "="; color: var(--muted); }
.car .price { margin-top: 12px; font-size: .82rem; color: var(--dim); letter-spacing: .04em; }
.note { margin-top: 22px; color: var(--muted); font-size: .98rem; }

/* Modes */
.modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1000px) { .modes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .modes { grid-template-columns: 1fr; } }
.mode { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.mode figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: #0b0020; }
.mode figure img { width: 100%; object-fit: cover; object-position: 50% 22%; aspect-ratio: 4 / 3; }
.mode div { padding: 16px 18px 20px; }
.mode p { margin: 0; color: var(--muted); font-size: .96rem; }

/* Screens strip */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 240px); gap: 18px; overflow-x: auto; padding: 8px var(--gutter) 22px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.strip figure { margin: 0; scroll-snap-align: center; }
.strip img { border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0, 0, 0, .45); aspect-ratio: 9 / 16; object-fit: cover; }
.strip figcaption { margin-top: 10px; font-size: .9rem; color: var(--muted); text-align: center; }
@media (min-width: 1240px) { .strip { padding-left: calc((100vw - var(--wrap)) / 2 + var(--gutter)); } }

/* Fair play */
.fair { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.fair div { padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.fair h3 { color: var(--cyan); }
.fair p { margin: 0; color: var(--muted); }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.faq details[open] { border-color: var(--line-strong); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; position: relative; font-weight: 700; color: #fff; font-size: 1.04rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font: 900 1.4rem var(--display); color: var(--cyan); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .a { padding: 0 20px 18px; color: var(--muted); }
.faq .a p:last-child { margin: 0; }

/* Download band */
.download { text-align: center; position: relative; overflow: hidden; isolation: isolate; }
.download .scene { top: auto; height: 100%; }
.download h2 { font-size: clamp(2rem, 5vw, 3.4rem); }
.download .cta-row { justify-content: center; margin-top: 26px; }
.download p { color: #fff; font-size: 1.12rem; text-shadow: 0 1px 14px #07001f; }
.download h2 .logo span { text-shadow: 0 0 18px currentColor, 0 2px 24px #07001f; }

/* ---------- Article pages (guide, press, legal) ---------- */
.page-head { padding: clamp(40px, 6vw, 72px) 0 28px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(35, 6, 89, .5), transparent); }
.page-head h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.page-head p { color: var(--muted); font-size: 1.1rem; max-width: 46em; }
.crumbs { margin: 0 0 18px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: .88rem; color: var(--dim); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--dim); }
.crumbs a { color: var(--muted); text-decoration: none; }
.article { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); padding: 44px 0 90px; }
.toc { position: sticky; top: 92px; align-self: start; font-size: .92rem; }
.toc strong { display: block; font-family: var(--display); font-size: .74rem; letter-spacing: .18em; color: var(--dim); margin-bottom: 10px; }
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.toc a { display: block; padding: 5px 10px; border-radius: 8px; text-decoration: none; color: var(--muted); border-left: 2px solid transparent; }
.toc a:hover { color: #fff; border-left-color: var(--magenta); background: rgba(194, 75, 255, .1); }
@media (max-width: 900px) { .article { grid-template-columns: 1fr; } .toc { position: static; } }
.prose { max-width: 760px; min-width: 0; }
.prose section { padding: 0 0 8px; }
.prose h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-top: 1.8em; padding-top: .2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; color: var(--cyan); }
.prose p, .prose li { color: #ddd4f5; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose .meta { color: var(--dim); font-size: .92rem; }
.table-wrap { overflow-x: auto; margin: 1.2em 0 1.6em; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--display); font-size: .74rem; letter-spacing: .12em; color: var(--muted); background: rgba(35, 6, 89, .6); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
td code, .prose code { font-size: .88em; background: rgba(194, 75, 255, .15); padding: 1px 6px; border-radius: 6px; color: #fff; }
.callout { margin: 1.4em 0; padding: 16px 20px; border-radius: 14px; background: rgba(34, 245, 255, .07); border: 1px solid rgba(34, 245, 255, .3); }
.callout p:last-child { margin: 0; }
.tips { counter-reset: tip; list-style: none; padding: 0 !important; }
.tips li { counter-increment: tip; position: relative; padding: 12px 16px 12px 56px; margin-bottom: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.tips li::before { content: counter(tip, decimal-leading-zero); position: absolute; left: 16px; top: 12px; font-family: var(--display); font-weight: 900; color: var(--magenta); }
.assets { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin: 1.2em 0; }
.assets a { display: block; text-decoration: none; color: var(--muted); font-size: .85rem; }
.assets img { border-radius: 12px; border: 1px solid var(--line); margin-bottom: 6px; background: #0b0020; }
.copy-block { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin: .8em 0 1.4em; }
.copy-block p { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; background: #05001a; font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h2 { font-size: .78rem; letter-spacing: .18em; color: var(--dim); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer p { color: var(--muted); margin: 10px 0 0; }
.legal-line { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--dim); font-size: .82rem; }

/* Language suggestion */
.lang-hint {
  position: fixed; left: 50%; bottom: 16px; z-index: 60; transform: translateX(-50%);
  width: min(560px, calc(100% - 32px));
  display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 18px;
  background: rgba(21, 5, 51, .96); border: 1px solid var(--line-strong); border-radius: 14px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, .6); font-size: .95rem;
}
.lang-hint[hidden] { display: none; }
.lang-hint p { margin: 0; flex: 1; }
.lang-hint a { font-weight: 700; }
.lang-hint button { background: none; border: 0; color: var(--muted); font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 4px 8px; }
