/* Reading floor (owner, 27 Oct: "text is on the smaller side; consistency across the site"): on the website every
   step below 16px is 1px larger, so the whole ramp moves together (tags 12, captions 13, small 14, body 16) and
   nothing is under 12px. The token names keep their place in the scale (tokens.css is shared with the app, which
   follows iOS text size). Articles read larger still (.prose). */
:root { --fs-11: 0.75rem; --fs-12: 0.8125rem; --fs-13: 0.875rem; --fs-14: 0.9375rem; --fs-15: 1rem; }
/* Shared web components. */
/* Light and dark (tokens.css switches the --c-* values): colours here come from tokens, or are mixed from them
   (color-mix with --c-text for faint lines and raised fills, with --c-bg for see-through backings), so they follow the
   theme. Where the two modes need different values that no token gives: light-dark(light, dark) with plain colours,
   after the same property with the dark one (browsers without light-dark keep that; a var() inside would void it). Pictures, the map and brand art keep their own colours. */
/* Fonts: Latin-subset WOFF2 (OFL, self-hosted; licences in /fonts). Barlow 500 is served by SemiBold. */
@font-face { font-family: Oswald; src: url(/fonts/Oswald.woff2) format('woff2'); font-weight: 500 700; font-display: swap; }
@font-face { font-family: Barlow; src: url(/fonts/Barlow-Regular.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Barlow; src: url(/fonts/Barlow-SemiBold.woff2) format('woff2'); font-weight: 500 600; font-display: swap; }
@font-face { font-family: Barlow; src: url(/fonts/Barlow-Bold.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url(/fonts/BarlowCondensed-SemiBold.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url(/fonts/JetBrainsMono.woff2) format('woff2'); font-weight: 400 700; font-display: swap; }


*, *::before, *::after { box-sizing: border-box; }
/* Underlines run unbroken under a whole link: by default browsers cut them around letters that dip below the line
   (g, p, y), and with our thick, low underline that broke a four-word link into pieces. Inherited, so set once here. */
html { -webkit-text-size-adjust: 100%; color-scheme: dark; scroll-padding-top: calc(var(--header-h, 4.5rem) + 1rem); text-decoration-skip-ink: none; -webkit-text-decoration-skip: none; text-decoration-skip: none; }
body {
  margin: 0; background: var(--c-bg); color: var(--c-body);
  font: 400 var(--fs-15)/1.5 var(--f-body);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; font-synthesis-weight: none;
  min-height: 100vh; overflow-x: hidden;
}
body::before { /* soft brand wash at the top of every page */
  content: ''; position: absolute; inset: 0 0 auto 0; height: 36rem; pointer-events: none; z-index: -1;
  background: radial-gradient(60rem 24rem at 80% -10%, rgba(246,207,31,.16), transparent 70%), radial-gradient(40rem 20rem at 0% 0%, rgba(210,173,23,.10), transparent 70%);
}
img, svg, video { display: block; max-width: 100%; }
img { outline: 1px solid color-mix(in srgb, var(--c-text) 6%, transparent); outline-offset: -1px; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--c-text); }
p { margin: 0 0 var(--s-4); text-wrap: pretty; }
/* Figures that change or line up in columns keep a fixed width; prose keeps natural figures. */
.strip-time, .stats b, .dt-num, .cmp-v, .count-box b, .stat-row .v, .status-hero, .mono { font-variant-numeric: tabular-nums; }
h1, h2, h3, h4 { margin: 0; color: var(--c-text); text-wrap: balance; font-weight: 600; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; border-radius: var(--r-xs); }
::selection { background: var(--c-pink-fill); color: var(--c-on-pink); }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: var(--s-4); top: -4rem; z-index: 100; background: var(--c-pink-fill); color: var(--c-on-pink); padding: var(--s-2) var(--s-4); border-radius: var(--r-sm); }
.skip-link:focus { top: var(--s-2); }

/* Scrollbars (desktop) */
* { scrollbar-width: thin; scrollbar-color: var(--c-surface-3) transparent; }

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2rem, 82.5rem); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2rem, 56rem); margin-inline: auto; }
.section { margin-block: var(--s-10); }
.grid { display: grid; gap: var(--s-4); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); }
/* A row that scrolls sideways (entry page "More …"): four across on desktop, most of one on phones, snapping to each. */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * var(--s-4)) / 4); gap: var(--s-4); overflow-x: auto;
  scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin; padding-bottom: var(--s-2); }
@media (max-width: 900px) { .rail { grid-auto-columns: calc((100% - var(--s-4)) / 2); } }
@media (max-width: 560px) { .rail { grid-auto-columns: 78%; } }
.rail-item { scroll-snap-align: start; min-width: 0; }
.rail-all { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-2); min-height: 100%; text-align: center; color: var(--c-text); text-decoration: none; }
.rail-all:hover, .rail-all:focus-visible { border-color: var(--c-pink-text); }
.rail-btn[disabled] { opacity: .4; }
.with-sidebar { display: grid; gap: var(--s-6); grid-template-columns: minmax(0, 1fr) 20rem; align-items: start; }
.with-filters { display: grid; gap: var(--s-6); grid-template-columns: 18rem minmax(0, 1fr); align-items: start; }
@media (max-width: 960px) { .with-sidebar, .with-filters { grid-template-columns: minmax(0, 1fr); } }
.with-sidebar > *, .with-filters > * { min-width: 0; } /* wide tables scroll inside their box, never the page */
/* Articles: the text column is the reading width, with the sidebar beside it and the pair centred, so wide screens
   don't leave a big gap between the end of the text and the sidebar (owner, 29 Oct). */
@media (min-width: 961px) { .with-sidebar.reading { grid-template-columns: minmax(0, 44rem) 20rem; justify-content: center; } }
/* What follows the article (Keep reading, the Discussion) sits under it at the article's width, in the left column: in
   the grid's next free cell it landed in the 20rem sidebar column, narrow and under the sticky contents (owner, 19 Nov
   2026: "the sidebar overlaps the discussion"). */
.with-sidebar.reading > :not(:first-child):not(aside) { grid-column: 1; }
.row { display: flex; gap: var(--s-3); align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: var(--s-3); align-items: center; justify-content: space-between; flex-wrap: wrap; }
.stack > * + * { margin-top: var(--s-3); }
.muted { color: var(--c-muted); }
.secondary { color: var(--c-secondary); }
.mono { font-family: var(--f-mono); }
.small { font-size: var(--fs-13); }
.xsmall { font-size: var(--fs-12); }

/* ---------- Type ---------- */
.eyebrow { font: 600 var(--fs-12)/1.2 var(--f-eyebrow); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--c-pink-text); }
.page-title { font: 600 clamp(var(--fs-40), 6vw, var(--fs-56))/1 var(--f-title); text-transform: uppercase; letter-spacing: var(--ls-sm); }
.page-title .count { font: 500 var(--fs-24) var(--f-title); color: var(--c-muted); margin-left: var(--s-2); vertical-align: middle; }
.section-title { font: 600 var(--fs-28)/1.1 var(--f-title); text-transform: uppercase; letter-spacing: var(--ls-sm); }
.card-title { font: 600 var(--fs-18)/1.25 var(--f-body); color: var(--c-text); }
.lead { font-size: var(--fs-18); color: var(--c-secondary); max-width: 42rem; }
.prose { font-size: var(--fs-17); line-height: 1.7; max-width: 44rem; }
@media (min-width: 900px) { .prose { font-size: var(--fs-18); } } /* articles: the reading size */
.prose h2 { font: 600 var(--fs-24)/1.15 var(--f-title); text-transform: uppercase; margin: var(--s-7) 0 var(--s-3); }
.prose h3 { font: 600 var(--fs-20)/1.3 var(--f-body); margin: var(--s-6) 0 var(--s-2); }
.prose h4 { font: 600 var(--fs-17)/1.35 var(--f-body); margin: var(--s-5) 0 var(--s-2); }
/* Links in text: pink words with a thin, soft underline that firms up on hover (owner, 19 Nov 2026: the thick pink line
   under white text looked like a spelling error). Still underlined, so a link never relies on colour alone (WCAG 1.4.1). */
.prose a, a.auto-link { color: var(--c-pink-text); font-weight: 500; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--c-pink-text) 35%, transparent); text-underline-offset: 4px; text-decoration-thickness: 1px; transition: text-decoration-color .15s; }
.prose a:hover, a.auto-link:hover, .prose a:focus-visible, a.auto-link:focus-visible { text-decoration-color: currentColor; }
/* Lists: pink markers, nested lists change bullet/number style, list text in <p> (as the editor stores it) keeps no gap. */
.prose ul, .prose ol { padding-left: var(--s-6); }
.prose li { margin-bottom: var(--s-2); padding-left: var(--s-1); }
.prose li::marker { color: var(--c-pink-text); }
.prose ol > li::marker { font-weight: 600; font-variant-numeric: tabular-nums; }
.prose li > p { margin: 0; }
.prose li > :is(ul, ol) { margin: var(--s-2) 0 0; }
.prose ul ul { list-style-type: circle; }
.prose ul ul ul { list-style-type: square; }
.prose ol ol { list-style-type: lower-alpha; }
.prose ol ol ol { list-style-type: lower-roman; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol, .prose table, .prose figure, .prose hr { margin: 0 0 var(--s-4); }
.prose img { border-radius: var(--r-md); height: auto; margin: var(--s-5) 0; }
.prose figure img { margin: 0; }
.prose figcaption { margin-top: var(--s-2); font-size: var(--fs-13); color: var(--c-muted); }
.prose hr { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--c-border-strong) 20%, var(--c-border-strong) 80%, transparent); margin-block: var(--s-7); }
.prose strong { color: var(--c-text); }
.prose blockquote { margin: var(--s-5) 0; padding: var(--s-3) var(--s-4); border-left: 3px solid var(--c-pink-fill); background: var(--c-surface-1); border-radius: 0 var(--r-md) var(--r-md) 0; font-style: italic; }
.prose blockquote > :last-child, .prose .lead > :last-child { margin-bottom: 0; }
/* Inline styles from the editor's toolbar: highlight, inline code, small print, sub/superscript, our own text colours. */
.prose mark { background: rgba(246,207,31,.28); color: var(--c-text); padding: 0 .15em; border-radius: var(--r-xs); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.prose code { font: 400 .875em/1.5 var(--f-mono); padding: .1em .35em; border-radius: var(--r-xs); background: var(--c-surface-2); border: 1px solid var(--c-border); color: var(--c-text); overflow-wrap: anywhere; }
.prose small { font-size: var(--fs-14); color: var(--c-secondary); }
.prose :is(sub, sup) { font-size: .8em; line-height: 0; position: relative; vertical-align: baseline; }
.prose sup { top: -.5em; }
.prose sub { bottom: -.25em; }
.prose .color[data-color] { color: inherit; } /* only the colours below show; anything pasted in stays body colour */
.prose .color[data-color="pink"] { color: var(--c-pink-text); }
.prose .color[data-color="green"] { color: var(--c-status-up); }
.prose .color[data-color="amber"] { color: var(--c-status-issues); }
.prose .color[data-color="blue"] { color: var(--c-source-trailer); }
/* Lead paragraph: the larger opening line. */
.prose .lead { max-width: none; margin: 0 0 var(--s-5); font-size: var(--fs-20); line-height: 1.55; color: var(--c-text); }
@media (min-width: 900px) { .prose .lead { font-size: var(--fs-22); } }
/* Code block: scrolls sideways inside its own box only, never the page. */
.prose pre { margin: var(--s-5) 0; padding: var(--s-4); max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; background: var(--c-surface-1); border: 1px solid var(--c-border); border-radius: var(--r-md); tab-size: 2; }
.prose pre code { display: block; padding: 0; border: 0; background: none; font-size: var(--fs-14); line-height: 1.6; white-space: pre; overflow-wrap: normal; }
/* Collapsible section (FAQ): the whole question row is the 44px target, with a chevron that turns when open. */
.prose details { margin: var(--s-4) 0; border: 1px solid var(--c-border); border-radius: var(--r-md); background: var(--c-surface-1); }
.prose details:has(+ details) { margin-bottom: var(--s-2); }
.prose summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: var(--touch); padding: var(--s-3) var(--s-4); border-radius: var(--r-md); color: var(--c-text); font-weight: 600; line-height: 1.4; cursor: pointer; list-style: none; }
.prose summary::-webkit-details-marker { display: none; }
.prose summary::after { content: ''; flex: none; width: .55rem; height: .55rem; margin-right: var(--s-1); border-right: 2px solid var(--c-pink-text); border-bottom: 2px solid var(--c-pink-text); transform: translateY(-25%) rotate(45deg); transition: transform .15s ease; }
.prose details[open] > summary::after { transform: translateY(25%) rotate(-135deg); }
.prose summary:hover { background: var(--c-surface-2); }
.prose details[open] > summary { border-radius: var(--r-md) var(--r-md) 0 0; }
.prose details > [data-type="detailsContent"] { padding: var(--s-1) var(--s-4) var(--s-4); }
.prose details > [data-type="detailsContent"] > :last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .prose summary::after { transition: none; } }
/* Columns: one column on phones; side by side from the width the writer chose (Filament's grid: data-from-breakpoint). */
.prose .grid-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4) var(--s-6); margin: var(--s-5) 0; }
.prose .grid-layout-col { min-width: 0; }
.prose .grid-layout-col > :first-child { margin-top: 0; }
.prose .grid-layout-col > :last-child { margin-bottom: 0; }
@media (min-width: 640px) { .prose .grid-layout:is([data-from-breakpoint="default"], [data-from-breakpoint="sm"]) { grid-template-columns: var(--cols); } .prose .grid-layout:is([data-from-breakpoint="default"], [data-from-breakpoint="sm"]) > .grid-layout-col { grid-column: var(--col-span); } }
@media (min-width: 768px) { .prose .grid-layout[data-from-breakpoint="md"] { grid-template-columns: var(--cols); } .prose .grid-layout[data-from-breakpoint="md"] > .grid-layout-col { grid-column: var(--col-span); } }
@media (min-width: 1024px) { .prose .grid-layout:is([data-from-breakpoint="lg"], :not([data-from-breakpoint])) { grid-template-columns: var(--cols); } .prose .grid-layout:is([data-from-breakpoint="lg"], :not([data-from-breakpoint])) > .grid-layout-col { grid-column: var(--col-span); } }
@media (min-width: 1280px) { .prose .grid-layout[data-from-breakpoint="xl"] { grid-template-columns: var(--cols); } .prose .grid-layout[data-from-breakpoint="xl"] > .grid-layout-col { grid-column: var(--col-span); } }
@media (min-width: 1536px) { .prose .grid-layout[data-from-breakpoint="2xl"] { grid-template-columns: var(--cols); } .prose .grid-layout[data-from-breakpoint="2xl"] > .grid-layout-col { grid-column: var(--col-span); } }
/* Tables (ArticleBody::tables adds the header, labels and the .article-table box). Desktop: a framed table with a
   header row, dividers and light zebra rows; a light edge shows there's more when one is wider than the column.
   Phones: a table with a header row and 3+ columns becomes one card per row, the first cell as its title and each
   other cell as "Column: value" (no sideways scrolling, owner). */
.prose .article-table { margin: var(--s-5) 0; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; border: 1px solid var(--c-border); border-radius: var(--r-md);
  background: linear-gradient(to right, var(--c-surface-1) 30%, transparent) left / 2.5rem 100% no-repeat local, linear-gradient(to left, var(--c-surface-1) 30%, transparent) right / 2.5rem 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, color-mix(in srgb, var(--c-text) 16%, transparent), transparent) left / .75rem 100% no-repeat scroll, radial-gradient(farthest-side at 100% 50%, color-mix(in srgb, var(--c-text) 16%, transparent), transparent) right / .75rem 100% no-repeat scroll, var(--c-surface-1); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-15); line-height: 1.5; font-variant-numeric: tabular-nums; }
.prose .article-table table { margin: 0; }
.prose :is(th, td) { padding: var(--s-3) var(--s-4); border-top: 1px solid var(--c-border); text-align: left; vertical-align: top; }
.prose :is(th, td) > p { margin: 0; }
.prose :is(th, td) > p + p { margin-top: var(--s-2); }
.prose :is(th, td) img:not(.auto-thumb) { margin: 0; }
.prose thead th { border-top: 0; border-bottom: 1px solid var(--c-border-strong); background: color-mix(in srgb, var(--c-text) 6%, transparent); color: var(--c-secondary); font: 600 var(--fs-14)/1.3 var(--f-eyebrow); letter-spacing: var(--ls-md); text-transform: uppercase; vertical-align: bottom; }
.prose tbody > tr:first-child > * { border-top: 0; }
.prose tbody > tr:nth-child(even) { background: color-mix(in srgb, var(--c-text) 3%, transparent); }
.prose tbody th { color: var(--c-text); font-weight: 600; }
.prose td.cell-empty::after { content: '–'; content: '–' / ''; color: var(--c-muted); }
@media (max-width: 639px) {
  .prose .article-table.is-stacked { --label-w: min(7rem, 30vw); overflow: visible; border: 0; border-radius: 0; background: none; }
  .prose .is-stacked :is(table, thead, tbody, tfoot, tr, th, td) { display: block; }
  .prose .is-stacked thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* each cell carries its column's name */
  .prose .is-stacked tr, .prose .is-stacked tbody > tr:nth-child(even) { margin: 0 0 var(--s-3); border: 1px solid var(--c-border); border-radius: var(--r-md); background: var(--c-surface-1); overflow: hidden; }
  .prose .is-stacked tr:last-child { margin-bottom: 0; }
  .prose .is-stacked tr > :is(td, th) { display: flow-root; padding: var(--s-2) var(--s-4); border-top: 1px solid var(--c-border); }
  .prose .is-stacked :is(td, th)[data-label] { padding-left: calc(var(--s-4) + var(--label-w) + var(--s-3)); }
  .prose .is-stacked :is(td, th)[data-label]::before { content: attr(data-label); content: attr(data-label) / ''; float: left; width: var(--label-w); margin-left: calc(-1 * (var(--label-w) + var(--s-3))); color: var(--c-muted); font-size: var(--fs-14); font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
  .prose .is-stacked tr > :first-child, .prose .is-stacked tr > :first-child[data-label] { padding: var(--s-3) var(--s-4); border-top: 0; background: color-mix(in srgb, var(--c-text) 6%, transparent); color: var(--c-text); font-size: var(--fs-16); font-weight: 600; }
  .prose .is-stacked tr > :first-child::before { content: none; }
  .prose .is-stacked tr > :first-child + * { border-top: 0; }
  .prose .is-stacked .cell-empty { display: none; }
}

/* ---------- Surfaces ---------- */
.card { background: var(--c-surface-1); border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: var(--s-5); }
.card-tight { padding: var(--s-4); border-radius: var(--r-md); }
a.card, .card-link { transition: transform .15s ease, border-color .15s ease; display: block; }
a.card:hover, .card-link:hover { transform: translateY(-1px); border-color: var(--c-border-strong); }
.glass { background: var(--glass-bg); backdrop-filter: blur(var(--glass-blur)) saturate(140%); -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%); border: 1px solid var(--glass-border); }
.divider { height: 1px; background: var(--c-border); border: 0; margin: var(--s-4) 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: var(--touch); padding: 0 var(--s-5); border-radius: var(--r-pill);
  font: 600 var(--fs-15) var(--f-body); border: 1px solid var(--c-border-strong);
  background: var(--c-surface-2); color: var(--c-text); white-space: nowrap; transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--c-surface-3); color: var(--c-text); }
.btn-primary { background: var(--c-pink-fill); border-color: transparent; color: var(--c-on-pink); box-shadow: var(--sh-button-inset); }
.btn-primary:hover { background: #C22F5C; color: var(--c-on-pink); }
.btn-light { background: var(--c-text); color: var(--c-bg); border-color: transparent; }
.btn-light:hover { background: #fff; background: light-dark(#000, #fff); color: var(--c-bg); }
.btn-ghost { background: transparent; }
.btn-discord { background: var(--c-discord-fill); color: #fff; border-color: transparent; box-shadow: var(--sh-button-inset); }
.btn-sm { min-height: 2.25rem; padding: 0 var(--s-4); font-size: var(--fs-14); }
.btn-block { width: 100%; }
/* A long label on a phone (welcome's "Say hello in the Countdown discussion"): wraps instead of running out of the button. */
.btn-wrap { white-space: normal; text-align: center; padding-block: var(--s-2); line-height: 1.3; }
.btn[aria-pressed="true"] { background: var(--c-text); color: var(--c-bg); }
.btn .icon { width: 1.1em; height: 1.1em; }
.icon-btn { display: inline-grid; place-items: center; width: var(--touch); height: var(--touch); border-radius: var(--r-pill); border: 1px solid var(--c-border-strong); background: var(--c-surface-2); color: var(--c-text); }
.icon-btn:hover { background: var(--c-surface-3); }
.icon { width: 1.25rem; height: 1.25rem; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-fill { fill: currentColor; stroke: none; }
.link-pink { color: var(--c-pink-text); font-weight: 600; }
.link-pink:hover { color: var(--c-pink-light); }

/* ---------- Chips, tags, badges ---------- */
.chip { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 2.25rem; padding: 0 var(--s-4); border-radius: var(--r-pill); border: 1px solid var(--c-border-strong); background: var(--c-surface-1); font-weight: 600; font-size: var(--fs-14); color: var(--c-text); }
.chip:hover { background: var(--c-surface-2); }
.chip.is-active, .chip[aria-pressed="true"], .chip[aria-current="true"] { background: rgba(246,207,31,.18); border-color: var(--c-pink-fill); }
.tag { display: inline-flex; align-items: center; gap: .35rem; height: 1.375rem; padding: 0 .5rem; border-radius: var(--r-xs); font: 600 var(--fs-11)/1 var(--f-body); letter-spacing: var(--ls-md); text-transform: uppercase; background: var(--c-surface-3); color: var(--c-secondary); }
.tag-type { background: color-mix(in srgb, var(--c-text) 8%, transparent); color: var(--c-text); text-transform: none; letter-spacing: 0; font-size: var(--fs-12); border-radius: var(--r-pill); height: 1.5rem; padding: 0 .65rem; }
.tag-example { background: color-mix(in srgb, var(--c-text) 6%, transparent); color: var(--c-secondary); border: 1px solid var(--c-border-strong); }
.src { display: inline-flex; align-items: center; gap: .4rem; font-size: var(--fs-12); color: var(--c-secondary); }
.src::before { content: ''; width: .5rem; height: .5rem; border-radius: 50%; background: var(--dot, var(--c-source-unknown)); flex: none; }
.src-CONFIRMED, .src-VERIFIED_IN_GAME { --dot: var(--c-source-confirmed); }
.src-SEEN_IN_TRAILER { --dot: var(--c-source-trailer); }
.src-RUMOR, .src-LEAKED { --dot: var(--c-source-rumor); }
.src-SPECULATION, .src-COMMUNITY_ESTIMATE { --dot: var(--c-source-speculation); }
.src-UNKNOWN { --dot: var(--c-source-unknown); }
.src-compact { gap: 0; vertical-align: middle; margin-left: .25rem; }
.tag-CONFIRMED, .tag-VERIFIED_IN_GAME { background: var(--c-pink-fill); color: var(--c-on-pink); }
.tag-SEEN_IN_TRAILER { background: rgba(111,179,232,.18); background: light-dark(rgba(31,111,176,.08), rgba(111,179,232,.18)); color: var(--c-source-trailer); }
.tag-RUMOR, .tag-LEAKED { background: rgba(232,166,74,.16); background: light-dark(rgba(154,90,12,.08), rgba(232,166,74,.16)); color: var(--c-source-rumor); }
.tag-SPECULATION, .tag-COMMUNITY_ESTIMATE, .tag-UNKNOWN { background: color-mix(in srgb, var(--c-source-speculation) 18%, transparent); color: var(--c-secondary); }
.tag-CHANGED { background: rgba(224,163,58,.16); background: light-dark(rgba(154,90,12,.08), rgba(224,163,58,.16)); color: var(--c-rating-mixed); }
.tag-REMOVED { background: rgba(229,72,77,.16); background: light-dark(rgba(196,40,45,.08), rgba(229,72,77,.16)); color: var(--c-rating-low); }
/* On pictures the tints go solid (same hue, dark) so the words stay readable over any image. */
.item-thumb .tag-SEEN_IN_TRAILER { background: #13283A; }
.item-thumb .tag-RUMOR, .item-thumb .tag-LEAKED { background: #2E2213; }
.item-thumb .tag-SPECULATION, .item-thumb .tag-COMMUNITY_ESTIMATE, .item-thumb .tag-UNKNOWN { background: #241D2E; }
.item-thumb .tag-CHANGED { background: #2E2413; }
.item-thumb .tag-REMOVED { background: #33161A; }
.item-thumb .tag-example { background: #1E1626; }
.rating-high { color: var(--c-rating-high); } .rating-good { color: var(--c-rating-good); } .rating-mixed { color: var(--c-rating-mixed); } .rating-low { color: var(--c-rating-low); }
.bar { height: .375rem; border-radius: var(--r-pill); background: var(--c-surface-3); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: inherit; background: var(--bar, var(--c-rating-high)); }
.not-known { color: var(--c-muted); font-style: italic; }
.live-dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--c-status-up); display: inline-block; }
.live-dot.is-live { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c-status-up) 60%, transparent); } 50% { box-shadow: 0 0 0 .4rem rgba(91,175,126,0); } }

/* ---------- Forms ---------- */
.field { display: grid; gap: var(--s-1); }
.field label, .label { font-weight: 600; font-size: var(--fs-14); color: var(--c-text); }
.input, .select, .textarea { width: 100%; min-height: var(--touch); padding: 0 var(--s-4); border-radius: var(--r-md); border: 1px solid var(--c-border-strong); background: var(--c-surface-1); color: var(--c-text); }
.textarea { padding: var(--s-3) var(--s-4); min-height: 6rem; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--c-muted); }
.input:focus, .textarea:focus, .select:focus { outline: 2px solid var(--c-focus); outline-offset: 0; border-color: transparent; }
.input-pill { border-radius: var(--r-pill); padding-left: 2.75rem; }
.input-wrap { position: relative; }
/* Search boxes' clear button (the browser's ×, Chrome/Safari/Edge): a 44 px target with our own × (was ~14 px). */
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; width: var(--touch); height: var(--touch); margin-right: calc(var(--s-3) * -1); cursor: pointer;
  background: var(--c-secondary); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center / 1.125rem no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center / 1.125rem no-repeat; }
.input-wrap > .icon { position: absolute; left: var(--s-4); top: 50%; transform: translateY(-50%); color: var(--c-muted); pointer-events: none; }
.input-code { font: 600 var(--fs-28) var(--f-mono); letter-spacing: .5em; text-align: center; }
.check { display: flex; align-items: center; gap: var(--s-3); min-height: var(--touch); cursor: pointer; }
.check input { width: 1.25rem; height: 1.25rem; accent-color: var(--c-pink-fill); }
.switch { position: relative; display: inline-flex; align-items: center; gap: var(--s-3); min-height: var(--touch); cursor: pointer; }
.switch input { appearance: none; width: 2.5rem; height: 1.5rem; border-radius: var(--r-pill); background: var(--c-surface-3); border: 1px solid var(--c-border-strong); position: relative; transition: background .15s; flex: none; }
.switch input::after { content: ''; position: absolute; top: 2px; left: 2px; width: 1.125rem; height: 1.125rem; border-radius: 50%; background: var(--c-text); transition: transform .15s; }
.switch input:checked { background: var(--c-pink-fill); }
.switch input:checked::after { transform: translateX(1rem); }
.error-text { color: var(--c-rating-low); font-size: var(--fs-13); }
.alert { padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: var(--c-surface-2); border: 1px solid var(--c-border-strong); }
.alert-info { border-color: color-mix(in srgb, var(--c-source-trailer) 35%, transparent); }
.alert-warn { border-color: color-mix(in srgb, var(--c-source-rumor) 40%, transparent); background: color-mix(in srgb, var(--c-source-rumor) 8%, transparent); }

/* ---------- Strip + header ---------- */
.strip { background: color-mix(in srgb, var(--c-surface-1) 60%, var(--c-bg)); border-bottom: 1px solid var(--c-border); font-size: var(--fs-13); }
.strip .wrap { display: flex; gap: var(--s-4); align-items: center; justify-content: space-between; min-height: 2.25rem; flex-wrap: wrap; }
.strip-time { font: 600 var(--fs-13) var(--f-mono); color: var(--c-text); }
.strip-incident { background: color-mix(in srgb, var(--c-status-issues) 12%, transparent); }
.strip-link-short { display: none; }
.filters-toggle { display: none; }
.filters-wrap > summary::-webkit-details-marker { display: none; }
@media (max-width: 640px) {
  /* One compact line on phones: dot, timer, short link. */
  .strip .wrap { flex-wrap: nowrap; gap: var(--s-2); min-height: 2.5rem; }
  .strip [data-strip-region], .strip [data-strip-label], .strip-link-long { display: none; }
  .strip.is-out [data-strip-label] { display: inline; } /* out in your region: "GTA VI is out" instead of an empty bar */
  .strip-link-short { display: inline; }
  .strip .row { flex-wrap: nowrap; }
  .strip-link { white-space: nowrap; }
  /* Filters fold away above the results. */
  .filters-toggle { display: flex; list-style: none; }
  .filters-wrap[open] .filters { margin-top: var(--s-3); }
}
.site-header { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--c-border); background: color-mix(in srgb, var(--c-bg) 78%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
@media (prefers-reduced-transparency: reduce), (max-width: 1080px) { .site-header { background: color-mix(in srgb, var(--c-bg) 97%, transparent); backdrop-filter: none; -webkit-backdrop-filter: none; } }
.site-header::before { content: ''; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, var(--c-pink-fill), var(--cat-live)); }
.site-header .wrap { display: flex; align-items: center; gap: var(--s-5); min-height: 4rem; }
/* Wordmark per the concepts: one tight word, then a hairline divider and the pink tagline. */
.logo { display: inline-flex; align-items: center; gap: var(--s-3); font: 700 var(--fs-24)/1 var(--f-title); color: var(--c-text); letter-spacing: var(--ls-sm); white-space: nowrap; }
.logo-word { display: inline; }
.logo b { color: var(--c-pink-text); font-weight: inherit; }
.logo small { position: relative; padding-left: calc(var(--s-3) + 1px); font: 600 var(--fs-11)/1 var(--f-eyebrow); letter-spacing: .14em; color: var(--c-pink-light); text-transform: uppercase; white-space: nowrap; }
.logo small::before { content: ''; position: absolute; left: 0; top: 50%; width: 1px; height: 14px; transform: translateY(-50%); background: color-mix(in srgb, var(--c-text) 14%, transparent); }
.nav { display: flex; gap: var(--s-1); margin-inline: auto; }
.nav a, .nav button { position: relative; display: inline-flex; align-items: center; gap: .25rem; min-height: 2.5rem; padding: 0 var(--s-3); border-radius: var(--r-pill); font-weight: 600; letter-spacing: .01em; color: var(--c-secondary); background: none; border: 0; transition: color .15s ease, background-color .15s ease; }
.nav a:hover, .nav button:hover { color: var(--c-text); background: var(--c-surface-2); }
/* Where you are: white text and a short pink bar under it (the pill is for hover and open menus). */
.nav [aria-current="page"] { color: var(--c-text); }
.nav [aria-current="page"]::after { content: ''; position: absolute; left: 50%; bottom: .2rem; width: 1.25rem; height: 2px; margin-left: -.625rem; border-radius: 2px; background: var(--c-pink-fill); }
.nav button[aria-current="page"]::after { margin-left: -1.05rem; }
.nav-group { position: relative; }
.nav-caret { width: .9rem; height: .9rem; transition: transform .15s ease; }
.nav button[aria-expanded="true"] { color: var(--c-text); background: var(--c-surface-2); }
.nav button[aria-expanded="true"] .nav-caret { transform: rotate(180deg); }
/* Menu panels: open on hover (with a short intent delay) or click/keyboard. Shown instantly, a quick fade only. */
/* Panels drop out of the header itself: their top edge is the header's bottom edge (square top corners, the header's
   glass, a hairline of its pink-violet accent), so they read as part of it, not a card floating below. */
.nav-panel { position: absolute; top: calc(100% + .75rem); left: 50%; translate: -50% 0; z-index: 45; width: 22rem; padding: var(--s-2); border-radius: 0 0 var(--r-lg) var(--r-lg);
  background: color-mix(in srgb, var(--c-surface-1) 97%, transparent); border: 1px solid var(--c-border-strong); border-top: 0; box-shadow: 0 28px 60px -18px rgba(0,0,0,.7); animation: nav-in .14s ease-out; }
.nav-panel::before { content: ''; position: absolute; inset: -.75rem 0 auto; height: .75rem; } /* hover bridge to the button */
.nav-panel::after { content: ''; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(246,207,31,.55), rgba(210,173,23,.55), transparent); }
/* Every mega menu (Database, Media, ...) is this one wide panel with the same tile grid, so their tiles are the same size and line up. */
.nav-group:has(> .nav-panel-wide) { position: static; } /* the wide one is placed against the header (sticky, so positioned) */
.nav-panel-wide { top: 100%; width: min(68rem, calc(100vw - 2rem)); padding: var(--s-5) var(--s-5) var(--s-4); border-radius: 0 0 var(--r-xl) var(--r-xl); }
@supports (backdrop-filter: blur(1px)) { .nav-panel { background: color-mix(in srgb, var(--c-surface-1) 90%, transparent); backdrop-filter: blur(18px) saturate(140%); } }
@media (prefers-reduced-transparency: reduce) { .nav-panel { background: var(--c-surface-1); backdrop-filter: none; } }
@keyframes nav-in { from { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .nav-panel { animation: none; } .nav-caret { transition: none; } }
.mega-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-2); }
.mega-tile, .nav .mega-tile { position: relative; isolation: isolate; display: flex; align-items: flex-end; gap: var(--s-2); min-height: 5.75rem; padding: var(--s-3);
  border-radius: var(--r-md); font-weight: 400; overflow: hidden; background: var(--c-surface-3); border: 1px solid var(--c-border); color: var(--c-text); }
.mega-tile img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: opacity .15s ease, transform .2s ease; }
.mega-tile::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, color-mix(in srgb, var(--c-bg) 5%, transparent) 0%, color-mix(in srgb, var(--c-bg) 88%, transparent) 78%); }
.mega-tile::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--cat); }
.mega-tile:hover, .mega-tile:focus-visible { border-color: color-mix(in srgb, var(--cat) 55%, var(--c-border-strong)); }
.nav-panel .mega-tile { min-height: 5.25rem; }
.mega-tile:hover img, .mega-tile:focus-visible img { opacity: .8; transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .mega-tile img { transition: none; } .mega-tile:hover img { transform: none; } }
.mega-tile-icon { display: grid; place-items: center; flex: none; width: 2rem; height: 2rem; border-radius: var(--r-sm); background: color-mix(in srgb, var(--c-bg) 70%, transparent); color: var(--cat); }
.mega-tile-icon .icon { width: 1.1rem; height: 1.1rem; }
.mega-tile-text { display: grid; min-width: 0; line-height: 1.2; }
.mega-tile-text strong { font-size: var(--fs-15); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mega-tile-text span { font-size: var(--fs-12); color: var(--c-secondary); }
.mega-tile-text > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* one line, like the name: every tile's text sits at the same height */
.mega-foot { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); padding-top: var(--s-3); border-top: 1px solid var(--c-border); }
.mega-foot a, .nav .mega-foot a { display: inline-flex; align-items: center; gap: .25rem; min-height: 2.75rem; padding: 0 var(--s-3); border-radius: var(--r-pill); font-weight: 600; color: var(--c-secondary); }
.mega-foot a:first-child { color: var(--c-pink-text); }
.mega-foot a:hover { background: var(--c-surface-3); color: var(--c-text); }
.mega-foot .icon { width: .9rem; height: .9rem; }
.nav-row { display: flex !important; align-items: center; gap: var(--s-3); min-height: 3.25rem; padding: var(--s-2) var(--s-3) !important; border-radius: var(--r-md) !important; color: var(--c-text) !important; }
.nav-row:hover, .nav-row:focus-visible { background: var(--c-surface-3); }
.nav-row > span:last-child { display: grid; line-height: 1.25; text-align: left; }
.nav-row strong { font-size: var(--fs-15); }
.nav-row > span:last-child span { font-size: var(--fs-12); font-weight: 500; color: var(--c-muted); }
.nav-row-icon { display: grid; place-items: center; flex: none; width: 2.25rem; height: 2.25rem; border-radius: var(--r-sm); background: var(--c-surface-3); color: var(--c-pink-light); }
.nav-row-icon .icon { width: 1.1rem; height: 1.1rem; }
.header-search { display: flex; align-items: center; gap: var(--s-2); min-width: 12rem; min-height: 2.5rem; padding: 0 var(--s-2) 0 var(--s-4); border-radius: var(--r-pill); border: 1px solid var(--c-border-strong); background: var(--c-surface-1); color: var(--c-muted); }
.header-search { transition: opacity .2s ease, visibility .2s, border-color .15s ease, color .15s ease; }
/* Computers (from 1081 px): beside the full nav the search box is just its icon (it opens the same search) and the tagline
   tucks under the word; otherwise the header ran past the screen and the account button squashed. */
@media (min-width: 1081px) {
  .header-search .label-text, .header-search .kbd { display: none; }
  .header-search { min-width: 0; width: var(--touch); padding: 0; justify-content: center; flex: none; }
  .logo { flex-direction: column; align-items: flex-start; gap: .2rem; }
  .logo small { padding-left: 0; font-size: var(--fs-11); letter-spacing: .2em; line-height: 1; }
  .logo small::before { display: none; }
}
/* The header's radio button: pink while the radio plays. */
.header-radio, .site-header .menu-toggle { flex: none; } /* the avatar and the menu button never squash when the header is full */
@media (max-width: 480px) { .site-header .wrap { gap: var(--s-2); } } /* phones: the map page's header also has the countdown; tighter gaps keep the menu button whole */
.header-radio[aria-pressed="true"] { color: var(--c-pink-text); border-color: var(--c-pink-text); }
@media (max-width: 400px) { .header-radio { display: none; } } /* small phones: no room; the home page's Radio card starts it */
/* The countdown in the header (pages without the strip): a quiet pill, the time in mono so it doesn't jiggle. */
.header-countdown { display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--touch); padding: 0 var(--s-3); border-radius: var(--r-pill); border: 1px solid var(--c-border-strong);
  background: var(--c-surface-1); color: var(--c-text); text-decoration: none; white-space: nowrap; font-size: var(--fs-13); }
.header-countdown .icon { width: 1rem; height: 1rem; color: var(--c-pink-text); }
.header-countdown-label { font-weight: 600; color: var(--c-secondary); }
.header-countdown:hover { border-color: var(--c-pink-text); }
.header-countdown { flex: none; }
.header-countdown .cd-tiny { display: none; }
/* Room for it: the header search becomes an icon, on phones too (owner: it disappeared); on the map it opens the map's own search (app.js). */
.site-header:has(.header-countdown) .header-search { flex: none; min-width: 0; width: var(--touch); padding: 0; justify-content: center; }
.site-header:has(.header-countdown) .header-search :is(.label-text, .kbd) { display: none; }
@media (max-width: 1599px) { .header-countdown-label { display: none; } }
@media (max-width: 640px) {
  .header-countdown { padding: 0 var(--s-3); gap: var(--s-1); }
  .header-countdown-label, .header-countdown .cd-short { display: none; }
  .header-countdown .cd-tiny { display: inline; }
}
/* The map's header on a phone holds the countdown, search, Sign in / avatar and the menu; the radio button gives way
   there (the floating player stays; Radio stations is in the menu), or the header ran off the screen at 412px. */
@media (max-width: 480px) { .site-header:has(.header-countdown) .header-radio { display: none; } }
@media (max-width: 359px) { .header-countdown { display: none; } }
.header-search:hover { border-color: var(--c-pink-fill); color: var(--c-secondary); }
.kbd { font: 500 var(--fs-11) var(--f-mono); border: 1px solid var(--c-border-strong); border-radius: var(--r-pill); padding: .1rem .45rem; margin-left: auto; color: var(--c-secondary); }
.menu-toggle { display: none; }
@media (max-width: 1080px) {
  .nav, .header-search .label-text, .header-search .kbd { display: none; }
  .header-search { min-width: 0; width: var(--touch); padding: 0; justify-content: center; margin-left: auto; }
  .menu-toggle { display: inline-grid; }
}
/* Phones and narrow windows: the tagline sits under the word, as wide as it, no hairline. */
@media (max-width: 1080px) {
  .logo { flex-direction: column; align-items: flex-start; gap: .2rem; font-size: var(--fs-20); }
  .logo small { padding-left: 0; font-size: var(--fs-11); letter-spacing: .2em; line-height: 1; }
  .logo small::before { display: none; }
}
/* Phone menu: a sheet from the right, transform-only animation (cheap), its own scroll. */
.drawer { position: fixed; inset: 0; z-index: 60; display: flex; justify-content: flex-end; background: rgba(5,3,8,.6); animation: drawer-fade .18s ease-out; }
.drawer-panel { width: min(26rem, 100%); height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: var(--s-4) var(--s-4) calc(var(--s-6) + env(safe-area-inset-bottom));
  background: var(--c-bg); border-left: 1px solid var(--c-border-strong); animation: drawer-in .22s cubic-bezier(.2,.8,.2,1); }
@keyframes drawer-fade { from { opacity: 0; } }
@keyframes drawer-in { from { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .drawer, .drawer-panel { animation: none; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-3); }
.drawer-search { display: flex; align-items: center; gap: var(--s-2); width: 100%; min-height: 3rem; padding: 0 var(--s-4); border-radius: var(--r-pill);
  border: 1px solid var(--c-border-strong); background: var(--c-surface-1); color: var(--c-muted); font: inherit; text-align: left; }
.drawer-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-2); margin: var(--s-3) 0 var(--s-2); }
.drawer-quick a { display: grid; justify-items: center; gap: .3rem; padding: var(--s-3) var(--s-1); min-height: 4.25rem; border-radius: var(--r-md);
  background: var(--c-surface-2); border: 1px solid var(--c-border); color: var(--c-text); font-size: var(--fs-13); font-weight: 600; }
.drawer-quick a[aria-current="page"] { border-color: var(--c-pink-fill); }
.drawer-quick .icon { width: 1.35rem; height: 1.35rem; color: var(--c-pink-light); }
.drawer-label { margin: var(--s-5) 0 var(--s-2); font: 700 var(--fs-11)/1 var(--f-eyebrow); letter-spacing: 2px; text-transform: uppercase; color: var(--c-muted); }
.drawer-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.drawer-tiles .mega-tile { min-height: 5.5rem; }
.drawer-all { display: flex; align-items: center; justify-content: center; gap: .25rem; min-height: 2.75rem; margin-top: var(--s-2); font-weight: 600; color: var(--c-pink-text); }
.drawer-all .icon { width: .9rem; height: .9rem; }
.drawer-signin { width: 100%; margin-top: var(--s-6); }

/* ---------- Search overlay ---------- */
.overlay { position: fixed; inset: 0; z-index: 70; background: rgba(5,3,8,.7); display: grid; align-items: start; justify-items: center; padding-top: 10vh; }
.overlay-panel { width: min(40rem, calc(100% - 2rem)); border-radius: var(--r-xl); background: var(--c-surface-2); border: 1px solid var(--c-border-strong); box-shadow: 0 30px 80px rgba(0,0,0,.6); overflow: hidden; }
.overlay-panel .input { border: 0; border-bottom: 1px solid var(--c-border); border-radius: 0; min-height: 3.5rem; font-size: var(--fs-18); background: transparent; }
/* The box with Cancel beside it (the way out, always showing). */
.overlay-panel form { display: flex; align-items: stretch; border-bottom: 1px solid var(--c-border); }
.overlay-panel form .input { flex: 1; min-width: 0; border-bottom: 0; }
/* Focus shows as one line under the whole row (box and Cancel), not a ring around the box alone. */
.overlay-panel form .input:focus { outline: none; }
.overlay-panel form:focus-within { box-shadow: inset 0 -2px 0 var(--c-focus); }
.search-cancel { flex: none; min-width: var(--touch); min-height: var(--touch); padding: 0 var(--s-4); border: 0; background: none; color: var(--c-pink-text); font: 600 var(--fs-16) var(--f-body); cursor: pointer; }
.search-cancel:hover { color: var(--c-text); }
/* Phones: search is its own screen (the box at the top, Cancel beside it, results filling the rest), not a box
   floating over the page with only a thin edge to tap away on. */
@media (max-width: 860px) {
  .overlay:not(.is-anchored) { padding-top: 0; background: var(--c-surface-2); }
  .overlay:not(.is-anchored) .overlay-panel { width: 100%; height: 100dvh; border: 0; border-radius: 0; box-shadow: none; overflow-y: auto; overscroll-behavior: contain; padding-top: env(safe-area-inset-top); }
  .overlay:not(.is-anchored) .overlay-panel form { position: sticky; top: 0; z-index: 1; background: var(--c-surface-2); }
  .overlay:not(.is-anchored) .result-list { max-height: none; overflow: visible; padding: var(--s-2) var(--s-4) var(--s-4); } /* the screen scrolls, not a box inside it; 16px from each edge */
}
.result-list { list-style: none; margin: 0; padding: var(--s-2); max-height: 60vh; overflow-y: auto; }
.result-list a { display: flex; gap: var(--s-3); align-items: center; padding: var(--s-3); border-radius: var(--r-md); min-height: var(--touch); }
.result-list a:hover, .result-list [aria-selected="true"] a { background: var(--c-surface-3); }
/* Predictive search (js/search.js): a panel under the hero / search-page box, the list inside the overlay. */
.hero-search { position: relative; }
.ta-panel { position: absolute; left: 0; right: 0; top: calc(100% + .5rem); z-index: 30; list-style: none; margin: 0; padding: var(--s-2); max-height: min(28rem, 60vh); overflow-y: auto;
  border-radius: var(--r-lg); background: var(--c-surface-2); border: 1px solid var(--c-border-strong); box-shadow: 0 24px 60px rgba(0,0,0,.55); text-align: left; }
.ta-list li { list-style: none; }
/* Compare: /compare's categories, the switcher on each compare page, the add box's suggestions, the category button. */
.compare-types { list-style: none; margin: var(--s-6) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: var(--s-3); }
.compare-type { display: flex; align-items: center; gap: var(--s-4); min-height: 5.5rem; padding: var(--s-4); border-radius: var(--r-lg); background: var(--c-surface-1); border: 1px solid var(--c-border); color: var(--c-text); }
.compare-type:hover { border-color: var(--cat); background: var(--c-surface-2); }
.compare-type-icon { flex: none; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: var(--r-md); background: var(--cat); color: #120B14; }
.compare-type-icon .icon { width: 1.5rem; height: 1.5rem; }
.compare-type-text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.compare-type-text strong { font-size: var(--fs-17); }
.compare-type-go { flex: none; width: 1.1rem; height: 1.1rem; color: var(--c-muted); }
.compare-add .input-wrap { position: relative; }
.compare-add .ta-row[aria-disabled="true"] { opacity: .6; cursor: default; }
.compare-add .ta-empty { padding: var(--s-3); }
.btn-compare { gap: var(--s-2); min-height: var(--touch); }
.btn-compare .icon { width: 1rem; height: 1rem; }
.ta-row { display: flex !important; align-items: center; gap: var(--s-3); min-height: 3.5rem; padding: var(--s-2) var(--s-3) !important; border-radius: var(--r-md); color: var(--c-text); }
.ta-row:hover, .ta-row[aria-selected="true"] { background: var(--c-surface-3); color: var(--c-text); }
.ta-row > .icon { flex: none; width: 1rem; height: 1rem; margin-left: auto; color: var(--c-muted); opacity: 0; transition: opacity .12s; }
.ta-row:hover > .icon, .ta-row[aria-selected="true"] > .icon { opacity: 1; }
.ta-pic { flex: none; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: var(--r-sm); overflow: hidden;
  background: color-mix(in srgb, var(--cat) 22%, var(--c-surface-3)); color: var(--cat); }
.ta-pic img { width: 100%; height: 100%; object-fit: cover; outline: 0; }
.ta-pic .icon { width: 1.25rem; height: 1.25rem; }
.ta-pic.is-search { --cat: var(--c-pink-text); }
.ta-pic.is-plain { background: var(--c-surface-3); color: var(--c-secondary); } /* the search page: a picture, or a plain symbol (colour adds nothing in a list) */
.ta-text { display: grid; gap: .1rem; min-width: 0; }
.ta-name { font: 600 var(--fs-15)/1.25 var(--f-body); color: var(--c-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ta-name mark { background: none; color: var(--c-pink-text); }
.ta-meta { display: flex; align-items: center; gap: var(--s-3); font-size: var(--fs-12); color: var(--c-muted); }
.ta-all { border-top: 1px solid var(--c-border); border-radius: 0 0 var(--r-md) var(--r-md) !important; margin-top: var(--s-1); color: var(--c-secondary) !important; font-weight: 600; }
.ta-jump { padding: var(--s-2) var(--s-2) var(--s-3); }
.ta-head { display: block; margin-bottom: var(--s-2); font: 600 var(--fs-12)/1.2 var(--f-eyebrow); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--c-muted); }
.ta-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.ta-chip { display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--touch); padding: 0 var(--s-4) 0 var(--s-3); border-radius: var(--r-pill); border: 1px solid var(--c-border-strong); background: var(--c-surface-1); font-weight: 600; font-size: var(--fs-14); color: var(--c-text); }
.ta-chip .icon { width: 1.1rem; height: 1.1rem; color: var(--cat); }
.ta-chip:hover, .ta-chip[aria-selected="true"] { border-color: var(--cat); background: var(--c-surface-3); }
.hero-search.is-open { border-color: var(--c-border-strong); }

/* ---------- Footer ---------- */
.site-footer { margin-top: var(--s-11); border-top: 1px solid var(--c-border); padding-top: var(--s-9); }
.footer-grid { display: grid; gap: var(--s-7); grid-template-columns: 1.4fr repeat(4, 1fr); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } .footer-grid > :first-child { grid-column: 1 / -1; } }
.footer-grid h2 { font: 600 var(--fs-13) var(--f-eyebrow); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--c-muted); margin-bottom: var(--s-3); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li a { display: inline-flex; min-height: 2rem; align-items: center; color: var(--c-secondary); }
.footer-theme { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; margin-top: var(--s-6); }
.footer-theme .segmented button { min-height: var(--touch); }
.footer-bottom { margin-top: var(--s-5); padding-block: var(--s-5); border-top: 1px solid var(--c-border); font-size: var(--fs-13); color: var(--c-muted); }
.footer-legal { margin: calc(-1 * var(--s-3)) 0 0; padding-bottom: var(--s-5); font-size: var(--fs-13); color: var(--c-muted); }

/* ---------- Home ---------- */
main#main { position: relative; isolation: isolate; display: flow-root; } /* flow-root: a first child's top margin stays inside, so backgrounds (page-art, glow) start right under the header, not 24px lower with a hard edge */
.hero { position: relative; padding-top: var(--s-9); }
/* Official key art behind the home hero (and category banners): full bleed, faded into the page so text stays legible. */
.hero-art { position: absolute; left: 0; right: 0; top: 0; height: min(38rem, 80vh); z-index: -1; overflow: hidden; pointer-events: none; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; opacity: .42;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.85) 45%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.85) 45%, transparent 100%); }
.hero-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--c-bg) 85%, transparent) 0%, color-mix(in srgb, var(--c-bg) 35%, transparent) 60%, color-mix(in srgb, var(--c-bg) 60%, transparent) 100%); }
.home-tiles .mega-tile { min-height: 8rem; }
@media (max-width: 900px) { .home-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .home-tiles .mega-tile { min-height: 6.5rem; } }
/* Home: the scene shows in full on the right; the headline, search and stats sit in one column over the dark side. */
.hero-art.is-home { height: min(48rem, 94vh); }
.hero-art.is-home img { opacity: .96; object-position: 70% 28%;
  -webkit-mask-image: linear-gradient(180deg, #000 50%, transparent 100%); mask-image: linear-gradient(180deg, #000 50%, transparent 100%); }
.hero-art.is-home::after { background: linear-gradient(90deg, var(--c-bg) 0%, color-mix(in srgb, var(--c-bg) 90%, transparent) 24%, color-mix(in srgb, var(--c-bg) 55%, transparent) 44%, color-mix(in srgb, var(--c-bg) 6%, transparent) 64%, transparent 100%); }
.hero-grid.is-stacked { grid-template-columns: minmax(0, 34rem); }
.hero-grid.is-stacked .hero-search, .hero-grid.is-stacked .hero-stats { width: 100%; }
@media (max-width: 700px) {
  .hero-art.is-home { height: min(46rem, 100svh); }
  .hero-art.is-home img { opacity: .55; object-position: center 10%; }
  .hero-art.is-home::after { background: linear-gradient(180deg, color-mix(in srgb, var(--c-bg) 25%, transparent) 0%, color-mix(in srgb, var(--c-bg) 60%, transparent) 38%, color-mix(in srgb, var(--c-bg) 92%, transparent) 70%, var(--c-bg) 100%); }
}
@media (prefers-reduced-transparency: reduce) { .hero-art.is-home img { opacity: .5; } }
.cat-banner { height: 15rem; }
.cat-banner img { opacity: .3; }
.hero-title { font: 600 clamp(var(--fs-36), 6.5vw, var(--fs-56))/1 var(--f-title); text-transform: uppercase; letter-spacing: var(--ls-sm); }
.hero-title em { font-style: normal; color: var(--c-pink-text); display: block; }
.hero-grid { display: grid; gap: var(--s-6); grid-template-columns: 1fr auto; align-items: end; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-search { display: flex; gap: var(--s-2); align-items: center; width: min(100%, 26rem); padding: .3rem .3rem .3rem var(--s-4); border-radius: var(--r-pill); border: 1px solid var(--c-border-strong); background: var(--c-surface-1); }
.hero-search input { flex: 1; border: 0; background: transparent; min-height: 2.75rem; outline: none; }
.hero-search:focus-within { outline: 2px solid var(--c-focus); outline-offset: 2px; } /* the box shows keyboard focus (its input has none of its own) */
.stats { display: flex; gap: var(--s-6); flex-wrap: wrap; }
.stats b { font: 700 var(--fs-20) var(--f-body); color: var(--c-text); }
/* Home hero stats: what the site holds, each a link (2 × 2 on phones). */
/* Jump to (home): the pages players look for in launch week, as chips that wrap; Cheats first. */
.home-quick { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }
.home-quick a { display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--touch); padding: 0 var(--s-4); border: 1px solid var(--c-border-strong); border-radius: var(--r-pill); background: var(--c-surface-1); color: var(--c-text); font-weight: 600; font-size: var(--fs-14); }
.home-quick a:hover, .home-quick a:focus-visible { border-color: var(--c-pink-text); }
.home-quick .icon { width: 1.05rem; height: 1.05rem; color: var(--c-pink-text); }
.home-quick b { font-size: var(--fs-12); color: var(--c-secondary); font-weight: 600; }
.hero-stats { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-2); width: min(100%, 26rem); }
.hero-stats a { display: flex; align-items: center; gap: var(--s-3); min-height: 3.75rem; padding: var(--s-2) var(--s-3); border-radius: var(--r-md); background: color-mix(in srgb, var(--c-surface-1) 72%, transparent); border: 1px solid var(--c-border); color: var(--c-secondary); transition: border-color .15s, background-color .15s; }
.hero-stats a:hover { border-color: var(--c-border-strong); background: var(--c-surface-2); color: var(--c-text); }
.hero-stats a > span:last-child { display: grid; line-height: 1.15; min-width: 0; }
.hero-stats b { font: 600 var(--fs-24)/1 var(--f-title); letter-spacing: var(--ls-sm); color: var(--c-text); font-variant-numeric: tabular-nums; }
.hero-stats b + span { font-size: var(--fs-12); font-weight: 500; color: var(--c-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-icon { flex: none; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: var(--r-sm); background: rgba(246,207,31,.14); color: var(--c-pink-text); }
.hs-icon .icon { width: 1.1rem; height: 1.1rem; }
.hero-fresh { display: flex; align-items: center; gap: var(--s-2); margin: var(--s-3) 0 0; font-size: var(--fs-12); color: var(--c-muted); }
.hs-dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--c-status-up); }
.map-taster { position: relative; margin-top: var(--s-7); height: clamp(26rem, 52vw, 44rem); border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--c-border-strong); background: #0a1a26; }
.map-taster .map-canvas { position: absolute; inset: 0; }
.map-taster-bar { position: absolute; left: var(--s-4); right: var(--s-4); bottom: var(--s-4); display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-radius: var(--r-lg); flex-wrap: wrap; }
/* Home preview: a tilted close-up with the real pins (js/map.js), the horizon dissolving into the page. A tilt-shift blur
   softens the distance (a blurred copy of what's behind, masked to the top), as in a photograph of a miniature city. */
.map-taster { box-shadow: 0 0 0 1px rgba(246,207,31,.16), 0 30px 90px -30px rgba(210,173,23,.5); }
.map-taster .map-canvas { cursor: default; }
/* No blur or tint over the map: just the sky fading into the page at the top and a little shade under the bar. */
.map-taster-fx { position: absolute; inset: 0; pointer-events: none; }
.map-taster-fx::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, var(--c-bg) 0%, color-mix(in srgb, var(--c-bg) 35%, transparent) 9%, transparent 20%, transparent 78%, color-mix(in srgb, var(--c-bg) 55%, transparent) 100%); }
.map-taster-hud { position: absolute; top: var(--s-5); left: var(--s-5); margin: 0; display: inline-flex; align-items: center; gap: var(--s-2);
  padding: var(--s-1) var(--s-3); border-radius: var(--r-pill); background: color-mix(in srgb, var(--c-bg) 70%, transparent); border: 1px solid var(--c-border-strong); color: var(--c-text); letter-spacing: var(--ls-md); white-space: nowrap; }
.map-taster-bar { z-index: 3; }
.hud-dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--c-pink-text); box-shadow: 0 0 8px var(--c-pink-text); }

.tile { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); min-height: 4rem; border-radius: var(--r-md); background: var(--c-surface-1); border: 1px solid var(--c-border); }
.tile:hover { border-color: var(--c-border-strong); transform: translateY(-1px); }
.tile .tile-icon { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: var(--r-sm); background: color-mix(in srgb, var(--cat, var(--c-pink-fill)) 18%, transparent); color: var(--cat, var(--c-pink-text)); }
.tile .chev { margin-left: auto; color: var(--c-muted); }
.avatar-row { display: flex; gap: var(--s-5); overflow-x: auto; padding: var(--s-2) var(--s-1); } /* room all round: a scrolling row clips, and the ring grows a little on hover */
.avatar-row a { display: grid; justify-items: center; align-content: start; gap: var(--s-1); width: 7.5rem; text-align: center; font-size: var(--fs-14); font-weight: 600; color: var(--c-text); flex: none; }
.ring { width: 6rem; height: 6rem; border-radius: 50%; padding: 3px; background: conic-gradient(var(--c-pink-fill), var(--cat-live), var(--c-pink-fill)); }
.ring > span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: var(--c-surface-2); border: 3px solid var(--c-bg); font: 600 var(--fs-24) var(--f-title); }
.ring img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.list-rows { list-style: none; margin: 0; padding: 0; }
.list-rows > li { display: flex; gap: var(--s-3); align-items: center; padding: var(--s-3) 0; border-bottom: 1px solid var(--c-border); }
.list-rows > li:last-child { border-bottom: 0; }
.list-rows a.row-link { display: flex; gap: var(--s-3); align-items: center; width: 100%; border-radius: var(--r-sm); }
.list-rows a.row-link:hover { background: color-mix(in srgb, var(--c-text) 3%, transparent); }
/* A linked entry's own picture in place of its category icon (EntryThumbs): the same box, the picture filling it. */
.link-thumb { overflow: hidden; padding: 0; background: var(--c-surface-3); }
.link-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* In running text: a small round picture just before the linked name (AutoLinker). */
img.auto-thumb, .prose img.auto-thumb { display: inline-block; width: 1.25em; height: 1.25em; max-width: none; margin: 0 .3em 0 .05em; border-radius: 50%; object-fit: cover; vertical-align: -.25em; background: var(--c-surface-3); }
/* Its preview (js/app.js): hover with a mouse or keyboard focus shows the entry's picture, category and a line or two
   about it. Never on touch (a tap opens the link). Placed by JS next to the link, inside the viewport. */
.auto-preview { position: absolute; z-index: 60; width: 18rem; max-width: calc(100vw - 1rem); overflow: hidden; border-radius: var(--r-md);
  background: color-mix(in srgb, var(--c-surface-2) 97%, transparent); border: 1px solid var(--c-border-strong); box-shadow: 0 18px 40px -12px rgba(0,0,0,.7); color: var(--c-body);
  cursor: pointer; animation: auto-preview-in .12s ease-out; }
@supports (backdrop-filter: blur(1px)) { .auto-preview { background: color-mix(in srgb, var(--c-surface-2) 90%, transparent); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); } }
@media (prefers-reduced-transparency: reduce) { .auto-preview { background: var(--c-surface-2); backdrop-filter: none; -webkit-backdrop-filter: none; } }
.auto-preview-pic { position: relative; aspect-ratio: 2 / 1; background: var(--c-surface-3); }
.auto-preview-pic img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.auto-preview-pic::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c-text) 8%, transparent); pointer-events: none; }
.auto-preview-body { padding: var(--s-3) var(--s-4) var(--s-4); }
.auto-preview-name { display: block; margin-top: var(--s-1); font: 600 var(--fs-17)/1.25 var(--f-body); color: var(--c-text); }
.auto-preview-summary { margin: var(--s-2) 0 0; font-size: var(--fs-14); line-height: 1.45; color: var(--c-secondary); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
@keyframes auto-preview-in { from { opacity: 0; transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .auto-preview { animation: none; } }
.list-icon { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: var(--r-sm); background: rgba(246,207,31,.14); color: var(--c-pink-text); flex: none; }
.user-initial { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 2px solid var(--tier, var(--c-pink-text)); font-weight: 700; color: var(--c-text); flex: none; font-size: var(--fs-14); } /* the ring: their rank tier's colour (--tier inline) */
.rep-plus { margin-left: auto; color: var(--c-pink-text); font: 600 var(--fs-13) var(--f-mono); }
.cta-band { border-radius: var(--r-xl); padding: var(--s-8); background: linear-gradient(135deg, rgba(246,207,31,.22), rgba(210,173,23,.10)), var(--c-surface-1); border: 1px solid var(--c-border-strong); }

/* ---------- Category / cards ---------- */
.item-card { position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: var(--c-surface-1); border: 1px solid var(--c-border); transition: transform .15s, border-color .15s; }
.item-card:hover { transform: translateY(-1px); border-color: var(--c-border-strong); }
.item-thumb { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; background: linear-gradient(135deg, var(--c-surface-2), var(--c-surface-1)); color: var(--c-muted); }
.item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.item-thumb .tag { position: absolute; top: var(--s-2); left: var(--s-2); }
.item-thumb .on-map { position: absolute; top: var(--s-2); right: var(--s-2); background: rgba(0,0,0,.6); color: var(--c-text); border-radius: var(--r-pill); font-size: var(--fs-12); font-weight: 600; padding: .15rem .55rem; }
.item-body { padding: var(--s-3) var(--s-4) var(--s-4); }
.item-body h3 { font-size: var(--fs-17); }
.item-meta { display: flex; justify-content: space-between; gap: var(--s-2); font-size: var(--fs-13); color: var(--c-muted); margin-top: .15rem; }
.item-rating { font-weight: 700; display: inline-flex; gap: .25rem; align-items: center; }
.changed { font-size: var(--fs-13); font-weight: 600; margin-top: var(--s-1); }
.changed.down { color: var(--c-pink-light); } .changed.up { color: var(--c-rating-good); }
/* Desktop: the filter column stays under the header while the results scroll; a long list scrolls on its own.
   (The <details> box is what sticks: its inner content box is only as tall as the card.) Phones/tablets: unchanged. */
@media (min-width: 961px) {
  .with-filters > .filters-wrap { position: sticky; top: calc(var(--header-h, 4.5rem) + var(--s-4)); max-height: calc(100vh - var(--header-h, 4.5rem) - var(--s-6)); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; border-radius: var(--r-lg); }
}
.load-more { text-align: center; margin-top: var(--s-6); overflow-anchor: none; } /* appended items never push the page */
.load-more .btn[aria-disabled="true"] { cursor: progress; }
.load-more [role="status"]:not(:empty) { margin-top: var(--s-2); color: var(--c-secondary); }
.filters fieldset { border: 0; padding: 0; margin: 0 0 var(--s-4); }
.filters legend { font: 600 var(--fs-12) var(--f-eyebrow); letter-spacing: var(--ls-lg); text-transform: uppercase; color: var(--c-muted); margin-bottom: var(--s-1); }
.filters .check { justify-content: space-between; min-height: 2.5rem; }
.filters .check span:first-of-type { margin-right: auto; }
.segmented { display: inline-flex; padding: .25rem; gap: .125rem; border-radius: var(--r-pill); background: var(--c-surface-1); border: 1px solid var(--c-border-strong); flex-wrap: wrap; }
.segmented a, .segmented button { display: inline-flex; align-items: center; min-height: 2.25rem; padding: 0 var(--s-3); border-radius: var(--r-pill); font-weight: 600; font-size: var(--fs-14); color: var(--c-secondary); background: none; border: 0; }
/* A count in a tab: its own small figure, apart from the label. */
.segmented .n { margin-left: var(--s-2); font: 500 var(--fs-12) var(--f-mono); color: var(--c-muted); }
.segmented [aria-selected="true"] .n, .segmented [aria-checked="true"] .n { color: inherit; opacity: .7; }
/* Picture tabs on phones: one swipeable row with full-size targets, not wrapped lines. */
@media (max-width: 640px) {
  [data-media-tabs] { flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
  [data-media-tabs]::-webkit-scrollbar { display: none; }
  [data-media-tabs] button { flex: none; min-height: var(--touch); white-space: nowrap; }
}
.segmented [aria-current="true"], .segmented [aria-pressed="true"], .segmented [aria-selected="true"], .segmented [aria-checked="true"] { background: var(--c-text); color: var(--c-bg); }
.breadcrumb { font-size: var(--fs-14); color: var(--c-muted); }
.breadcrumb a { color: var(--c-secondary); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb [aria-current] { color: var(--c-text); }

/* ---------- Entry ---------- */
/* The entry page's own layout (hero, facts, actions, Connections, Media, On this page): "Entry page" further down. */
.entry-media { aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(160deg, var(--c-surface-2), var(--c-surface-1)); display: grid; place-items: center; color: var(--c-muted); border: 1px solid var(--c-border); }
.group-label { font: 600 var(--fs-12) var(--f-eyebrow); letter-spacing: var(--ls-lg); text-transform: uppercase; color: var(--c-muted); margin: var(--s-5) 0 var(--s-2); }
.field-grid { display: grid; gap: var(--s-2); grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)); }
.rating-card.is-empty { padding-block: var(--s-3); }
.field-tile { padding: var(--s-3); border-radius: var(--r-md); background: var(--c-surface-1); border: 1px solid var(--c-border); min-height: 4.5rem; }
.field-tile.is-key { background: linear-gradient(135deg, rgba(246,207,31,.14), transparent), var(--c-surface-1); border-color: rgba(246,207,31,.28); }
.field-tile .k { font-size: var(--fs-12); color: var(--c-muted); }
.field-tile .v { font-weight: 700; color: var(--c-text); font-size: var(--fs-15); }
a.field-tile { display: flex; align-items: center; gap: var(--s-3); }
a.field-tile:hover { border-color: var(--c-border-strong); }
.quote { padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: var(--c-surface-1); border: 1px solid var(--c-border); font-style: italic; color: var(--c-secondary); }
.quote::before { content: '“'; color: var(--c-pink-text); font: 700 var(--fs-24) var(--f-title); margin-right: var(--s-2); vertical-align: -.2em; }
.actions { display: flex; gap: var(--s-2); flex-wrap: wrap; margin-top: var(--s-4); }
/* My note (entry pages): private to its writer. */
.my-note { margin-top: var(--s-4); display: grid; gap: var(--s-2); }
.not-on-map { display: inline-flex; align-items: center; gap: var(--s-1); min-height: var(--touch); padding: 0 var(--s-2); }
.not-on-map .icon { width: 1rem; height: 1rem; }
.my-note .card-title { font-size: var(--fs-17); margin: 0; }
.my-note-private { display: inline-flex; align-items: center; gap: var(--s-1); }
.my-note-private .icon { width: .9rem; height: .9rem; }
.my-note textarea { width: 100%; min-height: 5.5rem; resize: vertical; line-height: 1.45; }
.my-note .btn { min-height: var(--touch); }
.pin-note { display: grid; gap: var(--s-2); padding: var(--s-3); border-radius: var(--r-md); background: var(--c-surface-1); border: 1px solid var(--c-border); }
.pin-note-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-2); }
.pin-note-head .eyebrow, .pin-note .eyebrow { margin: 0; font: 600 var(--fs-12)/1.2 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--c-secondary); }
.pin-note-text { margin: 0; color: var(--c-text); white-space: pre-line; overflow-wrap: anywhere; }
.pin-note textarea { width: 100%; resize: vertical; }
.pin-note .btn { justify-self: start; min-height: var(--touch); }
.note-list .note-text { display: grid; gap: 2px; min-width: 0; }
.note-list .note-text .small { white-space: pre-line; overflow-wrap: anywhere; }
.rating-card .big { font: 700 var(--fs-36)/1 var(--f-body); }
.version-row { display: grid; gap: .3rem; padding: var(--s-2) 0; }
.spoiler-gate { display: flex; gap: var(--s-3); align-items: center; padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: color-mix(in srgb, var(--c-source-trailer) 8%, transparent); border: 1px solid color-mix(in srgb, var(--c-source-trailer) 25%, transparent); font-size: var(--fs-14); }
/* A story-gated overview: folded until the viewer's progress reaches it (js/entry.js) or they press Show anyway. */
.spoiler-body { margin-top: var(--s-3); }
.spoiler-body > summary { list-style: none; width: fit-content; min-height: var(--touch); cursor: pointer; }
.spoiler-body > summary::-webkit-details-marker { display: none; }
.spoiler-body[open] > summary { display: none; }
.spoiler-body .prose:focus { outline: none; }
.mini-map { position: relative; aspect-ratio: 16 / 7; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--c-border-strong); background: #0a1a26; }
.mini-map .map-canvas { position: absolute; inset: 0; }
.mini-map-zoom { position: absolute; top: var(--s-3); right: var(--s-3); z-index: 2; display: grid; gap: var(--s-1); padding: var(--s-1); border-radius: var(--r-pill); }
.mini-map-zoom .icon-btn:disabled { opacity: .45; cursor: default; }
.mini-map-bar { position: absolute; left: var(--s-3); right: var(--s-3); bottom: var(--s-3); padding: var(--s-2) var(--s-3); border-radius: var(--r-md); display: flex; justify-content: space-between; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.tabs { display: flex; gap: var(--s-2); flex-wrap: wrap; margin-bottom: var(--s-3); }
.tabs .chip .n { color: var(--c-muted); font-weight: 500; }
/* Gallery: narrow a section to one trailer or official page. */
.gallery-from { flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); }
.gallery-from .chip { min-height: var(--touch); font-size: var(--fs-13); }
.gallery-from .chip .n { color: var(--c-muted); font-weight: 500; }
.side-card { padding: var(--s-4); }
.side-card h3 { font-size: var(--fs-15); display: flex; justify-content: space-between; margin-bottom: var(--s-2); }
.legend-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); font-size: var(--fs-13); }
.legend-list li { display: grid; grid-template-columns: 8rem 1fr; gap: var(--s-2); }
.comment { display: grid; grid-template-columns: auto 1fr; gap: var(--s-3); padding: var(--s-4) 0; border-bottom: 1px solid var(--c-border); }
.comment .who { font-weight: 700; color: var(--c-text); font-size: var(--fs-14); }
/* More on a comment (Report, Block @name; App Store guideline 1.2): signed-in readers only, never on their own. */
.comment-more { display: none; position: relative; float: right; width: 2rem; height: 2rem; min-height: 2rem; margin: -.4rem -.5rem 0 var(--s-2); padding: 0; place-items: center; color: var(--c-muted); }
html[data-signed-in] .comment-more:not([hidden]) { display: inline-grid; }
.comment-more:hover, .comment-more[aria-expanded="true"] { color: var(--c-text); background: color-mix(in srgb, var(--c-text) 6%, transparent); }
.comment-more .icon { width: 1.25rem; height: 1.25rem; }
.comment-more::before { content: ""; position: absolute; inset: -.375rem; } /* a 44 px target round the 32 px button */
.comment-menu { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--s-1); margin-top: var(--s-1); font-weight: 600; }
.comment-menu[hidden] { display: none; }
.comment-menu .text-btn { color: var(--c-secondary); font-size: var(--fs-14); }
.comment-menu .text-btn:hover { color: var(--c-text); }
.comment-menu .comment-block { color: #FF8A8E; color: light-dark(#C4282D, #FF8A8E); }
.ask-dialog { width: min(28rem, calc(100% - 2rem)); }
.ask-choices { border: 0; margin: 0; padding: 0; display: grid; }
.ask-actions { justify-content: flex-end; gap: var(--s-2); flex-wrap: wrap; }
.profile-block { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--s-3); margin-top: var(--s-3); }
.profile-block[hidden] { display: none; }
.profile-block p { margin: 0; }
/* A writer's rank: a button that opens their rank card (rank, Rep, progress). Small to look at; the ::after makes the
   place you can tap 44px tall without pushing the line apart. */
.rank-badge { position: relative; display: inline-flex; align-items: center; gap: .3rem; font: 600 var(--fs-11)/1.4 var(--f-body); padding: .1rem .45rem .1rem .35rem; border: 0; border-radius: var(--r-xs); background: rgba(246,207,31,.16); color: var(--c-pink-light); margin-left: var(--s-2); cursor: pointer; vertical-align: 1px; }
/* Rank badges (rank_tiers.badge → glyph rank-*): flat, in the text colour around them, never the only signal (the
   tier and rank are always written beside them). 16px in a comment's rank button. */
.rank-glyph { width: 1rem; height: 1rem; }
.rank-badge .rank-glyph { margin: -.1rem 0; color: var(--tier, currentColor); }
/* Phones: the badge stands for the tier, so its name is kept for screen readers (and the rank card) and the line stays short. */
@media (max-width: 480px) { .rank-badge-tier { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
.rank-badge::after { content: ''; position: absolute; inset: -.8125rem -.25rem; }
.rank-badge:hover, .rank-badge[aria-expanded="true"] { background: rgba(246,207,31,.3); }
.rank-card { margin: var(--s-2) 0; padding: var(--s-3); max-width: 22rem; border: 1px solid var(--c-border-strong); border-radius: var(--r-md); background: var(--c-surface-2); font-size: var(--fs-14); font-weight: 400; color: var(--c-body); }
.rank-card strong { color: var(--c-text); }
.rank-card-head { display: flex; gap: var(--s-3); align-items: center; }
.rank-card-head > .rank-glyph { width: 3.5rem; height: 3.5rem; stroke-width: 1.7; color: var(--tier, var(--c-pink-text)); }
.rank-card-head > div { flex: 1; min-width: 0; }
.rank-card-rep { margin: var(--s-1) 0 var(--s-2); font: 600 var(--fs-16) var(--f-body); color: var(--c-text); font-variant-numeric: tabular-nums; }
.rank-card .bar > span { background: var(--c-pink-fill); }
.rank-card-close { display: inline-grid; place-items: center; flex: none; width: var(--touch); height: var(--touch); margin: calc(var(--s-3) * -1); border: 0; border-radius: var(--r-pill); background: none; color: var(--c-secondary); }
.rank-card-close:hover { background: var(--c-surface-3); color: var(--c-text); }
.rank-card-close .icon { width: 1.125rem; height: 1.125rem; }
.rank-card-link { display: inline-flex; align-items: center; min-height: var(--touch); margin-bottom: calc(var(--s-3) * -1); }
.my-rank { padding: 0; color: var(--c-secondary); font-size: inherit; text-decoration: underline dotted; text-underline-offset: 3px; }
.text-btn.my-rank { display: inline-flex; align-items: center; gap: .35rem; text-align: left; }
.my-rank .rank-glyph { color: var(--c-pink-light); }
.text-btn.my-rank:hover { background: none; color: var(--c-text); }
.disc-key { margin: var(--s-3) 0 0; }
/* Reactions: icon, name and count, so it's clear what each one says (what it means is in its tooltip too). */
.reactions { display: flex; gap: var(--s-2); margin-top: var(--s-2); flex-wrap: wrap; }
.reaction { display: inline-flex; align-items: center; gap: .35rem; min-height: var(--touch); padding: 0 var(--s-3); border-radius: var(--r-pill); border: 1px solid var(--c-border-strong); background: var(--c-surface-1); color: var(--c-secondary); font-size: var(--fs-13); font-weight: 600; }
.reaction .icon { width: 1rem; height: 1rem; }
.reaction-n { color: var(--c-text); font-variant-numeric: tabular-nums; }
.reaction:hover { border-color: var(--c-pink-text); }
.reaction[aria-pressed="true"] { border-color: var(--c-pink-fill); background: rgba(246,207,31,.16); color: var(--c-pink-light); box-shadow: inset 0 0 0 1px var(--c-pink-fill); }
.replies { margin-left: var(--s-7); }
/* The box's foot: signed out, "Free, no password…" and Sign in beside "Join free to post"; on a phone the words go
   above the button rather than squeezing it. */
.disc-actions { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-3); flex-wrap: wrap; }
.disc-actions [data-comment-hint] { flex: 1 1 12rem; min-width: 0; }
.disc-actions .btn { margin-left: auto; }
.disc-latest { margin: var(--s-1) 0 0; }
/* New comments while it's open: they wait behind this, so nothing jumps under the reader. */
.disc-new { display: flex; justify-content: center; }
.new-pill { margin-top: var(--s-3); min-height: var(--touch); border-radius: var(--r-pill); }
/* Just posted, or just shown: a brief tint that fades (none with reduced motion; it's removed after a few seconds). */
.comment-new { animation: comment-new 2.4s ease-out; }
@keyframes comment-new { from { background: rgba(246,207,31,.16); } to { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .comment-new { animation: none; background: rgba(246,207,31,.10); } }
.comment:focus { outline: none; }
.comment:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; }
.held-note { margin: var(--s-2) 0 0; font-style: italic; }
.username-free { color: var(--c-status-up); }

/* ---------- Countdown ---------- */
.count-boxes { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.count-box { min-width: 6.5rem; padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: color-mix(in srgb, var(--c-bg) 60%, transparent); border: 1px solid var(--c-border-strong); text-align: center; }
.count-box b { display: block; font: 700 clamp(var(--fs-40), 5vw, var(--fs-56))/1 var(--f-mono); color: var(--c-text); }
.count-box.is-seconds b { color: var(--c-pink-text); }
.count-box span { font-size: var(--fs-12); color: var(--c-muted); }
.cd-hero { padding-top: clamp(var(--s-7), 6vh, var(--s-10)); display: flex; flex-direction: column; align-items: center; text-align: center; }
.cd-title { font-size: clamp(2.75rem, 8vw, var(--fs-96)); margin-top: var(--s-2); }
.cd-to { margin: var(--s-6) 0 var(--s-3); font: 600 var(--fs-13)/1.2 var(--f-eyebrow); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--c-muted); }
.cd-launched { font: 600 var(--fs-40) var(--f-title); color: var(--c-text); margin: var(--s-6) 0 0; }
.count-boxes.is-hero { justify-content: center; gap: clamp(var(--s-2), 1.5vw, var(--s-4)); }
.count-boxes.is-hero .count-box { min-width: clamp(4.5rem, 16vw, 8.5rem); padding: var(--s-4) var(--s-3); border-radius: var(--r-lg); background: var(--glass-bg); border-color: var(--glass-border); backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur)); }
.count-boxes.is-hero .count-box b { font-size: clamp(var(--fs-36), 7vw, var(--fs-96)); letter-spacing: -.02em; }
.count-boxes.is-hero .count-box span { font: 600 var(--fs-12)/1.2 var(--f-eyebrow); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; }
.cd-line { margin: var(--s-5) 0 var(--s-4); font-size: var(--fs-17); }
/* The wait since the first trailer (owner, 28 Oct): a thin bar under the boxes, solid pink, no glow. */
.cd-wait { width: min(100%, 34rem); margin-top: var(--s-5); text-align: left; }
.cd-wait-head { display: flex; justify-content: space-between; gap: var(--s-3); font: 600 var(--fs-13)/1.2 var(--f-eyebrow); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--c-muted); }
.cd-wait-head b { color: var(--c-text); letter-spacing: 0; }
.cd-wait-bar { height: .5rem; margin: var(--s-2) 0; border-radius: var(--r-pill); background: var(--c-surface-2, color-mix(in srgb, var(--c-text) 8%, transparent)); overflow: hidden; }
.cd-wait-bar i { display: block; height: 100%; border-radius: inherit; background: var(--c-pink-fill); }
.cd-wait p { margin: 0; }
.cd-region { display: grid; gap: var(--s-1); justify-items: center; }
.cd-region label { font-size: var(--fs-13); color: var(--c-secondary); }
.cd-region p { margin: 0; max-width: 34rem; }
.pill-select {
  min-height: var(--touch); max-width: min(100%, 22rem); padding: 0 var(--s-7) 0 var(--s-4); border-radius: var(--r-pill);
  border: 1px solid var(--glass-border); background: var(--glass-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23C9C2D4' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right var(--s-4) center;
  appearance: none; color: var(--c-text); font-weight: 600;
}
.cd-actions { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); width: min(100%, 44rem); margin-top: var(--s-7); text-align: left; }
.cd-action { display: flex; flex-direction: column; gap: var(--s-2); align-items: flex-start; }
.cd-action strong { color: var(--c-text); }
.cd-action p { margin: 0; }
.cd-action .row-between { width: 100%; }
.cd-action .btn { margin-top: auto; }
.cd-preload { font-size: var(--fs-28); color: var(--c-text); }
.unlock-table { width: 100%; border-collapse: collapse; }
.unlock-table td, .unlock-table th { padding: var(--s-3) var(--s-2); border-bottom: 1px solid var(--c-border); text-align: left; vertical-align: top; }
.unlock-table tr.is-you { background: rgba(246,207,31,.10); }
@media (max-width: 640px) { .unlock-table td:nth-child(3) { display: none; } } /* UTC column: local time is enough on phones */
.table-wrap { overflow-x: auto; }
.table-wrap[tabindex]:focus-visible { outline: 2px solid var(--c-focus); } /* scrolls sideways on phones: reachable with the keyboard */
.timeline { list-style: none; margin: 0; padding: 0 0 0 var(--s-5); border-left: 2px solid var(--c-surface-3); }
.timeline li { position: relative; padding: 0 0 var(--s-4) var(--s-3); }
.timeline li::before { content: ''; position: absolute; left: calc(-1 * var(--s-5) - 7px); top: .3rem; width: .75rem; height: .75rem; border-radius: 50%; border: 2px solid var(--c-secondary); background: var(--c-bg); }
.timeline li.is-done::before { background: var(--c-pink-fill); border-color: var(--c-pink-fill); }

/* ---------- Status ---------- */
.status-hero { border-radius: var(--r-xl); padding: var(--s-6); border: 2px solid var(--st, var(--c-status-up)); background: linear-gradient(135deg, color-mix(in srgb, var(--st, var(--c-status-up)) 18%, transparent), transparent 60%), var(--c-surface-1); }
.status-hero.UP { --st: var(--c-status-up); } .status-hero.ISSUES { --st: var(--c-status-issues); } .status-hero.DOWN { --st: var(--c-status-down); }
.status-word { font: 600 clamp(var(--fs-32), 5vw, var(--fs-56))/1 var(--f-title); text-transform: uppercase; color: var(--st); margin: 0; }
.status-top { padding-top: var(--s-6); }
/* Latest reports (status): when, where, what, error code; a table that scrolls inside itself on phones. */
.status-latest-scroll { overflow-x: auto; margin-top: var(--s-3); }
.status-latest-table { width: 100%; border-collapse: collapse; font-size: var(--fs-14); }
.status-latest-table th { text-align: left; font-size: var(--fs-12); color: var(--c-muted); text-transform: uppercase; letter-spacing: var(--ls-md, 1px); padding: var(--s-2); }
.status-latest-table td { padding: var(--s-2); border-top: 1px solid var(--c-border); color: var(--c-body); white-space: nowrap; }
.status-latest-table td:nth-child(3) { white-space: normal; min-width: 9rem; }
.status-latest-table code, .status-code-list code { padding: .1rem .4rem; border-radius: var(--r-sm); background: var(--c-surface-2); border: 1px solid var(--c-border-strong); color: var(--c-text); font-size: var(--fs-13); }
.status-codes { display: grid; gap: var(--s-2); margin-top: var(--s-3); }
.status-code-list { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; margin: 0; padding: 0; }
.status-code-list li { display: inline-flex; align-items: center; gap: var(--s-2); }
.status-h1 { font: 600 var(--fs-22) var(--f-title); text-transform: uppercase; color: var(--c-text); margin: 0; }
.status-hero { margin-top: var(--s-3); }
/* Headline left, actions right (a fixed column, so the headline keeps the room); stacked on phones. */
.status-hero-top { display: grid; grid-template-columns: minmax(0, 1fr) 16rem; gap: var(--s-5); align-items: start; }
.status-head { display: flex; align-items: center; gap: var(--s-5); min-width: 0; }
.status-head-text { min-width: 0; }
.status-incident { font: 600 var(--fs-18) var(--f-body); color: var(--c-text); margin: var(--s-3) 0 var(--s-1); }
.status-icon { display: grid; place-items: center; width: 5rem; height: 5rem; border-radius: 50%; background: var(--st); color: var(--c-bg); box-shadow: 0 0 0 .6rem color-mix(in srgb, var(--st) 25%, transparent); flex: none; }
.status-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); list-style: none; margin: var(--s-5) 0 0; padding: 0; }
.status-recovery { margin-top: var(--s-4); padding: var(--s-3) var(--s-4); background: rgba(0,0,0,.3); background: light-dark(rgba(26,18,32,.05), rgba(0,0,0,.3)); border-radius: var(--r-md); }
.status-past > li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; }
.status-past-when { white-space: nowrap; }
.status-official { gap: var(--s-2); }
.status-official .chip { min-height: var(--touch); }
@media (max-width: 760px) {
  .status-hero-top { grid-template-columns: 1fr; }
  .status-tiles { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .status-hero { padding: var(--s-5); }
  .status-head { gap: var(--s-4); align-items: flex-start; }
  .status-past > li { grid-template-columns: auto minmax(0, 1fr); row-gap: var(--s-1); }
  .status-past-when { grid-column: 2; }
  .status-official > span { width: 100%; }
  .status-icon { width: 3rem; height: 3rem; box-shadow: 0 0 0 .35rem color-mix(in srgb, var(--st) 25%, transparent); }
  .status-icon svg { width: 1.4rem !important; height: 1.4rem !important; }
}
.plat-tile { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-radius: var(--r-md); border: 1px solid var(--c-border-strong); background: rgba(0,0,0,.25); background: light-dark(#FFFFFF, rgba(0,0,0,.25)); }
.plat-tile .state { margin-left: auto; font: 700 var(--fs-15) var(--f-title); letter-spacing: var(--ls-md); }
.st-UP { color: var(--c-status-up); } .st-ISSUES { color: var(--c-status-issues); } .st-DOWN { color: var(--c-status-down); }
/* Report a problem (status page): big tap targets instead of dropdowns; a bottom sheet on phones. */
.report-form { display: grid; gap: var(--s-5); }
.report-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.report-group legend { padding: 0; margin-bottom: var(--s-2); font-weight: 600; font-size: var(--fs-14); color: var(--c-text); }
.report-where { display: grid; gap: var(--s-2); grid-template-columns: repeat(3, 1fr); }
.report-what { display: grid; gap: var(--s-2); grid-template-columns: repeat(2, 1fr); }
.report-opt { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-1); min-height: var(--touch); padding: var(--s-3); border-radius: var(--r-md); border: 1px solid var(--c-border-strong); background: var(--c-surface-1); color: var(--c-text); cursor: pointer; transition: background .15s, border-color .15s; }
.report-opt:hover { background: var(--c-surface-3); }
.report-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.report-opt:has(input:checked) { background: rgba(246,207,31,.18); border-color: var(--c-pink-fill); box-shadow: inset 0 0 0 1px var(--c-pink-fill); }
.report-opt:has(input:checked) .report-ico { color: var(--c-pink-text); }
.report-opt:has(input:focus-visible) { outline: 2px solid var(--c-focus); outline-offset: 2px; }
.report-opt-row { flex-direction: row; align-items: center; gap: var(--s-3); }
.report-ico { color: var(--c-secondary); }
.report-name { font-weight: 600; font-size: var(--fs-14); line-height: 1.3; }
.report-state { display: inline-flex; align-items: center; gap: var(--s-1); color: var(--c-secondary); margin-top: auto; }
.report-code { text-transform: uppercase; letter-spacing: .04em; }
.report-form .btn-primary[aria-disabled="true"] { opacity: .5; cursor: default; }
@media (max-width: 560px) {
  dialog.modal.report-sheet { margin: auto 0 0; max-height: calc(100dvh - var(--s-6)); width: 100%; max-width: 100%; border-radius: var(--r-xl) var(--r-xl) 0 0; border-bottom: 0; padding: var(--s-5) var(--s-4) calc(var(--s-5) + env(safe-area-inset-bottom)); }
  .report-where { grid-template-columns: 1fr; }
  .report-where .report-opt { flex-direction: row; align-items: center; gap: var(--s-3); }
  .report-where .report-state { margin: 0 0 0 auto; }
}
@media (max-width: 360px) { .report-what { grid-template-columns: 1fr; } }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 9rem; }
.bars span { flex: 1; min-width: 2px; background: var(--c-source-trailer); border-radius: 2px 2px 0 0; }
.bars span.is-high { background: var(--c-status-issues); }

/* ---------- Article ---------- */
.in-short { border-radius: var(--r-lg); padding: var(--s-5); background: linear-gradient(135deg, rgba(246,207,31,.12), transparent), var(--c-surface-1); border: 1px solid rgba(246,207,31,.3); }
.in-short ul { margin: 0; padding-left: var(--s-5); }
.in-short .eyebrow { margin-bottom: var(--s-2); }
.official-row { display: grid; gap: var(--s-1); }
.in-short li + li { margin-top: var(--s-1); }
/* Article page rhythm: comfortable, not spread out. */
.article { margin-top: var(--s-6); }
.article-meta { margin-top: var(--s-3); gap: var(--s-2) var(--s-3); }
.article-source { text-decoration: underline; text-decoration-color: var(--c-border-strong); text-underline-offset: 3px; }
.article-source:hover { color: var(--c-text); }
.article-title { margin-top: var(--s-3); font-size: clamp(var(--fs-32), 5vw, var(--fs-46)); line-height: 1.05; }
.article-example { margin-top: var(--s-4); margin-bottom: 0; }
.article .in-short { margin-top: var(--s-5); }
.article-foot { display: grid; gap: var(--s-5); margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--c-border); }
.article-foot .eyebrow { margin: 0 0 var(--s-2); }
.chip-list { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; margin: 0; padding: 0; }
.chip-list .chip { min-height: 44px; }
.source-list { margin: 0; padding-left: 1.4em; display: grid; gap: var(--s-2); }
.source-list a { display: inline-block; max-width: 100%; padding: .6rem 0; overflow-wrap: anywhere; } /* a long name wraps, never runs off a phone's edge */
.source-line { margin: var(--s-4) 0 0; overflow-wrap: anywhere; }
.source-line a { padding: .6rem 0; }
.article-cats { display: inline-flex; flex-wrap: wrap; gap: var(--s-2); }
.article-cats a { color: var(--c-secondary); text-decoration: underline; text-underline-offset: 3px; }
.article .rollout { margin-top: var(--s-4); }
.article-body { margin-top: var(--s-6); }
.article-side { display: grid; gap: var(--s-4); align-content: start; }
.related a:first-of-type { border-top: 0; }
.related a:hover { color: var(--c-text); }
.rollout { display: flex; gap: var(--s-4); align-items: center; flex-wrap: wrap; padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: var(--c-surface-1); border: 1px solid var(--c-border); font-size: var(--fs-14); }
/* Contents stay in view beside the article as you read (the news sidebar as a whole, so Related stays under them);
   on phones they're a box at the top of the article instead (partials/toc-inline). */
/* Under the header as it really is (js/app.js measures it: the countdown bar or the staff bar make it taller), not a
   fixed 5rem it slid under (owner, 2 Nov). */
.toc, .article-side { position: sticky; top: calc(var(--header-h, 4.5rem) + var(--s-4)); max-height: calc(100vh - var(--header-h, 4.5rem) - var(--s-6)); overflow-y: auto; }
.article-side .toc { position: static; max-height: none; overflow: visible; }
.toc a, .toc-inline a { display: block; padding: var(--s-1) 0; color: var(--c-secondary); font-size: var(--fs-14); }
.toc a:hover, .toc-inline a:hover { color: var(--c-text); }
.toc-inline { display: none; margin-top: var(--s-4); padding: 0 var(--s-4); }
.toc-inline summary { display: flex; align-items: center; gap: var(--s-1); min-height: 48px; cursor: pointer; font-weight: 600; color: var(--c-text); }
.toc-inline nav { padding-bottom: var(--s-3); }
.toc-inline a { min-height: 44px; display: flex; align-items: center; }
@media (max-width: 960px) {
  .toc-inline { display: block; }
  .toc, .article-side { position: static; max-height: none; overflow: visible; }
  aside.toc, .article-side .toc { display: none; }
}
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { position: relative; padding: 0 0 var(--s-5) var(--s-9); counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--c-surface-3); font: 700 var(--fs-15) var(--f-mono); color: var(--c-text); }
.steps .tip { margin-top: var(--s-2); padding: var(--s-2) var(--s-3); border-radius: var(--r-sm); background: color-mix(in srgb, var(--cat-missions) 10%, transparent); border-left: 3px solid var(--cat-missions); font-size: var(--fs-14); }
.data-table { width: 100%; border-collapse: collapse; font-size: var(--fs-14); }
.data-table th { text-align: left; font-weight: 600; color: var(--c-muted); padding: var(--s-2); border-bottom: 1px solid var(--c-border-strong); }
.data-table td { padding: var(--s-3) var(--s-2); border-bottom: 1px solid var(--c-border); }

/* Used on other pages too (search results' dots, "Back to the map" on entries, link-style buttons): kept here; the
   map's own styles are in map.css, loaded only by the map, the home preview and an entry's small map. */
.entry-back { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-2) var(--s-4); }
.entry-back .btn { gap: var(--s-2); min-height: var(--touch); }
.entry-back .btn[hidden] { display: none; }
.entry-back .btn .icon { width: 1rem; height: 1rem; }
.entry-back .entry-map-link { margin-left: auto; } /* Show on the map: the row's right-hand end */
.pin-dot.is-unpinned { background: transparent; border: 2px dashed var(--cat); box-sizing: border-box; }
.text-btn { background: none; border: 0; min-height: var(--touch); padding: 0 var(--s-2); border-radius: var(--r-sm); }
.text-btn:hover { background: var(--c-surface-3); }
.text-btn[aria-disabled="true"] { color: var(--c-muted); cursor: default; }
.text-btn[aria-disabled="true"]:hover { background: none; }
.pin-dot { width: .75rem; height: .75rem; border-radius: 50%; background: var(--cat); flex: none; }
/* ---------- Modal / sheet ---------- */
dialog.modal { border: 1px solid var(--c-border-strong); border-radius: var(--r-xl); background: var(--c-surface-2); color: var(--c-body); padding: var(--s-6); width: min(32rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); overflow-y: auto; overscroll-behavior: contain; }
dialog.modal::backdrop { background: rgba(5,3,8,.7); }
/* Analytics consent bar (js/analytics.js): small, at the foot, above the radio player; a row on wide screens. */
.consent { position: fixed; left: var(--s-4); right: var(--s-4); bottom: var(--s-4); z-index: 85; max-width: 40rem; margin: 0 auto; padding: var(--s-4); border: 1px solid var(--c-border-strong); border-radius: var(--r-lg); background: var(--c-surface-2); color: var(--c-body); font-size: var(--fs-14); display: flex; flex-direction: column; gap: var(--s-3); box-shadow: var(--sh-card); }
.consent[hidden] { display: none; }
.consent p { margin: 0; }
.consent a { color: var(--c-pink-text); }
.consent-actions { display: flex; gap: var(--s-3); justify-content: flex-end; }
.consent-actions .btn { min-height: 2.75rem; }
@media (min-width: 640px) { .consent { flex-direction: row; align-items: center; } .consent-actions { flex: none; } }
/* Phones: a slimmer bar hugging the bottom edge, the two buttons side by side and equal (19 Nov 2026 audit: it covered
   a fifth of the screen over the article). Still 44px buttons. */
@media (max-width: 639px) {
  .consent { left: var(--s-2); right: var(--s-2); bottom: max(var(--s-2), env(safe-area-inset-bottom)); padding: var(--s-3); gap: var(--s-2); font-size: var(--fs-13); line-height: 1.4; }
  .consent-actions { gap: var(--s-2); }
  .consent-actions .btn { flex: 1; min-height: 2.75rem; padding-block: 0; }
}
.toast { position: fixed; left: 50%; bottom: var(--s-6); transform: translateX(-50%); z-index: 90; padding: var(--s-3) var(--s-5); border-radius: var(--r-pill); background: var(--c-text); color: var(--c-bg); font-weight: 600; display: flex; gap: var(--s-4); align-items: center; }
.toast button { background: none; border: 0; font-weight: 700; color: var(--c-pink-fill); min-height: 2rem; }

/* ---------- Profile ---------- */
.profile-head { display: flex; gap: var(--s-6); align-items: center; flex-wrap: wrap; }
.avatar-xl { width: 7rem; height: 7rem; border-radius: 50%; display: grid; place-items: center; background: var(--c-surface-3); font: 600 var(--fs-46) var(--f-title); color: var(--c-text); border: 3px solid var(--tier, var(--c-pink-text)); overflow: hidden; }
@media (max-width: 480px) { .profile-head { gap: var(--s-4); } .avatar-xl { width: 5.5rem; height: 5.5rem; font-size: var(--fs-40); } }
/* Account page and public profile header (partials/profile-header): who, then Rep first, as one block. */
.profile-header { display: grid; gap: var(--s-4); }
.profile-id { flex: 1; min-width: 0; }
.profile-id .page-title { font-size: var(--fs-40); overflow-wrap: anywhere; margin: 0; }
@media (max-width: 480px) { .profile-head { flex-wrap: nowrap; } .profile-head .avatar-xl { width: 4.5rem; height: 4.5rem; font-size: var(--fs-32); } .profile-id .page-title { font-size: var(--fs-32); } }
.rep-hero { display: grid; gap: var(--s-2); max-width: 44rem; padding: var(--s-4) var(--s-5); border-radius: var(--r-lg); background: var(--c-surface-1); border: 1px solid var(--c-border-strong); }
.rep-hero-top { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: var(--s-1) var(--s-4); }
.rep-big { margin: 0; font: 600 var(--fs-20) var(--f-body); color: var(--c-secondary); }
.rep-big b { font: 700 var(--fs-46)/1 var(--f-title); color: var(--c-text); }
.rep-rank { margin: 0; display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 600; color: var(--c-text); }
.rep-next { margin: 0; font-weight: 600; font-size: var(--fs-15); color: var(--c-text); }
.rep-how { margin: 0; color: var(--c-secondary); }
.rep-how .rank-link { min-height: 2.75rem; }
.profile-bio { margin: 0; }
.profile-actions { margin-top: var(--s-4); }
/* A Leonida Glass avatar icon (components/avatar-face) instead of the initial, wherever the initial shows. */
.avatar-xl .avatar-icon { width: 58%; height: 58%; color: var(--c-pink-text); stroke-width: 1.6; }
.user-initial .avatar-icon { width: 1.3rem; height: 1.3rem; color: var(--c-pink-text); }
.icon-btn .avatar-icon { width: 1.4rem; height: 1.4rem; color: var(--c-pink-text); }
/* Edit profile → Avatar: a live preview in your tier's ring, then the initial and the avatars in groups, each a 48px
   target in an even wrapping grid (never sideways). The chosen one: a pink ring plus a check badge (not colour alone). */
.avatar-pick { border: 0; padding: 0; margin: 0; min-width: 0; }
.avatar-preview { display: flex; align-items: center; gap: var(--s-4); margin-top: var(--s-2); }
.avatar-preview p { margin: 0; flex: 1; min-width: 0; }
.avatar-preview-title { color: var(--c-text); }
@media (max-width: 480px) { .avatar-preview .avatar-xl { width: 5.5rem; height: 5.5rem; font-size: var(--fs-40); } .avatar-preview .user-initial { display: none; } }
.avatar-group { border: 0; padding: 0; margin: var(--s-4) 0 0; min-width: 0; }
.avatar-group-title { padding: 0; font-weight: 700; letter-spacing: var(--ls-lg); text-transform: uppercase; color: var(--c-secondary); }
.avatar-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(3.25rem, 1fr)); gap: var(--s-2); margin-top: var(--s-2); justify-items: center; }
.avatar-choice { position: relative; cursor: pointer; display: grid; place-items: center; width: 3.25rem; height: 3.25rem; }
.avatar-choice-initial { width: fit-content; height: auto; min-height: 3.25rem; margin-top: var(--s-4); grid-template-columns: 3.25rem auto; justify-content: start; gap: var(--s-3); place-items: center start; }
.avatar-choice-initial .avatar-opt { justify-self: center; }
.avatar-choice-initial .avatar-check { right: auto; left: 2.25rem; }
.avatar-choice-text { font-weight: 600; color: var(--c-text); padding-right: var(--s-3); }
.avatar-pick input { position: absolute; opacity: 0; width: 100%; height: 100%; inset: 0; margin: 0; cursor: pointer; }
.avatar-pick .avatar-opt { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--c-surface-3); border: 2px solid var(--c-border-strong); color: var(--c-text); font: 700 var(--fs-20) var(--f-title); }
.avatar-pick .avatar-opt .icon { width: 1.7rem; height: 1.7rem; color: var(--c-pink-text); }
.avatar-pick input:checked + .avatar-opt { border-color: var(--c-pink-text); box-shadow: 0 0 0 2px var(--c-pink-text); }
.avatar-pick input:focus-visible + .avatar-opt { outline: 2px solid var(--c-focus); outline-offset: 4px; }
.avatar-check { display: none; position: absolute; right: -.125rem; bottom: -.125rem; width: 1.25rem; height: 1.25rem; border-radius: 50%; place-items: center; background: var(--c-pink-fill); color: var(--c-on-pink); border: 2px solid var(--c-surface-1); pointer-events: none; }
.avatar-check .icon { width: .8rem; height: .8rem; stroke-width: 3; }
.avatar-pick input:checked ~ .avatar-check { display: grid; }
@media (hover: hover) { .avatar-choice:hover .avatar-opt { border-color: var(--c-secondary); } }
.avatar-status { margin: var(--s-2) 0 0; min-height: 1.5em; color: var(--c-secondary); }
.avatar-status:empty { min-height: 0; }
[data-avatar-save] { margin-top: var(--s-2); }
/* Settings → Change email: the button opens the form in place. */
.change-email > summary { list-style: none; width: fit-content; }
.change-email > summary::-webkit-details-marker { display: none; }
.stat-tiles { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); }
.stat-tile { padding: var(--s-4); border-radius: var(--r-md); background: var(--c-surface-1); border: 1px solid var(--c-border); }
.stat-tile b { display: block; font: 700 var(--fs-28) var(--f-body); color: var(--c-text); }
.danger-zone { border-color: color-mix(in srgb, var(--c-status-down) 35%, transparent); }
.btn-danger { background: transparent; border-color: color-mix(in srgb, var(--c-status-down) 60%, transparent); color: #FF8A8E; color: light-dark(#C4282D, #FF8A8E); }
.btn-danger:hover { background: color-mix(in srgb, var(--c-status-down) 12%, transparent); color: #FFB0B3; color: light-dark(#A11F24, #FFB0B3); }

/* ---------- Article blocks (rich editor): tip boxes and click-to-play official videos ---------- */
.article-tip { display: block; margin: var(--s-5) 0; padding: var(--s-4) var(--s-5); border-radius: var(--r-md); border-left: 4px solid var(--c-status-up); background: color-mix(in srgb, var(--c-status-up) 10%, transparent); color: var(--c-body); }
.article-tip strong { display: block; margin-bottom: var(--s-1); color: var(--c-status-up); font: 600 var(--fs-14)/1.2 var(--f-eyebrow); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; }
.article-tip[data-type="note"] { border-color: var(--c-source-trailer); background: color-mix(in srgb, var(--c-source-trailer) 10%, transparent); }
.article-tip[data-type="note"] strong { color: var(--c-source-trailer); }
.article-tip[data-type="warning"] { border-color: var(--c-status-issues); background: color-mix(in srgb, var(--c-status-issues) 10%, transparent); }
.article-tip[data-type="warning"] strong { color: var(--c-status-issues); }
.article-video, .prose .article-video { margin: var(--s-5) 0; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: var(--c-surface-2); display: grid; place-items: center; padding: var(--s-4); }
.article-video:has(iframe) { padding: 0; }
.article-video a, .prose .article-video a { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: var(--touch); max-width: 100%; padding: var(--s-2) var(--s-5); border-radius: var(--r-pill); background: var(--c-pink-fill); color: var(--c-on-pink); font-weight: 600; line-height: 1.3; text-align: center; text-decoration: none; }
.article-video a:hover { background: #C22F5C; color: var(--c-on-pink); }
.article-video iframe { width: 100%; height: 100%; border: 0; }
/* Button block (call to action). Pink = main, Outline = secondary; full width on phones; ↗ on links to other sites. */
.prose .article-button { margin: var(--s-5) 0; }
.prose .article-button a { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: var(--touch); max-width: 100%; padding: var(--s-2) var(--s-6); border: 1px solid transparent; border-radius: var(--r-pill); background: var(--c-pink-fill); color: var(--c-on-pink); box-shadow: var(--sh-button-inset); font: 600 var(--fs-16)/1.3 var(--f-body); text-align: center; text-decoration: none; transition: background .15s, border-color .15s; }
.prose .article-button a:hover { background: #C22F5C; color: var(--c-on-pink); }
.prose .article-button[data-type="secondary"] a { background: transparent; border-color: var(--c-border-strong); color: var(--c-text); box-shadow: none; }
.prose .article-button[data-type="secondary"] a:hover { background: var(--c-surface-2); color: var(--c-text); }
.prose .article-button a[target="_blank"]::after { content: '↗'; content: '↗' / ''; }
@media (max-width: 639px) { .prose .article-button a { display: flex; width: 100%; } }
/* Pull quote block: one line set large between rules. */
.prose .article-pullquote { margin: var(--s-7) 0; padding: var(--s-5) var(--s-2); border-block: 1px solid var(--c-border-strong); text-align: center; }
.prose .article-pullquote blockquote { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; font-style: normal; }
.prose .article-pullquote p { margin: 0; color: var(--c-text); font: 600 var(--fs-24)/1.25 var(--f-title); letter-spacing: var(--ls-sm); text-transform: uppercase; text-wrap: balance; }
.prose .article-pullquote p::before { content: '“'; content: '“' / ''; display: block; height: .55em; color: var(--c-pink-text); font-size: 1.75em; line-height: 1; }
.prose .article-pullquote figcaption { margin-top: var(--s-3); color: var(--c-muted); font: 600 var(--fs-14)/1.3 var(--f-eyebrow); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; }
@media (min-width: 640px) { .prose .article-pullquote p { font-size: var(--fs-28); } }

/* ---------- Coming-soon gate: slim chrome on the pages that stay live ---------- */
.gate-bar { position: sticky; top: 0; z-index: 40; background: var(--glass-bg); backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur)); border-bottom: 1px solid var(--glass-border); }
.gate-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: 4rem; }
.gate-bar .btn-sm { min-height: var(--touch); }
.gate-bar [aria-current="page"] { color: var(--c-pink-text); }
@media (max-width: 480px) { .gate-bar .btn-primary { display: none; } }
.gate-foot { margin-top: var(--s-10); padding-block: var(--s-6); border-top: 1px solid var(--c-border); }
.gate-foot a { min-height: var(--touch); display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  a.card:hover, .item-card:hover, .tile:hover { transform: none; }
}
@media (prefers-contrast: more) {
  :root, :root[data-theme] { --c-border: color-mix(in srgb, var(--c-text) 30%, transparent); --c-border-strong: color-mix(in srgb, var(--c-text) 50%, transparent); --c-muted: var(--c-secondary); }
}
/* Article cards with featured images (home, News, Guides) */
.article-thumb { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-md); background: var(--c-surface-3); }
.article-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-thumb.is-blank { --tint: var(--c-pink-fill); background: radial-gradient(120% 90% at 85% 0%, color-mix(in srgb, var(--tint) 45%, transparent), transparent 60%), linear-gradient(160deg, #241433, #120b1c); color: color-mix(in srgb, #fff 85%, var(--tint)); }
.article-thumb.kind-guide, .article-thumb.kind-mission_guide { --tint: var(--cat-live); }
.article-thumb.kind-list { --tint: var(--cat-missions); }
.article-thumb.is-blank .icon { width: 2.25rem; height: 2.25rem; }
.article-thumb-mark { position: absolute; left: var(--s-3); bottom: var(--s-2); font-family: var(--f-title); font-size: var(--fs-14); letter-spacing: .04em; color: rgba(255,255,255,.75); }
.article-thumb-mark b { color: var(--c-pink-text); font-weight: inherit; }
.post-card { display: grid; gap: var(--s-2); align-content: start; padding: 0; overflow: hidden; color: inherit; text-decoration: none; }
.post-card .article-thumb { border-radius: 0; }
.post-card-body { display: grid; gap: var(--s-2); padding: var(--s-3) var(--s-4) var(--s-4); }
.post-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.post-card-title { margin: 0; color: var(--c-text); font-size: var(--fs-17); line-height: 1.3; font-weight: 600; }
.post-card:hover .post-card-title, .post-card:focus-visible .post-card-title { color: var(--c-pink-text); }
.post-card img { transition: transform .3s ease; }
.post-card:hover img { transform: scale(1.03); }
.post-card.is-lead .post-card-title { font-size: var(--fs-22); }
@media (min-width: 861px) { .post-grid .post-card.is-lead { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; } .post-grid .post-card.is-lead .article-thumb { aspect-ratio: auto; min-height: 16rem; flex: 1 1 auto; } .post-grid .post-card.is-lead .post-card-title { font-size: var(--fs-28); } }
.post-grid { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.article-cover { margin: var(--s-4) 0 0; }
.article-cover .article-thumb { border-radius: var(--r-lg); }
.article-cover figcaption { margin-top: var(--s-2); font-size: var(--fs-14); color: var(--c-secondary); line-height: 1.45; text-align: center; }
/* Keep reading (end of every article): three picture cards; on a phone, rows with a small picture (content first, less scrolling). */
.keep-reading-grid { display: grid; gap: var(--s-3); margin-top: var(--s-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); }
.keep-reading .post-card-title { font-size: var(--fs-15); }
@media (max-width: 640px) {
  .keep-reading-grid .post-card { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 0; align-items: stretch; }
  .keep-reading-grid .article-thumb { aspect-ratio: auto; height: 100%; min-height: 5.5rem; }
  .keep-reading-grid .article-thumb img { position: absolute; inset: 0; } /* fills the row's height, never sets it */
  .keep-reading-grid .post-card-body { padding: var(--s-2) var(--s-3); gap: var(--s-1); align-content: center; }
}
@media (prefers-reduced-motion: reduce) { .post-card img { transition: none; } .post-card:hover img { transform: none; } }
/* Status: player-report chart with a scale, average line and hover/keyboard readout */
.chart { display: grid; grid-template-columns: 2.25rem 1fr; gap: var(--s-2); }
.chart-y { display: flex; flex-direction: column; justify-content: space-between; text-align: right; height: 9rem; line-height: 1; margin-top: -.35em; margin-bottom: -.35em; font-family: var(--f-mono); }
.chart-plot { position: relative; height: 9rem; border-bottom: 1px solid var(--c-border-strong); cursor: crosshair; touch-action: pan-y;
  background: linear-gradient(var(--c-border) 1px, transparent 1px) 0 0 / 100% 50%; }
.chart-plot:focus-visible { outline: 2px solid var(--c-pink-text); outline-offset: 4px; border-radius: 2px; }
.chart-plot .bars { height: 100%; }
.chart-plot .bars span { min-height: 0; }
.chart-plot .bars span.is-sel { background: var(--c-pink-text); }
.chart-avg { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--c-muted); pointer-events: none; }
.chart-avg span { position: absolute; right: 0; bottom: 2px; padding: 0 var(--s-1); background: var(--c-surface-1); color: var(--c-muted); border-radius: var(--r-xs); }
.chart-tip { position: absolute; top: var(--s-1); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: var(--s-1) var(--s-2); border-radius: var(--r-sm); background: var(--c-surface-3); color: var(--c-text); border: 1px solid var(--c-border-strong); pointer-events: none; z-index: 2; }
.chart-x { margin-top: var(--s-1); margin-left: calc(2.25rem + var(--s-2)); }
/* Gallery */
.gallery-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.gallery-grid.is-compact { gap: var(--s-2); grid-template-columns: repeat(auto-fill, minmax(min(100%, 10rem), 1fr)); }
.gallery-item { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r-md); background: var(--c-surface-3); color: inherit; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-item:focus-visible { outline: 2px solid var(--c-pink-text); outline-offset: 3px; }
.gallery-cap { position: absolute; inset: auto 0 0 0; display: grid; gap: 2px; padding: var(--s-6) var(--s-3) var(--s-2); background: linear-gradient(transparent, color-mix(in srgb, var(--c-bg) 92%, transparent)); color: var(--c-text); }
.gallery-cap .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8,5,12,.96); color: var(--c-text); }
.lightbox::backdrop { background: rgba(8,5,12,.8); }
.lightbox-inner { position: relative; height: 100%; display: grid; place-items: center; padding: var(--s-9) var(--s-4) var(--s-4); }
.lightbox-figure { margin: 0; display: grid; gap: var(--s-3); max-width: min(100%, 110rem); max-height: 100%; grid-template-rows: minmax(0, 1fr) auto; }
.lightbox-figure img { max-width: 100%; max-height: calc(100dvh - 11rem); object-fit: contain; margin: 0 auto; border-radius: var(--r-sm); }
.lightbox-meta { display: grid; gap: var(--s-1); }
.lightbox-meta .card-title { margin: 0; }
.lightbox-meta p { margin: 0; }
.lightbox-btn { position: absolute; width: 3rem; height: 3rem; background: color-mix(in srgb, var(--c-bg) 70%, transparent); border: 1px solid var(--c-border-strong); }
.lightbox-btn.is-prev { left: var(--s-3); top: 50%; transform: translateY(-50%); }
.lightbox-btn.is-next { right: var(--s-3); top: 50%; transform: translateY(-50%); }
.lightbox-btn.is-close { right: var(--s-3); top: var(--s-3); }
/* "3 / 40": readable on any picture (light text on a dark chip, digits that keep their width); top centre, and on phones
   at the bottom between Previous and Next, clear of the zoom buttons. */
.lightbox-count { position: absolute; top: var(--s-3); left: 50%; transform: translateX(-50%); margin: 0; min-height: 3rem; display: flex; align-items: center; padding: 0 var(--s-4); border-radius: var(--r-pill); background: color-mix(in srgb, var(--c-bg) 82%, transparent); border: 1px solid var(--c-border-strong); color: var(--c-text); font: 600 var(--fs-15) var(--f-body); font-variant-numeric: tabular-nums; white-space: nowrap; pointer-events: none; }
.lightbox-count[hidden] { display: none; }
@media (max-width: 640px) { .lightbox-btn.is-prev, .lightbox-btn.is-next { top: auto; bottom: var(--s-3); transform: none; } .lightbox-inner { padding-bottom: 5rem; } .lightbox-count { top: auto; bottom: var(--s-3); } }
@media (prefers-reduced-motion: reduce) { .gallery-item img { transition: none; } .gallery-item:hover img { transform: none; } }
/* Lightbox zoom (gallery.js): buttons, pinch, wheel, double-tap, keys; drag to move around when zoomed. */
.lightbox-stage { position: relative; overflow: hidden; justify-self: center; min-height: 0; border-radius: var(--r-sm); touch-action: none; cursor: zoom-in; }
.lightbox-stage.is-zoomed { cursor: grab; }
.lightbox-stage.is-dragging { cursor: grabbing; }
.lightbox-figure .lightbox-stage img { display: block; border-radius: 0; transform-origin: 0 0; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
@media (prefers-reduced-motion: no-preference) { .lightbox-stage:not(.is-dragging) img, .lightbox-figure:not(.is-dragging) { transition: transform .16s ease-out; } }
/* Swiping (not zoomed): the picture can follow the finger past its frame; the next one slides in from that side, or
   fades in with reduced motion. */
.lightbox-stage:not(.is-zoomed) { overflow: visible; }
.lightbox-inner { overflow-x: clip; } /* …without a sideways scrollbar while it does */
@media (prefers-reduced-motion: no-preference) {
  .lightbox-stage.is-from-next img { animation: lb-from-next .22s ease-out; }
  .lightbox-stage.is-from-prev img { animation: lb-from-prev .22s ease-out; }
}
@media (prefers-reduced-motion: reduce) { .lightbox-stage.is-from-next img, .lightbox-stage.is-from-prev img { animation: lb-fade .15s ease-out; } }
@keyframes lb-from-next { from { transform: translateX(35%); opacity: 0; } }
@keyframes lb-from-prev { from { transform: translateX(-35%); opacity: 0; } }
@keyframes lb-fade { from { opacity: 0; } }
.lightbox-zoom { position: absolute; left: var(--s-3); top: var(--s-3); display: flex; align-items: center; gap: var(--s-1); padding: .25rem; border-radius: var(--r-pill); background: color-mix(in srgb, var(--c-bg) 70%, transparent); border: 1px solid var(--c-border-strong); }
.lightbox-zoom .icon-btn:disabled { opacity: .45; cursor: default; }
.lightbox-level { min-width: 3.25rem; text-align: center; font: 600 var(--fs-14) var(--f-body); color: var(--c-text); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-transparency: reduce) { .lightbox-zoom, .lightbox-count, .open-hint, .zoom-badge { background: var(--c-bg); } }
/* Zoomed-in pictures (PictureFocus): the entry is small in the picture, so the frame shows its part; the lightbox shows it whole. */
.entry-media { position: relative; }
.item-thumb { overflow: hidden; }
/* Entry: picture strip, linked values, stats, section jumps */
.entry-media > a { display: block; width: 100%; height: 100%; }
.entry-thumbs { list-style: none; margin: var(--s-2) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-2); }
.entry-thumb { position: relative; display: block; aspect-ratio: 1; min-height: var(--touch); border-radius: var(--r-md); overflow: hidden; background: var(--c-surface-2); border: 1px solid var(--c-border); }
.entry-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.entry-thumb.is-more span { position: absolute; inset: 0; display: grid; place-items: center; background: color-mix(in srgb, var(--c-bg) 66%, transparent); font: 600 var(--fs-18) var(--f-body); color: var(--c-text); }
.entry-thumb:hover { border-color: var(--c-border-strong); }
.tag-edition { background: var(--c-surface-3); color: var(--c-pink-lighter); border: 1px solid var(--c-border-strong); text-transform: none; letter-spacing: 0; font-size: var(--fs-12); border-radius: var(--r-pill); height: 1.5rem; padding: 0 .65rem; }
a.tag-edition:hover { border-color: var(--c-pink-text); }
.field-link { color: var(--c-pink-text); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--c-pink-text) 35%, transparent); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.field-link:hover, .field-link:focus-visible { text-decoration-color: currentColor; }
.stat-panel { display: grid; gap: var(--s-2); grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
/* Specs: one panel, one line per spec (name · bar · value), the scale small under its bar. Phones: name and value, then the bar. */
.entry-hero .stat-panel { display: block; padding: var(--s-1) var(--s-4); border: 1px solid var(--c-border); border-radius: var(--r-lg); background: var(--c-surface-1); }
.entry-hero .stat-panel .stat-row { grid-template-columns: minmax(7rem, 10rem) minmax(0, 1fr) minmax(6.5rem, auto); align-items: center; gap: 0 var(--s-4); padding: var(--s-2) 0; border: 0; border-radius: 0; background: none; border-bottom: 1px solid var(--c-border); }
.entry-hero .stat-panel .stat-row:last-child { border-bottom: 0; }
.entry-hero .stat-panel .stat-row .k { grid-column: 1; grid-row: 1; font-size: var(--fs-13); color: var(--c-secondary); }
.entry-hero .stat-panel .stat-row .gauge, .entry-hero .stat-panel .stat-row .choice-segs, .entry-hero .stat-panel .stat-row .stat-bar { grid-column: 2; grid-row: 1; margin-top: 0; }
.entry-hero .stat-panel .stat-row .v { grid-column: 3; grid-row: 1; justify-self: end; font-size: var(--fs-16); text-align: right; }
.entry-hero .stat-panel .stat-row.is-empty .v { font-size: var(--fs-13); font-weight: 500; }
.entry-hero .stat-panel .stat-row .stat-note { grid-column: 2 / -1; grid-row: 2; margin-top: 2px; }
.entry-hero .stat-panel .gauge-scale { height: .9rem; margin-top: .2rem; }
@media (max-width: 640px) {
  .entry-hero .stat-panel .stat-row { grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-1) var(--s-3); }
  .entry-hero .stat-panel .stat-row .v { grid-column: 2; }
  .entry-hero .stat-panel .stat-row .gauge, .entry-hero .stat-panel .stat-row .choice-segs, .entry-hero .stat-panel .stat-row .stat-bar { grid-column: 1 / -1; grid-row: 2; }
  .entry-hero .stat-panel .stat-row .stat-note { grid-column: 1 / -1; grid-row: 3; }
}
.stat-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: var(--s-1) var(--s-3); padding: var(--s-3); border-radius: var(--r-md); background: var(--c-surface-1); border: 1px solid var(--c-border); }
.stat-row .k { font-size: var(--fs-12); color: var(--c-muted); grid-column: 1 / -1; }
.stat-row .v { font: 700 var(--fs-20)/1.1 var(--f-body); color: var(--c-text); }
.stat-row .v .unit { font-size: var(--fs-13); font-weight: 600; color: var(--c-secondary); }
.stat-bar { --bar: var(--c-pink-fill); }
.stat-row .stat-bar, .stat-row .gauge, .stat-row .choice-segs { grid-column: 1 / -1; }
.stat-row .stat-note { grid-column: 1 / -1; }
.stat-row.is-empty .v { font-size: var(--fs-15); }
.stat-lower { font-weight: 400; }
.stat-key { margin: var(--s-2) 0 0; }
/* Spec gauges (StatBlock::gauge): the stat's in-game range, ticks labelled, the unit at the end. --cat = the type's
   colour. Solid = confirmed / tested; stripes = not confirmed yet; an empty track = not known. */
.gauge { --g: var(--cat, var(--c-pink-fill)); position: relative; display: block; margin-top: var(--s-1); }
.gauge-track { position: relative; display: block; height: .625rem; border-radius: var(--r-pill); background: var(--c-surface-3); overflow: hidden; }
.gauge-tick { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--c-surface-1); z-index: 2; }
.gauge-fill { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--g); }
.gauge.is-unsure .gauge-fill { background: repeating-linear-gradient(-45deg, var(--g) 0 4px, transparent 4px 8px); box-shadow: inset 0 0 0 1.5px var(--g); }
.gauge.is-empty .gauge-track { background: transparent; box-shadow: inset 0 0 0 1px var(--c-border-strong); }
.gauge.is-empty .gauge-tick { background: var(--c-border-strong); width: 1px; margin-left: 0; }
.gauge-best { position: absolute; top: -1px; bottom: -1px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--c-text); z-index: 3; }
.gauge-scale { position: relative; display: block; height: 1.1rem; margin-top: .3rem; font-size: var(--fs-11); line-height: 1; color: var(--c-muted); font-variant-numeric: tabular-nums; }
.gauge-scale span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.gauge-scale span:first-child { transform: none; }
.gauge-scale span:last-child { transform: translateX(-100%); }
.gauge-pips { display: flex; flex-wrap: wrap; gap: .3rem; }
.gauge-pips span { width: .875rem; height: .875rem; border-radius: var(--r-xs); box-shadow: inset 0 0 0 1px var(--c-border-strong); }
.gauge-pips span.on { background: var(--g); box-shadow: none; }
.gauge.is-unsure .gauge-pips span.on { background: repeating-linear-gradient(-45deg, var(--g) 0 3px, transparent 3px 6px); box-shadow: inset 0 0 0 1.5px var(--g); }
.gauge.is-compact { margin-top: .35rem; }
.gauge.is-compact .gauge-track { height: .375rem; }
.gauge.is-compact .gauge-pips span { width: .5rem; height: .5rem; }
.choice-segs { display: flex; gap: 2px; margin-top: var(--s-1); border-radius: var(--r-sm); overflow: hidden; }
.choice-segs span { flex: 1; display: grid; place-items: center; min-height: 1.75rem; padding: 0 var(--s-2); background: var(--c-surface-2); font-size: var(--fs-12); font-weight: 600; color: var(--c-muted); }
.choice-segs span.on { background: var(--c-pink-fill); color: var(--c-on-pink); }
.choice-segs.is-unsure span.on { background: var(--c-surface-3); color: var(--c-text); box-shadow: inset 0 0 0 1.5px var(--c-pink-fill); }
@media (forced-colors: active) { .gauge-fill, .gauge-pips span.on, .choice-segs span.on { background: CanvasText; forced-color-adjust: none; } }
@media (prefers-reduced-motion: no-preference) { html:focus-within { scroll-behavior: smooth; } }
[id] { scroll-margin-top: 5.5rem; }
/* Compare */
.compare-add { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-5); max-width: 40rem; }
.tag-best { background: var(--c-pink-fill); color: var(--c-on-pink); margin-left: var(--s-1); }
/* Category table view */
.data-table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--c-border); border-radius: var(--r-lg); background: var(--c-surface-1); }
.data-table-wrap:focus-visible { outline: 2px solid var(--c-focus); }
.data-table { width: 100%; border-collapse: collapse; font-size: var(--fs-14); min-width: 44rem; }
.data-table th, .data-table td { padding: var(--s-2) var(--s-3); text-align: left; border-bottom: 1px solid var(--c-border); vertical-align: middle; white-space: nowrap; }
.data-table tbody tr:last-child > * { border-bottom: 0; }
.data-table tbody tr:hover > * { background: var(--c-surface-2); }
.data-table thead th { font-size: var(--fs-12); font-weight: 600; color: var(--c-muted); text-transform: uppercase; letter-spacing: var(--ls-md); background: var(--c-surface-1); }
.data-table .dt-num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table .dt-name { position: sticky; left: 0; z-index: 1; background: var(--c-surface-1); min-width: 14rem; white-space: normal; }
.data-table .dt-pick { width: 3rem; padding-right: 0; }
.dt-check { display: grid; place-items: center; width: var(--touch); height: var(--touch); cursor: pointer; }
.dt-check input { width: 1.15rem; height: 1.15rem; accent-color: var(--c-pink-fill); }
.dt-sort { display: inline-flex; align-items: center; min-height: var(--touch); background: none; border: 0; padding: 0; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; }
.dt-sort:hover { color: var(--c-text); }
[aria-sort="ascending"] .dt-sort, [aria-sort="descending"] .dt-sort { color: var(--c-pink-text); }
[aria-sort="ascending"] .dt-sort::after { content: ' ↑'; } [aria-sort="descending"] .dt-sort::after { content: ' ↓'; }
.dt-entry { display: flex; align-items: center; gap: var(--s-3); min-height: var(--touch); color: var(--c-text); }
.dt-thumb { flex: none; display: grid; place-items: center; width: 3.5rem; height: 2.25rem; border-radius: var(--r-sm); overflow: hidden; background: var(--c-surface-3); color: var(--cat, var(--c-muted)); }
.dt-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dt-title { display: block; font-weight: 600; font-size: var(--fs-15); }
.dt-entry:hover .dt-title { text-decoration: underline; text-decoration-color: var(--c-pink-text); }
.compare-bar { position: fixed; z-index: 30; left: 50%; bottom: var(--s-4); transform: translateX(-50%); display: flex; align-items: center; gap: var(--s-3); padding: var(--s-2) var(--s-2) var(--s-2) var(--s-4); border-radius: var(--r-pill); border: 1px solid var(--c-border-strong); max-width: calc(100vw - 2rem); }
.compare-bar .btn-sm { min-height: var(--touch); }
.not-known-line { margin-top: var(--s-3); color: var(--c-secondary); line-height: 1.6; }
.not-known-line .link-pink { background: none; border: 0; padding: 0 0 0 var(--s-2); font: inherit; font-weight: 600; cursor: pointer; min-height: var(--touch); }
@media (max-width: 600px) { .data-table .dt-name { min-width: 10rem; } .dt-thumb { display: none; } }
/* Questions people ask (partials/faq-list: entry, countdown and list pages): every answer open to read, the question a
   heading (for search engines and screen readers); past 5, "Show N more" opens the rest and then gets out of the way. */
.faq-list { display: grid; gap: var(--s-2); max-width: 52rem; }
.faq-item { background: var(--c-surface-1); border: 1px solid var(--c-border); border-radius: var(--r-md); padding: var(--s-3) var(--s-4); }
.faq-item h3 { margin: 0 0 var(--s-1); font: 600 var(--fs-16)/1.35 var(--f-body); color: var(--c-text); }
.faq-item p { margin: 0; text-wrap: pretty; }
/* Closed drop-downs ($faqClosed): the whole row is the button, 44px+ tall, chevron turns when open. */
.faq-acc { background: var(--c-surface-1); border: 1px solid var(--c-border); border-radius: var(--r-md); }
.faq-acc summary { display: flex; align-items: center; gap: var(--s-3); min-height: var(--touch); padding: var(--s-3) var(--s-4); cursor: pointer; list-style: none; }
.faq-acc summary::-webkit-details-marker { display: none; }
.faq-acc summary h3 { flex: 1; margin: 0; font: 600 var(--fs-16)/1.35 var(--f-body); color: var(--c-text); }
.faq-acc-chev { flex: none; color: var(--c-secondary); transition: transform .2s; }
.faq-acc[open] .faq-acc-chev { transform: rotate(180deg); }
.faq-acc summary:hover h3 { color: var(--c-pink-light); }
.faq-acc > p { margin: 0; padding: 0 var(--s-4) var(--s-4); text-wrap: pretty; }
@media (prefers-reduced-motion: reduce) { .faq-acc-chev { transition: none; } }
.faq-more > summary { display: flex; align-items: center; width: fit-content; min-height: var(--touch); cursor: pointer; list-style: none; }
.faq-more > summary::-webkit-details-marker { display: none; }
.faq-more[open] > summary { display: none; }
/* Figures that change or line up in columns keep a fixed width; prose keeps natural figures. */
.strip-time, .stats b, .dt-num, .cmp-v, .count-box b, .stat-row .v, .status-hero, .mono { font-variant-numeric: tabular-nums; }
/* Trailer breakdowns */
.trailer-video { aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: var(--c-surface-2); margin: var(--s-5) 0 var(--s-2); position: relative; }
.trailer-video { display: block; }
/* /trailers: every trailer plays in place; the newest is the big one. */
.trailer-wall { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6) var(--s-5); margin-top: var(--s-5); }
.trailer-item.is-lead { grid-column: 1 / -1; }
.trailer-item .trailer-video { margin: 0 0 var(--s-3); }
.trailer-meta h2 { margin: 0; }
.trailer-meta h2 a { color: var(--c-text); }
.trailer-meta h2 a:hover { color: var(--c-pink-text); }
.trailer-meta p { margin: var(--s-1) 0 0; }
@media (max-width: 700px) { .trailer-wall { grid-template-columns: 1fr; } }
.trailer-video > a { display: block; width: 100%; height: 100%; position: relative; padding: 0; border-radius: 0; background: radial-gradient(60% 80% at 50% 40%, var(--c-surface-3), var(--c-surface-1)); }
.trailer-video img { width: 100%; height: 100%; object-fit: cover; display: block; }
.trailer-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.trailer-play { white-space: nowrap; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--c-pink-fill); color: var(--c-on-pink); font-weight: 600; padding: var(--s-3) var(--s-5); border-radius: var(--r-pill); min-height: var(--touch); display: inline-flex; align-items: center; }
.shot-list { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: grid; gap: var(--s-3); }
.shot { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: var(--s-4); padding: var(--s-3); border-radius: var(--r-lg); background: var(--c-surface-1); border: 1px solid var(--c-border); }
.shot:not(:has(.shot-still)) { grid-template-columns: minmax(0, 1fr); }
.shot-still { display: block; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: var(--c-surface-2); }
.shot-still img { width: 100%; height: 100%; object-fit: cover; }
.shot-time { min-height: var(--touch); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .shot { grid-template-columns: minmax(0, 1fr); } }
.filter-more > summary { display: flex; align-items: center; min-height: var(--touch); cursor: pointer; list-style: none; }
.filter-more > summary::-webkit-details-marker { display: none; }
.filter-more[open] > summary { display: none; }

/* ---------- Radio player (js/radio.js) ---------- */
/* Shell: once the radio plays, the site carries on in a full-screen frame and this page only holds the player. */
html.radio-shell, html.radio-shell body { height: 100%; overflow: hidden; }
html.radio-shell body > *:not(.radio-dock):not(.radio-frame) { display: none !important; }
.radio-frame { position: fixed; inset: 0; width: 100%; height: 100%; border: 0; background: var(--c-bg); color-scheme: normal; }
/* Loading behind the page you're on (js/radio.js swaps them once it has painted). color-scheme: normal stops the
   browser painting an opaque white canvas while the frame is still blank. */
.radio-frame.is-loading { visibility: hidden; pointer-events: none; }
.radio-dock { position: fixed; right: var(--s-4); bottom: var(--s-4); z-index: 80; width: 20rem; border-radius: var(--r-lg); overflow: hidden;
  display: flex; flex-direction: column; max-height: calc(100dvh - 4rem - var(--s-4) * 2); /* never taller than the screen: the song list scrolls instead */
  background: var(--c-surface-2); border: 1px solid var(--c-border-strong); box-shadow: 0 24px 60px rgba(0,0,0,.55); }
/* YouTube requires a visible player of at least 200 × 200 px: 22.25rem wide at 16:9 is 356 × 200. Minimised = paused. */
.radio-video { position: relative; flex: none; width: 100%; aspect-ratio: 16 / 9; min-height: 200px; background: #000; } /* width set: otherwise the 200 px minimum height widened it past the dock */
.radio-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; transition: opacity 4s linear; }
.radio-video iframe.is-leaving { opacity: 0; }
/* Close on the video's corner (owner, 29 Oct: "an x button to close this pop up easier"), above YouTube's player and its messages. */
.radio-close { position: absolute; top: var(--s-1); right: var(--s-1); z-index: 2; background: color-mix(in srgb, var(--c-bg) 82%, transparent); color: #fff; }
.radio-close:hover { background: color-mix(in srgb, var(--c-bg) 95%, transparent); }
@media (prefers-reduced-motion: reduce) { .radio-video iframe { transition: none; } }
/* The corner it sits in (Move): bottom right by default. */
.radio-dock[data-corner="bl"] { right: auto; left: var(--s-4); }
.radio-dock[data-corner="tl"] { right: auto; left: var(--s-4); bottom: auto; top: calc(4rem + var(--s-4)); }
.radio-dock[data-corner="tr"] { bottom: auto; top: calc(4rem + var(--s-4)); }
@media (min-width: 861px) { .radio-dock.on-map:not([data-corner="bl"]):not([data-corner="tl"]) { right: calc(var(--s-4) * 2 + 3.25rem); } } /* beside the map's tools */
.radio-dock.is-dragging { opacity: .9; box-shadow: 0 24px 60px rgba(0,0,0,.6); }
.radio-move { cursor: grab; touch-action: none; }
.radio-dock.is-dragging .radio-move { cursor: grabbing; }
/* Smaller: a video tile at least 200 × 200 (YouTube's minimum visible player, so it keeps playing) and five buttons. */
.radio-dock.is-min { width: calc(224px + 8px); padding: 4px; }
.radio-dock.is-min .radio-video { width: 224px; height: 200px; aspect-ratio: auto; border-radius: calc(var(--r-lg) - 4px); overflow: hidden; }
.radio-dock.is-min .radio-bar { padding: 4px 0 0; gap: 2px; }
/* Its list: inside the tile's edges, the four tabs two by two (in one row they'd push the tile wider than it is). */
.radio-dock.is-min .radio-panel, .radio-dock.is-min .radio-wrap { padding-left: var(--s-2); padding-right: var(--s-2); }
.radio-dock.is-min .radio-panel { padding-bottom: var(--s-1); }
.radio-dock.is-min .radio-tabs { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--r-md); }
.radio-dock.is-min .radio-tabs button { border-radius: calc(var(--r-md) - 2px); }
.radio-dock.is-min .radio-search { font-size: var(--fs-14); padding: 0 var(--s-2); }
.radio-dock.is-min .radio-meta, .radio-dock.is-min .radio-hint { display: none; }
/* Two rows of four (each a full touch target): previous, play, next, songs / move, bigger, close. */
.radio-dock.is-min .radio-buttons { flex-wrap: wrap; justify-content: center; gap: 0; margin-left: 0; }
.radio-dock.is-min .radio-buttons > * { flex: 0 0 25%; width: auto; }
.radio-dock.is-min .radio-play { flex-basis: auto; margin: 0 calc((25% - var(--touch)) / 2); }
.radio-dock.is-min [data-r-min] .icon { transform: rotate(180deg); }
.radio-bar { display: flex; flex-direction: column; min-width: 0; min-height: 0; gap: 2px; padding: var(--s-2) var(--s-2) var(--s-1) var(--s-3); } /* the song on its own line, the buttons under it; shrinks so the list scrolls */
.radio-bar > * { flex: none; }
.radio-bar > .radio-panel { flex: 0 1 auto; }
.radio-buttons { justify-content: space-between; margin-left: calc(var(--s-1) * -1); }
.radio-meta { display: grid; min-width: 0; line-height: 1.3; }
.radio-meta strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--c-text); }
.radio-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-12); color: var(--c-secondary); }
.radio-meta a { color: var(--c-secondary); text-decoration: underline; text-underline-offset: 2px; }
.radio-buttons .icon-btn { border: 0; background: none; }
.radio-buttons .icon-btn:hover { background: var(--c-surface-3); }
.radio-buttons { display: flex; align-items: center; gap: var(--s-1); }
.radio-buttons .icon-btn { width: var(--touch); height: var(--touch); }
.radio-play { min-width: var(--touch); min-height: var(--touch); padding: 0; border-radius: 50%; font-size: var(--fs-14); }
.radio-progress { grid-column: 1 / -1; height: 3px; border-radius: 3px; background: var(--c-surface-3); overflow: hidden; }
.radio-progress span { display: block; height: 100%; width: 0; background: var(--c-pink-fill); transition: width .5s linear; }
@media (max-width: 640px) {
  .radio-dock { left: 0; right: 0; bottom: 0; width: auto; border-radius: var(--r-lg) var(--r-lg) 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .radio-buttons { justify-content: space-between; }
  .radio-frame { height: calc(100% - var(--dock-h, 0px)); }
  /* Smaller on a phone: the tile floats in the corner, the page uses the whole screen again. */
  .radio-dock.is-min { left: auto; right: var(--s-2); bottom: calc(var(--s-2) + env(safe-area-inset-bottom)); width: calc(224px + 8px); border-radius: var(--r-lg); padding-bottom: 4px; }
  .radio-dock.is-min[data-corner="bl"], .radio-dock.is-min[data-corner="tl"] { right: auto; left: var(--s-2); }
  .radio-dock.is-min[data-corner="tl"], .radio-dock.is-min[data-corner="tr"] { bottom: auto; top: calc(var(--s-2) + env(safe-area-inset-top)); }
  /* Full width on a phone: at the top or the bottom; the page makes room on that side. */
  .radio-dock:not(.is-min)[data-corner="tl"], .radio-dock:not(.is-min)[data-corner="tr"] { top: 0; bottom: auto; left: 0; right: 0; border-radius: 0 0 var(--r-lg) var(--r-lg); padding-bottom: 0; padding-top: env(safe-area-inset-top); }
  html[data-dock-corner^="t"]:not(:has(.radio-dock.is-min)) .radio-frame { top: var(--dock-h, 0px); }
  html:has(.radio-dock.is-min) .radio-frame { height: 100%; }
}
[data-radio] [data-song].is-playing { border-color: var(--c-pink-fill); background: color-mix(in srgb, var(--c-pink-fill) 12%, var(--c-surface-1)); }

/* ---------- Drop-downs (components/entry-drop): a radio station per row, its songs inside. Native <details>. ---------- */
.drops { display: grid; gap: var(--s-2); }
.drop { border-radius: var(--r-md); background: var(--c-surface-1); border: 1px solid var(--c-border); }
.drop[open] { border-color: var(--c-border-strong); }
.drop > summary { display: flex; align-items: center; gap: var(--s-3); min-height: var(--touch); padding: var(--s-2) var(--s-3); cursor: pointer; list-style: none; border-radius: var(--r-md); }
.drop > summary::-webkit-details-marker { display: none; }
.drop > summary::after { content: ''; flex: none; width: .5rem; height: .5rem; margin: 0 var(--s-1); border-right: 2px solid var(--c-secondary); border-bottom: 2px solid var(--c-secondary); transform: translateY(-2px) rotate(45deg); }
.drop[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.drop > summary:hover { background: var(--c-surface-2); }
.drop-thumb { flex: none; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: var(--r-sm); overflow: hidden; background: color-mix(in srgb, var(--cat) 18%, transparent); color: var(--cat); }
.drop-thumb img { width: 100%; height: 100%; object-fit: cover; }
.drop-head { display: grid; min-width: 0; flex: 1; line-height: 1.3; }
.drop-name { font-weight: 700; color: var(--c-text); font-size: var(--fs-15); }
.drop-facts { font-size: var(--fs-12); color: var(--c-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop-meta { flex: none; font-size: var(--fs-12); color: var(--c-muted); }
.drop-body { display: grid; gap: var(--s-3); padding: 0 var(--s-3) var(--s-3); }
.drop-songs { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-2); grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); }
.drop-songs .tile { width: 100%; text-align: left; min-height: 3.25rem; }
.drop-songs .radio-state { margin-left: auto; white-space: nowrap; }
.drop-label { margin: 0 0 var(--s-1); font-size: var(--fs-13); color: var(--c-secondary); font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.drop-list, .field-list { margin: 0; padding-left: 1.4em; display: grid; gap: var(--s-1); }
.drop-list { color: var(--c-text); font-size: var(--fs-14); }
.field-list { font-weight: 600; }
.drop-facts-list { margin: 0; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); font-size: var(--fs-13); }
.drop-facts-list dt { color: var(--c-muted); font-size: var(--fs-12); }
.drop-facts-list dd { margin: 0; color: var(--c-text); font-weight: 600; }
.field-tile.is-list { grid-column: 1 / -1; }
@media (max-width: 640px) { .drop-meta { display: none; } }
.radio-hint { grid-column: 1 / -1; margin: 0; font-size: var(--fs-12); color: var(--c-pink-light); }
.status-live { color: var(--c-pink-light); }
.status-live::before { content: ''; display: inline-block; width: .5rem; height: .5rem; margin-right: .375rem; border-radius: 50%; background: var(--c-pink-fill); vertical-align: middle; }

/* ---------- Moving between pages (js/app.js) ----------
   A short crossfade between pages, and the tapped picture (card, Popular Now ring) grows into the entry's main
   picture. Off for reduced motion; browsers without View Transitions just navigate. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }
  ::view-transition-group(entry-hero) { animation-duration: .34s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
}
/* The frame morphs, not the picture: a picture zoomed in on its subject is scaled inside the frame, and on its own it
   grew to its full zoomed size, then snapped back once the frame clipped it. */
.entry-hero-img { width: 100%; height: 100%; object-fit: cover; }
.entry-media { view-transition-name: entry-hero; }
::view-transition-old(entry-hero), ::view-transition-new(entry-hero) { height: 100%; object-fit: cover; overflow: clip; }
/* Press feedback: things you tap give a little. */
@media (prefers-reduced-motion: no-preference) {
  .item-card:active, a.card:active, .tile:active, .mega-tile:active, .hero-stats a:active, .ta-chip:active { transform: scale(.985); transition-duration: .06s; }
  .btn:active, .chip:active, .icon-btn:active { transform: scale(.96); }
}
/* Live filters: results dim while the new ones load (after a beat, so fast answers don't flicker). */
[data-results] { transition: opacity .15s ease .12s; }
[data-results][aria-busy="true"] { opacity: .55; }

/* Popular Now: story rings. Lit = changed since you last looked; grey = seen. Tapping spins the ring. */
.ring img { border-radius: 50%; }
.avatar-row a.is-seen .ring { background: var(--c-border-strong); }
.avatar-row a.is-seen > span:not(.ring) { color: var(--c-secondary); }
.avatar-row a:hover .ring > span { border-color: var(--c-surface-1); }
@media (prefers-reduced-motion: no-preference) {
  .ring { transition: transform .15s ease; }
  .avatar-row a:hover .ring { transform: scale(1.04); }
  .avatar-row a:active .ring { transform: scale(.95); }
  .avatar-row a.is-opening .ring { background: conic-gradient(from var(--spin), var(--c-pink-fill), var(--cat-live), var(--c-pink-fill)); animation: ring-spin .7s linear infinite; }
}
@property --spin { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes ring-spin { to { --spin: 360deg; } }

/* Thumbs up / down: icon and its own count, the side you chose filled in pink. */
.vote-btn { gap: .4rem; font-variant-numeric: tabular-nums; }
.vote-btn .icon { width: 1.15rem; height: 1.15rem; }
.vote-btn[aria-pressed="true"] .icon { fill: var(--c-pink-fill); stroke: var(--c-pink-fill); } /* on the pressed (light) pill */

/* The map can't draw (no WebGL, or it failed): a readable message in its place, not an empty box. */
.map-problem { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 5; width: min(34rem, calc(100% - 2rem)); padding: var(--s-3) var(--s-4); border-radius: var(--r-md);
  background: var(--c-surface-1); border: 1px solid var(--c-border-strong); color: var(--c-text); font-size: var(--fs-14); }
.map-problem p { margin: var(--s-1) 0 0; color: var(--c-secondary, var(--c-text)); }

/* A category marked Coming soon (Admin → Database categories): a locked tile, its picture blurred, something behind it. */
.locked-note { display: inline-flex; align-items: center; gap: .3rem; color: var(--c-pink-text); font-weight: 600; }
.locked-note .icon { width: .9em; height: .9em; }
.mega-tile.is-locked img { filter: blur(6px) saturate(.6) brightness(.6); transform: scale(1.08); }
.tile.is-locked, .mega-tile.is-locked { border-style: dashed; }

/* Compare: who with — one-tap picks with their pictures, and the table's Show filter */

/* Search on wide screens: opens in place of the header's search box, results below it (app.js openSearch). */
.overlay.is-anchored { background: rgba(5,3,8,.35); display: block; padding-top: 0; }
.overlay.is-anchored .overlay-panel { position: fixed; width: min(36rem, calc(100vw - 2rem)); border-radius: var(--r-lg); animation: search-drop .14s ease-out; transform-origin: top right; }
@keyframes search-drop { from { opacity: 0; transform: scale(.98) translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .overlay.is-anchored .overlay-panel { animation: none; } }

/* Radio: every song in a list to pick from (the list button), and a player dragged anywhere (data-corner="free") */
.radio-dock { width: 22rem; }
.radio-list { list-style: none; margin: var(--s-1) 0 0; padding: 0; max-height: min(16rem, 40vh); overflow-y: auto; overscroll-behavior: contain; border-top: 1px solid var(--c-border); }
.radio-list button { display: grid; width: 100%; min-height: var(--touch); padding: var(--s-1) var(--s-2); text-align: left; border: 0; background: none; color: var(--c-text); cursor: pointer; border-radius: var(--r-sm); }
.radio-list button:hover, .radio-list button:focus-visible { background: var(--c-surface-3); }
.radio-list button[aria-current] { color: var(--c-pink-text); }
.radio-list strong { font-size: var(--fs-14); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.radio-list span { font-size: var(--fs-12); color: var(--c-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 860px) { .radio-dock { width: auto; } }

/* Song favourites: a heart beside each song tile and each row of the player's list; filled pink when on. */
.song-item { display: flex; align-items: stretch; gap: var(--s-1); }
.song-item .tile { flex: 1; min-width: 0; }
.song-heart, .radio-row-heart { flex: none; display: grid; place-items: center; width: var(--touch); min-height: var(--touch); padding: 0; border: 0; border-radius: var(--r-md); background: none; color: var(--c-secondary); cursor: pointer; }
.song-heart:hover, .radio-row-heart:hover { background: var(--c-surface-2); color: var(--c-text); }
.song-heart[aria-pressed="true"], .radio-row-heart[aria-pressed="true"], .radio-heart[aria-pressed="true"] { color: var(--c-pink-text); }
.song-heart[aria-pressed="true"] .icon, .radio-row-heart[aria-pressed="true"] .icon, .radio-heart[aria-pressed="true"] .icon { fill: currentColor; }
.radio-heart[hidden] { display: none; }
/* The player's list panel: tabs, search, genre chips, then the songs. */
.radio-panel { display: flex; flex-direction: column; min-height: 0; gap: var(--s-2); margin-top: var(--s-1); padding-top: var(--s-2); border-top: 1px solid var(--c-border); }
.radio-panel > * { flex: none; }
.radio-panel > .radio-list { flex: 0 1 auto; min-height: calc(var(--touch) * 2); } /* gives way first when the screen is short */
.radio-panel[hidden] { display: none; }
.radio-tabs { display: flex; gap: 2px; padding: 2px; border-radius: var(--r-pill); background: var(--c-surface-2); }
.radio-tabs button { flex: 1; min-height: var(--touch); padding: 0 var(--s-1); border: 0; border-radius: var(--r-pill); background: none; color: var(--c-secondary); font-weight: 600; font-size: var(--fs-13); cursor: pointer; white-space: nowrap; }
.radio-tabs button[aria-pressed="true"] { background: var(--c-surface-1); color: var(--c-text); box-shadow: inset 0 0 0 1px var(--c-border-strong); }
.radio-search { width: 100%; min-height: var(--touch); padding: 0 var(--s-3); border-radius: var(--r-md); border: 1px solid var(--c-border-strong); background: var(--c-surface-1); color: var(--c-text); font: inherit; font-size: var(--fs-15); }
.radio-chips { display: flex; gap: var(--s-1); overflow-x: auto; scrollbar-width: none; }
.radio-chips:empty { display: none; }
.radio-chips .chip { flex: none; min-height: var(--touch); font-size: var(--fs-13); padding: 0 var(--s-3); }
.radio-note { margin: 0; font-size: var(--fs-13); color: var(--c-secondary); }
.radio-play-favs { align-self: flex-start; }
/* Gone round a searched list: keep it, or every song. */
.radio-wrap { display: grid; gap: var(--s-1); padding: var(--s-1) 0; }
.radio-wrap[hidden] { display: none; }
.radio-wrap p { margin: 0; font-size: var(--fs-13); line-height: 1.35; color: var(--c-text); }
.radio-wrap-buttons { display: flex; flex-wrap: wrap; gap: var(--s-1); }
.radio-wrap-buttons .btn { flex: 1 1 auto; min-height: var(--touch); padding: 0 var(--s-3); }
.radio-play-favs[hidden] { display: none; }
.radio-panel .radio-list { margin: 0; border-top: 0; }
.song-search { display: grid; gap: var(--s-2); max-width: 32rem; margin-bottom: var(--s-3); }
.song-search [hidden], .song-item[hidden], .drops > [hidden] { display: none; }
.radio-list li { display: flex; align-items: center; }
.radio-list .radio-row { flex: 1; min-width: 0; }
.radio-list .radio-row-heart { width: var(--touch); flex: none; display: grid; place-items: center; padding: 0; }

/* A credit linked to Wikipedia: a small out-arrow says it leaves the site */
.field-link.is-external .ext-icon { width: .8em; height: .8em; margin-left: .2em; vertical-align: -.05em; opacity: .7; }

/* Map panel → Region picker: All Leonida and each region in its colour (a ring, filled when it's the one you're in). */
.region-pick { margin: 0 0 var(--s-3); border: 1px solid var(--c-border); border-radius: var(--r-md); background: var(--c-surface-1); }
.region-pick > summary { display: flex; align-items: center; gap: var(--s-3); min-height: 48px; padding: 0 var(--s-3); cursor: pointer; list-style: none; }
.region-pick > summary::-webkit-details-marker { display: none; }
.region-pick-now { display: grid; flex: 1; line-height: 1.2; }
.region-pick .n { font: 600 var(--fs-13)/1 var(--f-mono); color: var(--c-secondary); }
.region-pick-chev { transition: transform .15s; }
.region-pick[open] .region-pick-chev { transform: rotate(180deg); }
.region-pick-list { list-style: none; margin: 0; padding: var(--s-1); border-top: 1px solid var(--c-border); display: grid; gap: 2px; }
.region-pick-row { display: flex; align-items: center; gap: var(--s-3); width: 100%; min-height: var(--touch); padding: 0 var(--s-3); border: 0; border-radius: var(--r-sm); background: transparent; color: var(--c-text); font: 600 var(--fs-15)/1.2 var(--f-body); text-align: left; cursor: pointer; }
.region-pick-row:hover, .region-pick-row:focus-visible { background: var(--c-surface-2); }
.region-pick-row[aria-pressed="true"] { background: color-mix(in srgb, var(--c-pink-fill) 14%, transparent); }
.region-pick-name { flex: 1; }
.region-ring { width: 16px; height: 16px; flex: none; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--region); display: grid; place-items: center; }
.region-pick-row[aria-pressed="true"] .region-ring::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--region); }
@media (prefers-reduced-motion: reduce) { .region-pick-chev { transition: none; } }
/* A sub-category's own icon in the map panel (Restaurant: knife and fork), in its category's colour. */
.lyr-kind { width: 17px; height: 17px; flex: none; color: var(--cat); }
/* Map panel → Popular: the places people want, each with its icon in its colour and what it is. */
.map-popular { margin: 0 0 var(--s-2); }
.map-popular > summary { display: flex; align-items: center; gap: var(--s-2); min-height: var(--touch); cursor: pointer; list-style: none; }
.map-popular > summary .map-popular-chev { margin-left: auto; }
/* My places: your own pins (drawn as on the map: a light ring, pink centre) and the places you've saved. */
.mine-icon { background: #F4F1F7; box-shadow: inset 0 0 0 2px #171717; position: relative; }
.mine-icon::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c-pink-fill); }
.mine-empty { margin: 0 0 var(--s-2); }
/* Popular and My places: one line a row (name, then where or what), so the menu below stays in view. */
.pop-row.is-line { min-height: var(--touch); padding-block: 0; }
.pop-row.is-line .pop-icon { width: 26px; height: 26px; }
.pop-row.is-line .pop-icon .icon { width: 15px; height: 15px; }
.pop-row.is-line .pop-text { display: flex; flex: 1 1 auto; min-width: 0; align-items: baseline; gap: var(--s-2); white-space: nowrap; overflow: hidden; }
.pop-row.is-line .pop-text strong { flex: none; max-width: 65%; }
.pop-row.is-line .pop-text small { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.mine-more { min-height: var(--touch); padding-inline: var(--s-2); }
.map-mine:has(.pop-list:empty) .pop-list { display: none; }
.map-popular > summary::-webkit-details-marker { display: none; }
.map-popular-chev { transition: transform .15s; }
.map-popular:not([open]) .map-popular-chev { transform: rotate(-90deg); }
.pop-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
.pop-row { display: flex; align-items: center; gap: var(--s-3); min-height: 48px; padding: var(--s-1) var(--s-2); border-radius: var(--r-md); color: var(--c-text); text-decoration: none; }
.pop-row:hover, .pop-row:focus-visible { background: var(--c-surface-2); }
.pop-icon { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--cat); color: #120B14; }
.pop-icon .icon { width: 17px; height: 17px; stroke-width: 2.3; }
.pop-text { display: grid; min-width: 0; line-height: 1.25; }
.pop-text strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pop-text small { color: var(--c-secondary); font-size: var(--fs-13); }
@media (prefers-reduced-motion: reduce) { .map-popular-chev { transition: none; } }
/* Map options → Larger text: the type scale a step up across the map page (menus, cards, place names). */
.map-page.is-big-text { font-size: var(--fs-17); --fs-11: 0.8125rem; --fs-12: 0.875rem; --fs-13: 0.9375rem; --fs-14: 1rem; --fs-15: 1.0625rem; --fs-16: 1.125rem; --fs-17: 1.1875rem; --fs-18: 1.3125rem; --fs-20: 1.5rem; }
/* The panel's grip (wide screens): a handle on its right edge to drag it away (or tap to hide it). */
.panel-grip { display: none; }
@media (min-width: 861px) and (min-height: 501px) {
  .map-page:not([data-panel="min"]) .panel-grip { display: grid; place-items: center; position: absolute; top: 50%; left: calc(var(--panel-w) - 8px); z-index: 6; width: 16px; height: 56px; margin-top: -28px; padding: 0;
    border: 1px solid var(--c-border-strong); border-radius: var(--r-pill); background: var(--c-surface-2); cursor: ew-resize; touch-action: none; }
  /* Tucked away: on the page's left edge, to drag (or tap) the panel back. */
  .map-page[data-panel="min"] .panel-grip { display: grid; place-items: center; position: absolute; top: 50%; left: 0; z-index: 6; width: 24px; height: 64px; margin-top: -32px; padding: 0;
    border: 1px solid var(--c-border-strong); border-left: 0; border-radius: 0 var(--r-md) var(--r-md) 0; background: var(--c-surface-2); cursor: ew-resize; touch-action: none; box-shadow: 0 6px 18px rgba(0,0,0,.45); }
  .panel-grip span { width: 4px; height: 24px; border-radius: 2px; background: var(--c-muted); }
  .panel-grip:hover span, .panel-grip:focus-visible span { background: var(--c-text); }
  .map-panel.left .panel-head { touch-action: pan-y; }
  .map-panel.left.is-dragging { transition: none; user-select: none; }
}
/* Map panel: Pins you've found (Show / Hide / Only) and Tags (chips, every one picked must match). */
.found-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); margin: var(--s-2) 0; }
.found-row > .small { display: inline-flex; align-items: center; gap: var(--s-1); font-weight: 600; color: var(--c-secondary); }
.found-seg { flex: none; }
.found-seg button { min-height: var(--touch); padding: 0 .6rem; }
.map-tags { margin: var(--s-4) 0 var(--s-2); }
.tag-list { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-2); }
.tag-chip { min-height: var(--touch); }
.tag-chip .n { margin-left: var(--s-1); font: 600 var(--fs-12)/1 var(--f-mono); color: var(--c-secondary); }
.tag-chip[aria-pressed="true"] { border-color: var(--c-pink-text); background: color-mix(in srgb, var(--c-pink-fill) 16%, transparent); }
/* A region's card: its picture where the counts were (the fallback map glyph until it loads, or if it has none). */
.county-card .county-card-media { margin: 0; border-radius: var(--r-md); aspect-ratio: 16 / 9; background: color-mix(in srgb, var(--cat) 25%, var(--c-surface-2)); }
.county-card .county-card-media::after { display: none; }
@media (max-width: 860px) { .county-card .county-card-media { aspect-ratio: 21 / 9; } }
/* Home map preview on phones: taller, and its region names smaller (they're labels on a picture, not buttons there). */
@media (max-width: 640px) {
  .map-taster { height: 34rem; }
}

/* Home preview: region names printed on the map in their colours, like the game's district names (no boxes). */
.map-taster .place-name.style-pill.is-region { min-height: 0; padding: 0; gap: 0; background: none; border: 0; box-shadow: none; backdrop-filter: none; }
.map-taster .place-name.style-pill.is-region .place-title { font-size: var(--fs-24, 1.5rem); letter-spacing: .14em; text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0,0,0,.95), 0 0 14px rgba(0,0,0,.7); }
.map-taster .place-name .place-count { display: none; } /* names only, like the game's map */
.map-taster .place-name:not(.is-region) { text-shadow: 0 0 2px #333, 0 0 2px #333, 0 0 1px #222; } /* as on the full map */
@media (max-width: 640px) { .map-taster .place-name.style-pill.is-region .place-title { font-size: var(--fs-17, 1.06rem); letter-spacing: .1em; } }
/* Home preview: dark until the map has drawn, then it fades up (no flash of sea blue first; js/map.js taster). */
.map-taster .map-canvas { background: #0a1a26; opacity: 0; transition: opacity .4s ease; }
.map-taster .map-canvas.is-shown { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .map-taster .map-canvas { transition: none; } }
/* Category checklist (partials/category-checklist): dense rows, like an achievements list. */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; border: 1px solid var(--c-border); border-radius: var(--r-lg); overflow: hidden; background: var(--c-surface-1); }
.cl-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s-2) var(--s-4); padding: var(--s-3) var(--s-4); border-top: 1px solid var(--c-border); }
.cl-row:first-child { border-top: 0; }
.cl-row:hover { background: var(--c-surface-2); }
.cl-main { display: flex; align-items: center; gap: var(--s-3); min-width: 0; color: inherit; text-decoration: none; min-height: var(--touch); }
.cl-badge { display: grid; place-items: center; width: 3rem; height: 3rem; flex: none; border-radius: var(--r-md); overflow: hidden;
  background: color-mix(in srgb, var(--badge, var(--cat)) 30%, var(--c-surface-2)); color: var(--c-text); border: 1px solid color-mix(in srgb, var(--badge, var(--cat)) 55%, transparent); }
.cl-badge img { width: 100%; height: 100%; object-fit: cover; }
.cl-badge .icon { width: 1.4rem; height: 1.4rem; }
.cl-text { display: grid; gap: 2px; min-width: 0; }
.cl-name { font-weight: 700; font-size: var(--fs-16, 1rem); color: var(--c-text); }
.cl-main:hover .cl-name, .cl-main:focus-visible .cl-name { color: var(--c-pink-text); }
.cl-sum { color: var(--c-secondary); font-size: var(--fs-14); }
/* Headline facts: each a fixed-width cell with its caption above (e.g. PS5 TROPHY / Bronze, XBOX GAMERSCORE / 10 G). */
.cl-facts { display: flex; align-items: center; justify-content: flex-end; gap: var(--s-2); }
.cl-cell { display: grid; justify-items: start; gap: 3px; min-width: 6.75rem; padding: 6px 10px; border: 1px solid var(--c-border); border-radius: var(--r-md); background: var(--c-surface-1); }
.cl-cap { font: 700 10px/1.1 var(--f-eyebrow, inherit); letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); white-space: nowrap; }
.cl-chip { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-14); font-weight: 700; color: var(--c-text); }
.cl-chip .icon { width: .95rem; height: .95rem; color: var(--chip); }
.cl-tally .cl-chip { padding: 4px 10px; border-radius: var(--r-pill); font-size: var(--fs-13); font-weight: 600; background: color-mix(in srgb, var(--chip) 18%, transparent); border: 1px solid color-mix(in srgb, var(--chip) 60%, transparent); }
.cl-num { font: 700 var(--fs-15)/1 var(--f-mono); color: var(--c-text); }
.cl-num small { margin-left: 2px; font-size: var(--fs-12); color: var(--c-secondary); }
/* Everything else on a quiet line under the text (flags, kind, the mission it comes from). */
.cl-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-3); padding-left: calc(3rem + var(--s-3)); margin-top: -2px; }
.cl-tag { padding: 2px 8px; border-radius: var(--r-sm); border: 1px solid var(--c-border-strong); font-size: var(--fs-11, 11px); color: var(--c-secondary); text-transform: uppercase; letter-spacing: .06em; }
.cl-fact { font-size: var(--fs-13); color: var(--c-secondary); }
@media (max-width: 640px) { .cl-row { grid-template-columns: minmax(0, 1fr); } .cl-facts { justify-content: flex-start; padding-left: calc(3rem + var(--s-3)); } .cl-cell { min-width: 0; flex: 1; max-width: 10rem; } }
.cl-tally { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); margin: 0 0 var(--s-3); color: var(--c-secondary); font-size: var(--fs-14); }
.cl-tally b { color: var(--c-text); }
.cl-num-label { font: 500 var(--fs-12)/1 var(--f-body); }
/* A cheat's code as controller buttons (components/button-code): face buttons round, shoulders and triggers as pills, the
   d-pad as arrows. Drawn by us; each face button in its own colour, all bright enough on the dark key (AA). */
.pad-code { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .3rem; }
.pad-key { display: inline-grid; place-items: center; min-width: 2rem; height: 2rem; padding: 0 .45rem; border-radius: var(--r-sm);
  background: #4A4553; border: 0; font: 800 var(--fs-13)/1 var(--f-body); color: #F4F1F7; } /* flat, as the drawn keys */
/* Face buttons as on the pads: a flat dark round button with the symbol (PS5) or letter (Xbox) in its colour. */
.pad-key:is(.is-triangle, .is-circle, .is-cross, .is-square, .is-a, .is-b, .is-x, .is-y) { background: #2A2630; box-shadow: inset 0 0 0 1px #3E3946; }
.pad-key svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pad-key:is(.is-triangle, .is-circle, .is-cross, .is-square, .is-a, .is-b, .is-x, .is-y) { width: 2rem; padding: 0; border-radius: 50%; }
.pad-key.is-triangle { color: #4FD1B5; color: light-dark(#0D7360, #4FD1B5); } .pad-key.is-circle { color: #FF7A85; color: light-dark(#B8253A, #FF7A85); } .pad-key.is-cross { color: #8FB2FF; color: light-dark(#2F55B8, #8FB2FF); } .pad-key.is-square { color: #F49AC8; color: light-dark(#A82A6A, #F49AC8); }
.is-xbox .pad-key.is-a { color: #7BD35A; color: light-dark(#2F6E19, #7BD35A); } .is-xbox .pad-key.is-b { color: #FF7A85; color: light-dark(#B8253A, #FF7A85); } .is-xbox .pad-key.is-x { color: #6DB8FF; color: light-dark(#1D63A3, #6DB8FF); } .is-xbox .pad-key.is-y { color: #FFD24D; color: light-dark(#7A5A00, #FFD24D); }
/* Keys drawn as the real buttons (components/button-code): the drawing is the key, so no box round it. Sized by the
   key (2rem; the list's 1.75rem; an open cheat's 2.75rem), bumpers and triggers a little wider. Nothing clipped. */
.pad-key.is-svg { width: 2rem; min-width: 0; height: 2rem; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; }
.pad-key.is-svg.is-wide { width: 2.5rem; }
.pad-key.is-svg svg { width: 100%; height: 100%; stroke: none; fill: none; overflow: visible; }
.pad-key-letter { font: 800 16px var(--f-body); }
.pad-key.is-a .pad-key-letter { fill: #6BD34A; } .pad-key.is-b .pad-key-letter { fill: #FF4D5E; } .pad-key.is-x .pad-key-letter { fill: #4FA6FF; } .pad-key.is-y .pad-key-letter { fill: #FFD23F; }
.pad-key-label { font: 800 11px var(--f-body); letter-spacing: .02em; fill: #F4F2F7; }
.pad-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.pad-key-label.is-stick { font-size: 9.5px; }
.pad-key.is-blank { color: var(--c-muted); background: var(--c-bg); border: 1px dashed #5C5566; box-shadow: none; }

/* Stacked pins spread out to pick from (map.js fanOut): 44 px buttons round the spot, thin lines back to it. */
.pin-fan { position: relative; width: 0; height: 0; z-index: 3; }
.pin-fan-lines { position: absolute; left: 0; top: 0; width: 1px; height: 1px; max-width: none; overflow: visible; pointer-events: none; }
.pin-fan-lines line { stroke: #F4F1F7; stroke-width: 1.5; stroke-opacity: .75; }
.pin-fan-pin { position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border-radius: 50%; cursor: pointer;
  background: var(--cat); border: 2px solid #F4F1F7; color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.55); }
.pin-fan-pin .icon { width: 20px; height: 20px; }
.pin-fan-pin.is-mine { color: #f6cf1f; border-color: #171717; } /* your own pin: light, with a pink mark, as on the map */
.pin-fan-pin:hover, .pin-fan-pin:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 1px; }

/* Touch screens: everything tappable at least 44 px tall (spec: 44 pt / 48 dp), where the mouse layout is tighter. */
@media (pointer: coarse) {
  .btn-sm, .chip, .vote-btn, .footer-grid li a, .panel-version select { min-height: var(--touch); }
  .section-head > a, .row-between > a.link-pink, a.link-pink.small, .text-btn { display: inline-flex; align-items: center; min-height: var(--touch); }
}

/* Story / Online switch (partials/mode-switch): Story is on; Online is a link to its page, marked soon. Header on wide
   screens only (it's busy below that), top of the phone menu, and big on /online. */
.mode-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: var(--r-pill); border: 1px solid var(--c-border-strong); background: var(--c-surface-1); flex: none; }
.mode-opt { display: inline-flex; align-items: center; gap: .3rem; min-height: 2rem; padding: 0 var(--s-3); border-radius: var(--r-pill); font-size: var(--fs-13); font-weight: 600; color: var(--c-secondary); text-decoration: none; }
.mode-opt.is-on { background: var(--c-text); color: var(--c-bg); }
.mode-opt small { font-size: var(--fs-11); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--c-pink-text); }
a.mode-opt:hover { color: var(--c-text); }
a.mode-opt.is-on:hover { color: var(--c-bg); } /* the marked side keeps its dark text on hover */
.mode-opt.is-on small { color: inherit; } /* the time left, on the light marked side: dark text (pink failed contrast there) */
.site-header .mode-switch { margin-left: auto; margin-right: var(--s-2); }
@media (max-width: 1279px) { .site-header .mode-switch { display: none; } }
.drawer .mode-switch { align-self: flex-start; margin: 0 0 var(--s-3); }
.mode-switch.is-big { margin-top: var(--s-3); }
.mode-switch.is-big .mode-opt { min-height: var(--touch); padding: 0 var(--s-5); font-size: var(--fs-16); }
@media (pointer: coarse) { .mode-opt { min-height: var(--touch); } }
.tz-facts { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: grid; gap: var(--s-3); }
.tz-facts li { display: flex; gap: var(--s-3); align-items: flex-start; font-size: var(--fs-17); color: var(--c-body); }
.tz-facts .icon { flex: none; width: 1.2rem; height: 1.2rem; margin-top: .2rem; color: #7BD35A; color: light-dark(#2A7A4E, #7BD35A); }
.tz-mode-h { margin-top: var(--s-8); }

/* Compare (public/compare.blade.php): a short title and a category menu; then one grid: the chosen ones across the
   top (sticky under the header, each with a ✕), an empty "+ Add" slot while there's room, and a row per fact in the
   same columns. Phones put each fact's name above its values, so nothing scrolls sideways. */
.cmp-back { margin-top: var(--s-3); } /* Back to the list: first thing under the breadcrumb */
.cmp-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-2); }
.cmp-title { margin: 0; font-size: clamp(1.75rem, 4vw, 2.75rem); }
.cmp-lead { margin: var(--s-2) 0 0; }
.cmp-types { position: relative; }
.cmp-types > summary { list-style: none; gap: var(--s-2); min-height: var(--touch); cursor: pointer; }
.cmp-types > summary::-webkit-details-marker { display: none; }
.cmp-types > summary .icon { width: 1rem; height: 1rem; }
.cmp-types[open] .cmp-types-caret { transform: rotate(180deg); }
.cmp-types-list { position: absolute; right: 0; z-index: 20; margin: var(--s-2) 0 0; padding: var(--s-2); list-style: none; min-width: 14rem; max-height: 60vh; overflow-y: auto;
  border-radius: var(--r-lg); border: 1px solid var(--c-border-strong); background: var(--c-surface-2); box-shadow: 0 18px 48px rgba(0,0,0,.55); }
.cmp-types-list a { display: flex; align-items: center; gap: var(--s-3); min-height: var(--touch); padding: 0 var(--s-3); border-radius: var(--r-sm); color: var(--c-text); text-decoration: none; }
.cmp-types-list a .icon { width: 1.1rem; height: 1.1rem; color: var(--cat); }
.cmp-types-list a:hover, .cmp-types-list a[aria-current="page"] { background: var(--c-surface-3); }
.cmp-body { margin-top: var(--s-5); padding-bottom: var(--s-8); }
.cmp-body .compare-filter { margin-bottom: var(--s-3); }

.cmp-grid { border: 1px solid var(--c-border); border-radius: var(--r-lg); background: var(--c-surface-1); }
.cmp-row { display: grid; grid-template-columns: 11rem repeat(var(--cols), minmax(0, 1fr)); border-bottom: 1px solid var(--c-border); }
.cmp-row:last-child { border-bottom: 0; }
.cmp-row[hidden] { display: none; }
.cmp-k { padding: var(--s-3) var(--s-4); color: var(--c-muted); font: 600 var(--fs-12)/1.3 var(--f-eyebrow); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; } /* a quiet heading, apart from the values (owner, 3 Nov) */
.cmp-k span { text-transform: none; letter-spacing: 0; font-family: var(--f-body); }
.cmp-v { min-width: 0; padding: var(--s-3) var(--s-4); color: var(--c-text); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.cmp-v.is-best { background: rgba(246,207,31,.08); }
.cmp-v.is-pad { background: repeating-linear-gradient(135deg, transparent 0 8px, color-mix(in srgb, var(--c-text) 1.5%, transparent) 8px 16px); }
.cmp-v .gauge { margin-top: var(--s-2); }
.cmp-num { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--s-1); }
.cmp-num .tag-best { margin-left: var(--s-1); }

/* The chosen ones: sticky under the site header (js/compare.js measures it). */
.cmp-slots { position: sticky; top: var(--header-h, 4rem); z-index: 6; background: var(--c-surface-1); border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: 0 10px 24px rgba(0,0,0,.35); }
.cmp-slot { position: relative; display: grid; align-content: start; gap: var(--s-2); min-width: 0; padding: var(--s-3); }
.cmp-slot-pic { display: block; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: var(--c-surface-2); }
.cmp-slot-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cmp-slot-name { font: 600 var(--fs-16)/1.2 var(--f-body); color: var(--c-text); text-decoration: none; overflow-wrap: anywhere; }
.cmp-slot-name:hover { color: var(--c-pink-text); }
.cmp-slot-x { position: absolute; top: calc(var(--s-3) + 4px); right: calc(var(--s-3) + 4px); display: grid; place-items: center; width: var(--touch); height: var(--touch);
  border-radius: 50%; background: color-mix(in srgb, var(--c-bg) 78%, transparent); border: 1px solid color-mix(in srgb, var(--c-text) 22%, transparent); color: #fff; }
.cmp-slot-x .icon { width: 1.1rem; height: 1.1rem; }
.cmp-slot-x:hover, .cmp-slot-x:focus-visible { background: var(--c-pink-fill); border-color: var(--c-pink-fill); }
.cmp-add-slot { display: grid; place-items: center; align-content: center; gap: var(--s-2); height: 100%; min-height: 7rem; padding: var(--s-3); border-radius: var(--r-md);
  border: 2px dashed var(--c-border-strong); color: var(--c-secondary); font-weight: 600; text-align: center; text-decoration: none; }
.cmp-add-slot:hover, .cmp-add-slot:focus-visible { border-color: var(--c-pink-text); color: var(--c-text); }
.cmp-add-plus { display: grid; place-items: center; width: var(--touch); height: var(--touch); border-radius: 50%; background: var(--c-pink-fill); color: #fff; }
.cmp-add-plus .icon { width: 1.25rem; height: 1.25rem; }

/* No picture: the category's colour and icon, centred (not an empty box). */
.cmp-ph { display: grid; place-items: center; width: 100%; height: 100%; color: var(--cat);
  background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--cat) 22%, transparent), transparent 70%), var(--c-surface-2); }
.cmp-ph .icon { width: 2rem; height: 2rem; opacity: .85; }

/* The picker: inline as the next step, or in a pop-up behind "+ Add". */
.cmp-picker.is-inline { margin-bottom: var(--s-6); }
.cmp-picker-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.cmp-picker-title { margin: 0; font: 600 var(--fs-20)/1.25 var(--f-body); color: var(--c-text); }
.cmp-picker .compare-add { margin-top: var(--s-3); }
.cmp-picks-head { margin-top: var(--s-5); }
.cmp-picks { list-style: none; margin: var(--s-3) 0 0; padding: 0; display: grid; gap: var(--s-2); grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.cmp-pick { display: flex; align-items: center; gap: var(--s-3); min-height: 3.5rem; padding: var(--s-2); border-radius: var(--r-md); border: 1px solid var(--c-border-strong); background: var(--c-surface-1); color: var(--c-text); text-decoration: none; }
.cmp-pick:hover, .cmp-pick:focus-visible { border-color: var(--c-pink-text); }
.cmp-pick-pic { flex: none; width: 3.5rem; height: 2.5rem; border-radius: var(--r-sm); overflow: hidden; }
.cmp-pick-pic img { width: 100%; height: 100%; object-fit: cover; }
.cmp-pick-pic.cmp-ph .icon { width: 1.25rem; height: 1.25rem; }
.cmp-pick-name { flex: 1; min-width: 0; font-weight: 600; line-height: 1.25; }
.cmp-pick-add { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--c-pink-fill); color: #fff; flex: none; }
.cmp-pick-add .icon { width: 1rem; height: 1rem; }
dialog.cmp-dialog { width: min(44rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); padding: var(--s-5); border-radius: var(--r-xl); border: 1px solid var(--c-border-strong);
  background: var(--c-surface-1); color: var(--c-text); overflow: auto; }
dialog.cmp-dialog::backdrop { background: rgba(5,3,8,.72); }
dialog.cmp-dialog .cmp-picks { grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); }

@media (max-width: 640px) {
  .cmp-row { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); }
  .cmp-k { grid-column: 1 / -1; padding: var(--s-3) var(--s-3) 0; }
  .cmp-v { padding: var(--s-1) var(--s-3) var(--s-3); font-size: var(--fs-14); }
  .cmp-corner { display: none; }
  .cmp-slot { padding: var(--s-2); gap: var(--s-1); }
  .cmp-slot-pic { aspect-ratio: 4 / 3; }
  .cmp-slot-name { font-size: var(--fs-13); }
  .cmp-slot-x { top: calc(var(--s-2) - 6px); right: calc(var(--s-2) - 6px); width: 2.25rem; height: 2.25rem; } /* 36 px + the slot's padding: a 44 px target */
  .cmp-slot-x::after { content: ''; position: absolute; inset: -4px; }
  .cmp-add-slot { min-height: 0; padding: var(--s-2); font-size: var(--fs-13); border-width: 1.5px; }
  .cmp-v .gauge-scale, .cmp-v .gauge-best { display: none; } /* a narrow column: the bar alone; the number says it */
  dialog.cmp-dialog { width: 100%; max-width: none; max-height: 92dvh; margin: auto 0 0; border-radius: var(--r-xl) var(--r-xl) 0 0; padding: var(--s-4) var(--s-4) calc(var(--s-4) + env(safe-area-inset-bottom)); }
}

/* Suggest an edit: the value box fits the field (a number with its unit beside it; yes/no as two choices). */
.input-unit { display: flex; align-items: center; gap: var(--s-2); }
.input-unit .input { flex: 1; }
.suggest-current { margin: var(--s-1) 0 0; }
.suggest-current[hidden] { display: none; }
/* Map: "Your progress" sits under Places and shows on the Found tab only; "Pins you've found" is the first Map option. */
#pv-places-panel:not(:has([data-tab="found"][aria-checked="true"])) .map-progress { display: none; }
.map-options .found-row { margin-top: var(--s-2); }
/* Map suggestions: on a pin card's More (Wrong spot? · Not there) and Add my pin's "for everyone" switch. */
.pin-card-suggest { margin: var(--s-2) 0 0; color: var(--c-secondary); }
.pin-card-suggest .text-btn { min-height: var(--touch); }
.mypin-share { margin-top: var(--s-1); }
.mypin-card [data-share-cat][hidden] { display: none; }
/* Suggest an update under guides, mission guides and lists. */
.suggest-update { margin: var(--s-3) 0 0; }
.suggest-update .text-btn { min-height: var(--touch); }
/* Sign-up: Help keep it right (what earns Rep, the tier ladder). */
.keep-right { margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--c-border); }
.keep-earn { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.keep-earn li { display: flex; justify-content: space-between; gap: var(--s-3); font-size: var(--fs-14); }
.keep-earn li { align-items: center; }
.keep-earn-note { margin: var(--s-2) 0 0; } /* the small print under What earns Rep (RankLadder::earnNotes) */
/* "+40 Rep": a plain chip, never pink text (our link colour), so it doesn't look tappable. */
.rep-chip, .keep-earn .rep-amount { display: inline-flex; align-items: center; height: 1.5rem; padding: 0 .55rem; border-radius: var(--r-pill); border: 1px solid var(--c-border-strong); background: var(--c-surface-3); color: var(--c-text); font: 600 var(--fs-12)/1 var(--f-mono); white-space: nowrap; vertical-align: 1px; }
/* The tier ladder: an even grid (owner: "untidy"): every card the same width and height, the badge in the same place,
   numbers lined up, each tier's colour as a thin edge on the left. */
.keep-tiers { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: grid; gap: var(--s-2); grid-template-columns: repeat(auto-fill, minmax(min(100%, 10.5rem), 1fr)); counter-reset: none; }
.keep-tiers li { display: grid; grid-template-columns: 2rem 1fr; column-gap: var(--s-2); align-items: center; align-content: center; min-height: 4.25rem; padding: var(--s-2) var(--s-3) var(--s-2) var(--s-2); border-left: 3px solid var(--tier, var(--c-border-strong)) !important; font-variant-numeric: tabular-nums; border: 1px solid var(--c-border-strong); border-radius: var(--r-md); background: var(--c-surface-1); line-height: 1.3; }
.keep-tiers li > * { grid-column: 2; }
.keep-tiers li > .rank-glyph { grid-column: 1; grid-row: 1 / span 4; width: 1.75rem; height: 1.75rem; justify-self: center; color: var(--tier, var(--c-secondary)); } /* each tier's badge in its colour (rank_tiers.colour, set inline as --tier) */
.keep-tiers strong { font-size: var(--fs-15); color: var(--c-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Where you are on the ladder (account, profiles): outlined in pink, with "You're here". */
.keep-tiers li.is-here { border-color: var(--c-pink-text); box-shadow: inset 0 0 0 1px var(--c-pink-text); }
.keep-here { font-weight: 700; color: var(--c-pink-text); }
/* "How ranks work" (Suggest forms): opens the ladder in place; looks like the link it is, a full touch target. */
.rank-how { margin: var(--s-1) 0 0; }
.rank-how > summary { display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--touch); list-style: none; cursor: pointer; color: var(--c-pink-text); font-weight: 600; font-size: var(--fs-14); text-decoration: underline; text-underline-offset: 3px; }
.rank-how > summary::-webkit-details-marker { display: none; }
.rank-how > summary .icon { width: 1rem; height: 1rem; }
.rank-how[open] .rank-how-chev { transform: rotate(180deg); }
.rank-how-body { padding: var(--s-2) 0 var(--s-1); }
.suggest-guide .rank-how-body .keep-earn { padding-left: 0; margin: 0; gap: var(--s-2); }
.rank-link { display: inline-flex; align-items: center; min-height: var(--touch); text-decoration: underline; text-underline-offset: 3px; }
/* Account Overview, public profile: the rank tiers card. */
#rank-ladder-h + .keep-tiers { margin-top: var(--s-2); }
/* The tier's badge beside the rank line at the top of the account and profile (partials/profile-header). */
.rep-hero-top > .rank-glyph-xl { flex: none; width: 4rem; height: 4rem; stroke-width: 1.6; color: var(--tier, var(--c-pink-text)); align-self: center; }
.rep-hero-top:has(> .rank-glyph-xl) > .rep-big { margin-right: auto; }
@media (max-width: 480px) { .rep-hero-top > .rank-glyph-xl { width: 3rem; height: 3rem; stroke-width: 1.8; } }
/* About → Ranks & Rep: the same ladder inside article text. */
.about-ladder { margin: 0 0 var(--s-5); padding: var(--s-4); border-radius: var(--r-md); background: var(--c-surface-1); border: 1px solid var(--c-border); }
.prose .about-ladder :is(.keep-earn, .keep-tiers) { padding-left: 0; margin-bottom: 0; }
.prose .about-ladder .keep-tiers { margin-top: var(--s-4); }
.prose .about-ladder li { margin-bottom: 0; }
/* Account → Contributions: one row per suggestion. */
.contrib-counts { margin: 0 0 var(--s-3); font-weight: 600; color: var(--c-secondary); }
.contrib-list { list-style: none; margin: 0; padding: 0; }
.contrib-list li { display: grid; gap: 2px; padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--c-border); }
.contrib-list li:last-child { border-bottom: 0; }
.contrib-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
/* Status at a glance (owner, 2 Nov): a tick in green, a clock in amber, a cross in red. */
.contrib-head .tag { display: inline-flex; align-items: center; gap: 4px; }
.contrib-head .tag svg { width: 12px; height: 12px; flex: none; }
.contrib-head .tag.is-accepted { color: var(--c-status-up); background: rgba(91,175,126,.14); background: light-dark(rgba(42,122,78,.08), rgba(91,175,126,.14)); }
.contrib-head .tag.is-waiting { color: var(--c-status-issues); background: rgba(224,163,58,.14); background: light-dark(rgba(154,90,12,.08), rgba(224,163,58,.14)); }
.contrib-head .tag.is-not_accepted { color: var(--c-rating-low); background: rgba(229,72,77,.16); background: light-dark(rgba(196,40,45,.08), rgba(229,72,77,.16)); }

/* Suggest forms: what it's worth and what gets it accepted (partials/suggest-guide). */
.suggest-guide { margin-top: var(--s-3); padding: var(--s-3); border-radius: var(--r-md); background: var(--c-surface-2); border: 1px solid var(--c-border); }
.suggest-guide p { margin: 0; }
.suggest-guide ul { margin: var(--s-1) 0 var(--s-2); padding-left: 1.1rem; display: grid; gap: 2px; }
.suggest-guide-h { margin-top: var(--s-2) !important; font-weight: 600; }
/* Blocked from suggesting (Admin → Users, for spammers; js/app.js): every Suggest button goes. "Not known yet" names stay as plain text. */
[data-no-suggest] :is([data-suggest]:not(.not-known-btn), [data-article-suggest], .suggest-update, .pin-card-suggest, [data-fix-add]) { display: none !important; }
[data-no-suggest] .not-known-btn { pointer-events: none; color: inherit; text-decoration: none; }

/* Leaderboard (/leaderboard): a real table that fits a 390px phone without scrolling sideways; desktop adds a side card. */
.lb-lead { margin: var(--s-2) 0 0; max-width: 46rem; }
/* How it works: three numbered steps in a row (stacked on phones). */
.lb-steps { list-style: none; margin: var(--s-5) 0 0; padding: 0; display: grid; gap: var(--s-2); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.lb-steps li { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-3) var(--s-4); border: 1px solid var(--c-border); border-radius: var(--r-lg); background: var(--c-surface-1); }
.lb-steps li > span:last-child { display: grid; gap: 2px; }
.lb-steps strong { color: var(--c-text); }
.lb-step-n { flex: none; display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--c-pink-fill); color: #fff; font: 700 var(--fs-14)/1 var(--f-mono); }
.lb-tabs { display: flex; gap: var(--s-2); flex-wrap: wrap; margin-top: var(--s-5); }
.lb-tabs .chip { min-height: var(--touch); }
.lb-tabs .chip[aria-current="page"] { background: rgba(246,207,31,.18); border-color: var(--c-pink-fill); }
.lb-meta { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-3); margin: var(--s-3) 0 0; }
.lb-layout { display: grid; gap: var(--s-4); margin-top: var(--s-4); }
.lb-main { display: grid; gap: var(--s-3); min-width: 0; }
.lb-aside { display: grid; gap: var(--s-3); padding: var(--s-4); }
.lb-aside p { margin: 0; }
.lb-aside-link { display: inline-flex; align-items: center; min-height: var(--touch); }
.lb-mine { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-3); padding: var(--s-2) var(--s-4); min-height: var(--touch); border: 1px solid var(--c-border-strong); border-radius: var(--r-lg); background: var(--c-surface-1); }
.lb-mine[hidden], .lb-mine-link[hidden] { display: none; }
.lb-mine-text { color: var(--c-text); font-weight: 600; }
.lb-mine-link { display: inline-flex; align-items: center; min-height: var(--touch); }
.lb-table-wrap { border: 1px solid var(--c-border); border-radius: var(--r-lg); background: var(--c-surface-1); overflow: hidden; }
.lb-table { width: 100%; border-collapse: collapse; font-size: var(--fs-14); }
.lb-table caption { caption-side: top; text-align: left; padding: var(--s-3) var(--s-3) var(--s-2); font-size: var(--fs-13); color: var(--c-secondary); }
.lb-table th, .lb-table td { padding: var(--s-1) var(--s-2); text-align: left; vertical-align: middle; border-top: 1px solid var(--c-border); }
.lb-table thead th { padding-block: var(--s-2); font: 600 var(--fs-12)/1.2 var(--f-body); color: var(--c-muted); text-transform: uppercase; letter-spacing: var(--ls-md); }
.lb-table tbody tr:hover > * { background: var(--c-surface-2); }
.lb-table tbody .lb-pos { width: 2.75rem; text-align: center; font: 600 var(--fs-15) var(--f-mono); font-variant-numeric: tabular-nums; color: var(--c-secondary); }
.lb-table thead .lb-pos { text-align: center; }
.lb-table tr.is-top .lb-pos { color: var(--c-pink-text); }
.lb-table .lb-rep { text-align: right; padding-right: var(--s-3); white-space: nowrap; }
.lb-table tbody .lb-rep { font: 600 var(--fs-14) var(--f-mono); font-variant-numeric: tabular-nums; color: var(--c-text); }
.lb-table tbody .lb-rank { color: var(--c-secondary); font-size: var(--fs-13); }
.lb-table .lb-member { font-weight: 400; }
.lb-who { display: flex; align-items: center; gap: var(--s-2); min-height: var(--touch); padding-block: var(--s-1); color: inherit; }
a.lb-who:hover .lb-name { text-decoration: underline; }
.lb-who .user-initial { width: 2rem; height: 2rem; font-size: var(--fs-13); }
.lb-names { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.lb-name { font-weight: 600; color: var(--c-text); overflow-wrap: anywhere; }
.lb-handle { font-size: var(--fs-12); color: var(--c-muted); overflow-wrap: anywhere; }
.lb-you { margin-top: 2px; padding: 0 var(--s-2); border-radius: var(--r-pill); background: var(--c-pink-fill); color: #fff; font-size: var(--fs-11); font-weight: 700; }
.lb-table tbody tr.is-me > * { background: rgba(246,207,31,.12); }
.lb-empty { margin: 0; }

/* Gold, silver, bronze for 1st–3rd (owner; tokens medal-*): the place number on a ring of its colour, a thin edge on the
   row. The number itself still says the place. No glow, no shine. */
.is-gold { --medal: var(--c-medal-gold); } .is-silver { --medal: var(--c-medal-silver); } .is-bronze { --medal: var(--c-medal-bronze); }
.lb-table tr:is(.is-gold, .is-silver, .is-bronze) .lb-pos { color: var(--medal); }
.lb-table tr:is(.is-gold, .is-silver, .is-bronze) > :first-child { box-shadow: inset 3px 0 0 var(--medal); }
.lb-medal-dot { display: inline-grid; place-items: center; flex: none; width: 1.75rem; height: 1.75rem; border-radius: 50%; border: 2px solid var(--medal, var(--c-border-strong));
  color: var(--medal, var(--c-text)); font: 700 var(--fs-13)/1 var(--f-mono); }
.lb-prize { display: inline-block; margin-top: 2px; font-size: var(--fs-12); font-weight: 600; color: var(--medal, var(--c-pink-text)); }
.lb-placeholder .lb-name { color: var(--c-secondary); font-style: italic; }
.lb-placeholder .lb-rank, .lb-placeholder .lb-rep { color: var(--c-muted) !important; }
.lb-ghost { border: 1px dashed var(--c-border-strong); background: transparent !important; color: var(--c-muted); }

/* This week's prizes and when they're decided, above the board. */
.lb-prizes { display: grid; gap: var(--s-2); margin-top: var(--s-4); padding: var(--s-4); }
.lb-prizes p { margin: 0; }
.lb-prizes-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); }
.lb-medal { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 600; color: var(--c-text); }

/* Last week's top 3 (being checked, then paid). */
.lb-last { margin-top: var(--s-5); padding: var(--s-4); }
.lb-last .card-title { margin: 0; }
.lb-last-status { margin: var(--s-1) 0 var(--s-3); }
.lb-last-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.lb-last-list li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-3); min-height: var(--touch); padding: var(--s-1) 0; border-top: 1px solid var(--c-border); }
.lb-last-list li:first-child { border-top: 0; }
.lb-last-list .user-initial { width: 2rem; height: 2rem; font-size: var(--fs-13); }
.lb-last-name { font-weight: 600; color: var(--c-text); }
.lb-last-rep { margin-left: auto; }
.lb-last-list .lb-prize { flex-basis: 100%; margin: 0 0 0 calc(1.75rem + 2rem + var(--s-3) * 2); }
@media (min-width: 40rem) { .lb-last-list .lb-prize { flex-basis: auto; margin: 0; } }
@media (max-width: 30rem) { .lb-table tbody .lb-pos { width: 2rem; } .lb-table th, .lb-table td { padding-inline: var(--s-1); } .lb-table .lb-rep { padding-right: var(--s-2); } }

/* Leaderboard: how ranks and Rep work and the questions, under the board (two columns on wide screens). */
.lb-more { display: grid; gap: var(--s-6); margin-top: var(--s-7); padding-top: var(--s-6); border-top: 1px solid var(--c-border); }
@media (min-width: 64rem) { .lb-more { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.lb-more .section-title { margin: 0 0 var(--s-2); }
.lb-ranks > p { margin: 0 0 var(--s-3); max-width: 40rem; }
.lb-ranks .keep-tiers { margin-top: var(--s-3); }
.lb-ranks > p:last-child { margin: var(--s-4) 0 0; }

/* ---------- Radio layout (partials/category-radio; a category set to "A radio", e.g. Radio stations) ----------
   Station tiles: the logo (the entry's main picture) on its tint, else the name lettered on it. The 8 tints are picked
   from the name (EntryDrops::tint) and match the app (RadioStations.swift). A tile opens in place across the row. */
.radio-head { padding-top: var(--s-5); }
.radio-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); margin-top: var(--s-2); }
.radio-title-row .page-title { margin: 0; font-size: clamp(var(--fs-36), 6vw, var(--fs-56)); text-wrap: balance; }
.radio-title-row .btn { margin-left: auto; }
.radio-lead { margin: var(--s-2) 0 0; max-width: 40rem; font-size: var(--fs-16); color: var(--c-secondary); text-wrap: pretty; }
.radio-tools { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; margin-top: var(--s-4); }
.radio-tools .btn { min-height: var(--touch); }
.radio-find { flex: 1 1 12rem; max-width: 26rem; }
.radio-find .input { min-height: var(--touch); }
.radio-page { margin-top: var(--s-5); padding-bottom: var(--s-8); }
.radio-page [hidden] { display: none !important; }

[data-tint="0"] { --t1: #f6cf1f; --t2: #5B1238; }
[data-tint="1"] { --t1: #2E6FB0; --t2: #12284A; }
[data-tint="2"] { --t1: #1F8A70; --t2: #0E3A33; }
[data-tint="3"] { --t1: #C46A1E; --t2: #4A2109; }
[data-tint="4"] { --t1: #7B4BC4; --t2: #2A1650; }
[data-tint="5"] { --t1: #B8323A; --t2: #3E0F14; }
[data-tint="6"] { --t1: #3F8F3A; --t2: #13300F; }
[data-tint="7"] { --t1: #9A7B1C; --t2: #3A2E08; }

.stations { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: row dense; gap: var(--s-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr)); }
@media (min-width: 900px) { .stations { grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); gap: var(--s-4); } }
.station { position: relative; min-width: 0; border-radius: var(--r-lg); background: var(--c-surface-1); border: 1px solid var(--c-border); }
.station:hover { border-color: var(--c-border-strong); }
.station.is-on-air { border-color: var(--c-pink-text); }

/* The art: logo or lettering on the tint, a square; the Play button sits on its corner. */
.station-art { position: relative; aspect-ratio: 1; border-radius: calc(var(--r-lg) - 1px) calc(var(--r-lg) - 1px) var(--r-sm) var(--r-sm); overflow: hidden; container-type: inline-size; cursor: pointer;
  background: radial-gradient(120% 90% at 0% 0%, var(--t1, var(--c-pink-fill)) 0%, transparent 70%), linear-gradient(150deg, var(--t1, var(--c-pink-fill)), var(--t2, var(--c-bg)));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
/* Radio waves, faint, from the bottom-right corner (drawn, not a picture): it reads as a station even without a logo. */
.station-art::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .14;
  background: repeating-radial-gradient(circle at 100% 100%, transparent 0 14px, rgba(255,255,255,.9) 14px 15.5px, transparent 15.5px 30px); }
.station-art.has-logo { background: radial-gradient(90% 80% at 50% 45%, color-mix(in srgb, var(--t1) 45%, transparent), transparent 75%), linear-gradient(160deg, var(--t2, var(--c-surface-2)), #171717); }
.station-art.has-logo::before { display: none; }
.station-art img { position: absolute; top: 9%; left: 12%; width: 76%; height: 62%; object-fit: contain; } /* clear of the Play button */
.station-letters { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: var(--s-1); padding: 9cqi 9cqi 40cqi;
  font: 600 clamp(var(--fs-20), 13.5cqi, var(--fs-56))/.95 var(--f-title); text-transform: uppercase; letter-spacing: .01em; color: #fff; text-wrap: balance; overflow-wrap: anywhere;
  text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.station-letters small { order: -1; margin-bottom: auto; font: 600 var(--fs-11)/1.2 var(--f-eyebrow); letter-spacing: var(--ls-eyebrow); color: rgba(255,255,255,.9); text-shadow: none; }

.round-btn, .station-play { display: inline-grid; place-items: center; flex: none; width: var(--touch); height: var(--touch); padding: 0; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--c-border-strong); background: var(--c-surface-2); color: var(--c-text); }
.round-btn:hover { background: var(--c-surface-3); }
.round-btn.is-primary, .station-play { background: var(--c-pink-fill); border-color: transparent; color: var(--c-on-pink); box-shadow: var(--sh-button-inset); }
.round-btn.is-primary:hover, .station-play:hover { background: #C22F5C; }
.round-btn .icon, .station-play .icon { width: 1.25rem; height: 1.25rem; fill: currentColor; }
.station-play { position: absolute; right: 8px; bottom: 8px; width: 3.25rem; height: 3.25rem; box-shadow: var(--sh-button-inset), 0 4px 14px rgba(0,0,0,.45); }
.station-play .icon { width: 1.5rem; height: 1.5rem; }
.icon-pause, .is-playing > .icon-play { display: none; }
.is-playing > .icon-pause { display: block; }

.on-air { position: absolute; left: 8px; top: 8px; display: none; align-items: center; gap: 6px; padding: 3px 8px; border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--c-bg) 85%, transparent); color: var(--c-text); font: 600 var(--fs-11)/1.4 var(--f-eyebrow); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; }
.station.is-on-air .on-air { display: inline-flex; }
.station.is-on-air .station-letters small { visibility: hidden; }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 10px; }
.eq i { display: block; width: 3px; height: 100%; border-radius: 1px; background: var(--c-pink-text); }
.eq i:nth-child(2) { height: 60%; } .eq i:nth-child(3) { height: 80%; }
@media (prefers-reduced-motion: no-preference) {
  /* Live (something is playing): the only motion here. */
  .is-on-air.is-live .eq i, .now-strip.is-live .eq i { animation: eq-bounce .9s ease-in-out infinite alternate; transform-origin: bottom; }
  .is-on-air.is-live .eq i:nth-child(2), .now-strip.is-live .eq i:nth-child(2) { animation-delay: -.3s; }
  .is-on-air.is-live .eq i:nth-child(3), .now-strip.is-live .eq i:nth-child(3) { animation-delay: -.6s; }
  .station { transition: border-color .15s; }
}
@keyframes eq-bounce { from { transform: scaleY(.3); } to { transform: scaleY(1); } }

/* Name, genre, songs: the summary opens the station. */
.station-head { display: grid; gap: 2px; padding: var(--s-3); min-height: var(--touch); cursor: pointer; list-style: none; border-radius: 0 0 var(--r-lg) var(--r-lg); }
.station-head::-webkit-details-marker { display: none; }
.station-head:hover .station-name { color: var(--c-pink-light); }
.station-name { margin: 0; font: 600 var(--fs-17)/1.15 var(--f-title); text-transform: uppercase; letter-spacing: .02em; color: var(--c-text); overflow-wrap: anywhere; }
.station-genre { font-size: var(--fs-13); color: var(--c-secondary); line-height: 1.3; }
.station-count { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-12); color: var(--c-muted); }
.station-chev { width: .45rem; height: .45rem; margin-left: auto; border-right: 2px solid var(--c-secondary); border-bottom: 2px solid var(--c-secondary); transform: translateY(-2px) rotate(45deg); }
.station-d[open] .station-chev { transform: translateY(2px) rotate(-135deg); }
.station-body { display: grid; gap: var(--s-3); padding: 0 var(--s-3) var(--s-4); }

/* Open: the station takes the whole row. Phones: a wide banner on top; wider screens: the art on the left. */
.station:has(> .station-d[open]) { grid-column: 1 / -1; }
.station:has(> .station-d[open]) .station-art { aspect-ratio: 2 / 1; }
.station:has(> .station-d[open]) .station-letters { font-size: clamp(var(--fs-24), 8cqi, var(--fs-56)); padding: 5cqi 5cqi 9cqi; }
.station:has(> .station-d[open]) .station-art img { top: 10%; left: 25%; width: 50%; height: 64%; }
.station:has(> .station-d[open]) .station-name { font-size: var(--fs-24); }
@media (min-width: 720px) {
  .station:has(> .station-d[open]) { display: grid; grid-template-columns: minmax(14rem, 18rem) 1fr; align-items: start; }
  .station:has(> .station-d[open]) .station-art { aspect-ratio: 1; margin: var(--s-3); border-radius: var(--r-md); }
  .station:has(> .station-d[open]) .station-art img { top: 9%; left: 12%; width: 76%; height: 62%; }
  .station:has(> .station-d[open]) .station-letters { font-size: clamp(var(--fs-24), 13.5cqi, var(--fs-46)); padding: 9cqi 9cqi 40cqi; }
  .station:has(> .station-d[open]) .station-head { padding-top: var(--s-5); }
}
.station .drop-songs { grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }

/* What's playing. */
.now-strip { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3); margin-bottom: var(--s-4); border-radius: var(--r-lg);
  background: linear-gradient(100deg, color-mix(in srgb, var(--c-pink-fill) 16%, var(--c-surface-1)), var(--c-surface-1) 60%); border: 1px solid var(--c-border-strong); }
.now-art { flex: none; width: 3.5rem; height: 3.5rem; border-radius: var(--r-sm); overflow: hidden; position: relative; background: var(--c-surface-2); }
.now-art .station-art { width: 100%; height: 100%; aspect-ratio: auto; border-radius: inherit; cursor: default; }
.now-art .station-letters { font-size: var(--fs-11); padding: 6px; justify-content: center; text-align: center; }
.now-art :is(.station-play, .on-air, small) { display: none !important; }
.now-art .station-art img { top: 10%; left: 10%; width: 80%; height: 80%; }
.now-text { display: grid; gap: 1px; min-width: 0; flex: 1; }
.now-text .eyebrow { display: inline-flex; align-items: center; gap: 6px; }
.now-title { color: var(--c-text); font-size: var(--fs-16); line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.now-sub { font-size: var(--fs-13); color: var(--c-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.now-links { margin: 2px 0 0; font-size: var(--fs-12); color: var(--c-secondary); }
.now-links:empty { display: none; }
.now-links p { font-size: var(--fs-12) !important; }
.now-controls { display: flex; gap: var(--s-2); flex: none; }

.radio-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px solid var(--c-border); }
.radio-foot p { margin: 0; }
.radio-more > summary { list-style: none; min-height: var(--touch); }
.radio-more > summary::-webkit-details-marker { display: none; }
.radio-more[open] > summary { background: var(--c-surface-2); }
.radio-more-menu { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-2); }
.radio-more-menu .btn { min-height: var(--touch); }

/* Suggestion boxes (entries, posts, the map): no drag handle, so a box can't grow past its form and push Send out of
   sight; long text scrolls inside. "12/200" under each (js/app.js count), pink when 20 or fewer are left. */
.suggest-box { resize: none; max-height: 10rem; overflow-y: auto; }
textarea.suggest-box[rows="2"] { min-height: 3.5rem; max-height: 6.5rem; }
.char-count { display: block; margin-top: 2px; text-align: right; color: var(--c-muted); font-variant-numeric: tabular-nums; }
.char-count.is-near { color: var(--c-pink-text); }

/* A long form's Save, kept in view at the bottom of the screen while the form is (account → Profile). */
.form-save-bar { position: sticky; bottom: 0; z-index: 2; margin: 0 calc(var(--s-5) * -1); padding: var(--s-3) var(--s-5) calc(var(--s-3) + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--c-surface-1) 70%, transparent); }
.form-save-bar .btn { width: 100%; min-height: var(--touch); }
@media (min-width: 720px) { .form-save-bar .btn { width: auto; } }

/* Home: the map preview's heading (an h2 for the page outline, styled as the bar's line it replaced). */
.map-taster-h { margin: 0; font: 600 var(--fs-16)/1.3 var(--f-body); color: var(--c-text); text-transform: none; letter-spacing: 0; }
/* Home sign-up band: what earns Rep, one line each. */
.cta-rep { list-style: none; margin: var(--s-3) 0; padding: 0; display: grid; gap: var(--s-2); }
.cta-rep li { display: flex; align-items: baseline; gap: var(--s-2); flex-wrap: wrap; color: var(--c-body); }
.cta-rep .rep-amount { flex: none; min-width: 5.5rem; }

/* Countdown → Put the countdown on your stream or site: the code shows, with Copy beside it. */
.embed-codes { display: grid; gap: var(--s-3); margin-top: var(--s-3); max-width: 40rem; }
.code-row { display: flex; gap: var(--s-2); align-items: stretch; }
.code-row .btn { min-height: var(--touch); flex: none; }
.code-box { flex: 1; min-width: 0; font: var(--fs-13)/1.5 var(--f-mono); color: var(--c-text); resize: none; }
textarea.code-box { min-height: 4.5rem; }

/* Leaderboard, Countdown, Status, Updates (partials/page-art): official art faded into the page, and the app's glow. */
.page-art { height: min(52rem, 100vh); } /* most of the first screen (owner, 3 Nov: it covered too little of the page) */
.page-art img { opacity: .34; }
.page-glow.is-soft { opacity: .4; }
.page-glow { position: absolute; left: 0; right: 0; top: 0; height: 40rem; z-index: -1; pointer-events: none;
  background: radial-gradient(55% 60% at 8% 0%, rgba(210, 56, 103, .24), transparent 70%), radial-gradient(45% 55% at 96% 4%, rgba(107, 64, 191, .2), transparent 70%); }
@media (max-width: 640px) { .page-art { height: 36rem; } .page-art img { opacity: .3; } }
@media (prefers-reduced-transparency: reduce) { .page-art { display: none; } }
.page-art, .page-glow { max-height: 100%; } /* a short page (404, sign-in): never past its own content into the footer */

/* Leaderboard → prizes: "Soon · More prizes are coming" (a little hype). */
.lb-soon { display: flex; align-items: center; gap: var(--s-2); margin: var(--s-2) 0 0; color: var(--c-text); }
.lb-soon-tag { padding: 1px var(--s-2); border-radius: var(--r-pill); border: 1px solid var(--c-pink-text); color: var(--c-pink-text); font: 600 var(--fs-11)/1.5 var(--f-eyebrow); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; }

/* Rank tier colours (rank_tiers.colour, set inline as --tier): the leaderboard's Rank badge and the profile's badge. */
.lb-rank-glyph { width: 1rem; height: 1rem; vertical-align: -3px; color: var(--tier, currentColor); }
/* A staff member's profile, as others see it: the crown and "Kingpin · Staff" side by side, no Rep. */
.rep-hero.is-staff .rep-hero-top { justify-content: flex-start; }
.rep-hero.is-staff .rep-rank { font: 600 var(--fs-24)/1.2 var(--f-title); text-transform: uppercase; letter-spacing: .02em; }

@media (max-width: 640px) { .ring { width: 5rem; height: 5rem; } .avatar-row a { width: 6.5rem; } } /* Popular now: smaller circles on phones */

/* Radio: Play all at the title's right on wide screens. */
.radio-title-row .radio-play-all { margin-left: auto; min-height: var(--touch); }
@media (max-width: 640px) { .radio-title-row .radio-play-all { margin-left: 0; } }
.staff-only { border-style: dashed; }
/* Suggest a feature (partials/feature-form): a centred box on wide screens, a bottom sheet on phones. */
.idea-dialog { width: min(32rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); padding: var(--s-6); border: 1px solid var(--c-border-strong); border-radius: var(--r-xl); background: var(--c-surface-1); color: var(--c-body); overflow: auto; }
.idea-dialog::backdrop { background: rgba(8,4,12,.72); }
.idea-dialog .section-title { margin: 0; padding-right: 2.5rem; }
.idea-close-form { position: absolute; top: var(--s-3); right: var(--s-3); margin: 0; }
.idea-dialog .textarea { min-height: 7.5rem; resize: vertical; }
.idea-count { margin: 0; text-align: right; min-height: 1em; }
.idea-count.is-near { color: var(--c-pink-text); }
.idea-status { margin: 0; }
.idea-status:empty { display: none; }
.idea-status.is-ok { color: var(--c-status-up); font-weight: 600; }
.idea-status.is-error { color: var(--c-text); }
.idea-again { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; cursor: pointer; min-height: var(--touch); }
.lb-ideas { margin: var(--s-3) 0 0; }
@media (max-width: 40rem) {
  .idea-dialog { margin: auto 0 0; width: 100vw; max-width: 100vw; border-radius: var(--r-xl) var(--r-xl) 0 0; padding: var(--s-5) var(--s-4) calc(var(--s-5) + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-transparency: reduce) { .idea-dialog::backdrop { background: rgb(8,4,12); } }
.idea-chat { display: flex; align-items: center; gap: var(--s-2); min-height: var(--touch); }
.idea-chat .icon { flex: none; width: 1.25rem; height: 1.25rem; }
/* "New in GTA 6" / "Returning" and any other badge field (options.badge) beside the type tag. */
.tag-badge { background: color-mix(in srgb, var(--c-text) 8%, transparent); color: var(--c-text); border: 1px solid var(--c-border-strong); }
.tag-badge[data-badge="new-in-gta-6"] { background: rgba(246,207,31,.18); border-color: rgba(246,207,31,.5); color: var(--c-pink-light); }
/* The game's own stats (partials/game-stats) and other locked-until-launch panels (Spawn points). */
.game-stats .group-label { margin-top: var(--s-6); }
.gs-card { display: grid; gap: var(--s-4); padding: var(--s-4); border: 1px solid var(--c-border); border-radius: var(--r-lg); background: var(--c-surface-1); }
@media (min-width: 48rem) { .gs-card { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
.gs-bars { display: grid; gap: var(--s-3); margin: 0; }
.gs-row { display: grid; grid-template-columns: minmax(8rem, 11rem) minmax(0, 1fr); align-items: center; gap: var(--s-3); }
.gs-row dt, .gs-k { font-size: var(--fs-14); font-weight: 600; color: var(--c-text); }
.gs-row dd { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-2); margin: 0; }
.gs-measured { flex-basis: 100%; color: var(--c-secondary); } /* the measured number riding on this bar (Top speed on Speed) */
.gs-measured b { color: var(--c-text); font-variant-numeric: tabular-nums; }
.gs-scale { margin: 0; grid-column: 1 / -1; }
.gs-rating small { font-size: var(--fs-14); color: var(--c-muted); font-weight: 500; }
.gs-bar { position: relative; flex: 1; height: .6rem; border-radius: 999px; background: var(--c-surface-3); overflow: hidden; }
.gs-bar > span { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--cat, var(--c-pink-fill)); }
.gs-num { min-width: 2.5ch; text-align: right; font-size: var(--fs-14); color: var(--c-text); }
.gs-ratings { display: flex; gap: var(--s-3); align-items: stretch; }
.gs-ratings-k { align-self: center; font: 600 var(--fs-12)/1 var(--f-eyebrow, var(--f-body)); letter-spacing: var(--ls-lg, 1.4px); text-transform: uppercase; color: var(--c-muted); writing-mode: horizontal-tb; }
.gs-rating { display: grid; place-items: center; min-width: 6.5rem; padding: var(--s-3); border: 1px solid var(--c-border-strong); border-radius: var(--r-md); text-align: center; }
.gs-rating b { font-size: var(--fs-32); line-height: 1; color: var(--c-text); }
.gs-rating span { font-size: var(--fs-13); color: var(--c-secondary); }
.locked-panel { position: relative; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--c-border); isolation: isolate; }
.locked-panel-fake { filter: blur(4px); opacity: .75; pointer-events: none; user-select: none; }
.locked-panel-msg { position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; justify-items: center; gap: var(--s-2); padding: var(--s-4); text-align: center; background: linear-gradient(180deg, color-mix(in srgb, var(--c-bg) 35%, transparent), color-mix(in srgb, var(--c-bg) 70%, transparent)); color: var(--c-text); }
.locked-panel-msg p { max-width: 30rem; }
.lock-chip { display: inline-flex; align-items: center; gap: var(--s-1); padding: .3rem .8rem; border-radius: 999px; background: var(--c-surface-3); border: 1px solid var(--c-border-strong); font: 600 var(--fs-13)/1.2 var(--f-body); letter-spacing: .5px; text-transform: uppercase; }
.lock-chip .icon { width: .95rem; height: .95rem; }
.gs-lock .gs-card { border: 0; border-radius: 0; min-height: 15rem; }
.spawn-lock { margin-top: var(--s-3); aspect-ratio: 16 / 7; min-height: 13rem; background: var(--c-surface-2); }
.spawn-fake { position: absolute; inset: -12px; background: var(--lock-bg, radial-gradient(60% 70% at 40% 50%, #2a3b4a, #121a22 70%)) center / cover no-repeat; filter: blur(10px) saturate(.8); opacity: .7; }
.spawn-fake i { position: absolute; width: 14px; height: 14px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 0 0 2px rgba(255,255,255,.7); }
@media (max-width: 30rem) { .gs-row { grid-template-columns: 7rem minmax(0, 1fr); } .gs-rating { min-width: 0; flex: 1; } }
.item-thumb .card-badge { position: absolute; left: var(--s-2); bottom: var(--s-2); height: 1.4rem; font-size: var(--fs-12); background: rgba(0,0,0,.6); }
/* GTA 6 Player Count (public/player-count, js/players.js): an estimate, labelled everywhere. Phone first: the number,
   then the peaks in one row, the chart, then what it's built on. */
.pc-title { margin: 0; }
.pc-estimate-tag { background: rgba(232,166,74,.16); background: light-dark(rgba(154,90,12,.08), rgba(232,166,74,.16)); color: var(--c-source-rumor); border: 1px solid color-mix(in srgb, var(--c-source-rumor) 45%, transparent); }
.pc-hero { margin-top: var(--s-4); padding: var(--s-5); display: grid; gap: var(--s-2); justify-items: center; text-align: center;
  background: radial-gradient(120% 90% at 50% 0%, rgba(246,207,31,.16), transparent 70%), var(--c-surface-1); }
.pc-hero-top { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--s-2); }
.pc-live { display: inline-flex; align-items: center; gap: var(--s-2); font: 600 var(--fs-13)/1.2 var(--f-body); letter-spacing: var(--ls-lg, 1.4px); text-transform: uppercase; color: var(--c-pink-text); }
.pc-now { margin: 0; font-size: clamp(3.5rem, 16vw, var(--fs-96)); line-height: 1; color: var(--c-text); font-variant-numeric: tabular-nums; }
.pc-sub { margin: 0; }
.pc-phase { margin: 0; max-width: 34rem; color: var(--c-secondary); }
.pc-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; margin: var(--s-3) 0 0; border-top: 1px solid var(--c-border); }
.pc-strip > div { padding: var(--s-3) var(--s-2) 0; display: grid; gap: 2px; align-content: start; }
.pc-strip > div + div { border-left: 1px solid var(--c-border); }
.pc-strip dt { font-size: var(--fs-12); color: var(--c-muted); }
.pc-strip dd { margin: 0; font-size: clamp(var(--fs-18), 4.5vw, var(--fs-28)); color: var(--c-text); font-variant-numeric: tabular-nums; }
.pc-none { font-size: var(--fs-14) !important; color: var(--c-secondary) !important; }
.pc-chart-card { margin-top: var(--s-3); }
.pc-chart-card .card-title { margin: 0; }
/* Even tabs: equal columns, each label centred (owner: they weren't even). */
.pc-ranges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; margin-top: var(--s-3); flex-wrap: nowrap; }
@media (min-width: 48rem) { .pc-ranges { display: inline-grid; width: auto; grid-template-columns: repeat(4, 6.5rem); } }
.pc-peak-tabs { display: inline-grid; grid-template-columns: repeat(2, 5.5rem); flex-wrap: nowrap; }
.pc-ranges button, .pc-peak-tabs button { justify-content: center; text-align: center; min-height: var(--touch); padding-inline: var(--s-2); white-space: nowrap; }
.pc-chart { position: relative; height: 13rem; margin-top: var(--s-3); touch-action: pan-y; }
@media (min-width: 48rem) { .pc-chart { height: 16rem; } }
.pc-chart svg { display: block; width: 100%; height: 100%; }
.pc-grid { stroke: var(--c-border); stroke-width: 1; }
.pc-axis { fill: var(--c-muted); font: 500 12px var(--f-mono); }
.pc-line { fill: none; stroke: var(--c-pink-text); stroke-width: 2; stroke-linejoin: round; }
.pc-area { fill: rgba(246,207,31,.12); stroke: none; }
.pc-cross { stroke: var(--c-secondary); stroke-width: 1; stroke-dasharray: 3 3; }
.pc-dot { fill: var(--c-pink-text); stroke: var(--c-surface-1); stroke-width: 2; }
.pc-tip { position: absolute; z-index: 2; display: grid; gap: 2px; padding: var(--s-2) var(--s-3); border-radius: var(--r-md); background: var(--c-surface-3); border: 1px solid var(--c-border-strong); pointer-events: none; white-space: nowrap; }
.pc-tip strong { font: 600 var(--fs-16) var(--f-mono); color: var(--c-text); }
.pc-tip span { font-size: var(--fs-12); color: var(--c-secondary); }
.pc-more { display: grid; gap: var(--s-3); margin-top: var(--s-3); }
@media (min-width: 56rem) { .pc-more { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: stretch; } }
/* What it's built on: three figures side by side (stacked on phones): the figure big, what it is, where it comes from. */
.pc-figs { display: grid; gap: var(--s-2); margin: var(--s-3) 0 0; }
@media (min-width: 36rem) { .pc-figs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pc-fig { display: flex; flex-direction: column; gap: var(--s-1); padding: var(--s-3); border: 1px solid var(--c-border); border-radius: var(--r-md); background: var(--c-surface-2); }
.pc-fig dt { order: 2; font-size: var(--fs-14); color: var(--c-body); line-height: 1.35; }
.pc-fig dd { margin: 0; }
.pc-fig-n { order: 1; font-size: var(--fs-22); font-weight: 700; color: var(--c-text); line-height: 1.15; }
.pc-fig-n.is-none { font-family: var(--f-body); color: var(--c-secondary); }
.pc-fig-src { order: 3; font-size: var(--fs-12); color: var(--c-muted); line-height: 1.4; }
.pc-more .card-title { margin: 0; }
.pc-table-scroll { max-height: 20rem; overflow: auto; overscroll-behavior: contain; }
.pc-table { width: 100%; border-collapse: collapse; margin-top: var(--s-2); font-size: var(--fs-14); }
.pc-table th, .pc-table td { padding: var(--s-2); border-top: 1px solid var(--c-border); text-align: left; }
.pc-table th { font-size: var(--fs-12); color: var(--c-muted); text-transform: uppercase; letter-spacing: var(--ls-md, 1px); position: sticky; top: 0; background: var(--c-surface-1); }
.pc-table .num { text-align: right; color: var(--c-text); }
.pc-basis { display: grid; gap: 0; margin: var(--s-2) 0 0; }
.pc-basis > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-1) var(--s-3); padding: var(--s-2) 0; border-top: 1px solid var(--c-border); align-items: baseline; }
.pc-basis dt { font-size: var(--fs-14); color: var(--c-body); }
.pc-basis dd { margin: 0; display: grid; justify-items: end; text-align: right; }
.pc-basis dd b { color: var(--c-text); font-size: var(--fs-16); }
.pc-basis dd span { font-size: var(--fs-12); color: var(--c-muted); }
@media (max-width: 30rem) { .pc-basis > div { grid-template-columns: 1fr; } .pc-basis dd { justify-items: start; text-align: left; } }
.pc-how-more { margin-top: var(--s-3); }
.pc-how-more summary { cursor: pointer; min-height: var(--touch); display: inline-flex; align-items: center; }
.pc-how { margin: var(--s-2) 0 0; padding-left: 1.1rem; display: grid; gap: var(--s-2); color: var(--c-body); }
/* The player count teaser (partials/players-teaser). */
.players-teaser { display: grid; gap: var(--s-1); padding: var(--s-4); border: 1px solid var(--c-border); border-radius: var(--r-lg); background: var(--c-surface-1); color: inherit; text-decoration: none; }
.players-teaser:hover { border-color: var(--c-border-strong); transform: translateY(-1px); }
.pt-label { display: inline-flex; align-items: center; gap: var(--s-2); font: 600 var(--fs-12)/1.2 var(--f-body); letter-spacing: var(--ls-lg, 1.4px); text-transform: uppercase; color: var(--c-secondary); }
.pt-num { font-size: var(--fs-40); line-height: 1; color: var(--c-text); font-variant-numeric: tabular-nums; }
.pt-sub { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-14); color: var(--c-pink-text); font-weight: 600; }
.cs-players { margin-top: var(--s-5); max-width: 22rem; background: var(--glass-bg, var(--c-surface-1)); border-color: var(--glass-border, var(--c-border)); }
@media (prefers-reduced-motion: reduce) { .players-teaser:hover { transform: none; } }
/* "Around the world" (partials/world-wave, js/world-wave.js; the apps' WorldWave draws the same): a still night map, the
   crowd line and one row per unlock moment. Nothing animates: the script redraws it at most once a minute. The map keeps
   its night look in light mode (listed with the other maps below); the rows use the theme's tokens. */
.aw { display: grid; gap: var(--s-3); margin-top: var(--s-4); min-width: 0; }
.aw.card { margin-top: 0; }
.aw-head { display: grid; gap: var(--s-2); }
.aw-head .eyebrow { margin: 0; }
.aw-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; border-radius: var(--r-md); background: var(--c-surface-2); max-width: 26rem; }
.aw-seg button { min-height: var(--touch); border: 0; border-radius: 9px; background: none; color: var(--c-secondary); font: 600 var(--fs-14)/1.2 var(--f-body); cursor: pointer; }
.aw-seg button[aria-pressed="true"] { background: var(--c-surface-3); color: var(--c-text); }
.aw-map { border-radius: var(--r-md); overflow: hidden; background: #120B19; }
.aw-map svg { display: block; width: 100%; height: auto; }
.aw-off { fill: #1F1628; }
.aw-land, .aw-zone { fill: #2A2034; }
.aw-zone.is-on { fill: rgba(246,207,31,0.26); }
.aw-region { fill: #2E2339; stroke: rgba(255,255,255,0.10); stroke-width: .6; }
.aw-region.is-on { fill: rgba(246,207,31,0.45); }
.aw-region.is-you { stroke: #ffdf5c; stroke-width: 2.4; }
.aw-night { fill: rgba(4,2,9,0.62); pointer-events: none; }
.aw-pin { fill: rgba(201,194,212,0.35); }
.aw-pin.is-on { fill: #ffdf5c; }
.aw-mid line { stroke: rgba(244,241,247,0.45); stroke-width: 1.5; stroke-dasharray: 4 5; }
.aw-mid text { fill: rgba(244,241,247,0.7); font: 600 15px var(--f-body); }
.aw-mid[hidden] { display: none; }
.aw-crowd { margin: 0; font: 600 var(--fs-16)/1.35 var(--f-body); color: var(--c-text); text-wrap: balance; }
.aw-crowd small { display: block; margin-top: 2px; font: 400 var(--fs-12)/1.4 var(--f-body); color: var(--c-muted); }
.aw-rows { display: grid; margin: 0; padding: 0; list-style: none; }
/* Phones: name and how far from you; the cities; that place's clock and its share. Wider: the cities, clock and share
   on one line ("Sydney, Melbourne, Brisbane · 09:54 there now"). */
.aw-row { position: relative; display: grid; grid-template-columns: 3.9rem minmax(0, 1fr) auto; grid-template-areas: "yt nm rel" "yt cn cn" "yt ck sh";
  column-gap: var(--s-3); row-gap: 2px; align-items: baseline; padding: 9px 4px; border-top: 1px solid var(--c-border); }
.aw-row:first-child { border-top: 0; }
.aw-yt { grid-area: yt; padding-top: 1px; font: 700 var(--fs-13) var(--f-mono); color: var(--c-secondary); font-variant-numeric: tabular-nums; }
.aw-yt small { display: block; font: 500 var(--fs-11) var(--f-mono); color: var(--c-muted); }
.aw-nm { grid-area: nm; min-width: 0; font-weight: 600; font-size: var(--fs-15); color: var(--c-text); }
.aw-rel { grid-area: rel; white-space: nowrap; text-align: right; font: 600 var(--fs-13) var(--f-body); color: var(--c-muted); }
.aw-cn, .aw-clock { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-13); color: var(--c-muted); }
.aw-cn { grid-area: cn; }
.aw-cn:empty { display: none; }
.aw-clock { grid-area: ck; }
.aw-share { grid-area: sh; display: flex; align-items: center; justify-content: flex-end; gap: 5px; font: 500 var(--fs-11) var(--f-mono); color: var(--c-muted); }
.aw-share i { display: block; height: 4px; border-radius: 2px; background: var(--c-pink-fill); opacity: .7; }
@media (min-width: 40rem) {
  .aw-row { grid-template-columns: 3.9rem minmax(0, max-content) minmax(max-content, 1fr) auto; grid-template-areas: "yt nm nm rel" "yt cn ck sh"; }
  .aw-cn:not(:empty) + .aw-clock { margin-left: calc(-1 * var(--s-3)); }
  .aw-cn:not(:empty) + .aw-clock::before { content: "\00a0·\00a0"; }
}
.aw-vc { display: inline-block; white-space: nowrap; margin-left: 5px; padding: 2px 4px; border: 1px solid color-mix(in srgb, currentColor 50%, transparent); border-radius: var(--r-xs); font: 700 var(--fs-11)/1 var(--f-eyebrow); letter-spacing: var(--ls-md); text-transform: uppercase; color: var(--c-medal-gold); vertical-align: 1px; }
.aw-row.is-on .aw-rel { color: var(--c-status-up); }
.aw-row.is-on .aw-yt { color: var(--c-muted); }
.aw-row.is-you { border-radius: 10px; border-top-color: transparent; background: rgba(246,207,31,0.12); }
.aw-row.is-you + .aw-row { border-top-color: transparent; }
.aw-row.is-you .aw-nm, .aw-row.is-you .aw-rel { color: var(--c-pink-light); }
.aw-note { margin: 0; font-size: var(--fs-12); color: var(--c-muted); }
.cd-switch { margin: 0 auto var(--s-4); flex-wrap: nowrap; }
.cd-switch a { min-height: var(--touch); padding-inline: var(--s-4); justify-content: center; }
/* The player count heat map (partials/players-heat). */
.pc-heat { margin-top: var(--s-3); }
.pc-heat .card-title { margin: 0; }
.pc-heat-grid { display: grid; gap: var(--s-4); margin-top: var(--s-3); }
@media (min-width: 56rem) { .pc-heat-grid { grid-template-columns: minmax(0, 1fr) 15rem; align-items: start; } }
.pc-heat-map { border-radius: var(--r-lg); overflow: hidden; background: radial-gradient(120% 90% at 50% 0%, #1b1430, #0f0a16 70%); border: 1px solid var(--c-border); }
.pc-heat-map svg { display: block; width: 100%; height: auto; }
.pc-heat-land { fill: #2a2236; stroke: #2a2236; stroke-width: .8; stroke-linejoin: round; } /* one silhouette: the edge hides seams between neighbouring shapes */
.pc-heat-map circle { mix-blend-mode: screen; }
.pc-heat-list-h { margin: 0 0 var(--s-2); font: 600 var(--fs-13)/1.2 var(--f-body); letter-spacing: var(--ls-md, 1px); text-transform: uppercase; color: var(--c-muted); }
.pc-heat-list { list-style: none; margin: 0; padding: 0; display: grid; }
/* Place · players · why (an info button, 44px, opening the reason under the row). */
.pc-heat-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; column-gap: var(--s-2); min-height: var(--touch); border-top: 1px solid var(--c-border); font-size: var(--fs-14); }
.pc-heat-list li > span { overflow-wrap: anywhere; }
.pc-heat-list b { color: var(--c-text); }
.pc-why-btn { display: inline-grid; place-items: center; width: var(--touch); height: var(--touch); padding: 0; border: 0; border-radius: var(--r-pill); background: none; color: var(--c-muted); cursor: pointer; }
.pc-why-btn:hover, .pc-why-btn[aria-expanded="true"] { color: var(--c-pink-text); }
/* The reason, opened: a soft panel, one block per kind of player (who's there in bold, when they play under it). */
.pc-heat-why { grid-column: 1 / -1; display: grid; gap: var(--s-2); margin: 0 0 var(--s-3); padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: var(--c-surface-2); border-left: 2px solid var(--c-pink-text); font-size: var(--fs-14); line-height: 1.45; }
.pc-heat-why[hidden] { display: none; }
.pc-heat-why > span { display: grid; gap: 2px; }
.pc-heat-why > span + span { padding-top: var(--s-2); border-top: 1px solid var(--c-border); }
.pc-heat-why b { font-weight: 600; color: var(--c-text); }
.pc-heat-why b + span { color: var(--c-secondary); }
/* GTA 6 How Long to Beat and Map Size (public/how-long-to-beat, public/map-size): time tiles, the bars on one scale. */
.gt-top { padding-top: var(--s-7); }
.gt-top .eyebrow { display: flex; align-items: center; gap: var(--s-2); margin: 0; }
.gt-top .page-title { margin-top: var(--s-2); }
.gt-title-long { font-size: clamp(var(--fs-32), 5vw, var(--fs-56)); }
.gt-chip { display: inline-flex; align-items: center; gap: var(--s-2); margin: var(--s-3) 0 0; padding: var(--s-1) var(--s-3); border-radius: var(--r-pill); border: 1px solid var(--c-border-strong); background: var(--c-surface-2); font-size: var(--fs-13); font-weight: 600; color: var(--c-text); }
.gt-tiles { list-style: none; margin: var(--s-5) 0 0; padding: 0; display: grid; gap: var(--s-2); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 48rem) { .gt-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-3); } .gt-modes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gt-tile { display: flex; flex-direction: column; gap: var(--s-1); padding: var(--s-4); border-radius: var(--r-lg); background: var(--c-surface-1); border: 1px solid var(--c-border-strong); border-top: 3px solid var(--c-pink-fill); min-width: 0; }
.gt-tile.is-locked { border-top-color: var(--c-surface-3); }
.gt-tile-label { display: flex; align-items: center; gap: var(--s-2); font: 600 var(--fs-13)/1.2 var(--f-body); letter-spacing: var(--ls-md); text-transform: uppercase; color: var(--c-secondary); }
.gt-tile-value { font: 600 var(--fs-32)/1.1 var(--f-title); color: var(--c-text); }
.gt-tile-value small { font: 500 var(--fs-16) var(--f-body); color: var(--c-secondary); }
.gt-tile-value.is-locked { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-20); color: var(--c-secondary); }
.gt-tile-speed { font-size: var(--fs-14); font-weight: 600; color: var(--c-text); }
.gt-tile-basis { font-size: var(--fs-13); color: var(--c-secondary); }
.gt-tile-sub { margin-top: auto; padding-top: var(--s-1); font-size: var(--fs-13); color: var(--c-muted); }
.gt-tile .link-pink { display: inline-flex; align-items: center; min-height: var(--touch); }
.gt-dev { margin-top: var(--s-4); max-width: 52rem; border-left: 3px solid var(--c-source-rumor); }
.gt-dev-h { margin: 0 0 var(--s-2); font-size: var(--fs-16); color: var(--c-secondary); }
.gt-dev-h strong { color: var(--c-text); font-size: var(--fs-18); }
.gt-dev p { margin-bottom: 0; }
.gt-dev-not { color: var(--c-text); font-weight: 600; }
.gt-key { list-style: none; margin: var(--s-3) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); font-size: var(--fs-13); color: var(--c-secondary); }
.gt-key li { display: inline-flex; align-items: center; gap: var(--s-2); }
.gt-swatch { width: .875rem; height: .875rem; border-radius: var(--r-xs); background: var(--bar); }
.gt-games { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: grid; gap: var(--s-3); max-width: 60rem; }
.gt-game { padding: var(--s-4); border-radius: var(--r-lg); background: var(--c-surface-1); border: 1px solid var(--c-border); }
.gt-game.is-gta6 { border-color: var(--c-border-strong); }
.gt-game-h { margin: 0 0 var(--s-2); font: 600 var(--fs-18)/1.25 var(--f-body); }
.gt-bars { margin: 0; display: grid; gap: var(--s-2); }
.gt-bar-row { display: grid; grid-template-columns: 6.75rem minmax(0, 1fr); align-items: center; gap: var(--s-3); }
.gt-bar-row dt { font-size: var(--fs-13); color: var(--c-secondary); }
.gt-bar-row dd { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) 3.75rem; align-items: center; gap: var(--s-2); }
.gt-track { position: relative; height: 1rem; border-radius: var(--r-pill); background: var(--c-surface-3); overflow: hidden; }
.gt-track.is-locked { height: 1.5rem; display: flex; align-items: center; padding-inline: var(--s-2); background: repeating-linear-gradient(135deg, var(--c-surface-2) 0 6px, var(--c-surface-3) 6px 12px); }
.gt-locked-text { display: inline-flex; align-items: center; gap: var(--s-1); font-size: var(--fs-12); font-weight: 600; color: var(--c-text); }
.gt-locked-text .icon { width: .8rem; height: .8rem; }
.gt-bar { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--bar); }
.gt-bar.is-dev { background: repeating-linear-gradient(135deg, var(--c-source-rumor) 0 6px, color-mix(in srgb, var(--c-source-rumor) 55%, transparent) 6px 12px); }
.gt-v { font-size: var(--fs-14); color: var(--c-text); text-align: right; white-space: nowrap; }
.gt-note { margin-top: var(--s-3); }
.gt-next { display: grid; gap: var(--s-3); max-width: 60rem; }
@media (min-width: 48rem) { .gt-next { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
a.card.gt-go { display: flex; align-items: center; gap: var(--s-4); min-height: var(--touch); color: var(--c-text); text-decoration: none; }
.gt-go > span:nth-child(2) { display: grid; gap: var(--s-1); flex: 1; }
.gt-go-icon { display: grid; place-items: center; flex: none; width: 3rem; height: 3rem; border-radius: var(--r-md); background: rgba(246,207,31,.16); color: var(--c-pink-text); }
.gt-go-chev { flex: none; color: var(--c-muted); }
.gt-faster { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: grid; gap: var(--s-2); }
.gt-faster li { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: var(--c-surface-1); border: 1px solid var(--c-border); color: var(--c-text); }
.gt-faster strong { font-size: var(--fs-22); color: var(--c-pink-text); min-width: 3.5rem; }
.gt-speeds { margin: var(--s-4) 0 0; display: grid; gap: var(--s-2); }
.gt-speeds > div { padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: var(--c-surface-1); border: 1px solid var(--c-border); }
.gt-speeds dt { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-13); font-weight: 600; letter-spacing: var(--ls-md); text-transform: uppercase; color: var(--c-secondary); }
.gt-speeds dd { margin: var(--s-1) 0 0; display: grid; gap: 2px; color: var(--c-text); }
.gt-roads { margin-top: var(--s-4); }
.gt-dist { margin: var(--s-2) 0; font: 600 var(--fs-18)/1.35 var(--f-body); color: var(--c-text); }
@media (max-width: 30rem) { .gt-bar-row { grid-template-columns: 6rem minmax(0, 1fr); gap: var(--s-2); } .gt-bar-row dd { grid-template-columns: minmax(0, 1fr) 3.25rem; } .gt-tile-value { font-size: var(--fs-28); } }
@media (max-width: 21rem) { .gt-bar-row { grid-template-columns: minmax(0, 1fr); gap: var(--s-1); } }

/* A radio station's own page (Radio layout): its tile as the picture, its songs leading under its name with a big Play,
   the other stations as tiles below. The tile's drop-down ends in Play station / Open station. */
.entry-station-art { width: 100%; height: 100%; aspect-ratio: auto; border-radius: inherit; cursor: default; }
.entry-station-art .station-letters { padding: 8% 8% 10%; font-size: clamp(var(--fs-32), 9vw, var(--fs-56)); }
.station-songs { margin-top: var(--s-4); padding: var(--s-4); border-radius: var(--r-lg); background: var(--c-surface-1); border: 1px solid var(--c-border); }
.station-songs .section-title { font-size: var(--fs-20); }
.station-play-big { width: 100%; min-height: 3.25rem; margin-bottom: var(--s-3); font-size: var(--fs-16); }
.station-play-big .icon { width: 1.25rem; height: 1.25rem; fill: currentColor; }
.station-cta { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.station-cta .btn { flex: 1 1 auto; justify-content: center; min-height: var(--touch); }
.station-more .stations { grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr)); }
.station-songs .drop-songs { grid-template-columns: 1fr; }

/* Radio stations page: Stations · All songs · Saved, the most popular songs, and song rows (js/radio-page.js). */
.radio-views { display: flex; gap: 4px; padding: 4px; margin: var(--s-4) 0; border: 1px solid var(--c-border); border-radius: var(--r-md); max-width: 30rem; }
.radio-view-btn { flex: 1; min-height: var(--touch); padding: 0 var(--s-2); border: 0; border-radius: calc(var(--r-md) - 4px); background: none; color: var(--c-secondary); font: 600 var(--fs-14) var(--f-body); cursor: pointer; white-space: nowrap; }
.radio-view-btn[aria-pressed="true"] { background: var(--c-text); color: var(--c-bg); }
.radio-view-n { font-size: var(--fs-12); opacity: .75; }
.radio-popular { margin-bottom: var(--s-4); background: linear-gradient(160deg, #3a1630 0%, var(--c-surface-1) 75%); border-color: #4a2340;
  background: linear-gradient(160deg, light-dark(#FAE7ED, #3a1630) 0%, light-dark(#FFFFFF, #150D1C) 75%); border-color: light-dark(#EFB9CA, #4a2340); }
.radio-list-tools { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin-bottom: var(--s-2); }
.radio-list-tools .btn { min-height: var(--touch); }
.radio-sort { display: inline-flex; align-items: center; gap: var(--s-2); margin-left: auto; }
.radio-sort select { min-height: var(--touch); }
.rp-rows { list-style: none; margin: 0; padding: 0; display: grid; }
.rp-row { display: flex; align-items: center; gap: var(--s-2); border-top: 1px solid var(--c-border); }
.rp-row:first-child { border-top: 0; }
.rp-play { flex: 1; min-width: 0; display: flex; align-items: center; gap: var(--s-3); min-height: 3.5rem; padding: var(--s-2) 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
.rp-play .round-btn { width: 2.25rem; height: 2.25rem; }
.rp-play .round-btn .icon { width: 1rem; height: 1rem; }
.rp-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.rp-text strong { font-weight: 600; color: var(--c-text); overflow-wrap: anywhere; }
.rp-text span { font-size: var(--fs-13); color: var(--c-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-row.is-now .rp-text strong { color: var(--c-pink-text); }
.rp-meta { flex: none; font-size: var(--fs-12); color: var(--c-muted); font-variant-numeric: tabular-nums; }
.rp-row .song-heart { flex: none; }

/* An entry's rating card: its heading, and an empty state when nobody has voted yet (an icon, the line, how to start). */
.rating-label { margin: 0 0 var(--s-2); font: 600 var(--fs-12) var(--f-eyebrow); letter-spacing: var(--ls-lg); text-transform: uppercase; color: var(--c-muted); }
.rating-card.is-empty [data-rating-now] { flex-wrap: nowrap; align-items: center; gap: var(--s-3); }
.rating-empty-icon { flex: none; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: rgba(246,207,31,.14); color: var(--c-pink-text); }
.rating-empty-icon .icon { width: 1.25rem; height: 1.25rem; }
.rating-empty-text { display: grid; gap: 2px; min-width: 0; }
.rating-empty-text strong { font-weight: 600; color: var(--c-text); }
/* Search (public/search): the straight answer as one row linking out (partials/search-answer), then tabs by kind. */
.search-answer { display: flex; gap: var(--s-3); align-items: center; padding: var(--s-3) var(--s-4); border: 1px solid rgba(246,207,31,.45); border-radius: var(--r-lg); background: var(--c-surface-1); color: inherit; text-decoration: none; min-height: var(--touch); }
.search-answer .sa-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.search-answer .sa-label { font-size: var(--fs-12); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-pink-text); }
.search-tabs { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.search-tabs .chip { min-height: var(--touch); }
.search-tabs .chip .n { color: var(--c-secondary); font-weight: 500; }
.ta-row.ta-answer { border-bottom: 1px solid var(--c-border); background: rgba(246,207,31,.08); }
.ta-row.ta-answer .ta-head { display: block; font-size: var(--fs-12); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-pink-text); }
.ta-row.ta-answer .ta-meta { color: var(--c-text); white-space: normal; }
/* Article pictures with a library caption (MediaLibrary::applyCaptions): the caption right under the picture. */
.prose .article-figure { margin: var(--s-5) 0; }
.prose .article-figure img { margin: 0; }
.prose .article-figure figcaption { margin-top: var(--s-2); font-size: var(--fs-14); color: var(--c-secondary); line-height: 1.45; text-align: center; }
.search-sections { display: flex; flex-direction: column; gap: var(--s-5); margin-top: var(--s-5); }
.search-h { margin: 0 0 var(--s-2); font-size: var(--fs-12); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-secondary); }
.search-top { display: flex; gap: var(--s-3); align-items: center; padding: var(--s-3); color: inherit; text-decoration: none; }
.search-top .ta-pic { width: 88px; height: 88px; flex: none; }
.search-top .st-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.search-top strong { font-size: var(--fs-20); color: var(--c-text); }
/* GTA 6 Patch Notes (public/patch), as the concepts WebPatch / MobilePatch. */
.patch .breadcrumb { margin-bottom: var(--s-3); }
.patch-status { gap: var(--s-3); align-items: center; flex-wrap: wrap; }
.patch-pill { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 2rem; padding: 0 var(--s-3); border-radius: var(--r-pill); font-size: var(--fs-12); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--c-border-strong); background: var(--c-surface-1); }
.patch-pill .dot { width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.patch-pill.is-notes { color: var(--c-status-up); border-color: color-mix(in srgb, var(--c-status-up) 50%, transparent); }
.patch-pill.is-early { color: var(--c-status-issues); border-color: color-mix(in srgb, var(--c-status-issues) 50%, transparent); }
.patch-pill.is-waiting { color: var(--c-pink-text); border-color: rgba(246,207,31,.5); }
.patch-pill svg { width: 1rem; height: 1rem; }
.patch-h1 { margin: var(--s-3) 0 var(--s-5); }
.patch-grid { display: grid; gap: var(--s-5); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .patch-grid { grid-template-columns: minmax(0, 1fr) 20rem; } }
.patch-main { display: flex; flex-direction: column; gap: var(--s-4); min-width: 0; }
.patch-platforms { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.patch-plat { padding: var(--s-4); }
.patch-plat p { margin: 0; }
.pp-name { display: flex; align-items: center; gap: var(--s-2); font-weight: 700; color: var(--c-text); }
.pp-dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--c-secondary); }
.pp-dot.is-live { background: var(--c-status-up); } .pp-dot.is-rolling_out { background: var(--c-status-issues); } .pp-dot.is-pulled { background: var(--c-status-down); } .pp-dot.is-launch { background: var(--c-pink-fill); }
.pp-ver { font-size: var(--fs-28); color: var(--c-text); margin: var(--s-2) 0 var(--s-1) !important; }
.patch-short { padding: var(--s-4) var(--s-5); border-left: 3px solid var(--c-pink-fill); }
.patch-short .eyebrow { color: var(--c-pink-text); margin: 0 0 var(--s-2); }
.patch-short ul { margin: 0; padding-left: 1.2em; display: grid; gap: var(--s-2); }
.patch-short li::marker { color: var(--c-pink-text); }
.patch-changed-head { gap: var(--s-3); flex-wrap: wrap; margin-top: var(--s-3); }
.patch-changed-head .section-title { margin: 0; }
.patch-changes { list-style: none; margin: var(--s-3) 0 0; padding: 0; display: grid; gap: var(--s-3); }
.patch-change { display: flex; gap: var(--s-3); padding: var(--s-4); }
.patch-change p { margin: 0; }
.pc-meta { display: flex; gap: var(--s-2); align-items: center; flex-wrap: wrap; }
.pc-text { color: var(--c-text); margin-top: var(--s-1) !important; }
.pc-icon { flex: none; width: 2.25rem; height: 2.25rem; border-radius: var(--r-md); display: grid; place-items: center; color: #fff; }
.pc-icon svg { width: 1.1rem; height: 1.1rem; }
.pc-icon.is-fix { background: color-mix(in srgb, var(--c-status-up) 75%, #000); } .pc-icon.is-change { background: color-mix(in srgb, var(--c-status-issues) 70%, #000); } .pc-icon.is-performance { background: color-mix(in srgb, var(--c-source-trailer) 70%, #000); } /* token colours, darkened so the white glyph reads (AA) */
.patch-empty { padding: var(--s-4); display: grid; gap: var(--s-3); }
.pe-row { display: flex; gap: var(--s-3); align-items: center; opacity: .45; }
.pe-line { height: .7rem; border-radius: var(--r-pill); background: var(--c-surface-3); flex: 1; max-width: 26rem; }
.patch-side { display: flex; flex-direction: column; gap: var(--s-4); }
.patch-side .card { padding: var(--s-4); }
.ps-title { font-size: var(--fs-18); margin: 0 0 var(--s-2); color: var(--c-text); }
.patch-versions { list-style: none; margin: var(--s-2) 0 0; padding: 0; }
.patch-versions li { border-top: 1px solid var(--c-border); }
.patch-versions li:first-child { border-top: 0; }
.patch-versions li, .patch-versions li > a { display: flex; gap: var(--s-4); align-items: center; padding: var(--s-2) 0; min-height: var(--touch); color: inherit; text-decoration: none; }
.pv-num { min-width: 3rem; font-weight: 700; color: var(--c-text); }
.pv-num.is-next, .patch-versions a[aria-current="true"] .pv-num { color: var(--c-pink-text); }
.patch-labels { margin: 0; display: grid; gap: var(--s-2); }
.patch-labels div { display: flex; gap: var(--s-2); align-items: baseline; flex-wrap: wrap; }
.patch-labels dd { margin: 0; font-size: var(--fs-14); color: var(--c-secondary); }

/* Ask AI (/ask): the box, then each question and its answer, newest first. */
.ask-form { display: grid; gap: var(--s-2); margin-top: var(--s-5); }
.ask-form textarea { width: 100%; min-height: 4.5rem; padding: var(--s-3); border-radius: var(--r-md); border: 1px solid var(--c-border-strong); background: var(--c-surface-1); color: var(--c-text); font: inherit; font-size: var(--fs-16); resize: vertical; }
.ask-form textarea:focus-visible { outline: 2px solid var(--c-pink-text); outline-offset: 2px; }
.ask-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.ask-row .btn { min-height: var(--touch); }
.ask-examples .chip { min-height: var(--touch); cursor: pointer; font: inherit; }
.ask-signin { display: grid; gap: var(--s-3); justify-items: start; margin-top: var(--s-5); }
.ask-thread { list-style: none; padding: 0; margin: var(--s-5) 0 0; display: grid; gap: var(--s-3); }
.ask-item { display: grid; gap: var(--s-2); padding: var(--s-4); }
.ask-q { margin: 0; font-weight: 600; color: var(--c-text); }
.ask-answer { margin: 0; line-height: 1.55; white-space: pre-line; }
.ask-links .eyebrow { margin: var(--s-1) 0; }
.ask-history-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-6); }
.ask-history-head .eyebrow { margin: 0; }
.ask-history-head + .ask-thread { margin-top: var(--s-2); }
.ask-item-head { display: flex; align-items: flex-start; gap: var(--s-2); }
.ask-item-head .ask-q { flex: 1; min-width: 0; padding-top: .6rem; overflow-wrap: anywhere; }
.ask-del { flex: none; margin: calc(var(--s-2) * -1) calc(var(--s-2) * -1) 0 0; border-color: transparent; background: transparent; color: var(--c-muted); }
.ask-del:hover { color: var(--c-text); }
.ask-del-error { margin: 0; color: var(--c-pink-text); }
.ask-retry { justify-self: start; }
.ask-more { margin: var(--s-4) 0 0; }
/* The AI note stays in view at the bottom of the screen, however many questions are above it (owner, 3 Nov). Solid,
   not see-through, so it reads the same with reduced transparency. */
.ask-note { position: sticky; bottom: 0; z-index: 2; margin: var(--s-5) 0 0; padding: var(--s-3) 0 calc(var(--s-3) + env(safe-area-inset-bottom)); background: var(--c-bg); border-top: 1px solid var(--c-border); }

/* Account → Overview: "Show your rank on Discord" under the rank card (owner, 2 Nov). */
.discord-rank { display: flex; gap: var(--s-3); align-items: flex-start; }
.discord-rank-icon { flex: none; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: var(--r-md); background: rgba(140,153,255,.14); color: #8C99FF; color: light-dark(#4752C4, #8C99FF); }
.discord-rank-icon svg { width: 22px; height: 22px; }
.discord-rank .card-title { display: flex; align-items: center; gap: 6px; margin: 0 0 var(--s-1); }
.discord-rank-ok { width: 16px; height: 16px; color: var(--c-status-up); }

/* Pictures in an article's text open full screen (ArticleBody::zoomable). */
.prose a.article-zoom { display: inline-block; max-width: 100%; cursor: zoom-in; text-decoration: none; border-radius: var(--r-md); }
.prose a.article-zoom:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 3px; }

/* ---------- Always dark ---------- */
/* Things that sit on a picture or the map, or show the night, keep their dark look in light mode too: the lightbox,
   captions and chips over pictures, names and pins on the map, the Around the world and player heat maps, controls on
   videos. They take the dark
   values of tokens.css (copied: keep in step with packages/shared/tokens/tokens.json), so everything inside them,
   buttons and text included, reads as it does in dark mode. Add a selector here rather than hard-coding colours. */
.theme-dark, .lightbox, .gallery-cap, .item-thumb .on-map, .item-thumb .tag, .item-thumb .card-badge, .open-hint, .zoom-badge, .bento-more,
.entry-thumb.is-more span, .on-air, .map-taster-hud, .cmp-slot-x, .radio-close, .aw-map, .pc-heat-map,
.maplibregl-marker, .map-footer, .maplibregl-ctrl-attrib, .pin-card-media, .pin-card-hero, .pin-card-close, .pin-card-zoomin, .pin-card-zoom, /* map.css: on the map or a picture */
.tz-mission-num /* teasers.css */ {
  color-scheme: dark;
  --c-bg: #171717; --c-surface-1: #150D1C; --c-surface-2: #1C1225; --c-surface-3: #251A30;
  --c-border: rgba(255,255,255,0.08); --c-border-strong: rgba(255,255,255,0.16);
  --c-text: #F4F1F7; --c-body: #E9E3F0; --c-secondary: #C9C2D4; --c-muted: #9A90A8;
  --c-pink-text: #000000; --c-pink-light: #ffdf5c; --c-pink-lighter: #ffdf5c; --c-focus: #ffdf5c;
  --c-source-confirmed: #000000; --c-source-trailer: #6FB3E8; --c-source-rumor: #E8A64A; --c-source-speculation: #8E84A0; --c-source-unknown: #5A4E66;
  --c-rating-high: #5BAF7E; --c-rating-good: #8FC46A; --c-rating-mixed: #E0A33A; --c-rating-low: #E5484D;
  --c-status-up: #5BAF7E; --c-status-issues: #E0A33A; --c-status-down: #E5484D;
}

/* ==========================================================================
   Account area (owner, 4 Nov: docs/concepts/AccountArea.concept.html). Tokens only, so light mode follows.
   ========================================================================== */
.acct { --tier: var(--c-pink-text); padding: var(--s-6) 0 7rem; position: relative; }
.acct-flash { margin: 0 0 var(--s-4); padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: var(--c-surface-2); border: 1px solid var(--c-border-strong); color: var(--c-text); font-weight: 600; }
.acct-errors { margin-bottom: var(--s-4); }
/* Avatars: the face in a ring of the tier's colour */
.acct-av { --size: 2.5rem; width: var(--size); height: var(--size); flex: none; border-radius: 50%; display: inline-grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 30% 25%, var(--c-surface-3), var(--c-surface-2) 70%); color: var(--c-text); font: 700 calc(var(--size) * .44)/1 var(--f-title);
  box-shadow: 0 0 0 2px var(--c-bg), 0 0 0 calc(2px + max(2px, var(--size) * .04)) var(--tier, var(--c-border-strong)); }
.acct-av .avatar-icon { width: 56%; height: 56%; color: var(--c-pink-light); stroke-width: 1.6; }
.acct-av-hero { --size: 5.75rem; }
.acct-av-pp { --size: 4.75rem; box-shadow: 0 0 0 3px var(--c-surface-1), 0 0 0 6px var(--tier, var(--c-border-strong)); }
/* Hero */
.acct-hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; gap: var(--s-6); padding: var(--s-6) var(--s-7);
  border-radius: var(--r-2xl); border: 1px solid var(--c-border); background: var(--c-surface-1); }
.acct-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(640px 240px at 100% 0%, color-mix(in srgb, var(--c-pink-fill) 10%, transparent), transparent 70%),
              radial-gradient(560px 280px at 0% 130%, color-mix(in srgb, var(--tier) 11%, transparent), transparent 70%); } /* soft: the owner found 24%/28% harsh (4 Nov) */
.acct-hero-id { flex: 1; min-width: 0; }
.acct-hero-name { margin: 0; font: 700 var(--fs-46)/1 var(--f-title); text-transform: uppercase; letter-spacing: .5px; color: var(--c-text); overflow-wrap: anywhere; }
.acct-hero-handle { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); margin: var(--s-2) 0 0; color: var(--c-secondary); }
.acct-hero-since { color: var(--c-muted); }
.acct-hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin-top: var(--s-4); }
.acct-chip-tip { display: inline-flex; align-items: center; gap: var(--s-1); white-space: nowrap; } /* the info button stays beside its chip */
.acct-tip-btn { position: relative; display: inline-grid; place-items: center; width: 2rem; height: 2rem; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--c-muted); cursor: pointer; }
.acct-tip-btn::before { content: ""; position: absolute; inset: -.375rem; } /* a 44px target around the small icon */
.acct-tip-btn:hover, .acct-tip-btn[aria-expanded="true"] { color: var(--c-text); background: color-mix(in srgb, var(--c-text) 6%, transparent); }
.acct-tip-btn .icon { width: 1.125rem; height: 1.125rem; }
.acct-tip { max-width: 34rem; margin: var(--s-3) 0 0; padding: var(--s-3) var(--s-4); border-radius: var(--r-md); border: 1px solid var(--c-border); background: var(--c-surface-2); color: var(--c-secondary); font-size: var(--fs-14); }
.acct-hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); align-self: flex-start; }
.acct-tier-chip, .acct-meta-chip { display: inline-flex; align-items: center; gap: .4rem; min-height: 2rem; padding: 0 .75rem; border-radius: var(--r-pill); font-weight: 700; font-size: var(--fs-14); white-space: nowrap; }
.acct-tier-chip { padding-left: .6rem; color: var(--c-text); background: color-mix(in srgb, var(--tier) 14%, transparent); border: 1px solid color-mix(in srgb, var(--tier) 42%, transparent); }
.acct-tier-chip .rank-glyph { width: 1.1rem; height: 1.1rem; color: var(--tier); }
.acct-meta-chip { font-weight: 600; color: var(--c-secondary); border: 1px solid var(--c-border-strong); }
.acct-meta-chip b { color: var(--c-text); font-variant-numeric: tabular-nums; }
.acct-meta-chip .icon { width: 1rem; height: 1rem; }
/* Layout: the menu, then the page */
.acct-layout { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: var(--s-7); align-items: start; margin-top: var(--s-6); }
.acct-main { min-width: 0; }
.acct-side { position: sticky; top: calc(var(--acct-top, 4.5rem) + var(--s-5)); }
.acct-side ul { list-style: none; margin: 0; padding: 0; }
.acct-side-group + .acct-side-group { margin-top: var(--s-5); }
.acct-side-label { margin: 0; padding: 0 var(--s-3) var(--s-2); font: 600 var(--fs-14)/1.2 var(--f-eyebrow); letter-spacing: 1.2px; text-transform: uppercase; color: var(--c-muted); }
.acct-side-link { position: relative; width: 100%; display: flex; align-items: center; gap: var(--s-3); min-height: var(--touch); padding: 0 var(--s-3); border-radius: var(--r-md);
  color: var(--c-secondary); text-decoration: none; font: 600 var(--fs-16) var(--f-body); background: none; border: 0; text-align: left; cursor: pointer; }
.acct-side-link .icon { width: 1.2rem; height: 1.2rem; flex: none; }
.acct-side-link:hover { background: color-mix(in srgb, var(--c-text) 5%, transparent); color: var(--c-text); }
.acct-side-link[aria-current="page"] { background: var(--c-surface-2); color: var(--c-text); }
.acct-side-link[aria-current="page"]::before { content: ""; position: absolute; left: 0; top: 11px; bottom: 11px; width: 3px; border-radius: 3px; background: var(--c-pink-fill); }
.acct-side-link[aria-current="page"] .icon { color: var(--c-pink-light); }
.acct-side-count { margin-left: auto; min-width: 1.6rem; text-align: center; font-size: var(--fs-13); font-weight: 600; color: var(--c-muted); background: color-mix(in srgb, var(--c-text) 7%, transparent); border-radius: var(--r-pill); padding: 1px .5rem; font-variant-numeric: tabular-nums; }
.acct-side-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-status-issues); margin-left: auto; flex: none; }
.acct-side-dot + .acct-side-count { margin-left: var(--s-2); }
.acct-side-end { border-top: 1px solid var(--c-border); padding-top: var(--s-4); }
.acct-side-end form { margin: 0; }
.acct-side-muted { color: var(--c-muted); }
.acct-side-toggle { display: none; }
/* Page heading */
.acct-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; margin-bottom: var(--s-5); }
.acct-title { margin: 0; font: 700 var(--fs-32)/1.15 var(--f-body); color: var(--c-text); }
.acct-title:focus { outline: none; }
.acct-sub { margin: var(--s-2) 0 0; color: var(--c-muted); max-width: 62ch; }
.acct-autosave { display: inline-flex; align-items: center; gap: .4rem; color: var(--c-muted); font-size: var(--fs-14); }
.acct-autosave .icon { width: 1rem; height: 1rem; color: var(--c-status-up); }
.acct-stack > * + * { margin-top: var(--s-4); }
.acct .card { padding: var(--s-5) var(--s-6); }
.acct-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-4); margin-bottom: var(--s-3); }
.acct-card-title { margin: 0; font: 700 var(--fs-20)/1.25 var(--f-body); color: var(--c-text); }
.acct-card-desc { margin: var(--s-1) 0 0; color: var(--c-muted); font-size: var(--fs-15); max-width: 62ch; }
.acct-card-desc b { color: var(--c-secondary); }
.acct-card-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--c-border); }
.acct-card-foot form { margin: 0; }
.acct-btn-text { border-color: transparent; background: transparent; color: var(--c-muted); }
.acct-btn-text:hover { color: var(--c-text); }
.acct-btn-danger { background: transparent; border-color: color-mix(in srgb, var(--c-status-down) 55%, transparent); color: var(--c-rating-low); margin-top: var(--s-4); }
.acct-btn-danger:hover { background: color-mix(in srgb, var(--c-status-down) 10%, transparent); color: var(--c-rating-low); }
.acct-rep-val { display: inline-flex; align-items: center; font: 700 var(--fs-13) var(--f-mono); color: var(--c-text); border: 1px solid var(--c-border-strong); border-radius: var(--r-pill); padding: 2px .6rem; white-space: nowrap; }
.acct-check-label .acct-rep-val, .acct-conn-name .acct-rep-val, .acct-promo-top .acct-rep-val { font-size: var(--fs-12); font-weight: 500; padding: 1px .5rem; }
.acct-hint-box { display: flex; align-items: flex-start; gap: var(--s-2); margin: var(--s-4) 0 0; padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: color-mix(in srgb, var(--c-text) 3%, transparent); border: 1px solid var(--c-border); color: var(--c-secondary); font-size: var(--fs-14); }
.acct-hint-box .icon, .acct-footnote .icon { width: 1rem; height: 1rem; flex: none; margin-top: 3px; }
.acct-hint-box .icon { color: var(--c-pink-light); }
.acct-footnote { display: flex; align-items: flex-start; gap: var(--s-2); margin: var(--s-5) 0 0; color: var(--c-muted); font-size: var(--fs-14); }
.acct-hint-line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin: var(--s-4) 0 0; color: var(--c-muted); font-size: var(--fs-14); }
.acct-hint-line .icon, .acct-lock-hint .icon { width: 1rem; height: 1rem; flex: none; }
.acct-lock-hint { display: flex; align-items: center; gap: var(--s-2); margin: 0 0 var(--s-4); color: var(--c-muted); font-size: var(--fs-14); }
/* Rank card */
.acct-rank { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s-4) var(--s-5); }
.acct-rank::after { content: ""; position: absolute; right: -80px; bottom: -140px; width: 420px; height: 260px; background: radial-gradient(closest-side, color-mix(in srgb, var(--tier) 8%, transparent), transparent); pointer-events: none; }
.acct-rank > * { position: relative; z-index: 1; }
.acct-tier-badge { width: 3.75rem; height: 3.75rem; border-radius: 18px; display: grid; place-items: center; color: var(--tier); background: color-mix(in srgb, var(--tier) 14%, transparent); border: 1px solid color-mix(in srgb, var(--tier) 42%, transparent); }
.acct-tier-badge .rank-glyph { width: 1.9rem; height: 1.9rem; }
.acct-rank-label { margin: 0; font-size: var(--fs-14); font-weight: 600; color: var(--c-muted); }
.acct-rank-title { margin: 0; font: 700 var(--fs-24)/1.2 var(--f-body); color: var(--c-text); }
.acct-rep-big { margin: 0; display: flex; align-items: baseline; gap: .4rem; justify-self: end; }
.acct-rep-num { font: 700 var(--fs-46)/1 var(--f-title); color: var(--c-text); font-variant-numeric: tabular-nums; }
.acct-rep-unit { font: 500 var(--fs-20) var(--f-title); color: var(--c-secondary); }
.acct-rank-bar { grid-column: 1 / -1; }
.acct-bar-labels { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-1) var(--s-3); margin-bottom: var(--s-2); font-size: var(--fs-14); color: var(--c-muted); }
.acct-bar-labels b { color: var(--c-text); }
.acct-progress { height: 10px; border-radius: var(--r-pill); background: var(--c-surface-3); overflow: hidden; }
.acct-progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--c-pink-fill), var(--c-pink-light)); }
.acct-next { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); padding: var(--s-2) var(--s-4); border-radius: var(--r-md); background: color-mix(in srgb, var(--c-text) 3%, transparent); border: 1px solid var(--c-border); }
.acct-next > .icon { width: 1.25rem; height: 1.25rem; color: var(--c-pink-light); flex: none; }
.acct-next p { flex: 1; min-width: 13rem; margin: var(--s-2) 0; color: var(--c-secondary); }
.acct-next b { color: var(--c-text); }
.acct-next-links { display: flex; gap: var(--s-4); }
.acct-next-links a { min-height: var(--touch); display: inline-flex; align-items: center; }
/* Overview */
.acct-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-3); }
.acct-stat { display: block; padding: var(--s-4); border-radius: var(--r-lg); border: 1px solid var(--c-border); background: var(--c-surface-1); text-decoration: none; transition: border-color .15s, background .15s; }
.acct-stat:hover { border-color: var(--c-border-strong); background: var(--c-surface-2); }
.acct-stat-num { display: block; font: 600 var(--fs-32)/1.1 var(--f-title); color: var(--c-text); font-variant-numeric: tabular-nums; }
.acct-stat-label { display: flex; align-items: center; justify-content: space-between; gap: var(--s-1); margin-top: var(--s-1); color: var(--c-muted); font-size: var(--fs-14); }
.acct-stat-label .icon { width: 1rem; height: 1rem; opacity: .6; flex: none; }
.acct-ov-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--s-4); align-items: start; }
.acct-mini-progress { width: 7.5rem; height: 6px; border-radius: var(--r-pill); background: var(--c-surface-3); overflow: hidden; margin-top: var(--s-3); }
.acct-mini-progress > span { display: block; height: 100%; border-radius: inherit; background: var(--c-status-up); }
.acct-checklist { list-style: none; margin: var(--s-4) 0 0; padding: 0; }
.acct-checklist li { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) 0; border-top: 1px solid var(--c-border); }
.acct-check-dot { width: 26px; height: 26px; flex: none; border-radius: 50%; border: 2px solid var(--c-border-strong); display: grid; place-items: center; }
.acct-check-dot .icon { width: 15px; height: 15px; stroke-width: 3; }
.acct-checklist .is-done .acct-check-dot { background: var(--c-status-up); border-color: var(--c-status-up); color: var(--c-bg); }
.acct-check-text { flex: 1; min-width: 0; display: grid; }
.acct-check-label { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); color: var(--c-text); font-weight: 600; }
.acct-check-sub { color: var(--c-muted); font-size: var(--fs-14); }
.acct-checklist .is-done .acct-check-label { color: var(--c-muted); text-decoration: line-through; text-decoration-color: var(--c-border-strong); }
.acct-mini-list { list-style: none; margin: 0; padding: 0; }
.acct-mini-list li { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) 0; border-top: 1px solid var(--c-border); }
.acct-mini-list li:first-child { border-top: 0; padding-top: 2px; }
.acct-mini-text { flex: 1; min-width: 0; display: grid; }
.acct-mini-title { color: var(--c-text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
a.acct-mini-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.acct-mini-title.acct-wrap { white-space: normal; }
.acct-mini-meta { color: var(--c-muted); font-size: var(--fs-14); }
.acct-promo { background: linear-gradient(160deg, color-mix(in srgb, var(--c-discord) 16%, transparent), transparent 60%), var(--c-surface-1); border-color: color-mix(in srgb, var(--c-discord) 30%, transparent); }
.acct-promo-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-3); }
.acct-promo .btn { margin-top: var(--s-4); }
.acct-row-card { display: flex; align-items: center; gap: var(--s-3); }
.acct .acct-row-card { padding: var(--s-4); }
/* Status pills */
.acct-pill { display: inline-flex; align-items: center; gap: .3rem; min-height: 1.5rem; padding: 0 .6rem; border-radius: var(--r-pill); font: 700 var(--fs-14)/1 var(--f-eyebrow); letter-spacing: .6px; text-transform: uppercase; white-space: nowrap; flex: none; }
.acct-pill .icon { width: .85rem; height: .85rem; stroke-width: 2.6; }
.acct-pill.is-accepted { color: var(--c-status-up); background: color-mix(in srgb, var(--c-status-up) 15%, transparent); }
.acct-pill.is-waiting { color: var(--c-status-issues); background: color-mix(in srgb, var(--c-status-issues) 15%, transparent); }
.acct-pill.is-not_accepted { color: var(--c-rating-low); background: color-mix(in srgb, var(--c-status-down) 15%, transparent); }
.acct-pill-here { display: inline-flex; align-items: center; min-height: 1.35rem; padding: 0 .5rem; border-radius: var(--r-pill); font-size: var(--fs-12); font-weight: 600; color: var(--c-pink-lighter); background: color-mix(in srgb, var(--c-pink-text) 15%, transparent); }
/* Lists: Saved, Found, Notes */
.acct-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin-bottom: var(--s-4); }
.acct-toolbar:not(:has(input:not([hidden]))):not(:has([data-filter-chips]:not([hidden]))) { display: none; }
.acct-search { position: relative; flex: 1 1 13rem; max-width: 20rem; }
.acct-search .icon { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); width: 1.1rem; height: 1.1rem; color: var(--c-muted); pointer-events: none; }
.acct-search .input { padding-left: 2.6rem; }
.acct-search:has(input[hidden]) { display: none; }
.acct-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.acct-chips .chip { min-height: 2.4rem; }
.acct-chip-n { color: var(--c-muted); font-variant-numeric: tabular-nums; }
.acct-chips .chip[aria-pressed="true"] .acct-chip-n { color: var(--c-pink-lighter); }
.acct-items { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.acct-item { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-3) var(--s-3) var(--s-4); border-radius: var(--r-md); border: 1px solid var(--c-border); background: var(--c-surface-1); }
.acct-item:hover { border-color: var(--c-border-strong); }
.acct-item-icon { width: 2.6rem; height: 2.6rem; flex: none; border-radius: 12px; display: grid; place-items: center; color: var(--cat, var(--c-pink-text)); background: color-mix(in srgb, var(--cat, var(--c-pink-text)) 16%, transparent); }
.acct-item-icon .icon { width: 1.3rem; height: 1.3rem; }
.acct-item-icon.is-sm { width: 2.25rem; height: 2.25rem; border-radius: 10px; }
.acct-item-icon.is-sm .icon { width: 1.1rem; height: 1.1rem; }
.acct-item-body { flex: 1; min-width: 0; display: grid; gap: 1px; }
.acct-item-title { justify-self: start; max-width: 100%; color: var(--c-text); font-weight: 700; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.acct-item-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.acct-item-meta { color: var(--c-muted); font-size: var(--fs-14); overflow-wrap: anywhere; }
.acct-item-actions { display: flex; gap: var(--s-1); margin-left: auto; }
.acct-icon-btn { background: transparent; color: var(--c-secondary); }
.acct-icon-btn .icon { width: 1.1rem; height: 1.1rem; }
.acct-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.acct .acct-note { padding: var(--s-4); }
.acct-note-head { display: flex; align-items: center; gap: var(--s-3); }
.acct-note-text { margin: var(--s-3) 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.acct-note-edit { margin-top: var(--s-3); }
.acct-row-end { display: flex; justify-content: flex-end; gap: var(--s-2); margin-top: var(--s-2); }
/* Empty states */
.acct-empty { display: grid; justify-items: center; gap: var(--s-3); padding: var(--s-8) var(--s-6); text-align: center; border-radius: var(--r-lg); border: 1px dashed var(--c-border-strong); background: color-mix(in srgb, var(--c-text) 1.5%, transparent); margin: 0; }
.acct-empty-icon { width: 3.5rem; height: 3.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--c-surface-2); color: var(--c-pink-light); }
.acct-empty-icon .icon { width: 1.6rem; height: 1.6rem; }
.acct-empty-title { margin: 0; font: 700 var(--fs-20)/1.25 var(--f-body); color: var(--c-text); }
.acct-empty-text { margin: 0; color: var(--c-muted); max-width: 46ch; }
.acct-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); margin-top: var(--s-1); }
.acct-empty-mini { justify-items: start; text-align: left; padding: var(--s-4) var(--s-5); }
.acct-empty-mini .acct-empty-text { color: var(--c-secondary); }
p.acct-empty-mini { color: var(--c-secondary); margin-top: var(--s-2); }
/* Contributions */
.acct-sum-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); margin-bottom: var(--s-5); }
.acct-sum { display: grid; align-content: space-between; gap: 2px; padding: var(--s-4); border-radius: var(--r-lg); border: 1px solid var(--c-border); background: var(--c-surface-1); }
.acct-sum-top { display: flex; align-items: center; gap: var(--s-2); color: var(--c-secondary); font-weight: 600; font-size: var(--fs-14); }
.acct-sum-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dot); flex: none; }
.acct-sum-num { font: 600 var(--fs-32)/1.1 var(--f-title); color: var(--c-text); }
.acct-sum-sub { color: var(--c-muted); font-size: var(--fs-13); }
.acct-contrib-list { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: grid; gap: var(--s-3); }
.acct .acct-contrib { padding: var(--s-4) var(--s-5); }
.acct-contrib-top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); margin-bottom: var(--s-3); }
.acct-contrib-type { color: var(--c-secondary); font-weight: 600; font-size: var(--fs-14); }
.acct-contrib-when { margin-left: auto; color: var(--c-muted); font-size: var(--fs-14); }
.acct-contrib-main { display: flex; align-items: center; gap: var(--s-3); }
.acct-contrib-main .acct-item-title { white-space: normal; }
.acct-reason { margin-top: var(--s-4); padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: color-mix(in srgb, var(--c-status-down) 7%, transparent); border: 1px solid color-mix(in srgb, var(--c-status-down) 25%, transparent); }
.acct-reason p { margin: 0; }
.acct-reason b { color: var(--c-text); }
.acct-reason .acct-reason-tip { margin-top: var(--s-1); color: var(--c-secondary); font-size: var(--fs-15); }
.acct-reason .btn { margin-top: var(--s-3); }
.acct-contrib-note { display: flex; align-items: center; gap: var(--s-2); margin: var(--s-3) 0 0; color: var(--c-muted); font-size: var(--fs-14); }
.acct-contrib-note .icon { width: 1rem; height: 1rem; color: var(--c-status-issues); flex: none; }
/* Rank & Rep */
.acct-tiers { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-3); }
.acct-tier { position: relative; display: grid; align-content: start; gap: var(--s-3); padding: var(--s-3) var(--s-4) var(--s-4); border-radius: var(--r-md); border: 1px solid var(--c-border); background: color-mix(in srgb, var(--c-text) 1.5%, transparent); }
.acct-tier-icon { width: 2.5rem; height: 2.5rem; border-radius: 12px; display: grid; place-items: center; color: var(--tier); background: color-mix(in srgb, var(--tier) 12%, transparent); }
.acct-tier-icon .rank-glyph { width: 1.4rem; height: 1.4rem; }
.acct-tier-text { display: grid; }
.acct-tier-name { font-weight: 700; color: var(--c-text); }
.acct-tier-sub { color: var(--c-muted); font-size: var(--fs-13); }
.acct-tier.is-current { border-color: color-mix(in srgb, var(--tier) 70%, transparent); background: color-mix(in srgb, var(--tier) 8%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tier) 40%, transparent); }
.acct-tier.is-future { opacity: .72; }
.acct-tier-here { justify-self: start; padding: 2px .5rem; border-radius: var(--r-pill); background: var(--tier); color: var(--c-bg); font-size: var(--fs-12); font-weight: 700; }
.acct-tier-done { position: absolute; top: var(--s-3); right: var(--s-3); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: var(--tier); background: color-mix(in srgb, var(--tier) 20%, transparent); }
.acct-tier-done .icon { width: 13px; height: 13px; stroke-width: 3; }
.acct-rep-list { list-style: none; margin: var(--s-3) 0 0; padding: 0; }
.acct-rep-list li { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-3) 0; border-top: 1px solid var(--c-border); }
.acct-rep-list-label { color: var(--c-text); font-weight: 600; }
/* Forms */
.acct .acct-form { padding: var(--s-6) var(--s-7); }
.acct-fs { border: 0; margin: 0; padding: 0; min-width: 0; }
.acct-legend { float: left; width: 100%; padding: 0; margin: 0; font: 700 var(--fs-18)/1.3 var(--f-body); color: var(--c-text); }
.acct-legend + * { clear: left; }
.acct-fs-top { margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--c-border); }
.acct-field { margin-top: var(--s-4); gap: var(--s-2); }
.acct-label { font-weight: 700; color: var(--c-text); font-size: var(--fs-15); }
.acct-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); }
.acct-opt { color: var(--c-muted); font-weight: 500; }
.acct-hint { margin: var(--s-1) 0 0; color: var(--c-muted); font-size: var(--fs-14); }
.acct-counter { color: var(--c-muted); font-size: var(--fs-13); font-variant-numeric: tabular-nums; }
.acct-error { display: flex; align-items: center; gap: .4rem; margin: 0; color: var(--c-rating-low); font-size: var(--fs-14); }
.acct-error .icon { width: 1rem; height: 1rem; }
.acct .input[aria-invalid="true"] { border-color: var(--c-rating-low); }
.acct .textarea { padding-top: var(--s-3); padding-bottom: var(--s-3); line-height: 1.5; min-height: 6rem; resize: vertical; }
.acct-nojs-save { margin-top: var(--s-5); }
.acct-av-groups { display: grid; gap: var(--s-4); margin-top: var(--s-4); }
.acct-av-group-label { display: block; margin-bottom: var(--s-2); color: var(--c-secondary); font-weight: 600; font-size: var(--fs-14); }
.acct-av-picker { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.acct-av-opt { position: relative; display: grid; place-items: center; width: 3.5rem; height: 3.5rem; cursor: pointer; }
.acct-av-opt input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.acct-av-face { position: relative; width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--c-border-strong);
  background: radial-gradient(circle at 30% 25%, var(--c-surface-3), var(--c-surface-2) 70%); color: var(--c-text); font: 700 var(--fs-24)/1 var(--f-title); transition: border-color .15s, box-shadow .15s; }
.acct-av-face .avatar-icon { width: 1.75rem; height: 1.75rem; color: var(--c-pink-light); stroke-width: 1.6; }
.acct-av-opt:hover .acct-av-face { border-color: var(--c-secondary); }
.acct-av-opt input:checked + .acct-av-face { border-color: var(--c-pink-fill); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-pink-fill) 35%, transparent); }
.acct-av-opt input:checked + .acct-av-face::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--c-surface-1);
  background: var(--c-pink-fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/11px no-repeat; }
.acct-av-opt input:focus-visible + .acct-av-face { outline: 2px solid var(--c-focus); outline-offset: 2px; }
.acct-profile-grid { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: var(--s-5); align-items: start; }
.acct-pp-sticky { position: sticky; top: calc(var(--acct-top, 4.5rem) + var(--s-5)); }
.acct-pp-label { display: flex; align-items: center; gap: var(--s-2); margin: 0 0 var(--s-3); color: var(--c-secondary); font-weight: 600; font-size: var(--fs-14); }
.acct-pp-label .icon { width: 1rem; height: 1rem; }
.acct-live { margin-left: auto; display: inline-flex; align-items: center; gap: .4rem; color: var(--c-muted); font-size: var(--fs-12); font-weight: 600; }
.acct-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c-status-up); }
.acct-pp-note { margin: var(--s-3) 0 0; }
.acct-pp { overflow: hidden; border-radius: var(--r-xl); border: 1px solid var(--c-border); background: var(--c-surface-1); }
.acct-pp-cover { height: 4.75rem; background: radial-gradient(300px 120px at 90% 0%, color-mix(in srgb, var(--c-pink-fill) 20%, transparent), transparent 70%), radial-gradient(260px 140px at 0% 100%, color-mix(in srgb, var(--tier) 16%, transparent), transparent 70%), var(--c-surface-2); }
.acct-pp-body { display: grid; justify-items: start; margin-top: -2.4rem; padding: 0 var(--s-5) var(--s-5); }
.acct-pp-name { margin: var(--s-3) 0 0; font: 700 var(--fs-28)/1.05 var(--f-title); text-transform: uppercase; color: var(--c-text); overflow-wrap: anywhere; }
.acct-pp-handle { margin: 0; color: var(--c-muted); font-size: var(--fs-14); }
.acct-pp-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: var(--s-3); }
.acct-pp-bio { margin: var(--s-3) 0 0; font-size: var(--fs-15); white-space: pre-wrap; overflow-wrap: anywhere; }
.acct-pp-bio.is-empty { color: var(--c-muted); font-style: italic; }
.acct-pp-ids { display: grid; gap: .4rem; width: 100%; margin-top: var(--s-3); }
.acct-pp-ids:empty { display: none; }
.acct-pp-id { display: flex; align-items: center; gap: var(--s-2); color: var(--c-secondary); font-size: var(--fs-14); }
.acct-pp-id b { color: var(--c-text); }
.acct-pp-id .icon { width: 1rem; height: 1rem; }
.acct-pp-stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); width: 100%; margin-top: var(--s-4); }
.acct-pp-stats div { display: grid; padding: var(--s-2) var(--s-3); border-radius: var(--r-md); border: 1px solid var(--c-border); background: color-mix(in srgb, var(--c-text) 3%, transparent); }
.acct-pp-stats b { font: 600 var(--fs-24)/1.1 var(--f-title); color: var(--c-text); }
.acct-pp-stats span { color: var(--c-muted); font-size: var(--fs-13); }
/* Settings rows and switches */
.acct-setting { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-5); padding: var(--s-4) 0; border-top: 1px solid var(--c-border); }
.acct-card-title + .acct-setting { margin-top: var(--s-2); border-top: 0; }
.acct-setting-first { border-top: 0; padding-top: 0; }
.acct-setting-text { display: grid; gap: 3px; }
.acct-setting-label { font-weight: 700; color: var(--c-text); cursor: pointer; }
.acct-setting-desc { max-width: 58ch; color: var(--c-muted); font-size: var(--fs-14); }
.acct-switch { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 52px; height: 30px; margin: 2px 0 0; border-radius: var(--r-pill); border: 1px solid var(--c-border-strong); background: var(--c-surface-3); cursor: pointer; transition: background .2s, border-color .2s; }
.acct-switch::before { content: ""; position: absolute; inset: -8px; }
.acct-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.4); transition: transform .2s; }
.acct-switch:checked { background: var(--c-pink-fill); border-color: var(--c-pink-fill); }
.acct-switch:checked::after { transform: translateX(22px); }
.acct-switch:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; }
.acct-switch:disabled { opacity: .6; cursor: progress; }
.acct-check-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); }
.acct-check-chip { display: inline-flex; align-items: center; gap: var(--s-2); min-height: var(--touch); padding: 0 var(--s-4) 0 var(--s-3); border-radius: var(--r-pill); border: 1px solid var(--c-border-strong); color: var(--c-secondary); font-weight: 600; cursor: pointer; transition: border-color .15s, background .15s; }
.acct-check-chip:hover { border-color: var(--c-secondary); }
.acct-check-chip:has(input:checked) { border-color: var(--c-pink-fill); background: color-mix(in srgb, var(--c-pink-fill) 12%, transparent); color: var(--c-text); }
.acct-check-chip:has(input:focus-visible) { outline: 2px solid var(--c-focus); outline-offset: 2px; }
.acct-check-chip input { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin: 0; border-radius: 6px; border: 2px solid var(--c-border-strong); }
.acct-check-chip input:checked { border-color: var(--c-pink-fill); background: var(--c-pink-fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat; }
.acct-check-chip input:focus-visible { outline: none; }
/* Sign-in & security */
.acct-conn-list { list-style: none; margin: var(--s-2) 0 0; padding: 0; }
.acct-conn { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-4) 0; border-top: 1px solid var(--c-border); }
.acct-conn:first-child { border-top: 0; }
.acct-conn-logo { width: 2.6rem; height: 2.6rem; flex: none; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--c-border); background: var(--c-surface-2); color: var(--c-secondary); }
.acct-conn-logo .icon { width: 1.25rem; height: 1.25rem; }
.acct-conn-logo.is-discord { color: var(--c-discord); background: color-mix(in srgb, var(--c-discord) 16%, transparent); border-color: color-mix(in srgb, var(--c-discord) 35%, transparent); }
.acct-conn-text { flex: 1; min-width: 0; display: grid; gap: 1px; }
.acct-conn-name { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); font-weight: 700; color: var(--c-text); }
.acct-conn-meta { color: var(--c-muted); font-size: var(--fs-14); overflow-wrap: anywhere; }
.acct-conn-meta.is-linked { color: var(--c-status-up); }
.acct-conn-hint { color: var(--c-secondary); font-size: var(--fs-13); }
.acct-conn-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--s-2); }
.acct-conn-actions form { margin: 0; }
.acct-conn-form { padding: 0 0 var(--s-4) 3.6rem; }
.acct-change-email[open] > summary, .acct-change-email > summary[hidden] { display: none; }
.acct-change-email summary { list-style: none; width: fit-content; }
.acct-change-email summary::-webkit-details-marker { display: none; }
.acct-conn-form:has(summary[hidden]):has(details:not([open])) { display: none; }
.acct-danger { border-color: color-mix(in srgb, var(--c-status-down) 40%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--c-status-down) 7%, transparent), transparent 70%), var(--c-surface-1); }
/* The save bar */
.acct-savebar { position: fixed; left: 50%; bottom: var(--s-5); z-index: 45; display: flex; align-items: center; gap: var(--s-4); width: max-content; max-width: calc(100% - 2rem);
  padding: var(--s-2) var(--s-2) var(--s-2) var(--s-5); border-radius: var(--r-pill); background: var(--glass-bg-solid); border: 1px solid var(--glass-border); box-shadow: 0 18px 50px rgba(0,0,0,.45);
  transform: translate(-50%, 0); transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.acct-savebar[hidden] { display: flex !important; visibility: hidden; transform: translate(-50%, calc(100% + 40px)); transition: transform .25s cubic-bezier(.2,.8,.2,1), visibility 0s linear .25s; }
.acct-savebar-text { display: flex; align-items: center; gap: var(--s-2); color: var(--c-text); font-weight: 600; }
.acct-savebar-text::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c-status-issues); flex: none; }
.acct-savebar-actions { display: flex; gap: var(--s-2); }
body:has(.acct-savebar:not([hidden])) .toast { bottom: 6.5rem; }

@media (max-width: 1180px) {
  .acct-profile-grid { grid-template-columns: minmax(0, 1fr); }
  .acct-pp-sticky { position: static; }
  .acct-pp-wrap { max-width: 26rem; }
}
@media (max-width: 1024px) {
  .acct-layout { grid-template-columns: 13rem minmax(0, 1fr); gap: var(--s-5); }
  .acct-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .acct-tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .acct-ov-grid { grid-template-columns: minmax(0, 1fr); }
  .acct-hero { flex-wrap: wrap; }
  .acct-hero-actions { width: 100%; padding-left: calc(5.75rem + var(--s-6)); }
}
@media (max-width: 860px) {
  .acct { padding-top: var(--s-4); }
  .acct-layout { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: var(--s-4); }
  .acct-side.is-js { top: var(--acct-top, 4rem); z-index: 30; margin: 0 -1rem var(--s-5); padding: var(--s-2) 1rem; background: color-mix(in srgb, var(--c-bg) 94%, transparent); border-bottom: 1px solid var(--c-border); }
  .acct-side:not(.is-js) { position: static; margin-bottom: var(--s-5); }
  .acct-side.is-js .acct-side-toggle { display: flex; width: 100%; align-items: center; gap: var(--s-3); min-height: 3rem; padding: 0 var(--s-4); border-radius: var(--r-md); border: 1px solid var(--c-border-strong); background: var(--c-surface-1); color: var(--c-text); font: 700 var(--fs-16) var(--f-body); text-align: left; cursor: pointer; }
  .acct-side-toggle .icon { width: 1.2rem; height: 1.2rem; color: var(--c-pink-light); flex: none; }
  .acct-side-hint { margin-left: auto; color: var(--c-muted); font-weight: 600; font-size: var(--fs-14); }
  .acct-side-toggle .acct-chev { color: var(--c-muted); transition: transform .2s; }
  .acct-side-toggle[aria-expanded="true"] .acct-chev { transform: rotate(180deg); }
  .acct-side.is-js .acct-side-nav { display: none; position: absolute; left: .5rem; right: .5rem; top: calc(100% - 2px); max-height: calc(100vh - 8rem); overflow: auto; padding: var(--s-3); border-radius: var(--r-lg); background: var(--glass-bg-solid); border: 1px solid var(--glass-border); box-shadow: 0 24px 60px rgba(0,0,0,.5); }
  .acct-side.is-open .acct-side-nav { display: block; }
  .acct-side-link[aria-current="page"] { background: color-mix(in srgb, var(--c-text) 6%, transparent); }
  .acct-hero { padding: var(--s-5); gap: var(--s-4); }
  .acct-hero-name { font-size: var(--fs-40); }
}
@media (max-width: 640px) {
  .acct-hero { align-items: flex-start; padding: var(--s-5) var(--s-4); }
  .acct-av-hero { --size: 4rem; }
  .acct-hero-name { font-size: var(--fs-32); }
  .acct-hero-actions { padding-left: 0; }
  .acct-hero-actions .btn { flex: 1; }
  .acct-title { font-size: var(--fs-28); }
  .acct-head > .btn { width: 100%; }
  .acct .card { padding: var(--s-4); }
  .acct .acct-form { padding: var(--s-5) var(--s-4); }
  .acct-rank { grid-template-columns: auto 1fr; gap: var(--s-3); }
  .acct-rep-big { grid-column: 1 / -1; justify-self: start; }
  .acct-rep-num { font-size: var(--fs-40); }
  .acct-tier-badge { width: 3.25rem; height: 3.25rem; border-radius: 16px; }
  .acct-stats { gap: var(--s-2); }
  .acct-stat { padding: var(--s-3) var(--s-4); }
  .acct-stat-num { font-size: var(--fs-28); }
  .acct-sum-tiles { gap: var(--s-2); }
  .acct-sum { padding: var(--s-3); }
  .acct-sum-top { font-size: var(--fs-13); }
  .acct-sum-num { font-size: var(--fs-28); }
  .acct-sum-sub { display: none; }
  .acct-tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .acct-item { padding: var(--s-2) var(--s-2) var(--s-2) var(--s-3); }
  .acct-conn { flex-wrap: wrap; }
  .acct-conn-actions { width: 100%; justify-content: flex-start; padding-left: 3.6rem; }
  .acct-conn-actions:empty, .acct-conn-actions:not(:has(:not([hidden]))) { display: none; }
  .acct-conn-form { padding-left: 0; }
  .acct-setting { gap: var(--s-3); }
  .acct-savebar { left: 1rem; right: 1rem; bottom: 1rem; width: auto; max-width: none; padding: var(--s-2) var(--s-2) var(--s-2) var(--s-4); border-radius: var(--r-lg); transform: none; }
  .acct-savebar[hidden] { transform: translateY(calc(100% + 40px)); }
  .acct-savebar-text { flex: 1; font-size: var(--fs-15); }
  .acct-card-foot form { flex: 1; }
  .acct-card-foot form .btn { width: 100%; }
  .acct-dd { position: fixed; left: .5rem; right: .5rem; width: auto; max-height: calc(100vh - 6rem); overflow: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .acct-savebar, .acct-savebar[hidden], .acct-switch, .acct-switch::after, .acct-side-toggle .acct-chev { transition: none; }
}
.acct-short { display: none; }
@media (max-width: 640px) {
  .acct-long { display: none; }
  .acct-short { display: inline; }
  .acct-hero-actions { flex-wrap: nowrap; }
  .acct-hero-actions .btn { padding: 0 var(--s-3); }
  .acct-hero.is-compact { align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); }
  .acct-hero.is-compact .acct-av-hero { --size: 3rem; }
  .acct-hero.is-compact .acct-hero-name { font-size: var(--fs-24); }
  .acct-hero.is-compact .acct-hero-handle { margin-top: 0; font-size: var(--fs-14); }
  .acct-hero.is-compact .acct-hero-meta, .acct-hero.is-compact .acct-hero-actions, .acct-hero.is-compact .acct-hero-since { display: none; }
}
/* A toast as wide as its words (up to the screen), not squeezed into a column. */
.toast { width: max-content; max-width: calc(100vw - 2rem); }
.acct-legend + .acct-field { padding-top: var(--s-2); }

/* ---------- Entry page (public/entity.blade.php; redesign of 4 Nov) ----------
   One template for every category. Hero: the picture (portrait 4:5 for people, 16:9 for things) and the strip under it,
   beside the name, the tagline and summary, the counts, one row of actions, the facts card and (vehicles, weapons) the
   specs and in-game stats. Phones: the picture with the name over it. Then one reading column and, from 1100px, a side
   column that stays (On this page, Your notes); narrower, On this page is a row of chips under the header. */
.entry-page { padding-top: var(--s-5); }
.entry-hero { display: grid; gap: var(--s-7); grid-template-columns: minmax(16rem, 23rem) minmax(0, 1fr); align-items: start; margin-top: var(--s-4); }
.entry-hero.is-wide { grid-template-columns: minmax(18rem, 32rem) minmax(0, 1fr); }
.entry-hero.is-wide .entry-media { aspect-ratio: 16 / 9; }
.entry-hero-media { display: grid; gap: var(--s-2); min-width: 0; }
@media (min-width: 861px) { .entry-hero-media { position: sticky; top: calc(var(--header-stuck, var(--header-h, 4.5rem)) + var(--s-4)); } }
.entry-hero-body { display: grid; gap: var(--s-5); align-content: start; min-width: 0; }
.entry-hero-body > * { margin: 0; min-width: 0; }
.entry-media-icon { width: 3rem; height: 3rem; opacity: .4; }
.entry-thumbs { margin: 0; }
button.entry-thumb { width: 100%; padding: 0; cursor: pointer; }
.open-hint { position: absolute; right: var(--s-2); bottom: var(--s-2); display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .65rem; border-radius: var(--r-pill); background: color-mix(in srgb, var(--c-bg) 72%, transparent); color: var(--c-text); font: 600 var(--fs-12)/1 var(--f-body); pointer-events: none; z-index: 2; }
.open-hint .icon { width: 1rem; height: 1rem; }
.entry-head { display: grid; gap: var(--s-3); justify-items: start; }
.entry-tags { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.entry-title { font: 600 clamp(var(--fs-40), 5.4vw, var(--fs-56))/1 var(--f-title); text-transform: uppercase; letter-spacing: var(--ls-sm); margin: 0; text-wrap: balance; overflow-wrap: anywhere; }
.entry-intro { display: grid; gap: var(--s-3); max-width: 44rem; }
.entry-tagline { margin: 0; font: italic 500 var(--fs-20)/1.35 var(--f-body); color: var(--c-text); }
.entry-tagline .q { color: var(--c-pink-text); font: normal 700 var(--fs-28)/0 var(--f-title); vertical-align: -.28em; margin-right: var(--s-1); }
.entry-summary { margin: 0; font-size: var(--fs-17); line-height: 1.6; color: var(--c-secondary); max-width: 62ch; }
.entry-summary.is-empty { font-size: var(--fs-14); }
.entry-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-5); font-size: var(--fs-14); color: var(--c-secondary); }
.entry-meta li { display: inline-flex; align-items: center; gap: .4rem; }
.entry-meta .icon { width: 1rem; height: 1rem; color: var(--c-muted); }
.entry-meta a { color: inherit; text-decoration: underline; text-decoration-color: var(--c-border-strong); text-underline-offset: 3px; }
.entry-meta a:hover { color: var(--c-text); }

/* Actions: Follow is the one filled button; 👍/👎 one control; Share, Compare, Suggest an edit as labelled icon buttons. */
.entry-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.entry-actions .btn, .entry-actions .icon-btn { min-height: var(--touch); }
.vote-seg { flex-wrap: nowrap; padding: 0; gap: 0; }
.vote-seg .vote-btn { gap: .4rem; min-height: var(--touch); padding: 0 var(--s-4); font-family: var(--f-mono); }
.vote-seg .vote-btn .icon { width: 1.1rem; height: 1.1rem; }
.vote-seg .vote-btn[aria-pressed="true"] { background: color-mix(in srgb, var(--c-pink-fill) 18%, transparent); color: var(--c-pink-light); }
.btn-n { font: 600 var(--fs-12)/1 var(--f-mono); padding-left: var(--s-2); margin-left: 2px; border-left: 1px solid color-mix(in srgb, currentColor 35%, transparent); }
.entry-follow[aria-pressed="true"] { background: var(--c-surface-2); border-color: var(--c-pink-fill); color: var(--c-text); box-shadow: none; }
.entry-save[aria-pressed="true"] { border-color: var(--c-pink-fill); }
.entry-save[aria-pressed="true"] .icon { fill: var(--c-pink-text); stroke: var(--c-pink-text); }
.entry-icon-actions { display: inline-flex; gap: var(--s-2); }
.entry-icon-actions .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* The name of an icon button on hover and focus (mouse and keyboard; phones show the names under the icons). */
.has-tip { position: relative; }
.has-tip::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); padding: .35rem .6rem; border-radius: var(--r-sm); background: var(--c-surface-3); border: 1px solid var(--c-border-strong); color: var(--c-text); font: 600 var(--fs-12)/1 var(--f-body); white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .15s; z-index: 5; }
.has-tip:hover::after, .has-tip:focus-visible::after { opacity: 1; }

/* Facts: one card, every row full (an odd last box stretches), the unknowns as chips at the end. */
.facts { container-type: inline-size; display: grid; gap: 1px; border: 1px solid var(--c-border); border-radius: var(--r-lg); overflow: hidden; background: var(--c-border); }
.facts-grid { display: grid; gap: 1px; margin: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.facts-grid.is-long { grid-template-columns: minmax(0, 1fr); }
.facts-grid .fact:last-child:nth-child(odd) { grid-column: 1 / -1; }
@container (min-width: 34rem) {
  .facts-grid.is-short { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .facts-grid.is-short .fact:last-child:nth-child(odd) { grid-column: auto; }
  .facts-grid.is-short .fact:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
  .facts-grid.is-short .fact:last-child:nth-child(3n+2) { grid-column: span 2; }
  .facts-grid.is-long { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.fact { background: var(--c-surface-1); padding: var(--s-3) var(--s-4); min-width: 0; }
.fact dt { font: 500 var(--fs-12)/1.3 var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); }
.fact dd { margin: var(--s-1) 0 0; font: 600 var(--fs-16)/1.4 var(--f-body); color: var(--c-text); overflow-wrap: anywhere; }
.fact dd .src { margin-left: var(--s-1); font-size: var(--fs-11); vertical-align: 1px; white-space: nowrap; }
.fact .field-list { margin: 0; padding-left: 1.2rem; font-weight: 500; }
.fact-pill { display: inline-flex; align-items: center; height: 1.375rem; padding: 0 .55rem; margin-left: var(--s-2); border-radius: var(--r-pill); background: color-mix(in srgb, var(--c-pink-fill) 18%, transparent); color: var(--c-pink-light); font: 600 var(--fs-12)/1 var(--f-body); letter-spacing: .04em; text-transform: uppercase; vertical-align: 2px; white-space: nowrap; }
.entry-tags .fact-pill { margin-left: 0; }
.fact-pill[data-badge="returning"] { background: var(--c-surface-3); color: var(--c-secondary); }
.facts-unknown { background: var(--c-surface-1); padding: var(--s-3) var(--s-4); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); }
.facts-unknown-k { font: 500 var(--fs-12)/1.3 var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); margin-right: var(--s-1); }
.chip-q { display: inline-flex; align-items: center; gap: .3rem; min-height: var(--touch); padding: 0 var(--s-3) 0 .6rem; border-radius: var(--r-pill); border: 1px dashed var(--c-border-strong); background: none; color: var(--c-secondary); font: 600 var(--fs-14)/1 var(--f-body); cursor: pointer; }
.chip-q .icon { width: 1rem; height: 1rem; color: var(--c-pink-text); }
.chip-q:hover { border-color: var(--c-pink-text); color: var(--c-text); background: color-mix(in srgb, var(--c-pink-fill) 14%, transparent); }
.not-known-item[data-edit] .chip-q { border-style: dotted; }
.facts-unknown-go { margin-left: auto; min-height: var(--touch); background: none; border: 0; padding: 0; font: inherit; font-weight: 600; font-size: var(--fs-14); cursor: pointer; }
[data-no-suggest] .chip-q { pointer-events: none; }
.entry-specs .group-label, .entry-hero-body .game-stats .group-label { margin-top: 0; }
.entry-hero-body .game-stats { margin: 0; }
.stat-key { margin: var(--s-2) 0 0; }
.note-line { display: flex; align-items: center; gap: var(--s-2); }
.note-line .icon { width: 1rem; height: 1rem; color: var(--c-muted); flex: none; }
.note-line [hidden] { display: none; }

/* On this page: chips that stay under the header (phones, tablets), a list that stays beside the page (wide). */
.onpage-chips { position: sticky; top: var(--header-stuck, var(--header-h, 4rem)); z-index: 30; margin: var(--s-6) calc(50% - 50vw) 0; padding: 0 calc(50vw - 50%); background: color-mix(in srgb, var(--c-bg) 94%, transparent); border-bottom: 1px solid var(--c-border); }
.onpage-chips-in { display: flex; gap: var(--s-2); overflow-x: auto; scrollbar-width: none; padding-block: var(--s-2); }
.onpage-chips-in::-webkit-scrollbar { display: none; }
.onpage-chips .chip { min-height: var(--touch); flex: none; white-space: nowrap; }
.onpage-chips .chip .n, .onpage .n { font: 500 var(--fs-12) var(--f-mono); color: var(--c-muted); }
@media (max-width: 1099px) { html:has(.onpage-chips) { scroll-padding-top: calc(var(--header-stuck, var(--header-h, 4.5rem)) + 4rem); } }
.entry-page [id] { scroll-margin-top: var(--s-4); } /* the header (and the chips) are already allowed for by scroll-padding */
@media (min-width: 1100px) { .onpage-chips { display: none; } }
.entry-body { display: grid; gap: var(--s-9); grid-template-columns: minmax(0, 1fr); margin-top: var(--s-8); }
.entry-content { display: grid; gap: var(--s-10); align-content: start; min-width: 0; }
.entry-content > .section { margin: 0; } /* the songs and the discussion keep their own markup */
.entry-sec { min-width: 0; }
.entry-sec > .section-title, .entry-sec .sec-head { margin-bottom: var(--s-4); }
.section-title .count { font-size: var(--fs-18); color: var(--c-muted); margin-left: var(--s-1); }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-2) var(--s-4); }
.sec-head .section-title { margin: 0; }
.entry-side { min-width: 0; }
.entry-side-in { display: grid; gap: var(--s-4); }
.entry-side .onpage { display: none; }
@media (min-width: 1100px) {
  .entry-body { grid-template-columns: minmax(0, 1fr) 17rem; gap: var(--s-10); margin-top: var(--s-9); }
  .entry-side-in { position: sticky; top: calc(var(--header-stuck, var(--header-h, 4.5rem)) + var(--s-5)); }
  .entry-side .onpage { display: block; }
  .note-line { display: none; }
}
.onpage-title { margin: 0 0 var(--s-2); font: 600 var(--fs-12)/1.2 var(--f-eyebrow); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--c-muted); }
.onpage ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.onpage a { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); min-height: var(--touch); padding: 0 var(--s-3); border-radius: var(--r-sm); color: var(--c-secondary); font-weight: 600; font-size: var(--fs-15); }
.onpage a:hover { background: var(--c-surface-2); color: var(--c-text); }
.onpage a[aria-current="true"] { background: color-mix(in srgb, var(--c-pink-fill) 18%, transparent); color: var(--c-text); }
.onpage a[aria-current="true"] .n { color: var(--c-pink-light); }
.entry-side .my-note { margin: 0; }

/* Connections: grouped by category, two across when there's room. */
.conn-wrap { container-type: inline-size; display: grid; gap: var(--s-6); }
.conn-label { display: flex; align-items: center; gap: var(--s-2); margin: 0 0 var(--s-3); font: 600 var(--fs-13)/1 var(--f-eyebrow); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--c-secondary); }
.conn-label .icon { width: 1rem; height: 1rem; color: var(--c-pink-text); }
.conn-label .n { font: 500 var(--fs-12) var(--f-mono); letter-spacing: 0; color: var(--c-muted); }
.conn-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); grid-template-columns: minmax(0, 1fr); }
@container (min-width: 32rem) { .conn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.conn { display: flex; align-items: center; gap: var(--s-3); min-height: 4.25rem; height: 100%; padding: var(--s-2) var(--s-3); border: 1px solid var(--c-border); border-radius: var(--r-md); background: var(--c-surface-1); color: var(--c-text); }
.conn:hover { border-color: var(--c-border-strong); background: var(--c-surface-2); }
.conn-thumb { width: 3rem; height: 3rem; border-radius: var(--r-sm); }
.conn-thumb .icon { width: 1.25rem; height: 1.25rem; }
.conn-text { min-width: 0; flex: 1; display: grid; gap: 3px; }
.conn-rel { font: 500 var(--fs-12)/1.35 var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); }
.conn-note { display: inline-block; margin-left: var(--s-1); padding: 2px 6px; border-radius: var(--r-xs); background: var(--c-surface-3); color: var(--c-secondary); font-size: var(--fs-11); letter-spacing: .04em; white-space: nowrap; vertical-align: 1px; }
.conn-rel .src { margin-left: var(--s-1); text-transform: none; letter-spacing: 0; }
.conn-name { font: 600 var(--fs-16)/1.3 var(--f-body); color: var(--c-text); }
.conn-go { flex: none; width: 1.1rem; height: 1.1rem; color: var(--c-muted); }
.conn-more { margin-top: var(--s-2); }
.conn-more > summary { display: inline-flex; align-items: center; min-height: var(--touch); cursor: pointer; list-style: none; }
.conn-more > summary::-webkit-details-marker { display: none; }
.conn-more[open] > summary { display: none; }
/* No picture yet, in a portrait category (people): their initials. */
.link-initials { display: grid; place-items: center; flex: none; overflow: hidden; background: radial-gradient(circle at 30% 0%, color-mix(in srgb, var(--cat, var(--c-pink-fill)) 30%, transparent), transparent 70%), var(--c-surface-3); color: var(--c-text); font: 600 var(--fs-16)/1 var(--f-title); letter-spacing: 1px; }
.item-initials { font: 600 var(--fs-40)/1 var(--f-title); letter-spacing: 1px; color: var(--c-text); }
.item-thumb:has(.item-initials) { background: radial-gradient(18rem 10rem at 30% 0%, color-mix(in srgb, var(--cat, var(--c-pink-fill)) 28%, transparent), transparent 70%), var(--c-surface-2); }

/* Media: five pictures at most (bento), "View all" opens every picture in a full-screen gallery. */
.view-all { display: inline-flex; align-items: center; gap: .35rem; min-height: var(--touch); background: none; border: 0; padding: 0; font: inherit; font-weight: 600; cursor: pointer; }
.view-all .icon { width: 1rem; height: 1rem; }
.seg-scroll { overflow-x: auto; scrollbar-width: none; margin: 0 -4px var(--s-3); padding: 0 4px; }
.seg-scroll::-webkit-scrollbar { display: none; }
.seg-scroll .segmented { flex-wrap: nowrap; }
.seg-scroll .segmented button { white-space: nowrap; min-height: var(--touch); }
.bento { display: grid; gap: var(--s-2); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bento-tile { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border-radius: var(--r-md); overflow: hidden; background: var(--c-surface-2); border: 1px solid var(--c-border); cursor: pointer; }
.bento-tile:first-child { grid-column: 1 / -1; }
@media (min-width: 640px) {
  .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bento-tile:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
  .bento-tile:first-child:only-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
}
.bento-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bento-tile:hover img, .gal-body .gallery-item:hover img { filter: brightness(1.1); }
.bento-more { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: var(--s-1); background: color-mix(in srgb, var(--c-bg) 66%, transparent); color: var(--c-text); }
.bento-more b { font: 600 var(--fs-28)/1 var(--f-title); }
.bento-more span { font-size: var(--fs-13); font-weight: 600; color: var(--c-secondary); }
/* A picture shown zoomed in on the entry: a small target, its words for screen readers and on hover. */
.zoom-badge { position: absolute; left: var(--s-2); bottom: var(--s-2); display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: color-mix(in srgb, var(--c-bg) 72%, transparent); color: var(--c-text); pointer-events: none; }
.zoom-badge .icon { width: .95rem; height: .95rem; }
dialog.gallery-dialog { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--c-bg); color: var(--c-body); }
dialog.gallery-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
dialog.gallery-dialog::backdrop { background: rgba(5,3,8,.7); }
.gal-head { border-bottom: 1px solid var(--c-border); background: var(--c-surface-1); padding-top: env(safe-area-inset-top, 0px); }
.gal-head-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s-3) var(--s-4); padding-block: var(--s-4); }
.gal-head-in .section-title, .gal-head-in .eyebrow { margin: 0; }
.gal-head-in .seg-scroll { grid-column: 1 / -1; grid-row: 2; margin-bottom: 0; }
.gal-head-in form { grid-column: 2; grid-row: 1; }
@media (min-width: 900px) { .gal-head-in { grid-template-columns: auto minmax(0, 1fr) auto; } .gal-head-in .seg-scroll { grid-column: 2; grid-row: 1; justify-self: center; } .gal-head-in form { grid-column: 3; } }
.gal-body { overflow-y: auto; overscroll-behavior: contain; padding: var(--s-4) 0 calc(var(--s-8) + env(safe-area-inset-bottom, 0px)); }
.gal-body .gallery-grid li { position: relative; }
.gal-body .gallery-item { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: var(--c-surface-2); }
.gal-body .gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 639px) { .gal-body .gallery-grid.is-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Questions people ask (entry pages): folded, the first open; an unanswered one asks for the fact. */
.faq-folded { gap: 0; border: 1px solid var(--c-border); border-radius: var(--r-lg); overflow: hidden; background: var(--c-surface-1); max-width: 52rem; }
.faq-folded .faq-acc { border: 0; border-radius: 0; background: none; }
.faq-folded .faq-acc + .faq-acc { border-top: 1px solid var(--c-border); }
.faq-folded .faq-acc summary { min-height: 3.5rem; }
.faq-folded .faq-acc summary:hover { background: var(--c-surface-2); }
.faq-folded .faq-acc > p { color: var(--c-secondary); max-width: 64ch; }
.faq-unknown { margin-top: var(--s-2); border-style: dashed; }
.faq-suggest { background: none; border: 0; padding: 0 0 0 var(--s-1); font: inherit; font-weight: 600; cursor: pointer; min-height: var(--touch); }

/* Phones: the picture (4:3 for people, 16:10 for things) with the category and name over it; the actions as one row
   (votes, Follow) and a row of named tiles (Save, Share, Compare, Suggest an edit). */
@media (max-width: 860px) {
  .entry-hero, .entry-hero.is-wide { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
}
@media (max-width: 699px) {
  .entry-hero.has-overlay { grid-template-areas: "img" "thumbs"; gap: var(--s-4); }
  .entry-hero.has-overlay .entry-hero-media, .entry-hero.has-overlay .entry-hero-body { display: contents; }
  .entry-hero.has-overlay .entry-media { grid-area: img; aspect-ratio: 4 / 3; }
  .entry-hero.has-overlay.is-wide .entry-media { aspect-ratio: 16 / 10; }
  .entry-hero.has-overlay.no-picture .entry-media { aspect-ratio: 2 / 1; place-items: start end; padding: var(--s-4); }
  .entry-hero.has-overlay .entry-media::after { content: ''; position: absolute; inset: 35% 0 0; background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--c-bg) 94%, transparent)); pointer-events: none; }
  .entry-hero.has-overlay .open-hint { top: var(--s-2); bottom: auto; }
  .entry-hero.has-overlay .entry-head { grid-area: img; align-self: end; position: relative; z-index: 3; padding: var(--s-4); gap: var(--s-2); pointer-events: none; }
  .entry-hero.has-overlay .entry-head a { pointer-events: auto; }
  .entry-hero.has-overlay .entry-thumbs { grid-area: thumbs; }
  .entry-title { font-size: var(--fs-40); }
  .entry-hero.is-wide.has-overlay .entry-title { font-size: var(--fs-36); }
  .entry-tagline { font-size: var(--fs-18); }
  .entry-summary { font-size: var(--fs-16); }
  .entry-actions .vote-seg, .entry-actions .entry-follow { order: 1; }
  .entry-actions .entry-follow { flex: 1; }
  .entry-actions::after { content: ''; order: 2; flex-basis: 100%; height: 0; }
  .entry-actions { align-items: stretch; }
  .entry-icon-actions { display: contents; }
  .entry-actions .entry-save, .entry-icon-actions > * { order: 3; flex: 1 1 0; min-width: 0; width: auto; height: auto; min-height: 3.75rem; padding: var(--s-2) var(--s-1); display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; border-radius: var(--r-md); font: 600 var(--fs-13)/1.15 var(--f-body); text-align: center; }
  .entry-icon-actions .lbl { position: static; width: auto; height: auto; clip: auto; overflow: visible; white-space: normal; }
  .has-tip::after { display: none; }
}
@media (prefers-reduced-motion: reduce) { .has-tip::after { transition: none; } }
