/* UNION_V12_SCREEN_FIT: laptop / mirrored TV ONLY. Never targets .phone. */
html:has(body.screen),body.screen{height:100%;overflow:hidden!important}
body.screen{min-height:0!important}
.screen .flagline{height:9px!important}
.screen .shell{
  height:calc(100vh - 9px)!important;
  height:calc(100dvh - 9px)!important;
  min-height:0!important;
  max-height:calc(100dvh - 9px)!important;
  padding:clamp(5px,1vh,12px) clamp(12px,2.8vw,48px) clamp(4px,.7vh,8px)!important;
  overflow:hidden!important;
  display:flex!important;flex-direction:column!important;
}
.screen .top{
  flex:0 0 auto!important;min-height:0!important;
  padding:clamp(3px,.7vh,9px) clamp(6px,1vw,14px)!important;
  margin:0 0 clamp(4px,.7vh,9px)!important;
  gap:10px!important;
}
.screen .brand{gap:clamp(7px,1vw,12px)!important}
.screen .brand .emblem{width:clamp(46px,7vh,72px)!important;height:clamp(46px,7vh,72px)!important;font-size:clamp(25px,4.5vh,39px)!important;border-radius:13px!important}
.screen .emblem span{font-size:13px!important;bottom:6px!important;left:5px!important}
.screen .brand small{font-size:clamp(9px,1.25vh,12px)!important;line-height:1.3!important}
.screen .brand h1{font-size:clamp(22px,4.4vh,42px)!important;line-height:1.19!important}
.screen .status{font-size:clamp(10px,1.5vh,13px)!important}
.screen .stage{
  flex:1 1 0!important;
  min-height:0!important;
  height:auto!important;
  max-height:100%!important;
  padding:clamp(3px,.65vh,9px) 0!important;
  overflow:hidden!important;
  align-items:center!important;
}
.screen .shell>footer{display:none!important}
.screen .controlbar{
  flex:0 0 auto!important;
  min-height:0!important;
  border-radius:14px!important;
  padding:clamp(5px,.9vh,10px) clamp(9px,1.4vw,16px)!important;
  gap:clamp(5px,.7vw,10px)!important;
  flex-wrap:nowrap!important;
}
.screen .controls-title{font-size:clamp(10px,1.2vw,14px)!important}
.screen .controls-title small{display:none!important}
.screen .control-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;flex-wrap:wrap!important;gap:clamp(4px,.55vw,8px)!important}
.screen .control-actions .btn{
  padding:clamp(5px,.8vh,8px) clamp(7px,1vw,14px)!important;
  font-size:clamp(10px,1.1vw,13px)!important;
  min-height:clamp(31px,4.7vh,42px)!important;
  border-radius:9px!important;
  white-space:nowrap!important;
  flex:none!important;
}
/* QR lobby: top row expands / registered names remain visible but compact. */
.screen .lobby{
  height:100%!important;min-height:0!important;max-height:100%!important;
  grid-template-columns:minmax(0,1fr) minmax(230px,29%)!important;
  grid-template-rows:minmax(0,1fr) auto!important;
  gap:clamp(7px,1.4vh,14px)!important;
  align-items:stretch!important;
}
.screen .hero,.screen .qr-card{min-height:0!important;height:100%!important;overflow:hidden!important}
.screen .hero{padding:clamp(13px,2.4vh,26px) clamp(13px,2vw,28px)!important;border-radius:21px!important}
.screen .hero h2{font-size:clamp(29px,min(4.1vw,6vh),60px)!important;line-height:1.15!important;margin:clamp(6px,1vh,14px) 0!important}
.screen .hero p{font-size:clamp(14px,1.7vw,21px)!important;line-height:1.45!important}
.screen .steps{margin-top:clamp(8px,1.8vh,19px)!important;gap:clamp(5px,.7vw,10px)!important}
.screen .steps span{font-size:clamp(11px,1.15vw,15px)!important;padding:clamp(5px,.8vh,9px) clamp(7px,.8vw,12px)!important}
.screen .qr-card{padding:clamp(10px,1.6vh,18px)!important;border-radius:21px!important}
.screen .qr-card h3{font-size:clamp(17px,2.2vw,23px)!important;margin:0 0 clamp(4px,.7vh,9px)!important}
.screen .qrcode{width:min(100%,26vh,215px)!important;max-height:28vh!important}
.screen .qr-card .scan-tip{font-size:11px!important;margin:clamp(4px,.7vh,8px) 0!important}
.screen .qr-card .join-address{font-size:11px!important}
.screen .people{
  min-height:0!important;
  height:clamp(78px,14vh,119px)!important;
  max-height:14vh!important;
  padding:clamp(8px,1.2vh,13px) clamp(10px,1.4vw,20px)!important;
  border-radius:17px!important;
  overflow:hidden!important;
}
.screen .people-head{margin:0 0 4px!important}
.screen .people h3{font-size:clamp(13px,1.5vw,18px)!important}
.screen .name-list{max-height:calc(14vh - 40px)!important;overflow:hidden!important;gap:4px!important}
.screen .name-chip{font-size:clamp(9px,.9vw,12px)!important;padding:3px 6px!important}
/* Question & answer reveal: no photo; text and choices occupy available height. */
.screen .question-card{
  display:grid!important;grid-template-columns:minmax(0,1fr)!important;
  height:auto!important;max-height:100%!important;
  width:100%!important;max-width:1300px!important;
  margin:auto!important;overflow:hidden!important;
}
.screen .question-art{display:none!important}
.screen .question-body{
  width:100%!important;min-height:0!important;max-height:100%!important;
  padding:clamp(12px,2.1vh,25px) clamp(13px,2vw,25px)!important;
  overflow:hidden!important;
  border-radius:22px!important;
}
.screen .question-head{margin-bottom:clamp(3px,.7vh,8px)!important;font-size:clamp(12px,1.5vw,17px)!important}
.screen .timer-pill{font-size:clamp(19px,3vh,28px)!important;padding:2px 11px!important;min-width:74px!important}
.screen .question-body h2{
  font-size:clamp(23px,min(3.2vw,4.8vh),49px)!important;
  line-height:1.34!important;
  margin:clamp(4px,.8vh,10px) 0 clamp(8px,1.4vh,15px)!important;
}
.screen .answers-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:clamp(7px,1.2vh,13px)!important}
.screen .option{
  min-height:clamp(53px,8.5vh,76px)!important;
  font-size:clamp(16px,min(1.85vw,2.8vh),23px)!important;
  line-height:1.24!important;
  padding:clamp(8px,1.2vh,12px) clamp(9px,1.3vw,17px)!important;
  border-radius:13px!important;
}
.screen .option .letter{width:clamp(30px,4.6vh,40px)!important;height:clamp(30px,4.6vh,40px)!important;border-radius:9px!important}
.screen .helper-note{font-size:clamp(11px,1.5vh,14px)!important;margin:clamp(5px,.8vh,10px) 0 0!important}
.screen .reveal-banner{font-size:clamp(12px,1.6vh,16px)!important;padding:clamp(4px,.6vh,8px) 9px!important;margin-bottom:4px!important}
/* Rankings: ten names + point values fit at browser viewport height. */
.screen .results-board{
  min-height:0!important;max-height:100%!important;width:100%!important;
  max-width:1270px!important;
  padding:clamp(10px,1.5vh,20px) clamp(13px,2vw,27px)!important;
  border-radius:21px!important;overflow:hidden!important;
}
.screen .results-head{margin-bottom:clamp(3px,.6vh,8px)!important}
.screen .results-head .eyebrow{font-size:clamp(13px,1.7vh,17px)!important}
.screen .results-head h2{font-size:clamp(20px,3vh,30px)!important;margin:0!important}
.screen .leaderboard{width:100%!important;margin:0!important;border-spacing:0 clamp(2px,.45vh,5px)!important;table-layout:fixed!important}
.screen .leaderboard th{padding:0 clamp(6px,1vw,14px) clamp(3px,.5vh,6px)!important;font-size:clamp(10px,1.5vh,14px)!important}
.screen .leaderboard td{
  padding:clamp(3px,.65vh,7px) clamp(6px,1.1vw,14px)!important;
  font-size:clamp(13px,min(1.6vw,2.25vh),21px)!important;
  line-height:1.15!important;
  white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
.screen .ranknum{height:clamp(24px,3.6vh,33px)!important;width:clamp(24px,3.6vh,33px)!important;border-radius:9px!important}
/* Countdown, final winner and operators stay completely inside the viewport. */
.screen .center-stage{max-height:100%!important;overflow:hidden!important;padding:clamp(12px,2.4vh,29px)!important}
.screen .big-count{font-size:clamp(96px,23vh,230px)!important}
.screen .center-stage h2{font-size:clamp(24px,4.5vh,46px)!important;margin:clamp(3px,.7vh,9px) 0!important}
.screen .center-stage p{font-size:clamp(14px,2.2vh,21px)!important}
.screen .winning{max-height:100%!important;overflow:hidden!important;padding:clamp(14px,2.2vh,27px)!important}
.screen .winning .trophy{font-size:clamp(45px,10vh,80px)!important}
.screen .winning h2{font-size:clamp(26px,4.2vh,48px)!important;margin:clamp(4px,.8vh,11px) 0!important}
.screen .winner-name{font-size:clamp(29px,5vw,67px)!important}
.screen .winner-score{font-size:clamp(17px,2.5vh,27px)!important}
.screen .subwinners{font-size:clamp(13px,1.8vh,18px)!important;margin-top:clamp(6px,1vh,12px)!important}
/* On 720p / modest laptops, sacrifice decoration before quiz readability. */
@media (max-height:720px){
  .screen .top{padding-block:2px!important}
  .screen .hero::before,.screen .hero::after{display:none!important}
  .screen .hero h2{font-size:clamp(28px,4.5vh,40px)!important}
  .screen .steps{margin-top:8px!important}
  .screen .people{height:80px!important;max-height:80px!important}
  .screen .name-list{max-height:40px!important}
  .screen .leaderboard td{padding:3px 10px!important}
  .screen .controlbar{padding:4px 9px!important}
}
@media (max-width:1050px){
  .screen .top .status{display:none!important}
  .screen .controls-title{display:none!important}
  .screen .controlbar{justify-content:center!important}
}
