/* ==========================================================================
   Mottle Game Guide — core stylesheet
   Single stylesheet for all pages. No frameworks, no external fonts.
   ========================================================================== */

/* ---------- design tokens ---------- */
:root {
  /* Mottle Nocturne: near-black arena, firefly amber, six mottled tile colours */
  --bg: #0b110d;
  --bg-soft: #101812;
  --panel: #131c16;
  --panel-2: #1b2b21;
  --line: rgba(214, 226, 204, 0.13);
  --line-strong: rgba(214, 226, 204, 0.27);
  --ink: #f2efe4;
  --ink-soft: #cfd8c9;
  --muted: #93a191;
  --accent: #ffd36a;
  --accent-deep: #e8b94d;
  --camo: #6fe0b0;
  --amber: #ffd36a;
  --coral: #ff7a5c;
  --violet: #b39ac4;
  --tile-moss: #3f6a4b;
  --tile-clay: #a9663c;
  --tile-slate: #6f7a8f;
  --tile-heather: #6b4d76;
  --tile-sand: #c7ab68;
  --tile-pond: #3d6f83;
  --radius: 16px;
  --radius-sm: 10px;
  --wrap: 1160px;
  --prose: 68ch;
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.85);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 520px at 78% -8%, rgba(255, 211, 106, 0.16), transparent 62%),
    radial-gradient(700px 420px at 6% 8%, rgba(168, 138, 184, 0.07), transparent 60%),
    var(--bg);
}

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

img {
  height: auto;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #ffe9a8;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  line-height: 1.12;
  letter-spacing: -0.022em;
  font-weight: 680;
}

h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.15rem);
  letter-spacing: -0.035em;
  margin-bottom: 0.5em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.15rem);
}

h3 {
  font-size: clamp(1.1rem, 1.8vw, 1.28rem);
}

p {
  margin: 0 0 1.1em;
}

ul,
ol {
  margin: 0 0 1.2em;
  padding-left: 1.15em;
}

li {
  margin: 0.4em 0;
}

strong {
  color: #f7f2e4;
  font-weight: 640;
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: rgba(255, 211, 106, 0.1);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.1em 0.4em;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.5rem 0;
}

::selection {
  background: var(--accent);
  color: #0a100c;
}

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

/* ---------- layout helpers ---------- */
.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.section {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.section--tight {
  padding-block: clamp(2rem, 4vw, 3rem);
}

.section-head {
  max-width: 62ch;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.section-head p {
  color: var(--muted);
  margin-bottom: 0;
  font-size: 1.05rem;
}

.eyebrow {
  position: relative;
  display: inline-block;
  padding-left: 26px;
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.lede {
  font-size: clamp(1.02rem, 1.5vw, 1.1rem);
  color: var(--ink-soft);
  max-width: 54ch;
}

.micro {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0.9rem 0 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -60px;
  z-index: 100;
  padding: 0.7rem 1.1rem;
  border-radius: 8px;
  background: var(--accent);
  color: #0a100c;
  font-weight: 700;
  transition: top 0.18s ease;
}

.skip-link:focus {
  top: 1rem;
  color: #0a100c;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 17, 13, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
}

.brand:hover {
  color: var(--ink);
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.brand span small {
  display: block;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.2;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav a {
  display: inline-block;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 550;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--ink);
  background: rgba(246, 242, 230, 0.05);
}

.nav a[aria-current="page"] {
  color: var(--accent);
  background: rgba(255, 211, 106, 0.1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  place-items: center;
}

.nav-toggle:hover {
  border-color: var(--line-strong);
  background: rgba(246, 242, 230, 0.04);
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #0a100c;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  background: #ffe08a;
  color: #0a100c;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -14px var(--accent);
}

.btn:active {
  transform: translateY(0);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn--ghost:hover {
  background: rgba(246, 242, 230, 0.06);
  border-color: rgba(214, 226, 204, 0.5);
  color: var(--ink);
  box-shadow: none;
}

.btn--sm {
  min-height: 38px;
  padding: 0.45rem 0.95rem;
  font-size: 0.84rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 1.05rem 0 0;
  list-style: none;
}

.chips li {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  background: rgba(246, 242, 230, 0.02);
}

/* ---------- hero ---------- */
.hero {
  padding-block: clamp(1rem, 1.8vw, 1.4rem) 0.5rem;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.75fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}

.hero h1 span {
  color: var(--accent);
}

.hero .lede {
  margin-top: 0.85rem;
}

.facts {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 211, 106, 0.09), rgba(22, 34, 26, 0.5) 55%);
  padding: 1.3rem 1.35rem;
  box-shadow: var(--shadow);
}

.facts__label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 650;
  margin-bottom: 0.9rem;
}

.facts__label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 211, 106, 0.15);
}

.facts dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.55rem 1rem;
  margin: 0;
  font-size: 0.88rem;
}

.facts dt {
  color: var(--muted);
}

.facts dd {
  margin: 0;
  font-weight: 650;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.facts a {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* ---------- game frame ---------- */
.game-section {
  padding-block: clamp(0.5rem, 2vw, 1rem) clamp(2.5rem, 5vw, 4rem);
}

.game-frame {
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  overflow: hidden;
  background: #080e0b;
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 1), 0 0 0 1px rgba(0, 0, 0, 0.4);
}

.game-frame__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.65rem 0.55rem 1rem;
  background: #121c16;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.game-frame__title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--ink);
  min-width: 0;
}

.game-frame__title .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.game-frame__title small {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-tools {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.tool {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 34px;
  padding: 0.3rem 0.65rem;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 550;
  cursor: pointer;
  text-decoration: none;
}

.tool:hover {
  background: rgba(246, 242, 230, 0.06);
  color: var(--ink);
  border-color: var(--line);
}

.tool svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.tool[hidden] {
  display: none;
}

.game-stage {
  position: relative;
  width: 100%;
  height: clamp(420px, 56vh, 600px);
  background: #0a100c;
  overflow: hidden;
}

.game-stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 2;
}

.game-poster {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  border: 0;
  width: 100%;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: center;
  overflow: hidden;
}

.game-poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
  filter: saturate(1.05);
  transition: transform 0.6s ease, opacity 0.3s ease;
}

.game-poster:hover img {
  transform: scale(1.02);
  opacity: 0.72;
}

.game-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(62% 62% at 50% 45%, rgba(10, 16, 12, 0.12), rgba(10, 16, 12, 0.8));
}

.game-poster__inner {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 0.9rem;
}

.play-orb {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--accent);
  color: #0a100c;
  box-shadow: 0 18px 40px -16px rgba(255, 211, 106, 0.7);
  transition: transform 0.2s ease;
}

.game-poster:hover .play-orb {
  transform: scale(1.06);
}

.play-orb svg {
  width: 30px;
  height: 30px;
  margin-left: 4px;
}

.game-poster__title {
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f7f2e4;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

.game-poster__sub {
  font-size: 0.86rem;
  color: var(--ink-soft);
  max-width: 34ch;
}

.game-status {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1rem;
  padding: 1.5rem;
  text-align: center;
  background: rgba(10, 16, 12, 0.94);
}

.game-status[hidden] {
  display: none;
}

.spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid rgba(255, 211, 106, 0.2);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.game-status p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  max-width: 44ch;
}

.game-status h3 {
  margin: 0;
  font-size: 1.1rem;
}

.game-status .btn-row {
  margin-top: 0.2rem;
  justify-content: center;
}

.play-hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.9rem 0 0;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.play-hint::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  flex: none;
}

/* ---------- cards & grids ---------- */
.grid {
  display: grid;
  gap: 1rem;
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(170deg, rgba(246, 242, 230, 0.035), rgba(246, 242, 230, 0.012));
  padding: 1.35rem 1.4rem;
}

.card h3 {
  margin-bottom: 0.45rem;
}

.card p:last-child {
  margin-bottom: 0;
}

.card p {
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.card__num {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(255, 211, 106, 0.12);
  border: 1px solid rgba(255, 211, 106, 0.25);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.85rem;
}

.card__kicker {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.9rem;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.card-link::after {
  content: "\2192";
  transition: transform 0.15s ease;
}

.card-link:hover::after {
  transform: translateX(3px);
}

/* ---------- prose ---------- */
.prose {
  max-width: var(--prose);
}

.prose h2 {
  margin-top: 2.4rem;
}

.prose h3 {
  margin-top: 1.9rem;
}

.prose > p,
.prose > ul,
.prose > ol {
  color: var(--ink-soft);
}

.prose > h2:first-child,
.prose > h3:first-child {
  margin-top: 0;
}

.prose a {
  font-weight: 550;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.split--top {
  align-items: start;
}

figure {
  margin: 0;
}

figure img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: #0a100c;
}

figcaption {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- callouts ---------- */
.callout {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(255, 211, 106, 0.06);
  padding: 1rem 1.15rem;
  margin: 1.5rem 0;
  font-size: 0.94rem;
  color: var(--ink-soft);
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout strong {
  color: var(--accent);
}

.callout--warn {
  border-left-color: var(--amber);
  background: rgba(255, 211, 106, 0.06);
}

.callout--warn strong {
  color: var(--amber);
}

.callout--note {
  border-left-color: var(--violet);
  background: rgba(168, 138, 184, 0.06);
}

.callout--note strong {
  color: var(--violet);
}

/* ---------- tables ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 1.5rem 0;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 520px;
}

caption {
  text-align: left;
  padding: 0.9rem 1rem 0.7rem;
  font-size: 0.8rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

th,
td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

thead th {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
  background: rgba(246, 242, 230, 0.025);
}

tbody th {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

td {
  color: var(--ink-soft);
}

.kbd {
  display: inline-block;
  padding: 0.12em 0.45em;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  background: rgba(246, 242, 230, 0.06);
  font-family: var(--mono);
  font-size: 0.82em;
  color: var(--ink);
  white-space: nowrap;
}

/* ---------- faq ---------- */
.faq {
  border-top: 1px solid var(--line);
  margin-top: 0.5rem;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover {
  color: var(--accent);
}

.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: 1px solid var(--line);
  color: var(--accent);
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 0.2s ease, background 0.2s ease;
}

.faq details[open] summary::after {
  content: "\2212";
  background: rgba(255, 211, 106, 0.12);
}

.faq details > div {
  padding: 0 0 1.2rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 68ch;
}

.faq details > div p:last-child {
  margin-bottom: 0;
}

/* ---------- breadcrumbs ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding: 1.1rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  list-style: none;
  margin: 0;
}

.crumbs li {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.crumbs li + li::before {
  content: "/";
  color: var(--line-strong);
}

.crumbs a {
  color: var(--muted);
  text-decoration: none;
}

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

.crumbs [aria-current="page"] {
  color: var(--ink-soft);
}

/* ---------- page hero ---------- */
.page-hero {
  padding-block: 0.5rem clamp(1.5rem, 3vw, 2.5rem);
}

.page-hero h1 {
  max-width: 24ch;
  margin-bottom: 0.9rem;
}

.page-hero .lede {
  max-width: 60ch;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 1.3rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.page-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.page-meta strong {
  color: var(--ink-soft);
  font-weight: 600;
}

/* ---------- next steps ---------- */
.next-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.next {
  display: block;
  padding: 1.25rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  background: rgba(246, 242, 230, 0.02);
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.next:hover {
  border-color: var(--line-strong);
  background: rgba(255, 211, 106, 0.05);
  transform: translateY(-2px);
  color: var(--ink);
}

.next span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.next strong {
  font-size: 1rem;
  font-weight: 650;
}

.next p {
  margin: 0.35rem 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}

/* ---------- footer ---------- */
.site-footer {
  margin-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
  background: #0a100c;
  padding-block: clamp(2.5rem, 5vw, 3.5rem) 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.88rem;
  max-width: 36ch;
  margin-top: 0.8rem;
}

.footer-col h4 {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin: 0.5rem 0;
}

.footer-col a {
  color: var(--ink-soft);
  font-size: 0.88rem;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-legal {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.78rem;
}

.footer-legal p {
  margin: 0;
  max-width: 72ch;
}

/* ---------- in-article helpers ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.75rem 0;
}

.stat {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  background: rgba(246, 242, 230, 0.02);
}

.stat b {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.stat span {
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.4;
  display: block;
  margin-top: 0.15rem;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
  display: grid;
  gap: 0.55rem;
}

.checklist li {
  position: relative;
  padding-left: 1.9rem;
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink-soft);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 15px;
  height: 15px;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 211, 106, 0.08);
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 1rem;
}

.steps > li {
  counter-increment: step;
  position: relative;
  padding: 1.3rem 1.4rem 1.3rem 4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(246, 242, 230, 0.02);
  margin: 0;
}

.steps > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 1.25rem;
  top: 1.3rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.steps h3 {
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

.steps p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--ink-soft);
}

.tip {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

.tip:first-of-type {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.tip h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  margin-bottom: 0.75rem;
}

.tip dl {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 0.55rem 1.1rem;
  margin: 1rem 0 0;
  font-size: 0.93rem;
}

.tip dt {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 650;
  padding-top: 0.18em;
}

.tip dd {
  margin: 0;
  color: var(--ink-soft);
}

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

/* ---------- responsive ---------- */
@media (min-width: 1001px) {
  .facts {
    margin-top: 2.7rem;
  }
}

@media (max-width: 1000px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .facts {
    max-width: 460px;
  }

  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: grid;
  }

  .site-header__inner {
    position: relative;
  }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.6rem;
    background: #101912;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 40px -30px #000;
    display: none;
  }

  .nav[data-open="true"] {
    display: flex;
  }

  .nav a {
    padding: 0.85rem 0.8rem;
    font-size: 0.95rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .header-actions .btn {
    min-height: 40px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .split,
  .grid--2,
  .grid--3,
  .next-grid {
    grid-template-columns: 1fr;
  }

  .game-stage {
    height: min(74svh, 560px);
  }

  .game-frame__bar {
    padding: 0.55rem 0.6rem;
  }

  .game-frame__title small {
    display: none;
  }

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

  .tool {
    padding: 0.35rem 0.55rem;
    min-height: 40px;
    min-width: 40px;
    justify-content: center;
  }

  .tool svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(100% - 1.6rem, var(--wrap));
  }

  h1 {
    font-size: clamp(2rem, 9vw, 2.5rem);
  }

  .hero {
    padding-top: 1.25rem;
  }

  .grid--4,
  .stat-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .game-stage {
    height: min(72svh, 520px);
  }

  .play-orb {
    width: 70px;
    height: 70px;
  }

  .facts dl {
    font-size: 0.84rem;
  }

  .card {
    padding: 1.15rem;
  }

  .steps > li {
    padding: 1.1rem 1.1rem 1.1rem 3.4rem;
  }

  .steps > li::before {
    left: 1.1rem;
    top: 1.1rem;
  }

  .tip dl {
    grid-template-columns: 1fr;
    gap: 0.2rem 0;
  }

  .tip dt {
    margin-top: 0.5rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- print ---------- */
@media print {
  .site-header,
  .game-frame,
  .site-footer,
  .next-grid {
    display: none;
  }

  body {
    background: #ffffff;
    color: #111;
  }
}

.split > *,
.grid > *,
.next-grid > *,
.hero__grid > *,
.footer-grid > *,
.stat-row > * {
  min-width: 0;
}

/* ---------- utilities ---------- */
[hidden] {
  display: none !important;
}

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

.hero-note {
  margin: 0.9rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}

/* ---------- stacked tables on small screens ---------- */
@media (max-width: 640px) {
  .table-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
  }

  table {
    min-width: 0;
  }

  caption {
    padding: 0 0 0.7rem;
    border-bottom: 0;
  }

  thead {
    display: none;
  }

  tbody,
  tbody tr,
  tbody th,
  tbody td {
    display: block;
    width: 100%;
  }

  tbody tr {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.55rem 0.9rem;
    margin-bottom: 0.6rem;
    background: rgba(246, 242, 230, 0.025);
  }

  tbody th {
    border: 0;
    padding: 0.3rem 0 0.15rem;
    white-space: normal;
  }

  tbody td {
    border: 0;
    padding: 0.3rem 0;
  }

  tbody td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.15rem;
  }

  tbody tr:last-child {
    margin-bottom: 0;
  }
}

@media (max-width: 640px) {
  tbody th[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.15rem;
  }
}

.game-fallback {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1rem;
  border-top: 1px solid var(--line);
  background: #101912;
  font-size: 0.8rem;
  color: var(--muted);
}

.game-fallback a,
.game-fallback .linkish {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.game-fallback .linkish {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.game-fallback .linkish:hover,
.game-fallback a:hover {
  color: #ffe9a8;
}

.figure--phone {
  max-width: 300px;
  margin-inline: auto;
}

/* ---------- short answer box ---------- */
.answer {
  border: 1px solid rgba(255, 211, 106, 0.28);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(255, 211, 106, 0.09), rgba(255, 211, 106, 0.025));
  padding: 1.1rem 1.25rem 1.15rem;
  margin: 0 0 clamp(1.75rem, 3vw, 2.5rem);
  max-width: var(--prose);
}

.answer__label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.answer p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

.answer p + p {
  margin-top: 0.6rem;
}

/* ---------- diagram figure ---------- */
.figure--diagram img {
  background: #121c16;
  padding: 0;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.78rem;
  color: var(--muted);
}

.legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
}

.legend .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}

/* ---------- round timeline ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.6rem 0 0;
}

.timeline__item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  background: linear-gradient(170deg, rgba(246, 242, 230, 0.035), rgba(246, 242, 230, 0.01));
}

.timeline__step {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
}

.timeline__value {
  display: block;
  margin: 0.25rem 0 0.35rem;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.timeline__item p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- tip media ---------- */
.tip > figure {
  margin: 1.2rem 0 0;
  max-width: 640px;
}

.tip > figure img {
  border-radius: 12px;
}

/* ---------- byline ---------- */
.byline {
  margin-top: 0.85rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.byline a {
  color: var(--ink-soft);
}

@media (max-width: 640px) {
  .timeline {
    grid-template-columns: 1fr;
  }
}

/* pages that open with a short answer need less air under the hero */
.page-hero + .section {
  padding-top: clamp(0.75rem, 1.6vw, 1.25rem);
}

.timeline-title {
  margin: clamp(2rem, 4vw, 2.75rem) 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
}

/* ---------- on this page ---------- */
.toc {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.2rem 1.1rem;
  margin: 0 0 clamp(1.75rem, 3vw, 2.5rem);
  max-width: var(--prose);
  background: rgba(246, 242, 230, 0.02);
}

.toc__title {
  margin: 0 0 0.55rem;
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.toc ol {
  margin: 0;
  padding-left: 1.1rem;
  columns: 2;
  column-gap: 1.75rem;
  font-size: 0.88rem;
}

.toc li {
  margin: 0.3rem 0;
  break-inside: avoid;
}

.toc a {
  color: var(--ink-soft);
  text-decoration: none;
}

.toc a:hover {
  color: var(--accent);
  text-decoration: underline;
}

@media (max-width: 640px) {
  .toc ol {
    columns: 1;
  }
}

.facts__date {
  margin: 0.55rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.45;
}

/* ==========================================================================
   Mottle Nocturne — visual theme layer
   Screen-only restyle: the game's mottled tile palette, firefly glow and
   HUD-style labels. Base layout, breakpoints, JS hooks and print rules are
   deliberately left untouched. Remove this block to return to the old skin.
   ========================================================================== */
@media screen {
  :root {
    --glow-amber: rgba(255, 211, 106, 0.14);
    --glow-moss: rgba(63, 106, 75, 0.20);
    --glow-clay: rgba(169, 102, 60, 0.11);
  }

  /* speckled, softly lit arena instead of a flat dark green */
  body::before {
    background-color: var(--bg);
    background-image:
      radial-gradient(circle, rgba(255, 211, 106, 0.05) 0 1px, transparent 1.6px),
      radial-gradient(circle, rgba(214, 226, 204, 0.035) 0 1.2px, transparent 1.8px),
      radial-gradient(900px 520px at 78% -8%, var(--glow-amber), transparent 62%),
      radial-gradient(760px 460px at 4% 6%, var(--glow-moss), transparent 62%),
      radial-gradient(700px 520px at 92% 96%, var(--glow-clay), transparent 62%);
    background-size: 78px 78px, 96px 96px, auto, auto, auto;
    background-position: 0 0, 24px 36px, 0 0, 0 0, 0 0;
    background-repeat: repeat, repeat, no-repeat, no-repeat, no-repeat;
  }

  h1,
  h2,
  h3,
  h4,
  strong {
    color: #f7f2e4;
  }

  a {
    color: var(--accent);
  }

  a:hover {
    color: #ffe9a8;
  }

  ::selection {
    background: var(--accent);
    color: #12170f;
  }

  /* small letterspaced labels, echoing the in-game SCORE / SEEK / CAMO HUD */
  .eyebrow,
  .facts__label,
  .facts dt,
  .facts dd,
  .facts a,
  .facts__date,
  .hero-note,
  .micro,
  .chips li,
  .btn,
  .nav a,
  .brand span small,
  .tool,
  .game-frame__title,
  .game-frame__title small,
  .game-fallback,
  .play-hint,
  .card__kicker,
  .card__num,
  .card-link,
  .next span,
  .page-meta,
  .page-meta strong,
  .crumbs,
  .crumbs a,
  caption,
  thead th,
  .kbd,
  .stat b,
  .stat span,
  .timeline-title,
  .timeline__step,
  .timeline__value,
  .steps > li::before,
  .tip dt,
  .answer__label,
  .toc__title,
  .legend,
  .footer-col h4,
  .byline {
    font-family: var(--mono);
  }

  .eyebrow {
    color: var(--accent);
    letter-spacing: 0.14em;
  }

  .eyebrow::before {
    top: 0.36em;
    width: 9px;
    height: 9px;
    border-radius: 3px;
    background: var(--accent);
    opacity: 0.9;
  }

  .site-header {
    background: rgba(11, 17, 13, 0.88);
    border-bottom-color: rgba(255, 211, 106, 0.17);
  }

  .brand img {
    border-radius: 10px;
  }

  .brand span small {
    letter-spacing: 0.12em;
    color: var(--muted);
  }

  .nav a {
    font-size: 0.82rem;
    letter-spacing: 0.02em;
  }

  .nav a[aria-current="page"] {
    color: var(--accent);
    background: rgba(255, 211, 106, 0.10);
  }

  .btn {
    color: #12170f;
    font-size: 0.88rem;
    letter-spacing: 0.02em;
    box-shadow: 0 10px 26px -18px rgba(255, 211, 106, 0.85);
  }

  .btn:hover {
    background: #ffe08a;
    color: #12170f;
    box-shadow: 0 14px 28px -16px rgba(255, 211, 106, 0.7);
  }

  .btn--ghost {
    border-color: rgba(246, 242, 230, 0.28);
    color: var(--ink);
  }

  .btn--ghost:hover {
    border-color: rgba(255, 211, 106, 0.5);
    background: rgba(255, 211, 106, 0.07);
    color: var(--ink);
    box-shadow: none;
  }

  .chips li {
    border-color: rgba(255, 211, 106, 0.22);
    background: rgba(255, 211, 106, 0.045);
    color: var(--ink-soft);
  }

  .hero h1 span {
    color: var(--accent);
  }

  .hero-note {
    letter-spacing: 0.04em;
  }

  /* "At a glance" becomes a HUD panel with a corner tick */
  .facts {
    position: relative;
    border-color: rgba(255, 211, 106, 0.26);
    background-color: #131c16;
    background-image:
      linear-gradient(160deg, rgba(255, 211, 106, 0.10), rgba(19, 28, 22, 0.72) 58%),
      radial-gradient(circle, rgba(246, 242, 230, 0.035) 0 1px, transparent 1.5px);
    background-size: auto, 28px 28px;
  }

  .facts::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    width: 18px;
    height: 18px;
    border-top: 2px solid var(--accent);
    border-left: 2px solid var(--accent);
    border-top-left-radius: var(--radius);
    opacity: 0.85;
  }

  .facts__label {
    color: var(--accent);
  }

  .facts__label::before {
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--camo);
    box-shadow: 0 0 0 4px rgba(111, 224, 176, 0.16);
  }

  .facts dd {
    color: var(--accent);
  }

  .facts a {
    color: var(--ink-soft);
  }

  /* the game frame reads as one enlarged arena tile */
  .game-frame {
    border-color: rgba(255, 211, 106, 0.32);
    border-radius: 20px;
    box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 1),
      0 0 0 1px rgba(0, 0, 0, 0.4),
      0 0 70px -34px rgba(255, 211, 106, 0.28);
  }

  .game-frame__bar {
    background: #121c16;
    border-bottom-color: rgba(255, 211, 106, 0.18);
  }

  .game-frame__title {
    letter-spacing: 0.02em;
  }

  .game-frame__title .dot {
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(255, 211, 106, 0.14);
  }

  .game-stage {
    background: #080e0b;
  }

  .game-poster img {
    filter: saturate(1.08) contrast(1.02);
  }

  .game-poster::after {
    background: radial-gradient(62% 62% at 50% 45%,
      rgba(10, 16, 12, 0.10), rgba(10, 16, 12, 0.82));
  }

  .play-orb {
    background: var(--accent);
    color: #12170f;
    box-shadow: 0 18px 40px -16px rgba(255, 211, 106, 0.6),
      0 0 0 8px rgba(255, 211, 106, 0.10);
  }

  .game-poster__title {
    color: #f7f2e4;
  }

  .spinner {
    border-color: rgba(255, 211, 106, 0.2);
    border-top-color: var(--accent);
  }

  .play-hint::before {
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 211, 106, 0.15);
  }

  .game-fallback {
    background: #101912;
    border-top-color: rgba(255, 211, 106, 0.18);
  }

  .game-fallback a,
  .game-fallback .linkish {
    color: var(--accent);
  }

  .game-fallback .linkish:hover,
  .game-fallback a:hover {
    color: #ffe9a8;
  }

  /* each card carries one of the six mottled tile colours */
  .grid > .card {
    --tile: var(--tile-moss);
    --tile-glow: rgba(63, 106, 75, 0.24);
  }

  .grid > .card:nth-child(6n+2) {
    --tile: var(--tile-clay);
    --tile-glow: rgba(169, 102, 60, 0.22);
  }

  .grid > .card:nth-child(6n+3) {
    --tile: var(--tile-slate);
    --tile-glow: rgba(111, 122, 143, 0.22);
  }

  .grid > .card:nth-child(6n+4) {
    --tile: var(--tile-heather);
    --tile-glow: rgba(107, 77, 118, 0.26);
  }

  .grid > .card:nth-child(6n+5) {
    --tile: var(--tile-sand);
    --tile-glow: rgba(199, 171, 104, 0.20);
  }

  .grid > .card:nth-child(6n+6) {
    --tile: var(--tile-pond);
    --tile-glow: rgba(61, 111, 131, 0.22);
  }

  .card {
    border-top: 2px solid var(--tile, var(--accent));
    background-color: rgba(246, 242, 230, 0.02);
    background-image:
      radial-gradient(190px 130px at 100% 0%, var(--tile-glow, rgba(255, 211, 106, 0.1)), transparent 72%),
      radial-gradient(circle, rgba(246, 242, 230, 0.035) 0 1px, transparent 1.5px);
    background-size: auto, 30px 30px;
  }

  .card__num {
    border-radius: 7px;
  }

  .card__kicker {
    color: var(--accent);
  }

  .card-link {
    color: var(--accent);
  }

  .next {
    border-top: 2px solid var(--tile-moss);
    background-color: rgba(246, 242, 230, 0.02);
  }

  .next-grid > .next:nth-child(3n+2) {
    border-top-color: var(--tile-clay);
  }

  .next-grid > .next:nth-child(3n+3) {
    border-top-color: var(--tile-pond);
  }

  .next:hover {
    border-color: var(--accent);
    background: rgba(255, 211, 106, 0.06);
  }

  .next span {
    color: var(--accent);
  }

  figure img {
    border-color: rgba(255, 211, 106, 0.22);
    background: #0a100c;
  }

  .figure--diagram img {
    background: #121c16;
  }

  .legend .dot {
    border-radius: 3px;
  }

  .callout {
    border-left-color: var(--accent);
    background: rgba(255, 211, 106, 0.07);
  }

  .callout strong {
    color: var(--accent);
  }

  .callout--warn {
    border-left-color: var(--coral);
    background: rgba(255, 122, 92, 0.08);
  }

  .callout--warn strong {
    color: var(--coral);
  }

  .callout--note {
    border-left-color: var(--violet);
    background: rgba(179, 154, 196, 0.10);
  }

  .callout--note strong {
    color: var(--violet);
  }

  .table-wrap {
    border-color: rgba(255, 211, 106, 0.2);
  }

  caption {
    letter-spacing: 0.08em;
  }

  thead th {
    color: var(--accent);
    background: rgba(255, 211, 106, 0.06);
    border-bottom-color: rgba(255, 211, 106, 0.2);
  }

  th,
  td {
    border-bottom-color: rgba(214, 226, 204, 0.10);
  }

  .kbd {
    border-color: rgba(255, 211, 106, 0.32);
    background: rgba(255, 211, 106, 0.08);
    color: var(--ink);
  }

  .faq summary:hover {
    color: var(--accent);
  }

  .faq summary::after {
    border-radius: 6px;
    border-color: rgba(255, 211, 106, 0.35);
    color: var(--accent);
  }

  .faq details[open] summary::after {
    background: rgba(255, 211, 106, 0.12);
  }

  .crumbs a:hover,
  .toc a:hover {
    color: var(--accent);
  }

  .answer,
  .toc {
    position: relative;
    border-color: rgba(255, 211, 106, 0.3);
    background-color: rgba(255, 211, 106, 0.035);
    background-image: linear-gradient(160deg,
      rgba(255, 211, 106, 0.10), rgba(255, 211, 106, 0.02));
  }

  .answer::before,
  .toc::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    width: 16px;
    height: 16px;
    border-top: 2px solid var(--accent);
    border-left: 2px solid var(--accent);
    border-top-left-radius: 10px;
    opacity: 0.8;
  }

  .answer__label,
  .toc__title {
    color: var(--accent);
  }

  .stat {
    border-top: 2px solid var(--tile-pond);
  }

  .stat-row > .stat:nth-child(4n+2) {
    border-top-color: var(--tile-sand);
  }

  .stat-row > .stat:nth-child(4n+3) {
    border-top-color: var(--tile-clay);
  }

  .stat-row > .stat:nth-child(4n+4) {
    border-top-color: var(--tile-moss);
  }

  .stat b {
    color: var(--accent);
  }

  .checklist li::before {
    border-radius: 4px;
    border-color: rgba(111, 224, 176, 0.42);
    background: rgba(111, 224, 176, 0.12);
  }

  .steps > li {
    border-top: 2px solid rgba(255, 211, 106, 0.24);
  }

  .steps > li::before {
    color: var(--accent);
  }

  .timeline__item {
    border-top: 2px solid var(--tile-sand);
    background: linear-gradient(170deg,
      rgba(246, 242, 230, 0.045), rgba(246, 242, 230, 0.012));
  }

  .timeline__item:nth-child(2) {
    border-top-color: var(--tile-clay);
  }

  .timeline__item:nth-child(3) {
    border-top-color: var(--tile-moss);
  }

  .timeline__step,
  .timeline-title,
  .answer__label,
  .toc__title,
  .tip dt,
  .footer-col h4 {
    letter-spacing: 0.12em;
  }

  .timeline__value {
    color: var(--accent);
  }

  .site-footer {
    background: #0a100c;
    border-top-color: rgba(255, 211, 106, 0.18);
  }

  .footer-col h4 {
    color: var(--accent);
  }

  .footer-col a:hover {
    color: var(--accent);
  }

  .footer-legal {
    border-top-color: rgba(214, 226, 204, 0.12);
  }
}

/* keep the original mobile navigation sizing after the HUD label treatment */
@media screen and (max-width: 860px) {
  .nav {
    background: #101912;
    border-bottom-color: rgba(255, 211, 106, 0.22);
  }

  .nav a {
    font-family: var(--font);
    font-size: 0.95rem;
    letter-spacing: 0;
  }
}

@media screen and (max-width: 640px) {
  .facts::before,
  .answer::before,
  .toc::before {
    width: 13px;
    height: 13px;
  }

  .card {
    background-size: auto, 24px 24px;
  }
}

/* keep the single game-bar action readable on small screens */
.tool__label-short {
  display: none;
}

@media (max-width: 860px) {
  .tool--help span {
    position: static;
    width: auto;
    height: auto;
    clip: auto;
    overflow: visible;
    white-space: nowrap;
  }

  .tool--help .tool__label-long {
    display: none;
  }

  .tool--help .tool__label-short {
    display: inline;
  }

  .tool--help {
    padding: 0.4rem 0.7rem;
    gap: 0.35rem;
  }

  .game-frame__bar {
    flex-wrap: nowrap;
  }

  .game-frame__title {
    min-width: 0;
    font-size: 0.84rem;
  }
}

/* very narrow phones: keep the wordmark on one line and drop the duplicate header CTA */
@media (max-width: 380px) {
  .brand {
    font-size: 0.92rem;
    gap: 0.5rem;
  }

  .brand span {
    white-space: nowrap;
  }

  .header-actions .btn {
    display: none;
  }
}

/* ---------- consent banner ---------- */
.consent {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  max-width: 640px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #0c1c16;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.9);
}

.consent p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.consent a {
  color: var(--accent);
}

.consent__actions {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
  flex: none;
}

.consent button {
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}

.consent__accept {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #06110d;
}

.consent__decline {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
}

.consent__decline:hover {
  border-color: var(--ink-soft);
}

@media (max-width: 640px) {
  .consent {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .consent__actions {
    margin-left: 0;
  }

  .consent__actions button {
    flex: 1;
  }
}

.footer-col .linkish {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 0.88rem;
  color: var(--ink-soft);
  cursor: pointer;
  text-align: left;
}

.footer-col .linkish:hover {
  color: var(--accent);
}
