:root {
  --ice-bg: #0b2946;
  --ice-bg-2: #082038;
  --surface: #123a63;
  --surface-2: #0f3057;
  --frost: #143d68;
  --board-deep: #0a2843;   
  --ink: #eaf4fd;
  --ink-soft: #a7c4e6;
  --ink-faint: #7793ba;
  --blue: #4aa8ec;
  --blue-deep: #7cc3f2;    
  --cyan: #45cfe6;
  --cyan-bright: #8fe6f2;
  --sky: #7cc3f2;
  --line: rgba(122, 178, 240, 0.18);
  --line-2: rgba(122, 178, 240, 0.32);
  --good: #38c9a6;
  --warn: #f0b04a;
  --amber: #f2a341;
  --amber-2: #ffcf94;
  --coral: #ff7d7d;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 9px;
  --shadow: 0 16px 42px rgba(2, 10, 24, 0.52);
  --shadow-sm: 0 5px 16px rgba(2, 10, 24, 0.4);
  --focus-ring: 0 0 0 3px var(--ice-bg), 0 0 0 5px var(--blue);
  --pad: clamp(16px, 4vw, 48px);
  --display: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Consolas", "Courier New", monospace;
  --bg-grad-top: #0c2c4c;
  --bg-grad-mid: #0b2946;
  --bg-grad-btm: #082038;
  --on-cyan: #062033;
  --on-accent: #06263f;
  --on-amber: #4a3110;
  --pure-white: #ffffff;
  --cta-grad-a: #1a5a92;
  --cta-grad-b: #123a63;
  --sq-light: #9ab8d6;
  --sq-dark: #1e3d63;
  --disc-ai-top: #3f5f96;
  --disc-ai-btm: #0d1e3c;
  --c4-frame-top: #1b3c67;
  --c4-frame-btm: #11284a;
  --c4-hole: #0a1f3a;
  --c4-ai-top: #4a6bb0;
  --c4-ai-btm: #15294d;
  --print-paper: #ffffff;
  --print-ink: #111111;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background-color: var(--ice-bg);
  background-image:
    radial-gradient(1000px 540px at 82% -12%, rgba(69, 207, 230, 0.16), transparent 60%),
    radial-gradient(900px 520px at 6% 0%, rgba(74, 168, 236, 0.14), transparent 62%),
    linear-gradient(180deg, var(--bg-grad-top) 0%, var(--bg-grad-mid) 55%, var(--bg-grad-btm) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.66;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue-deep); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.16; margin: 0 0 0.5em; font-weight: 700; letter-spacing: 0.005em; }
p { margin: 0 0 1em; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 8px; }
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--cyan); color: var(--on-cyan); padding: 12px 18px;
  border-radius: 0 0 12px 0; font-weight: 700; z-index: 60; text-decoration: none;
}
.skip-link:focus { left: 0; }
.nax-topbar {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(8, 32, 55, 0.82);
  border-bottom: 1px solid var(--line);
}
.nax-topbar-inner {
  max-width: 1180px; margin: 0 auto; padding: 12px var(--pad);
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.nax-brand {
  display: inline-flex; align-items: center; gap: 11px;
  text-decoration: none; color: var(--ink);
  font-family: var(--display); font-weight: 700; font-size: 1.32rem; letter-spacing: 0.01em;
}
.nax-brandmark { width: 46px; height: 46px; flex: none; object-fit: contain; mix-blend-mode: screen; }
.nax-brand b { color: var(--cyan); }
.nax-nav { margin-left: auto; display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.nax-nav-link {
  color: var(--ink-soft); text-decoration: none; padding: 9px 14px;
  border-radius: 10px; font-weight: 600; font-size: 0.95rem;
  transition: color 0.16s ease, background 0.16s ease;
}
.nax-nav-link:hover, .nax-nav-link[aria-current="page"] { color: var(--sky); background: rgba(74, 168, 236, 0.16); }
.nax-nav-toggle { display: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; cursor: pointer; font: inherit; font-weight: 700; letter-spacing: 0.01em;
  padding: 13px 24px; border-radius: 999px; color: var(--on-accent);
  background: linear-gradient(180deg, var(--cyan), var(--blue));
  text-decoration: none;
  transition: transform 0.14s ease, box-shadow 0.2s ease, filter 0.18s ease;
  box-shadow: 0 8px 22px rgba(11, 62, 110, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 12px 28px rgba(11, 62, 110, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn:active { transform: translateY(1px); }
.btn--accent { background: linear-gradient(180deg, var(--amber-2), var(--amber)); color: var(--on-amber); box-shadow: 0 8px 22px rgba(120, 75, 20, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.btn--ghost {
  background: transparent; color: var(--sky);
  border: 1px solid var(--line-2); box-shadow: none;
}
.btn--ghost:hover { background: rgba(74, 168, 236, 0.14); filter: none; box-shadow: none; }
.btn--sm { padding: 9px 17px; font-size: 0.85rem; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--pad); }
.nax-hero { position: relative; overflow: hidden; padding: clamp(46px, 8vw, 94px) 0 clamp(46px, 8vw, 86px); }
.nax-hero-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 var(--pad);
  display: grid; grid-template-columns: 1.04fr 0.96fr; gap: clamp(28px, 5vw, 56px); align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--sky); background: rgba(69, 207, 230, 0.14);
  border: 1px solid var(--line-2); padding: 7px 15px; border-radius: 999px;
}
.hero-title { font-family: var(--display); font-size: clamp(2.4rem, 6vw, 4.1rem); margin-top: 18px; color: var(--ink); line-height: 1.06; }
.hero-title em { color: var(--cyan); font-style: normal; }
.hero-lede { font-size: clamp(1.03rem, 2vw, 1.2rem); color: var(--ink-soft); max-width: 50ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 26px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.84rem; font-weight: 600; color: var(--ink-soft);
  background: var(--surface); border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px;
}
.hero-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.hero-visual { position: relative; display: grid; place-items: center; }
.hero-showcase { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; width: min(100%, 440px); }
.showpiece {
  position: relative; aspect-ratio: 1 / 1; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line-2); box-shadow: var(--shadow); text-decoration: none;
  background: var(--surface); transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: bob 7s ease-in-out infinite;
}
.showpiece:nth-child(2) { animation-delay: -1.6s; }
.showpiece:nth-child(3) { animation-delay: -3.1s; }
.showpiece:nth-child(4) { animation-delay: -4.7s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.showpiece img { width: 100%; height: 100%; object-fit: cover; display: block; }
.showpiece span {
  position: absolute; left: 10px; bottom: 10px;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink); background: rgba(8, 32, 55, 0.85); padding: 4px 10px; border-radius: 8px; border: 1px solid var(--line-2);
}
.showpiece:hover { transform: translateY(-6px) scale(1.03); box-shadow: var(--shadow), 0 0 26px rgba(69, 207, 230, 0.45); z-index: 2; }
.zone { padding: clamp(38px, 7vw, 74px) 0; }
.zone-head { max-width: 64ch; margin-bottom: 30px; }
.zone-kicker { color: var(--cyan); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.76rem; }
.zone-title { font-family: var(--display); font-size: clamp(1.75rem, 3.6vw, 2.5rem); margin-top: 8px; color: var(--ink); }
.zone-sub { color: var(--ink-soft); font-size: 1.05rem; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 30px); box-shadow: var(--shadow-sm); }
.deck-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 22px; }
.deck-card {
  display: flex; flex-direction: column; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.deck-card:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: var(--shadow), 0 0 0 1px rgba(69, 207, 230, 0.4); }
.deck-card-cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.deck-card-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.deck-card-body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 8px; }
.deck-card-tag { font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.7rem; color: var(--cyan); }
.deck-card-title { font-family: var(--display); font-weight: 700; font-size: 1.34rem; color: var(--ink); }
.deck-card-copy { color: var(--ink-soft); font-size: 0.95rem; }
.deck-card-cta { margin-top: 6px; align-self: flex-start; font-weight: 700; font-size: 0.82rem; color: var(--on-accent); background: linear-gradient(180deg, var(--cyan), var(--blue)); padding: 9px 17px; border-radius: 999px; }
.deck-card:hover .deck-card-cta { filter: brightness(1.06); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; counter-reset: step; padding: 0; }
.steps li { list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 24px 22px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, var(--cyan-bright), var(--blue)); color: var(--on-accent); font-family: var(--display); font-weight: 700; font-size: 1.2rem; margin-bottom: 14px;
  box-shadow: 0 0 16px rgba(69, 207, 230, 0.5);
}
.steps h3 { font-size: 1.1rem; }
.steps p { color: var(--ink-soft); margin: 0; font-size: 0.95rem; }
.fact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.fact { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--cyan); border-radius: var(--radius-md); padding: 20px; }
.fact h3 { font-size: 1.08rem; color: var(--sky); }
.fact p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }
.qa-list { display: grid; gap: 12px; }
.qa { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.qa summary {
  cursor: pointer; padding: 18px 22px; font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: var(--ink);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font-size: 1.5rem; color: var(--cyan); transition: transform 0.2s ease; }
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { padding: 0 22px 20px; margin: 0; color: var(--ink-soft); }
.cta-band { max-width: 1180px; margin: 0 auto; padding: 0 var(--pad); }
.cta-band-inner {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  padding: clamp(26px, 5vw, 46px); text-align: center; color: var(--pure-white);
  border: 1px solid var(--line-2);
  background:
    radial-gradient(600px 220px at 50% -10%, rgba(69, 207, 230, 0.3), transparent 70%),
    linear-gradient(135deg, var(--cta-grad-a) 0%, var(--cta-grad-b) 70%);
  box-shadow: var(--shadow);
}
.cta-band-inner h2 { font-family: var(--display); font-size: clamp(1.5rem, 3.4vw, 2.2rem); color: var(--pure-white); }
.cta-band-inner p { color: var(--ink-soft); max-width: 52ch; margin: 0 auto 20px; }
.nax-foot { border-top: 1px solid var(--line); background: rgba(8, 32, 55, 0.6); margin-top: 44px; }
.nax-foot-grid { max-width: 1180px; margin: 0 auto; padding: clamp(34px, 6vw, 54px) var(--pad) 26px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 34px; }
.foot-brand p { color: var(--ink-soft); max-width: 44ch; font-size: 0.95rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 26px; align-content: start; }
.foot-links a, .foot-privacy-btn {
  color: var(--ink-soft); text-decoration: none; font-size: 0.94rem; padding: 4px 0;
  background: none; border: none; cursor: pointer; font: inherit; text-align: left;
}
.foot-links a:hover, .foot-privacy-btn:hover { color: var(--sky); text-decoration: underline; }
.foot-base {
  max-width: 1180px; margin: 0 auto; padding: 20px var(--pad) 30px;
  border-top: 1px solid var(--line); color: var(--ink-faint); font-size: 0.85rem;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.cookie-dock {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%);
  width: min(920px, calc(100% - 28px)); background: var(--frost);
  border: 1px solid var(--line-2); border-radius: 18px; box-shadow: var(--shadow);
  padding: 22px 24px; z-index: 80;
}
.cookie-dock[hidden] { display: none; }
.cookie-dock h2 { font-family: var(--display); font-size: 1.18rem; margin-bottom: 6px; color: var(--sky); }
.cookie-dock p { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 16px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-panel { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 12px; }
.cookie-panel[hidden] { display: none; }
.cookie-row { display: flex; align-items: flex-start; gap: 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.cookie-row input { margin-top: 4px; width: 20px; height: 20px; accent-color: var(--cyan); flex: none; }
.cookie-row span b { display: block; font-size: 0.98rem; color: var(--ink); }
.cookie-row span small { color: var(--ink-soft); }
.cookie-row input:disabled { opacity: 0.6; }
.doc { max-width: 840px; margin: 0 auto; padding: clamp(34px, 6vw, 64px) var(--pad) 40px; }
.doc h1 { font-family: var(--display); font-size: clamp(1.9rem, 4vw, 2.7rem); color: var(--ink); }
.doc-meta { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 26px; }
.doc h2 { font-family: var(--display); font-size: 1.4rem; margin-top: 2em; color: var(--sky); }
.doc h3 { font-size: 1.1rem; margin-top: 1.5em; color: var(--cyan); }
.doc ul, .doc ol { color: var(--ink-soft); padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc strong { color: var(--ink); }
.doc-callout { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--cyan); border-radius: 12px; padding: 16px 20px; margin: 22px 0; }
.doc-callout strong { color: var(--sky); }
.doc-toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 18px 22px; margin-bottom: 30px; }
.doc-toc ul { list-style: none; padding: 0; columns: 2; gap: 20px; color: var(--sky); margin: 0; }
.doc-toc a { text-decoration: none; }
.doc-toc a:hover { text-decoration: underline; }
.nax-form { display: grid; gap: 16px; max-width: 560px; }
.nax-field { display: grid; gap: 6px; }
.nax-field label { font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.nax-field .req { color: var(--cyan); }
.nax-field input, .nax-field textarea, .nax-field select {
  font: inherit; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line-2);
  border-radius: 12px; padding: 12px 14px; width: 100%;
}
.nax-field textarea { min-height: 130px; resize: vertical; }
.nax-field input:focus, .nax-field textarea:focus, .nax-field select:focus { border-color: var(--cyan); }
.nax-field input[aria-invalid="true"], .nax-field textarea[aria-invalid="true"], .nax-field select[aria-invalid="true"] { border-color: var(--coral); background: rgba(255, 125, 125, 0.1); }
.field-err { color: var(--coral); font-size: 0.85rem; min-height: 1em; font-weight: 600; }
.nax-check { display: flex; gap: 12px; align-items: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.nax-check input { width: 22px; height: 22px; accent-color: var(--cyan); flex: none; margin-top: 2px; }
.nax-check label { font-size: 0.92rem; color: var(--ink-soft); }
.nax-note { border-radius: 12px; padding: 14px 18px; font-weight: 600; margin-top: 6px; }
.nax-note[hidden] { display: none; }
.nax-note.ok { background: rgba(56, 201, 166, 0.16); border: 1px solid var(--good); color: var(--ink); }
.nax-note.warn { background: rgba(240, 176, 74, 0.16); border: 1px solid var(--warn); color: var(--ink); }
.tools-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; margin-left: 6px; }
.chip.on { background: rgba(56, 201, 166, 0.2); color: var(--good); }
.chip.off { background: rgba(240, 176, 74, 0.18); color: var(--warn); }
.pref-stack { display: grid; gap: 14px; margin: 18px 0; }
.play-stage {
  position: relative; overflow: hidden; display: grid; place-items: center; gap: 14px;
  padding: clamp(18px, 4vw, 34px);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line-2); border-radius: var(--radius-md);
  box-shadow: inset 0 0 40px rgba(2, 10, 24, 0.35), var(--shadow-sm);
}
.play-stage::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side at 50% 52%, rgba(69, 207, 230, 0.16), transparent 72%);
  animation: stageGlow 4.5s ease-in-out infinite alternate;
}
.play-stage > * { position: relative; z-index: 1; }
@keyframes stageGlow { from { opacity: 0.55; } to { opacity: 1; } }
.ck-sq.sel .ck-piece { animation: pulseGlow 1.1s ease-in-out infinite alternate; }
@keyframes pulseGlow { from { filter: brightness(1); } to { filter: brightness(1.35); } }
.play-stage.win { animation: stageWin 1.1s ease-out; }
@keyframes stageWin {
  0% { box-shadow: inset 0 0 40px rgba(2, 10, 24, 0.35); }
  30% { box-shadow: inset 0 0 40px rgba(2, 10, 24, 0.2), 0 0 0 3px var(--cyan), 0 0 40px rgba(69, 207, 230, 0.6); }
  100% { box-shadow: inset 0 0 40px rgba(2, 10, 24, 0.35); }
}
.burst { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 6; }
.spark { position: absolute; width: 9px; height: 9px; border-radius: 2px; opacity: 0; will-change: transform, opacity; animation: sparkFly 1s ease-out forwards; }
@keyframes sparkFly {
  0% { transform: translate(0, 0) rotate(0deg) scale(0.6); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) rotate(200deg) scale(1); opacity: 0; }
}
.hud { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; justify-content: center; }
.hud li {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 16px;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft);
  min-width: 82px; text-align: center;
}
.hud b { display: block; font-family: var(--mono); font-size: 1.2rem; color: var(--sky); margin-top: 2px; }
.live { min-height: 1.4em; font-weight: 700; color: var(--sky); text-align: center; }
.stage-hero { max-width: 1000px; margin: 0 auto; padding: 0 var(--pad); }
.stage-banner {
  position: relative; margin-top: clamp(20px, 4vw, 34px); border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line-2); box-shadow: var(--shadow); aspect-ratio: 1000 / 280; display: grid; align-items: end; background: var(--surface-2);
}
.stage-banner-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage-banner-scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(8, 32, 55, 0) 25%, rgba(8, 32, 55, 0.86)); }
.stage-banner-inner { position: relative; z-index: 2; padding: clamp(16px, 3vw, 30px); }
.stage-banner-inner .zone-kicker { color: var(--cyan-bright); }
.stage-banner-inner h1 { margin: 0; font-family: var(--display); color: var(--pure-white); font-size: clamp(1.6rem, 4vw, 2.7rem); text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5); }
.stage-wrap { max-width: 680px; margin: 0 auto; padding: clamp(24px, 4vw, 38px) var(--pad) 20px; display: flex; flex-direction: column; gap: 18px; }
.stage-wrap.wide { max-width: 820px; }
.stage-wrap .game-copy { color: var(--ink-soft); text-align: center; }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 0.9rem; color: var(--ink-soft); }
.crumbs a { color: var(--sky); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.controls-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.switch-deck { max-width: 1000px; margin: 0 auto; padding: 10px var(--pad) clamp(30px, 6vw, 60px); }
.switch-deck h2 { font-family: var(--display); font-size: 1.2rem; color: var(--ink); margin-bottom: 14px; }
.switch-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.switch-chip {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px;
  border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600;
  background: var(--surface); transition: transform 0.2s ease, border-color 0.2s ease;
}
.switch-chip:hover { transform: translateY(-4px); border-color: var(--line-2); }
.switch-chip .thumb { width: 46px; height: 34px; border-radius: 8px; flex: none; overflow: hidden; background: var(--surface-2); }
.switch-chip .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.canvas-frame { border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: inset 0 0 26px rgba(2, 10, 24, 0.5), 0 0 24px rgba(69, 207, 230, 0.2); background: var(--board-deep); line-height: 0; }
.canvas-frame canvas { display: block; width: 100%; height: auto; touch-action: none; image-rendering: crisp-edges; }
.snake-wrap { width: min(88vw, 380px); }
.tetris-wrap { width: min(72vw, 280px); }
.dpad { display: grid; grid-template-columns: repeat(3, 52px); grid-template-rows: repeat(3, 52px); gap: 8px; justify-content: center; }
.dpad button {
  border: 1px solid var(--line-2); background: var(--surface); color: var(--sky); border-radius: 12px;
  font-size: 1.3rem; cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.dpad button:active { background: var(--surface-2); transform: scale(0.94); }
.dpad .up { grid-area: 1 / 2; } .dpad .left { grid-area: 2 / 1; } .dpad .act { grid-area: 2 / 2; font-size: 0.85rem; font-weight: 700; }
.dpad .right { grid-area: 2 / 3; } .dpad .down { grid-area: 3 / 2; }
.checkers-board {
  width: min(92vw, 440px); aspect-ratio: 1 / 1; display: grid;
  grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(8, 1fr);
  border: 3px solid var(--blue-deep); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow), 0 0 26px rgba(69, 207, 230, 0.22);
}
.ck-sq { position: relative; border: none; padding: 0; display: grid; place-items: center; cursor: default; }
.ck-sq.light { background: var(--sq-light); }
.ck-sq.dark { background: var(--sq-dark); cursor: pointer; }
.ck-piece { width: 74%; height: 74%; border-radius: 50%; position: relative; box-shadow: 0 3px 6px rgba(2, 10, 24, 0.5), inset 0 2px 3px rgba(255, 255, 255, 0.4); }
.ck-piece.you { background: radial-gradient(circle at 38% 30%, var(--cyan-bright), var(--blue)); box-shadow: 0 0 13px rgba(69, 207, 230, 0.65), 0 3px 6px rgba(2, 10, 24, 0.5), inset 0 2px 3px rgba(255, 255, 255, 0.5); }
.ck-piece.ai { background: radial-gradient(circle at 38% 30%, var(--disc-ai-top), var(--disc-ai-btm)); }
.ck-piece.king::after { content: "\2605"; position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, 0.92); font-size: 1.1rem; }
.ck-sq.sel { box-shadow: inset 0 0 0 4px var(--cyan-bright); }
.ck-sq.move::before { content: ""; position: absolute; width: 34%; height: 34%; border-radius: 50%; background: rgba(143, 230, 242, 0.7); }
.ck-sq.last { box-shadow: inset 0 0 0 4px rgba(242, 163, 65, 0.6); }
.c4-wrap { display: grid; gap: 8px; width: min(92vw, 420px); }
.c4-drop { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.c4-drop button { border: 1px solid var(--line-2); background: var(--surface); color: var(--sky); border-radius: 8px; padding: 6px 0; cursor: pointer; font-size: 1rem; }
.c4-drop button:hover:not(:disabled) { background: var(--surface-2); }
.c4-drop button:disabled { opacity: 0.4; cursor: default; }
.c4-board { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; background: linear-gradient(180deg, var(--c4-frame-top), var(--c4-frame-btm)); padding: 10px; border-radius: 14px; border: 1px solid var(--line-2); box-shadow: var(--shadow), 0 0 26px rgba(69, 207, 230, 0.22); }
.c4-cell { aspect-ratio: 1 / 1; border-radius: 50%; background: var(--c4-hole); box-shadow: inset 0 3px 7px rgba(2, 10, 24, 0.65); }
.c4-cell.you { background: radial-gradient(circle at 38% 30%, var(--cyan-bright), var(--blue)); box-shadow: 0 0 11px rgba(69, 207, 230, 0.6), inset 0 2px 3px rgba(255, 255, 255, 0.45); }
.c4-cell.ai { background: radial-gradient(circle at 38% 30%, var(--c4-ai-top), var(--c4-ai-btm)); box-shadow: 0 0 9px rgba(74, 107, 176, 0.45), inset 0 2px 3px rgba(255, 255, 255, 0.25); }
.c4-cell.drop-in { animation: dropIn 0.25s ease-out; }
@keyframes dropIn { from { transform: translateY(-40px); opacity: 0.4; } to { transform: translateY(0); opacity: 1; } }
@media (max-width: 900px) {
  .nax-hero-inner { grid-template-columns: 1fr; }
  .nax-foot-grid { grid-template-columns: 1fr; }
  .doc-toc ul { columns: 1; }
}
@media (max-width: 680px) {
  .nax-nav { order: 3; width: 100%; display: none; flex-direction: column; align-items: stretch; gap: 2px; }
  .nax-nav.open { display: flex; }
  .nax-nav-toggle {
    display: inline-flex; margin-left: auto; background: transparent; border: 1px solid var(--line-2);
    color: var(--sky); border-radius: 10px; padding: 9px 13px; cursor: pointer; font: inherit; font-weight: 700;
  }
  .nax-nav-link { padding: 12px 14px; }
  .hero-showcase { width: min(100%, 380px); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
@media print {
  .nax-topbar, .nax-foot, .cookie-dock { display: none !important; }
  body { background: var(--print-paper); color: var(--print-ink); }
  .doc { max-width: 100%; }
}
.form-fineprint {
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.game-help {
  max-width: 860px;
  margin: 0 auto var(--pad);
  padding: clamp(20px, 4vw, 40px);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.game-help h2 {
  font-family: var(--display);
  color: var(--ink);
  margin: 0 0 0.6rem;
}
.game-help h3 {
  font-family: var(--display);
  color: var(--blue-deep);
  margin: 1.8rem 0 0.6rem;
  font-size: 1.1rem;
}
.help-steps, .help-tips {
  color: var(--ink-soft);
  line-height: 1.65;
  padding-left: 1.2rem;
}
.help-steps li, .help-tips li { margin-bottom: 0.5rem; }
.help-steps li::marker { color: var(--cyan); font-weight: 700; }
.help-tips li::marker { color: var(--amber); }
.help-steps b, .help-tips b, .help-controls b { color: var(--ink); }
.help-diagram {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0.5rem 0 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}
.help-controls {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}
.help-controls dt {
  color: var(--cyan-bright);
  font-weight: 700;
  margin-top: 0.9rem;
}
.help-controls dd { margin: 0.2rem 0 0; }
.help-more {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0.4rem 0 0;
}
.help-more-link {
  display: inline-block;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-2);
  background: var(--frost);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}
.help-more-link:hover { background: var(--surface); border-color: var(--blue); }
.help-more-link:focus-visible { outline: none; box-shadow: var(--focus-ring); }
@media (prefers-reduced-motion: reduce) {
  .help-more-link { transition: none; }
}
