/* Slew, style B "Pocket Console".
   Design note: a handheld console picked up off the couch. Friendly and bright, with clean modern text.
   The one signature detail: the featured game sits inside a console shell (screen, d-pad, round buttons).
   Everything else stays calm: white page, soft grey tiles, orange only where something can be pressed. */
:root {
  /* palette: 12 base colours; every other shade is mixed from these */
  --bg: #ffffff;
  --soft: #f2f4f8;
  --line: #e3e5ee;
  --ink: #1f2041;
  --muted: #50536e;
  --orange: #ff6b1a;       /* primary: buttons and the header band (ink text on it, 5.5:1) */
  --orange-text: #b8490c;  /* orange for text on white (5.3:1) */
  --sun: #ffc93c;          /* second button colour */
  --shell: #2b2d42;        /* console body and footer */
  --shell-text: #e8e9f3;
  --shell-muted: #aeb1c8;
  --lcd: #c4e86b;          /* console screen and counters */
  --lcd-ink: #2f4a12;
  /* mixed shades */
  --soft-hover: color-mix(in srgb, var(--soft), var(--ink) 4%);
  --orange-deep: color-mix(in srgb, var(--orange), var(--ink) 35%);
  --heart: color-mix(in srgb, var(--orange), var(--ink) 20%);
  --lcd-edge: color-mix(in srgb, var(--lcd), var(--lcd-ink) 14%);
  --hole: color-mix(in srgb, var(--shell), var(--ink) 60%);
  --hole-deep: color-mix(in srgb, var(--hole), var(--ink) 50%);
  --dpad: color-mix(in srgb, var(--shell), var(--shell-text) 16%);
  --shade-1: color-mix(in srgb, var(--ink) 6%, transparent);
  --shade-2: color-mix(in srgb, var(--ink) 12%, transparent);
  --shade-3: color-mix(in srgb, var(--ink) 22%, transparent);
  --shade-4: color-mix(in srgb, var(--ink) 35%, transparent);
  --radius: 16px;
  --shadow-1: 0 1px 2px var(--shade-1);
  --shadow-2: 0 8px 24px var(--shade-2);
  --font-head: "Rubik", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--orange-text); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 16px; }
h1 { font-size: 48px; font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: 28px; font-weight: 700; }
h3 { font-size: 22px; font-weight: 700; }
p { margin: 0 0 16px; }
.small { font-size: 14px; color: var(--muted); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: 16px; top: -64px; background: var(--ink); color: var(--bg); padding: 8px 16px; border-radius: var(--radius); z-index: 10; }
.skip:focus { top: 16px; color: var(--bg); }

/* main action button: an orange arcade "start" button, raised, that sinks in when pressed */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border: 0; border-radius: 14px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--orange), var(--bg) 18%), var(--orange) 60%);
  color: var(--ink); font-weight: 600; text-decoration: none;
  box-shadow: 0 4px 0 var(--orange-deep), inset 0 1px 0 color-mix(in srgb, var(--bg) 35%, transparent);
  transform: translateY(-2px);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.15s ease;
}
.btn:hover { color: var(--ink); filter: brightness(1.05); }
.btn:active, .btn:disabled { transform: translateY(1px); box-shadow: 0 1px 0 var(--orange-deep), inset 0 1px 0 color-mix(in srgb, var(--bg) 35%, transparent); }
.btn:disabled { cursor: wait; filter: saturate(0.6); opacity: 0.75; }
.btn svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.btn.is-sending .i-send { animation: slew-send 0.6s cubic-bezier(0.3, 0.7, 0.4, 1.2); }
.text-btn { background: none; border: 0; padding: 4px 0; color: var(--orange-text); font-size: 14px; font-weight: 600; }
.text-btn:hover { color: var(--ink); }

/* header: an orange band, like the top of the console box */
.site-header { background: var(--orange); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand .mark { width: 36px; height: 36px; flex: none; display: block; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 24px; }
/* Top menu: pill buttons with an icon. A soft white fill on the orange says "tap me"; hover turns it white;
   the current page is solid navy (the console colour) so visitors always know where they are. */
.site-nav { display: flex; align-items: center; gap: 8px; }
.nav-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 24%, transparent); box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--ink) 12%, transparent);
  color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 600; white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease, transform 0.15s ease;
}
.nav-btn { --nav-acc: var(--sun); }
.nav-btn svg { width: 20px; height: 20px; flex: none; fill: currentColor; stroke: none; }
.nav-btn .ic-acc { fill: var(--nav-acc); }
.nav-btn .ic-line { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.nav-btn:hover { background: var(--bg); color: var(--ink); transform: translateY(-1px); }
.nav-btn:active { transform: translateY(1px); }
.nav-btn[aria-current="page"] { background: var(--shell); color: var(--shell-text); box-shadow: none; --nav-acc: var(--sun); }
.nav-btn[aria-current="page"]:hover { transform: none; }

/* hero: one centred line of title, a short intro, then straight into the console */
.hero { padding-top: 24px; padding-bottom: 16px; text-align: center; }
.hero h1 { font-size: 36px; margin-bottom: 8px; text-wrap: balance; }
.hero .lede { margin: 0 auto; max-width: 820px; font-size: 16px; }
.lede { color: var(--muted); font-size: 18px; max-width: 62ch; }
.section-title { margin-bottom: 24px; }
.section-intro { max-width: 720px; margin: 0 auto 24px; text-align: center; }
.latest .section-title, .more-topics .section-title, .added .section-title, .trending .section-title, .guides .section-title { text-align: center; }
.section-intro p { color: var(--muted); margin: 0; }

/* the console around the featured game */
.spotlight { padding-top: 8px; position: relative; }
/* The console rim meets the chest at 93.5% of the image height. Only the paws extend below it. */
.console-peek { position: absolute; z-index: 2; left: 32px; top: -78px; width: 92px; height: 92px; pointer-events: none; }
.spotlight .console { position: relative; }
.console {
  background: var(--shell); border-radius: 32px; padding: 12px 24px 16px;
  box-shadow: var(--shadow-2);
}
.console-top { display: flex; align-items: center; gap: 12px; padding: 0 4px 12px; }
.console-top h2 { margin: 0; font-size: 18px; font-weight: 700; color: var(--shell-text); letter-spacing: 0.02em; }
.led { width: 10px; height: 10px; border-radius: 50%; background: var(--lcd); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lcd) 20%, transparent); flex: none; }
.console-screen {
  width: 100%; max-width: 100%; aspect-ratio: 16 / 9; max-height: max(320px, calc(100vh - 360px));
  background: var(--lcd); border-radius: 12px; box-shadow: inset 0 0 0 8px var(--lcd-edge);
  display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; color: var(--lcd-ink);
}
.screen-empty, .screen-card { display: grid; gap: 8px; justify-items: center; }
.screen-card { color: var(--lcd-ink); text-decoration: none; }
.screen-card:hover { color: var(--ink); }
.screen-name { font-family: var(--font-head); font-weight: 800; font-size: 28px; margin: 0; }
.screen-blurb { margin: 0; font-size: 16px; max-width: 46ch; }
.console-controls { display: flex; align-items: flex-start; gap: 24px; padding-top: 16px; }
/* A playable game on the console screen: the game sets its own shape (16:9, or 4:3 on phones). */
.console-screen.has-game { display: block; aspect-ratio: auto; max-height: none; padding: 8px; }
.game-slot { width: 100%; max-width: calc((100vh - 200px) * 16 / 9); min-width: min(100%, 560px); margin: 0 auto; }
.spotlight-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; margin: 16px 0 0; text-align: center; color: var(--muted); font-size: 16px; }
.spotlight-note a { font-weight: 600; }
.play-wrap { margin-top: 32px; }
/* "On this page" sidebar on keyword pages: sits in the empty space beside the 70ch text column on wide screens,
   stays in view while reading, and is hidden below 1000px (the page is single-column there). */
.page-wrap.has-toc { display: grid; grid-template-columns: minmax(0, 70ch) 240px; justify-content: space-between; align-items: start; gap: 48px; }
.toc { position: sticky; top: 24px; }
.toc nav { border-left: 3px solid var(--line); padding: 4px 0 4px 16px; }
.toc-title { margin: 0 0 12px; font-family: var(--font-head); font-weight: 700; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.toc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.toc-list a { display: block; position: relative; padding: 4px 0; color: var(--muted); font-size: 15px; line-height: 1.4; text-decoration: none; }
.toc-list a:hover { color: var(--ink); text-decoration: underline; }
.toc-list a.is-current { color: var(--orange-text); font-weight: 600; }
.toc-list a.is-current::before { content: ""; position: absolute; left: -19px; top: 4px; bottom: 4px; width: 3px; border-radius: 3px; background: var(--orange); }
@media (max-width: 1000px) {
  .page-wrap.has-toc { display: block; }
  .toc { display: none; }
}

/* Today's Top 10: its own section under the game console (filled in by the game's script). */
.leaderboard { margin-top: 24px; padding: 24px; background: var(--soft); border-radius: var(--radius); }
.leaderboard[hidden] { display: none; }
.lb-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.lb-title { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 22px; }
.lb-title img { width: 48px; height: 48px; flex: none; mix-blend-mode: multiply; }
.lb-more {
  min-height: 44px; padding: 0 20px; border: 2px solid var(--ink); border-radius: 999px; background: var(--bg);
  color: var(--ink); font-family: var(--font-head); font-weight: 700; font-size: 16px; white-space: nowrap;
}
.lb-more:hover { background: var(--soft-hover); }
.lb-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(var(--lb-rows, 5), auto); grid-auto-flow: column; gap: 8px 24px; }
.lb-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 16px; background: var(--bg); border-radius: 12px; box-shadow: var(--shadow-1); }
.lb-list li.is-me { box-shadow: inset 0 0 0 2px var(--orange); font-weight: 600; }
.lb-list li.is-note { grid-column: 1 / -1; grid-row: 1; display: block; text-align: center; color: var(--muted); }
.lb-rank { font-family: var(--font-head); font-weight: 800; color: var(--muted); }
.lb-list li:nth-child(-n+3) .lb-rank { color: var(--orange-text); }
.lb-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-pts { font-family: var(--font-head); font-weight: 700; }
.lb-foot { margin: 16px 0 0; color: var(--muted); font-size: 15px; font-weight: 600; }
.lb-foot:empty { display: none; }
.quick-how { margin-top: 24px; }
.quick-how-title { font-size: 22px; margin-bottom: 12px; }
.quick-how-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.quick-how-list li { display: grid; gap: 4px; align-content: start; padding: 16px; }
.quick-how-key { font-family: var(--font-head); font-weight: 700; font-size: 16px; color: var(--ink); }
.quick-how-text { font-size: 15px; line-height: 1.5; color: var(--muted); }
.quick-how-more { margin: 12px 0 0; }
.dpad { position: relative; width: 48px; height: 48px; flex: none; margin-top: 4px; }  /* level with the face buttons */
.dpad::before, .dpad::after { content: ""; position: absolute; background: var(--dpad); border-radius: 4px; }
.dpad::before { left: 16px; top: 0; width: 16px; height: 48px; }
.dpad::after { top: 16px; left: 0; width: 48px; height: 16px; }
.grille { display: flex; gap: 8px; transform: rotate(-24deg); flex: none; margin-top: 16px; }
.grille i { width: 4px; height: 24px; border-radius: 4px; background: var(--dpad); display: block; }
.console-controls .social { margin-left: auto; }

/* like / comment / share: round face buttons, like the two on the logo, in the palette's three
   button colours. Each sits in a dark well with a caption printed on the shell below it; Like's
   caption is the LCD like counter. Every caption slot has a fixed width (Share/Copied are stacked
   in one slot), so nothing shifts when a state changes. A click presses the cap down; liking also
   fills the heart, gives it a beat and floats a small heart up that fades away. */
.social { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.face-buttons { flex-wrap: nowrap; align-items: flex-start; gap: 0; }
.face {
  display: inline-grid; justify-items: center; gap: 6px; width: 72px; padding: 2px 0 0;
  border: 0; border-radius: 14px; background: none; color: var(--shell-muted); text-decoration: none;
  font-family: var(--font-head); font-size: 12px; font-weight: 700; line-height: 20px;
  letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.face:hover { color: var(--shell-text); }
.face:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.face-well {
  position: relative; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--hole); box-shadow: inset 0 2px 0 var(--shade-4);
}
.face-cap {
  --cap: var(--orange);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink);
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--cap), var(--bg) 35%), var(--cap) 55%, color-mix(in srgb, var(--cap), var(--ink) 10%));
  box-shadow: 0 4px 0 color-mix(in srgb, var(--cap), var(--ink) 40%); transform: translateY(-2px);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.face-comment .face-cap { --cap: var(--lcd); }
.face-share .face-cap { --cap: var(--sun); }
.face:hover .face-cap { filter: brightness(1.05); }
.face:active .face-cap, .face.is-pressing .face-cap { transform: translateY(1px); box-shadow: 0 1px 0 color-mix(in srgb, var(--cap), var(--ink) 40%); }
.face-cap svg {
  grid-area: 1 / 1; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round; overflow: visible;
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.3, 0.7, 0.4, 1.3);
}
.face-label { display: grid; justify-items: center; white-space: nowrap; }
.swap { display: inline-grid; overflow: hidden; justify-items: center; }
.swap > span { grid-area: 1 / 1; transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.3, 0.7, 0.4, 1.2); }
.swap .l-on { opacity: 0; transform: translateY(80%); }
.face-share.is-copied .l-off { opacity: 0; transform: translateY(-80%); }
.face-share.is-copied .l-on { opacity: 1; transform: none; }

/* like */
.face-like .i-heart path { transition: fill 0.2s ease; }
.face-like[aria-pressed="true"] .i-heart path { fill: currentColor; }
.face-like.is-liking .i-heart { animation: slew-beat 0.5s cubic-bezier(0.3, 0.7, 0.4, 1.3); }
.heart-rise {
  position: absolute; left: 50%; top: 2px; width: 12px; height: 12px; margin-left: -6px; z-index: 2;
  fill: var(--heart); opacity: 0; pointer-events: none; overflow: visible;
}
.face-like.is-liking .heart-rise { animation: slew-heart-rise 0.85s 0.12s ease-out; }

/* the LCD counter */
.counter {
  position: relative; display: inline-block; min-width: 3.4ch; padding: 0 6px; border-radius: 6px;
  background: var(--lcd); color: var(--lcd-ink); box-shadow: inset 0 0 0 2px var(--lcd-edge);
  font-family: var(--font-head); font-weight: 700; font-size: 14px; line-height: 20px; text-align: center;
  letter-spacing: 0; font-variant-numeric: tabular-nums; overflow: visible;
}
.counter .count { display: inline-block; }
.counter .count:empty::before { content: "\2013"; opacity: 0.6; }  /* "–" until the real count arrives */
.counter .count.bump { animation: slew-count 0.35s ease-out; }
.counter::after {
  content: attr(data-delta); position: absolute; left: calc(100% + 4px); top: 0;
  color: var(--sun); font-size: 13px; opacity: 0; pointer-events: none; white-space: nowrap;
}
.counter.pop::after { animation: slew-float 0.75s ease-out; }

/* share */
.face-share.is-pressing .i-share { animation: slew-launch 0.45s cubic-bezier(0.3, 0.7, 0.4, 1.3); }
.face-share .i-check { opacity: 0; transform: scale(0.4); }
.face-share .i-check path { stroke-dasharray: 22; stroke-dashoffset: 22; }
.face-share.is-copied .i-share { opacity: 0; transform: translateY(-8px) scale(0.6); }
.face-share.is-copied .i-check { opacity: 1; transform: none; }
.face-share.is-copied .i-check path { animation: slew-draw 0.35s 0.08s ease-out forwards; }

/* after a comment is sent: the bowing panda covers the form with a thank-you */
.talk-form { position: relative; }
.thanks { position: absolute; inset: 0; z-index: 3; display: grid; align-content: center; justify-items: center; gap: 4px;
  padding: 24px; text-align: center; background: var(--soft); border-radius: inherit; animation: slew-thanks-in 0.3s ease-out; }
.thanks[hidden] { display: none; }
.thanks-art { width: 136px; height: 136px; margin-bottom: 4px; animation: slew-bow 0.9s 0.15s ease-in-out both; transform-origin: 50% 90%; }
.thanks-title { margin: 0; font-family: var(--font-head); font-weight: 800; font-size: 22px; color: var(--ink); }
.thanks-text { margin: 0 0 8px; color: var(--muted); max-width: 36ch; }
@keyframes slew-thanks-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes slew-bow { 0% { transform: translateY(8px) scale(0.9); opacity: 0; } 40% { transform: none; opacity: 1; } 65% { transform: rotate(-4deg); } 100% { transform: none; } }
@keyframes slew-beat { 0% { transform: scale(1); } 30% { transform: scale(1.35); } 60% { transform: scale(0.9); } 100% { transform: scale(1); } }
@keyframes slew-heart-rise { 0% { opacity: 0; transform: translateY(4px) scale(0.5); } 25% { opacity: 1; transform: translateY(-4px) scale(1); } 100% { opacity: 0; transform: translate(7px, -24px) scale(0.75) rotate(12deg); } }
@keyframes slew-count { 0% { opacity: 0; transform: translateY(60%); } 100% { opacity: 1; transform: none; } }
@keyframes slew-float { 0% { opacity: 0; transform: translateY(4px); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-16px); } }
@keyframes slew-launch { 0% { transform: none; } 35% { transform: translateY(-5px); } 65% { transform: translateY(1px); } 100% { transform: none; } }
@keyframes slew-draw { to { stroke-dashoffset: 0; } }
@keyframes slew-send { 0% { transform: none; opacity: 1; } 40% { transform: translate(8px, -8px) scale(0.8); opacity: 0; } 41% { transform: translate(-8px, 8px) scale(0.8); opacity: 0; } 100% { transform: none; opacity: 1; } }

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

/* sections */
.trending, .guides, .latest, .more-topics, .why, .how, .added, .faq, .talk { margin-top: 64px; }
.kind { color: var(--orange-text); font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.tile { background: var(--soft); border-radius: var(--radius); }

/* rows: trending + new this week */
.row-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center;
  padding: 16px 24px; background: var(--soft); border-radius: var(--radius); color: var(--ink); text-decoration: none;
}
.row:hover { background: var(--soft-hover); color: var(--ink); }
.row:hover .row-name { text-decoration: underline; }
.tag { background: var(--ink); color: var(--bg); border-radius: 999px; padding: 2px 12px; font-size: 14px; font-weight: 600; }
.row-main { display: grid; gap: 4px; min-width: 0; }
.row-name { font-family: var(--font-head); font-weight: 700; font-size: 18px; }
.row-blurb { color: var(--muted); font-size: 16px; }
.row time { color: var(--muted); font-size: 14px; font-weight: 600; white-space: nowrap; }
/* Rows with a game picture (New This Week, Games): picture | tag + name + blurb | date */
.row.has-thumb { grid-template-columns: 176px minmax(0, 1fr) auto; padding: 12px 24px 12px 12px; }
.row-thumb { display: block; width: 176px; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; background: var(--shell); box-shadow: var(--shadow-1); }
.row.has-thumb .row-main .tag { justify-self: start; margin-bottom: 4px; }
.row.has-thumb:hover .row-thumb { filter: brightness(1.06); }
.more-link { margin: 16px 0 0; text-align: center; font-weight: 600; }
.row-list.is-folded > li[data-folded] { display: none; }
.latest-toggle { margin: 16px 0 0; text-align: center; }
.fold-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 0 20px; border: 2px solid var(--line); border-radius: 999px;
  background: var(--bg); color: var(--ink); font-family: var(--font-head); font-size: 15px; font-weight: 700;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.fold-btn:hover { background: var(--soft); border-color: var(--ink); }
/* Achievements page */
.ach-summary { padding: 24px; background: var(--soft); border-radius: var(--radius); max-width: 720px; }
.ach-summary-title { font-size: 22px; margin-bottom: 8px; }
.ach-count { margin: 0 0 12px; font-size: 18px; color: var(--muted); }
.ach-count b { font-family: var(--font-head); font-size: 28px; color: var(--ink); }
.ach-note { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.ach-meter { display: block; height: 8px; margin-top: 8px; background: var(--line); border-radius: 8px; overflow: hidden; }
.ach-meter > span { display: block; height: 100%; width: 0; background: var(--orange); border-radius: 8px; transition: width 0.6s ease; }
.ach-meter-big { height: 12px; margin-top: 0; }
.ach-group { margin-top: 48px; }
.ach-group-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 16px; }
.ach-group-head h2 { margin: 0; }
.ach-play { font-weight: 600; }
.ach-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 12px; }
.ach { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; align-items: start; padding: 16px; background: var(--bg); border: 2px solid var(--line); border-radius: var(--radius); }
.ach-badge { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--muted); }
.ach-badge svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ach-badge .i-trophy { display: none; }
.ach-main { display: grid; gap: 4px; min-width: 0; }
.ach-title { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--muted); }
.ach-text { font-size: 15px; line-height: 1.5; color: var(--muted); }
.ach-state { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.ach.is-unlocked { border-color: var(--sun); background: color-mix(in srgb, var(--sun) 10%, var(--bg)); }
.ach.is-unlocked .ach-badge { background: var(--sun); color: var(--ink); box-shadow: inset 0 -3px 0 var(--shade-3); }
.ach.is-unlocked .ach-badge .i-trophy { display: block; }
.ach.is-unlocked .ach-badge .i-lock { display: none; }
.ach.is-unlocked .ach-title { color: var(--ink); }
.ach.is-unlocked .ach-state { color: var(--orange-text); }
.ach-about { margin-top: 48px; }
.row-progress { margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--muted); }
.row-progress.is-played { color: var(--ink); }
.row-stars { margin-right: 4px; color: var(--orange-text); letter-spacing: 2px; font-size: 16px; }
.empty-note {
  position: relative; overflow: hidden; min-height: 136px; display: flex; align-items: center; justify-content: center;
  padding: 24px 168px; background: var(--soft); border-radius: var(--radius); color: var(--muted); text-align: center;
}
.empty-note p { margin: 0; }
/* mascot peeking in from the note's right edge (the art is on white; multiply drops the white) */
.note-peek { position: absolute; top: 0; right: 0; bottom: 0; width: 156px; overflow: hidden; pointer-events: none; }
.note-peek img { position: absolute; top: -2px; right: 0; width: 236px; height: 236px; max-width: none; mix-blend-mode: multiply; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.guide-tile { display: grid; gap: 8px; padding: 24px; color: var(--ink); text-decoration: none; }
.guide-tile:hover { background: var(--soft-hover); color: var(--ink); }

/* why: copy on the left, four button-dot tiles on the right */
.why { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: start; }
.why-copy p { color: var(--muted); max-width: 62ch; }
.fact-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fact { display: grid; gap: 8px; padding: 24px; align-content: start; }
.fact-dot { width: 24px; height: 24px; border-radius: 50%; background: var(--sun); box-shadow: inset 0 -3px 0 var(--shade-3); }
.fact:nth-child(2) .fact-dot { background: var(--orange); }
.fact:nth-child(3) .fact-dot { background: var(--lcd); }
.fact:nth-child(4) .fact-dot { background: var(--shell); }
.fact-title { font-family: var(--font-head); font-size: 18px; font-weight: 700; }
.fact-text { color: var(--muted); font-size: 16px; }

/* how playing works: four tiles across */
.how-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.how-step { padding: 24px; }
.how-step h3 { font-size: 18px; margin-bottom: 8px; }
.how-step p { color: var(--muted); font-size: 16px; margin: 0; }

/* what gets added: two columns */
.added-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.added-col h3 { font-size: 18px; margin-bottom: 8px; }
.added-col p { color: var(--muted); margin: 0; }

/* long-form copy (inner pages) */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 48px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; margin-top: 32px; margin-bottom: 8px; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 24px; margin: 0 0 16px; }
.prose li { margin-bottom: 8px; }

/* faq */
.faq h2 { text-align: center; margin: 0; }
.faq-head { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 24px; }
.faq-art { width: 96px; height: 96px; flex: none; margin: -16px 0 -8px; }
.faq-list { column-count: 2; column-gap: 16px; }
.faq-item { background: var(--soft); border-radius: var(--radius); break-inside: avoid; margin-bottom: 12px; }
.faq-item summary { display: block; list-style: none; padding: 16px 16px 16px 24px; font-weight: 600; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
/* the icon is a real element in a flex row (not an absolutely placed ::after on <summary>, which
   Safari misplaces when the question wraps), so it stays centred beside any number of lines */
.faq-q { display: flex; align-items: center; gap: 16px; }
.faq-q > span:first-child { flex: 1; min-width: 0; }
.faq-icon {
  flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--sun); color: var(--ink);
  display: grid; place-items: center; font-size: 22px; line-height: 1; font-weight: 600;
}
.faq-icon::before { content: "+"; }
.faq-item[open] .faq-icon { background: var(--orange); }
.faq-item[open] .faq-icon::before { content: "\2212"; }
.faq-item p { padding: 0 24px 16px; margin: 0; color: var(--muted); }

/* comments */
/* comments: centred header, then topics and form side by side (equal height), then a full-width board */
.talk-row { display: grid; grid-template-columns: 1fr 1.25fr; gap: 24px; align-items: stretch; }
.card { background: var(--soft); border-radius: var(--radius); }
.talk-form { display: grid; gap: 16px; padding: 24px; }
.talk-form label { display: grid; gap: 8px; font-weight: 600; font-size: 16px; }
.label-text .small { font-weight: 400; }

/* topic picker: three selectable cards, each with a console-button dot */
.topics { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.topics legend { padding: 0; margin-bottom: 12px; font-weight: 600; font-size: 16px; }
.topics .topic { flex: 1; align-items: center; }
.topic {
  position: relative; display: flex; align-items: flex-start; gap: 16px; padding: 16px;
  background: var(--soft); border: 2px solid transparent; border-radius: var(--radius); cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.topic:hover { background: var(--soft-hover); }
.topic input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.topic.is-selected { background: var(--bg); border-color: var(--ink); }
.topic:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 3px; }
.topic-art {
  width: 72px; height: 72px; flex: none; margin: -8px 0; mix-blend-mode: multiply;
  transition: transform 0.2s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.topic.is-selected .topic-art { transform: scale(1.08) rotate(-3deg); }
.topic-text { display: grid; gap: 2px; }
.topic-text b { font-weight: 600; }
.topic-text span { color: var(--muted); font-size: 15px; }

/* topic badge on a published comment */
.topic-tag { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; color: var(--ink); }
.topic-tag-idea { background: var(--sun); }
.topic-tag-bug { background: var(--orange); }
.topic-tag-comment { background: var(--lcd); color: var(--lcd-ink); }
.talk-form input, .talk-form textarea {
  width: 100%; padding: 12px 16px; background: var(--bg); border: 2px solid var(--line);
  border-radius: 12px; font-size: 16px;
}
.talk-form input:focus, .talk-form textarea:focus { border-color: var(--ink); outline: none; }
.talk-form textarea { resize: vertical; min-height: 120px; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.form-note { margin: 0; max-width: 30ch; }
.form-msg { margin: 0; font-size: 14px; font-weight: 600; color: var(--orange-text); }
.form-msg:empty { display: none; }
.replying { margin: 0; font-size: 14px; color: var(--muted); }
.talk-form:not([data-gf-replying]) .replying { display: none; }
/* recent comments board: stretches to the height of the left column */
.talk-board {
  margin-top: 24px; display: flex; flex-direction: column; gap: 16px; padding: 24px;
  border: 2px dashed var(--line); border-radius: var(--radius);
}
.board-title { margin: 0; font-size: 18px; }
.talk-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 12px; align-items: stretch; }
/* the engine empties the list box when it loads, so these messages live next to it */
.talk-empty, .talk-off { display: none; margin: 0; color: var(--muted); }
[data-gf-comments][data-gf-empty] ~ .talk-empty {
  display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  text-align: center; padding: 8px 0;
}
[data-gf-comments][data-gf-off] ~ .talk-off { display: block; }
.talk-empty p { margin: 0; }
.talk-empty b { color: var(--ink); }
.empty-art { width: 150px; height: auto; mix-blend-mode: multiply; }
/* the mascot art sits on an off-white ground; lifting it a touch makes that pure white, so multiply hides it fully */
.topic-art, .empty-art, .note-peek img, .notfound-art { filter: brightness(1.035); }
.comment { padding: 16px 24px; background: var(--bg); border: 2px solid var(--line); border-radius: var(--radius); }
.comment header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.comment time, .reply-to { color: var(--muted); font-size: 14px; }
.comment p { margin: 0 0 8px; white-space: pre-line; }
.owner-tag { display: none; font-size: 12px; font-weight: 600; color: var(--ink); background: var(--sun); padding: 2px 8px; border-radius: 999px; }
[data-gf-owner] > header .owner-tag { display: inline-block; }
[data-gf-owner] { border-color: var(--sun); }
.replies { display: grid; gap: 8px; margin-top: 8px; }
.reply { background: var(--soft); border-color: transparent; }

/* inner pages */
.page-wrap { padding-top: 32px; padding-bottom: 32px; }
.crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.crumbs a { color: var(--muted); }
/* inner-page stage: a tinted band with the H1; the mascot stands at the right and steps over the
   band's bottom edge into the page, and the intro is what it's saying */
.stage { background: var(--soft); }
.stage-in { display: grid; grid-template-columns: minmax(0, 1fr); align-items: end; gap: 0 32px; padding-top: 24px; padding-bottom: 40px; }
.stage.has-art .stage-in { grid-template-columns: minmax(0, 620px) 260px; justify-content: start; gap: 0 16px; padding-bottom: 32px; }
.stage .crumbs { grid-column: 1 / -1; margin-bottom: 16px; }
.stage-text { display: grid; justify-items: start; gap: 16px; max-width: 720px; padding-bottom: 8px; }
.stage-text h1 { font-size: 40px; margin: 0; }
.stage-text .lede { margin: 0; }
.stage-art { width: 260px; height: 260px; display: block; margin-bottom: -88px; position: relative; z-index: 1;
  mix-blend-mode: multiply; filter: brightness(1.035); }
.stage-art.cutout { mix-blend-mode: normal; filter: drop-shadow(0 6px 10px var(--shade-2)); }
.stage .stage-bubble { background: var(--bg); font-family: var(--font-body); font-weight: 600; font-size: 18px; line-height: 1.5; box-shadow: var(--shadow-1); }
.stage .stage-bubble::before { left: auto; right: -18px; top: auto; bottom: 22px; border: 11px solid transparent; border-left: 19px solid var(--bg); border-right: 0; }
/* the "Updated" stamp on legal pages, with the alarm-clock mascot */
.stamp { display: inline-flex; align-items: center; gap: 0; white-space: nowrap; margin: 0; padding: 4px 16px 4px 4px; background: var(--bg); border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--ink); box-shadow: var(--shadow-1); }
.stamp img { width: 40px; height: 40px; margin: -8px 8px -8px -4px; }
.stamp time { margin-left: 0.3em; }
/* contact: the envelope the mascot holds out */
.mail-card { position: relative; display: grid; justify-items: start; gap: 8px; background: var(--bg); border-radius: var(--radius);
  padding: 24px 24px 20px; border-top: 8px solid var(--orange); box-shadow: var(--shadow-2); width: 100%; }
.mail-card::after { content: ""; position: absolute; right: -18px; bottom: 26px; border: 11px solid transparent; border-left: 19px solid var(--bg); border-right: 0; }
.mail-label { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange-text); }
.mail-address { font-family: var(--font-head); font-weight: 800; font-size: 28px; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.mail-address:hover { color: var(--orange-text); }
.mail-note { margin: 0; color: var(--muted); }
.mail-copy { margin-top: 4px; border: 2px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 999px; padding: 6px 16px; font-weight: 600; font-size: 14px; cursor: pointer; }
.mail-copy:hover { border-color: var(--ink); }
.mail-copy:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.mail-copy.is-copied .l-off { opacity: 0; transform: translateY(-80%); }
.mail-copy.is-copied .l-on { opacity: 1; transform: none; }
/* small illustrations at section breaks in long pages */
.prose .spot { float: right; width: 150px; margin: 0 0 8px 24px; }
.prose .spot img { width: 150px; height: 150px; display: block; }
.prose h2 { clear: both; }
/* hub pages: the mascot rests its paws on the top edge of the list card */
.hub-card { position: relative; margin-top: 72px; max-width: 900px; }
.card-peek { position: absolute; left: 32px; top: -92px; width: 92px; height: 92px; pointer-events: none; }
.card-peek img { width: 100%; height: 100%; display: block; }
.hub-empty { display: grid; justify-items: start; gap: 16px; background: var(--soft); border-radius: var(--radius); padding: 24px; }
.hub-empty p { margin: 0; color: var(--muted); max-width: 62ch; }
/* the slogan sign-off: the celebrating mascot "says" the slogan in a speech bubble */
.sign-off { display: flex; align-items: center; gap: 8px; margin-top: 48px; max-width: 900px; }
.sign-off-art { width: 200px; height: 200px; flex: none; display: block; mix-blend-mode: multiply; filter: brightness(1.035); }
.sign-off-say { display: grid; gap: 16px; justify-items: start; }
.bubble { position: relative; margin: 0; background: var(--soft); border-radius: 22px; padding: 16px 24px; font-family: var(--font-head); font-weight: 700; font-size: 22px; line-height: 1.3; color: var(--ink); }
.bubble::before { content: ""; position: absolute; left: -18px; top: 28px; border: 11px solid transparent; border-right: 19px solid var(--soft); border-left: 0; }
.bubble b { color: var(--orange-text); font-weight: 700; }
.notfound { padding-top: 48px; padding-bottom: 64px; text-align: center; }
.notfound .lede { margin-left: auto; margin-right: auto; }
.notfound-art { width: 240px; height: auto; margin: 0 auto 8px; display: block; mix-blend-mode: multiply; }

/* footer: the console's dark body */
.site-footer { margin-top: 64px; background: var(--shell); color: var(--shell-text); padding: 32px 0 24px; }
.site-footer .brand, .site-footer .brand:hover { color: var(--shell-text); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer-brand p { color: var(--shell-muted); font-size: 14px; margin: 12px 0 0; max-width: 42ch; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 16px 24px; }
.footer-nav a { color: var(--shell-text); font-size: 14px; }
.footer-nav a:hover { color: var(--sun); }
.footer-meta { margin-top: 24px; }
.footer-meta p { color: var(--shell-muted); font-size: 14px; margin: 0; }
.footer-badges {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}
.footer-badges a {
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  color: var(--shell-muted);
  text-decoration: none;
  font-size: 12px;
  opacity: 0.92;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.28));
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.footer-badges a:hover, .footer-badges a:focus-visible {
  opacity: 1;
  transform: translateY(-1px);
}
.footer-badges a:focus-visible { outline: 2px solid var(--sun); outline-offset: 2px; }
.footer-badges img {
  display: block;
  height: 36px;
  width: auto;
  max-width: 100%;
}

@media (max-width: 1000px) {
  .how-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .why { grid-template-columns: 1fr; gap: 32px; }
  .talk-row { grid-template-columns: 1fr; }
  .form-foot { flex-direction: column; align-items: stretch; }
  .form-note { max-width: none; }
  .faq-list { column-count: 1; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  h1, .hero h1 { font-size: 28px; }
  h2 { font-size: 22px; }
  .hero { padding-top: 16px; padding-bottom: 12px; }
  .lede { font-size: 16px; }
  .hero .lede { font-size: 15px; }
  .site-nav { gap: 6px; }
  .nav-btn { min-height: 36px; padding: 0 10px; gap: 4px; font-size: 14px; }
  .nav-btn svg { width: 16px; height: 16px; }
  .header-row .brand-name { font-size: 20px; }
  .header-row { gap: 8px; }
  .console { border-radius: 24px; padding: 8px 12px 12px; }
  .spotlight { padding-top: 60px; }  /* room for the peeking mascot above the console */
  .console-peek { left: 28px; top: -11px; width: 76px; height: 76px; }
  .console-top h2 { font-size: 16px; }
  .console-screen { aspect-ratio: 4 / 3; max-height: none; padding: 16px; }
  .console-screen.has-game { padding: 4px; }
  .quick-how-list { grid-template-columns: 1fr 1fr; gap: 8px; }
  .leaderboard { padding: 16px; }
  .lb-head { margin-bottom: 12px; }
  .lb-title { font-size: 20px; gap: 8px; }
  .lb-title img { width: 40px; height: 40px; }
  .lb-more { min-height: 40px; padding: 0 14px; font-size: 15px; }
  .lb-list { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; gap: 6px; }
  .lb-list li { padding: 8px 12px; grid-template-columns: 32px minmax(0, 1fr) auto; }
  .quick-how-list li { padding: 12px; }
  .play-wrap { margin-top: 24px; }
  .screen-name { font-size: 22px; }
  .console-controls { gap: 16px; padding-top: 12px; }
  .grille { display: none; }
  .trending, .guides, .latest, .why, .how, .added, .faq, .talk { margin-top: 48px; }
  .how-grid, .added-cols { grid-template-columns: 1fr; gap: 16px; }
  .row { grid-template-columns: auto minmax(0, 1fr); padding: 16px; }
  .empty-note { padding: 20px 120px 20px 20px; text-align: left; min-height: 120px; }
  .note-peek { width: 112px; }
  .stage.has-art .stage-in { grid-template-columns: minmax(0, 1fr) 112px; gap: 0 8px; padding-bottom: 24px; }
  .stage-text h1 { font-size: 30px; }
  .stage-art { width: 112px; height: 112px; margin-bottom: -40px; }
  .stage .stage-bubble { font-size: 15px; padding: 12px 16px; }
  .stage .stage-bubble::before { right: -14px; bottom: 16px; border-width: 9px; border-left-width: 15px; }
  .mail-card { padding: 20px 16px 16px; }
  .mail-card::after { display: none; }
  .mail-address { font-size: 22px; }
  .stage.has-mail .stage-in { grid-template-columns: minmax(0, 1fr); position: relative; }
  .stage.has-mail .stage-art { position: absolute; right: 12px; top: 40px; width: 92px; height: 92px; margin: 0; }
  .prose .spot { width: 104px; margin: 0 0 8px 16px; }
  .prose .spot img { width: 104px; height: 104px; }
  .card-peek { width: 76px; height: 76px; top: -76px; left: 20px; }
  .hub-card { margin-top: 60px; }
  .faq-art { width: 72px; height: 72px; }
  .sign-off { flex-direction: column; text-align: center; }
  .sign-off-art { width: 160px; height: 160px; }
  .sign-off-say { justify-items: center; }
  .bubble { font-size: 18px; }
  .bubble::before { left: 50%; top: -16px; margin-left: -10px; border: 10px solid transparent; border-bottom: 17px solid var(--soft); border-top: 0; }
  .note-peek img { width: 176px; height: 176px; }
  .topic-art { width: 60px; height: 60px; }
  .row time { grid-column: 2; }
  .row.has-thumb { grid-template-columns: 160px minmax(0, 1fr) auto; padding: 12px 16px 12px 12px; gap: 14px; align-items: center; }
  .row-thumb { width: 160px; }
  .row.has-thumb time { grid-column: 3; }
  .row.has-thumb .row-name { font-size: 17px; }
  .row.has-thumb .row-blurb { font-size: 15px; }
  .fact-grid { grid-template-columns: 1fr; }
  .btn, .form-foot .btn { width: 100%; }
  .footer-badges { gap: 8px 10px; }
  .footer-badges img { height: 32px; }
}

@media (max-width: 560px) {
  /* phones: stack thumbnail cards vertically so the 16:9 cover fills the card width cleanly */
  .row.has-thumb {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 12px 12px 16px;
    gap: 6px 12px;
    align-items: center;
  }
  .row.has-thumb .row-main { display: contents; }
  .row.has-thumb .row-thumb {
    grid-column: 1 / -1; grid-row: 1;
    width: 100%; border-radius: 12px; margin-bottom: 4px;
  }
  .row.has-thumb .row-main .tag {
    grid-column: 1; grid-row: 2;
    justify-self: start; align-self: center; margin: 0;
  }
  .row.has-thumb time {
    grid-column: 2; grid-row: 2;
    justify-self: end; align-self: center;
  }
  .row.has-thumb .row-name {
    grid-column: 1 / -1; grid-row: 3;
    font-size: 18px; line-height: 1.28;
  }
  .row.has-thumb .row-blurb {
    grid-column: 1 / -1; grid-row: 4;
    font-size: 15px; line-height: 1.5;
  }
  .row.has-thumb .row-progress {
    grid-column: 1 / -1; grid-row: 5;
    margin-top: 2px;
  }
}

@media (max-width: 340px) {
  .dpad { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .face, .face *, .face *::before, .face *::after, .counter::after, .btn, .btn *, .topic, .topic-art, .thanks, .thanks-art, .nav-panel, .nav-caret { animation: none !important; transition: none !important; }
  .face-share .i-check path { stroke-dashoffset: 0; }
}
/* very small phones: the panda-face logo stays, the word "Slew" makes room for the menu */
@media (max-width: 430px) {
  .site-header .brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
}
@media (max-width: 480px) {
  .nav-btn svg { display: none; } /* phones: the pills keep their shape, the icons make room for the labels */
  .nav-btn { padding: 0 10px; }
}
@media (max-width: 345px) {
  .site-nav { gap: 4px; }
  .nav-btn { padding: 0 8px; font-size: 13px; }
}

/* ---------- Guide pages (theme/guide.html): the text is the product. A short-answer card first,
   then a readable column with an "On this page" list (sidebar on wide screens, a fold-out on phones). */
.guide-top { margin-top: 88px; }
/* Short-answer card: the site's soft card with the panda gripping its top edge (same idea as the hub card),
   one white tile per file with a year badge in the homepage "fact dot" colours, then the verdict. */
.answer-card { position: relative; max-width: calc(70ch + 288px); padding: 28px 32px 32px; background: var(--soft); border-radius: 24px; }
.answer-peek { position: absolute; right: 48px; top: -84px; width: 104px; height: 104px; pointer-events: none; }
.answer-peek img { width: 100%; height: 100%; display: block; }
.answer-kicker { margin: 0 0 6px; font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange-text); }
.answer-card h2 { font-size: 26px; margin: 0 0 10px; padding-right: 120px; }
.answer-lead { margin: 0 0 20px; color: var(--muted); max-width: 70ch; }
.answer-items { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.answer-item { display: grid; align-content: start; gap: 4px; padding: 18px 20px 20px; background: var(--bg); border-radius: var(--radius); box-shadow: var(--shadow-1); }
.answer-year { justify-self: start; margin-bottom: 6px; padding: 3px 12px; border-radius: 999px; background: var(--sun); color: var(--ink);
  font-family: var(--font-head); font-weight: 800; font-size: 15px; box-shadow: inset 0 -2px 0 var(--shade-2); }
.answer-item:nth-child(2) .answer-year { background: var(--orange); }
.answer-item:nth-child(3) .answer-year { background: var(--lcd); color: var(--lcd-ink); }
.answer-place { font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--ink); line-height: 1.3; }
.answer-text { color: var(--muted); font-size: 15px; line-height: 1.55; }
.answer-verdict { display: flex; align-items: baseline; gap: 12px; margin: 0 0 24px; padding: 14px 18px; background: var(--bg); border-radius: var(--radius); box-shadow: var(--shadow-1); color: var(--ink); font-weight: 600; }
.answer-verdict-tag { flex: none; padding: 2px 10px; border-radius: 999px; background: var(--shell); color: var(--shell-text); font-size: 13px; font-weight: 600; }
.answer-source { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0; }
.answer-play { margin-left: auto; font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--ink); text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
.guide-top + .play-wrap { margin-top: 40px; }
.guide-main { min-width: 0; }
.toc-mobile { display: none; margin-bottom: 24px; background: var(--soft); border-radius: 12px; }
.toc-mobile summary { cursor: pointer; padding: 12px 16px; font-family: var(--font-head); font-weight: 700; font-size: 15px; }
.toc-mobile ol { margin: 0; padding: 0 16px 14px 36px; }
.toc-mobile li { margin-bottom: 6px; }
@media (max-width: 1000px) { .toc-mobile { display: block; } }
@media (max-width: 860px) { .answer-items { grid-template-columns: 1fr; } }
.guide-prose h3 { margin-top: 28px; }
.guide-prose ol li::marker { font-weight: 700; color: var(--ink); }
.table-scroll { overflow-x: auto; margin: 0 0 24px; border: 1px solid var(--line); border-radius: 12px; }
.guide-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15px; }
.guide-table th { text-align: left; background: var(--soft); color: var(--ink); font-weight: 600; padding: 10px 12px; }
.guide-table td { padding: 12px; border-top: 1px solid var(--line); vertical-align: top; color: var(--muted); }
.guide-table td:first-child a { font-weight: 600; }
.verdict { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.verdict-no { background: var(--ink); color: var(--bg); }
.verdict-open { background: var(--sun); color: var(--ink); }
.record { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 10px 14px; background: var(--soft); border-radius: 12px; font-size: 14px; word-break: break-word; }
.prose .record { color: var(--muted); }
.record a { font-weight: 600; }
.record-tag { background: var(--shell); color: var(--shell-text); border-radius: 999px; padding: 2px 10px; font-weight: 600; font-size: 13px; }
.size-chart { margin: 8px 0 24px; padding: 20px; background: var(--soft); border-radius: var(--radius); }
.size-rows { max-width: 460px; }
.size-row + .size-row { margin-top: 16px; }
.size-label { margin: 0 0 6px; font-size: 15px; }
.size-shape svg { display: block; width: 100%; height: auto; fill: var(--ink); }
.size-12 { width: calc(12 / 16.5 * 100%); }
.size-12 svg { fill: var(--sun); stroke: var(--ink); stroke-width: 1; }
.size-15 { width: calc(15 / 16.5 * 100%); }
.size-15 svg { fill: var(--orange-deep); }
.size-165 { width: 100%; }
.size-chart figcaption { margin-top: 14px; font-size: 13px; color: var(--muted); }
@media (max-width: 640px) {
  .guide-top { margin-top: 72px; }
  .answer-card { padding: 22px 18px 20px; }
  .answer-card h2 { font-size: 22px; padding-right: 0; }
  .answer-peek { right: 20px; top: -66px; width: 80px; height: 80px; }
  .answer-verdict { flex-direction: column; gap: 6px; }
  .answer-source .btn { width: 100%; }
  .size-chart { padding: 16px; }
  /* the at-a-glance table becomes one card per file */
  .table-scroll { overflow: visible; border: 0; }
  .guide-table { min-width: 0; }
  .guide-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .guide-table, .guide-table tbody, .guide-table tr, .guide-table td { display: block; }
  .guide-table tr { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; }
  .guide-table tr + tr { margin-top: 12px; }
  .guide-table td { border: 0; padding: 3px 0; }
  .guide-table td[data-label]:not(:first-child)::before { content: attr(data-label) ": "; font-weight: 600; color: var(--ink); }
  .guide-table td:first-child { font-size: 17px; padding-bottom: 6px; }
  .guide-table td:last-child { padding-top: 8px; }
  .guide-table td:last-child::before { display: none; }
}

.hub-about { max-width: 70ch; margin-top: 48px; }


/* answers: prose Q&A on the home page (question left, answer right; stacks on phones) */
.answers { border-top: 1px solid var(--line); padding-block: 56px; }
.answers .section-intro { margin-bottom: 8px; }
.answers .section-intro p { color: var(--muted); max-width: 62ch; }
.qa-list { margin-top: 24px; }
.qa { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 6px 48px; padding: 24px 0; border-top: 1px solid var(--line); }
.qa:first-child { border-top: 0; padding-top: 4px; }
.qa h3 { margin: 0; font-size: 1.0625rem; line-height: 1.35; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; }
.qa-a p { margin: 0 0 10px; color: var(--ink); }
.qa-a p:last-child { margin-bottom: 0; }
.qa-a a { color: var(--orange-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.qa-a a:hover { color: var(--orange); }
.qa-a em { font-style: normal; font-weight: 600; }
@media (max-width: 760px) {
  .answers { padding-block: 40px; }
  .qa { grid-template-columns: 1fr; gap: 8px; padding: 20px 0; }
  .qa h3 { font-size: 1rem; }
}

/* tables in article text (comparison lists) */
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 28px; font-size: 15px; line-height: 1.45; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose thead th { background: var(--soft); font-weight: 700; }
.prose tbody td:first-child { font-weight: 600; }
@media (max-width: 600px) {
  /* wide tables scroll sideways inside their own box instead of widening the page */
  .prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; font-size: 14px; }
  .prose th, .prose td { padding: 8px 6px; min-width: 88px; }
}

/* leaderboard and How to Play strip titles are <p>, not headings (SEO), but keep the heading look */
.lb-title, .quick-how-title { font-family: var(--font-head); font-weight: 700; line-height: 1.2; color: var(--ink); }

/* ---------- Top menu dropdowns (partials/nav.html): three pills, each opens a Pocket Console panel of links.
   <details> works without scripts and keeps every link in the page source; script.js closes the others. */
.site-header { position: relative; z-index: 30; }
.nav-menu { position: relative; }
.nav-menu > summary { list-style: none; cursor: pointer; }
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-caret { width: 7px; height: 7px; margin-left: 3px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 0.15s ease; }
.nav-menu[open] > summary,
.nav-menu[open] > summary:hover {
  background: var(--shell); color: var(--shell-text); --nav-acc: var(--sun);
  box-shadow: inset 0 2px 0 color-mix(in srgb, var(--ink) 30%, transparent);
  transform: none;
}
.nav-menu[open] .nav-caret { transform: translateY(2px) rotate(-135deg); }
@keyframes slew-nav-pop {
  from { opacity: 0; translate: 0 -4px; }
  to { opacity: 1; translate: 0 0; }
}
.nav-panel {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%);
  width: 304px; padding: 10px;
  background: var(--shell); color: var(--shell-text);
  border: 2px solid color-mix(in srgb, var(--shell), var(--ink) 50%);
  border-radius: 18px;
  box-shadow: 0 18px 38px rgba(18, 19, 40, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px 6px;
  animation: slew-nav-pop 0.14s ease;
}
.nav-panel::before {
  content: ""; position: absolute; top: -7px; left: 50%;
  width: 12px; height: 12px; margin-left: -6px;
  background: var(--shell);
  border-top: 2px solid color-mix(in srgb, var(--shell), var(--ink) 50%);
  border-left: 2px solid color-mix(in srgb, var(--shell), var(--ink) 50%);
  border-top-left-radius: 3px;
  transform: rotate(45deg);
}
.nav-menu-end .nav-panel { left: auto; right: 0; transform: none; }
.nav-menu-end .nav-panel::before { left: auto; right: 38px; margin-left: 0; }
.nav-panel > * { grid-column: 1 / -1; }
.nav-link {
  display: block; padding: 8px 12px; border-radius: 11px;
  color: #ffffff; text-decoration: none; font-size: 15px; font-weight: 600; line-height: 1.3;
  transition: background 0.12s ease, color 0.12s ease;
}
.nav-link:hover, .nav-link:focus-visible { background: rgba(255, 255, 255, 0.10); color: #ffffff; }
.nav-link:focus-visible { outline: 2px solid var(--sun); outline-offset: -2px; }
.nav-link[aria-current="page"] {
  background: #3b3e5a;
  color: #ffffff;
}
.nav-panel > .nav-link-strong {
  grid-column: auto; text-align: center; padding: 9px 8px;
  font-family: var(--font-head); font-size: 13.5px; font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 11px;
}
.nav-panel > .nav-link-strong:hover,
.nav-panel > .nav-link-strong:focus-visible {
  background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.22);
}
.nav-panel > .nav-link-strong[aria-current="page"] {
  background: var(--orange); border-color: var(--orange); color: var(--ink); box-shadow: none;
}
.nav-sub { display: block; font-size: 12.5px; font-weight: 400; color: var(--shell-muted); margin-top: 2px; }
.nav-group {
  margin: 6px 8px 2px; padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  font-family: var(--font-head); font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--sun);
}
/* phones: full-width console drawer cleanly inset under the orange header */
@media (max-width: 640px) {
  .nav-menu { position: static; }
  .nav-panel, .nav-menu-end .nav-panel {
    left: 16px; right: 16px; top: calc(100% + 6px);
    width: auto; transform: none;
    max-height: calc(100vh - 84px); overflow-y: auto;
  }
  .nav-panel::before, .nav-menu-end .nav-panel::before { display: none; }
  .nav-caret { width: 6px; height: 6px; }
}

/* "Recently added to this list" box at the top of list pages (content.list_updates, newest 3) */
.list-updates { background: var(--soft); border-radius: var(--radius); padding: 14px 18px; margin: 0 0 28px; }
.list-updates-title { font-family: var(--font-head); font-weight: 700; margin: 0 0 6px; color: var(--ink); }
.list-updates ul { margin: 0; padding-left: 18px; }
.list-updates li { margin: 4px 0; }
.list-updates time { font-weight: 700; color: var(--ink); margin-right: 4px; }

/* /games: list and help sections under the game list */
.hub-group { max-width: 900px; margin-top: 56px; }
