/* Meekijken op een groot scherm: tv, beamer, digibord of stream (scripts/meekijken.md).
   Een groot scherm is een vaste meekijker (server: room.addScreen). body.is-screen zet app.js.
   Laptop en telefoon als speler veranderen niet: alles hier hangt aan .is-screen of aan de
   meekijkknop op het startscherm. telefoon.css blijft het laatste stijlblad. */

/* ── De keuze bij binnenkomen: naast meedoen ── */
.watch-choice { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 12px; }
.watch-choice .small { margin: 0; }
.watch-choice .btn svg, .watch-invite svg, .screens-line svg, .screen-wait svg { width: 18px; height: 18px; vertical-align: -3px; }
.panel .watch-choice { padding-top: 12px; border-top: 1px solid var(--color-line, rgba(255,255,255,.12)); }

/* ── Wachtkamer: hoeveel schermen er meekijken ── */
.screens-line { margin-top: 10px; }
.screens-line > .small { display: flex; align-items: center; gap: 4px; margin: 0; }
.screens { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.screens li { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 32px; }
.screens .name { font-size: 14px; color: var(--color-muted); }

/* ── Het grote scherm zelf ── */
/* Geen eigen cabine bij de brug: dit scherm speelt niet mee. */
body.is-screen .landing-cabin { display: none; }

/* Wachtkamer op afstand leesbaar: grote code en link, geen kiezer. */
body.is-screen .code-card .code-big { font-size: clamp(72px, 9vw, 150px); line-height: 1; }
body.is-screen .code-card .invite-link { font-size: clamp(18px, 1.6vw, 28px); }
body.is-screen .code-card .small, body.is-screen .code-card .hint { font-size: clamp(15px, 1.2vw, 22px); }
body.is-screen .players .name { font-size: clamp(17px, 1.35vw, 26px); }
body.is-screen[data-phase="lobby"] .section-title { font-size: clamp(18px, 1.4vw, 28px); }
.screen-wait { display: flex; align-items: center; gap: 8px; }
body.is-screen .screen-wait { font-size: clamp(16px, 1.3vw, 24px); }
body.is-screen .screen-wait svg { flex: none; width: 1.2em; height: 1.2em; }

/* Tijdens het spel: grote vraag, grote cabinelabels en randlabels. */
body.is-screen .question-card { max-width: max(420px, min(1080px, calc(100% - 520px))); padding: 14px 30px 16px; }
body.is-screen .question-card .prompt { font-size: clamp(30px, 3.1vw, 58px); }
body.is-screen .question-card .q-head { font-size: clamp(15px, 1.1vw, 21px); }
body.is-screen .question-card .q-head .status-line { font-size: clamp(14px, 1vw, 20px); }
body.is-screen .question-card .title { font-size: clamp(22px, 2vw, 40px); }
body.is-screen .cabin-name { font-size: clamp(15px, 1.05vw, 21px); }
body.is-screen .cabin-tag strong { font-size: clamp(18px, 1.3vw, 27px); }
body.is-screen .cabin-status { font-size: clamp(12px, .85vw, 17px); min-height: 1.3em; }
body.is-screen .cabin-rig:not(.is-own) .cabin-gain { font-size: clamp(13px, .95vw, 19px); padding: 3px 9px; top: -34px; }
body.is-screen .cabin-edge { font-size: clamp(14px, 1vw, 19px); padding: 4px 8px; }
body.is-screen .cave-spectators { font-size: clamp(13px, .9vw, 17px); }
body.is-screen .standings .name { font-size: clamp(13px, .95vw, 19px); }
body.is-screen .standings .num { font-size: clamp(13px, .95vw, 19px); }
body.is-screen .panel-hint { font-size: clamp(15px, 1.1vw, 21px); }
/* De antwoorden bij de uitslag (app.js: othersNowEl): op een tv van een afstand leesbaar. */
body.is-screen .info-card.has-others { max-width: min(480px, calc(50% - 330px)); }
body.is-screen .other-row { grid-template-columns: 20px minmax(0, 1fr) auto; column-gap: 14px; padding-block: 8px; }
body.is-screen .other-chip { width: 20px; height: 20px; border-radius: 5px; }
body.is-screen .other-who { font-size: clamp(13px, 1vw, 20px); }
body.is-screen .other-answer { font-size: clamp(18px, 1.6vw, 32px); }
body.is-screen .other-pts { font-size: clamp(18px, 1.5vw, 30px); }

/* De finale: grotere naamplaatjes; op een breed scherm (1920) ook grotere cabines. Alleen de laptopopstelling
   (vanaf 900 breed, finale.js: fitFinale niet compact); de telefoonopstelling blijft van telefoon.css. */
body.is-screen .finale-caption span { font-size: clamp(15px, 1.1vw, 22px); }
body.is-screen .finale-row:not(.is-compact) .finale-name { width: 150px; font-size: clamp(15px, 1vw, 20px); }
body.is-screen .finale-row:not(.is-compact) .finale-reveal { width: 160px; }
body.is-screen .finale-row:not(.is-compact) .finale-reveal strong { font-size: clamp(15px, 1vw, 20px); }
body.is-screen .finale-row:not(.is-compact) .finale-reveal span { font-size: clamp(12px, .8vw, 16px); }
@media (min-width: 1600px) and (min-height: 860px) {
  body.is-screen .finale-row:not(.is-compact) .finale-rig { width: 150px; height: 230px; --cabin-scale: 1.25; }
  body.is-screen .finale-row:not(.is-compact) .finale-reveal { width: 190px; }
}
