/* ==========================================================================
   Phone fit (Nov 2026): landscape phones (844x390, 667x375) and small portrait phones (360x640).
   Loaded last, after phone-focus.css. Every rule sits behind the phone query used by mobile.css, fit.css and
   phone-focus.css, so the TV, desktop players and tablets are untouched. No markup depends on this file.

   Landscape  one 46px bar at the bottom (players or your piece, Sound/Profile/Settings, Ready); question, answered
              and reveal share a two-column frame; lobby is one scrolling column with Start pinned.
   Portrait   the folded attack strip sits in the header row; short phones get tighter reveals and a smaller Ready.
   ========================================================================== */
@media (hover: none) and (pointer: coarse) and (max-width: 932px) {
  /* phone-fit: the player strip never changes size, and no piece moves (F8).
     Every player owns one equal column and the strip has one fixed height. The piece sits at the top of its column;
     the name and score appear under it while the card is named (points landing, attacking, defending, a fresh emoji,
     its turn) without moving the piece or anything else. */
  .game-shell > .player-strip.player-strip { --strip-h: 58px; --strip-piece: 26px; display: flex !important; flex-wrap: nowrap !important; align-items: stretch !important; justify-content: stretch !important;
    gap: 0 !important; column-gap: 2px !important; height: var(--strip-h) !important; min-height: var(--strip-h) !important; max-height: var(--strip-h) !important; flex: 0 0 var(--strip-h) !important;
    padding-block: 3px !important; box-sizing: border-box !important; overflow: visible !important; }
  .game-shell > .player-strip.player-strip > .player-card.player-card { flex: 1 1 0 !important; width: auto !important; min-width: 0 !important; max-width: none !important; height: auto !important; min-height: 0 !important;
    display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: flex-start !important; gap: 1px !important; padding: 0 !important; margin: 0 !important; border: 0 !important; container-type: normal !important; }
  .game-shell > .player-strip.player-strip > .player-card .player-score-anchor,
  .game-shell > .player-strip.player-strip > .player-card .player-score-anchor .player-emote-anchor > .avatar { width: var(--strip-piece) !important; height: var(--strip-piece) !important; flex: 0 0 var(--strip-piece) !important; }
  .game-shell > .player-strip.player-strip > .player-card > .player-card-copy { display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: flex-start !important; gap: 0 !important;
    position: relative !important; flex: 1 1 0 !important; align-self: stretch !important; width: auto !important; min-width: 0 !important; min-height: 0 !important; }
  .game-shell > .player-strip.player-strip > .player-card .player-name-row { display: flex !important; justify-content: center !important; align-items: center !important; width: 100% !important; max-width: 100% !important; min-width: 0 !important; height: 11px !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; gap: 0 !important; }
  .game-shell > .player-strip.player-strip > .player-card .player-name { width: auto !important; max-width: 100% !important; min-width: 0 !important; min-height: 0 !important; height: 11px !important; padding: 0 !important; font-size: 10px !important; line-height: 11px !important; text-align: center !important; overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; display: block !important; }
  .game-shell > .player-strip.player-strip > .player-card :is(.you-label, .player-mute-button, .player-meta) { display: none !important; }
  .game-shell > .player-strip.player-strip > .player-card .player-score-row { display: flex !important; justify-content: center !important; align-items: center !important; width: 100% !important; height: 15px !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; gap: 0 !important; }
  .game-shell > .player-strip.player-strip > .player-card .score-total-stack { display: flex !important; align-items: center !important; justify-content: center !important; min-height: 0 !important; height: 15px !important; line-height: 15px !important; }
  .game-shell > .player-strip.player-strip > .player-card .player-score { display: block !important; font-size: 15px !important; line-height: 15px !important; min-height: 0 !important; height: 15px !important; }
  .game-shell > .player-strip.player-strip > .player-card .player-score small { display: none !important; }
  /* Not named: the name and score keep their place but are not shown. */
  .game-shell > .player-strip.player-strip > .player-card:not(.is-named) :is(.player-name-row, .score-total-stack) { display: flex !important; visibility: hidden !important; }
  /* The score pop covers the name and score lines only; the piece stays visible above it. */
  .game-shell > .player-strip.player-strip .strip-card .player-card-copy > .player-score-delta-slot:not(:empty) { inset: -1px 0 -2px 0 !important; justify-content: center !important; border-radius: 6px !important; }
  .game-shell > .player-strip.player-strip .strip-card .player-score-delta { align-items: center !important; text-align: center !important; gap: 0 !important; max-width: 100% !important; }
  .game-shell > .player-strip.player-strip .strip-card .player-score-delta b { font-size: 12px !important; line-height: 11px !important; }
  .game-shell > .player-strip.player-strip .strip-card .player-score-delta small { font-size: 8.5px !important; line-height: 9px !important; text-align: center !important; }
}
@media (hover: none) and (pointer: coarse) and (max-width: 932px) and (orientation: landscape) and (max-height: 500px) {
  /* phone-fit: landscape, one 46px bar at the bottom carries everything around the stage (F2).
     Left: the players (or, where phone-focus.css hides the strip, your corner piece). Right: Sound, Profile, Settings
     and then Ready, docked instead of floating over results. The stage gets 344 of 390px instead of 273. The title is
     dropped during a game (it does nothing there). The bar is out of the page flow and the stage always keeps its
     height clear, so showing or hiding the strip or Ready never moves the stage. */
  .game-shell:has(> .player-strip) { --hud-h: 46px; --hud-ready: 146px; --hud-actions: 150px; }
  .game-shell:has(> .player-strip) > .topbar { position: fixed !important; z-index: 32; left: auto !important; top: auto !important; bottom: env(safe-area-inset-bottom) !important;
    right: calc(var(--phone-inline-end, 10px) + var(--hud-ready)) !important; width: auto !important; height: var(--hud-h) !important; min-height: 0 !important; flex: none !important; padding: 0 !important; margin: 0 !important; }
  .game-shell:has(> .player-strip) > .topbar > .brand { display: none !important; }
  .game-shell:has(> .player-strip) > .topbar > .top-actions { margin: 0 !important; gap: 4px !important; }
  .game-shell:has(> .player-strip) > .topbar .icon-button { width: 40px !important; height: 40px !important; min-width: 40px !important; min-height: 40px !important; flex-basis: 40px !important; }
  .game-shell:has(> .player-strip) > .topbar .profile-top-button { height: 40px !important; min-height: 40px !important; padding: 0 9px !important; font-size: 13px !important; }
  .game-shell > .player-strip.player-strip { --strip-h: var(--hud-h, 46px); --strip-piece: 24px; position: fixed !important; z-index: 31; inset: auto !important; left: var(--phone-inline, 10px) !important; bottom: env(safe-area-inset-bottom) !important;
    right: calc(var(--phone-inline-end, 10px) + var(--hud-ready, 146px) + var(--hud-actions, 150px)) !important; width: auto !important; padding: 2px 0 !important; background: transparent !important; }
  /* In the bar a card reads sideways: piece, then name over score. */
  .game-shell > .player-strip.player-strip > .player-card.player-card { flex-direction: row !important; align-items: center !important; justify-content: flex-start !important; gap: 4px !important; }
  .game-shell > .player-strip.player-strip > .player-card > .player-card-copy { align-items: flex-start !important; justify-content: center !important; align-self: stretch !important; }
  .game-shell > .player-strip.player-strip > .player-card :is(.player-name-row, .player-score-row, .score-total-stack) { justify-content: flex-start !important; }
  .game-shell > .player-strip.player-strip > .player-card .player-name { text-align: left !important; }
  .game-shell > .player-strip.player-strip .strip-card .player-card-copy > .player-score-delta-slot:not(:empty) { inset: 0 !important; justify-content: flex-start !important; }
  .game-shell > .player-strip.player-strip .strip-card .player-score-delta { align-items: flex-start !important; text-align: left !important; }
  .game-shell > .player-strip.player-strip .strip-card .player-score-delta small { text-align: left !important; -webkit-line-clamp: 3 !important; }
  /* Ready: docked at the right end of the bar. */
  .game-shell > .ready-skip.ready-skip { right: var(--phone-inline-end, 10px) !important; bottom: calc(env(safe-area-inset-bottom) + 2px) !important; padding: 1px 1px 1px 8px !important; gap: 6px !important; box-shadow: none !important; animation: none !important; z-index: 32 !important; }
  .game-shell > .ready-skip:not(:has(.ready-skip-count)) { padding-left: 1px !important; }
  .game-shell > .ready-skip .ready-skip-button { min-height: 40px !important; padding: 4px 16px !important; font-size: 16px !important; gap: 0 !important; box-shadow: none !important; }
  .game-shell > .ready-skip .ready-skip-button svg, .game-shell > .ready-skip .ready-skip-count i, .game-shell > .ready-skip .key-hint { display: none !important; }
  .game-shell > .ready-skip .ready-skip-count { font-size: 13px !important; }
  /* Your corner piece, where phone-focus.css puts it bottom-left, sits in the bar. */
  body:has(.game-shell > .player-strip) .emoji-quick:not(#_) { width: 42px !important; height: 42px !important; }
  body:has(.game-shell > .main-stage > :is(.question-screen.is-reveal, .geo-question.is-reveal, .review-with-votes, .battle-outcome, .battle-ready)) .emoji-quick:not(#_) { top: auto !important; right: auto !important; bottom: calc(env(safe-area-inset-bottom) + 2px) !important; left: var(--phone-inline, 10px) !important; }
  /* The stage keeps the bar clear on every screen that shows it (question and map screens hide it and use it all). */
  .game-shell:has(> .player-strip) > .main-stage.main-stage { padding-bottom: calc(var(--hud-h) + 2px) !important; }
  .game-shell:has(> .player-strip):has(> .main-stage > :is(.map-screen, .question-screen:not(.is-reveal):not(.ad-reveal), .geo-question:not(.is-reveal), .battle-question-stage)) > .main-stage.main-stage { padding-bottom: max(8px, env(safe-area-inset-bottom)) !important; }
  /* The attack strip moves up to where the header was; map screens use the whole stage (F5). */
  .game-shell:has(> .player-strip) .battle-round-track { top: calc(env(safe-area-inset-top) + 2px) !important; }
  .game-shell.game-shell:has(> .player-strip) > .main-stage.main-stage { padding-top: max(8px, env(safe-area-inset-top)) !important; }
  .game-shell.game-shell:has(> .player-strip):has(.battle-round-track:not(.is-collapsed)):not(:has(> .main-stage > :is(.question-screen, .geo-question, .review-with-votes, .battle-question-stage, .battle-outcome, .battle-ready, .map-screen))) > .main-stage.main-stage { padding-top: 50px !important; }
  .main-stage.main-stage .land-screen:not(.map-screen) { --frame-ready-h: 0px; padding-bottom: 0 !important; }
  .game-shell:has(.ready-skip) > .main-stage > .map-screen { --frame-ready-h: 46px; }
  .main-stage.main-stage .land-screen { --frame-timer-h: 50px; --frame-header-h: 40px; }
  /* The score board overlay of the reveal (phone-focus.css) uses the room the header left and stays above the bar. */
  .game-shell .pf-board.pf-board.is-overlay { padding-top: calc(8px + env(safe-area-inset-top)) !important; padding-bottom: calc(52px + env(safe-area-inset-bottom)) !important; }
}
@media (hover: none) and (pointer: coarse) and (max-width: 932px) {
  /* phone-fit: answer labels wrap between words; a word is only split when it is longer than the whole line (F13). */
  .main-stage .answer-option > span:not(.option-key) { overflow-wrap: break-word !important; word-break: normal !important; }
  /* phone-fit: lobby seat buttons ("Make host", "Kick") stay on one line each (F4). */
  .lobby .lobby-player-admin { flex-wrap: nowrap !important; min-width: 0; }
  .lobby .lobby-player-admin button { white-space: nowrap !important; overflow-wrap: normal !important; width: auto !important; flex: 0 0 auto !important; padding: 2px 6px !important; font-size: 11px !important; letter-spacing: 0 !important; }
}
@media (hover: none) and (pointer: coarse) and (max-width: 932px) and (orientation: landscape) and (max-height: 500px) {
  /* phone-fit: landscape lobby is one scrolling column with Start always in reach (F4).
     The two-column grid squeezed seats to 71px (buttons wrapped a letter per line) and left Start below the fold. */
  .main-stage > .lobby.lobby, .game-shell .lobby.lobby { display: flex !important; flex-direction: column !important; gap: 6px !important; zoom: 1 !important; height: 100% !important; max-height: 100% !important; min-height: 0 !important;
    overflow-y: auto !important; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; box-sizing: border-box; }
  .lobby.lobby > * { flex: 0 0 auto !important; width: 100% !important; max-width: none !important; min-height: 0; box-sizing: border-box; }
  .lobby.lobby .lobby-players { grid-template-columns: repeat(auto-fill, minmax(188px, 1fr)) !important; grid-template-rows: none !important; grid-auto-rows: auto !important; gap: 6px !important; height: auto !important; }
  .lobby.lobby .lobby-player { display: grid !important; grid-template-columns: 36px minmax(0, 1fr) !important; grid-template-rows: auto auto !important; align-items: center !important; align-content: center !important; gap: 2px 8px !important; padding: 6px 38px 6px 8px !important; min-height: 56px !important; height: auto !important; }
  .lobby.lobby .lobby-player > :first-child { grid-column: 1 !important; grid-row: 1 / span 2 !important; width: 36px !important; height: 36px !important; }
  .lobby.lobby .lobby-player > :not(:first-child):not(.player-mute-button) { grid-column: 2 !important; min-width: 0 !important; }
  .lobby.lobby .lobby-player > strong { font-size: 14px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .lobby.lobby .lobby-player-admin button { min-height: 28px !important; }
  .lobby.lobby .lobby-tabs { height: auto !important; min-height: 44px !important; width: min(100%, 440px) !important; }
  .lobby.lobby .lobby-tabs .lobby-tab { height: 42px !important; min-height: 42px !important; }
  .lobby.lobby .lobby-character { overflow: visible !important; height: auto !important; max-height: none !important; }
  .lobby.lobby > .lobby-bottom { position: sticky !important; bottom: 0 !important; z-index: 6; margin-top: auto !important; padding-top: 8px !important; background: linear-gradient(#140b2800, #140b28 10px) !important; }
}
@media (hover: none) and (pointer: coarse) and (max-width: 932px) {
  /* phone-fit: the number line is as tall as its stacked guesses and the answer pin. Its height shrank with the window
     (--fit) while the guesses kept their 46px steps, so on short phones the top guesses and the pin ran up over the
     results table and the question. */
  .main-stage.main-stage .ad-number-line { height: calc(48px + var(--lanes, 1) * 46px) !important; }
}
@media (hover: none) and (pointer: coarse) and (max-width: 932px) and (orientation: landscape) and (max-height: 500px) {
  /* phone-fit: landscape question, answered and reveal share one frame (F2, F7).
     Left column: countdown, question, then the answers-so-far / results table. Right column: what you answer with
     (options, order list, keypad, letters) and, at the reveal, the answer shown in the same place. The duel row of a
     battle runs full width underneath. Number and word questions already worked this way; multiple choice, Quick 5 and
     order stacked everything, reserved 124px for the table above the answers and pushed options C/D and Submit off the
     screen. The frame is anchored to the top and keeps 58px clear on the right for your corner piece, so nothing moves
     between the three phases. */
  .main-stage.main-stage .question-screen.question-screen { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr) !important; grid-template-rows: auto auto auto minmax(0, 1fr) !important; grid-auto-rows: auto !important;
    align-content: start !important; align-items: start !important; justify-content: stretch !important; justify-items: stretch !important; column-gap: 16px !important; row-gap: 4px !important;
    width: 100% !important; max-width: none !important; height: auto !important; min-height: 0 !important; max-height: none !important; margin: 0 !important; padding: 2px 58px 0 0 !important; box-sizing: border-box !important; }
  .main-stage.main-stage .question-screen.question-screen > * { grid-column: 2 !important; grid-row: auto !important; margin: 0 !important; min-width: 0 !important; width: 100% !important; max-width: none !important; }
  .main-stage.main-stage .question-screen.question-screen > .question-top { grid-column: 1 !important; grid-row: 1 !important; position: relative !important; inset: auto !important; justify-content: center !important; }
  .main-stage.main-stage .question-screen.question-screen > .question-heading { grid-column: 1 !important; grid-row: 2 !important; }
  .main-stage.main-stage .question-screen.question-screen > .question-heading h1 { min-height: 0 !important; font-size: 17px !important; line-height: 1.15 !important; margin: 0 !important; }
  .main-stage.main-stage .question-screen.question-screen > :is(.answer-slot, .ad-results, .ad-answered) { grid-column: 1 !important; grid-row: 3 !important; }
  .main-stage.main-stage .question-screen.question-screen > :is(.answer-options, .order-area, .number-entry, .number-locked, .word-entry-area, .ad-order-truth, .ad-number-line, .ad-cards) { grid-column: 2 !important; grid-row: 1 / span 4 !important; }
  .main-stage.main-stage .question-screen.question-screen > .ad-number-line { margin-bottom: 44px !important; }
  .main-stage.main-stage .question-screen.question-screen > :is(.attack-matchup, .battle-pair) { grid-column: 1 / -1 !important; justify-self: center !important; width: auto !important; }
  /* Options run down the right column, one per row, at a size whole words fit in. */
  .main-stage.main-stage .question-screen.question-screen > .answer-options { grid-template-columns: minmax(0, 1fr) !important; gap: 8px !important; }
  .main-stage.main-stage .question-screen.question-screen > .answer-options.rows-open { padding-top: 18px !important; row-gap: 22px !important; }
  .main-stage.main-stage :is(.question-screen, .review-with-votes) .answer-option { font-size: 15px !important; line-height: 1.15 !important; min-height: 40px !important; padding: 6px 10px !important; gap: 8px !important; }
  .main-stage.main-stage :is(.question-screen, .review-with-votes, .geo-question) .ad-time-row { gap: 5px !important; padding-inline: 4px !important; }
  .main-stage.main-stage :is(.question-screen, .review-with-votes, .geo-question) .ad-time-who { gap: 6px !important; }

  /* Quick 5 reveal: countdown across the top; times, the question picker and the ratings on the left, the picked
     question on the right. */
  .main-stage.main-stage > .review-with-votes { display: grid !important; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) !important; grid-auto-rows: auto !important; align-content: start !important; align-items: start !important;
    column-gap: 14px !important; row-gap: 8px !important; width: 100% !important; max-width: none !important; height: auto !important; min-height: 0 !important; padding: 2px 0 0 !important; }
  .main-stage.main-stage > .review-with-votes > .ad-reveal.ad-kind-rapid { display: contents !important; }
  .main-stage.main-stage > .review-with-votes > :not(.ad-reveal), .main-stage.main-stage > .review-with-votes > .ad-reveal > * { grid-column: 1 !important; margin: 0 !important; min-width: 0 !important; width: 100% !important; max-width: none !important; }
  .main-stage.main-stage > .review-with-votes > .stage-timer { grid-column: 1 / -1 !important; }
  .main-stage.main-stage > .review-with-votes > .ad-reveal > .ad-rapid-question { grid-column: 2 !important; grid-row: 2 / span 4 !important; align-self: start !important; }
  .main-stage.main-stage > .review-with-votes .ad-rapid-question h1 { font-size: 18px !important; line-height: 1.15 !important; min-height: 0 !important; margin: 6px 0 !important; }
  .main-stage.main-stage > .review-with-votes > .rapid-review-votes { flex-wrap: wrap !important; justify-content: center !important; gap: 4px 6px !important; }

  /* Where-is-it, every phase: the map fills the left; the question, answer, table and Lock stack on the right; the
     duel of a battle sits under the map. Under 700px wide it fell back to the portrait stack and the map collapsed. */
  .game-shell > .main-stage.main-stage .geo-question.geo-question { display: block !important; height: 100% !important; max-height: 100% !important; min-height: 0 !important; padding: 0 !important; box-sizing: border-box !important; }
  .game-shell > .main-stage.main-stage .geo-question.geo-question > .geo-layout.geo-layout { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) !important; grid-template-rows: auto auto auto auto minmax(0, 1fr) auto !important; column-gap: 12px !important; row-gap: 4px !important;
    height: 100% !important; max-height: 100% !important; min-height: 0 !important; width: 100% !important; align-content: start !important; align-items: start !important; }
  .game-shell > .main-stage.main-stage .geo-question.geo-question .geo-layout > .geo-map { grid-column: 1 !important; grid-row: 1 / 6 !important; order: 0 !important; align-self: stretch !important; height: 100% !important; max-height: 100% !important; min-height: 0 !important; flex: none !important; width: 100% !important; }
  .game-shell > .main-stage.main-stage .geo-question.geo-question .geo-question-copy { display: contents !important; }
  .game-shell > .main-stage.main-stage .geo-question.geo-question .geo-question-copy > * { grid-column: 2 !important; order: 0 !important; margin: 0 !important; min-width: 0 !important; width: 100% !important; max-width: none !important; }
  .game-shell > .main-stage.main-stage .geo-question.geo-question .geo-question-copy > .stage-title { font-size: 18px !important; line-height: 1.12 !important; text-align: center !important; }
  .game-shell > .main-stage.main-stage .geo-question.geo-question .geo-question-copy > .ad-geo-answer { font-size: 15px !important; line-height: 1.2 !important; text-align: center !important; }
  .game-shell > .main-stage.main-stage .geo-question.geo-question .geo-question-copy > :is(.attack-matchup, .battle-pair) { grid-column: 1 !important; grid-row: 6 !important; justify-self: center; width: auto !important; }
  .game-shell:has(.battle-round-track) .main-stage .geo-question.is-reveal .map-tools { top: 52px !important; }
}
@media (hover: none) and (pointer: coarse) and (max-width: 932px) and (orientation: portrait) {
  /* phone-fit: portrait battles, the folded attack strip sits in the header row over the title.
     It used to hang under the header and every battle screen kept 53px clear for it; that is now stage space.
     Unfolded it drops back under the header as before. */
  .game-shell:has(> .player-strip) .battle-round-track.is-collapsed { top: env(safe-area-inset-top) !important; width: min(200px, calc(100vw - var(--phone-inline, 10px) - var(--phone-inline-end, 10px) - 188px)) !important; z-index: 32; background: #12091e !important; }
  .game-shell:has(> .player-strip):has(.battle-round-track.is-collapsed) > .main-stage.main-stage { padding-top: 4px !important; }
  /* phone-fit: the where-is-it battle reveal fits the stage like the plain one: the map takes the height that is left
     when there is room and never less than 130px (it was fixed at 240px and the table and duel ran 220-390px under the fold). On a phone too short for all of it the stage still scrolls to the duel, as before. */
  .game-shell > .main-stage.main-stage > .geo-question.geo-question.is-reveal:has(.battle-pair) { height: auto !important; max-height: none !important; min-height: 100% !important; padding-bottom: 4px !important; box-sizing: border-box !important; }
  .game-shell > .main-stage.main-stage > .geo-question.geo-question.is-reveal:has(.battle-pair) .geo-map { height: auto !important; flex: 1 1 130px !important; min-height: 130px !important; }
}
@media (hover: none) and (pointer: coarse) and (max-width: 932px) and (orientation: portrait) and (max-height: 700px) {
  /* phone-fit: short portrait phones get a smaller Ready pill and keep less of the stage clear for it. */
  .game-shell > .ready-skip .ready-skip-button { min-height: 44px !important; padding: 8px 20px !important; font-size: 17px !important; }
  .game-shell > .ready-skip .ready-skip-count { font-size: 14px !important; }
  .game-shell > .ready-skip.ready-skip { padding: 4px 4px 4px 10px !important; bottom: calc(var(--ready-strip-h, 58px) + 4px) !important; }
  .game-shell:has(.ready-skip) > .main-stage.main-stage { padding-bottom: 58px !important; }
  .main-stage.main-stage .land-screen { --frame-ready-h: 56px; }
}
@media (hover: none) and (pointer: coarse) and (max-width: 932px) and (orientation: landscape) and (max-height: 500px) {
  /* phone-fit: landscape final. The ranking and the highlight reel were squeezed into one 206px box and printed over
     each other. The ranking comes first and the panel scrolls; the reel follows it, compact. */
  .main-stage.main-stage .final-screen.land-screen { --frame-timer-h: 0px; }
  .main-stage.main-stage .final-screen.land-screen > .stage-timer.is-empty { display: none !important; }
  .main-stage.main-stage .final-screen.land-screen { grid-template-rows: var(--frame-header-h) minmax(0, 1fr) auto !important; }
  .main-stage.main-stage .final-screen > .land-layout.final-layout { grid-template-columns: minmax(0, 1fr) minmax(280px, 1.1fr) !important; }
  .main-stage.main-stage .final-screen .land-sidecar.final-ranking { display: flex !important; flex-direction: column !important; justify-content: flex-start !important; gap: 3px !important; height: 100% !important; max-height: 100% !important; min-height: 0 !important;
    overflow-y: auto !important; overscroll-behavior: contain; padding: 4px 6px !important; box-sizing: border-box !important; }
  .main-stage.main-stage .final-screen .land-sidecar.final-ranking > * { flex: 0 0 auto !important; }
  .main-stage.main-stage .final-screen .land-sidecar.final-ranking > .highlight-reel { order: 5; margin-top: 4px; }
}
@media (hover: none) and (pointer: coarse) and (max-width: 932px) and (orientation: landscape) and (max-height: 500px) {
  /* phone-fit: landscape question frames hang from the top of the stage. Centred, the frame sat at a different height
     on every screen and moved when the bar came back at the reveal. */
  .game-shell > .main-stage.main-stage:has(> :is(.question-screen, .battle-question-stage, .review-with-votes, .geo-question)) { justify-content: flex-start !important; align-content: start !important; }
  .main-stage.main-stage > .battle-question-stage { justify-content: flex-start !important; height: auto !important; min-height: 0 !important; width: 100% !important; }
  .main-stage.main-stage :is(.question-screen, .review-with-votes) .answer-option { font-size: 16px !important; min-height: 42px !important; }
}
@media (hover: none) and (pointer: coarse) and (max-width: 932px) and (orientation: landscape) and (max-height: 500px) {
  /* phone-fit: in the half-width results table the name keeps room: smaller figures and narrower detail columns. */
  .main-stage.main-stage :is(.question-screen, .geo-question) .ad-time-row { --detail-w: 60px; grid-template-columns: minmax(0, 1fr) auto minmax(46px, max-content) var(--detail-w, 0px) 16px 30px !important; }
  .main-stage.main-stage :is(.question-screen, .geo-question) :is(.ad-time-value, .ad-time-who b) { font-size: 13px !important; }
  .main-stage.main-stage :is(.question-screen, .geo-question) .ad-time-who .avatar { width: 22px !important; height: 22px !important; }
  .main-stage.main-stage .question-screen.question-screen > .answer-options.rows-open { padding-top: 22px !important; }
}
@media (hover: none) and (pointer: coarse) and (max-width: 932px) and (orientation: portrait) and (max-height: 700px) {
  /* phone-fit: short portrait phones (360x640): reveals scale against 1000px instead of 800, so the table, the answers
     and the duel of a battle fit above Ready more often; the Quick 5 question uses a smaller heading. */
  .main-stage.main-stage > :is(.question-screen.is-reveal, .review-with-votes, .geo-question.is-reveal) { --fit: clamp(.6px, calc(100dvh / 1000), 1px); --ad-row-step: calc(36 * var(--fit)); }
  .main-stage.main-stage > .review-with-votes .ad-rapid-question h1 { font-size: 18px !important; line-height: 1.15 !important; min-height: 0 !important; margin: 6px 0 !important; }
  .main-stage.main-stage > .question-screen.is-reveal > .ad-results ~ * { margin-top: 10px !important; }
}
@media (hover: none) and (pointer: coarse) and (max-width: 932px) and (orientation: portrait) and (max-height: 700px) {
  /* phone-fit: short portrait battle reveals end above Ready. The topic chip of the where-is-it reveal shares the
     countdown row (it had a 42px row to itself); the duel row sits close under the answers. */
  .game-shell > .main-stage.main-stage > .geo-question.is-reveal .geo-question-copy > .topic-chip { position: relative; z-index: 2; align-self: flex-start; margin-bottom: -42px !important; }
  .game-shell > .main-stage.main-stage > .geo-question.is-reveal .geo-question-copy > .ad-results { margin-bottom: 0 !important; }
  .game-shell > .main-stage.main-stage > .geo-question.is-reveal .geo-question-copy > :is(.attack-matchup, .battle-pair) { margin-top: 2px !important; }
  .main-stage.main-stage > .question-screen.is-reveal > :is(.attack-matchup, .battle-pair) { margin-top: 0 !important; }
}
@media (hover: none) and (pointer: coarse) and (max-width: 932px) and (orientation: landscape) and (max-height: 500px) {
  /* phone-fit: landscape order reveal. The note ("Nobody got it") sits under the table, clear of the duel; the detail
     column fits "2 misplaced". */
  .main-stage.main-stage .question-screen.question-screen > .ad-note { grid-column: 1 !important; grid-row: 4 !important; align-self: start !important; text-align: center; font-size: 13px !important; }
  .main-stage.main-stage .question-screen.ad-kind-order .ad-time-row { --detail-w: 70px; }
  .main-stage.main-stage .question-screen.ad-kind-order .ad-time-detail { font-size: 12px !important; }
}
@media (hover: none) and (pointer: coarse) and (max-width: 740px) and (orientation: landscape) and (max-height: 500px) {
  /* phone-fit: battle result on a 667px-wide phone. Two board columns of 140px cut names and overlapped totals; four
     players or fewer get one column of full rows. */
  .main-stage.main-stage > .battle-outcome { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) !important; column-gap: 10px !important; }
  .main-stage.main-stage > .battle-outcome .pf-board:not(.pf-size-some):not(.pf-size-many) .pf-rows { grid-template-columns: minmax(0, 1fr) !important; gap: 5px !important; }
  .main-stage.main-stage > .battle-outcome .pf-board:not(.pf-size-some):not(.pf-size-many) .pf-row { padding: 5px 10px 5px 9px !important; row-gap: 3px !important; }
}
@media (hover: none) and (pointer: coarse) and (max-width: 740px) and (orientation: landscape) and (max-height: 500px) {
  .main-stage.main-stage > .battle-outcome .pf-legend { flex-wrap: nowrap !important; gap: 4px !important; }
  .main-stage.main-stage > .battle-outcome .pf-legend li { font-size: 11px !important; padding: 3px 7px !important; }
  .main-stage.main-stage > .battle-outcome .pf-board-card { gap: 6px !important; }
  .main-stage.main-stage > .battle-outcome .attack-matchup .land-player-name { font-size: 14px !important; white-space: nowrap !important; overflow-wrap: normal !important; word-break: normal !important; }
  .main-stage.main-stage > .battle-outcome .attack-matchup { column-gap: 4px !important; gap: 4px !important; }
}


/* ==========================================================================
   Phone pick bar (Nov 2026). Markup: MapPickBar in js/screens/map-action-screen.js.
   Claim and attack screens on phones have no side panel (fit.css hides it), so one fixed-height row under the map
   carries what the panel does on desktop: the pick order, what the chooser is on right now (live), and on your
   turn the Submit button ("Claim tile" / "Attack", the same action the desktop button sends).
   The row keeps its height whether it shows the status or the button, so the map never moves when you tap a tile.
   Portrait: it stops 44px (plus the safe area) above the bottom edge, clear of the score sheet's arrow tab.
   Desktop, tablets and the TV never show it.
   ========================================================================== */
.map-pick-bar { display: none; }
@media (hover: none) and (pointer: coarse) and (max-width: 932px) {
  .main-stage.main-stage > .map-screen.land-screen { grid-template-rows: var(--frame-timer-h) var(--frame-header-h) minmax(0, 1fr) auto !important; }
  .main-stage > .map-screen > .map-pick-bar {
    grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 10px; box-sizing: border-box; min-width: 0;
    height: 52px; margin: 4px 0 8px; padding: 0 6px; font-family: var(--ad-font-ui, system-ui, sans-serif); color: var(--ad-ink, #F7F2FF);
  }
  .map-pick-turns { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
  .map-pick-turn { position: relative; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; box-sizing: border-box; border: 2px solid transparent; }
  .map-pick-turn .avatar { width: 24px !important; height: 24px !important; animation: none !important; }
  .map-pick-turn.is-done { opacity: .45; }
  .map-pick-turn.is-done::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; background: var(--ad-lime, #D8FF36) center / 8px 8px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' fill='none' stroke='%231b1029' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
  .map-pick-turn.is-now { border-color: var(--player, #D8FF36); background: #ffffff14; }
  .map-pick-bar:not(.has-pick):not(.is-sent) .map-pick-turn.is-now { animation: map-pick-pulse 1.4s ease-in-out infinite; }
  .map-pick-turn.is-rival { border-color: var(--player, #fff); border-style: dashed; }
  .map-pick-turn.is-next { opacity: .8; }
  .map-pick-more { font-size: 12px; font-weight: 700; color: var(--ad-ink-soft, #C9B8E6); }
  .map-pick-status { display: flex; align-items: center; min-width: 0; margin: 0; font-size: 15px; font-weight: 700; line-height: 1.2; white-space: pre; overflow: hidden; }
  .map-pick-status svg { flex: 0 0 auto; margin-right: 6px; }
  .map-pick-name { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .map-pick-doing { flex: 0 0 auto; }
  .map-pick-bar.is-sent .map-pick-status { color: var(--ad-lime, #D8FF36); }
  .main-stage > .map-screen > .map-pick-bar > .primary.map-pick-submit { width: min(100%, 340px); min-height: 48px !important; height: 48px; padding: 0 20px !important; font-size: 17px !important; justify-content: center; margin: 0 !important; animation: map-pick-in 180ms ease-out both; }
  @keyframes map-pick-pulse { 50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--player, #D8FF36) 35%, transparent); } }
  @keyframes map-pick-in { from { opacity: 0; transform: translateY(6px); } }
}
@media (hover: none) and (pointer: coarse) and (max-width: 932px) and (orientation: portrait) {
  .main-stage > .map-screen > .map-pick-bar { margin-bottom: calc(44px + env(safe-area-inset-bottom)); }
}
@media (hover: none) and (pointer: coarse) and (max-width: 932px) and (orientation: landscape) {
  .main-stage > .map-screen > .map-pick-bar { height: 44px; margin: 2px 0 4px; }
  .main-stage > .map-screen > .map-pick-bar > .primary.map-pick-submit { min-height: 40px !important; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .map-pick-turn.is-now, .map-pick-submit { animation: none !important; }
}

/* ===== Geo question: gestures and Submit (geo/map agent block, keep together) =====
   The map svg must own its touches on every touch device. The rule in mobile.css sits inside the phone media query, so a
   phone that reports hover:hover (stylus phones, a paired mouse) skipped it: a pinch on the map then zoomed the whole page
   and pushed Submit off screen. */
.geo-map > svg { touch-action: none !important; }
@media (hover: none) and (pointer: coarse) and (max-width: 932px) {
  /* A pinch whose second finger lands on the caption strip or the zoom pill joins the map gesture (GeoMap adopts it in
     components.js). touch-action: none stops the browser from cancelling that finger to start a page pan. */
  .geo-question:not(.is-reveal) :is(.geo-map, .map-credit, .map-tools) { touch-action: none !important; }
  /* Before a pin is placed Submit is disabled. At the global 42% opacity it read as missing; here it stays a clear button. */
  .geo-question:not(.is-reveal) .geo-question-copy > button.primary:disabled { opacity: 1 !important; color: var(--ad-ink-soft, #C9B8E6) !important; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ad-lime, #D8FF36) 55%, transparent) !important; }
}
@media (hover: none) and (pointer: coarse) and (max-width: 932px) and (orientation: portrait) {
  /* Same for a second finger on the clock, the topic chip or the question above the map. Portrait only: in landscape a long
     question scrolls inside its column. */
  .geo-question:not(.is-reveal) .geo-question-copy > :is(.stage-timer, .stage-title, .question-topic, .ad-geo-answer) { touch-action: none !important; }
}
/* Territory map size on portrait phones. Every map screen kept a 168px side panel under the map (after-dark.css), even
   when its content was one 60px "Last move" card, and the final screen kept a 66px row for a countdown it never shows.
   The map got what was left: 240px tall on the recap, 244px after the topic is named, 121px on the final screen. */
@media (hover: none) and (pointer: coarse) and (max-width: 932px) and (orientation: portrait) {
  /* Recap and topic screens: the panel is as tall as its content, up to the old fixed height; the map takes the rest. */
  .main-stage.main-stage :is(.intermission, .topic-screen).land-screen > .land-layout { grid-template-rows: minmax(0, 1fr) auto !important; }
  .main-stage.main-stage :is(.intermission, .topic-screen).land-screen > .land-layout > .land-sidecar { height: auto !important; max-height: var(--frame-side-h) !important; }
  /* The stage already ends above the player strip, and the Ready pill reaches only ~8px into this screen: the 76px kept
     clear under the panel was mostly empty. A topic screen whose countdown is not running gives its 66px row to the map. */
  .main-stage.main-stage :is(.intermission, .topic-screen).land-screen { --frame-ready-h: 20px; }
  .main-stage.main-stage .topic-screen.land-screen:has(> .stage-timer.is-empty) { --frame-timer-h: 0px; }
  .main-stage.main-stage .topic-screen.land-screen > .stage-timer.is-empty { height: 0 !important; min-height: 0 !important; overflow: hidden !important; }
  /* Final screen: no countdown row, and the bottom keeps room for the score sheet's 28px arrow tab only (there is no Ready
     bar here). Standings and recap card keep their natural height; the map takes the rest. */
  .main-stage.main-stage .final-screen.land-screen { --frame-timer-h: 0px; padding-bottom: calc(40px + env(safe-area-inset-bottom)) !important; grid-template-rows: var(--frame-header-h) minmax(0, 1fr) auto !important; }
  .main-stage.main-stage .final-screen.land-screen > .stage-timer.is-empty { display: none !important; }
  .main-stage.main-stage .final-screen > .land-layout.final-layout { grid-template-rows: minmax(96px, 1fr) auto !important; }
  /* The in-map "Pinch to zoom" line sat over the bottom tiles once the map filled its box. The final map is a summary:
     it still zooms, without the label. */
  .main-stage.main-stage .final-screen .final-map .map-pinch-hint { display: none; }
}
/* ===== end geo question block ===== */
