/* Party Pad TV (host page) layout tweaks for group a games: larger shared content, no per-player detail the phones already show. Loaded after games.css. */

/* Group a games (Who Said It?, Hot Seat, Pop Quiz, Survey Showdown, Fake Expert,
   Mad Libs, Bookends, Chainlink, Draftdown) wrap each TV screen in a .tva div.
   It takes no space of its own, so the board's column layout is unchanged; it only
   scopes these rules. The phones hold each player's private details, so what is
   left on the TV is sized for reading from the couch. host.js scales the whole
   board to fill the screen, so everything here is in board pixels. */
.tva { display:contents; }

/* ── Shared pieces ───────────────────────────────────────────────────────── */
body.in-game .tva .prompt-card { max-width:none; padding:22px 30px; }
body.in-game .tva .prompt-card .kicker { font-size:1.3rem; }
body.in-game .tva .sub-tracker,
body.in-game .tva .scorestrip { gap:10px; }
body.in-game .tva .sub-tracker .pchip,
body.in-game .tva .scorestrip .pchip { font-size:1.45rem; padding:.3em .8em; }
body.in-game .tva .timer-label { font-size:2.1rem; line-height:1.1; }
body.in-game .tva .big-status h1 { font-size:4rem; }
body.in-game .tva .big-status .emoji { font-size:5rem; }
body.in-game .tva > h1 { font-size:4.5rem; }
body.in-game .tva h2 { font-size:2.2rem; margin:0; }

/* Final standings (shared leaderboard and the games' own) */
body.in-game .tva .results-hero h1 { font-size:3.6rem; }
body.in-game .tva .champ-line { font-size:2.6rem; }
body.in-game .tva .leaderboard { max-width:860px; gap:12px; }
body.in-game .tva .lb-row { padding:14px 22px; gap:18px; }
body.in-game .tva .lb-rank { font-size:2.2rem; width:60px; }
body.in-game .tva .lb-ava { font-size:2.5rem; }
body.in-game .tva .lb-name { font-size:2.1rem; }
body.in-game .tva .lb-score { font-size:2.1rem; }

/* Who-guessed-what rows (Who Said It? and Hot Seat reveals): side by side cards */
body.in-game .tva .hs-guesses { flex-direction:row; flex-wrap:wrap; justify-content:center; max-width:none; gap:12px; }
body.in-game .tva .hs-guess { flex:0 1 auto; font-size:1.6rem; padding:10px 18px; gap:12px; }
body.in-game .tva .hs-guess .ava { font-size:1.9rem; }
body.in-game .tva .hs-guess .nm { flex:none; }
body.in-game .tva .hs-guess .mk { min-width:0; }

/* ── Who Said It? ────────────────────────────────────────────────────────── */
body.in-game .tva-wsi .wsi-card { max-width:none; width:100%; }
body.in-game .tva-wsi .wsi-prompt { font-size:2.7rem; line-height:1.15; text-wrap:balance; }
body.in-game .tva-wsi .wsi-answer { font-size:5rem; line-height:1.05; overflow-wrap:break-word; }
body.in-game .tva-wsi .wsi-author { font-size:2.6rem; }
body.in-game .tva-wsi .wsi-author .ava { font-size:3rem; }
body.in-game .tva-wsi .wsi-card .muted { font-size:1.7rem; margin:8px 0 0; }

/* ── Hot Seat ────────────────────────────────────────────────────────────── */
body.in-game .tva-hs .hotseat-subject { font-size:2rem; }
body.in-game .tva-hs .hotseat-subject .ava { font-size:2.4rem; }
body.in-game .tva-hs .hs-answer { font-size:8rem; }
body.in-game .tva-hs .hs-reveal .big { font-size:2.8rem; margin-top:4px; }

/* ── Pop Quiz ────────────────────────────────────────────────────────────── */
body.in-game .tva-pq .pq-card .pq-q { font-size:3.6rem; line-height:1.1; }
body.in-game .tva-pq .pq-opts { gap:14px; }
body.in-game .tva-pq .pq-opt { min-height:96px; padding:14px 20px; }
body.in-game .tva-pq .pq-opt .pq-letter { width:60px; height:60px; font-size:1.8rem; }
body.in-game .tva-pq .pq-opt .pq-text { font-size:2.5rem; }
body.in-game .tva-pq .pq-opt .pq-pickers { font-size:2.1rem; }
body.in-game .tva-pq .pq-verdict { font-size:2.2rem; margin:0; }
body.in-game .tva-pq .pq-timer { margin:0 auto; }

/* ── Survey Showdown ─────────────────────────────────────────────────────── */
body.in-game .tva-ss .ss-head .big { font-size:5rem; }
body.in-game .tva-ss .ss-head-sm { padding:14px 26px; }
body.in-game .tva-ss .ss-head-sm .big { font-size:2.8rem; margin-top:2px; }
/* Two columns, #1 to #3 down the left, so the board reads wide, not tall. */
body.in-game .tva-ss .survey-board { display:block; columns:2; column-gap:16px; max-width:none; }
body.in-game .tva-ss .survey-row { break-inside:avoid; margin-bottom:12px; padding:12px 18px; }
body.in-game .tva-ss .sr-rank { font-size:1.5rem; min-width:48px; }
body.in-game .tva-ss .sr-text { font-size:2.2rem; line-height:1.1; }
body.in-game .tva-ss .sr-claim .ava { font-size:2rem; }
body.in-game .tva-ss .sr-pts { font-size:2.2rem; }
body.in-game .tva-ss .ss-miss { font-size:1.5rem; text-align:center; margin:0; }

/* ── Fake Expert ─────────────────────────────────────────────────────────── */
body.in-game .tva-fe .fe-words { max-width:none; gap:12px; }
body.in-game .tva-fe .fe-word { font-size:2.2rem; }
body.in-game .tva-fe .fe-vote-head .big { font-size:3rem; }
body.in-game .tva-fe .fe-clues { display:grid; grid-template-columns:1fr 1fr; gap:12px; max-width:none; }
body.in-game .tva-fe .fe-clue { padding:12px 20px; gap:14px; }
body.in-game .tva-fe .fe-clue .ava { font-size:2.2rem; }
body.in-game .tva-fe .fe-clue .nm { font-size:1.6rem; min-width:0; }
body.in-game .tva-fe .fe-clue .cw { font-size:2.8rem; overflow-wrap:anywhere; }
body.in-game .tva-fe .fe-verdict { font-size:3.4rem; }
body.in-game .tva-fe .fe-reveal { font-size:2.4rem; }
body.in-game .tva-fe .fe-reveal .ava { font-size:2.8rem; }
body.in-game .tva-fe .fe-result .big { font-size:3.6rem; margin:4px 0 0; }
body.in-game .tva-fe .fe-result .muted { font-size:1.6rem; margin:6px 0 0; }

/* ── Mad Libs ────────────────────────────────────────────────────────────── */
body.in-game .tva-ml .ml-head .big { font-size:4.6rem; }
body.in-game .tva-ml .ml-reveal { max-width:none; width:100%; }
body.in-game .tva-ml .ml-story { font-size:2.5rem; line-height:1.5; }
body.in-game .tva-ml .ml-modes { max-width:none; }
body.in-game .tva-ml .ml-mode-card h2 { font-size:2.6rem; }
body.in-game .tva-ml .ml-mode-card p { font-size:1.5rem; }
body.in-game .tva-ml .lobby-hero.compact h1 { font-size:3.6rem; }
body.in-game .tva-ml .lobby-hero.compact p { font-size:1.8rem; }

/* ── Bookends ────────────────────────────────────────────────────────────── */
body.in-game .tva-be .be-letter { font-size:9rem; line-height:1; }
body.in-game .tva-be .be-blank { font-size:5rem; }
body.in-game .tva-be .be-head-sm .be-letter { font-size:4.5rem; }
body.in-game .tva-be .be-head-sm .be-blank { font-size:2.6rem; }
body.in-game .tva-be .reveal-words { display:grid; grid-template-columns:1fr; gap:10px; max-width:1000px; }
/* A big party gets two columns so the list stays short. */
body.in-game .tva-be .reveal-words:has(> :nth-child(5)) { grid-template-columns:1fr 1fr; max-width:none; }
body.in-game .tva-be .rw-row { padding:10px 18px; gap:14px; }
body.in-game .tva-be .rw-ava { font-size:2rem; }
body.in-game .tva-be .rw-name { font-size:1.6rem; min-width:0; }
body.in-game .tva-be .rw-word { font-size:2.4rem; }
body.in-game .tva-be .rw-note { font-size:1.25rem; line-height:1.15; text-align:right; }
body.in-game .tva-be .rw-pts { font-size:2rem; font-weight:800; }

/* ── Chainlink ───────────────────────────────────────────────────────────── */
body.in-game .tva-cl .cl-kicker { font-size:1.5rem; color:var(--accent); text-align:center; }
body.in-game .tva-cl .chain { max-width:none; gap:12px; }
body.in-game .tva-cl .link { font-size:3.6rem; }
body.in-game .tva-cl .chain-arrow { font-size:2.6rem; }
body.in-game .tva-cl .finish-order { display:grid; grid-template-columns:1fr 1fr; gap:10px; max-width:none; }
body.in-game .tva-cl .fo-row { font-size:1.7rem; padding:10px 16px; }
body.in-game .tva-cl .fo-row .pill { font-size:1.5rem; }
body.in-game .tva-cl .results-hero .muted { font-size:1.3rem; }

/* ── Draftdown ───────────────────────────────────────────────────────────── */
body.in-game .tva-dd .dd-head .big { font-size:4.4rem; }
body.in-game .tva-dd .draft-options-host { flex-direction:row; flex-wrap:wrap; justify-content:center; max-width:none; gap:12px; }
body.in-game .tva-dd .do-host { flex:0 1 auto; padding:12px 20px; gap:14px; }
body.in-game .tva-dd .do-price { font-size:2.2rem; min-width:0; }
body.in-game .tva-dd .do-host b { font-size:2.1rem; }
body.in-game .tva-dd .cat-grid { max-width:none; }
body.in-game .tva-dd .cat-chip { font-size:1.8rem; }
body.in-game .tva-dd .dd-title { text-align:center; }
body.in-game .tva-dd .dd-title h1 { font-size:3.2rem; line-height:1.05; margin:0; }
body.in-game .tva-dd .dd-title .kicker { font-size:1.2rem; color:var(--accent); margin-top:6px; }
body.in-game .tva-dd .dd-title .muted { font-size:1.4rem; margin:6px 0 0; }
/* Team cards: the category label sits above each pick, so picks get the card's
   full width and wrap less at a bigger size. */
body.in-game .tva-dd .reveal-grid { grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); max-width:none; gap:14px; }
body.in-game .tva-dd .team-card { padding:14px 16px; }
body.in-game .tva-dd .tc-owner { font-size:1.5rem; }
body.in-game .tva-dd .tc-owner .ava { font-size:1.9rem; }
body.in-game .tva-dd .tc-list li { display:grid; grid-template-columns:1fr auto; column-gap:8px; row-gap:0; padding:4px 0; }
body.in-game .tva-dd .tc-cat { grid-column:1 / -1; min-width:0; font-size:.95rem; }
body.in-game .tva-dd .tc-pick { font-size:1.45rem; line-height:1.15; }
body.in-game .tva-dd .tc-price { font-size:1.45rem; }
body.in-game .tva-dd .tc-total { font-size:1.35rem; }
body.in-game .tva-dd .tc-owner .pill { font-size:.95rem; }
body.in-game .tva-dd .tc-ai-label { font-size:.95rem; }
body.in-game .tva-dd .tc-votes { font-size:1.6rem; }
body.in-game .tva-dd .tc-ai-score { font-size:2rem; }
body.in-game .tva-dd .tc-ai-note { font-size:1.25rem; }
body.in-game .tva-dd .team-card.big { max-width:640px; }
body.in-game .tva-dd .team-card.big .tc-pick { font-size:1.9rem; }
body.in-game .tva-dd .dd-howwon,
body.in-game .tva-dd .ai-verdict { font-size:1.4rem; }
body.in-game .tva-dd .ai-badge { font-size:1.05rem; }

/* Pop Quiz setup: a read-only summary of what the party host has picked */
body.in-game .tva-pq .pq-summary .big { font-size:4.6rem; }
body.in-game .tva-pq .pq-sum { display:flex; flex-wrap:wrap; justify-content:center; gap:12px; margin-top:16px; }
body.in-game .tva-pq .pq-sum-tag { font-size:2.2rem; font-weight:800; padding:.25em .8em; border-radius:var(--r-pill);
  background:var(--card-2); border:3px solid var(--line); }
body.in-game .tva-pq .pq-sum-topics { font-size:1.8rem; font-weight:700; color:var(--ink-dim); margin-top:14px; text-wrap:balance; }
body.in-game .tva-pq .pq-sum-note { font-size:1.6rem; color:var(--ink-dim); margin:0; }

/* ── Didn't answer (every game above, plus Pictionary's .pic-tv) ────────────
   A player who didn't answer, pick or vote is called out plainly: never dimmed
   away like a wrong answer, never shown with a pick they didn't make.
   .noans-line is a yellow note, readable on the board and inside a card alike;
   .noans marks that player's row, chip or slot. */
body.in-game .tva .noans-line,
body.in-game .pic-tv .noans-line { align-self:center; max-width:100%; box-sizing:border-box; margin:0;
  font-size:1.5rem; font-weight:800; line-height:1.25; text-align:center; text-wrap:balance;
  color:var(--ink); background:var(--warn); border:3px solid var(--line); border-radius:var(--r-md); padding:.3em 1em; }
body.in-game .tva .noans { opacity:1; }
body.in-game .tva .hs-guess.noans,
body.in-game .tva .rw-row.noans,
body.in-game .tva .fe-clue.noans { border-style:dashed; border-color:var(--warn); }
body.in-game .tva .hs-guess.noans .gv,
body.in-game .tva .rw-row.noans .rw-word,
body.in-game .tva .fe-clue.noans .cw,
body.in-game .tva .tc-pick.noans { color:var(--bad); font-style:italic; text-decoration:none; }
body.in-game .tva .fe-clue.noans .cw { font-size:2rem; }
body.in-game .tva-be .rw-row.noans .rw-word { font-size:1.8rem; }
body.in-game .pic-tv .pchip.noans { border-style:dashed; }

/* Draftdown round results: which round of the match, and the running vote points */
body.in-game .tva-dd .dd-round { font-size:1.4rem; color:var(--accent); margin-bottom:4px; }
body.in-game .tva-dd .dd-totals { display:flex; flex-direction:column; align-items:center; gap:8px; }
body.in-game .tva-dd .dd-totals .kicker { font-size:1.3rem; color:var(--accent); }
