/* Rehearse Here on TV: the class at room size. Sized in vw/vh so any TV resolution works, with
   margins kept clear of the edges some TVs crop. Uses the classroom's own styles (app.css). */
:root{color-scheme:dark}
html,body.tvpage{height:100%;margin:0;overflow:hidden;background:var(--bg);color:var(--ink)}
.tvpage [hidden]{display:none!important}
.tvpair{position:fixed;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2.4vh;padding:6vh 6vw;text-align:center}
.tvlogo{height:7vh;width:auto}
.tvlead{font-size:clamp(18px,2.2vw,44px);max-width:62vw;line-height:1.35;margin:0}
.tvcode{font:700 clamp(64px,11vw,220px)/1 'Atkinson Hyperlegible',system-ui,sans-serif;letter-spacing:.12em;margin:1vh 0 0;padding-left:.12em;color:var(--chalk,#fff)}
.tvsmall{font-size:clamp(14px,1.5vw,30px);color:var(--mut);margin:0;max-width:64vw}
.tvfs{font-size:clamp(14px,1.4vw,28px);padding:.6em 1.2em;margin-top:1vh}
.tvalt{position:fixed;bottom:4vh;font-size:clamp(11px,1vw,20px)}.tvalt a{color:var(--mut)}
.tvfs:focus-visible{outline:4px solid var(--hand,#f2c230);outline-offset:4px}

.tvroom{position:fixed;inset:0;box-sizing:border-box;padding:3.5vh 3.5vw;display:grid;gap:2vh 2vw;
  grid-template-columns:minmax(0,1fr) 30vw;grid-template-rows:auto minmax(0,1fr) auto;grid-template-areas:"top top" "stage aud" "sub sub"}
.tvroom.noslide{grid-template-columns:minmax(0,1fr);grid-template-areas:"top" "aud" "sub"}
.tvroom.noslide .tvstage{display:none}
.tvtop{grid-area:top;display:flex;align-items:center;gap:1.4vw;min-width:0}
.tvtop h1{flex:1 1 auto;min-width:0;margin:0;font:700 clamp(18px,2.2vw,46px)/1.2 'Atkinson Hyperlegible',system-ui,sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tvtop .pill{position:static;white-space:nowrap;flex:0 0 auto;font-size:clamp(12px,1.25vw,26px);padding:.25em .8em;border-radius:1em}
.tvmode{font-size:clamp(11px,1vw,20px);color:var(--mut)}
.tvstage{grid-area:stage;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1vh}
.tvslide{flex:1 1 auto;min-height:0;width:100%;display:flex;align-items:center;justify-content:center}
.tvslide img{max-width:100%;max-height:100%;object-fit:contain;border-radius:.6vw;background:#fff;box-shadow:0 1vh 4vh #0006}
.tvslide img:not([src]){visibility:hidden}
.tvnote{font-size:clamp(13px,1.3vw,26px);color:var(--mut);margin:0;text-align:center;max-width:46vw}
.tvaud{grid-area:aud;min-height:0;overflow:hidden;display:flex;align-items:center}
.tvaud .seats{width:100%;display:grid;grid-template-columns:repeat(var(--tvcols,2),minmax(0,1fr));gap:1.6vh 1.2vw;align-content:center}
.tvpage .seat{display:flex;flex-direction:column;align-items:center;text-align:center;gap:.4vh;padding:1vh .6vw 1.2vh;border-radius:1.2vw;cursor:default;min-width:0}
.tvpage .seat .fig{width:var(--tvfig,8vw);height:auto}
.tvpage .seat .sx{display:block;min-width:0;width:100%}
.tvpage .seat .nm{display:block}
.tvpage .seat .nm b{display:block;font-size:clamp(13px,1.4vw,30px)}
.tvpage .seat .nm span{display:block;font-size:clamp(10px,.95vw,20px);color:var(--mut);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tvpage .seat .vis{display:block;margin:.3vh 0 0;font-size:clamp(10px,.95vw,20px);color:var(--mut);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tvpage .seat .thought,.tvpage .seat .bars,.tvpage .seat .badge{display:none}
.tvpage .seat.up{box-shadow:inset 0 0 0 .3vw var(--hand)}
.tvsub{grid-area:sub;min-height:2.6em;box-sizing:border-box;margin:0 auto;max-width:80vw;font-size:clamp(16px,2.1vw,44px);line-height:1.3;text-align:center;background:#000b;color:#fff;padding:.5em 1em;border-radius:.6em}
.tvsub b{color:var(--hand,#f2c230)}
.tvsub.none{visibility:hidden}
.tvpage .seats.tight .seat .vis,.tvpage .seats.tight .seat .nm span{display:none}
.tvpage .seats.tight .seat .nm b{font-size:clamp(11px,1.15vw,24px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (prefers-reduced-motion:reduce){.tvpage *{animation:none!important;transition:none!important}}

/* TV layout inside the presenter's own page (for screen mirroring): no room for the remote's buttons. */
.tvframe .tvfs,.tvframe .tvalt{display:none}
