/* SpawnScope — public data site
   Layout is data-first: tables and charts are the content, so they get the
   space and the contrast, and everything else stays out of the way. */

:root {
  --paper: #faf9f6;
  --paper-deep: #f1efe9;
  --white: #ffffff;
  --ink: #16171b;
  --muted: #6d6f76;
  --line: #e6e4dd;
  --line-strong: #d5d2c9;
  --blue: #2f66f5;
  --blue-dark: #1c47c4;
  --orange: #f2542d;
  --green: #12a06a;
  --green-deep: #0c7a50;
  --acid: #d8f658;
  --font-display: "Archivo", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --shell: min(1180px, calc(100vw - 40px));
  --radius: 14px;
  --radius-sm: 10px;
  /* Layered, low-opacity shadows read as depth rather than as a drawn
     outline — the hard offset block was the loudest thing on every card. */
  --shadow-sm: 0 1px 2px rgba(22, 23, 27, 0.05), 0 2px 8px rgba(22, 23, 27, 0.04);
  --shadow-md: 0 2px 6px rgba(22, 23, 27, 0.06), 0 12px 28px rgba(22, 23, 27, 0.07);
  --shadow: var(--shadow-md);
  --hard-shadow: var(--shadow-sm);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-display);
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

button {
  font: inherit;
  color: inherit;
}

code {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

/* --- Freshness strip ---------------------------------------------------- */

.signal-line {
  color: #fff;
  background: var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.signal-line__inner {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.signal-line p {
  margin: 0;
}

.signal-line__inner > p:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
}

.signal-dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(25, 169, 116, 0.2);
}

.signal-line__desk {
  display: flex;
  gap: 14px;
  white-space: nowrap;
}

.signal-line__desk span {
  color: var(--acid);
}

/* --- Header ------------------------------------------------------------- */

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 254, 249, 0.96);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand img {
  width: 34px;
  height: 34px;
}

.brand__name {
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -0.045em;
}

.brand__descriptor {
  padding-left: 10px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
  font-weight: 720;
}

.primary-nav a {
  position: relative;
  padding-block: 25px;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 19px;
  left: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.primary-nav a[aria-current="page"] {
  color: var(--blue-dark);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 38px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 0 9px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  height: 2px;
  display: block;
  background: var(--ink);
}

/* --- Hero --------------------------------------------------------------- */

.hero {
  padding-block: clamp(44px, 7vw, 88px) clamp(28px, 4vw, 52px);
}

.hero__copy {
  max-width: 46rem;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow span {
  color: var(--orange);
}

.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(38px, 6.4vw, 74px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.hero h1 em {
  color: var(--blue);
  font-style: normal;
}

.hero__lede {
  margin: 0 0 26px;
  max-width: 40rem;
  color: #33363d;
  font-size: clamp(16px, 1.5vw, 19px);
}

.hero__notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero__notes span {
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
}

/* --- Page head ---------------------------------------------------------- */

.page-head {
  padding-block: clamp(26px, 4vw, 52px) clamp(18px, 2.5vw, 30px);
}

.page-head h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4.6vw, 52px);
  font-weight: 880;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.page-lede {
  margin: 0;
  max-width: 52rem;
  color: #33363d;
  font-size: clamp(15px, 1.3vw, 17px);
}

.page-actions {
  margin: 24px 0 0;
}

.crumbs {
  margin-bottom: 18px;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.crumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--line);
}

.crumbs a {
  display: inline-block;
  padding-block: 6px;
}

.crumbs a:hover {
  color: var(--blue);
}

/* --- Sections ----------------------------------------------------------- */

.section {
  padding-block: clamp(30px, 4vw, 54px);
  border-top: 1px solid var(--line);
}

.section:first-child {
  border-top: 0;
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.section__head h2 {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: clamp(21px, 2.6vw, 30px);
  font-weight: 850;
  letter-spacing: -0.035em;
}

.section__index {
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.section__head .count {
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--paper-deep);
  font-family: var(--font-mono);
  font-size: 12px;
}

.section__more {
  display: inline-block;
  padding-block: 6px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.section__more:hover {
  text-decoration: underline;
}

.section__lede {
  margin: 0 0 22px;
  max-width: 48rem;
  color: var(--muted);
  font-size: 14px;
}

/* --- Cards -------------------------------------------------------------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 16px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: var(--hard-shadow);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.card__title {
  margin: 0;
  font-size: 17px;
  font-weight: 820;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* Stretch the title link over the whole card: a 20px-tall text link is an
   awkward tap target, and the card has no other link to conflict with. */
.card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.card__link:hover .card__title {
  color: var(--blue);
}

.card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
}

.card__genre {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--paper-deep);
  color: var(--muted);
}

.card__players {
  font-weight: 600;
}

.card__deltas {
  display: flex;
  gap: 8px;
  margin: auto 0 0;
}

/* --- Deltas ------------------------------------------------------------- */

.delta {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.delta--up {
  color: var(--green-deep);
  background: rgba(25, 169, 116, 0.14);
}

.delta--down {
  color: #c23a18;
  background: rgba(255, 90, 54, 0.14);
}

.delta--flat,
.delta--none {
  color: var(--muted);
  background: var(--paper-deep);
}

.delta__window {
  font-size: 10px;
  font-weight: 500;
  opacity: 0.75;
}

.delta-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.delta-row > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.delta-row span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.delta-row strong {
  font-size: 22px;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.delta-row small {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

/* --- Verdict ------------------------------------------------------------ */

.verdict {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  margin: 22px 0 0;
  padding: 16px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 15px;
  line-height: 1.55;
}

.verdict__label {
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.verdict--growing {
  border-color: var(--green);
}

.verdict--growing .verdict__label {
  color: #fff;
  background: var(--green-deep);
}

.verdict--cooling,
.verdict--dormant {
  border-color: var(--orange);
}

.verdict--cooling .verdict__label,
.verdict--dormant .verdict__label {
  color: #fff;
  background: #c23a18;
}

.verdict--steady .verdict__label,
.verdict--unknown .verdict__label {
  color: var(--ink);
  background: var(--paper-deep);
}

/* --- Stat tiles --------------------------------------------------------- */

.tile-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
}

.tile__label {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.tile__value {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 880;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.tile__note {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

/* --- Tables ------------------------------------------------------------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: var(--hard-shadow);
}

.data-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table thead th {
  position: sticky;
  top: 0;
  padding: 12px 14px;
  color: #fff;
  background: var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.data-table tbody tr + tr {
  border-top: 1px solid var(--line);
}

.data-table tbody tr:hover {
  background: var(--paper);
}

.data-table th[scope="row"] {
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 750;
  text-align: left;
  letter-spacing: -0.015em;
}

.data-table th[scope="row"] a {
  display: inline-block;
  padding-block: 5px;
}

.data-table th[scope="row"] a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.row__genre {
  display: block;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.data-table td {
  padding: 12px 14px;
  vertical-align: middle;
}

.data-table .num {
  font-family: var(--font-mono);
  font-size: 13px;
  text-align: right;
  white-space: nowrap;
}

.data-table .rank {
  width: 46px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: center;
}

.data-table--history th[scope="row"] {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

/* --- Chart -------------------------------------------------------------- */

.chart {
  margin: 0;
  padding: 20px 20px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: var(--hard-shadow);
}

.chart__svg {
  width: 100%;
  height: clamp(180px, 26vw, 240px);
  display: block;
}

.chart__area {
  fill: rgba(53, 107, 255, 0.12);
  stroke: none;
}

.chart__line {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
  /* The chart stretches to its container, so the stroke must not stretch. */
  vector-effect: non-scaling-stroke;
}

.chart__peak {
  fill: var(--white);
  stroke: var(--muted);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.chart__latest {
  fill: var(--orange);
  stroke: var(--white);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.chart__axis {
  width: 100%;
  height: 22px;
  display: block;
  margin-top: -6px;
  overflow: visible;
}

.chart__tick {
  fill: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.chart__caption {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
}

.chart__caption strong {
  color: var(--ink);
}

.spark {
  width: 100%;
  height: 40px;
  display: block;
}

.spark path {
  fill: none;
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.spark--up path {
  stroke: var(--green);
}

.spark--down path {
  stroke: var(--orange);
}

/* --- Lists, timelines, facts -------------------------------------------- */

.update-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
}

.update-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  padding: 13px 16px;
}

.update-item + .update-item {
  border-top: 1px solid var(--line);
}

.update-item time {
  min-width: 62px;
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.update-item a {
  font-weight: 750;
}

.update-item a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.update-item span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.update-item__players {
  margin-left: auto;
}

.update-log .update-day {
  padding-block: clamp(22px, 3vw, 34px);
  border-top: 1px solid var(--line);
}

.update-day h2 {
  margin: 0 0 14px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.timeline {
  margin: 0;
  padding: 0 0 0 22px;
  list-style: none;
  border-left: 2px solid var(--line);
}

.timeline li {
  position: relative;
  padding-bottom: 18px;
}

.timeline li::before {
  content: "";
  position: absolute;
  top: 7px;
  left: -28px;
  width: 10px;
  height: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--acid);
}

.timeline time {
  display: block;
  font-weight: 780;
  letter-spacing: -0.02em;
}

.timeline span {
  color: var(--muted);
  font-size: 14px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--line);
  overflow: hidden;
}

.facts > div {
  padding: 14px 16px;
  background: var(--white);
}

.facts dt {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.facts dd {
  margin: 4px 0 0;
  font-size: 15px;
  font-weight: 700;
}

.quote {
  margin: 0;
  padding: 18px 22px;
  border-left: 4px solid var(--blue);
  background: var(--white);
  color: #33363d;
  font-size: 15px;
  white-space: pre-line;
}

.source-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.empty {
  margin: 0;
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

/* --- Chips -------------------------------------------------------------- */

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 12px;
  font-weight: 700;
}

.chip:hover {
  border-color: var(--ink);
  background: var(--acid);
}

/* Genres too small to earn their own page still appear, but as plain labels
   so nothing links to a URL that was deliberately not built. */
.chip--static {
  color: var(--muted);
  background: var(--paper-deep);
}

.chip span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
}

/* --- Buttons and links -------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 14px;
  font-weight: 780;
  box-shadow: var(--shadow-sm);
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.button--primary {
  color: #fff;
  background: var(--blue);
}

.text-link {
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- Prose -------------------------------------------------------------- */

.standard {
  max-width: 46rem;
}

.standard--page {
  padding-bottom: clamp(40px, 6vw, 80px);
}

.standard h2 {
  margin: 36px 0 12px;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 850;
  letter-spacing: -0.03em;
}

.standard p,
.standard li {
  color: #33363d;
  font-size: 16px;
}

.standard__lede {
  font-size: clamp(17px, 1.6vw, 20px) !important;
  font-weight: 600;
  color: var(--ink) !important;
}

.standard ul {
  padding-left: 20px;
}

.standard li {
  margin-bottom: 8px;
}

.standard code {
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--paper-deep);
}

.section--standard {
  border-top: 1px solid var(--line);
}

/* --- Footer ------------------------------------------------------------- */

.site-footer {
  margin-top: clamp(50px, 7vw, 90px);
  padding-top: clamp(38px, 5vw, 60px);
  color: rgba(255, 255, 255, 0.82);
  background: var(--ink);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 40px;
}

.site-footer__brand {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 20rem;
}

.site-footer__brand p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.site-footer__brand strong {
  color: #fff;
  font-size: 17px;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}

.site-footer__group h3 {
  margin: 0 0 12px;
  color: var(--acid);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-footer__group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__group li + li {
  margin-top: 2px;
}

.site-footer__group a {
  display: inline-block;
  padding-block: 8px;
  font-size: 13px;
  font-weight: 600;
}

.site-footer__group a:hover {
  color: var(--acid);
}

.site-footer__legal {
  padding-block: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.site-footer__legal p {
  margin: 0 0 6px;
  max-width: 60rem;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.65;
}

/* --- Responsive --------------------------------------------------------- */

@media (max-width: 860px) {
  :root {
    --shell: min(1220px, calc(100vw - 32px));
  }

  .menu-toggle {
    display: flex;
  }

  .primary-nav {
    position: fixed;
    z-index: 90;
    inset: 100px 16px auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
    display: none;
  }

  body.nav-open .primary-nav {
    display: flex;
  }

  .primary-nav a {
    padding: 14px 12px;
    font-size: 15px;
  }

  .primary-nav a + a {
    border-top: 1px solid var(--line);
  }

  .primary-nav a::after {
    display: none;
  }

  .update-item__players {
    margin-left: 0;
  }

  .site-footer__links {
    gap: 32px;
  }
}

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

  * {
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .signal-line,
  .site-footer,
  .menu-toggle {
    display: none;
  }

  body {
    background: #fff;
  }

  .table-wrap,
  .chart,
  .card {
    box-shadow: none;
  }
}

/* --- Codes -------------------------------------------------------------- */

.code-value {
  display: inline-block;
  margin-right: 6px;
  padding: 4px 10px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--acid);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  user-select: all;
}

.data-table .reward {
  max-width: 22rem;
  font-size: 14px;
}

.muted {
  color: var(--muted);
  font-style: italic;
}

.link-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--line);
  overflow: hidden;
}

.link-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 16px;
  background: var(--white);
}

.link-list a {
  font-weight: 720;
}

.link-list a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.link-list span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  white-space: nowrap;
}

/* --- Code cards --------------------------------------------------------- */

.section--codes {
  padding-top: clamp(18px, 2vw, 26px);
}

.code-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.code-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--hard-shadow);
}

/* The code is the button: one tap copies it. */
.code-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--acid);
  cursor: pointer;
  transition: background 140ms ease, transform 120ms ease;
}

.code-copy:hover {
  transform: translateY(-1px);
}

.code-copy:active {
  transform: translateY(1px);
}

.code-copy__value {
  font-family: var(--font-mono);
  font-size: clamp(17px, 4.5vw, 21px);
  font-weight: 600;
  letter-spacing: 0.04em;
  word-break: break-all;
  text-align: left;
}

.code-copy__action {
  flex: 0 0 auto;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.code-copy.is-copied {
  background: var(--green);
}

.code-copy.is-copied .code-copy__action {
  background: var(--green-deep);
}

.code-copy.is-failed {
  background: var(--orange);
}

.code-card__reward {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.4;
}

.code-card__reward--none {
  color: var(--muted);
  font-weight: 500;
  font-style: italic;
}

.code-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: auto 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.code-card__meta div {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.code-card__meta dt {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.code-card__meta dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
}

.code-card--retired .code-copy {
  background: var(--paper-deep);
}

.code-card--retired .code-copy__value {
  text-decoration: line-through;
  opacity: 0.7;
}

/* Single click selects the whole code, so even a blocked clipboard leaves the
   player one keystroke or long-press away from copying it. */
.code-copy__value {
  user-select: all;
  -webkit-user-select: all;
}

.code-copy.is-failed .code-copy__action {
  background: #c23a18;
}

/* =========================================================================
   Refinement pass — quieter chrome, more air, one loud element per screen.
   The code button is the only thing allowed to shout, because copying a code
   is the only thing most visitors came to do.
   ========================================================================= */

/* Freshness strip: information, not a masthead. */
.signal-line {
  color: var(--muted);
  background: var(--paper-deep);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.02em;
}

.signal-line__inner {
  min-height: 34px;
}

.signal-line__inner > p:first-child {
  text-transform: none;
  letter-spacing: 0;
}

.signal-line__desk span {
  color: var(--muted);
}

.signal-dot {
  box-shadow: 0 0 0 3px rgba(18, 160, 106, 0.15);
}

/* Header: lighter, no blur cost. */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(140%) blur(8px);
}

.site-header__inner {
  min-height: 62px;
}

.brand__descriptor {
  display: none;
}

.primary-nav {
  gap: 22px;
  font-size: 14px;
  font-weight: 600;
}

.primary-nav a::after {
  height: 2px;
  bottom: 16px;
  border-radius: 2px;
}

.menu-toggle {
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
}

/* Type: tighter tracking at display sizes, more line height in body copy. */
.page-head h1,
.hero h1 {
  letter-spacing: -0.03em;
}

.page-lede,
.hero__lede {
  color: #43454c;
  line-height: 1.6;
}

.eyebrow {
  letter-spacing: 0.1em;
}

/* Sections breathe more and separate with space, not lines. */
.section {
  border-top: 0;
  padding-block: clamp(26px, 3.4vw, 44px);
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section__head h2 {
  letter-spacing: -0.025em;
}

/* Cards and surfaces */
.card,
.chart,
.table-wrap,
.verdict,
.code-card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.card {
  border-radius: var(--radius);
  padding: 20px;
}

.tile {
  border-radius: var(--radius);
  padding: 18px 20px;
}

/* The one loud element. */
.code-card {
  border-radius: var(--radius);
  padding: 18px;
}

.code-copy {
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--ink);
  box-shadow: none;
  min-height: 60px;
  padding: 12px 16px;
  transition: background 140ms ease, transform 120ms ease;
}

.code-copy__value {
  color: var(--acid);
  font-size: clamp(18px, 4.6vw, 22px);
}

.code-copy__action {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.code-copy:hover {
  background: #24262c;
  transform: none;
}

.code-copy.is-copied {
  background: var(--green-deep);
}

.code-copy.is-copied .code-copy__value {
  color: #fff;
}

.code-copy.is-copied .code-copy__action {
  background: rgba(255, 255, 255, 0.2);
}

.code-copy.is-failed {
  background: var(--orange);
}

.code-copy.is-failed .code-copy__value {
  color: #fff;
}

/* Tables: no heavy chrome, readable rows. */
.table-wrap {
  border-radius: var(--radius);
}

.data-table thead th {
  color: var(--muted);
  background: var(--paper-deep);
  border-bottom: 1px solid var(--line);
  letter-spacing: 0.06em;
}

.data-table tbody tr:hover {
  background: var(--paper-deep);
}

/* Buttons */
.button {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  font-weight: 700;
}

.button--primary {
  border-color: transparent;
  background: var(--blue);
}

.chip {
  border-radius: 999px;
  box-shadow: none;
}

.chip:hover {
  border-color: var(--line-strong);
  background: var(--paper-deep);
}

/* Footer: less black slab, more considered. */
.site-footer {
  color: rgba(255, 255, 255, 0.72);
  background: var(--ink);
}

.site-footer__group a {
  font-weight: 500;
}

.verdict {
  border-radius: var(--radius);
  background: var(--paper-deep);
}

.verdict--growing,
.verdict--cooling,
.verdict--dormant {
  background: var(--white);
}

.empty,
.link-list,
.facts,
.update-list {
  border-radius: var(--radius);
}

/* Keep the freshness strip to a single line on a phone. */
@media (max-width: 620px) {
  .signal-line__extra {
    display: none;
  }

  .signal-line {
    font-size: 10px;
  }
}

/* On a phone the section link wrapped onto its own line, pushing content down
   before the reader had reached any of it. Keep it inline and quiet. */
@media (max-width: 860px) {
  .section__head {
    /* wrap sent the link to its own line, costing a whole row of screen
       before the reader reached any content */
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 12px;
  }

  .section__head h2 {
    flex: 1 1 auto;
    min-width: 0;
    font-size: clamp(19px, 5.2vw, 24px);
  }

  .section__more {
    flex: 0 0 auto;
    padding-block: 4px;
    font-size: 12px;
    white-space: nowrap;
  }

  .section__lede {
    margin-bottom: 16px;
    font-size: 13px;
  }

  .hero__lede {
    font-size: 16px;
  }
}

/* =========================================================================
   Polish pass
   Mood: composed, precise, quick. Everything recedes except the one thing
   the visitor came for. Space does the separating, not lines; motion only
   confirms an action or reveals real data — never decorates.
   ========================================================================= */

:root {
  /* A single spacing scale. Rhythm comes from reusing these, not from
     one-off values chosen per component. */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 36px;
  --space-7: 56px;
  --space-8: 88px;

  /* Two curves only: one for things settling into place, one for
     everything else. */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --fast: 140ms;
  --medium: 260ms;
  --slow: 620ms;
}

/* --- Breathing room ------------------------------------------------------ */

.section {
  padding-block: clamp(var(--space-6), 5vw, var(--space-8));
}

.section__head {
  margin-bottom: var(--space-5);
}

.section__lede {
  margin-bottom: var(--space-6);
  max-width: 46ch;
}

.page-head {
  padding-block: clamp(var(--space-6), 5vw, var(--space-7)) var(--space-5);
}

.page-head h1 {
  margin-bottom: var(--space-4);
  max-width: 20ch;
}

.page-lede {
  max-width: 58ch;
}

.hero {
  padding-block: clamp(var(--space-7), 8vw, 120px) var(--space-6);
}

.hero h1 {
  margin-bottom: var(--space-5);
}

.hero__lede {
  margin-bottom: var(--space-6);
  max-width: 52ch;
}

.standard p,
.standard ul {
  margin-bottom: var(--space-4);
  max-width: 68ch;
}

.standard h2 {
  margin-top: var(--space-7);
  margin-bottom: var(--space-3);
}

.card-grid,
.code-list,
.tile-row {
  gap: var(--space-4);
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

/* --- Transitions --------------------------------------------------------- */

a,
.button,
.chip,
.card,
.code-copy,
.data-table tbody tr {
  transition:
    color var(--fast) var(--ease),
    background-color var(--fast) var(--ease),
    border-color var(--fast) var(--ease),
    box-shadow var(--medium) var(--ease),
    transform var(--medium) var(--ease-out);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(22, 23, 27, 0.05), 0 18px 40px rgba(22, 23, 27, 0.09);
}

.button:hover {
  transform: translateY(-2px);
}

.button:active,
.code-copy:active {
  transform: translateY(0) scale(0.99);
  transition-duration: 60ms;
}

/* Focus is part of the finish, not an afterthought. */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- The one micro-interaction that matters ------------------------------ */

@keyframes code-confirm {
  0% { transform: scale(1); }
  38% { transform: scale(1.025); }
  100% { transform: scale(1); }
}

.code-copy.is-copied {
  animation: code-confirm 420ms var(--ease-out);
}

.code-copy__action {
  transition: background-color var(--fast) var(--ease);
}

/* --- Revealing real data ------------------------------------------------- */

/* The history line draws itself when it first comes into view. It is the one
   piece of information here that nobody else publishes, so it earns a moment
   of attention.

   Only the line animates, and only via stroke-dashoffset whose resting value
   is 0 — i.e. fully drawn. A paused or never-started animation therefore
   shows the complete chart. Fading the other elements in was tried and
   removed: any animation with a hidden first frame freezes there in a
   background tab, where CSS animations do not advance. */
.chart.js-animate .chart__line {
  stroke-dasharray: var(--line-length, 2000);
}

.chart.js-animate.is-visible .chart__line {
  animation: draw-line var(--slow) var(--ease-out);
}

@keyframes draw-line {
  from { stroke-dashoffset: var(--line-length, 2000); }
  to { stroke-dashoffset: 0; }
}

/* --- Anything that moves must be able to not move ------------------------ */

@media (prefers-reduced-motion: reduce) {
  .chart.js-animate .chart__line {
    animation: none !important;
  }

  .code-copy.is-copied {
    animation: none;
  }

  .card:hover,
  .button:hover {
    transform: none;
  }
}

.code-card__label {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.code-card__quote {
  margin: 0;
  padding-left: var(--space-3);
  border-left: 2px solid var(--line-strong);
  color: #43454c;
  font-size: 14px;
  line-height: 1.5;
}

.code-card__quote cite {
  display: block;
  margin-top: var(--space-1);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* --- Game imagery -------------------------------------------------------- */

/* Aspect ratio is fixed by the width/height attributes, so the slot is
   reserved before the file lands and nothing shifts underneath the reader. */
.game-image {
  width: 100%;
  height: auto;
  margin-top: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-deep);
  object-fit: cover;
}

.card .game-image {
  margin: 0 0 var(--space-2);
  border: 0;
  border-radius: var(--radius-sm);
}

.card--imaged {
  padding-top: 14px;
}

/* --- Homepage code hub --------------------------------------------------- */

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: var(--space-4);
}

.hub-code {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.hub-code__game {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.hub-code__game:hover {
  color: var(--blue);
  text-decoration: underline;
}

.hub-code__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* Compact sibling of .code-copy — same job, sized for a grid card. */
.code-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 40px;
  padding: 6px 10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--ink);
  cursor: pointer;
  transition: background var(--fast) var(--ease), transform var(--medium) var(--ease-out);
}

.code-chip:active {
  transform: scale(0.98);
}

.code-chip__value {
  color: var(--acid);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  word-break: break-all;
  user-select: all;
}

.code-chip__action {
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.code-chip.is-copied {
  background: var(--green-deep);
}

.code-chip.is-copied .code-chip__value {
  color: #fff;
}

.code-chip.is-failed {
  background: var(--orange);
}

.hub-code__meta {
  margin: auto 0 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
}
