/* Sim Racing FOV Calculator. "Pit board": concrete, asphalt ink, timing yellow.
   See DESIGN.md for the colour and type decisions. */

@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/barlow-400-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/barlow-600-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/barlow-condensed-700-latin.woff2") format("woff2");
}

:root {
  --bg: #eceeec;
  --surface: #ffffff;
  --surface-2: #f5f6f5;
  --line: #d3d7d4;
  --line-strong: #a9afab;
  --ink: #16181b;
  --text: #2b2f33;
  --muted: #575e64;
  --yellow: #ffd200;
  --on-yellow: #16181b;
  --yellow-soft: #fff4c2;
  --yellow-ink: #7a5f00;
  --board: #16181b;
  --board-line: #2e3338;
  --board-text: #c9ccc9;
  --board-muted: #9aa1a6;
  --btn: #16181b;
  --on-btn: #ffffff;
  --bad: #b3261e;
  --focus: #16181b;
  --wedge: rgba(255, 210, 0, 0.55);
  --radius: 4px;
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Barlow Condensed", "Arial Narrow", "Barlow", system-ui, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111315;
    --surface: #1a1d20;
    --surface-2: #22262a;
    --line: #2e3338;
    --line-strong: #4a5158;
    --ink: #f1f2ef;
    --text: #d6d9d6;
    --muted: #9ca3a8;
    --yellow: #ffd84d;
    --on-yellow: #111315;
    --yellow-soft: #2c2812;
    --yellow-ink: #ffd84d;
    --board: #0b0c0d;
    --board-line: #2e3338;
    --btn: #ffd84d;
    --on-btn: #111315;
    --bad: #ff8a7a;
    --focus: #ffd84d;
    --wedge: rgba(255, 216, 77, 0.32);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111315;
  --surface: #1a1d20;
  --surface-2: #22262a;
  --line: #2e3338;
  --line-strong: #4a5158;
  --ink: #f1f2ef;
  --text: #d6d9d6;
  --muted: #9ca3a8;
  --yellow: #ffd84d;
  --on-yellow: #111315;
  --yellow-soft: #2c2812;
  --yellow-ink: #ffd84d;
  --board: #0b0c0d;
  --board-line: #2e3338;
  --btn: #ffd84d;
  --on-btn: #111315;
  --bad: #ff8a7a;
  --focus: #ffd84d;
  --wedge: rgba(255, 216, 77, 0.32);
  color-scheme: dark;
}

/* ---------- base ---------- */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: rgba(255, 210, 0, 0.25); }
button, a, input, select, summary, label.seg { touch-action: manipulation; }
[id] { scroll-margin-top: 16px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--font);
  font-variant-numeric: tabular-nums;
  overflow-wrap: break-word;
}
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: 0.005em;
  text-wrap: balance;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.25rem); }
h2 { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.125rem); margin-top: 0; }
h3 { font-size: 1.375rem; }
p { margin: 0 0 1em; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--yellow); text-decoration-thickness: 3px; }
strong { color: var(--ink); font-weight: 600; }
code, kbd {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.05em 0.35em;
}
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--yellow); color: var(--on-yellow); padding: 10px 14px; font-weight: 600;
  border-radius: var(--radius); text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.header-row { display: flex; align-items: center; gap: 20px; min-height: 60px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: var(--ink); letter-spacing: 0.01em;
}
.brand svg { width: 30px; height: 30px; flex: none; }
.nav { display: flex; gap: 18px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; font-size: 0.95rem; color: var(--muted); padding: 6px 0; }
.nav a:hover { color: var(--ink); }
.theme-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); padding: 2px; gap: 2px; }
.theme-toggle button {
  display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 3px;
  background: transparent; color: var(--muted); cursor: pointer;
}
.theme-toggle button svg { width: 16px; height: 16px; }
.theme-toggle button:hover { color: var(--ink); background: var(--surface-2); }
.theme-toggle button[aria-pressed="true"] { background: var(--yellow); color: var(--on-yellow); }

/* ---------- intro ---------- */
.intro { padding: 36px 0 24px; }
.intro p { max-width: 60ch; font-size: 1.0625rem; }
.crumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }
.updated { font-size: 0.9rem; color: var(--muted); }
.updated strong { color: var(--text); }

/* ---------- tool ---------- */
.tool { scroll-margin-top: 16px; }
.tool-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.rig-form { padding: 22px 24px 24px; border-right: 1px solid var(--line); display: grid; gap: 18px; align-content: start; }
.group { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; min-width: 0; }
.group + .group { border-top: 1px solid var(--line); padding-top: 18px; }
.group legend {
  font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--ink);
  padding: 0; margin-bottom: 12px; float: left; width: 100%;
}
.group legend + * { clear: both; }
.field { display: grid; gap: 6px; min-width: 0; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.seg-row { display: grid; grid-template-columns: 3fr 2fr; gap: 12px; }
.field label, .label { font-weight: 600; font-size: 0.875rem; color: var(--ink); }
.help { font-size: 0.85rem; color: var(--muted); margin: 0; line-height: 1.45; }
.error { font-size: 0.85rem; color: var(--bad); margin: 0; font-weight: 600; }
.input-unit { display: flex; align-items: stretch; }
input[type="number"], input[type="text"], select {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  min-height: 44px; padding: 8px 12px; width: 100%; min-width: 0;
}
select {
  appearance: none; padding-right: 36px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.input-unit input { border-radius: var(--radius) 0 0 var(--radius); }
.unit-tag {
  display: grid; place-items: center; min-width: 46px; padding: 0 10px;
  border: 1px solid var(--line-strong); border-left: 0; border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface-2); color: var(--muted); font-weight: 600; font-size: 0.9rem;
}
input:hover, select:hover { border-color: var(--muted); }
input[aria-invalid="true"] { border-color: var(--bad); box-shadow: inset 0 0 0 1px var(--bad); }
input:focus-visible, select:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }

.segs { display: flex; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 3px; gap: 3px; background: var(--surface-2); }
.seg { flex: 1; position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span {
  display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 4px 10px;
  border-radius: 3px; font-weight: 600; font-size: 0.95rem; color: var(--muted); text-align: center; line-height: 1.2;
}
.seg input:hover + span { color: var(--ink); }
.seg input:checked + span { background: var(--yellow); color: var(--on-yellow); }
.seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 1px; }

/* Result board */
.board {
  background: var(--board); color: var(--board-text); padding: 22px 24px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.board-inner { display: grid; gap: 16px; position: sticky; top: 16px; }
.board.is-stale #board-live { opacity: 0.4; filter: grayscale(1); }
.board-game { border: 1px solid var(--board-line); background: #202327; padding: 12px 14px; display: grid; gap: 2px; }
.board-game p { margin: 0; }
.board-game-name { font-size: 0.85rem; font-weight: 600; color: #ffffff; }
.board-game-val .val { font: 700 clamp(2.4rem, 1.8rem + 2vw, 3.2rem) / 1 var(--font-head); color: #ffd200; }
.board-game-val .val small { font: 600 0.9rem var(--font); color: var(--board-muted); margin-left: 6px; }
.board-game-path { font-size: 0.85rem; color: var(--board-muted); }
.board-flag { font-size: 0.85rem; color: #ffb4a8; font-weight: 600; }
.figure.is-small dd { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); padding-top: 0.35em; }
.board-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.board-title { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: #ffffff; margin: 0; }
.board-sub { font-size: 0.85rem; color: var(--board-muted); margin: 0; }
.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--board-line); border: 1px solid var(--board-line); }
.figure { background: var(--board); padding: 12px 12px 10px; margin: 0; min-width: 0; }
.figure dt { font-size: 0.8rem; font-weight: 600; color: var(--board-muted); line-height: 1.25; }
.figure dd { margin: 4px 0 0; font-family: var(--font-head); font-weight: 700; font-size: clamp(2.2rem, 1.6rem + 2vw, 3.1rem); line-height: 1; color: var(--yellow); }
.figure dd small { font-family: var(--font); font-weight: 400; font-size: 0.8rem; color: var(--board-muted); display: block; margin-top: 6px; line-height: 1.3; }
.rig { width: 100%; height: auto; max-height: 250px; display: block; background: #1f2226; border-radius: 3px; }
.rig-wedge { fill: rgba(255, 210, 0, 0.3); }
.rig-ray { stroke: #ffd200; stroke-width: 1; stroke-dasharray: 3 4; }
.rig-arc { fill: none; stroke: #ffd200; stroke-width: 1.5; }
.rig-panel { fill: none; stroke: #ffffff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.rig-frame { fill: none; stroke: #7d858c; stroke-width: 5; stroke-linejoin: round; }
.rig-head, .rig-nose { fill: #ffffff; }
.rig-label { fill: #ffffff; font: 700 17px var(--font-head); }
.board-note { font-size: 0.85rem; color: var(--board-muted); margin: 0; }
.board-error { color: #ffb4a8; font-weight: 600; margin: 0; }
.board-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 16px;
  font: 600 0.95rem var(--font); border-radius: var(--radius); cursor: pointer; text-decoration: none;
  border: 1px solid transparent;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-yellow { background: #ffd200; color: #16181b; }
.btn-yellow:hover { background: #ffe14d; }
.btn-ghost { background: transparent; color: #ffffff; border-color: #4a5158; }
.btn-ghost:hover { border-color: #9aa1a6; }
.board .btn:focus-visible { outline-color: #ffd200; }

.toast { margin: 0; font-size: 0.9rem; color: #ffffff; display: flex; align-items: center; gap: 10px; }
.toast-undo {
  font: 600 0.9rem var(--font); color: #ffd200; background: none; border: 0; padding: 4px 2px;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.toast-undo:focus-visible { outline: 3px solid #ffd200; outline-offset: 2px; }

/* Peek bar, phones only */
.peek { display: none; }
@media (max-width: 900px) {
  html { scroll-padding-bottom: 84px; }
  .peek {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 5;
    display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: var(--radius);
    background: #16181b; color: #c9ccc9; text-decoration: none; font-size: 0.85rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25); border: 1px solid #2e3338;
    transform: translateY(150%); transition: transform 0.2s ease;
  }
  .peek.is-on { transform: none; }
  .peek b { font: 700 1.25rem var(--font-head); color: #ffd200; margin-right: 3px; }
  .peek-go { margin-left: auto; font-weight: 600; color: #ffffff; }
}

/* Game table */
.games { margin-top: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.games-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; padding: 18px 24px 12px; border-bottom: 1px solid var(--line); }
.games-head h2 { font-size: 1.5rem; margin: 0; }
.games-head p { margin: 0; font-size: 0.9rem; color: var(--muted); }
.game-table { width: 100%; border-collapse: collapse; }
.game-table th, .game-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.game-table th:first-child, .game-table td:first-child { padding-left: 24px; }
.game-table th:last-child, .game-table td:last-child { padding-right: 24px; }
.game-table thead th { font-size: 0.8rem; font-weight: 600; color: var(--muted); background: var(--surface-2); }
.game-table tbody tr:last-child td, .game-table tbody tr:last-child th { border-bottom: 0; }
.game-table tbody th { font-weight: 600; color: var(--ink); }
.game-table tbody th a { text-decoration: underline; text-decoration-color: var(--line-strong); }
.game-table tbody th a:hover { text-decoration: underline; }
.game-table .level { display: block; margin-top: 2px; font-size: 0.78rem; font-weight: 400; color: var(--muted); }
.game-table .level::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; background: var(--ink); }
.game-table .level-community::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink); }
.game-table .level-estimate::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); border-radius: 1px; }
.game-table .val { font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; line-height: 1.1; color: var(--ink); white-space: nowrap; }
.game-table .val small { font-family: var(--font); font-size: 0.85rem; font-weight: 600; color: var(--muted); margin-left: 4px; }
.game-table .setting { color: var(--text); font-size: 0.95rem; }
.game-table .setting span { display: block; color: var(--muted); font-size: 0.85rem; }
.game-table .flag { display: block; font-size: 0.85rem; color: var(--bad); font-weight: 600; margin-top: 2px; }
.game-table .flag.is-ok { color: var(--muted); font-weight: 400; }
.game-table tr.is-focus { background: var(--yellow-soft); }
.game-table tr.is-focus th > a::after, .game-table tr.is-focus th > .name::after {
  content: "This page"; display: inline-block; margin-left: 8px; padding: 1px 6px; border-radius: 3px;
  background: var(--yellow); color: var(--on-yellow); font-size: 0.72rem; font-weight: 600; vertical-align: 2px;
}
.games-foot { padding: 12px 24px 16px; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); margin: 0; }

/* ---------- content ---------- */
.section { padding: 56px 0 0; }
.section > .wrap > * { max-width: 760px; }
.section > .wrap > p, .section > .wrap > ul, .section > .wrap > ol, .unofficial { max-width: 66ch; }
.section > .wrap > .wide { max-width: none; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--muted); }
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 12px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; margin: 0; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 3px;
  background: var(--ink); color: var(--bg); font: 700 1rem var(--font-head);
}
.figure-box { margin: 8px 0 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.figure-box svg { width: 100%; max-width: 560px; height: auto; display: block; }
.figure-box figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 10px; }
.dg-screen { stroke: var(--ink); stroke-width: 6; stroke-linecap: round; }
.dg-wedge { fill: var(--wedge); }
.dg-wedge-bad { fill: none; stroke: var(--bad); stroke-width: 1.5; stroke-dasharray: 6 4; }
.dg-ink { fill: var(--ink); }
.dg-label { font: 700 24px var(--font-head); fill: var(--ink); }
.dg-label.dg-bad { fill: var(--bad); }

.data-wrap { overflow-x: auto; margin: 0 0 1.2em; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.data-table th, .data-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table thead th { background: var(--surface-2); font-size: 0.8rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
.data-table tbody tr:last-child > * { border-bottom: 0; }
.data-table tbody th { color: var(--ink); font-weight: 600; }
.data-table td.num { white-space: nowrap; }

.callout {
  border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius);
  padding: 14px 18px; margin: 0 0 1.2em; font-size: 0.95rem;
}
.callout strong { background: var(--yellow); color: var(--on-yellow); padding: 1px 6px; border-radius: 3px; margin-right: 4px; }
.callout p:last-child { margin-bottom: 0; }
.example { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 0 0 1.2em; }
.example h3 { margin-bottom: 8px; }
.example dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0 0 10px; }
.example dt { color: var(--muted); font-size: 0.9rem; }
.example dd { margin: 0; color: var(--ink); font-weight: 600; }

.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 16px 32px 16px 0; font-weight: 600; color: var(--ink); list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--muted); }
.faq summary:hover::after { border-color: var(--ink); }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 0.15s;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { margin: 0 0 16px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; }
.cards a {
  display: block; height: 100%; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); text-decoration: none; box-sizing: border-box;
}
.cards a:hover { border-color: var(--ink); }
.cards strong { display: block; font-family: var(--font-head); font-size: 1.2rem; }
.cards span { display: block; font-size: 0.9rem; color: var(--muted); margin-top: 2px; }

.unofficial { font-size: 0.9rem; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { margin-top: 72px; border-top: 1px solid var(--line); background: var(--surface); padding: 28px 0; font-size: 0.9rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; align-items: flex-start; }
.site-footer p { margin: 6px 0 0; color: var(--muted); max-width: 60ch; }
.site-footer nav { display: flex; gap: 18px; }
.site-footer nav a { color: var(--muted); }

/* ---------- legal pages ---------- */
.legal { padding: 40px 0 0; }
.legal .wrap > * { max-width: 720px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .tool-grid { grid-template-columns: 1fr; }
  .rig-form { border-right: 0; border-bottom: 1px solid var(--line); }
  .board { border-radius: 0 0 var(--radius) var(--radius); }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .header-row { gap: 12px; }
  .brand { font-size: 1.05rem; white-space: nowrap; gap: 8px; }
  .brand svg { width: 26px; height: 26px; }
  .theme-toggle { margin-left: auto; }
  .theme-toggle button { width: 36px; height: 36px; }
  .seg span { min-height: 42px; }
  .figure.is-small dd { font-size: 1.25rem; }
  .intro { padding: 24px 0 18px; }
  .intro p { font-size: 1rem; }
  .rig-form, .board { padding: 18px 16px; }
  .figure { padding: 10px 8px; }
  .figure dt { font-size: 0.72rem; }
  .games-head { padding: 16px; }
  .game-table thead { display: none; }
  .game-table, .game-table tbody, .game-table tr, .game-table th, .game-table td { display: block; }
  .game-table tr { padding: 12px 16px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; }
  .game-table tbody tr:last-child { border-bottom: 0; }
  .game-table th, .game-table td, .game-table th:first-child, .game-table td:first-child, .game-table td:last-child { padding: 0; border: 0; }
  .game-table .val { grid-column: 2; grid-row: 1 / span 2; text-align: right; }
  .game-table .setting { grid-column: 1; }
  .game-table td.range { grid-column: 1 / -1; font-size: 0.85rem; color: var(--muted); }
  .games-foot { padding: 12px 16px; }
  .section { padding-top: 44px; }
  .example dl { grid-template-columns: 1fr; gap: 0; }
  .example dd { margin-bottom: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
