/* ───────────── Tokens ───────────── */
:root {
  --paper: #f3eee2;
  --paper-2: #e9e2d0;
  --card: #fbf8f1;
  --ink: #1b1d17;
  --ink-2: #45473d;
  --muted: #74766a;
  --line: rgba(27, 29, 23, 0.13);
  --line-strong: rgba(27, 29, 23, 0.28);
  --accent: #c8f03c;
  --accent-ink: #3d5c00;
  --shadow: 0 1px 2px rgba(27, 29, 23, 0.06), 0 8px 24px -12px rgba(27, 29, 23, 0.25);
  --shadow-lift: 0 2px 4px rgba(27, 29, 23, 0.06), 0 22px 40px -18px rgba(27, 29, 23, 0.4);
  --band: #1b1d17;
  --band-ink: #f3eee2;

  --c-animals: #c84a24;
  --c-cnidaria: #c9346d;
  --c-plants: #347f31;
  --c-fungi: #94591f;
  --c-algae: #0f7d75;
  --c-protists: #9a780a;
  --c-microbes: #6247c7;

  --serif: "Fraunces", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --radius: 18px;
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0c1310;
    --paper-2: #121c18;
    --card: #15201b;
    --ink: #eceee2;
    --ink-2: #c3c9b8;
    --muted: #8a9486;
    --line: rgba(236, 238, 226, 0.11);
    --line-strong: rgba(236, 238, 226, 0.25);
    --accent-ink: #c8f03c;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px -12px rgba(0, 0, 0, 0.6);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.3), 0 22px 40px -16px rgba(0, 0, 0, 0.7);
    --band: #121c18;
    --band-ink: #eceee2;
    --c-animals: #ff8a5c;
    --c-cnidaria: #ff7eb0;
    --c-plants: #7fd47a;
    --c-fungi: #e3aa6a;
    --c-algae: #4fd6c9;
    --c-protists: #f0cb4a;
    --c-microbes: #a996ff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0c1310;
  --paper-2: #121c18;
  --card: #15201b;
  --ink: #eceee2;
  --ink-2: #c3c9b8;
  --muted: #8a9486;
  --line: rgba(236, 238, 226, 0.11);
  --line-strong: rgba(236, 238, 226, 0.25);
  --accent-ink: #c8f03c;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px -12px rgba(0, 0, 0, 0.6);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.3), 0 22px 40px -16px rgba(0, 0, 0, 0.7);
  --band: #121c18;
  --band-ink: #eceee2;
  --c-animals: #ff8a5c;
  --c-cnidaria: #ff7eb0;
  --c-plants: #7fd47a;
  --c-fungi: #e3aa6a;
  --c-algae: #4fd6c9;
  --c-protists: #f0cb4a;
  --c-microbes: #a996ff;
  color-scheme: dark;
}

/* ───────────── Base ───────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before { /* faint paper grain */
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, .topbar, .footer { position: relative; z-index: 1; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.05; margin: 0; letter-spacing: -0.02em; font-variation-settings: "SOFT" 50, "WONK" 0; }
h2 em, h1 em { font-style: italic; font-weight: 500; font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--accent-ink); }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 6px; }
.nowrap { white-space: nowrap; }
.muted { color: var(--muted); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ───────────── Buttons ───────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: transparent;
  font-weight: 600; font-size: 15px;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { box-shadow: 0 6px 0 -2px var(--accent); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* ───────────── Top bar ───────────── */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  font-family: var(--serif); font-weight: 700; font-size: 20px; letter-spacing: -0.01em;
  white-space: nowrap;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.brand-mark { width: 30px; height: 30px; stroke: none; }
.brand-mark path { fill: var(--accent); stroke: var(--ink); stroke-width: 1.5; }
.brand-mark circle { fill: var(--ink); }
.topnav { display: flex; align-items: center; gap: 4px; }
.topnav a {
  text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 8px 12px; border-radius: 999px; color: var(--ink-2);
  white-space: nowrap;
}
.topnav a:hover { background: var(--paper-2); color: var(--ink); }
.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: transparent;
  display: grid; place-items: center; margin-left: 6px;
}
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .moon { display: none; }
[data-mode="dark"] .theme-toggle .sun { display: none; }
[data-mode="dark"] .theme-toggle .moon { display: inline; }

/* ───────────── Hero ───────────── */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding: clamp(40px, 7vw, 96px) var(--gutter) clamp(48px, 7vw, 100px);
  max-width: 1320px; margin: 0 auto;
}
.eyebrow {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px;
}
.hero-title {
  font-size: clamp(4.2rem, 11.5vw, 9.6rem);
  line-height: 0.86;
  font-weight: 700;
  letter-spacing: -0.045em;
  font-variation-settings: "SOFT" 30, "WONK" 0, "opsz" 144;
}
.hero-title em {
  display: inline-block;
  font-weight: 400;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  padding-left: 0.35em;
  position: relative;
}
.squiggle { /* one continuous path, drawn by app.js to fit the word */
  position: absolute; left: 0.35em; bottom: -0.2em; height: 0.14em;
  width: calc(100% - 0.37em); /* svg won't stretch between left/right on its own */
  z-index: -1;
  overflow: visible;
  pointer-events: none;
}
.squiggle path { fill: none; stroke: var(--accent); stroke-width: 0.055em; stroke-linecap: round; stroke-linejoin: round; }
.hero-lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-2);
  max-width: 34ch;
  margin-top: clamp(40px, 4.5vw, 56px);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 28px;
  margin: 40px 0 0; padding-top: 22px;
  border-top: 1px dashed var(--line-strong);
}
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats dt { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); order: 2; }
.hero-stats dd { margin: 0; font-family: var(--serif); font-size: 2rem; font-weight: 600; line-height: 1.1; order: 1; }

/* Daily card */
.daily { position: relative; }
.daily-blob {
  position: absolute; inset: -8% -6% -10% -4%;
  background:
    radial-gradient(circle at 30% 30%, var(--accent), transparent 55%),
    radial-gradient(circle at 75% 40%, var(--c-cnidaria), transparent 55%),
    radial-gradient(circle at 45% 80%, var(--c-algae), transparent 55%);
  filter: blur(40px);
  opacity: 0.45;
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  animation: morph 16s ease-in-out infinite alternate;
}
@keyframes morph {
  0%   { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; transform: rotate(0deg) scale(1); }
  50%  { border-radius: 63% 37% 38% 62% / 58% 32% 68% 42%; transform: rotate(8deg) scale(1.04); }
  100% { border-radius: 36% 64% 52% 48% / 36% 61% 39% 64%; transform: rotate(-6deg) scale(0.98); }
}
.daily-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  padding: clamp(22px, 3vw, 34px);
  box-shadow: var(--shadow-lift);
  transform: rotate(1.2deg);
  transition: transform .3s ease;
}
.daily-card:hover { transform: rotate(0deg); }
.daily-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em;
  background: var(--ink); color: var(--paper);
  padding: 5px 12px 5px 10px; border-radius: 999px;
  margin-bottom: 20px;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.daily-hook {
  font-family: var(--serif); font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.15; font-weight: 500; letter-spacing: -0.015em;
  margin: 14px 0 16px;
}
.daily-body { color: var(--ink-2); font-size: 15.5px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.daily-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.linkish {
  background: none; border: 0; padding: 0;
  font-weight: 600; font-size: 15px;
  text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 4px;
}
.linkish:hover { text-decoration-color: var(--ink); }

/* ───────────── Shared specimen bits ───────────── */
.spec-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted);
}
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--cat);
  font-weight: 500;
}
.tag svg { width: 16px; height: 16px; }
.spec-name { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.01em; line-height: 1.15; }
.spec-sci { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 0.95rem; font-weight: 400; }

.meter { display: inline-flex; align-items: center; gap: 3px; }
.meter i {
  width: 7px; height: 14px; border-radius: 2px;
  background: var(--line-strong);
  transform: skewX(-12deg);
}
.meter i.on { background: var(--cat, var(--ink)); }
.meter-label { margin-left: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-2); }

[data-cat="animals"]  { --cat: var(--c-animals); }
[data-cat="cnidaria"] { --cat: var(--c-cnidaria); }
[data-cat="plants"]   { --cat: var(--c-plants); }
[data-cat="fungi"]    { --cat: var(--c-fungi); }
[data-cat="algae"]    { --cat: var(--c-algae); }
[data-cat="protists"] { --cat: var(--c-protists); }
[data-cat="microbes"] { --cat: var(--c-microbes); }

/* ───────────── Specimen photos ───────────── */
.card-media, .daily-media, .modal-media {
  position: relative; margin: 0; overflow: hidden;
  background: var(--paper-2);
  isolation: isolate;
}
.card-media img, .daily-media img, .modal-media img {
  display: block; width: 100%; height: 100%;
  object-fit: cover;
  /* shared grade so photos from many sources read as one plate set */
  filter: saturate(0.9) contrast(1.04) sepia(0.08);
  transition: transform .6s cubic-bezier(.2,.8,.3,1), filter .3s;
}
.card-media::after, .daily-media::after, .modal-media::after { /* vignette + category tint */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.28)),
    radial-gradient(120% 90% at 50% 40%, transparent 60%, rgba(0, 0, 0, 0.18));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.plate {
  position: absolute; left: 10px; bottom: 10px; z-index: 1;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: #f3eee2; background: rgba(12, 16, 14, 0.55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: 3px 8px; border-radius: 6px;
}
.card-media {
  aspect-ratio: 16 / 10;
  margin: -20px -20px 16px;
  border-bottom: 1px solid var(--line);
}
.card:hover .card-media img { transform: scale(1.045); filter: saturate(1) contrast(1.05); }
.daily-media {
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
}
.modal-media { aspect-ratio: 16 / 9; max-height: 44vh; width: 100%; }
.modal-media img { filter: none; }
.modal-media::after { background: linear-gradient(180deg, rgba(0,0,0,0.25), transparent 30%); }
.modal-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-top: 16px; }
.modal-meta .modal-pos { margin: 0 0 0 auto; }
.credit { font-size: 12.5px; color: var(--muted); max-width: 60ch; }
.credit a { color: inherit; text-decoration-color: var(--line-strong); }
.credit a:hover { color: var(--ink); }

/* ───────────── Cabinet ───────────── */
.cabinet { max-width: 1320px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--gutter); }
.section-head { max-width: 720px; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(2.3rem, 5.5vw, 4rem); }
.section-head p { color: var(--ink-2); margin-top: 14px; font-size: 1.08rem; }
.wtf-inline {
  font-family: var(--mono); font-size: 0.85em; font-weight: 500;
  background: var(--accent); color: #1b1d17; padding: 1px 6px; border-radius: 4px;
}

.controls { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px 8px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: var(--card);
  font-size: 14.5px; font-weight: 500;
  transition: border-color .15s, background .15s, color .15s;
}
.chip svg { width: 16px; height: 16px; color: var(--cat, var(--ink)); }
.chip .n { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.chip:hover { border-color: var(--cat, var(--ink)); }
.chip[aria-pressed="true"] { background: var(--cat, var(--ink)); border-color: var(--cat, var(--ink)); color: var(--paper); }
.chip[aria-pressed="true"] svg, .chip[aria-pressed="true"] .n { color: var(--paper); }

.control-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.search {
  flex: 1 1 280px;
  display: flex; align-items: center; gap: 10px;
  padding: 0 16px;
  border: 1.5px solid var(--line-strong); border-radius: 14px;
  background: var(--card);
  min-height: 48px;
}
.search:focus-within { border-color: var(--ink); }
.search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.search input {
  flex: 1; min-width: 0;
  border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 16px; color: var(--ink);
}
.search input::placeholder { color: var(--muted); }
.select {
  display: flex; align-items: center; gap: 8px;
  padding: 0 6px 0 14px;
  border: 1.5px solid var(--line-strong); border-radius: 14px;
  background: var(--card); min-height: 48px;
  font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted);
}
.select select {
  border: 0; background: transparent; font: inherit; font-family: var(--sans); font-size: 15px; font-weight: 500;
  text-transform: none; letter-spacing: 0; color: var(--ink); padding: 10px 6px; cursor: pointer; outline: 0;
}
.select select option { color: #1b1d17; }
.saved-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 16px; min-height: 48px;
  border: 1.5px solid var(--line-strong); border-radius: 14px;
  background: var(--card); font-size: 15px; font-weight: 500;
}
.saved-toggle svg { width: 18px; height: 18px; }
.saved-toggle b { font-family: var(--mono); font-weight: 500; font-size: 13px; }
.saved-toggle[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #1b1d17; }
.saved-toggle[aria-pressed="true"] svg { fill: currentColor; }

.result-count { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 16px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 18px;
}
.card {
  position: relative;
  display: flex; flex-direction: column;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 20px 18px;
  box-shadow: var(--shadow);
  transition: transform .2s cubic-bezier(.2,.8,.3,1.2), box-shadow .2s, border-color .2s;
  animation: rise .45s cubic-bezier(.2,.8,.3,1) both;
  animation-delay: calc(var(--i, 0) * 25ms);
  overflow: hidden;
}
.card::before { /* specimen color edge */
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--cat);
}
.card:hover { transform: translateY(-4px) rotate(-0.4deg); box-shadow: var(--shadow-lift); border-color: color-mix(in srgb, var(--cat) 45%, transparent); }
.card:focus-within { border-color: var(--cat); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.card .spec-head { margin-bottom: 14px; }
.card-hook {
  font-family: var(--serif);
  font-size: 1.28rem; line-height: 1.22; font-weight: 500; letter-spacing: -0.012em;
  margin-bottom: 18px;
  flex: 1;
}
.card-open {
  all: unset; cursor: pointer;
}
.card-open::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--radius); }
.card-open:focus-visible::after { outline: 2px solid var(--cat); outline-offset: -2px; }
.card-foot {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 10px;
  padding-top: 14px; border-top: 1px dashed var(--line-strong);
}
.card-foot .spec-name { font-size: 1.02rem; }
.card-foot .spec-sci { font-size: 0.88rem; }
.star {
  position: relative; z-index: 2;
  flex: none;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent;
  display: grid; place-items: center;
  color: var(--muted);
  transition: color .15s, background .15s, transform .2s;
}
.star svg { width: 18px; height: 18px; }
.star:hover { color: var(--ink); border-color: var(--line-strong); }
.star[aria-pressed="true"] { color: #1b1d17; background: var(--accent); border-color: var(--accent); }
.star[aria-pressed="true"] svg { fill: currentColor; }
.star.pop { animation: pop .35s ease; }
@keyframes pop { 50% { transform: scale(1.3) rotate(15deg); } }

.empty {
  grid-column: 1 / -1; text-align: center;
  padding: 60px 20px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius);
  color: var(--ink-2);
}
.empty strong { display: block; font-family: var(--serif); font-size: 1.6rem; margin-bottom: 6px; color: var(--ink); }

/* ───────────── Game ───────────── */
.game {
  background: var(--band);
  color: var(--band-ink);
  --ink: var(--band-ink);
  --ink-2: color-mix(in srgb, var(--band-ink) 78%, transparent);
  --muted: color-mix(in srgb, var(--band-ink) 58%, transparent);
  --line-strong: color-mix(in srgb, var(--band-ink) 25%, transparent);
  --accent-ink: var(--accent);
  margin: clamp(32px, 5vw, 60px) 0;
  position: relative; overflow: hidden;
}
.game::before {
  content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -180px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 30%, transparent), transparent 65%);
  pointer-events: none;
}
.game-inner {
  position: relative;
  max-width: 1320px; margin: 0 auto;
  padding: clamp(56px, 8vw, 100px) var(--gutter);
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center;
}
.game .section-head { margin: 0; }
.game-card {
  background: color-mix(in srgb, var(--band-ink) 6%, transparent);
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  padding: clamp(22px, 3.5vw, 40px);
}
.game-meta { display: flex; gap: 22px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); }
.game-meta b { color: var(--accent); font-weight: 500; margin-left: 4px; }
.game-claim {
  font-family: var(--serif); font-size: clamp(1.5rem, 2.8vw, 2.2rem); line-height: 1.18; font-weight: 500; letter-spacing: -0.015em;
  margin: 22px 0 28px;
  min-height: 3.6em;
}
.game-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.game-buttons .btn { flex: 1 1 140px; justify-content: center; font-size: 17px; padding: 15px 20px; border-color: var(--band-ink); }
.btn-real:hover { background: var(--accent); border-color: var(--accent); color: #1b1d17; }
.btn-rubbish:hover { background: #ff6b4a; border-color: #ff6b4a; color: #1b1d17; }
.game-reveal { animation: rise .35s ease both; }
.verdict { font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; }
.verdict.right { background: var(--accent); color: #1b1d17; }
.verdict.wrong { background: #ff6b4a; color: #1b1d17; }
.truth { margin-top: 14px; color: var(--ink-2); font-size: 16px; }
.game-next { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.game .btn-primary { background: var(--band-ink); color: var(--band); border-color: var(--band-ink); }
.game .btn-ghost { border-color: var(--line-strong); }
.game .btn-ghost:hover { background: var(--band-ink); color: var(--band); }

/* ───────────── About ───────────── */
.about { max-width: 1320px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--gutter); }
.about h2 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); margin-bottom: 28px; }
.about-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 28px; color: var(--ink-2); }
.wtf-legend { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--card); }
.wtf-legend h3 { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 500; }
.wtf-legend .row { display: flex; align-items: center; gap: 10px; }
.wtf-legend .meter-label { margin-left: 2px; }

.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  padding: 28px var(--gutter) 40px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  max-width: 1320px; margin: 0 auto;
}

/* ───────────── Modal ───────────── */
.modal {
  width: min(760px, calc(100vw - 24px));
  max-height: calc(100dvh - 32px);
  padding: 0; border: 0;
  border-radius: 26px;
  background: var(--card); color: var(--ink);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.6);
  overflow: auto;
}
.modal::backdrop { background: rgba(10, 14, 12, 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal[open] { animation: modalIn .3s cubic-bezier(.2,.9,.3,1.15); }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(0.97); } }
.modal-inner { position: relative; }
.modal-band {
  position: relative;
  padding: 26px clamp(22px, 4vw, 40px) 28px;
  background: color-mix(in srgb, var(--cat) 14%, var(--card));
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.modal-band::after { /* big faint glyph */
  content: ""; position: absolute; right: -30px; bottom: -40px; width: 200px; height: 200px;
  background: var(--cat); opacity: 0.12;
  -webkit-mask: var(--glyph) center / contain no-repeat; mask: var(--glyph) center / contain no-repeat;
}
.modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 3;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--card);
  display: grid; place-items: center;
}
.modal-close svg { width: 18px; height: 18px; }
.modal .spec-head { padding-right: 52px; flex-wrap: wrap; }
.modal-name { font-size: clamp(1.9rem, 4.2vw, 2.7rem); margin-top: 18px; }
.modal-sci { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--ink-2); margin-top: 4px; }
.modal-body { padding: 26px clamp(22px, 4vw, 40px) 30px; }
.modal-hook { font-family: var(--serif); font-size: clamp(1.3rem, 2.6vw, 1.65rem); line-height: 1.25; font-weight: 500; letter-spacing: -0.012em; }
.modal-text { margin-top: 16px; color: var(--ink-2); font-size: 16.5px; line-height: 1.65; }
.modal-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 24px; }
.modal-facts div { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.modal-facts dt { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 6px; }
.modal-facts dd { margin: 0; font-size: 15px; font-weight: 500; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; align-items: center; }
.modal-actions .btn { padding: 10px 16px; font-size: 14.5px; }
.modal-actions .btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #1b1d17; }
.modal-actions .btn[aria-pressed="true"] svg { fill: currentColor; }
.modal-nav { display: flex; gap: 8px; margin-left: auto; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1.5px solid var(--line-strong); background: transparent;
  display: grid; place-items: center;
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }
.modal-pos { font-family: var(--mono); font-size: 11.5px; color: var(--muted); letter-spacing: 0.05em; text-align: right; margin-top: 14px; }

/* ───────────── Toast ───────────── */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 200;
  transform: translate(-50%, 20px);
  background: var(--ink); color: var(--paper);
  padding: 10px 18px; border-radius: 999px; font-size: 14.5px; font-weight: 500;
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ───────────── Responsive ───────────── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .daily-card { transform: none; }
  .game-inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topnav a:not(:first-child) { display: none; }
  .topnav a { padding: 8px 10px; font-size: 14px; }
  .hero-title em { padding-left: 0.15em; }
  .squiggle { left: 0.15em; width: calc(100% - 0.17em); }
  .hero-stats { gap: 20px; }
  .hero-stats dd { font-size: 1.6rem; }
  .control-row > * { flex: 1 1 100%; }
  .modal-nav { margin-left: 0; width: 100%; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
