@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #0b0b0a;
  --paper: #f1efe7;
  --muted: #a5a397;
  --line: rgba(241, 239, 231, 0.18);
  --acid: #d7ff45;
  --orange: #ff5d2f;
  --mono: "DM Mono", monospace;
  --sans: "Manrope", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--paper);
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    var(--ink);
  background-size: 48px 48px;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
}

::selection { color: var(--ink); background: var(--acid); }

a { color: inherit; text-decoration: none; }

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1380px, calc(100% - 48px));
  margin: 0 auto;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.wordmark { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.mark { width: 12px; height: 12px; background: var(--orange); border-radius: 50%; box-shadow: 0 0 22px var(--orange); }
.repo-link { color: var(--muted); transition: color 160ms ease; }
.repo-link:hover, .repo-link:focus-visible { color: var(--acid); }

.section-shell { width: min(1380px, calc(100% - 48px)); margin: 0 auto; }

.hero {
  min-height: 760px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 0 80px;
}

.kicker, .section-number {
  margin: 0 0 42px;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1, h2 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 0.95;
}

.hero h1 { max-width: 1200px; font-size: clamp(66px, 10vw, 154px); }
.hero h1 em { color: var(--orange); font-style: normal; }
.hero-copy { max-width: 710px; margin: 52px 0 62px auto; color: #c9c7bd; font-size: clamp(20px, 2vw, 29px); line-height: 1.45; }
.hero-meta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta span { padding: 9px 14px; border: 1px solid var(--line); border-radius: 100px; color: var(--muted); font-family: var(--mono); font-size: 11px; text-transform: uppercase; }

.game, .probe, .jagged, .results, .observation { padding: 130px 0; border-top: 1px solid var(--line); }
.game-grid, .jagged-grid, .observation-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 9vw; align-items: start; }
h2 { font-size: clamp(48px, 6.5vw, 96px); }
.game-grid > div:first-child > p, .jagged-grid > div, .observation-grid > div { margin-top: 44px; color: #bbb9b0; }
.game-grid strong, .jagged strong { color: var(--paper); }

.chat { display: grid; gap: 12px; padding-top: 8px; }
.message { width: fit-content; max-width: 84%; padding: 14px 18px; border: 1px solid var(--line); border-radius: 2px 16px 16px 16px; color: #cbc9c0; background: rgba(255, 255, 255, 0.035); }
.message span { display: block; margin-bottom: 5px; color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em; }
.message.human { justify-self: end; border-radius: 16px 2px 16px 16px; color: var(--ink); background: var(--paper); }
.message.human span { color: #6e6d67; }
.message.right { color: var(--ink); background: var(--acid); border-color: var(--acid); font-weight: 700; }
.message.wrong { border-left: 3px solid var(--orange); }

.probe h2 { max-width: 980px; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 72px; }
.cards article { min-height: 320px; padding: 34px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.025); }
.card-index { margin: 0 0 90px; color: var(--orange); font-family: var(--mono); font-size: 12px; }
.cards h3 { margin: 0 0 20px; font-size: clamp(26px, 3vw, 42px); letter-spacing: -0.04em; }
.cards article p:last-child { max-width: 480px; margin-bottom: 0; color: var(--muted); }
blockquote { max-width: 1020px; margin: 100px 0 0 auto; padding: 0; border: 0; color: var(--acid); font-size: clamp(36px, 5vw, 72px); font-weight: 500; letter-spacing: -0.045em; line-height: 1.1; }

.jagged-grid p, .observation-grid p { max-width: 680px; margin-top: 0; margin-bottom: 28px; font-size: 19px; }
.aside { padding: 24px 0 0 26px; border-left: 2px solid var(--orange); color: var(--paper) !important; font-weight: 600; }

.result-head { display: grid; grid-template-columns: 1fr auto; gap: 80px; align-items: end; }
.result-head p { max-width: 650px; margin: 32px 0 0; color: var(--muted); }
.big-stat { text-align: right; }
.big-stat strong { display: block; color: var(--acid); font-size: clamp(100px, 15vw, 220px); font-weight: 600; letter-spacing: -0.09em; line-height: 0.75; }
.big-stat strong span { color: #53534e; font-size: 0.42em; }
.big-stat small { font-family: var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; }
.score-strip { display: grid; grid-template-columns: repeat(3, 1fr); margin: 100px 0 72px; border: 1px solid var(--line); }
.score-strip > div { display: flex; align-items: center; gap: 24px; padding: 28px; border-right: 1px solid var(--line); }
.score-strip > div:last-child { border-right: 0; }
.score-strip strong { color: var(--orange); font-size: 48px; line-height: 1; }
.score-strip span { color: var(--muted); font-family: var(--mono); font-size: 10px; line-height: 1.5; text-transform: uppercase; }

.table-wrap { overflow-x: auto; border-top: 1px solid var(--paper); }
table { width: 100%; min-width: 760px; border-collapse: collapse; font-family: var(--mono); font-size: 12px; }
th, td { padding: 18px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { color: var(--muted); font-weight: 400; text-transform: uppercase; letter-spacing: 0.08em; }
th:not(:first-child), td:not(:first-child) { text-align: right; }
tr.winner { color: var(--acid); background: rgba(215, 255, 69, 0.045); }
tbody tr:not(.winner):hover { background: rgba(255, 255, 255, 0.025); }
.method-note { max-width: 750px; margin: 28px 0 0; color: var(--muted); font-family: var(--mono); font-size: 11px; }
.method-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; }
.method-links a { padding: 9px 13px; border: 1px solid var(--line); color: var(--paper); font-family: var(--mono); font-size: 10px; text-transform: uppercase; }
.method-links a:hover, .method-links a:focus-visible { color: var(--ink); background: var(--acid); border-color: var(--acid); }

.observation { padding-bottom: 180px; }
.site-footer { display: flex; justify-content: space-between; padding: 32px 0 50px; border-top: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: 11px; text-transform: uppercase; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--acid); }

@media (max-width: 800px) {
  body { font-size: 15px; }
  .site-header, .section-shell { width: min(100% - 30px, 1380px); }
  .hero { min-height: 680px; padding-top: 80px; }
  .hero-copy { margin-left: 0; }
  .game, .probe, .jagged, .results, .observation { padding: 90px 0; }
  .game-grid, .jagged-grid, .observation-grid, .result-head { grid-template-columns: 1fr; gap: 52px; }
  .cards { grid-template-columns: 1fr; margin-top: 50px; }
  .cards article { min-height: auto; }
  .card-index { margin-bottom: 52px; }
  .big-stat { text-align: left; }
  .score-strip { grid-template-columns: 1fr; margin-top: 70px; }
  .score-strip > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .score-strip > div:last-child { border-bottom: 0; }
  .site-footer { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
