/* The Console layout on the board games: Flag Sprint, Sort It, Trend Lines,
   Size It Up, Distance Guessr, Border Draw and City Limits (each page's body
   has the class console-boards, and cb-<game> for the game's own rules).
   Linked after layout.css, which already makes each game's stage a panel
   under a violet strip.

   As on the game picker: small labels, tallies and notes are in the reading
   face, as the picker's are, and figures in the pixel ones; a link is ink
   and underlined; a divider is the picker's soft 2px rule, not a thin grey
   line; a white board is one white board. City Limits has no stage: its side
   panel becomes a panel of its own, on the page's ground, headed by a violet
   strip. Nothing here changes a control's place or what it does, and a party
   round keeps its own look. */

/* ---------- type ----------
   The games set their labels, tallies and small figures in the dotted mono
   face; the picker has none. Inside a board the mono face is the reading
   face. The big figures (field.css sets them in GeoFigure) keep theirs. */
:root:not(.party-game) .console-boards #app main > .stage,
:root:not(.party-game) .console-boards.cb-city #panel { --mono: var(--display); }
/* The reading face sets a little smaller than the mono one did, so the
   smallest labels step up to the picker's own small size. Each keeps its
   line's height. */
:root:not(.party-game) .console-boards #app main > .stage .tally { font-size: 11px; }
:root:not(.party-game) .console-boards #app :is(.edge-label, .sort-drag-hint, .meta-line, .metric-note, .compare .col-head > span:last-child) { font-size: 11px; }
:root:not(.party-game) .console-boards #app .belt .slot .cap { font-size: 11px; }
:root:not(.party-game) .console-boards #app :is(.line-filter h3, .pill-label, .pill-bank:empty::before) { font-size: 11px; }
:root:not(.party-game) .console-boards #app :is(.ticks, #ratio-help, .readout small) { font-size: 11px; }
@media (max-width: 640px) {
  :root:not(.party-game) .console-boards #app :is(.sort-drag-hint, .metric-note, .compare .col-head > span:last-child) { font-size: 10px; }
}
@media (max-width: 640px) and (max-height: 740px) {
  :root:not(.party-game) .console-boards #app main > .stage .tally { font-size: 10px; }
  :root:not(.party-game) .console-boards #app :is(.meta-line, .metric-note) { font-size: 9px; }
}

/* ---------- links ----------
   Ink and underlined, as the picker's are, not the browser's blue. */
:root:not(.party-game) .console-boards #app :is(#source, .source-line) a { color: var(--text); text-underline-offset: 2px; }

/* ---------- dividers ----------
   Trend Lines' chart and its list of lines are parted by the picker's soft
   rule, as are the list and its note. */
:root:not(.party-game) .cb-trend #app .chart-shell { border-right: 2px solid var(--wash); }
:root:not(.party-game) .cb-trend #app .filter-note { border-top: 2px solid var(--wash); }
@media (max-width: 760px) {
  :root:not(.party-game) .cb-trend #app .chart-shell { border-right: 0; border-bottom: 2px solid var(--wash); }
}

/* ---------- Border Draw's pad ----------
   The pad is the white board itself, under the gold corners, rather than a
   lavender sheet in a white frame. Dark mode keeps its night sea. */
:root:not(.party-game):not([data-theme="dark"]) .cb-border #app #pad {
  background: radial-gradient(circle at 50% 50%, rgba(29, 24, 56, .022), transparent 62%), var(--panel);
}

/* ---------- City Limits' side panel ----------
   Beside the map the panel is the page's ground, parted from the map by an
   ink rule as the picker's rail is, and the round's controls sit on it in a
   white panel whose violet strip is the view line ("View 1 / 5 · ~1.2 km
   across"). The panel keeps its width (and its drag edge), and every control
   keeps its place in the column. The rings are box-shadows. */
@media (min-width: 761px) {
  :root:not(.party-game) .cb-city #panel {
    background: transparent; border-left: 4px solid var(--f-ink);
    padding: 16px 12px 16px 10px;
  }
  :root:not(.party-game) .cb-city #play-panel {
    padding: 0 8px 12px; background: var(--panel); box-shadow: var(--f-bevel);
  }
  :root:not(.party-game) .cb-city #play-panel > #stage-label {
    order: -1; margin: 0 -8px; padding: 9px 8px 8px;
    background: #5b3ff0; color: #fff; text-align: left;
    font: 400 19px/1.05 var(--pixel-title); text-shadow: 2px 2px 0 rgba(29, 24, 56, .45);
  }
}
/* A short window keeps the room the panel had: tighter edges, a slimmer strip. */
@media (min-width: 761px) and (max-height: 800px) {
  :root:not(.party-game) .cb-city #panel { padding: 8px 12px 9px 10px; }
  :root:not(.party-game) .cb-city #play-panel { padding-bottom: 8px; }
  :root:not(.party-game) .cb-city #play-panel > #stage-label { padding: 6px 8px 5px; font-size: 16px; }
}
/* A phone: the panel spans the screen under the imagery, and its first row
   (the view line) is the strip, as the leaderboard's strip
   holds its keys. The ink rule parts it from the map. */
@media (max-width: 760px) {
  :root:not(.party-game) .cb-city #panel { border-top: 2px solid var(--f-ink); padding-top: 0; }
  :root:not(.party-game) .cb-city #play-panel { position: relative; isolation: isolate; }
  :root:not(.party-game) .cb-city #play-panel:has(> #stage-label)::before {
    content: ""; position: absolute; z-index: -1; grid-row: 1 / 2; grid-column: 1 / -1;
    inset: 0 -12px; background: #5b3ff0;
  }
  :root:not(.party-game) .cb-city #play-panel:has(> #allowance-note:not([hidden]))::before { grid-row: 2 / 3; }
  :root:not(.party-game) .cb-city #play-panel > #stage-label { margin-top: 8px; margin-bottom: 8px; }
  :root:not(.party-game) .cb-city #play-panel > #guess-box { margin-top: 4px; }
  :root:not(.party-game) .cb-city #play-panel > #stage-label {
    align-self: center; background: transparent; color: #fff; text-align: left; padding: 0 2px 0 0;
    font: 400 15px/1.1 var(--pixel-title); text-shadow: 2px 2px 0 rgba(29, 24, 56, .45);
  }
}
/* What sits in the panel: the guesses' heading in the reading face, square
   numbers, and the guess map with no grey line round its sea. */
:root:not(.party-game) .cb-city .panel-fold { font-size: 12px; line-height: 13px; color: var(--muted); }
:root:not(.party-game) .cb-city .slot .dot { border-radius: 0; }
:root:not(.party-game) .cb-city #guess-overview svg { border-color: transparent; }
:root:not(.party-game) .cb-city #guess-overview figcaption { font-size: 11px; }
/* The drag edge's grip: a small key with the ink ring. */
:root:not(.party-game) .cb-city #panel-resizer::after { border: 1px solid var(--f-ink); border-radius: 0; background-color: var(--panel); }

/* When today's cities are spent, the note takes the same panel. */
:root:not(.party-game) .cb-city #spent-panel { padding: 0 12px 12px; background: var(--panel); box-shadow: var(--f-bevel); }
:root:not(.party-game) .cb-city #spent-panel > h3:first-child {
  margin: 0 -12px 12px; padding: 9px 12px 8px; background: #5b3ff0; color: #fff;
  font: 400 21px/1.1 var(--pixel-title); text-shadow: 2px 2px 0 rgba(29, 24, 56, .45);
}
:root:not(.party-game) .cb-city #spent-actions a.primary {
  background: var(--key); color: var(--key-ink); border-color: var(--f-ink);
  box-shadow: var(--key-face), var(--f-bevel-sm); font-family: var(--pixel-key);
}
:root:not(.party-game) .cb-city #spent-actions a.primary:hover { background: var(--key-hover); color: var(--key-ink); }

/* The review after the day: "‹ City 1 of 3 ›" and the way back are the
   strip, and the city's card and guesses the panel under it. */
:root:not(.party-game) .cb-city .city-result-board #panel > .city-review-nav {
  margin: 0; padding: 8px 10px; border-bottom: 0; background: #5b3ff0; color: #fff;
  box-shadow: 0 -2px 0 0 var(--f-ink), -2px 0 0 0 var(--f-ink), 2px 0 0 0 var(--f-ink), 5px 5px 0 0 var(--f-shadow);
}
:root:not(.party-game) .cb-city .city-result-board #panel > .city-review-nav .review-arrow { color: var(--text); }
:root:not(.party-game) .cb-city .city-result-board #panel > .city-review-nav strong { color: #fff; font: 400 18px/1 var(--pixel-title); text-shadow: 2px 2px 0 rgba(29, 24, 56, .45); }
:root:not(.party-game) .cb-city .city-result-board #panel > .city-review-nav + #play-panel {
  padding: 12px 8px; background: var(--panel);
  box-shadow: 0 2px 0 0 var(--f-ink), -2px 0 0 0 var(--f-ink), 2px 0 0 0 var(--f-ink), 5px 5px 0 0 var(--f-shadow);
}
:root:not(.party-game) .cb-city .city-result-board #panel > .city-review-nav + #play-panel::before { content: none; }

/* ======================================================================
   Room for the board (8 November 2026): the game takes the screen, not its
   setup. The strip is one line where it fits (the question, its tag beside
   it, the note after them), the page's margins and gaps are tighter, the
   counters and the round's key share one row under the board, and the
   flag, list, chart, shapes and pad grow into the height that frees.
   Each game's stage is a grid only while it is played; the results review
   (main.solo-result-board) keeps the column it was. */

/* ---------- the strip: one line ---------- */
:root:not(.party-game) .console-boards:not(.cb-city) #app main { padding: 12px 16px 14px; }
:root:not(.party-game) .console-boards #app main > .stage { gap: 10px; }
:root:not(.party-game) .console-boards #app main > .stage > .prompt:first-child,
:root:not(.party-game) .console-boards #app main > .stage > :is(.prompt-row, .prompt-line):first-child { margin-bottom: 0; padding-top: 9px; padding-bottom: 9px; }
:root:not(.party-game) .console-boards #app main > .stage > .prompt:first-child,
:root:not(.party-game) .console-boards #app main > .stage > :is(.prompt-row, .prompt-line):first-child > .prompt {
  flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 12px; row-gap: 3px;
}
:root:not(.party-game) .console-boards #app main > .stage > :is(.prompt, .prompt-row, .prompt-line):first-child h2 { order: 0; font-size: 28px; line-height: 1.1; }
:root:not(.party-game) .console-boards #app main > .stage > :is(.prompt, .prompt-row, .prompt-line):first-child .kicker { order: 1; align-self: center; }
:root:not(.party-game) .console-boards #app main > .stage > :is(.prompt, .prompt-row, .prompt-line):first-child :is(.note, .meta-line) { order: 2; margin: 0; }
/* Sort It's definition shows in full, on the line under its heading. */
:root:not(.party-game) .cb-sort #app main > .stage > .prompt:first-child .note { flex: 1 1 100%; min-width: 0; }
:root:not(.party-game) .cb-sort #app main > .stage > .prompt:first-child .meta-line { order: 1; }
@media (max-width: 640px) {
  :root:not(.party-game) .console-boards:not(.cb-city) #app main { padding: 8px 10px 10px; }
  :root:not(.party-game) .console-boards #app main > .stage { gap: 8px; }
  :root:not(.party-game) .console-boards #app main > .stage > .prompt:first-child,
  :root:not(.party-game) .console-boards #app main > .stage > :is(.prompt-row, .prompt-line):first-child { padding-top: 7px; padding-bottom: 7px; }
  :root:not(.party-game) .console-boards #app main > .stage > :is(.prompt, .prompt-row, .prompt-line):first-child h2 { font-size: 22px; }
  :root:not(.party-game) .console-boards #app main > .stage > :is(.prompt, .prompt-row, .prompt-line):first-child .note { font-size: 13px; line-height: 1.35; }
}
@media (max-width: 640px) and (max-height: 740px) {
  :root:not(.party-game) .console-boards:not(.cb-city) #app main { padding: 8px 10px; }
  :root:not(.party-game) .console-boards #app main > .stage { gap: 7px; }
}

/* ---------- the stage's grids ----------
   One row under the board: the counters either side of the round's key. */
:root:not(.party-game) .console-boards #app main:not(.solo-result-board) > .stage > .prompt:first-child,
:root:not(.party-game) .console-boards #app main:not(.solo-result-board) > .stage > :is(.prompt-row, .prompt-line):first-child { grid-area: prompt; }

/* Flag Sprint: the flag as big as the room allows, and "I'm done", the
   count and the belt's meter on one row. */
:root:not(.party-game) .cb-flag #app main:not(.solo-result-board) > .stage {
  max-width: 900px; display: grid; column-gap: 14px; row-gap: 10px;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  grid-template-areas: "prompt prompt prompt prompt" "belt belt belt belt" "answer answer answer answer" "done left meter right";
}
:root:not(.party-game) .cb-flag #app main:not(.solo-result-board) > .stage > .belt { grid-area: belt; min-height: 0; }
:root:not(.party-game) .cb-flag #app main:not(.solo-result-board) > .stage > .answer-box { grid-area: answer; }
:root:not(.party-game) .cb-flag #app main:not(.solo-result-board) > .stage > .tally { display: contents; }
:root:not(.party-game) .cb-flag #app main:not(.solo-result-board) > .stage #tally-left { grid-area: left; align-self: center; }
:root:not(.party-game) .cb-flag #app main:not(.solo-result-board) > .stage #tally-right { grid-area: right; align-self: center; text-align: right; }
:root:not(.party-game) .cb-flag #app main:not(.solo-result-board) > .stage > .meter { grid-area: meter; align-self: center; }
:root:not(.party-game) .cb-flag #app main:not(.solo-result-board) > .stage > .row { grid-area: done; }
:root:not(.party-game) .cb-flag #app main:not(.solo-result-board) .belt .slot.main { container-type: size; }
:root:not(.party-game) .cb-flag #app main:not(.solo-result-board) .flip { flex: 0 0 auto; height: min(100cqh, 75cqw); max-height: none; min-height: 0; }
@media (max-width: 600px) {
  :root:not(.party-game) .cb-flag #app main:not(.solo-result-board) > .stage {
    flex: 1 0 auto; grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto minmax(150px, 1fr) auto auto auto;
    grid-template-areas: "prompt prompt prompt" "belt belt belt" "answer answer answer" "meter meter meter" "done left right";
    column-gap: 10px;
  }
}

/* Sort It: the source, "Lock it in" and the day's count on one row. */
:root:not(.party-game) .cb-sort #app main:not(.solo-result-board) > .stage {
  display: grid; column-gap: 12px; row-gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  grid-template-areas: "prompt prompt prompt" "result result result" "board board board" "tally submit source";
}
:root:not(.party-game) .cb-sort #app main:not(.solo-result-board) > .stage > #result { grid-area: result; }
:root:not(.party-game) .cb-sort #app main:not(.solo-result-board) > .stage > .board { grid-area: board; }
:root:not(.party-game) .cb-sort #app main:not(.solo-result-board) > .stage > .row { grid-area: submit; }
:root:not(.party-game) .cb-sort #app main:not(.solo-result-board) > .stage > .tally { grid-area: tally; align-self: center; justify-content: flex-start; flex-wrap: wrap; column-gap: 10px; }
:root:not(.party-game) .cb-sort #app main:not(.solo-result-board) > .stage > #source { grid-area: source; align-self: center; text-align: right; }
@media (max-width: 640px) {
  :root:not(.party-game) .cb-sort #app main:not(.solo-result-board) > .stage {
    grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto minmax(0, 1fr) auto auto;
    grid-template-areas: "prompt prompt" "result result" "board board" "submit submit" "tally source";
  }
}

/* Trend Lines: the counters, the two keys and the source on one row. */
@media (min-width: 761px) {
  :root:not(.party-game) .cb-trend #app main:not(.solo-result-board) > .stage {
    display: grid; column-gap: 14px; row-gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-rows: auto auto auto minmax(0, 1fr) auto;
    grid-template-areas: "prompt prompt score" "tools tools tools" "hint hint hint" "chart chart chart" "tally actions source";
  }
  :root:not(.party-game) .cb-trend #app main:not(.solo-result-board) > .stage > .chart-tools { grid-area: tools; }
  :root:not(.party-game) .cb-trend #app main:not(.solo-result-board) > .stage > .mobile-label-hint { grid-area: hint; }
  :root:not(.party-game) .cb-trend #app main:not(.solo-result-board) > .stage > .chart-layout { grid-area: chart; min-height: 0; }
  :root:not(.party-game) .cb-trend #app main:not(.solo-result-board) > .stage > .row { grid-area: actions; }
  :root:not(.party-game) .cb-trend #app main:not(.solo-result-board) > .stage > .tally { grid-area: tally; align-self: center; flex-direction: column; align-items: flex-start; gap: 2px; }
  :root:not(.party-game) .cb-trend #app main:not(.solo-result-board) > .stage > .source-line { grid-area: source; align-self: center; text-align: right; }
}

/* Size It Up: the readout beside the slider, and "Lock it in" between the
   counters. */
:root:not(.party-game) .cb-size #app main:not(.solo-result-board) > .stage {
  display: grid; column-gap: 14px; row-gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  grid-template-areas: "prompt prompt prompt" "board board board" "guess guess guess" "left submit right";
}
:root:not(.party-game) .cb-size #app main:not(.solo-result-board) > .stage > #board-wrap { grid-area: board; }
:root:not(.party-game) .cb-size #app main:not(.solo-result-board) > .stage > .guess-panel { grid-area: guess; }
:root:not(.party-game) .cb-size #app main:not(.solo-result-board) > .stage > .row { grid-area: submit; }
:root:not(.party-game) .cb-size #app main:not(.solo-result-board) > .stage > .tally { display: contents; }
:root:not(.party-game) .cb-size #app main:not(.solo-result-board) > .stage #tally-left { grid-area: left; align-self: center; }
:root:not(.party-game) .cb-size #app main:not(.solo-result-board) > .stage #tally-right { grid-area: right; align-self: center; text-align: right; }
@media (min-width: 761px) {
  :root:not(.party-game) .cb-size #app main:not(.solo-result-board) .guess-panel {
    /* The slider sits in the middle column, between the readout and an equal
       empty column, so it is centred on the board. */
    display: grid; grid-template-columns: minmax(180px, 240px) minmax(0, 1fr) minmax(180px, 240px); align-items: center; column-gap: 18px;
  }
}

/* Distance Guessr: no empty panel under the round; the reading and the
   estimate on one line, and "Lock it in" between the counters. */
:root:not(.party-game) .cb-distance #app main:not(.solo-result-board) > .stage {
  flex: 0 0 auto; display: grid; column-gap: 14px; row-gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-areas: "prompt prompt prompt" "pair pair pair" "guess guess guess" "left submit right";
}
:root:not(.party-game) .cb-distance #app main:not(.solo-result-board) > .stage > .pair { grid-area: pair; }
:root:not(.party-game) .cb-distance #app main:not(.solo-result-board) > .stage > .card-panel { grid-area: guess; }
:root:not(.party-game) .cb-distance #app main:not(.solo-result-board) > .stage > .row { grid-area: submit; }
:root:not(.party-game) .cb-distance #app main:not(.solo-result-board) > .stage > .tally { display: contents; }
:root:not(.party-game) .cb-distance #app main:not(.solo-result-board) > .stage #tally-left { grid-area: left; align-self: center; }
:root:not(.party-game) .cb-distance #app main:not(.solo-result-board) > .stage #tally-right { grid-area: right; align-self: center; text-align: right; }

/* Border Draw: a wider pad, and the line under it beside Clear and Compare. */
:root:not(.party-game) .cb-border #app main:not(.solo-result-board) > .stage {
  max-width: 940px; display: grid; column-gap: 14px; row-gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-rows: auto minmax(0, 1fr) auto auto auto;
  grid-template-areas: "prompt prompt prompt" "pad pad pad" "hint tally actions" "legend legend legend" "verdict verdict verdict";
}
:root:not(.party-game) .cb-border #app main:not(.solo-result-board) > .stage > #pad-wrap { grid-area: pad; }
:root:not(.party-game) .cb-border #app main:not(.solo-result-board) > .stage > .hintline { grid-area: hint; align-self: center; margin: 0; text-align: left; }
:root:not(.party-game) .cb-border #app main:not(.solo-result-board) > .stage > .row { grid-area: actions; }
:root:not(.party-game) .cb-border #app main:not(.solo-result-board) > .stage > .legend { grid-area: legend; }
:root:not(.party-game) .cb-border #app main:not(.solo-result-board) > .stage > #verdict { grid-area: verdict; }
:root:not(.party-game) .cb-border #app main:not(.solo-result-board) > .stage > .tally { grid-area: tally; align-self: center; gap: 10px; }

/* A phone: the stage takes the screen's height, so the shapes and the pad
   grow into it, and never below the room they had. */
@media (max-width: 600px) {
  :root:not(.party-game) .cb-size #app main:not(.solo-result-board) > .stage { flex: 1 0 auto; grid-template-rows: auto minmax(240px, 1fr) auto auto; }
  :root:not(.party-game) .cb-border #app main:not(.solo-result-board) > .stage { flex: 1 0 auto; grid-template-rows: auto minmax(240px, 1fr) auto auto auto; }
}

/* Sort It on a computer: five rows share the board's height, up to a
   comfortable size, with larger names and flags. */
@media (min-width: 641px) and (min-height: 700px) {
  /* The board keeps to its grid row, so a long title or definition shrinks
     the rows rather than push them over Lock it in; the list stops growing
     at five 96px rows. */
  :root:not(.party-game) .cb-sort #app main:not(.solo-result-board) > .stage > .board { min-height: 0; }
  :root:not(.party-game) .cb-sort #app main:not(.solo-result-board) .board > .rank-list:not(.long, .xlong) { flex: 1 1 auto; min-height: 0; max-height: calc(5 * 96px + 4 * clamp(5px, 1vh, 8px)); }
  :root:not(.party-game) .cb-sort #app main:not(.solo-result-board) .rank-list:not(.long, .xlong) > .rank-row { flex: 1 1 0; min-height: 0; max-height: 96px; padding-top: 7px; padding-bottom: 7px; }
  :root:not(.party-game) .cb-sort #app main:not(.solo-result-board) .rank-list:not(.long, .xlong) .rank-row .name { font-size: clamp(17px, 2.7vh, 24px); }
  :root:not(.party-game) .cb-sort #app main:not(.solo-result-board) .rank-list:not(.long, .xlong) .rank-row img { width: auto; height: clamp(30px, 5.2vh, 48px); aspect-ratio: 4 / 3; border-color: var(--f-ink); }
}

/* Border Draw on a wide screen: the verdict, its key and the points beside
   the pad rather than under it, so the pad has the height. The line under
   the pad and Clear and Compare stay where they are. */
@media (min-width: 1100px) {
  :root:not(.party-game) .cb-border #app main:not(.solo-result-board) > .stage {
    max-width: 1240px; grid-template-columns: minmax(0, 1fr) auto 250px;
    grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
    grid-template-areas: "prompt prompt prompt" "pad pad tally" "pad pad legend" "pad pad verdict" "pad pad ." "hint actions .";
  }
  :root:not(.party-game) .cb-border #app main:not(.solo-result-board) > .stage > .tally { align-self: start; }
  :root:not(.party-game) .cb-border #app main:not(.solo-result-board) > .stage > .legend { flex-direction: column; gap: 6px; justify-content: flex-start; }
  :root:not(.party-game) .cb-border #app main:not(.solo-result-board) > .stage > #verdict .head .who { margin-left: 0; }
}

/* ---------- on the page itself ----------
   These games need no box round the whole round (the user, 8 November
   2026): the heading and the board sit straight on the dashed grid, as on
   the live site. The heading keeps its one line and its gold drop; frames
   stay only where they group something (the white boards, the rows you
   drag, the city cards, the keys). */
:root:not(.party-game) .console-boards:not(.cb-city) #app main > .stage { padding: 0; box-shadow: none; background: transparent; }
:root:not(.party-game) .console-boards:not(.cb-city) #app main > .stage > .prompt:first-child,
:root:not(.party-game) .console-boards:not(.cb-city) #app main > .stage > :is(.prompt-row, .prompt-line):first-child {
  margin: 0; padding: 0 0 2px; background: none; color: var(--text);
}
:root:not(.party-game) .console-boards:not(.cb-city) #app main > .stage > :is(.prompt, .prompt-row, .prompt-line):first-child h2 { color: var(--text); text-shadow: 2px 2px 0 var(--gold); }
:root[data-theme="dark"]:not(.party-game) .console-boards:not(.cb-city) #app main > .stage > :is(.prompt, .prompt-row, .prompt-line):first-child h2 { text-shadow: 2px 2px 0 #9a6a00; }
:root:not(.party-game) .console-boards:not(.cb-city) #app main > .stage > :is(.prompt, .prompt-row, .prompt-line):first-child :is(.note, p) { color: var(--muted); }
@media (max-width: 640px) {
  :root:not(.party-game) .console-boards:not(.cb-city) #app main > .stage { padding: 0; }
  :root:not(.party-game) .console-boards:not(.cb-city) #app main > .stage > .prompt:first-child,
  :root:not(.party-game) .console-boards:not(.cb-city) #app main > .stage > :is(.prompt-row, .prompt-line):first-child { margin: 0; padding: 0 0 2px; }
}

/* ---------- floating, no panels or strips (the user's call) ----------
   City Limits' controls, its spent note and its review sit on the grid; the
   view line and the headings are ink with the gold drop. */
:root:not(.party-game) .cb-city :is(#play-panel, #spent-panel, .city-result-board #panel > .city-review-nav, .city-result-board #panel > .city-review-nav + #play-panel) {
  background: none !important; box-shadow: none !important;
}
:root:not(.party-game) .cb-city #play-panel::before { content: none !important; }
:root:not(.party-game) .cb-city :is(#play-panel > #stage-label, #spent-panel > h3:first-child, .city-result-board #panel > .city-review-nav strong) {
  background: none !important; color: var(--text) !important; text-shadow: 2px 2px 0 var(--gold) !important;
}
:root:not(.party-game) .cb-city .city-result-board #panel > .city-review-nav { color: var(--text) !important; }
@media (max-width: 760px) {
}

/* Distance Guessr's two cities: bigger flags and names, and "to" in the
   middle of the screen whatever the names' lengths (the two cities sit
   either side of it in equal columns). */
:root:not(.party-game) .cb-distance .pair {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; column-gap: 28px; width: 100%;
}
:root:not(.party-game) .cb-distance .pair > #place-a { justify-self: end; }
:root:not(.party-game) .cb-distance .pair > #place-b { justify-self: start; }
:root:not(.party-game) .cb-distance .place { gap: 16px; padding: 10px 0; min-width: 0; }
:root:not(.party-game) .cb-distance .place img { width: 84px; height: 63px; border-color: var(--f-ink); box-shadow: 3px 3px 0 var(--f-shadow); }
:root:not(.party-game) .cb-distance .place .city { font: 400 32px/1.05 var(--pixel-title); text-shadow: 2px 2px 0 var(--gold); }
:root:not(.party-game) .cb-distance .place .country { font: 500 16px/1.2 var(--display); }
:root:not(.party-game) .cb-distance .tween { justify-self: center; font: 500 18px/1 var(--display); color: var(--muted); }
@media (max-width: 560px) {
  :root:not(.party-game) .cb-distance .pair { grid-template-columns: 1fr; row-gap: 4px; justify-items: center; }
  :root:not(.party-game) .cb-distance .pair > :is(#place-a, #place-b) { justify-self: center; }
  :root:not(.party-game) .cb-distance .place { width: auto; padding: 4px 0; }
  :root:not(.party-game) .cb-distance .place img { width: 56px; height: 42px; }
  :root:not(.party-game) .cb-distance .place .city { font-size: 24px; }
  :root:not(.party-game) .cb-distance .place .country { font-size: 14px; }
  :root:not(.party-game) .cb-distance .tween { font-size: 15px; }
}
/* A wide screen has the room: the cities larger still, on a wider stage. */
@media (min-width: 900px) {
  :root:not(.party-game) .cb-distance #app main:not(.solo-result-board) > .stage { max-width: 980px; }
  :root:not(.party-game) .cb-distance .pair { column-gap: 40px; padding: 18px 0 10px; }
  :root:not(.party-game) .cb-distance .place { gap: 20px; }
  :root:not(.party-game) .cb-distance .place img { width: 128px; height: 96px; box-shadow: 4px 4px 0 var(--f-shadow); }
  :root:not(.party-game) .cb-distance .place .city { font-size: 46px; text-shadow: 3px 3px 0 var(--gold); }
  :root:not(.party-game) .cb-distance .place .country { font-size: 19px; }
  :root:not(.party-game) .cb-distance .tween { font-size: 24px; }
}

/* City Limits' bar already reads "City Limits · Easy": no second easy,
   medium or hard badge beside it. */
:root:not(.party-game) .cb-city #topbar .round-info { display: none; }

/* A phone's five rows: bigger flags and names too. */
@media (max-width: 640px) {
  :root:not(.party-game) .cb-sort #app main:not(.solo-result-board) .rank-list:not(.long, .xlong) .rank-row .name { font-size: 18px; }
  :root:not(.party-game) .cb-sort #app main:not(.solo-result-board) .rank-list:not(.long, .xlong) .rank-row img { width: 44px; height: 33px; }
}

/* Trend Lines: no white chart on the grid. The plot is see-through, on the
   page's own dashed grid, framed by its axes; the empty slots are dashed outlines in each
   line's colour rather than white boxes. */
:root:not(.party-game) .cb-trend .plot-bg { fill: var(--bg); stroke: var(--f-ink); stroke-width: 2; vector-effect: non-scaling-stroke; }
/* The chart keeps its own value lines (the page's ground is a pattern, not
   a grid), a shade stronger to read on it. */
:root:not(.party-game) .cb-trend .grid-line { stroke: color-mix(in srgb, var(--text) 16%, transparent); }
:root:not(.party-game) .cb-trend .line-slot { background: var(--bg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--slot-color) 55%, transparent); }
:root:not(.party-game) .cb-trend .line-slot.selected { background: color-mix(in srgb, var(--slot-color) 14%, var(--bg)); box-shadow: 0 0 0 2px var(--slot-color); }
:root:not(.party-game) .cb-trend .line-slot.magnet { background: var(--accent-soft); }
:root:not(.party-game) .cb-trend .slot-empty em { color: var(--muted); }

/* Trend Lines: the score at the top right in the Oracles' style ("0 / 400"),
   no caption over the chart (the heading already names it), and the chart
   on its own ground in an ink frame, over the page's pattern. */
:root:not(.party-game) .cb-trend #chart-caption { display: none; }
/* The caption was the only place a log scale was named: the note says it. */
:root:not(.party-game) .cb-trend #metric-note.log-scale::after { content: " · log scale"; font-weight: 700; color: var(--text); }
@media (min-width: 761px) {
  :root:not(.party-game) .cb-trend #app main:not(.solo-result-board) > .stage > .tally { display: contents; }
  :root:not(.party-game) .cb-trend #app main:not(.solo-result-board) #tally-left { grid-area: score; justify-self: end; align-self: center; }
  :root:not(.party-game) .cb-trend #app main:not(.solo-result-board) #tally-right { grid-area: tally; align-self: center; }
}
:root:not(.party-game) .cb-trend #app #tally-left { font: 400 28px/1 var(--pixel-title); color: var(--text); text-shadow: 2px 2px 0 var(--gold); white-space: nowrap; }
@media (max-width: 760px) { :root:not(.party-game) .cb-trend #app #tally-left { font-size: 20px; } }
/* A placed label sits against the chart's edge: the frame keeps a few
   pixels past it, so its right border shows. */
:root:not(.party-game) .cb-trend .chart-shell { overflow: clip; overflow-clip-margin: 6px; }
:root:not(.party-game) .cb-trend .line-slot:not(.revealed) > .country-pill { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--slot-color) 60%, transparent); }
/* A finished Sort It has one way back to its results, the fixed Open results
   key; the round's own See the round key under it is hidden. */
body.cb-sort:has(.result-reopen) #app #submit { display: none; }
