/* ---------- Fit to the window height, in CSS only ----------
   Screens are designed at full height. On shorter windows the sizes that take the most height scale down with the
   window instead of the screen overflowing. Nothing is measured in script: the browser recomputes these on resize
   and rotation by itself.

   --fit is one "design pixel": 1px on windows at least --fit-design tall, less on shorter ones, never below .6px.
   A size written calc(84 * var(--fit)) is 84px on a tall window and shrinks in proportion on a short one.
   Loaded last, so it can override the fixed sizes in the earlier stylesheets. */
:root { --fit-design: 940; --fit: clamp(.6px, calc(100dvh / var(--fit-design)), 1px); }

/* ---------- Desktop and laptop (mouse) ---------- */
@media not ((hover: none) and (pointer: coarse) and (max-width: 932px)) {
  /* Chrome around the stage: header, stage padding, player strip. */
  .game-shell > .topbar { min-height: calc(78 * var(--fit)) !important; }
  .game-shell > .main-stage { padding-block: calc(22 * var(--fit)) !important; }

  /* Question, answered and reveal share one heading and answer layout. */
  .main-stage .question-screen { padding-top: calc(14 * var(--fit)) !important; }
  .main-stage .question-heading { margin-block: calc(26 * var(--fit)) !important; }
  .main-stage .question-heading h1 { font-size: min(44px, calc(44 * var(--fit))) !important; }
  .main-stage .question-feedback-buttons { margin-block: calc(10 * var(--fit)) !important; }
  .main-stage .answer-option { min-height: calc(64 * var(--fit)) !important; padding-block: calc(20 * var(--fit)) !important; font-size: min(26px, calc(26 * var(--fit))) !important; }
  .main-stage .answered-question-heading h1 { font-size: min(34px, calc(34 * var(--fit))) !important; }
  /* Countdown ring (question, map and sequence screens) and the answer table's rows. */
  .main-stage { --countdown-size: calc(64 * var(--fit)); --ad-row-step: calc(40 * var(--fit)); }
  .main-stage .geo-question:not(.is-reveal) { --countdown-size: calc(46 * var(--fit)); }
  .main-stage .stage-timer .timer, .main-stage .question-top .timer { width: var(--countdown-size) !important; height: var(--countdown-size) !important; flex-basis: var(--countdown-size) !important; }
  .main-stage .stage-timer .timer span, .main-stage .question-top .timer span { font-size: calc(28 * var(--fit)) !important; }

  /* Number keypad and order list. */
  .main-stage .number-form input { height: calc(112 * var(--fit)) !important; min-height: 0 !important; padding-block: calc(23 * var(--fit)) !important; }
  .main-stage .onscreen-key { height: calc(46 * var(--fit)) !important; }
  .main-stage .keys-digits .onscreen-key { height: calc(52 * var(--fit)) !important; }
  .main-stage .order-tile { min-height: calc(58 * var(--fit)) !important; padding-block: calc(8 * var(--fit)) !important; }

  /* Map screens use the phone frame: the screen fills the stage, the countdown slot and title band shrink with the
     window, the map takes the height that is left, and a long side panel (final ranking) scrolls inside itself. */
  .main-stage .land-screen { --frame-timer-h: calc(82 * var(--fit)); --frame-header-h: calc(108 * var(--fit)); --frame-gap: calc(12 * var(--fit)); }
  .main-stage .land-screen > .land-header .stage-title { font-size: min(47px, calc(47 * var(--fit))) !important; }
  .main-stage:has(> .land-screen) { justify-content: flex-start !important; }
  .main-stage > .land-screen { display: flex !important; flex-direction: column !important; flex: 1 1 auto !important; height: 100% !important; max-height: 100% !important; min-height: 0 !important; box-sizing: border-box; }
  .main-stage > .land-screen > * { flex: 0 0 auto; }
  .main-stage > .land-screen > .land-layout { flex: 1 1 auto !important; height: auto !important; min-height: 0 !important; grid-template-rows: minmax(0, 1fr) !important; align-items: stretch !important; }
  .main-stage > .land-screen .land-layout > .land-map-slot { align-self: stretch !important; height: 100% !important; max-height: 100% !important; min-height: 0 !important; }
  .main-stage > .land-screen .land-layout > .land-sidecar { align-self: start !important; max-height: 100% !important; min-height: 0 !important; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
}
@media (not ((hover: none) and (pointer: coarse) and (max-width: 932px))) and (min-width: 1100px) {
  .player-strip .player-card.strip-card .player-emote-anchor > .avatar { width: calc(84 * var(--fit)) !important; height: calc(84 * var(--fit)) !important; flex-basis: calc(84 * var(--fit)) !important; }
  .player-strip .player-card.strip-card .player-score-anchor { min-height: calc(84 * var(--fit)) !important; }
}

/* ---------- Phones ---------- */
@media (hover: none) and (pointer: coarse) and (max-width: 932px) {
  /* Player strip: one line of pieces. A card shows its name and score only while it matters (is-named: answers
     being revealed, points landing, attacking or defending, a fresh emoji, its turn on the map); the answered tick
     or dots stay under every piece during a question. Named cards share the width the pieces leave. */
  .game-shell > .player-strip { display: flex !important; flex-wrap: nowrap; justify-content: center; align-items: center; gap: 4px; column-gap: 4px; }
  .game-shell > .player-strip > .player-card { flex: 0 0 auto; min-width: 0; height: auto !important; min-height: 0 !important; }
  .game-shell > .player-strip > .player-card.is-named { flex: 1 1 0; max-width: 34%; }
  .game-shell > .player-strip > .player-card:not(.is-named) .player-name-row,
  .game-shell > .player-strip > .player-card:not(.is-named) .score-total-stack,
  .game-shell > .player-strip > .player-card:not(.is-named) .player-meta { display: none !important; }
  .game-shell > .player-strip > .player-card:not(.is-named) .player-card-copy:not(:has(.player-status)) { display: none !important; }
}
@media (hover: none) and (pointer: coarse) and (max-width: 932px) {
  /* A bare piece has the room its name and score would take: bigger, and spaced apart. */
  .game-shell > .player-strip { column-gap: 12px !important; }
  .game-shell > .player-strip > .player-card:not(.is-named) { display: flex !important; flex-direction: column !important; align-items: center !important; gap: 1px !important; width: auto !important; padding: 0 !important; container-type: normal; }
  .game-shell > .player-strip > .player-card:not(.is-named) .player-card-copy { width: auto !important; min-width: 0 !important; }
  .game-shell > .player-strip > .player-card:not(.is-named) .player-score-anchor,
  .game-shell > .player-strip > .player-card:not(.is-named) .avatar { width: 28px !important; height: 28px !important; flex-basis: 28px !important; }
}
@media (hover: none) and (pointer: coarse) and (max-width: 932px) {
  .game-shell > .player-strip > .player-card.is-named .player-score-anchor,
  .game-shell > .player-strip > .player-card.is-named .avatar { width: 28px !important; height: 28px !important; flex-basis: 28px !important; }

  /* Reveals no longer pad 104px under their content: that cleared a strip which used to float over the stage. The
     stage itself keeps the Ready bar's room (72px), and with min-height:100% the padding made every reveal scroll. */
  .main-stage .question-screen:has(> .ad-results), .main-stage .question-screen.is-reveal, .main-stage .geo-question.is-reveal,
  .main-stage .geo-question.is-reveal:has(.battle-pair), .review-with-votes { padding-bottom: 8px !important; box-sizing: border-box; }

  /* Phones are designed at 800px tall; shorter ones scale the tallest parts down. */
  :root { --fit: clamp(.6px, calc(100dvh / 800), 1px); }
  .main-stage { --ad-row-step: calc(36 * var(--fit)); --countdown-size: calc(44 * var(--fit)); }
  .main-stage .question-top .timer span, .main-stage .stage-timer .timer span { font-size: calc(19 * var(--fit)) !important; }
  .main-stage .question-heading { margin-block: calc(10 * var(--fit)) !important; }
  .main-stage .question-heading h1 { font-size: min(22px, calc(22 * var(--fit))) !important; }
  .main-stage .answer-options { margin-top: calc(14 * var(--fit)) !important; }
  .main-stage .answer-option { min-height: calc(52 * var(--fit)) !important; }
  .main-stage .attack-matchup { margin-top: calc(18 * var(--fit)) !important; }
  .main-stage .attack-matchup .land-player-identity { height: calc(60 * var(--fit)) !important; min-height: 0 !important; }
  .main-stage .ad-number-line { height: calc(52 * var(--fit) + var(--lanes, 1) * 36 * var(--fit)) !important; }
}

/* ---------- TV ---------- */
/* The TV is designed at 1150px tall, so a 1080p TV scales slightly too. */
.shared-stage { --fit: clamp(.6px, calc(100dvh / 1150), 1px); }
/* The map fits the board's height (the board already keeps to the window); it used to size from the width and
   spill out of the board on 720p. */
.shared-map-board { grid-template-rows: 100% !important; }
.shared-map-board > svg { height: 100% !important; max-height: 100% !important; min-height: 0 !important; width: 100% !important; }
.shared-main-content { padding-block: calc(38 * var(--fit)) !important; }
.shared-map-panel h1, .shared-question h1, .shared-reveal h1 { font-size: min(58px, calc(58 * var(--fit))) !important; margin-bottom: calc(30 * var(--fit)) !important; }
.shared-kicker { margin-bottom: calc(20 * var(--fit)) !important; }
.shared-hint { font-size: min(26px, calc(26 * var(--fit))) !important; }

/* ---------- Phones: focus on the map, the question or the geo map ----------
   While the game map (claim, attack), a question or a geo question is up, the phone shows only that: no header,
   no attack track, no player strip, no like/dislike (they come back with the reveal), no info panel or zoom hint.
   The map, question and answers take the whole screen. */
@media (hover: none) and (pointer: coarse) and (max-width: 932px) {
  .game-shell:has(> .main-stage > :is(.map-screen, .question-screen:not(.is-reveal):not(.ad-reveal), .geo-question:not(.is-reveal), .battle-question-stage)) > :is(.topbar, .player-strip, .battle-round-track),
  .game-shell:has(> .main-stage > :is(.map-screen, .question-screen:not(.is-reveal):not(.ad-reveal), .geo-question:not(.is-reveal), .battle-question-stage)) .battle-round-track { display: none !important; }
  .game-shell:has(> .main-stage > :is(.map-screen, .question-screen:not(.is-reveal):not(.ad-reveal), .geo-question:not(.is-reveal), .battle-question-stage)) > .main-stage { padding-top: max(8px, env(safe-area-inset-top)) !important; padding-bottom: max(8px, env(safe-area-inset-bottom)) !important; }
  .main-stage > :is(.question-screen:not(.is-reveal):not(.ad-reveal), .battle-question-stage) .question-heading .question-feedback-buttons { display: none !important; }
  .main-stage > .map-screen .land-info-panel, .main-stage > .map-screen .map-pinch-hint { display: none !important; }
  .main-stage > .map-screen > .land-layout { grid-template-rows: minmax(0, 1fr) !important; }
  .game-shell:not(:has(.ready-skip)) > .main-stage > .map-screen { --frame-ready-h: 0px; padding-bottom: 0 !important; }
}
@media (hover: none) and (pointer: coarse) and (max-width: 932px) {
  /* With the header and strip gone the question has the whole screen: it scales against a 660px design height
     and its heading and answers start bigger. */
  .main-stage > :is(.question-screen:not(.is-reveal):not(.ad-reveal), .battle-question-stage, .geo-question:not(.is-reveal)):not(:has(:is(.number-entry, .word-entry-area, .order-area))) { --fit: clamp(.6px, calc(100dvh / 660), 1px); }
  .main-stage > :is(.question-screen:not(.is-reveal):not(.ad-reveal), .battle-question-stage) .question-heading h1 { font-size: min(8.4vw, calc(30 * var(--fit))) !important; }
  .main-stage > :is(.question-screen:not(.is-reveal):not(.ad-reveal), .battle-question-stage) .answer-option { font-size: min(6vw, calc(22 * var(--fit))) !important; min-height: calc(64 * var(--fit)) !important; }
  .main-stage > :is(.question-screen:not(.is-reveal):not(.ad-reveal), .battle-question-stage) { --countdown-size: calc(52 * var(--fit)); }
  .main-stage > :is(.question-screen:not(.is-reveal):not(.ad-reveal), .battle-question-stage) .question-top .timer span { font-size: calc(23 * var(--fit)) !important; }
}

/* ---------- Emotions: tap to dismiss, and your piece in the corner on phones ---------- */
.emoji-feed-item { font: inherit; text-align: left; cursor: pointer; pointer-events: auto; -webkit-tap-highlight-color: transparent; }
.emoji-quick { display: none; }
@media (hover: none) and (pointer: coarse) and (max-width: 932px) {
  /* Your own emotions show on your corner piece; the side rail carries everyone else's. */
  .emoji-feed-item.is-you { display: none !important; }
  .emoji-feed-item { min-width: 44px; min-height: 44px; justify-content: center; }
  /* While the strip is hidden (map, question, geo), your piece sits in the top-right corner: tap it to send an
     emotion. The menu opens below it. */
  body:has(.game-shell > .main-stage > :is(.map-screen, .question-screen:not(.is-reveal):not(.ad-reveal), .geo-question:not(.is-reveal), .battle-question-stage)) .emoji-quick {
    display: grid; place-items: center; position: fixed; z-index: 70; top: max(8px, env(safe-area-inset-top)); right: max(8px, env(safe-area-inset-right));
    width: 48px; height: 48px; padding: 0; border: 2px solid var(--player, #fff); border-radius: 50%; cursor: pointer;
    background: #140b22d9; box-shadow: 0 6px 18px #0008; -webkit-tap-highlight-color: transparent;
  }
  .emoji-quick .avatar { width: 36px !important; height: 36px !important; }
  .emoji-quick:active { transform: scale(.94); }
  /* Number, word and order questions carry a keypad or list: their heading stays at the compact size. */
  .main-stage > :is(.question-screen:not(.is-reveal):not(.ad-reveal), .battle-question-stage):has(:is(.number-entry, .word-entry-area, .order-area)) .question-heading h1 { font-size: min(6.2vw, calc(24 * var(--fit))) !important; }
}
@media (hover: none) and (pointer: coarse) and (max-width: 932px) {
  
  .main-stage > :is(.question-screen, .battle-question-stage) .number-form input { height: calc(52 * var(--fit)) !important; min-height: 0 !important; }
  .main-stage > :is(.question-screen, .battle-question-stage) .keys-digits .onscreen-key { height: 40px !important; }
  .main-stage > :is(.question-screen, .battle-question-stage) .keys-letters .onscreen-key { height: 42px !important; }
}
@media (hover: none) and (pointer: coarse) and (max-width: 932px) {
  /* With your piece in the corner, other players' emotions line up just under it, clear of the answers and keypad. */
  body:has(.game-shell > .main-stage > :is(.map-screen, .question-screen:not(.is-reveal):not(.ad-reveal), .geo-question:not(.is-reveal), .battle-question-stage)) .emoji-feed {
    top: calc(max(8px, env(safe-area-inset-top)) + 56px) !important; bottom: auto !important; right: max(8px, env(safe-area-inset-right)) !important; flex-direction: column-reverse;
  }
}

/* ---------- Score components always carry their label ----------
   Each component ("+15 Most correct", "+5 Fastest", "+25 Beat the leader ×2") lands on its own beat. The label used to be
   hidden on phones and narrow windows, leaving a bare number; it now shows everywhere, one short line under the points. */
.game-shell > .player-strip .strip-card .player-score-delta { display: inline-flex !important; flex-direction: column !important; align-items: flex-start !important; gap: 1px !important; }
.game-shell > .player-strip .strip-card .player-score-delta small, .game-shell > .player-strip .player-card .player-score-delta small {
  display: block !important; position: static !important; max-width: 100% !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 10px !important; font-weight: 750 !important; line-height: 1.1 !important; color: var(--ad-lime, #D8FF36) !important; opacity: .95;
}
@media (hover: none) and (pointer: coarse) and (max-width: 932px) {
  /* Phones: the pop covers the card's name and score while it shows (3 s), on a solid backing, instead of printing over
     them. The new total appears when it goes. Nothing in the strip changes size. */
  .game-shell > .player-strip .strip-card .player-card-copy { position: relative !important; }
  .game-shell > .player-strip .strip-card .player-card-copy > .player-score-delta-slot:not(:empty) {
    position: absolute !important; inset: 0 !important; translate: none !important; z-index: 3;
    display: flex !important; align-items: center !important; justify-content: flex-start !important;
    background: #1b1029 !important; border-radius: 8px;
  }
  .game-shell > .player-strip .strip-card .player-score-delta { margin: 0 !important; }
  .game-shell > .player-strip .strip-card .player-score-delta b { font-size: 16px !important; }
  /* Long labels ("2nd most correct", "Beat the leader ×2") take a second line rather than an ellipsis. */
  .game-shell > .player-strip .strip-card .player-score-delta small { white-space: normal !important; display: -webkit-box !important; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.05 !important; font-size: 9.5px !important; }
}

/* ---------- Phone landscape: the countdown sits top-left, clear of your corner piece ----------
   Your piece (.emoji-quick, 48px) owns the top-right corner during questions; the countdown used to sit under it, so no
   timer was visible. The heading keeps room on both sides, and the ring never shrinks below 38px (digits hit the arc). */
@media (hover: none) and (pointer: coarse) and (max-width: 932px) and (orientation: landscape) {
  .main-stage .question-top { right: auto !important; left: 4px !important; top: 2px !important; }
  .main-stage .question-heading { margin-left: 58px !important; margin-right: 58px !important; }
  .main-stage, .main-stage > :is(.question-screen, .battle-question-stage) { --countdown-size: max(38px, calc(44 * var(--fit))) !important; }
}

/* ---------- Battle question: the duel pair folds away without a late jump ----------
   The pair folds to nothing ~1 s in, but the stage's 8px gap (and the pair's padding and border) stayed until the pair
   unmounted, so the whole question hopped ~10px at ~2.4 s. The gap is now the pair's own margin, and the fold takes it
   with it: when the pair unmounts nothing is left to move. */
.battle-question-stage { gap: 0 !important; }
.battle-question-stage > .battle-pair { margin-bottom: 8px; }
.battle-question-stage > .battle-pair.is-leaving { animation-name: bp-fold-all !important; }
@keyframes bp-fold-all { from { max-height: 120px; } to { max-height: 0; margin-block: 0; padding-block: 0; border-block-width: 0; } }
/* Nothing sits above the pair here: its phone top margin (!important, which an animation can't fold) would be the jump. */
.main-stage .battle-question-stage > .attack-matchup { margin-top: 0 !important; }

/* ---------- Desktop: everything fits the window ----------
   Question and reveal screens need 1050-1330 design px at full size (measured: keypad + reserved answer table, the
   answer table + votes, Quick 5's five rows), more than the 940 the desktop --fit assumed, so the keypad and bottom
   answers ended up under the fold. The whole shell now scales against the height its tallest screens really need:
   1220 in opening and tile rounds, 1340 in battles (the attack track adds ~128). One value per mode, never per screen,
   so the header, strip and question keep their size and place from question to answered to reveal. */
@media not ((hover: none) and (pointer: coarse) and (max-width: 932px)) {
  .game-shell:has(> .main-stage) { --fit: clamp(.6px, calc(100dvh / 1220), 1px); }
  .game-shell:has(> .battle-round-track) { --fit: clamp(.6px, calc(100dvh / 1340), 1px); }
}
@media not ((hover: none) and (pointer: coarse) and (max-width: 932px)) {
  /* The parts that kept their full size on short windows (measured): like/dislike, Submit, keypad and entry gaps, the
     answer table's margin. They now shrink with everything else. */
  .main-stage :is(.question-upvote-button, .question-report-button) { width: calc(48 * var(--fit)) !important; height: calc(48 * var(--fit)) !important; min-height: 0 !important; padding: calc(8 * var(--fit)) !important; }
  .main-stage :is(.question-upvote-button, .question-report-button) svg { width: calc(22 * var(--fit)) !important; height: calc(22 * var(--fit)) !important; }
  .main-stage :is(.question-screen, .battle-question-stage, .geo-question) button.primary { min-height: calc(44 * var(--fit)) !important; padding-block: calc(10 * var(--fit)) !important; }
  .main-stage .number-form { gap: calc(12 * var(--fit)) !important; }
  .main-stage .number-entry { gap: calc(25 * var(--fit)) !important; }
  .main-stage .ad-results { margin-top: calc(16 * var(--fit)) !important; }
  .main-stage .order-area { gap: calc(10 * var(--fit)) !important; }
}
/* desktop-fit: short windows (820px and under) put each strip piece beside its name and score */
@media (not ((hover: none) and (pointer: coarse) and (max-width: 932px))) and (min-width: 1100px) and (max-height: 820px) {
  .game-shell > .player-strip .player-card.strip-card { display: flex !important; flex-direction: row !important; align-items: center !important; justify-content: center !important; gap: 12px !important; text-align: left !important; }
  .game-shell > .player-strip .player-card.strip-card > .player-card-copy { flex: 0 1 auto !important; align-items: flex-start !important; width: max-content !important; min-width: 0 !important; }
  .game-shell > .player-strip .strip-card .player-name-row, .game-shell > .player-strip .strip-card .player-score-row { justify-content: flex-start !important; }
}
/* desktop-fit: reveal extras scale with the window */
@media not ((hover: none) and (pointer: coarse) and (max-width: 932px)) {
  .main-stage :is(.question-screen, .geo-question, .ad-reveal, .battle-question-stage) .battle-pair .land-player-avatar { width: calc(60 * var(--fit)) !important; height: calc(60 * var(--fit)) !important; }
  .main-stage :is(.question-screen, .geo-question, .ad-reveal, .battle-question-stage) .attack-matchup.battle-pair .land-player-identity { height: calc(60 * var(--fit)) !important; min-height: 0 !important; }
  .main-stage :is(.question-screen, .geo-question, .ad-reveal) > .battle-pair { margin-top: calc(18 * var(--fit)) !important; }
  .main-stage .ad-reveal.ad-kind-rapid > .battle-pair { margin-top: 0 !important; }
  .main-stage .ad-reveal { gap: calc(18 * var(--fit)) !important; }
  .main-stage .ad-rapid-question { gap: calc(12 * var(--fit)) !important; }
  .main-stage .ad-rapid-question .ad-reveal-question { font-size: min(clamp(24px, 3.4vw, 54px), calc(54 * var(--fit))) !important; }
  .main-stage .ad-number-line { --lane-step: max(38px, calc(46 * var(--fit))); height: calc(max(52px, 64 * var(--fit)) + var(--lanes, 1) * var(--lane-step)) !important; margin-top: calc(18 * var(--fit)) !important; margin-bottom: max(32px, calc(44 * var(--fit))) !important; }
  .main-stage .ad-number-line .ad-line-guess { bottom: calc(26px + var(--lane) * var(--lane-step)) !important; }
  .main-stage .ad-number-line .ad-line-truth i { height: calc(max(28px, 40 * var(--fit)) + var(--lanes, 1) * var(--lane-step)) !important; }
  .main-stage .ad-order-truth { gap: calc(8 * var(--fit)) !important; margin-top: calc(18 * var(--fit)) !important; }
  .main-stage .ad-order-step { min-height: max(34px, calc(50 * var(--fit))) !important; padding-block: calc(8 * var(--fit)) !important; }
  .main-stage .ad-order-num { width: max(24px, calc(32 * var(--fit))) !important; height: max(24px, calc(32 * var(--fit))) !important; }
  .main-stage .ad-reveal > .ad-note { margin-top: calc(18 * var(--fit)) !important; }
}
/* desktop-fit: the number keys are two rows of six */
@media not ((hover: none) and (pointer: coarse) and (max-width: 932px)) {
  .main-stage .onscreen-keys.keys-digits { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; max-width: none !important; }
  .main-stage .keys-digits > .onscreen-key-row { display: contents !important; }
  .main-stage .keys-digits .onscreen-key.is-backspace { grid-column: span 2; }
}
/* desktop-fit: order arrows and list gaps scale */
@media not ((hover: none) and (pointer: coarse) and (max-width: 932px)) {
  .main-stage .order-arrows button { height: max(30px, calc(44 * var(--fit))) !important; min-height: 0 !important; }
  .main-stage .order-list { gap: calc(9 * var(--fit)) !important; margin-bottom: calc(20 * var(--fit)) !important; }
}
/* desktop-fit: stable across phases */
@media not ((hover: none) and (pointer: coarse) and (max-width: 932px)) {
  .game-shell > .main-stage:has(> :is(.question-screen, .battle-question-stage, .geo-question, .review-with-votes)) { justify-content: flex-start !important; }
  .game-shell > .player-strip .player-card.strip-card > .player-card-copy { min-height: calc(19px + clamp(16px, 22cqi, 36px)) !important; }
  .main-stage .answered-question-heading h1 { font-size: min(44px, calc(44 * var(--fit))) !important; }
}
/* desktop-fit: the duel pair that opens a battle question bows out over the countdown row instead of pushing the question down */
@media not ((hover: none) and (pointer: coarse) and (max-width: 932px)) {
  .main-stage > .battle-question-stage { position: relative; }
  .main-stage > .battle-question-stage > .battle-pair { position: absolute !important; z-index: 5; top: calc(14 * var(--fit)); left: 0; right: 0; margin: 0 auto !important; }
  .main-stage > .battle-question-stage .question-top .question-clock { transition: opacity 220ms ease; }
  .main-stage > .battle-question-stage > .battle-pair ~ .question-screen .question-top .question-clock { opacity: 0; }
}
/* desktop-fit: map-pin questions fill the stage - map on the left, question on the right, same boxes in every phase */
@media (not ((hover: none) and (pointer: coarse) and (max-width: 932px))) and (min-width: 1101px) {
  .main-stage > .battle-question-stage:has(> .geo-question) { display: flex !important; flex-direction: column !important; flex: 1 1 auto !important; width: 100%; height: 100% !important; max-height: 100% !important; min-height: 0 !important; }
  .main-stage > .geo-question, .main-stage > .battle-question-stage > .geo-question { display: flex !important; flex-direction: column !important; flex: 1 1 auto !important; height: 100% !important; max-height: 100% !important; min-height: 0 !important; padding-bottom: 0 !important; box-sizing: border-box; }
  .main-stage .geo-question > .geo-layout { flex: 1 1 auto !important; width: 100%; height: auto !important; min-height: 0 !important; grid-template-rows: minmax(0, 1fr) !important; align-items: start !important; }
  .main-stage .geo-question .geo-layout > .geo-map { display: flex !important; flex-direction: column !important; width: 100%; height: auto !important; aspect-ratio: 1.62; max-height: 100% !important; min-height: 0 !important; }
  .main-stage .geo-question .geo-map > svg { flex: 1 1 0 !important; width: 100% !important; height: auto !important; aspect-ratio: auto !important; min-height: 0 !important; max-height: none !important; }
  .main-stage .geo-question .geo-layout > .geo-question-copy { position: relative; display: flex !important; flex-direction: column !important; align-self: stretch !important; justify-content: flex-start !important; width: auto !important; height: auto !important; max-height: 100% !important; min-height: 0 !important; margin: 0 !important; }
  .game-shell .main-stage .geo-question.geo-question { --countdown-size: calc(52 * var(--fit)); }
  .main-stage .geo-question .geo-question-copy > .question-topic { order: -2; align-self: flex-start; flex: none; margin: 0 0 6px !important; }
  .main-stage .geo-question .geo-question-copy > :is(.stage-timer, .question-top) { order: -1; flex: none !important; display: flex !important; flex-direction: row !important; align-items: flex-start !important; justify-content: center !important; height: calc(var(--countdown-size) + 21px) !important; min-height: 0 !important; margin: 0 0 calc(12 * var(--fit)) !important; padding: 0 !important; }
  .main-stage .geo-question .geo-question-copy :is(.question-top > .stage-timer, .question-clock) { min-height: 0 !important; margin: 0 !important; padding: 0 !important; }
  .main-stage .geo-question .geo-question-copy .question-clock { gap: 2px !important; }
  .main-stage .geo-question .geo-question-copy .timer { margin: 0 !important; }
  .main-stage .geo-question .geo-question-copy > .stage-title { flex: 0 1 auto !important; min-height: 1.15em; margin: 0 0 calc(12 * var(--fit)) !important; font-size: min(3.7vw, calc(46 * var(--fit))) !important; text-align: left !important; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  .main-stage .geo-question .geo-question-copy > :is(.ad-geo-answer, .question-feedback-buttons, .ad-results, .battle-pair, .primary) { flex: none !important; }
  .main-stage .geo-question .geo-question-copy > .ad-geo-answer { font-size: max(17px, calc(26 * var(--fit))) !important; }
  .main-stage .geo-question:not(.is-reveal) .geo-question-copy > .question-feedback-buttons { position: absolute; top: 0; right: 0; margin: 0 !important; }
  .main-stage .geo-question:not(.is-reveal) .geo-question-copy:has(> .question-topic) > .question-feedback-buttons { top: 36px; }
  .game-shell:has(> .ready-skip) .main-stage .geo-question.is-reveal .geo-question-copy { padding-bottom: 80px !important; box-sizing: border-box; }
}
@media (not ((hover: none) and (pointer: coarse) and (max-width: 932px))) and (min-width: 1101px) and (max-width: 1580px) {
  /* The collapsed attack track floats over the right edge here: keep the question clear of it. */
  .game-shell:has(> .battle-round-track) .main-stage .geo-question > .geo-layout { padding-right: 32px !important; box-sizing: border-box; }
}
@media (not ((hover: none) and (pointer: coarse) and (max-width: 932px))) and (min-width: 1101px) {
  /* The duel pair that opens a battle question floats over the top of the map, so the map and question never move when it leaves. */
  .main-stage > .battle-question-stage:has(> .geo-question) { position: relative; }
  .main-stage > .battle-question-stage:has(> .geo-question) > .battle-pair { position: absolute !important; z-index: 5; top: 12px; left: 0; right: 28%; width: max-content !important; max-width: 60% !important; margin: 0 auto !important; padding: 6px 18px !important; border-radius: 999px !important; background: #140b22e6 !important; }
}
/* desktop-fit: like/dislike sit in the countdown row's right corner during the question too, where the reveal has them */
@media not ((hover: none) and (pointer: coarse) and (max-width: 932px)) {
  .main-stage .question-screen:not(.is-reveal):not(.ad-reveal) { position: relative; }
  .main-stage .question-screen:not(.is-reveal):not(.ad-reveal) > .question-heading { position: static !important; }
  .main-stage .question-screen:not(.is-reveal):not(.ad-reveal) > .question-heading > .question-feedback-buttons { position: absolute !important; top: calc(14 * var(--fit)); right: 0; margin: 0 !important; }
}
/* desktop-fit: the word Hint button keeps its label on one line */
@media not ((hover: none) and (pointer: coarse) and (max-width: 932px)) {
  .main-stage .word-hint-button { width: auto !important; white-space: nowrap !important; }
}
