/* Television: shared stage, drawn identities and fixed score geometry. */
/* Roster rows share the viewport, including five players at 720p. */
.shell.tv-mode { padding-top: 0; min-height: 100dvh; }
.shell.tv-mode:has(.reactions-panel) { position: relative; height: 100dvh; min-height: 0; padding-bottom: 0; }
.tv-mode .tv-stage { grid-template-columns: clamp(230px, 18vw, 280px) minmax(0, 1fr); height: calc(100dvh - var(--tv-pad)); row-gap: 12px; }
.tv-mode .tv-header { min-height: 100px; }
.tv-mode .tv-brand img { width: 94px; height: 94px; object-fit: contain; }
.tv-mode .tv-header-main { position: relative; min-height: 40px; justify-content: flex-end; }
.tv-mode .round-label { white-space: nowrap; flex: none; }
.tv-music { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; justify-content: center; gap: 10px; width: max-content; max-width: 48%; font-size: clamp(12px, 1.1vw, 18px); color: var(--color-muted); }
.tv-music.off { visibility: hidden; }
.tv-track { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv-equalizer { display: flex; align-items: center; gap: 3px; width: 22px; height: 22px; flex: none; color: var(--color-accent); }
.tv-equalizer i { display: block; width: 3px; height: 17px; border-radius: 2px; background: currentColor; animation: tv-music-level 850ms ease-in-out infinite alternate; }
.tv-equalizer i:nth-child(2) { animation-duration: 620ms; animation-delay: -300ms; }
.tv-equalizer i:nth-child(3) { animation-duration: 1050ms; animation-delay: -500ms; }
.tv-music.off i { animation-play-state: paused; }
.tv-unlock { position: absolute; right: 0; top: 100%; z-index: 5; }
@keyframes tv-music-level { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
.tv-mode .tv-roster { display: grid; grid-template-rows: repeat(var(--roster-count), minmax(0, 1fr)) auto; padding: 0; gap: min(1dvh, 10px); overflow: visible; }
.tv-roster-footer { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; flex: none; }
.tv-mode .tv-roster-footer .change-role { margin: 0; }
/* Карточка вопроса на TV закрывает ростер целиком. Невидимая кнопка смены
   роли под ней ловила фокус и попадала в аудит как перекрытый контрол. */
.tv-mode .tv-stage:has(.tv-question-layer:not([hidden])) .tv-roster-footer .change-role { display: none; }
.tv-mode .tv-roster:has(~ .tv-main .tv-lobby:not([hidden])) .tv-roster-footer { position: absolute; bottom: 12px; left: 0; width: 100%; pointer-events: auto; }
.tv-mode .tv-player { min-height: 0; width: auto; container-type: size; }
.tv-mode .tv-player .player-frame { position: relative; isolation: isolate; height: 100%; min-height: 0; padding: min(8cqh, 14px) min(4cqw, 12px); border: min(2cqh, 3px) solid #8587bb; border-radius: min(12cqh, 16px); display: grid; grid-template-rows: minmax(0, 1fr) auto auto; gap: 0; overflow: visible; }
.tv-mode .tv-player .player-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: min(3cqw, 8px); height: 100%; min-height: 0; padding: 0; align-items: center; }
.tv-mode .player-row h2 { height: 100%; min-height: 0; display: flex; align-items: center; overflow: visible; font-size: min(16cqh, 8cqw, 22px); }
.tv-mode .tv-player .drawn-name { width: 100%; max-width: 190px; height: 100%; max-height: 62px; min-height: 0; flex: none; }
.tv-mode .tv-player .face-photo { width: min(100%, 62px); height: min(100%, 62px); aspect-ratio: 1; flex: none; }
.tv-identity .face-photo { width: 40px; height: 40px; }
.tv-private-seat .face-photo { width: 48px; height: 48px; }
.tv-score { position: relative; width: 100%; height: 100%; min-width: 0; min-height: 0; display: grid; grid-template-rows: 1fr 2fr 1fr; align-items: center; justify-items: end; }
.tv-mode .tv-player .bubble-points { font-size: min(20cqh, calc(62cqw / var(--score-digits)), 24px); font-weight: 650; line-height: 1; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.tv-score .answer-state { position: static; width: 100%; height: auto; font-size: min(9cqh, 6cqw, 10px); line-height: 1; text-align: right; margin: 0; }
.tv-mode .tv-score .answer-state:empty { display: block; }
.tv-score-delta { position: static; width: 100%; text-align: right; font-size: min(16cqh, calc(62cqw / var(--score-digits)), 24px); line-height: 1; font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tv-mode .tv-player .drawn-name path { filter: drop-shadow(0 0 1px #000); }
.shell.tv-mode .tv-roster .tv-player .player-frame { border-color: #8587bb; }
.shell.tv-mode .tv-roster .tv-player.ready:not(.answer-correct):not(.answer-wrong):not(.disconnected) .player-frame { border-color: #8587bb; }
.shell.tv-mode .tv-roster .tv-player:is(.answering, .answer-correct, .answer-wrong) .player-frame {
  box-shadow: none;
  animation: none;
}
.shell.tv-mode .tv-roster .tv-player.answering .player-frame { background: var(--color-accent); }
.shell.tv-mode .tv-roster .tv-player.answer-correct .player-frame { background: var(--color-ok); }
.shell.tv-mode .tv-roster .tv-player.answer-wrong .player-frame { background: var(--color-danger); }
.shell.tv-mode .tv-roster .tv-player.answer-correct .player-frame { animation: tv-answer-correct-flash 720ms linear both; }
.shell.tv-mode .tv-roster .tv-player.answer-wrong .player-frame { animation: tv-answer-wrong-flash 720ms linear both; }
.shell.tv-mode .tv-roster .tv-player:is(.answering, .answer-correct, .answer-wrong) .player-frame :is(h2, .bubble-points, .answer-state, .tv-score-delta, .connection-state, .tv-seat-ready) {
  color: var(--color-bg);
}
.shell.tv-mode .tv-roster .tv-player:is(.answer-correct, .answer-wrong) .player-frame :is(h2, .bubble-points, .answer-state, .tv-score-delta, .connection-state, .tv-seat-ready) {
  animation: tv-answer-feedback-text 720ms linear both;
}
@keyframes tv-answer-correct-flash {
  0%, 18%, 39%, 57%, 78%, 100% { background: var(--color-ok); }
  19%, 38%, 58%, 77% { background: var(--color-board); }
}
@keyframes tv-answer-wrong-flash {
  0%, 18%, 39%, 57%, 78%, 100% { background: var(--color-danger); }
  19%, 38%, 58%, 77% { background: var(--color-board); }
}
@keyframes tv-answer-feedback-text {
  0%, 18%, 39%, 57%, 78%, 100% { color: var(--color-bg); }
  19%, 38%, 58%, 77% { color: var(--color-text); }
}
.shell.tv-mode .tv-roster .tv-player.disconnected:not(.answering):not(.answer-correct):not(.answer-wrong) .player-frame {
  border-color: var(--color-accent);
  background: var(--color-board);
}
.shell.tv-mode .tv-roster .tv-player:is(.left, .connection-failed) .player-frame { border-color: var(--color-danger); }
.shell.tv-mode .tv-roster .tv-player.returning .player-frame { border-color: var(--color-accent); }
.tv-mode .connection-state, .tv-seat-ready { position: static; margin: 0; font-size: min(8cqh, 4cqw, 10px); line-height: 1.1; max-width: 100%; }
.tv-mode .connection-state:empty { display: none; }
.tv-seat-ready { color: var(--color-muted); }
.tv-player.ready .tv-seat-ready { color: var(--color-ok); }
.tv-player:has(.connection-state:not(:empty)) .tv-seat-ready { visibility: hidden; }
.tv-mode .tv-main { overflow: hidden; }
.tv-special-active > :is(.tv-question-layer, .tv-board-layer, .tv-phase-note) { display: none !important; }
.tv-mode .tv-lobby { position: relative; isolation: isolate; overflow: hidden; height: 100%; min-height: 0; background: var(--color-board); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 64px); gap: 24px; }
.tv-lobby > h2 { margin: 0; font-size: clamp(30px, 3.5vw, 58px); }
.tv-lobby > .note { font-size: clamp(16px, 1.5vw, 24px); }
.tv-join-grid { display: flex; align-items: center; justify-content: center; gap: clamp(30px, 4vw, 70px); margin: 12px 0; }
.tv-mode .tv-join-grid .qr { flex: none; background: white; border-radius: 20px; width: clamp(170px, 19vw, 270px); height: clamp(170px, 19vw, 270px); padding: 10px; }
.tv-join-code { text-align: left; min-width: 0; }
.tv-site { font-family: Consolas, 'Cascadia Code', 'Courier New', monospace; font-size: clamp(24px, 2.4vw, 40px); font-weight: 600; letter-spacing: -.045em; margin: 0 0 20px; overflow-wrap: anywhere; }
.tv-mode .tv-join-code .invite-word { font-size: clamp(38px, 4vw, 68px); font-weight: 650; margin: 8px 0 0; text-transform: uppercase; }
.tv-lobby::before, .tv-lobby::after { content: ''; position: absolute; z-index: -1; pointer-events: none; }
.tv-lobby::before { width: 65%; height: 100%; top: 0; left: -65%; background: radial-gradient(ellipse at center, #e2e7ff24, #bac8ff10 35%, transparent 70%); animation: tv-lobby-sweep 9s ease-in-out infinite; }
.tv-lobby::after { width: 95%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(ellipse at 45% 45%, #ffe0a83d, #c5a8ff20 30%, #998aff0c 48%, transparent 72%); bottom: -55%; right: -25%; animation: tv-lobby-drift 13s ease-in-out infinite alternate; }
@keyframes tv-lobby-sweep { 0% { transform: translateX(0); opacity: 0; } 8% { opacity: 1; } 65% { transform: translateX(260%); opacity: 1; } 75%, 100% { transform: translateX(260%); opacity: 0; } }
@keyframes tv-lobby-drift { from { transform: translate3d(-5%, -4%, 0) scale(.95); opacity: .55; } to { transform: translate3d(27%, 22%, 0) scale(1.16); opacity: 1; } }
.tv-mode .question-card { border-radius: var(--radius-lg); padding: clamp(22px, 2.6vw, 44px); }
.tv-mode .question-meta { justify-content: space-between; font-size: clamp(23px, 2.1vw, 36px); text-align: left; flex-wrap: nowrap; max-width: none !important; width: 100%; }
.tv-mode .question-meta .price { font-size: clamp(30px, 2.8vw, 46px); border-radius: 12px; padding: .17em .5em; }
.tv-mode .question-text { line-height: 1.32; }
.tv-mode .theme h2, .tv-mode .tv-final-theme h2 { overflow-wrap: normal; word-break: normal; hyphens: manual; min-width: 0; }
.tv-mode .game-board { --board-gap: clamp(2px, .7dvh, 12px); }
.tv-mode .game-board .theme h2 { flex: 1.2; padding: clamp(2px, .6dvh, 10px); font-size: clamp(12px, min(3vw, 5dvh), clamp(32px, calc(100vw / 60), 64px)); }
.tv-mode .game-board .cells { container-type: size; }
.tv-mode .game-board .cell { padding: 0; overflow: hidden; line-height: 1; font-size: clamp(10px, min(calc(100cqw / 3.5), calc((100cqh - (var(--rows) - 1) * var(--board-gap)) / var(--rows) * .7)), 76px); }
.tv-mode .game-board .tv-price { display: block; max-width: 100%; line-height: 1; }
.tv-mode .theme h2 > span, .tv-mode .tv-final-theme h2 > span { display: block; width: 100%; min-width: 0; }
.tv-mode .tv-final-theme h2 { margin: 0; width: 100%; height: 100%; min-height: 0; display: grid; place-items: center; font: inherit; color: inherit; line-height: inherit; }
.tv-mode .question-image { border-radius: var(--radius-lg); }
.tv-mode .question-card > :is(.timer-wrap, section:has(.holder)) { display: none; }
.tv-mode .question-card .question-content { max-width: 100% !important; }
.tv-mode .question-card:has(.tv-question-status) { display: flex; flex-direction: column; gap: 24px; }
.tv-mode .question-card:has(.tv-question-status) .question-content { flex: 1; min-height: 0; width: 100%; }
.tv-mode .question-card { display: flex; flex-direction: column; gap: 20px; overflow: hidden; }
.tv-mode .question-card > .question-meta { flex: none; margin: 0; min-width: 0; }
.tv-mode .question-card > .question-content { flex: 1 1 0; min-height: 0; width: 100%; overflow: visible; }
.tv-mode .question-content > .question-text { flex: none; }
.tv-mode .question-content > .question-images { flex: 1 1 0; min-height: 0; width: 100%; overflow: hidden; }
.tv-mode .question-images .question-image { max-height: 100%; }
.tv-mode .reveal-card > :is(.reveal-answer, .answer-blocks, .tv-reveal-result) { flex: none; margin: 0; }
.tv-mode .reveal-card > .reveal-answer { max-height: 35%; min-height: 0; overflow: visible; }
.tv-question-status { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; min-height: 104px; padding: 18px 24px; border-radius: 16px; background: var(--color-bg); border: 1px solid #ffffff26; font-size: clamp(20px, 2vw, 32px); flex: none; }
.tv-question-status.open { background: var(--color-accent); color: #000; border-color: var(--color-accent); }
.tv-status-dot { width: 14px; height: 14px; border-radius: 50%; background: currentColor; flex: none; }
.tv-identity { display: inline-flex; align-items: center; flex: none; }
.tv-identity .drawn-name { width: 110px; max-width: 110px; height: 40px; }
.tv-status-clock { margin-left: auto; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--color-accent); color: #000; font-weight: 650; font-size: 30px; font-variant-numeric: tabular-nums; }
.tv-special-card, .tv-results { display: flex; flex-direction: column; gap: 24px; height: 100%; min-height: 0; overflow: auto; background: var(--color-board); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 48px); }
.tv-special-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex: none; }
.tv-special-heading h1, .tv-results h1 { font-size: clamp(28px, 2.6vw, 44px); margin: 0; color: var(--color-accent); line-height: 1.2; }
.tv-special-actor { display: flex; align-items: center; gap: 12px; color: var(--color-muted); font-size: 14px; }
.tv-special-actor .tv-identity { padding: 8px 12px; background: var(--color-bg); border-radius: 12px; }
.tv-special-content { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; min-height: 0; text-align: center; }
.tv-special-topic, .tv-final-topic { font-size: clamp(26px, 3vw, 48px); color: var(--color-accent); margin: 0; }
.tv-special-prompt, .tv-modifier-text { font-size: clamp(24px, 3vw, 48px); margin: 0; line-height: 1.3; }
.tv-stake-options { display: flex; gap: 24px; }
.tv-stake-options > div { border: 2px solid #ffffff35; border-radius: 20px; padding: 24px 38px; font-size: 48px; color: var(--color-accent); font-weight: 650; }
.tv-stake-options span { display: block; color: var(--color-muted); font-size: 15px; margin-bottom: 12px; font-weight: 400; }
.tv-final-themes { display: grid; grid-template-columns: repeat(var(--theme-cols), minmax(0, 1fr)); grid-template-rows: repeat(var(--theme-rows), minmax(0, 1fr)); width: 100%; height: 100%; min-height: 0; gap: 12px; }
.tv-final-theme { display: grid; place-items: center; position: relative; padding: 24px 16px; border: 1px solid transparent; background: var(--color-bg); border-radius: 14px; color: var(--color-accent); font-size: clamp(24px, 2.5vw, 40px); font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; overflow: hidden; }
.tv-final-themes.dense .tv-final-theme { font-size: clamp(20px, 1.8vw, 29px); padding: 20px 12px; }
.tv-final-theme.struck { background: #15145955; border: 1px dashed #ffffff20; color: #8b89ba; text-decoration: line-through; }
.tv-private-seats { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.tv-private-seat { display: grid; justify-items: center; gap: 18px; padding: 24px; border: 2px solid #ffffff35; border-radius: 20px; color: var(--color-muted); }
.tv-private-seat.done { border-color: var(--color-ok); color: var(--color-ok); }
.tv-private-seat .drawn-name { width: 130px; height: 50px; }
.tv-results { align-items: center; }
.tv-mode .reveal-answer { font-size: clamp(40px, 5vw, 88px); }
.tv-reveal-result { display: none; }
.tv-mode .tv-reveal-result { display: flex; justify-content: center; align-items: center; gap: 16px; color: var(--color-ok); font-size: clamp(18px, 1.8vw, 28px); }
.tv-mode .tv-reveal-result.bad { color: var(--color-danger); }
@media (max-width: 900px) {
  .tv-mode .tv-stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 25dvh) minmax(0, 1fr); height: calc(100dvh - var(--tv-pad)); min-height: 0; }
  .tv-mode .tv-header { grid-template-columns: 80px minmax(0, 1fr); min-height: 80px; }
  .tv-mode .tv-brand img { width: 76px; height: 76px; }
  .tv-mode .tv-roster { grid-template-columns: repeat(var(--roster-columns), minmax(0, 1fr)); grid-template-rows: repeat(var(--roster-rows), minmax(0, 1fr)) auto; max-height: none; padding: 0; gap: 4px; overflow: visible; }
  .tv-mode .tv-roster .change-role { grid-column: 1 / -1; width: 100%; margin: 0; padding: 0; }
  .tv-mode .tv-player { width: auto; }
  .tv-mode .tv-main { min-height: 0; overflow: visible; }
  .tv-mode .tv-lobby, .tv-special-card, .tv-results { min-height: 0; }
  .tv-join-grid { gap: 24px; }
  .tv-mode .tv-join-grid .qr { width: 190px; height: 190px; }
  .tv-special-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .tv-special-content { min-height: 340px; }
  .tv-special-content:has(.tv-final-themes) { flex: none; }
  .tv-final-themes { grid-template-columns: repeat(var(--narrow-cols), minmax(0, 1fr)); grid-template-rows: repeat(var(--narrow-rows), minmax(0, 1fr)); height: calc(var(--narrow-rows) * 130px + (var(--narrow-rows) - 1) * 12px); min-height: 0; }
  .tv-final-theme, .tv-final-themes.dense .tv-final-theme { font-size: 20px; padding: 18px 10px; }
  .tv-question-status { padding: 12px; min-height: 84px; gap: 10px; }
  .tv-status-clock { width: 48px; height: 48px; font-size: 24px; }
}
@media (max-width: 650px) {
  .tv-mode .tv-board-layer { max-width: 100%; min-width: 0; overflow: visible; }
  .tv-mode .tv-board-layer .game-board { min-width: 0; }
  .tv-header-main { height: 50px; align-items: flex-end; }
  .tv-music { top: 0; max-width: 100%; width: 100%; font-size: 12px; }
  .tv-mode .round-label { font-size: 12px; }
}
@media (max-width: 500px) {
  .tv-join-grid { flex-direction: column; gap: 18px; }
  .tv-join-code { text-align: center; }
  .tv-stake-options > div { padding: 20px; font-size: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .tv-equalizer i, .tv-lobby::before, .tv-lobby::after { animation: none; }
  .tv-equalizer i { transform: scaleY(.55); }
  .tv-equalizer i:nth-child(2) { transform: scaleY(1); }
  .tv-mode .tv-player .player-frame::before { transition: none; }
  .shell.tv-mode .tv-roster .tv-player:is(.answer-correct, .answer-wrong) .player-frame,
  .shell.tv-mode .tv-roster .tv-player:is(.answer-correct, .answer-wrong) .player-frame :is(h2, .bubble-points, .answer-state, .tv-score-delta, .connection-state, .tv-seat-ready) { animation: none; }
}

/* Lobby gets a dedicated full-stage canvas for the waiting-room scene. */
.tv-mode .tv-stage { position: relative; }
.tv-mode .tv-stage:has(.tv-main .tv-lobby:not([hidden])) { position: fixed; inset: 0; z-index: 50; display: block; width: 100vw; height: 100dvh; max-width: none; margin: 0; padding: 0; overflow: hidden; background: #2425b8; }
.tv-mode .tv-stage:has(.tv-main .tv-lobby:not([hidden])) > .tv-header { display: none; }
.tv-mode .tv-stage:has(.tv-main .tv-lobby:not([hidden])) > .tv-main { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: hidden; }
/* One composition at every viewport: brand top-left, centered invite below. */
.tv-mode .tv-lobby:not([hidden]) { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; justify-content: flex-start; align-items: center; border-radius: 0; padding: clamp(12px, 4vh, 36px) clamp(12px, 2vw, 32px); gap: clamp(6px, 1.5vh, 18px); background: #2425b8; }
.tv-mode .tv-lobby-logo { position: absolute; top: clamp(8px, 1.5vh, 18px); left: clamp(12px, 2vw, 24px); width: clamp(28px, 7vh, 72px); height: clamp(28px, 7vh, 72px); object-fit: contain; transform: none; }
.tv-mode .tv-lobby > h2 { flex: none; margin: 0 clamp(40px, 8vh, 100px); font-size: clamp(20px, min(4vw, 6vh), 56px); line-height: 1.1; }
.tv-mode .tv-lobby > .note { flex: none; margin: 0; font-size: clamp(12px, min(1.8vw, 3vh), 26px); line-height: 1.2; }
.tv-mode .tv-lobby .tv-join-grid { display: flex; flex-direction: row; flex: none; align-items: center; justify-content: center; max-width: 100%; margin: 0; gap: clamp(12px, 3vw, 56px); }
.tv-mode .tv-lobby .tv-join-grid .qr { width: clamp(64px, min(24vw, 25vh), 270px); height: clamp(64px, min(24vw, 25vh), 270px); padding: clamp(4px, 1vh, 10px); border-radius: clamp(8px, 1.5vh, 20px); }
.tv-mode .tv-lobby .tv-site { margin: 0 0 clamp(2px, 1vh, 12px); font-size: clamp(12px, min(2.2vw, 3.6vh), 38px); }
.tv-mode .tv-lobby .tv-join-code .note { margin: 0; font-size: clamp(10px, min(1.8vw, 2.5vh), 26px); }
.tv-mode .tv-lobby .tv-join-code .invite-word { margin: clamp(2px, .7vh, 8px) 0 0; font-size: clamp(22px, min(4vw, 7vh), 68px); line-height: 1; }
/* A 4K TV that reports CSS pixels (not a 1920 viewport at 200%) doubles every
   ceiling above, otherwise the invite block keeps its 1080p physical size. */
@media (min-width: 2400px), (min-height: 1400px) {
  .tv-mode .tv-lobby:not([hidden]) { padding: clamp(24px, 4vh, 72px) clamp(24px, 2vw, 64px); gap: clamp(12px, 1.5vh, 36px); }
  .tv-mode .tv-lobby-logo { top: clamp(16px, 1.5vh, 36px); left: clamp(24px, 2vw, 48px); width: clamp(56px, 7vh, 144px); height: clamp(56px, 7vh, 144px); }
  .tv-mode .tv-lobby > h2 { margin: 0 clamp(80px, 8vh, 200px); font-size: clamp(40px, min(4vw, 6vh), 112px); }
  .tv-mode .tv-lobby > .note { font-size: clamp(24px, min(1.8vw, 3vh), 52px); }
  .tv-mode .tv-lobby .tv-join-grid { gap: clamp(24px, 3vw, 112px); }
  .tv-mode .tv-lobby .tv-join-grid .qr { width: clamp(128px, min(24vw, 25vh), 540px); height: clamp(128px, min(24vw, 25vh), 540px); padding: clamp(8px, 1vh, 20px); border-radius: clamp(16px, 1.5vh, 40px); }
  .tv-mode .tv-lobby .tv-site { margin: 0 0 clamp(4px, 1vh, 24px); font-size: clamp(24px, min(2.2vw, 3.6vh), 76px); }
  .tv-mode .tv-lobby .tv-join-code .note { font-size: clamp(20px, min(1.8vw, 2.5vh), 52px); }
  .tv-mode .tv-lobby .tv-join-code .invite-word { margin: clamp(4px, .7vh, 16px) 0 0; font-size: clamp(44px, min(4vw, 7vh), 136px); }
}
.tv-mode .tv-roster:has(~ .tv-main .tv-lobby:not([hidden])) { position: absolute; inset: auto 5% 18px; height: clamp(180px, 28vh, 300px); z-index: 5; display: flex; align-items: center; justify-content: center; gap: clamp(8px, 2vw, 26px); pointer-events: none; }
.tv-mode .tv-roster:has(~ .tv-main .tv-lobby:not([hidden])) > .note { display: none; }
.tv-mode .tv-roster:has(~ .tv-main .tv-lobby:not([hidden])) .tv-player { width: min(18%, 230px); height: clamp(90px, 20vh, 180px); flex: 0 1 18%; }
.tv-mode .tv-roster:has(~ .tv-main .tv-lobby:not([hidden])) .tv-player .player-frame { pointer-events: auto; background: #16176e; }
.tv-mode .tv-roster:has(~ .tv-main .tv-lobby:not([hidden])) .change-role { position: absolute; right: 0; bottom: 0; width: auto; pointer-events: auto; }
.tv-mode .question-image-options { display: flex; flex-direction: column; min-height: 0; width: 100%; }
.tv-mode .question-image-options .question-choice-list { flex: 1 1 0; width: 100%; min-height: 0; }
.tv-mode .question-image-options .question-choice-image { padding: clamp(6px, 1vw, 14px); font-size: clamp(18px, 2vw, 30px); }
.tv-mode .question-image-options .question-choice-option-image { height: 100%; min-height: 0; }
.host-question .question-image-options .question-choice-option-image { height: min(18dvh, 180px); }
@media (max-width: 900px) {
  .tv-mode .tv-roster:has(~ .tv-main .tv-lobby:not([hidden])) { inset: auto 12px 6px; height: 18vh; gap: 6px; }
  .tv-mode .tv-roster:has(~ .tv-main .tv-lobby:not([hidden])) .tv-player { height: 100%; width: auto; flex: 1 1 0; }
  .tv-mode .tv-roster:has(~ .tv-main .tv-lobby:not([hidden])) .change-role { display: none; }
  .tv-mode .tv-question-layer .question-card { padding: 10px 14px; gap: 6px; }
  .tv-mode .tv-question-layer .question-meta { font-size: clamp(14px, 2.2vw, 20px); }
  .tv-mode .tv-question-status { min-height: 44px; padding: 6px 10px; font-size: clamp(13px, 2vw, 17px); gap: 6px; }
  .tv-mode .tv-status-clock { width: 34px; height: 34px; font-size: 18px; }
  .tv-mode .tv-question-layer .timer-expired { font-size: clamp(13px, 2vw, 18px); margin: 0; padding: 8px 12px; }
}
@media (max-width: 900px) and (orientation: landscape) {
  .tv-mode .tv-stage { grid-template-rows: 54px 82px minmax(0, 1fr); }
  .tv-mode .tv-header { min-height: 54px; }
  .tv-mode .tv-brand img { width: 48px; height: 48px; }
  .tv-mode .tv-roster { max-height: 82px; }
  .tv-mode .tv-roster:has(~ .tv-main .tv-lobby:not([hidden])) { inset: auto 8px 4px; height: 27vh; }
}
@media (prefers-reduced-motion: reduce) {
  .tv-mode .tv-roster:has(~ .tv-main .tv-lobby:not([hidden])) .tv-player { animation: none; transform: none; }
}

/* Keep short landscape question status and choice grids inside their content track. */
@media (max-width: 900px) and (max-height: 600px) and (orientation: landscape) {
  .tv-mode .tv-stage { grid-template-rows: 52px 50px minmax(0, 1fr); }
  .tv-mode .tv-header { min-height: 52px; }
  .tv-mode .tv-brand img { width: 46px; height: 46px; }
  .tv-mode .tv-roster { grid-template-columns: repeat(var(--roster-count), minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr); height: 50px; max-height: 50px; gap: 3px; overflow: hidden; }
  .tv-mode .tv-roster .change-role { display: none; }
  .tv-mode .tv-player { width: auto; height: 48px; }
  .tv-mode .tv-player .player-frame { padding: 2px 4px; border-width: 1px; border-radius: 7px; }
  .tv-mode .tv-player .drawn-name { max-height: 30px; }
  .tv-mode .tv-main { min-height: 0; overflow: hidden; }
  .tv-mode .tv-question-layer { min-height: 0; }
  .tv-mode .tv-question-layer .question-card { min-height: 0; padding: 8px 10px; gap: 5px; }
  .tv-mode .tv-question-status { min-height: 0; padding: 5px 8px; gap: 5px; font-size: clamp(12px, 2.2vw, 15px); }
  .tv-mode .tv-question-status .tv-status-dot { width: 8px; height: 8px; }
  .tv-mode .tv-status-clock { width: 30px; height: 30px; font-size: 15px; }
}

/* The image-choice wrapper and its two rows must receive the question content's free track. */
.tv-mode .tv-question-layer .question-content > .question-image-options { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; width: 100%; }
.tv-mode .tv-question-layer .question-image-options .question-choice-list { flex: 1 1 0; min-height: 0; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); }
.tv-mode .tv-question-layer .question-image-options .question-choice-image { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-width: 0; min-height: 0; overflow: hidden; }
.tv-mode .tv-question-layer .question-image-options .question-choice-option-image { width: 100%; height: 100%; min-width: 0; min-height: 0; max-height: 100%; object-fit: contain; }

/* In the lobby, float only the players' drawings across the full blue scene. */
.tv-mode .tv-stage:has(.tv-main .tv-lobby:not([hidden])) { background: #2425b8; }
.tv-mode .tv-roster:has(~ .tv-main .tv-lobby:not([hidden])) { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; max-height: none; z-index: 1; display: block; overflow: hidden; pointer-events: none; }
.tv-mode .tv-roster:has(~ .tv-main .tv-lobby:not([hidden])) .tv-player { container-type: normal; min-height: 0; }
.tv-mode .tv-roster:has(~ .tv-main .tv-lobby:not([hidden])) .player-frame,
.tv-mode .tv-roster:has(~ .tv-main .tv-lobby:not([hidden])) .player-row { display: contents; }
.tv-mode .tv-roster:has(~ .tv-main .tv-lobby:not([hidden])) .player-row h2 { display: contents !important; }
.tv-mode .tv-roster:has(~ .tv-main .tv-lobby:not([hidden])) .player-row h2 > span,
.tv-mode .tv-roster:has(~ .tv-main .tv-lobby:not([hidden])) .player-row > span,
.tv-mode .tv-roster:has(~ .tv-main .tv-lobby:not([hidden])) .tv-score,
.tv-mode .tv-roster:has(~ .tv-main .tv-lobby:not([hidden])) .connection-state,
.tv-mode .tv-roster:has(~ .tv-main .tv-lobby:not([hidden])) .tv-seat-ready,
.tv-mode .tv-roster:has(~ .tv-main .tv-lobby:not([hidden])) > .note,
.tv-mode .tv-roster:has(~ .tv-main .tv-lobby:not([hidden])) .change-role { display: none !important; }
.tv-mode .tv-roster:has(~ .tv-main .tv-lobby:not([hidden])) .drawn-name { display: block; width: 100%; height: 100%; max-width: none; max-height: none; opacity: .82; filter: drop-shadow(0 2px 4px #17185b90); }
/* Only drawn names and selfies join the scene; a text seat leaves no invisible body. */
.tv-mode .tv-roster:has(~ .tv-main .tv-lobby:not([hidden])) .tv-player:not(:has(img.face-photo, svg.drawn-name)) { display: none; }
/* A selfie fills its card as a disc so the visible circle is the whole body. */
.tv-mode .tv-roster:has(~ .tv-main .tv-lobby:not([hidden])) .face-photo { display: block; width: 100%; height: 100%; max-width: none; max-height: none; aspect-ratio: 1; border-radius: 50%; object-fit: cover; opacity: .82; }
.tv-mode .tv-lobby:not([hidden]) { z-index: 2; background: transparent; }
.tv-mode .tv-lobby:not([hidden]) > :is(h2, .note, .tv-join-grid) { position: relative; z-index: 2; }
@media (prefers-reduced-motion: reduce) {
  .tv-mode .tv-roster:has(~ .tv-main .tv-lobby:not([hidden])) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); place-items: center; padding: 12px; gap: 8px; }
  .tv-mode .tv-roster:has(~ .tv-main .tv-lobby:not([hidden])) .tv-player { width: min(80%, 230px); height: min(18vh, 78px); }
}

/* On a short landscape question, put the player names in one slim header row. */
@media (max-width: 900px) and (max-height: 600px) and (orientation: landscape) {
  .tv-mode .tv-stage:has(.tv-question-layer:not([hidden])) { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-rows: 64px minmax(0, 1fr); height: 100dvh; gap: 2px 8px; }
  .tv-mode .tv-stage:has(.tv-question-layer:not([hidden])) .tv-header { grid-column: 1 / -1; grid-row: 1; display: grid; grid-template-columns: subgrid; align-items: center; min-height: 0; padding: 0 4px; gap: 6px; }
  .tv-mode .tv-stage:has(.tv-question-layer:not([hidden])) .tv-header-side { display: flex; grid-column: 1; grid-row: 1; align-items: center; justify-self: start; gap: 6px; min-width: 0; }
  .tv-mode .tv-stage:has(.tv-question-layer:not([hidden])) .tv-audience { position: static; left: auto; top: auto; transform: none; grid-column: 2; grid-row: 1; justify-self: center; align-self: center; min-height: 22px; padding: 1px 4px 1px 7px; }
  .tv-mode .tv-stage:has(.tv-question-layer:not([hidden])) .tv-audience .find-metric-label { font-size: 10px; letter-spacing: .03em; }
  .tv-mode .tv-stage:has(.tv-question-layer:not([hidden])) .tv-audience .icon { width: 12px; height: 12px; }
  .tv-mode .tv-stage:has(.tv-question-layer:not([hidden])) .tv-audience b { min-width: 16px; padding: 0 4px; font-size: 11px; }
  .tv-mode .tv-stage:has(.tv-question-layer:not([hidden])) .tv-brand img { width: 24px; height: 24px; }
  .tv-mode .tv-stage:has(.tv-question-layer:not([hidden])) .tv-header-main { display: flex; position: static; min-height: 0; height: auto; width: auto; max-width: 100%; margin: 0; align-items: center; justify-content: flex-start; gap: 3px; }
  .tv-mode .tv-stage:has(.tv-question-layer:not([hidden])) .tv-music { position: static; transform: none; width: auto; max-width: 54px; gap: 2px; font-size: 8px; }
  .tv-mode .tv-stage:has(.tv-question-layer:not([hidden])) .tv-equalizer { width: 12px; height: 12px; gap: 1px; }
  .tv-mode .tv-stage:has(.tv-question-layer:not([hidden])) .tv-equalizer i { width: 2px; height: 9px; }
  .tv-mode .tv-stage:has(.tv-question-layer:not([hidden])) .round-label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
  .tv-mode .tv-stage:has(.tv-question-layer:not([hidden])) .tv-roster { grid-column: 3; grid-row: 1; display: grid; grid-template-columns: repeat(var(--roster-count), minmax(0, 1fr)); grid-template-rows: 30px auto; width: 100%; height: 62px; min-height: 0; max-height: 62px; gap: 2px; overflow: hidden; }
  .tv-mode .tv-stage:has(.tv-question-layer:not([hidden])) .tv-roster-footer { gap: 0; }
  .tv-mode .tv-stage:has(.tv-question-layer:not([hidden])) .tv-roster-footer .change-role { display: none; }
  .tv-mode .tv-stage:has(.tv-question-layer:not([hidden])):has(.tv-audience[hidden]) { grid-template-columns: auto minmax(0, 1fr); }
  .tv-mode .tv-stage:has(.tv-question-layer:not([hidden])):has(.tv-audience[hidden]) .tv-roster { grid-column: 2; }
  .tv-mode .tv-stage:has(.tv-question-layer:not([hidden])) .tv-player { height: 30px; }
  .tv-mode .tv-stage:has(.tv-question-layer:not([hidden])) .tv-player .player-frame { padding: 0 1px; border: 0; border-radius: 0; background: transparent; }
  .tv-mode .tv-stage:has(.tv-question-layer:not([hidden])) .tv-player .player-row { grid-template-columns: 1fr; }
  .tv-mode .tv-stage:has(.tv-question-layer:not([hidden])) .tv-player .drawn-name { max-width: 100%; max-height: 26px; }
  .tv-mode .tv-stage:has(.tv-question-layer:not([hidden])) .tv-player :is(.tv-score, .connection-state, .tv-seat-ready) { display: none; }
  .tv-mode .tv-stage:has(.tv-question-layer:not([hidden])) .tv-main { grid-column: 1 / -1; grid-row: 2; min-height: 0; overflow: hidden; }
}

/* Image-choice questions use the full TV width and height; retain the game header above. */
@media (min-width: 901px) {
  .tv-mode .tv-stage:has(.tv-question-layer:not([hidden]) .question-image-options) > .tv-header { position: fixed; z-index: 62; inset: 0 0 auto; display: grid; grid-template-columns: clamp(50px, 8vh, 76px) minmax(0, 1fr); grid-template-rows: 1fr; height: clamp(70px, 9vh, 96px); box-sizing: border-box; padding: 8px 18px; background: #17185b; }
  .tv-mode .tv-stage:has(.tv-question-layer:not([hidden]) .question-image-options) > .tv-header .tv-brand { justify-content: flex-start; }
  .tv-mode .tv-stage:has(.tv-question-layer:not([hidden]) .question-image-options) > .tv-header .tv-header-main { justify-content: flex-end; }
  .tv-mode .tv-stage:has(.tv-question-layer:not([hidden]) .question-image-options) > .tv-main { position: fixed; z-index: 60; inset: 0; width: 100vw; height: 100dvh; max-width: none; padding: clamp(74px, 9vh, 100px) 0 0; box-sizing: border-box; background: var(--color-bg); }
  .tv-mode .tv-stage:has(.tv-question-layer:not([hidden]) .question-image-options) > .tv-main > .tv-question-layer { margin: 0; }
  .tv-mode .tv-stage:has(.tv-question-layer:not([hidden]) .question-image-options) > .tv-main > .tv-question-layer.overlap { inset: clamp(74px, 9vh, 100px) 0 0; }
}

/* Телевизор по высоте экрана. ТВ-браузеры часто отдают 960×540 или 1280×720 CSS-пикселей
   при физическом 1920×1080: размеры ниже считаются от высоты, на больших экранах
   упираются в прежние значения. Медиа вопроса и ответа забирает всё свободное место. */
.tv-mode .tv-header { min-height: clamp(56px, 12vh, 100px); }
.tv-mode .tv-brand img { width: clamp(50px, 11vh, 94px); height: clamp(50px, 11vh, 94px); }

/* На широком ТВ поле начинается у верхнего края. Служебные элементы занимают
   левую колонку, а ростер остаётся компактным и не растягивает карточки. */
@media (min-width: 901px) {
  .tv-mode .tv-stage {
    position: relative;
    grid-template-columns: clamp(210px, 20vw, 280px) minmax(0, 1fr);
    grid-template-rows: clamp(92px, 10vh, 108px) minmax(0, 1fr);
  }
  .tv-mode .tv-stage:not(:has(.question-image-options)) > .tv-header {
    grid-column: 1;
    grid-row: 1;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: 1fr;
    align-items: center;
    gap: 12px;
    padding: 16px;
    min-height: 0;
  }
  .tv-mode .tv-stage:not(:has(.question-image-options)) > .tv-header .tv-brand { grid-column: 1; }
  .tv-mode .tv-stage:not(:has(.question-image-options)) > .tv-header .tv-header-main { grid-column: 3; justify-self: end; }
  .tv-mode .tv-stage:has(.tv-question-layer:not([hidden])):not(:has(.question-image-options)) > .tv-header .tv-header-main {
    grid-column: 2;
    justify-self: start;
  }
  .tv-mode .tv-brand img { width: clamp(50px, 8vh, 76px); height: clamp(50px, 8vh, 76px); }
  .tv-mode .tv-header-main { position: static; justify-content: flex-start; }
  .tv-mode .round-label { text-align: left; }
  .tv-mode .tv-roster {
    display: flex;
    flex-direction: column;
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
    max-width: none;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: repeat(var(--roster-count), minmax(0, 1fr)) auto;
    justify-content: stretch;
    justify-items: stretch;
    align-content: stretch;
  }
  .tv-mode .tv-player { width: 100%; height: auto; min-height: 0; flex: 0 1 120px; }
  .tv-mode .tv-roster-footer { margin-top: auto; }
  .tv-mode .tv-roster-footer .change-role { flex: none; margin-top: 0; }
  .tv-mode .tv-main {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
  /* Вопрос занимает отдельную карточку с одинаковыми внутренними полями. */
  .tv-mode .tv-question-layer { margin: calc(var(--tv-pad) + var(--tv-pad)) var(--tv-pad) var(--tv-pad) 0; }
  .tv-mode .tv-question-layer.overlap { inset: calc(var(--tv-pad) + var(--tv-pad)) var(--tv-pad) var(--tv-pad) 0; margin: 0; }
  .tv-mode .tv-board-layer { padding-top: var(--tv-pad); box-sizing: border-box; }
  .tv-mode .tv-music {
    position: absolute;
    z-index: 4;
    left: 0;
    bottom: 8px;
    transform: none;
    justify-content: flex-start;
    max-width: min(18vw, 280px);
  }
}

.tv-mode .tv-main .question-card { padding: clamp(14px, min(3vw, 4.5vh), 60px); gap: clamp(8px, 2vh, 24px); }
.tv-mode .tv-main .theme-name, .tv-mode .tv-main .price { font-size: clamp(16px, min(2vw, 3.6vh), 36px); }
.tv-mode .tv-main .question-text { font-size: clamp(22px, min(4.5vw, 7.5vh), 88px); }
.tv-mode .question-with-choices .question-choices-prompt { font-size: .85em; }
.tv-mode .question-choice { font-size: .72em; }
.tv-mode .tv-main .has-media .question-text { font-size: clamp(18px, min(2.5vw, 4.6vh), 48px); }
.tv-mode .tv-main .reveal-answer { font-size: clamp(24px, min(5vw, 8vh), 88px); overflow-wrap: anywhere; }
.tv-mode .tv-main .answer-timer { --timer-size: clamp(64px, min(13vw, 20vh), 200px); }
.tv-mode .tv-main .question-card.answer-timer-active .question-meta,
.tv-mode .tv-main .question-card.answer-timer-active .question-content { max-width: calc(100% - clamp(64px, min(13vw, 20vh), 200px) - var(--board-gap)); }
.tv-mode .tv-question-status { min-height: 0; padding: clamp(6px, 1.6vh, 18px) clamp(12px, 1.6vw, 24px); gap: clamp(8px, 1.2vw, 16px); font-size: clamp(16px, min(2vw, 3.6vh), 32px); border-radius: clamp(10px, 1.6vh, 16px); }
.tv-mode .tv-question-status .tv-identity .drawn-name { height: clamp(24px, 4.5vh, 40px); }
.tv-mode .tv-status-clock { width: clamp(36px, 7vh, 64px); height: clamp(36px, 7vh, 64px); font-size: clamp(18px, 3.4vh, 30px); }
.tv-mode .question-content > .question-images .question-image { width: 100%; height: 100%; max-height: 100%; object-fit: contain; }
.tv-mode .question-content > .question-media:has(video) { flex: 1 1 0; min-height: 0; width: 100%; }
.tv-mode .question-content > .question-media video { width: 100%; height: 100%; max-height: none; object-fit: contain; }
.tv-mode .question-content > .external-video { flex: 1 1 0; min-height: 0; width: 100%; }
.tv-mode .question-content > .external-video .external-frame { height: 100%; min-height: 0; aspect-ratio: auto; }
@media (max-width: 900px) {
  .tv-mode .question-content > .question-media:has(video),
  .tv-mode .question-content > .external-video { flex: none; }
  .tv-mode .question-content > .question-media video { height: auto; max-height: 55dvh; }
}
.tv-mode .tv-main .answer-show .reveal-answer { font-size: clamp(22px, min(4vw, 6.5vh), 72px); }

.tv-mode .tv-results { padding: clamp(12px, 2vw, 28px); gap: min(2vh, 16px); overflow: hidden; }
.tv-mode .tv-rate-note { flex: none; margin: 0; }
/* Results use the full TV program pane; intrinsic card width must not shrink the grid. */
.tv-mode .tv-main > .tv-results { position: absolute; inset: 0; box-sizing: border-box; width: 100%; max-width: none; align-items: stretch; }
.tv-mode .tv-main > .tv-results > h1 { flex: none; text-align: center; }

/* Итоги на TV: подпись под заголовком, дальше общий лидерборд. */
.tv-mode .tv-results-caption { flex: none; margin: 0; text-align: center; color: var(--color-muted); font-size: clamp(14px, 1.4vw, 20px); line-height: 1.2; }

/* Video and text alternatives need independent tracks: a flex-zero video can
   collapse behind six options, while intrinsic portrait video can hide them. */
.tv-mode .question-content:not(:has(> .question-media ~ .question-media)):has(> .question-media video):has(> .question-with-choices) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  grid-template-areas: "media choices";
  align-items: center;
}
.tv-mode .question-content:not(:has(> .question-media ~ .question-media)):has(> .question-with-choices) > .question-media:has(video) { grid-area: media; height: 100%; min-height: 0; }
.tv-mode .question-content:not(:has(> .question-media ~ .question-media)):has(> .question-media video) > .question-with-choices { grid-area: choices; min-height: 0; }
.tv-mode .question-content:not(:has(> .question-media ~ .question-media)):has(> .question-with-choices) > .question-media video { width: 100%; height: 100%; max-height: 100%; min-height: 0; object-fit: contain; }

/* Keep the shared screen useful in a portrait observer window: spend the height
   on the board and place the single audience badge between brand and round. */
@media (max-width: 900px) and (orientation: portrait) {
  .tv-mode .tv-stage { grid-template-rows: clamp(64px, 10dvh, 88px) minmax(0, min(14dvh, 140px)) minmax(0, 1fr); }
  .tv-mode .tv-stage > .tv-header { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); height: 100%; min-height: 0; }
  .tv-mode .tv-header .tv-brand { justify-self: start; }
  .tv-mode .tv-header .tv-header-main { justify-self: end; height: auto; align-items: center; }
  .tv-mode .tv-roster-footer > .tv-audience { position: absolute; top: calc(clamp(64px, 10dvh, 88px) / 2); left: 50%; transform: translate(-50%, -50%); }
  .tv-mode .tv-stage:has(.tv-lobby:not([hidden])) .tv-roster-footer > .tv-audience { position: static; transform: none; }
  .tv-mode .question-content:not(:has(> .question-media ~ .question-media)):has(> .question-media video):has(> .question-with-choices) { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1.15fr); grid-template-areas: "media" "choices"; gap: 8px; }
  .tv-mode .question-content:not(:has(> .question-media ~ .question-media)):has(> .question-media video) > .question-with-choices { align-self: start; }
}
