/* ==========================================================================
   Krillion Answers Today — pixel-ocean theme
   Palette, type scale, spacing and shape all live in :root.
   Depth is the organising idea: the page runs from surface light at the top
   to the abyss at the bottom, and rare answers sit deepest inside a card.
   ========================================================================== */

:root {
  /* Ten colours only. Everything else on the page is one of these at another
     opacity: --abyss is the water column, --surface the raised card, --foam the
     light at the surface and the text, --drift the muted ink, --line the hairline.
     --lumen is the one accent (and the schooler tier), --pink appears only in the
     heading's chromatic split. Tier colours reach the page from tierLegend[].color and
     groups[].color; plankton reads as --drift and schooler as --lumen inside CSS so the file
     stays at ten literals. */
  --abyss: #050a14;
  --surface: #0a1729;
  --line: #1b2c47;
  --foam: #e8f1ff;
  --drift: #7d93b8;
  --lumen: #4de3ff;
  --pink: #ff5d8f;
  --tier-rare: #ff5252;
  --tier-deepcut: #9d7bff;
  --tier-krillion: #ffd166;

  /* type */
  --font-pixel: "VT323", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --fs-12: 12px;
  --fs-14: 14px;
  --fs-16: 16px;
  --fs-18: 18px;
  --fs-22: 22px;
  --fs-28: 28px;
  --fs-36: 36px;
  --fs-48: 48px;

  --lh-body: 1.6;
  --lh-head: 1.2;

  /* spacing scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;

  /* shape */
  --radius: 10px;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-2: 0 8px 24px rgba(0, 0, 0, 0.08);

  /* measure */
  --wrap: 1120px;
  --prose: 70ch;
}

/* ---------- base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--foam);
  background-color: var(--abyss);
  background-image:
    radial-gradient(900px 440px at 50% -160px, rgba(77, 227, 255, 0.18), rgba(5, 10, 20, 0) 72%),
    linear-gradient(180deg, rgba(232, 241, 255, 0.1) 0%, rgba(232, 241, 255, 0.035) 12%, rgba(232, 241, 255, 0) 34%, rgba(5, 10, 20, 0.55) 70%, rgba(5, 10, 20, 0.92) 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%, 100% 100%;
  font-family: var(--font-body);
  font-size: var(--fs-16);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

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

a:hover {
  color: var(--foam);
}

:focus-visible {

  outline: 2px solid var(--lumen);
  outline-offset: 2px;
}

::selection {
  background: rgba(77, 227, 255, 0.28);
  color: var(--foam);
}

.skip {
  position: absolute;
  left: var(--s-4);
  top: var(--s-1);
  z-index: 40;
  padding: var(--s-2) var(--s-3);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--foam);
  font-size: var(--fs-14);
  transform: translateY(-200%);
}

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

/* Visually hidden, screen-reader audible — ACCESSIBILITY ONLY (docs/seo/INTERNAL-LINKS.md §4).
   Legitimate use on this site: the play button adds " on krillion.io, opens in a new tab" so a screen
   reader announces what the link does.
   Banned: putting a keyword phrase in here. Text a visitor cannot see but a crawler can is hidden text,
   and Google's spam policy names it alongside keyword stuffing. The anchor for a dense row is the row's
   own visible text; the keyword phrase belongs in the section heading or in a prose slot that prints it. */
.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- shell ---------- */

.surface-line {
  height: 2px;
  background: linear-gradient(90deg, rgba(232, 241, 255, 0) 0%, rgba(232, 241, 255, 0.7) 50%, rgba(232, 241, 255, 0) 100%);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--s-5);
}

.site-head {
  border-bottom: 1px solid var(--line);
  background: var(--abyss);
  box-shadow: var(--shadow-1);
}

.head-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3) var(--s-5);
  padding-top: var(--s-2);
  padding-bottom: var(--s-2);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 0;
  color: var(--foam);
  text-decoration: none;
}

.brand-mark {
  font-family: var(--font-pixel);
  font-size: var(--fs-28);
  line-height: var(--lh-head);
  letter-spacing: 0.06em;
}

.brand-sub {
  font-family: var(--font-pixel);
  font-size: var(--fs-14);
  letter-spacing: 0.16em;
  color: var(--lumen);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-1) var(--s-4);
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--drift);
  font-size: var(--fs-14);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.nav a:hover {
  color: var(--foam);
  text-decoration: underline;
}

/* ---------- hero ---------- */

.hero {
  padding: var(--s-7) 0 var(--s-6);
}

.kicker {
  margin: 0 0 var(--s-3);
  font-family: var(--font-pixel);
  font-size: var(--fs-16);
  letter-spacing: 0.14em;
  text-transform: uppercase;

  color: var(--lumen);
}

.hero-h1 {
  margin: 0;
  font-family: var(--font-pixel);
  font-size: var(--fs-48);
  font-weight: 400;
  line-height: var(--lh-head);
  letter-spacing: 0.01em;
  text-shadow: -2px 0 rgba(255, 93, 143, 0.7), 2px 0 rgba(77, 227, 255, 0.65);
}

.hero-sub {
  max-width: var(--prose);
  margin: var(--s-3) 0 0;
  font-family: var(--font-pixel);
  font-size: var(--fs-22);
  line-height: var(--lh-head);
  color: var(--drift);
}

.lede {
  max-width: var(--prose);
  margin: var(--s-5) 0 0;
  font-size: var(--fs-18);
  color: rgba(232, 241, 255, 0.86);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-6);
  margin: var(--s-5) 0 0;
  padding: var(--s-3) 0 0;
  border-top: 1px solid var(--line);
}

.meta-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s-2);
}

.meta dt {
  font-family: var(--font-pixel);
  font-size: var(--fs-12);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--drift);
}

.meta dd {
  margin: 0;
  font-family: var(--font-pixel);
  font-size: var(--fs-18);
  line-height: var(--lh-head);
  color: var(--foam);
}

.meta-link {
  color: var(--lumen);
  text-decoration: none;
  border-bottom: 1px solid rgba(77, 227, 255, 0.4);
}

.source-note {
  max-width: var(--prose);
  margin: var(--s-4) 0 0;
  padding: var(--s-3) var(--s-4);
  border: 1px solid rgba(255, 209, 102, 0.35);
  border-radius: var(--radius);
  background: rgba(255, 209, 102, 0.06);
  font-size: var(--fs-14);
  color: rgba(232, 241, 255, 0.86);
}

.jumps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
  margin: var(--s-5) 0 0;
}

.jumps-label {
  margin: 0 var(--s-2) 0 0;
  font-family: var(--font-pixel);
  font-size: var(--fs-14);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--drift);
}

.jump {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10, 23, 41, 0.62);
  font-family: var(--font-pixel);
  font-size: var(--fs-18);
  color: var(--lumen);
  text-decoration: none;
}

.meta-foot {
  margin-top: var(--s-5);
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.jump:hover {
  border-color: var(--lumen);
  color: var(--foam);
}

/* ---------- sections ---------- */

.section {
  padding: var(--s-7) 0;
}

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

.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: baseline;
  gap: var(--s-2) var(--s-7);
  margin-bottom: var(--s-5);
}

h2 {
  margin: 0;
  font-family: var(--font-pixel);
  font-size: var(--fs-28);
  font-weight: 400;

  line-height: var(--lh-head);
  letter-spacing: 0.02em;
}

h3 {
  margin: 0;
  font-family: var(--font-pixel);
  font-size: var(--fs-22);
  font-weight: 400;
  line-height: var(--lh-head);
}

.sec-note {
  max-width: 52ch;
  margin: 0;
  font-size: var(--fs-14);
  color: var(--drift);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--s-6) var(--s-7);
  align-items: start;
}

.after {
  margin: var(--s-4) 0 0;
}

.link-more {
  font-size: var(--fs-16);
  font-weight: 600;
  color: var(--lumen);
  text-decoration: none;
  border-bottom: 1px solid rgba(77, 227, 255, 0.45);
}

.link-more:hover {
  color: var(--foam);
  border-bottom-color: var(--foam);
}

.foot-label {
  margin: 0 0 var(--s-3);
  font-family: var(--font-pixel);
  font-size: var(--fs-14);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--drift);
}

/* ---------- prose (markdown bodies and paragraphs) ---------- */

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

.prose > * + * {
  margin-top: var(--s-6);
}

.prose p {
  margin: 0;
  color: rgba(232, 241, 255, 0.84);
}

/* .prose p outranks the sibling rhythm rule, so restate it for stacked blocks */
.prose p + p,
.prose p + ul,
.prose p + ol,
.prose ul + p,
.prose ol + p,
.prose ul + ul,
.prose ol + ol {
  margin-top: var(--s-6);
}

.prose h2 {
  margin-top: var(--s-6);
  font-size: var(--fs-28);
}

.prose h3 {
  margin-top: var(--s-5);
  font-size: var(--fs-22);
}

.prose ul,
.prose ol {
  margin: 0;
  padding-left: var(--s-5);
}

.prose li + li {
  margin-top: var(--s-2);
}

.prose strong {
  color: var(--foam);
  font-weight: 600;
}

.prose a {
  color: var(--lumen);
}

.prose code {
  padding: 0 var(--s-1);
  border-radius: var(--radius);
  background: rgba(27, 44, 71, 0.7);
  font-family: var(--font-pixel);
  font-size: var(--fs-16);
  color: var(--foam);
}

.prose blockquote {
  margin: var(--s-4) 0;
  padding: var(--s-3) var(--s-4);
  border-left: 3px solid var(--lumen);
  background: rgba(10, 23, 41, 0.55);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: rgba(232, 241, 255, 0.84);
}

.prose hr {
  height: 1px;
  margin: var(--s-6) 0;
  border: 0;
  background: var(--line);
}

.prose table {
  width: 100%;
  margin: var(--s-4) 0 0;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: var(--fs-14);
}

.prose th {
  padding: var(--s-2);
  border-bottom: 1px solid var(--drift);
  font-family: var(--font-pixel);
  font-size: var(--fs-14);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
  color: var(--drift);
}

.prose td {
  padding: var(--s-2);
  border-bottom: 1px solid rgba(27, 44, 71, 0.7);
  vertical-align: top;
  overflow-wrap: anywhere;
  color: rgba(232, 241, 255, 0.84);
}

/* ---------- the answer board ---------- */

/* the depth rail that sits beside the board and reads top-down, shallow to deep */
.board-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: var(--s-5);
  align-items: start;
}

.depth-scale {
  position: sticky;
  top: calc(var(--s-7) + var(--s-7));
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.scale-label {
  margin: 0 0 var(--s-3);
  font-family: var(--font-pixel);
  font-size: var(--fs-12);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--drift);
}

.scale-list {
  display: flex;
  flex-direction: column-reverse;
  gap: var(--s-1);
  margin: 0;
  padding: 0;
  list-style: none;
}

.scale-row {
  display: grid;
  grid-template-columns: 3px auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2);
  border-radius: var(--radius);
  background: rgba(232, 241, 255, calc(0.07 * var(--light, 1)));
}

.scale-row[data-tier="plankton"] {
  --light: 1;
}

.scale-row[data-tier="schooler"] {
  --light: 0.85;
}

.scale-row[data-tier="rare"] {
  --light: 0.7;
}

.scale-row[data-tier="deepcut"] {
  --light: 0.55;
}

.scale-row[data-tier="krillion"] {
  --light: 0.4;
}

.scale-bar {
  align-self: stretch;
  min-height: 22px;
  border-radius: var(--radius);
  background: var(--tier);
  opacity: calc(0.45 + 0.55 * var(--light, 1));
}

.scale-emoji {
  font-size: var(--fs-14);
}

.scale-name {
  font-family: var(--font-pixel);
  font-size: var(--fs-14);
  line-height: var(--lh-head);
  color: var(--tier);
  overflow-wrap: anywhere;
}

.scale-pts {
  font-family: var(--font-pixel);
  font-size: var(--fs-14);
  color: var(--tier);
  white-space: nowrap;
}

.scale-note {
  margin: var(--s-3) 0 0;
  font-size: var(--fs-12);
  color: var(--drift);
}

.board {
  display: grid;
  gap: var(--s-5);
}

.prompt {
  padding: var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  scroll-margin-top: var(--s-7);
}

.prompt:hover {
  border-color: rgba(77, 227, 255, 0.32);
}

.prompt-head {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
}

.prompt-num {
  flex: 0 0 auto;
  min-width: 2ch;
  font-family: var(--font-pixel);
  font-size: var(--fs-28);
  line-height: var(--lh-head);
  color: var(--lumen);
}

.prompt-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

.prompt-total {
  margin: var(--s-3) 0 0;
  font-family: var(--font-pixel);
  font-size: var(--fs-14);
  letter-spacing: 0.08em;
  color: var(--drift);
}

/* hint: closed until the player asks for it */
.hint {
  margin-top: var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);

  background: rgba(10, 23, 41, 0.55);
}

.hint summary {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 44px;
  padding: var(--s-2) var(--s-4);
  cursor: pointer;
  list-style: none;
  font-family: var(--font-pixel);
  font-size: var(--fs-16);
  letter-spacing: 0.06em;
  color: var(--lumen);
}

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

.hint summary::before {
  content: "+";
  display: inline-block;
  width: 1ch;
  color: var(--lumen);
}

.hint[open] summary::before {
  content: "\2212";
}

.hint[open] summary {
  border-bottom: 1px solid var(--line);
}

.hint p {
  margin: 0;
  padding: var(--s-3) var(--s-4) var(--s-4);
  font-size: var(--fs-16);
  color: rgba(232, 241, 255, 0.84);
}

/* answer ledger */
.picks {
  margin: var(--s-4) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.pick {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s-1) var(--s-3);
  padding: var(--s-2) 0;
  border-bottom: 1px solid rgba(27, 44, 71, 0.6);
}

.pick-a {
  flex: 1 1 12ch;
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--foam);
}

.pick {
  --tier: var(--drift);
}

.pick[data-tier="plankton"] {
  --tier: var(--drift);
}

.pick[data-tier="schooler"] {
  --tier: var(--lumen);
}

.pick[data-tier="rare"] {
  --tier: var(--tier-rare);
}

.pick[data-tier="deepcut"] {
  --tier: var(--tier-deepcut);
}

.pick[data-tier="krillion"] {
  --tier: var(--tier-krillion);
}

.pick-tag {
  padding: 0 var(--s-2);
  border: 1px solid currentColor;
  border-radius: var(--radius);
  font-family: var(--font-pixel);
  font-size: var(--fs-12);
  letter-spacing: 0.1em;
  line-height: var(--lh-head);
  color: var(--tier);
  white-space: nowrap;
}

.pick-pts {
  font-family: var(--font-pixel);
  font-size: var(--fs-16);
  color: var(--tier);
  white-space: nowrap;
}

.pick-found {
  font-size: var(--fs-12);
  color: var(--drift);
  white-space: nowrap;
}

/* the five rungs of one prompt, with their answer counts */
.tierbars {
  margin-top: var(--s-4);
  padding: var(--s-3) 0 0;
  border-top: 1px solid var(--line);
}

.tierbars-label {
  margin: 0 0 var(--s-2);
  font-family: var(--font-pixel);
  font-size: var(--fs-12);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--drift);
}

.tierbars-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: var(--s-1) var(--s-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.tb {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "name name"
    "pts count";
  align-items: baseline;
  gap: 0 var(--s-2);
  padding: var(--s-1) 0;
  border-bottom: 1px solid rgba(27, 44, 71, 0.6);
}

.tb-name {
  grid-area: name;
  overflow-wrap: anywhere;

  font-size: var(--fs-14);
  color: var(--foam);
}

.tb-pts {
  grid-area: pts;
  font-family: var(--font-pixel);
  font-size: var(--fs-16);
  color: var(--tier, var(--drift));
  white-space: nowrap;
}

.tb-count {
  grid-area: count;
  font-size: var(--fs-12);
  color: var(--drift);
}

/* the deepest answer of a prompt */
.gem {
  margin-top: var(--s-4);
  padding: var(--s-4);
  border: 1px solid rgba(255, 209, 102, 0.38);
  border-left: 3px solid var(--tier-krillion);
  border-radius: var(--radius);
  background: rgba(255, 209, 102, 0.06);
}

.gem-label {
  margin: 0;
  font-family: var(--font-pixel);
  font-size: var(--fs-14);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tier-krillion);
}

.gem-answer {
  margin: var(--s-2) 0 0;
  font-family: var(--font-pixel);
  font-size: var(--fs-28);
  line-height: var(--lh-head);
  color: var(--foam);
  overflow-wrap: anywhere;
}

.gem-quip {
  max-width: var(--prose);
  margin: var(--s-2) 0 0;
  font-size: var(--fs-14);
  color: rgba(232, 241, 255, 0.78);
}

.gem-found {
  margin: var(--s-2) 0 0;
  font-family: var(--font-pixel);
  font-size: var(--fs-12);
  letter-spacing: 0.1em;
  color: var(--drift);
}

/* ---------- day page: the depth bands ---------- */

.day-hero .hero-h1 {
  font-size: var(--fs-36);
}

.descent {
  display: grid;
  gap: var(--s-5);
}

.day-prompt {
  border-left: 2px solid rgba(77, 227, 255, 0.35);
}

.day-prompt .prompt-text {
  font-size: var(--fs-28);
}

.groups {
  display: grid;
  gap: var(--s-2);
  margin: var(--s-4) 0 0;
}

/* light drains with depth: each band sets --light from its own tier key */
.band {
  position: relative;
  padding: var(--s-3) var(--s-4) var(--s-3) var(--s-5);
  border-radius: var(--radius);
  background: rgba(10, 23, 41, calc(0.62 * var(--light, 0.7)));
}

.band::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--tier), rgba(5, 10, 20, 0.05));
  opacity: var(--light, 0.7);
}

.band[data-tier="plankton"] {
  --light: 0.95;
}

.band[data-tier="schooler"] {
  --light: 0.76;
}

.band[data-tier="rare"] {
  --light: 0.58;
}

.band[data-tier="deepcut"] {
  --light: 0.42;
}

.band[data-tier="krillion"] {
  --light: 1;
  background: rgba(255, 209, 102, 0.08);
}

.band-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s-1) var(--s-3);
}

.band-name {
  font-family: var(--font-pixel);
  font-size: var(--fs-18);
  letter-spacing: 0.06em;
  color: var(--tier);
}

.band-pts {
  font-family: var(--font-pixel);
  font-size: var(--fs-16);
  color: var(--tier);
}

.band-count {
  font-family: var(--font-pixel);
  font-size: var(--fs-12);
  letter-spacing: 0.1em;
  color: var(--drift);
}

.band-list {
  margin: var(--s-2) 0 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: var(--s-5);
}

.band-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-1) var(--s-2);
  padding: var(--s-1) 0;
  break-inside: avoid;
}

.band-answer {
  flex: 1 1 10ch;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: var(--fs-16);
  color: rgba(232, 241, 255, 0.9);
}

.band-found {
  font-size: var(--fs-12);
  color: var(--drift);
  white-space: nowrap;
}

.band-more {
  margin: var(--s-2) 0 0;
  font-family: var(--font-pixel);
  font-size: var(--fs-12);
  letter-spacing: 0.1em;
  color: var(--drift);
}

/* ---------- full-tier picks ---------- */

.topfive {
  display: grid;
  gap: var(--s-2);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: tf;
}

.tf {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) auto auto;
  align-items: baseline;
  gap: var(--s-2) var(--s-4);
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--line);
  border-left: 3px solid var(--tier-krillion);
  border-radius: var(--radius);
  background: rgba(255, 209, 102, 0.04);
}

.tf-answer {
  font-family: var(--font-pixel);
  font-size: var(--fs-22);
  line-height: var(--lh-head);
  color: var(--foam);
  overflow-wrap: anywhere;
}

.tf-prompt {
  font-size: var(--fs-14);
  color: var(--drift);
  overflow-wrap: anywhere;
}

.tf-tag {
  font-family: var(--font-pixel);
  font-size: var(--fs-12);
  letter-spacing: 0.1em;
  color: var(--tier-krillion);
  white-space: nowrap;
}

.tf-pts {
  font-family: var(--font-pixel);
  font-size: var(--fs-18);
  color: var(--tier-krillion);
  white-space: nowrap;
}

/* ---------- tier legend ---------- */

.tiers {
  display: grid;
  gap: var(--s-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.tier {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-2) var(--s-4);
  border: 1px solid var(--line);
  border-left: 3px solid var(--tier);
  border-radius: var(--radius);
  background: rgba(10, 23, 41, 0.9);
}

.tier-emoji {
  font-size: var(--fs-18);
}

.tier-name {
  font-family: var(--font-pixel);
  font-size: var(--fs-18);
  color: var(--foam);
}

.tier-pts {
  font-family: var(--font-pixel);
  font-size: var(--fs-18);
  color: var(--tier);
}

.legend-note {
  margin: var(--s-3) 0 0;
  font-size: var(--fs-12);
  color: var(--drift);
}

/* ---------- how to use: numbered steps ---------- */

.steps {
  display: grid;
  gap: var(--s-4);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 0 0 0 var(--s-7);
}

.steps li::before {
  counter-increment: step;
  content: "0" counter(step);

  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-pixel);
  font-size: var(--fs-22);
  line-height: var(--lh-head);
  color: var(--lumen);
}

.steps h3 {
  font-size: var(--fs-22);
  margin-bottom: var(--s-1);
}

.steps p {
  margin: 0;
  font-size: var(--fs-16);
  color: rgba(232, 241, 255, 0.82);
}

/* ---------- yesterday strip ---------- */

.ystrip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-4) var(--s-6);
}

.yrow {
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
}

.yq {
  margin: 0;
  font-size: var(--fs-14);
  color: var(--drift);
  overflow-wrap: anywhere;
}

.ya {
  margin: var(--s-1) 0 0;
  font-family: var(--font-pixel);
  font-size: var(--fs-18);
  line-height: var(--lh-head);
  color: var(--foam);
}

.ypts {
  margin-left: var(--s-2);
  font-size: var(--fs-14);
  letter-spacing: 0.08em;
  color: var(--tier-krillion);
}

.yrow-link {
  display: grid;
  gap: var(--s-1);
  color: var(--foam);
  text-decoration: none;
}

.yrow-link:hover .yrow-date {
  color: var(--lumen);
}

.yrow-date {
  font-family: var(--font-pixel);
  font-size: var(--fs-18);
  line-height: var(--lh-head);
}

.yrow-preview {
  font-size: var(--fs-14);
  color: var(--drift);
  overflow-wrap: anywhere;
}

/* ---------- recent list ---------- */

.recent {
  display: grid;
  gap: var(--s-1);
  margin: 0;
  padding: 0;
  list-style: none;
}

.recent li a {
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  min-height: 44px;
  padding: var(--s-2) 0;
  border-bottom: 1px solid rgba(27, 44, 71, 0.6);
  color: var(--foam);
  text-decoration: none;
}

.recent li a:hover .recent-date {
  color: var(--lumen);
}

.recent-day {
  flex: 0 0 auto;
  min-width: 4ch;
  font-family: var(--font-pixel);
  font-size: var(--fs-14);
  letter-spacing: 0.08em;
  color: var(--drift);
}

.recent-date {
  font-family: var(--font-pixel);
  font-size: var(--fs-18);
}

/* ---------- month / archive rows ---------- */

.mlist {
  display: grid;
  gap: var(--s-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.mrow {
  display: grid;
  grid-template-columns: minmax(5ch, auto) minmax(0, 1fr) auto;
  align-items: baseline;
  gap: var(--s-2) var(--s-4);
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10, 23, 41, 0.8);
  color: var(--foam);
  text-decoration: none;
}

.mrow:hover {
  border-color: rgba(77, 227, 255, 0.4);
}

.mrow-day {
  font-family: var(--font-pixel);
  font-size: var(--fs-14);
  letter-spacing: 0.08em;
  color: var(--drift);
  white-space: nowrap;
}

.mrow-main {
  display: grid;
  gap: var(--s-1);
  min-width: 0;
}

.mrow-date {
  font-family: var(--font-pixel);
  font-size: var(--fs-22);
  line-height: var(--lh-head);
}

.mrow-preview {
  font-size: var(--fs-14);
  color: var(--drift);
  overflow-wrap: anywhere;
}

.mrow-total {
  font-family: var(--font-pixel);
  font-size: var(--fs-14);
  letter-spacing: 0.06em;
  color: var(--drift);
  white-space: nowrap;
}

/* a date range the archive has no sheet for */
.mnote {
  margin: 0;
  padding: var(--s-2) var(--s-4);
  border: 1px dashed rgba(27, 44, 71, 0.9);
  border-radius: var(--radius);
  font-family: var(--font-pixel);
  font-size: var(--fs-14);
  letter-spacing: 0.06em;
  color: var(--drift);
}

/* ---------- best answers: the ranked top rung ---------- */

.ranks {
  display: grid;
  gap: var(--s-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: baseline;
  gap: var(--s-2) var(--s-4);
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10, 23, 41, 0.8);
}

/* the widest gap wears the same gold as the tier it belongs to — a mark, never an ordering */
.rank[data-widest="true"] {
  border-color: rgba(255, 209, 102, 0.45);
  background: rgba(255, 209, 102, 0.07);
}

.rank-n {
  min-width: 8ch;
  font-family: var(--font-pixel);
  font-size: var(--fs-14);
  letter-spacing: 0.08em;
  line-height: var(--lh-head);
  color: var(--drift);
  white-space: nowrap;
}

.rank[data-widest="true"] .rank-n {
  color: var(--tier-krillion);
}

/* the prompt's own answer pool: the reason a count on this row cannot be compared with the next one */
.rank-pool {
  font-size: var(--fs-12);
  color: rgba(125, 147, 184, 0.85);
}

/* how far this pick sits below the most-typed answer on the same prompt */
.rank-gap {
  font-family: var(--font-pixel);
  font-size: var(--fs-12);
  letter-spacing: 0.04em;
  color: var(--drift);
  max-width: 30ch;
}

.rank-best {
  font-family: var(--font-pixel);
  font-size: var(--fs-12);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tier-krillion);
}

.rank-main {
  display: grid;
  gap: var(--s-1);
  min-width: 0;
}

.rank-q {
  font-size: var(--fs-14);
  color: var(--drift);
  overflow-wrap: anywhere;
}

.rank-a {
  font-family: var(--font-pixel);
  font-size: var(--fs-22);
  line-height: var(--lh-head);
  color: var(--foam);
  overflow-wrap: anywhere;
}

.rank-meta {
  display: grid;
  gap: var(--s-1);
  justify-items: end;
  text-align: right;
}

.rank-pts {
  font-family: var(--font-pixel);
  font-size: var(--fs-16);
  color: var(--tier-krillion);
}

.rank-found {
  font-family: var(--font-pixel);
  font-size: var(--fs-12);
  letter-spacing: 0.06em;
  color: var(--drift);
}

@media (max-width: 640px) {
  .rank {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .rank-meta {
    grid-column: 2;
    justify-items: start;

    text-align: left;
  }
}

/* ---------- hints ---------- */

.hintboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-4);
}

.hintcard {
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10, 23, 41, 0.8);
}

.hintcard-num {
  margin: 0 0 var(--s-2);
  font-family: var(--font-pixel);
  font-size: var(--fs-12);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lumen);
}

.hintcard-text {
  margin: 0 0 var(--s-3);
  font-family: var(--font-pixel);
  font-size: var(--fs-22);
  font-weight: 400;
  line-height: var(--lh-head);
  color: var(--foam);
}

.hintcard-hint {
  margin: 0;
  font-size: var(--fs-16);
  color: rgba(232, 241, 255, 0.86);
}

.hintcard-total {
  margin: var(--s-3) 0 0;
  padding-top: var(--s-2);
  border-top: 1px solid var(--line);
  font-family: var(--font-pixel);
  font-size: var(--fs-14);
  letter-spacing: 0.06em;
  color: var(--drift);
}

.inline-link {
  color: var(--lumen);
  text-decoration: none;
  border-bottom: 1px solid rgba(77, 227, 255, 0.4);
}

/* ---------- pager ---------- */

.pager {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--s-3);
  margin: 0;
  padding: 0;
}

/* The date page's six-card block (prev/next/month/archive/today/hints): a fixed three-column grid on
   desktop so it reads as two rows of three instead of five plus an orphan. */
@media (min-width: 900px) {
  .pager-nearby {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.pager-link {
  display: grid;
  gap: var(--s-1);
  min-height: 44px;
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10, 23, 41, 0.8);
  text-decoration: none;
}

.pager-link:hover {
  border-color: var(--lumen);
}

.pager-lbl {
  font-family: var(--font-pixel);
  font-size: var(--fs-12);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--drift);
}

.pager-date {
  font-family: var(--font-pixel);
  font-size: var(--fs-18);
  line-height: var(--lh-head);
  color: var(--foam);
}

/* ---------- faq ---------- */

.faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-5) var(--s-7);
}

.faq-item {
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
}

.faq-q {
  font-size: var(--fs-18);
  margin-bottom: var(--s-2);
}

.faq-a {
  margin: 0;
  font-size: var(--fs-16);
  color: rgba(232, 241, 255, 0.82);
}

/* ---------- related + disclaimer ---------- */

.related {
  margin-top: var(--s-6);
}

.related-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.related-list a {
  display: inline-flex;

  align-items: center;
  min-height: 44px;
  font-size: var(--fs-16);
  color: var(--lumen);
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
}

.disclaim {
  padding-bottom: var(--s-8);
}

.disclaim-text {
  max-width: var(--prose);
  margin: 0;
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
  font-size: var(--fs-14);
  color: var(--drift);
}

/* ---------- document pages (how to play, scoring, legal) ---------- */

.doc {
  padding: var(--s-7) 0 var(--s-8);
}

.doc-head {
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--line);
}

.doc-h1 {
  margin: 0;
  font-family: var(--font-pixel);
  font-size: var(--fs-36);
  font-weight: 400;
  line-height: var(--lh-head);
  letter-spacing: 0.01em;
  color: var(--foam);
  overflow-wrap: anywhere;
}

.doc-body {
  margin-top: var(--s-5);
}

.doc-foot {
  margin-top: var(--s-7);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
}

.doc-faq {
  margin-top: var(--s-7);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line);
}

.doc-faq h2 {
  margin-bottom: var(--s-5);
}

/* ---------- footer ---------- */

.site-foot {
  margin-top: var(--s-7);
  padding: var(--s-7) 0 var(--s-6);
  border-top: 1px solid var(--line);
  background: rgba(3, 7, 16, 0.85);
}

.foot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--s-6);
}

.foot-col {
  display: grid;
  gap: var(--s-2);
  align-content: start;
}

.foot-col a {
  font-size: var(--fs-14);
  color: var(--drift);
  text-decoration: none;
}

.foot-col a:hover {
  color: var(--foam);
  text-decoration: underline;
}

.foot-note p {
  margin: 0 0 var(--s-2);
  font-size: var(--fs-14);
  color: var(--drift);
}

.foot-fine {
  font-family: var(--font-pixel);
  font-size: var(--fs-14);
  letter-spacing: 0.06em;
  color: rgba(125, 147, 184, 0.8);
}

/* ---------- small screens: one column, nothing wider than the screen ---------- */

@media (min-width: 900px) {
  .site-head {
    position: sticky;
    top: 0;
    z-index: 30;
  }
}

@media (max-width: 900px) {
  .split,
  .faq,
  .ystrip,
  .sec-head,
  .board-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .depth-scale {
    position: static;
    order: 2;
  }

  /* the cards come before the legend once the layout stacks: the first answer card should sit as high
     as the copy allows, and the depth scale is a reference strip anyway */
  .board {
    order: 1;
  }

  .scale-note {
    display: none;
  }

  .sec-head {
    gap: var(--s-2);
  }

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

  .tf-prompt {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 var(--s-4);
  }

  .hero {
    padding: var(--s-6) 0 var(--s-5);
  }

  .section {

    padding: var(--s-6) 0;
  }

  .hero-h1,
  .day-hero .hero-h1 {
    font-size: var(--fs-28);
  }

  .hero-sub {
    font-size: var(--fs-18);
  }

  .lede {
    font-size: var(--fs-16);
  }

  .prompt,
  .band,
  .mrow,
  .tf,
  .pager-link {
    padding-left: var(--s-3);
    padding-right: var(--s-3);
  }

  .day-prompt .prompt-text,
  .prompt-text {
    font-size: var(--fs-22);
  }

  .gem-answer,
  .mrow-date {
    font-size: var(--fs-22);
  }

  .band-list {
    columns: 1;
  }

  .pick-found {
    display: none;
  }

  /* the seven prompt jumps fit one row above the first card, label dropped (each chip is labelled
     for screen readers), so the first answer card starts higher on the page */
  .jumps {
    margin-top: var(--s-3);
    gap: var(--s-1);
  }

  .jumps-label {
    display: none;
  }

  .jump {
    min-width: 40px;
    min-height: 40px;
    padding: 0;
  }

  .scale-list {
    flex-direction: row-reverse;
    flex-wrap: nowrap;
    gap: var(--s-1);
  }

  .scale-row {
    flex: 1 1 0;
    grid-template-columns: 3px auto;
    justify-content: center;
    gap: var(--s-1);
    padding: var(--s-1);
  }

  .scale-name {
    display: none;
  }

  .scale-emoji {
    font-size: var(--fs-12);
  }

  .scale-pts {
    font-size: var(--fs-12);
  }

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

  .mrow-day,
  .mrow-total {
    white-space: normal;
  }

  .steps li {
    padding-left: var(--s-6);
  }

  .doc-h1 {
    font-size: var(--fs-28);
  }
}

/* ---------- partner listings (home page only, collapsed until opened) ----------
   The badges live in the homepage template, not in the shared layout: partner
   programmes check the home page HTML, and the other pages stay clean. Closed by
   default so nothing of it shows; the summary is a quiet one-line label. */

.partners {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--s-5) var(--s-8);
}

.partners summary {
  display: block;
  width: max-content;
  font-size: var(--fs-12);
  line-height: var(--lh-body);
  color: var(--drift);
  opacity: 0.7;
  cursor: pointer;
  list-style: none;
}

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

.partners summary::marker {
  content: "";
}

.partners summary::before {
  content: "\00b7";
  margin-right: var(--s-2);
}

.partners[open] summary {
  opacity: 1;
}

.partners-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  margin: var(--s-3) 0 0;
  padding: 0;
  list-style: none;
}

.partners-list img {
  display: block;
  height: auto;
  /* 各家的徽章原始尺寸从 44px 到 120px 不等（drchecker 的代码内联 style 就写着 120px），
     统一封顶到 64px，避免折叠面板一打开是一排高低不齐的图。 */
  max-height: 64px;
  width: auto;
}

.partners-list a {
  font-size: var(--fs-12);
  color: var(--drift);
}

/* ==========================================================================
   Single-prompt page (one prompt of one closed dive)
   The page is that prompt's answer sheet: the prompt is the H1, a search box
   filters the lists in place, and each rarity tier is a collapsed band that
   opens on demand. Same palette, same tier colours — only the shapes differ.
   ========================================================================== */

.q-hero .hero-h1 {
  font-size: var(--fs-36);
  overflow-wrap: anywhere;
}

/* the date page's hand-off to this page, one per prompt that has one */
.prompt-deep {
  display: inline-block;
  margin-top: var(--s-3);
  font-family: var(--font-pixel);
  font-size: var(--fs-14);
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--lumen);
  border-bottom: 1px solid rgba(77, 227, 255, 0.4);
}

.prompt-deep:hover {
  color: var(--foam);
  border-bottom-color: var(--foam);
}

/* ---------- the search box ---------- */

.qfilter {
  display: grid;
  gap: var(--s-2);
  margin: var(--s-4) 0 var(--s-5);
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10, 23, 41, 0.8);
}

.qfilter-label {
  font-family: var(--font-pixel);
  font-size: var(--fs-14);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lumen);
}

.qfilter-input {
  width: 100%;
  min-height: 44px;
  padding: var(--s-2) var(--s-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--abyss);
  color: var(--foam);
  font-family: var(--font-body);
  font-size: var(--fs-16);
}

.qfilter-input::placeholder {
  color: var(--drift);
}

.qfilter-input:focus-visible {
  outline: 2px solid var(--lumen);
  outline-offset: 2px;
}

.qfilter-hint {
  margin: 0;
  font-size: var(--fs-14);
  color: var(--drift);
}

.qfilter-count,
.qfilter-empty {
  margin: 0;
  font-family: var(--font-pixel);
  font-size: var(--fs-12);
  letter-spacing: 0.1em;
  color: var(--drift);
}

.qfilter-empty {
  color: var(--tier-rare);
}

/* ---------- the tiers, as collapsed bands ---------- */

.qbands {
  display: grid;
  gap: var(--s-2);
}

.qband {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  border-left: 3px solid var(--tier);
  background: rgba(10, 23, 41, calc(0.55 * var(--light, 0.7)));
}

.qband[data-tier="plankton"] {
  --light: 0.95;
}

.qband[data-tier="schooler"] {
  --light: 0.76;
}

.qband[data-tier="rare"] {
  --light: 0.58;
}

.qband[data-tier="deepcut"] {
  --light: 0.42;
}

.qband[data-tier="krillion"] {
  --light: 1;
  background: rgba(255, 209, 102, 0.07);
}

.qband-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: baseline;
  gap: var(--s-1) var(--s-3);

  min-height: 56px;
  padding: var(--s-3) var(--s-4);
  cursor: pointer;
  list-style: none;
}

.qband-head::-webkit-details-marker {
  display: none;
}

.qband-pts {
  font-family: var(--font-pixel);
  font-size: var(--fs-22);
  line-height: var(--lh-head);
  color: var(--tier);
}

.qband-name {
  font-family: var(--font-pixel);
  font-size: var(--fs-18);
  letter-spacing: 0.04em;
  color: var(--tier);
  overflow-wrap: anywhere;
}

.qband-count {
  font-family: var(--font-pixel);
  font-size: var(--fs-12);
  letter-spacing: 0.1em;
  color: var(--drift);
  white-space: nowrap;
}

.qband-mark::before {
  content: "+";
  font-family: var(--font-pixel);
  font-size: var(--fs-18);
  color: var(--tier);
}

.qband[open] .qband-mark::before {
  content: "\2212";
}

.qband[open] .qband-head {
  border-bottom: 1px solid rgba(27, 44, 71, 0.9);
}

.qband-body {
  padding: var(--s-3) var(--s-4) var(--s-4);
}

.qband-meaning {
  margin: 0 0 var(--s-3);
  font-family: var(--font-pixel);
  font-size: var(--fs-14);
  letter-spacing: 0.02em;
  color: var(--drift);
}

.qband .band-list {
  margin: 0;
}

/* A tier can hold 15k answers: the list scrolls inside a fixed-height box instead of stretching the page. */
.qband-scroll {
  max-height: 70vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-top: 1px solid rgba(27, 44, 71, 0.6);
  border-bottom: 1px solid rgba(27, 44, 71, 0.6);
  padding: var(--s-2) 0;
  scrollbar-width: thin;
}

.qband-scroll::-webkit-scrollbar {
  width: 8px;
}

.qband-scroll::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 4px;
}

.qband .band-item {
  padding: var(--s-1) 0;
}

/* the filter hides rows with [hidden]; .band-item's own display would otherwise win */
.qband .band-item[hidden],
.qband .band-more[hidden] {
  display: none;
}

.qband-quip {
  margin: var(--s-3) 0 0;
  max-width: var(--prose);
  padding-left: var(--s-3);
  border-left: 2px solid var(--tier-krillion);
  font-size: var(--fs-14);
  color: rgba(232, 241, 255, 0.82);
}

@media (min-width: 1000px) {
  .qband .band-list {
    columns: 3;
  }
}

/* the top answer's alternative spellings, nested inside its band */
.alias {
  margin-top: var(--s-3);
  border-top: 1px solid rgba(255, 209, 102, 0.22);
}

.alias summary {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 40px;
  padding: var(--s-2) 0 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-pixel);
  font-size: var(--fs-14);
  letter-spacing: 0.04em;
  color: var(--drift);
}

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

.alias summary::before {
  content: "+";
  width: 1ch;
}

.alias[open] summary::before {
  content: "\2212";
}

.alias-note {
  max-width: var(--prose);
  margin: var(--s-2) 0 0;
  font-size: var(--fs-14);

  color: var(--drift);
}

.alias-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1) var(--s-2);
  margin: var(--s-3) 0 0;
}

.alias-word {
  padding: 2px var(--s-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: var(--fs-12);
  color: rgba(232, 241, 255, 0.78);
}

.qsource {
  margin: var(--s-4) 0 0;
  font-size: var(--fs-12);
  color: var(--drift);
  max-width: var(--prose);
}

/* ---------- tables (census + scoring) ---------- */

.qtable-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10, 23, 41, 0.6);
}

.qtable {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-14);
}

.qtable thead th {
  padding: var(--s-2) var(--s-3);
  text-align: left;
  white-space: nowrap;
  font-family: var(--font-pixel);
  font-size: var(--fs-12);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--drift);
  border-bottom: 1px solid var(--line);
}

.qtable tbody th,
.qtable tbody td {
  padding: var(--s-2) var(--s-3);
  text-align: left;
  border-bottom: 1px solid rgba(27, 44, 71, 0.7);
}

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

.qtable tbody th {
  font-weight: 400;
  color: var(--tier);
  border-left: 3px solid var(--tier);
  white-space: nowrap;
}

.qtable tbody td {
  color: rgba(232, 241, 255, 0.82);
}

.qtable .qt-pts {
  font-family: var(--font-pixel);
  color: var(--tier);
  white-space: nowrap;
}

.qtable-scoring .qt-mean {
  white-space: normal;
  min-width: 18ch;
}

.qmore {
  margin: var(--s-4) 0 0;
}

/* ---------- where the prompt sat in its dive ---------- */

.ranklist {
  display: grid;
  gap: var(--s-1);
  margin: var(--s-4) 0 0;
  padding: 0;
  list-style: none;
}

.rankrow {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10, 23, 41, 0.55);
}

.rankrow-in {
  display: grid;
  grid-template-columns: 2ch minmax(0, 1fr) auto auto;
  align-items: baseline;
  gap: var(--s-1) var(--s-4);
  padding: var(--s-2) var(--s-3);
  color: inherit;
  text-decoration: none;
}

.rankrow-in:hover .rankrow-text {
  color: var(--foam);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.rankrow.is-this {
  border-color: rgba(77, 227, 255, 0.5);
  background: rgba(77, 227, 255, 0.06);
}

.rankrow-n {
  font-family: var(--font-pixel);
  font-size: var(--fs-18);
  line-height: var(--lh-head);
  color: var(--lumen);
}

.rankrow-text {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: var(--fs-14);
  color: rgba(232, 241, 255, 0.86);
}

.rankrow-here {
  margin-left: var(--s-2);
  font-family: var(--font-pixel);
  font-size: var(--fs-12);
  letter-spacing: 0.12em;
  text-transform: uppercase;

  color: var(--lumen);
  white-space: nowrap;
}

.rankrow-num,
.rankrow-pays {
  font-family: var(--font-pixel);
  font-size: var(--fs-14);
  color: var(--drift);
  white-space: nowrap;
}

/* a heading that carries the prompt text needs the full width of its section */
#faq .sec-head {
  grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 640px) {
  .q-hero .hero-h1 {
    font-size: var(--fs-28);
  }

  .qband-head {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .qband-count {
    grid-column: 2;
    white-space: normal;
  }

  .qband-mark {
    grid-column: 3;
    grid-row: 1;
  }

  .qfilter {
    padding: var(--s-3);
  }

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

  .rankrow-num,
  .rankrow-pays {
    grid-column: 2;
    white-space: normal;
  }
}

/* ---------- prompt page: search results + "show all" ---------- */

.qresults {
  margin-top: var(--s-3);
  border-top: 1px solid var(--line);
  padding-top: var(--s-3);
}

.qresults-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2px;
  max-height: 60vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.qresult {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-1) 0;
  border-bottom: 1px solid rgba(27, 44, 71, 0.5);
}

.qresult-answer {
  min-width: 0;
  overflow-wrap: anywhere;
  color: rgba(232, 241, 255, 0.92);
}

.qresult-tier {
  flex: 0 0 auto;
  font-family: var(--font-pixel);
  font-size: var(--fs-12);
  letter-spacing: 0.06em;
  color: var(--tier, var(--drift));
  white-space: nowrap;
}

.qresult-tier[data-tier="krillion"] {
  color: var(--tier-krillion);
}

.qresult-tier[data-tier="deepcut"] {
  color: var(--tier-deepcut);
}

.qresult-tier[data-tier="rare"] {
  color: var(--tier-rare);
}

.qresult-tier[data-tier="schooler"] {
  color: var(--lumen);
}

.qresult-tier[data-tier="plankton"] {
  color: var(--drift);
}

.qresults-more {
  margin: var(--s-2) 0 0;
  font-size: var(--fs-12);
  color: var(--drift);
}

.qband-more {
  margin-top: var(--s-3);
  min-height: 40px;
  padding: var(--s-2) var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10, 23, 41, 0.9);
  color: var(--lumen);
  font-family: var(--font-pixel);
  font-size: var(--fs-14);
  letter-spacing: 0.06em;
  cursor: pointer;
}

.qband-more:hover {
  border-color: var(--lumen);
  color: var(--foam);
}

/* ==========================================================================
   Play entry, and answers that copy themselves
   Two jobs that share no colours: the play entry is the page's one loud
   button (--lumen), the copy mark is quiet until it is used.
   ========================================================================== */

/* ---------- play entry: home hero + bottom-right on every page ---------- */

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-3);
  margin: var(--s-5) 0 0;
}

.btn-play,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 44px;
  padding: var(--s-2) var(--s-5);
  border-radius: var(--radius);
  font-family: var(--font-pixel);
  font-size: var(--fs-18);
  line-height: var(--lh-head);
  letter-spacing: 0.06em;
  text-decoration: none;
}

.btn-play {
  border: 1px solid var(--lumen);
  background: var(--lumen);
  color: var(--abyss);
  box-shadow: var(--shadow-2);
}

.btn-play:hover {
  border-color: var(--foam);
  background: var(--foam);
  color: var(--abyss);
}

/* the play triangle is drawn rather than typed: the pixel face has no dependable glyph for it */
.btn-play-ico,
.play-fab-ico {
  flex: none;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
}

.btn-ghost {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--foam);
}

.btn-ghost:hover {
  border-color: var(--lumen);
  color: var(--lumen);
}

.hero-cta-note {
  max-width: var(--prose);
  margin: var(--s-2) 0 0;
  font-size: var(--fs-14);
  color: var(--drift);
}

.play-fab {
  position: fixed;
  right: calc(var(--s-4) + env(safe-area-inset-right, 0px));
  bottom: calc(var(--s-4) + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 44px;
  padding: var(--s-2) var(--s-4);
  border: 1px solid var(--lumen);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-2);
  font-family: var(--font-pixel);
  font-size: var(--fs-16);
  line-height: var(--lh-head);
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--foam);
}

.play-fab:hover,
.play-fab:focus-visible {
  border-color: var(--lumen);
  background: var(--lumen);
  color: var(--abyss);
}

/* ---------- copyable answers ---------- */

.answer-copy {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: color 0.15s ease;
}

.answer-copy .answer-text {
  min-width: 0;
  overflow-wrap: anywhere;
}

.answer-copy:hover {
  color: var(--lumen);
}

.answer-copy:focus-visible {
  outline: 2px solid var(--lumen);
  outline-offset: 2px;
}

/* The copy mark: a clipboard whose clip is the second box behind the body, so it needs no glyph from

   either font and stays crisp at 12px. Quiet until the row is hovered, focused or just used. */
.answer-ico {
  position: relative;
  flex: none;
  width: 11px;
  height: 13px;
  color: var(--drift);
  opacity: 0.6;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.answer-ico::before,
.answer-ico::after {
  content: "";
  position: absolute;
  border: 1px solid currentColor;
}

.answer-ico::before {
  top: 2px;
  right: 0;
  bottom: 0;
  left: 0;
  border-radius: 2px;
}

.answer-ico::after {
  top: 0;
  left: 3px;
  width: 5px;
  height: 4px;
  border-radius: 1px;
}

.answer-copy:hover .answer-ico,
.answer-copy:focus-visible .answer-ico,
.answer-copy.is-copied .answer-ico {
  color: var(--lumen);
  opacity: 1;
}

.answer-copy.is-copied {
  color: var(--lumen);
}

/* the rarest answer is set at display size, so its mark is scaled to match */
.gem-answer .answer-ico {
  width: 15px;
  height: 17px;
}

/* rows that hold a copy button keep the row, not the button, as the thing that stretches */
.pick .answer-copy,
.band-item .answer-copy,
.qresult .answer-copy {
  flex: 1 1 auto;
}

/* the one line of feedback for a copy; sits above the play button so the two never collide */
.copy-toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--s-8) + var(--s-4) + env(safe-area-inset-bottom, 0px));
  z-index: 70;
  max-width: calc(100% - var(--s-7));
  margin: 0;
  padding: var(--s-2) var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-2);
  font-family: var(--font-pixel);
  font-size: var(--fs-14);
  line-height: var(--lh-head);
  letter-spacing: 0.06em;
  color: var(--foam);
  opacity: 0;
  transform: translate(-50%, var(--s-1));
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

.copy-toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 640px) {
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-play,
  .btn-ghost {
    justify-content: center;
  }

  .play-fab {
    /* a phone gives the answers the room: the entry keeps its 44px tap target and its verb, and drops only
       the game's name (the link's aria-label still carries the whole thing) */
    right: calc(var(--s-3) + env(safe-area-inset-right, 0px));
    bottom: calc(var(--s-3) + env(safe-area-inset-bottom, 0px));
    padding: var(--s-2) var(--s-3);
    font-size: var(--fs-16);
  }

  .play-fab-brand {
    display: none;
  }

  .copy-toast {
    bottom: calc(var(--s-8) + var(--s-3) + env(safe-area-inset-bottom, 0px));
    font-size: var(--fs-12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .answer-copy,
  .answer-ico,
  .copy-toast {
    transition: none;
  }
}
