@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("Archivo-latin-ext.a999e009fdcd.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("Archivo-latin.7150c0ec5ad3.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("Inter-latin-ext.a28eb6d3ccb5.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("Inter-latin.c940764593d0.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --asphalt: #11151c;
  --panel: #1a212c;
  --panel-edge: #2b3542;
  --cream: #f3ead3;
  --cream-dim: #cfc6ab;
  --ink: #141a23;
  --amber: #ffb02e;
  --amber-ink: #231600;
  --signal-red: #ff8a8e;
  --signal-red-deep: #e5484d;
  --leaf: #7bd79a;
  --leaf-deep: #46a86b;
  --muted: #b3bdc9;
  --line: #2e3947;
  --radius: 12px;
  --font-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--asphalt);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-kerning: normal;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1100px 320px at 50% -120px, rgba(255, 176, 46, 0.14), transparent 70%);
}

main, .site-nav, footer { position: relative; }

h1, h2 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 6.4vw, 3.25rem); margin: 0.35em 0 0.3em; }
h2 { font-size: clamp(1.4rem, 4.4vw, 2rem); margin: 0.3em 0 0.35em; }

p { margin: 0 0 0.9em; max-width: 62ch; }

a { color: var(--amber); }
a:hover { color: var(--cream); }

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--amber);
  color: var(--amber-ink);
  font-weight: 600;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0.75rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  max-width: 68rem;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.site-nav .brand {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.site-nav .nav-links { display: flex; gap: 1.25rem; align-items: center; }
.site-nav .nav-links a { text-decoration: none; font-weight: 600; }
.site-nav .nav-links a[hreflang] {
  border: 1px solid var(--panel-edge);
  border-radius: 999px;
  padding: 0.15rem 0.8rem;
}

main {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 0.4em;
}

.game-hero {
  display: grid;
  gap: 1.75rem;
  padding: 2rem 0 2.5rem;
  border-bottom: 1px solid var(--line);
}

.deck strong { color: var(--amber); font-weight: 600; }
.trust { color: var(--muted); font-size: 0.95rem; margin-bottom: 0; }

.control-column { min-width: 0; }

.trial-count {
  min-height: 1.6em;
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--cream-dim);
}

.gantry {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: 15rem;
  background: linear-gradient(var(--panel), #141a24);
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius);
  padding: 1rem;
  overflow: hidden;
}

.gantry::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 1rem;
  height: 0.5rem;
  background: var(--panel-edge);
  border-radius: 999px;
}

.post {
  position: relative;
  z-index: 1;
  width: 3.25rem;
  background: repeating-linear-gradient(var(--panel-edge) 0 10px, #222b37 10px 20px);
  border: 1px solid #3a4656;
  border-radius: 8px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 0.6rem;
}

.post-label {
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-dim);
}

.plate {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: min(11rem, 44%);
  aspect-ratio: 16 / 10;
  margin-top: -3.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  color: var(--ink);
  border: 4px solid var(--ink);
  border-radius: 10px;
  box-shadow: 0 10px 0 rgba(0, 0, 0, 0.35);
  transform: translateX(-50%);
  transition: transform 0.18s ease-out;
}

.plate[hidden] { display: none; }

.plate[data-side="L"] { transform: translateX(calc(-50% - clamp(3rem, 14vw, 7rem))); }
.plate[data-side="R"] { transform: translateX(calc(-50% + clamp(3rem, 14vw, 7rem))); }

.plate-arrow {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 12vw, 4.5rem);
  line-height: 1;
}

.start-button {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  color: var(--amber-ink);
  background: var(--amber);
  border: 3px solid var(--amber-ink);
  border-radius: 999px;
  padding: 0.9rem 2rem;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.4);
}
.start-button:hover { background: var(--cream); }

.choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.choice-button {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  padding: 0.95rem 0.5rem;
  min-height: 3.5rem;
  border-radius: var(--radius);
  border: 2px solid var(--cream);
  background: transparent;
  color: var(--cream);
  cursor: pointer;
}
.choice-button:hover { background: rgba(243, 234, 211, 0.12); }
.choice-button:active { background: var(--amber); border-color: var(--amber); color: var(--amber-ink); }
.choice-button:disabled { opacity: 0.45; cursor: default; }
.choice-button:disabled:hover { background: transparent; }

.keyboard-hint { color: var(--muted); font-size: 0.92rem; margin: 0.7rem 0 0; }

.game-verdict {
  min-height: 1.7em;
  margin: 0.6rem 0 0;
  font-weight: 600;
  font-size: 1.05rem;
}
.game-verdict[data-tone="hit"] { color: var(--leaf); }
.game-verdict[data-tone="miss"] { color: var(--signal-red); }

.game-status { color: var(--muted); margin: 0.2rem 0 0; min-height: 1.5em; }

.marks-section, .summary, .method { padding: 2.25rem 0; border-bottom: 1px solid var(--line); }
.method { border-bottom: none; }

.section-heading p:last-child { color: var(--muted); margin-bottom: 1.25rem; }

.dots {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  max-width: 34rem;
}

.dot {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px dashed var(--panel-edge);
  color: var(--muted);
  font-weight: 600;
  font-size: 1rem;
}
.dot.is-hit { border: 2px solid var(--leaf-deep); background: var(--leaf-deep); color: #0d1a12; }
.dot.is-miss { border: 2px solid var(--signal-red-deep); background: var(--signal-red-deep); color: #20090a; }

.summary-grid {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
}
.summary-grid > div {
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
}
.summary-grid dt {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.summary-grid dd {
  margin: 0.15rem 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  font-variant-numeric: tabular-nums;
}

.summary-sentence { font-size: 1.1rem; }

.summary-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.1rem 0 0.4rem; }
.summary-actions button {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  cursor: pointer;
}
.summary-actions [data-share] {
  background: var(--amber);
  border: 2px solid var(--amber);
  color: var(--amber-ink);
}
.summary-actions [data-reset] {
  background: transparent;
  border: 2px solid var(--cream);
  color: var(--cream);
}
.share-status { color: var(--muted); min-height: 1.5em; }

.method p { color: var(--cream); }
.method strong { font-weight: 600; }

footer {
  max-width: 68rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}
footer p { margin: 0; }

.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem;
}
.error-page main { max-width: 34rem; }
.text-link { font-weight: 600; }

@media (min-width: 60rem) {
  .game-hero { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; }
  .hero-copy { padding-top: 1rem; position: sticky; top: 1rem; }
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .dots { grid-template-columns: repeat(12, 1fr); max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .summary:focus { outline: 3px solid var(--amber); }
}
