/* ==========================================================================
   farflung.cloud
   A single-page atlas for the daily geography game.
   Palette, type and cartographic rules are defined once, below.
   ========================================================================== */

@font-face {
  font-family: 'Newsreader';
  src: url('/assets/fonts/newsreader-var.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('/assets/fonts/newsreader-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/assets/fonts/plex-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/assets/fonts/plex-mono-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f3ead6;
  --paper-2: #ece0c6;
  --paper-3: #e5d7b8;
  --ink: #0d3540;
  --ink-2: #24464f;
  --ink-3: #4a636a;
  --ink-4: #71878c;
  --line: #cdb992;
  --line-soft: #ddcda9;
  --red: #a33520;
  --red-bright: #d63129;
  --red-deep: #94301c;
  --serif: 'Newsreader', 'Iowan Old Style', Charter, Georgia, 'Times New Roman', serif;
  --mono: 'IBM Plex Mono', 'SF Mono', Menlo, Consolas, monospace;
  --wrap: 1200px;
  --gutter: clamp(18px, 4vw, 56px);
  --plate-shadow: 10px 10px 0 rgba(13, 53, 64, 0.1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
  /* Keep horizontal decorations clipped without turning body into a scroll
     container (which would break the sticky header). */
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(13, 53, 64, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(13, 53, 64, 0.05) 1px, transparent 1px);
  background-size: 88px 88px, 88px 88px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 10%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 20%, #000 10%, transparent 78%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.13;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

main, .site-header, .site-footer, .mobile-play { position: relative; z-index: 1; }

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.icon { width: 16px; height: 16px; fill: currentColor; flex: none; }
.icon-sm { width: 12px; height: 12px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}
.skip-link:focus { left: 12px; top: 12px; color: var(--paper); }

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

/* ============================== Buttons ============================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 0.95rem 1.35rem;
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--red); border-color: var(--red); color: #fff5e8; }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: rgba(13, 53, 64, 0.06); color: var(--ink); border-color: var(--ink); }
.btn-sm { padding: 0.7rem 1rem; font-size: 0.64rem; min-height: 40px; }
.btn-lg { padding: 1.05rem 1.85rem; font-size: 0.8rem; }

/* ============================== Header ============================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 234, 214, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ink);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark { width: 30px; height: 30px; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.brand-dot {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  margin-top: 3px;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
}
.site-nav a {
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.site-nav a:hover { color: var(--red); border-bottom-color: var(--red); }

/* ============================== Hero ============================== */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 3.2vh, 36px) 0 clamp(34px, 4.6vh, 56px);
  border-bottom: 1px solid var(--ink);
}

.hero-intro {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(20px, 4vw, 64px);
  align-items: end;
  padding-bottom: clamp(18px, 2.8vh, 30px);
}

.hero-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.05rem;
  padding-bottom: 0.3rem;
}

.game-shell {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 1340px;
  margin: 0 auto;
  padding-left: clamp(12px, 2vw, 22px);
  padding-right: clamp(12px, 2vw, 22px);
}

.hero-map {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 76% 38%, rgba(194, 65, 39, 0.07), transparent 44%),
    radial-gradient(circle at 12% 82%, rgba(13, 53, 64, 0.08), transparent 46%);
}
.hero-map::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -40px;
  width: 420px;
  height: 420px;
  opacity: 0.11;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%230d3540' stroke-width='1'%3E%3Ccircle cx='100' cy='100' r='86'/%3E%3Ccircle cx='100' cy='100' r='58'/%3E%3Cpath d='M100 6v188M6 100h188M34 34l132 132M166 34L34 166'/%3E%3Cpath d='M100 34l12 54 54 12-54 12-12 54-12-54-54-12 54-12z' fill='%230d3540' stroke='none' opacity='.5'/%3E%3C/g%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--red);
  flex: none;
}

.hero-title { margin-top: 0.75rem; }
.hero-word {
  display: block;
  font-size: clamp(2.9rem, 5.3vw, 4.7rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.035em;
}
.hero-sub {
  display: block;
  margin-top: 0.35rem;
  padding-bottom: 0.08em;
  font-size: clamp(1.18rem, 1.7vw, 1.55rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ink-2);
}

.hero-lede {
  margin-top: 0;
  max-width: 38ch;
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
  line-height: 1.55;
  color: var(--ink-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0;
}

/* ---------- the game plate: a big 16:9 stage ---------- */

.game-plate {
  /* Keep the stage landscape and as tall as the viewport allows. */
  --stage-cap: calc(100dvh - 170px);
  width: min(100%, max(640px, calc(var(--stage-cap) * 16 / 9)));
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1.5px solid var(--ink);
  background: var(--paper-2);
  box-shadow: var(--plate-shadow);
  outline: 1px solid rgba(13, 53, 64, 0.28);
  outline-offset: 5px;
}

.plate-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.52rem 0.75rem;
  border-bottom: 1px solid var(--ink);
  background: var(--paper-3);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.plate-right { display: inline-flex; align-items: center; gap: clamp(0.7rem, 1.4vw, 1.2rem); }
.plate-status { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--ink-2); }
.theater-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 2px 0;
  border: 0;
  background: none;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.15s ease;
}
.theater-btn .icon { width: 13px; height: 13px; }
.theater-btn:hover { color: var(--red); }
.theater-btn[aria-pressed="true"] { color: var(--red); }

.game-plate:fullscreen,
.game-plate:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  max-width: none;
  border: 0;
  outline: 0;
  box-shadow: none;
  background: var(--paper);
}
.game-plate:fullscreen .stage,
.game-plate:-webkit-full-screen .stage {
  flex: 1;
  aspect-ratio: auto;
  min-height: 0;
}
.game-plate:fullscreen .plate-bar,
.game-plate:fullscreen .plate-foot,
.game-plate:-webkit-full-screen .plate-bar,
.game-plate:-webkit-full-screen .plate-foot { flex: none; }
body.theater { overflow: hidden; }
body.theater .game-plate {
  position: fixed;
  inset: 0;
  z-index: 120;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  border: 0;
  outline: 0;
  box-shadow: none;
  background: var(--paper);
}
body.theater .game-plate .stage { flex: 1; aspect-ratio: auto; min-height: 0; }
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red-bright);
  display: inline-block;
}
.plate-status[data-state="loading"] .status-dot { animation: pulse 1s ease-in-out infinite; }
.plate-status[data-state="live"] .status-dot { background: #275c31; }

.stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--paper);
  overflow: hidden;
}

.stage-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('/assets/atlas-plate-768.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.14;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.stage-poster > * { position: relative; }

.stage-poster {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 1.4rem;
  text-align: center;
  background-image:
    linear-gradient(to right, rgba(13, 53, 64, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(13, 53, 64, 0.045) 1px, transparent 1px);
  background-size: 42px 42px, 42px 42px;
}
.poster-mark { width: clamp(62px, 5.4vw, 92px); height: auto; margin-bottom: 0.4rem; }
.poster-kicker {
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.poster-title {
  font-size: clamp(2rem, 3.4vw, 3.1rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}

.play-button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.05rem;
  padding: 0.95rem 1.5rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.play-button:hover { background: var(--red); border-color: var(--red); color: #fff5e8; }
.play-glyph {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--red-bright);
  display: grid;
  place-items: center;
  flex: none;
}
.play-button:hover .play-glyph { background: var(--paper); }
.play-glyph svg { width: 9px; height: 9px; fill: var(--paper); margin-left: 2px; }
.play-button:hover .play-glyph svg { fill: var(--red); }

.poster-help {
  max-width: 38ch;
  margin-top: 0.8rem;
  font-size: clamp(0.82rem, 1vw, 0.92rem);
  font-style: italic;
  line-height: 1.45;
  color: var(--ink-2);
}

.stage-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  background: var(--paper);
}
.loader-bar {
  position: relative;
  width: 132px;
  height: 2px;
  background: var(--line);
  overflow: hidden;
  display: block;
}
.loader-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--red);
  transform: translateX(-100%);
  animation: charting 1.3s ease-in-out infinite;
}
.loader-text {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.game-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--paper);
}

.noscript-note {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  text-align: center;
  background: var(--paper);
  font-size: 0.95rem;
  color: var(--ink-2);
}

.plate-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0.75rem;
  border-top: 1px solid var(--ink);
  background: var(--paper-3);
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.plate-foot a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--ink);
  text-decoration: none;
}
.plate-foot a:hover { color: var(--red); }


/* ============================== Facts strip ============================== */

.facts {
  border-bottom: 1px solid var(--ink);
  background: var(--paper-2);
  position: relative;
  z-index: 1;
}
.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.fact {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.5rem clamp(12px, 2vw, 30px);
  border-left: 1px solid var(--line);
}
.fact:first-child { border-left: 0; padding-left: 0; }
.fact-num {
  font-family: var(--mono);
  font-size: clamp(1.7rem, 2.8vw, 2.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}
.fact-unit { font-size: 0.44em; margin-left: 0.12em; color: var(--ink-3); }
.fact-label {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-3);
  line-height: 1.5;
}

/* ============================== Sections ============================== */

.section {
  position: relative;
  padding: clamp(62px, 9vw, 118px) 0;
  border-top: 1px solid var(--line-soft);
}
.facts + .section { border-top: 0; }

h2 {
  font-size: clamp(2rem, 3.6vw, 3.05rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
  max-width: 22ch;
}
.section-lede {
  margin-top: 1rem;
  max-width: 54ch;
  font-size: clamp(1rem, 1.35vw, 1.1rem);
  line-height: 1.62;
  color: var(--ink-2);
}
.section-head { max-width: 780px; margin-bottom: clamp(30px, 4.5vw, 52px); }
.section-head-wide { max-width: 900px; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(32px, 6vw, 92px);
  align-items: start;
}
.split-side { position: sticky; top: 108px; }
.split-side h2 { max-width: 14ch; font-size: clamp(1.9rem, 2.9vw, 2.6rem); }
.split-sub {
  margin-top: 0.8rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
}

.field-note {
  margin-top: clamp(26px, 3.5vw, 40px);
  padding: 0.1rem 0 0.1rem 1rem;
  border-left: 2px solid var(--red);
  max-width: 42ch;
}
.field-note-label {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.4rem;
}
.field-note p:last-child {
  font-size: 1.02rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--ink-2);
}

.steps {
  list-style: none;
  border-top: 1px solid var(--ink);
}
.step {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: clamp(12px, 2vw, 26px);
  padding: clamp(20px, 3vw, 32px) 0;
  border-bottom: 1px solid var(--line);
}
.step-num {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--red);
  padding-top: 0.5rem;
}
.step-body h3 {
  font-size: clamp(1.28rem, 2vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}
.step-body p {
  max-width: 54ch;
  color: var(--ink-2);
  line-height: 1.63;
}

/* ============================== Scoring ============================== */

.scoring { background: var(--paper-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.scale {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}
.scale-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.25rem clamp(10px, 1.6vw, 22px) 1.9rem;
  border-left: 1px solid var(--line);
}
.scale-item:first-child { border-left: 0; padding-left: 0; }
.scale-km {
  font-family: var(--mono);
  font-size: clamp(1.45rem, 2.5vw, 2.1rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}
.scale-km span { font-size: 0.48em; margin-left: 0.14em; color: var(--ink-3); }
.scale-name {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.scale-tick {
  position: absolute;
  left: clamp(10px, 1.6vw, 22px);
  bottom: 0;
  width: 1px;
  height: calc(16px + var(--tier) * 13px);
  background: var(--ink);
}
.scale-item:first-child .scale-tick { left: 0; }
.scale-note {
  margin-top: 1.2rem;
  max-width: 58ch;
  font-size: 0.9rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--ink-3);
}

/* ============================== Modes ============================== */

.modes {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}
.mode {
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 2.6vw, 32px);
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
  transition: background 0.2s ease;
}
.mode:hover { background: var(--paper-2); }
.mode-wide { grid-column: span 7; }
.mode:not(.mode-wide) { grid-column: span 5; }
.mode-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.mode-icon svg { width: 26px; height: 26px; fill: var(--ink); }
 .mode-meta {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: right;
  padding-top: 0.25rem;
}
.mode h3 {
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 0.55rem;
}
.mode p {
  max-width: 46ch;
  font-size: 0.97rem;
  line-height: 1.6;
  color: var(--ink-2);
}

/* ============================== Geography ============================== */

.geography-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(0, 0.58fr);
  gap: clamp(32px, 6vw, 76px);
  align-items: start;
  margin-bottom: clamp(34px, 5vw, 58px);
}
.geo-copy p {
  max-width: 58ch;
  margin-bottom: 1.2rem;
  font-size: clamp(1.02rem, 1.35vw, 1.1rem);
  line-height: 1.7;
  color: var(--ink-2);
}
.drop-cap::first-letter {
  float: left;
  font-size: 3.1em;
  line-height: 0.8;
  padding: 0.09em 0.12em 0 0;
  font-weight: 500;
  color: var(--red);
}
.geo-side-label {
  padding-bottom: 0.6rem;
  margin-bottom: 0.15rem;
  border-bottom: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.topic-list { list-style: none; }
.topic-list li {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.95rem;
  color: var(--ink-2);
}
.topic-list li::before {
  content: "";
  flex: none;
  width: 16px;
  height: 1px;
  background: var(--line);
  transform: translateY(-0.2em);
}

.atlas-band {
  position: relative;
  border: 1px solid var(--ink);
  box-shadow: var(--plate-shadow);
  background: var(--paper-2);
  overflow: hidden;
}
.atlas-band img { width: 100%; height: auto; }

/* ============================== Tips ============================== */

.tips {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}
.tip {
  padding: 1.25rem clamp(14px, 2vw, 28px) 0;
  border-left: 1px solid var(--line-soft);
}
.tip:first-child { border-left: 0; padding-left: 0; }
.tip-num {
  display: block;
  margin-bottom: 1.1rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--red);
}
.tip h3 {
  font-size: 1.17rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}
.tip p {
  font-size: 0.92rem;
  line-height: 1.62;
  color: var(--ink-2);
}

/* ============================== Daily notes ============================== */

.notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}
.note { padding: clamp(22px, 3vw, 34px) clamp(22px, 3vw, 44px) 0 0; }
.note + .note {
  padding-left: clamp(22px, 3vw, 44px);
  border-left: 1px solid var(--line);
}
.note h3 {
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.7rem;
}
.note p {
  max-width: 52ch;
  margin-bottom: 1rem;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--ink-2);
}
.note-data {
  margin-top: 1.3rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line-soft);
}
.note-data div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.note-data dt {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.note-data dd { font-style: italic; color: var(--ink); }
.note-small { font-size: 0.86rem; font-style: italic; color: var(--ink-3); }

/* ============================== Far-flung ============================== */

.meaning-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(30px, 5vw, 76px);
  align-items: start;
}
.dictionary {
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid var(--ink);
  background: var(--paper-2);
  box-shadow: var(--plate-shadow);
}
.dict-word {
  font-size: clamp(2rem, 3.4vw, 2.85rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 0.4rem;
}
.dict-pron {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.98rem;
  color: var(--ink-3);
}
.dict-def { font-size: 1.12rem; line-height: 1.5; }
.meaning-copy h2 { max-width: 16ch; }
.meaning-copy p {
  max-width: 56ch;
  margin-top: 1.05rem;
  font-size: clamp(1rem, 1.3vw, 1.08rem);
  line-height: 1.68;
  color: var(--ink-2);
}

/* ============================== FAQ ============================== */

.faq-wrap { max-width: 880px; }
.faq-list { border-top: 1px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem 0;
  list-style: none;
  cursor: pointer;
  font-size: clamp(1.06rem, 1.6vw, 1.24rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.15s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--red); }
.faq-icon {
  width: 16px;
  height: 16px;
  fill: var(--ink-3);
  flex: none;
  transition: transform 0.2s ease, fill 0.2s ease;
}
.faq-item[open] .faq-icon { transform: rotate(180deg); fill: var(--red); }
.faq-item p {
  max-width: 68ch;
  padding: 0 2rem 1.25rem 0;
  font-size: 0.99rem;
  line-height: 1.68;
  color: var(--ink-2);
}

/* ============================== Final CTA ============================== */

.final-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(66px, 9vw, 122px) 0;
  border-top: 1px solid var(--ink);
  background: var(--paper-2);
  text-align: center;
}
.final-map {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(to right, rgba(13, 53, 64, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(13, 53, 64, 0.05) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px;
}
.final-map::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 560px;
  height: 560px;
  transform: translate(-50%, -50%);
  opacity: 0.13;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%230d3540' stroke-width='1'%3E%3Ccircle cx='100' cy='100' r='92'/%3E%3Ccircle cx='100' cy='100' r='68'/%3E%3Ccircle cx='100' cy='100' r='40'/%3E%3Cpath d='M100 4v192M4 100h192M32 32l136 136M168 32L32 168'/%3E%3C/g%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}
.final-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  max-width: 760px;
  margin: 0 auto;
}
.final-cta h2 {
  max-width: 18ch;
  font-size: clamp(2.3rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.final-cta p {
  max-width: 46ch;
  font-size: 1.04rem;
  line-height: 1.6;
  color: var(--ink-2);
}
 .cta-micro {
  font-family: var(--mono);
  font-size: 0.62rem !important;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-3) !important;
}

/* ============================== Privacy / legal ============================== */

.legal {
  padding: clamp(48px, 7vw, 92px) 0 clamp(64px, 9vw, 110px);
  border-top: 0;
}
.legal-wrap { max-width: 780px; }
.legal h1 {
  max-width: none;
  margin-top: 0.9rem;
  font-size: clamp(2.4rem, 4.6vw, 3.5rem);
}
.legal-updated {
  margin-top: 1rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.legal h2 {
  max-width: none;
  margin: 2.2rem 0 0.7rem;
  font-size: clamp(1.25rem, 1.9vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.legal p {
  margin-bottom: 1rem;
  font-size: clamp(0.98rem, 1.3vw, 1.06rem);
  line-height: 1.7;
  color: var(--ink-2);
}
.legal a { color: var(--ink); }
.legal-back {
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.legal-back a {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
}
.legal-back a:hover { color: var(--red); border-bottom-color: var(--red); }

/* ============================== Footer ============================== */

.site-footer {
  padding: clamp(34px, 5vw, 54px) 0 clamp(36px, 5vw, 54px);
  border-top: 1px solid var(--ink);
  background: var(--paper);
}
.footer-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem 2rem;
  align-items: start;
}
.footer-brand { display: flex; align-items: center; gap: 0.5rem; }
.footer-word { font-size: 1.18rem; font-weight: 600; }
.footer-url {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}
.footer-links {
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
}
.footer-links a {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.footer-links a:hover { color: var(--red); border-bottom-color: var(--red); }
.footer-small {
  grid-column: 1 / -1;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}

/* ============================== Mobile play bar ============================== */

.mobile-play {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: none;
  border-top: 1px solid var(--ink);
  background: rgba(243, 234, 214, 0.97);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 0.55rem var(--gutter) calc(0.55rem + env(safe-area-inset-bottom));
}
.mobile-play-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.mobile-play-label {
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ============================== Reveal motion ============================== */

.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.65s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.js .reveal.is-in { opacity: 1; transform: none; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
@keyframes charting {
  0% { transform: translateX(-100%); }
  55% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* ============================== Responsive ============================== */

@media (max-width: 1080px) {
  .hero-copy { max-width: 820px; }
  .split { grid-template-columns: minmax(0, 1fr); gap: clamp(26px, 4vw, 40px); }
  .split-side { position: static; }
  .geography-grid { grid-template-columns: minmax(0, 1fr); }
  .geo-side { max-width: 560px; }
  .meaning-grid { grid-template-columns: minmax(0, 1fr); }
  .mode-wide, .mode:not(.mode-wide) { grid-column: span 6; }
  .tips { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.6rem; }
  .tip:nth-child(3) { border-left: 0; padding-left: 0; }
}

@media (max-width: 860px) {
  .hero-intro { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 1rem; }
  .hero-aside { padding-bottom: 0; gap: 0.9rem; }
  .game-plate { --stage-cap: none; width: 100%; }
  .site-nav { display: none; }
  .header-inner { justify-content: space-between; }
  .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact { padding: 1.15rem 1rem; }
  .fact:first-child { padding-left: 1rem; }
  .fact:nth-child(odd) { border-left: 0; padding-left: 0; }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .notes { grid-template-columns: minmax(0, 1fr); }
  .note { padding-right: 0; }
  .note + .note { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 1.6rem; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-links { justify-self: start; }
}

@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .stage { aspect-ratio: 4 / 5; max-height: calc(100dvh - 220px); }
  .hero-word { font-size: clamp(3.1rem, 15vw, 4.2rem); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .scale { grid-template-columns: minmax(0, 1fr); }
  .scale-item {
    display: grid;
    grid-template-columns: 5.2rem minmax(0, 1fr) 5.2rem;
    align-items: center;
    gap: 0.8rem;
    padding: 0.75rem 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }
  .scale-item:first-child { padding-left: 0; }
  .scale-name { order: 1; }
  .scale-tick {
    position: static;
    order: 2;
    width: 100%;
    height: 2px;
    background: var(--ink);
    opacity: calc(0.35 + var(--tier) * 0.16);
  }
  .scale-km { order: 0; }
  .modes { grid-template-columns: minmax(0, 1fr); }
  .mode-wide, .mode:not(.mode-wide) { grid-column: span 1; }
  .tips { grid-template-columns: minmax(0, 1fr); }
  .tip { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-soft); padding-top: 1.1rem; }
  .tip:first-child { border-top: 0; padding-top: 0; }
  .step { grid-template-columns: 40px minmax(0, 1fr); }
  .mode-meta { font-size: 0.52rem; }
  .faq-item p { padding-right: 0; }
  .mobile-play { display: block; }
  .site-footer { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .loader-bar::after { animation: none; transform: none; }
  .plate-status[data-state="loading"] .status-dot { animation: none; }
  * { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}
