/* The mast keeps the same broadcast identity on a venue screen and a handheld. */
.mast .brand{display:inline-flex;align-items:center;gap:.58rem;text-decoration:none}
.mast .wordmark{display:grid;color:#142e58;text-transform:uppercase;font:italic 840 clamp(1.08rem,1.58vw,1.55rem)/.84 Geist,Arial,sans-serif;letter-spacing:-.062em}
.mast .wordmark span:last-child{font-size:1.13em}
.broadcast-mark{position:relative;display:grid;place-items:center;flex:none;width:2.6rem;height:2.6rem;border-radius:50%;background:conic-gradient(from 28deg,#2856bf 0 150deg,transparent 150deg 180deg,#2856bf 180deg 330deg,transparent 330deg)}
.broadcast-mark:before,.broadcast-mark i,.broadcast-mark i:after{border-radius:50%}
.broadcast-mark:before{content:"";position:absolute;inset:8%;background:#fff}
.broadcast-mark i{z-index:1;display:grid;place-items:center;width:65%;height:65%;border:3px solid #2856bf}
.broadcast-mark i:after{content:"";width:52%;height:52%;background:#ee694d}
.studio-directory,.league-onair,.league-station-title,.league-station,.standings-tools{color:#173459}
.shell:has(.studio-directory){max-width:1480px}
.studio-directory{margin:clamp(1rem,2.8vw,2.6rem) auto;max-width:1190px}
.league-marquee{position:relative;isolation:isolate;display:grid;align-content:end;padding:clamp(1rem,4vw,4rem);min-height:clamp(25rem,45vw,34rem);overflow:hidden;border-radius:24px;background:#cce7fa url('/trivia-night.webp') center 58%/cover no-repeat}
.league-marquee-copy{max-width:35rem;padding:clamp(1.3rem,2.6vw,2.4rem);border-radius:19px;background:#d6deddec;box-shadow:0 12px 30px #184a7830}
.league-edition,.league-station-title>p{color:#2855a0;line-height:1.3;font-size:1rem;font-weight:640}
.league-marquee .league-marquee-copy h1{font-size:clamp(3rem,6vw,5.5rem);line-height:.99;font-weight:730;margin:.4rem 0 .85rem;color:#153559;letter-spacing:-.065em}
.league-marquee-copy>p:not(.league-edition){max-width:36em;line-height:1.5;color:#354e6a}
.league-marquee-copy .find-cta{margin-top:1.15rem}
.league-format{display:flex;justify-content:space-evenly;gap:.7rem;justify-self:end;align-self:end;background:#fff;color:#153559;padding:.75rem 1.1rem;border-radius:15px;box-shadow:0 6px 24px #1b45772a;margin-top:-3.7rem}
.league-format div{display:flex;flex-direction:column-reverse;gap:.2rem;padding-inline:.25rem;min-width:5.4rem;text-align:center}
.league-format div+div{border-left:1px solid #c8d8e9;padding-inline-start:1rem}
.league-format dt{font-size:.85rem;font-weight:530;color:#42617d}
.league-format dd{font-size:1.85rem;line-height:1;font-weight:720;letter-spacing:-.05em}
.studio-directory .league-directory{background:#d9e1e1;border:1px solid #cadae9;border-radius:22px;padding:clamp(1.1rem,3.2vw,2.8rem);margin-top:1.3rem}
.studio-directory .directory-head{align-items:center}.studio-directory .directory-head h2{font-size:clamp(1.85rem,4vw,3rem);color:#173459}
.studio-directory .zip-form>div{align-items:stretch}
.studio-directory .directory-row,.studio-directory .area-invite{border:1px solid #d0dfea;border-radius:16px;background:#fff;color:#173459}
.studio-directory .directory-row .row-season,.studio-directory .directory-row .row-schedule>span{color:#3161a2;text-transform:none;font:600 .92rem/1.25 Geist,Arial,sans-serif;letter-spacing:0}
.league-wrap{padding:clamp(1.1rem,3vw,2.5rem);background:#d8dfdf;color:#173459;border-radius:22px;box-shadow:0 10px 36px #153d6917}
.league-station-title{position:relative;isolation:isolate;background:#e2f1fd;border-radius:15px;padding:clamp(1.2rem,2.2vw,2rem);overflow:hidden}
.league-station-title::after{content:"";position:absolute;inset:0 0 0 auto;width:35%;background:url('/trivia-night.webp') right center/cover;mask-image:linear-gradient(to right,transparent,#000 42%);z-index:-1}
.league-station-title h2{max-width:70%;margin-top:.4rem;color:#163454;font-size:clamp(2rem,4vw,4.1rem);font-weight:680}
.league-wrap.league-station:is(:has(#hostLogin),:has(#venueLogin),:has(#teamLogin)){display:grid;grid-template-columns:.85fr 1.2fr;gap:clamp(1rem,4vw,3.5rem);align-items:start;max-width:1000px;border:0}
.league-station .league-station-title{align-self:stretch;min-height:16rem;display:flex;flex-direction:column;justify-content:end;background:#c9e3f6 url('/trivia-night.webp') 80% center/cover}
.league-station .league-station-title::after{width:auto;inset:0;background:linear-gradient(to top,#eff7ff 0%,#eff7ffec 21%,transparent 68%);mask:none}
.league-station .league-station-title h2{max-width:none;line-height:1.05}
.league-station .station-content{min-width:0;margin-top:0}
.station-content>.secondary,.station-content>.text-link,.station-content>p,.station-content>details,.station-content>form+button{margin-top:1rem}
.station-content .form label{font-weight:550}
.standings-tools{display:flex;align-items:center;gap:.6rem 1.2rem;flex-wrap:wrap}
.standings-tools label{display:flex;gap:.5rem;align-items:center;margin:0}
.standings-tools select{margin:0;width:auto}.standings-tools p{flex:1 1 14rem;text-align:right}
.score-scroll{max-width:100%;overflow-x:auto}
.league-wrap .board,.league-onair .board{background:#fff;color:#173459;border-radius:12px;overflow:hidden}
.league-wrap .board th,.league-onair .board th{background:#e2eef9;color:#214569;text-transform:none;font:620 .93rem/1.23 Geist,Arial,sans-serif;letter-spacing:0}
.league-wrap .board tbody tr:nth-child(even),.league-onair .board tbody tr:nth-child(even){background:#f3f8fc}
.league-onair{min-width:0;background:#d8dfdf;border-radius:20px;padding:clamp(1rem,2.2vw,2rem)}
.league-gamehead{display:flex;justify-content:space-between;gap:1rem;align-items:center;padding:.65rem .9rem;border-radius:14px;background:#e2eef9;color:#15395e}
.league-game-category>p,.league-game-clock>span,.league-question-number{font:550 clamp(.92rem,1.3vw,1.15rem)/1.3 Geist,Arial,sans-serif;letter-spacing:0}
.league-game-category strong{display:block;font-size:clamp(1.2rem,2.2vw,2rem);line-height:1.13;font-weight:650}
.league-game-clock{display:flex;align-items:center;gap:1rem}
.league-game-clock .game-countdown{border:0;border-radius:12px;background:#c8dff9;color:#214779;padding:.22em .42em;font-size:clamp(1.6rem,3vw,2.75rem);font-weight:620}
.league-onair .league-question-number{color:#345680;text-transform:none;margin-bottom:.38rem}
.league-onair .league-question{min-width:0}
.league-onair .league-question h2{color:#173459;letter-spacing:-.034em;font-size:clamp(1.62rem,3.8vw,3.7rem);font-weight:620;line-height:1.16}
.league-onair .choices .choice{background:#cbd6d9;color:#173459;border:1.5px solid #b7cee4;border-radius:15px;box-shadow:0 2px 0 #153d6910;padding:.72em .8em;font-weight:550;letter-spacing:-.015em}
.league-onair .choices .choice b{border-radius:50%;background:#deebff;color:#25569e;font-size:.81em;font-weight:650}
.league-onair .choices .choice.chosen{background:#e4edfe;border-color:#396db9;box-shadow:0 0 0 1px #396db9}
.league-onair .choices .choice.right{background:#ccdefa;border-color:#254f87;box-shadow:0 0 0 1px #254f87}
.league-onair .choices .choice.right b{background:#254f87;color:white}
.league-pair-scores{font-size:.95rem}
.league-onair .statusline,.league-onair .locked-pick{color:#244c7c}
.league-onair .league-game-main>*+*{margin-top:.75rem}
@media(min-width:721px) and (orientation:landscape){
 .category-tv .league-question-panel{max-width:none;margin:.55rem auto;background:transparent;padding:.5rem 0}
 .category-tv .league-question-panel .league-game-main,.category-tv .league-question-panel:not(:has(.league-game-main)){padding:clamp(.65rem,1.5vh,1.3rem);border-radius:16px;background:#d8dfdff5;box-shadow:0 5px 28px #0f396127}
 .category-tv .league-question-panel .league-gamehead{padding:.35rem .85rem}.category-tv .league-question-panel .live-display{display:block}.category-tv .league-question-panel .live-display aside{margin-top:.65rem}
 .category-tv .league-question-panel h2{font-size:calc(clamp(1.8rem,min(4.7vw,7.6vh),7rem)*var(--question-scale,1));line-height:1.06;margin:.32rem 0 .55rem}
 .category-tv .league-question-panel .choices .choice{min-height:clamp(49px,9.7vh,145px);padding:.3em .65em;font-size:calc(clamp(1.35rem,min(2.8vw,5.15vh),4.7rem)*var(--question-scale,1))}
 .category-tv .league-question-panel .choices{margin-top:.45rem}
}
@media(max-width:950px){.league-format{margin-top:1rem;justify-self:start}.league-marquee-copy{max-width:32rem}}
@media(max-width:720px){
 .broadcast-mark{width:2.05rem;height:2.05rem}.broadcast-mark i{border-width:2px}
 .league-wrap.league-station:is(:has(#hostLogin),:has(#venueLogin),:has(#teamLogin)){display:block}
 .league-station .league-station-title{min-height:8.6rem;margin-bottom:1.15rem;background-position:center 55%}
 .league-marquee{border-radius:18px;min-height:0;padding-top:clamp(6.5rem,24vw,11rem)}
 .league-marquee-copy{max-width:none}
 .league-format{justify-self:stretch;padding:.75rem .35rem;gap:.15rem}
 .league-format div{min-width:0;flex:1}.league-format div+div{padding-inline-start:.25rem}
 .league-format dt{font-size:.82rem}.league-format dd{font-size:1.5rem}
 .standings-tools p{text-align:left}.league-station-title h2{max-width:77%}
 .league-onair{margin:1rem auto;padding:1rem;background:#d4dcde}
 .league-gamehead{align-items:start;gap:.5rem}
 .league-game-clock{flex-direction:column-reverse;align-items:end;gap:.3rem}
 .league-game-clock span{font-size:.86rem}
 .league-onair .choices{grid-template-columns:1fr}
 .league-onair .choices .choice{min-height:55px;font-size:1.06rem;line-height:1.28}
 .league-onair.view-team .league-question h2{text-wrap:pretty;font-size:clamp(1.52rem,5.2vw,2.25rem);font-weight:590;line-height:1.22}
 .league-onair.view-team .choices .choice b{width:1.9em;height:1.9em}
 .league-onair .league-pair-scores{font-weight:450}
}
.league-gamehead{position:relative;isolation:isolate;overflow:hidden;background:#c9d6da}
.league-gamehead::before{content:"";position:absolute;z-index:-1;inset:0;background-image:linear-gradient(90deg,#c9d6da 0%,#c9d6da 24%,#c9d6da1a 47%,#c9d6da15 61%,#c9d6da 86%),var(--round-image,url('/trivia-night.webp'));background-size:cover;background-position:center 48%}
@media(min-width:721px) and (orientation:landscape){
 body.category-tv.league-play{background-color:#deebf3;background-image:linear-gradient(180deg,#334d5a40,#263f4b30 60%,#263f4b77),var(--round-image,url('/trivia-night.webp'));background-position:center;background-size:cover}
 .category-tv.league-play .mast{background:#eff5f9ee;border:0;border-radius:0 0 12px 12px;padding-inline:.9rem}
}
@media(max-width:720px){
 .league-gamehead{padding-top:calc(.65rem + 42px)}
 .league-gamehead::before{inset:0 0 auto;height:42px;background-image:linear-gradient(#e2eff622,#e2eff622),var(--round-image,url('/trivia-night.webp'))}
}

body.league-play:not(.casual-mode){background-color:#98a8af}.league-play:not(.casual-mode) .mast{background:#d6dddded;border-radius:0 0 12px 12px;padding-inline:.85rem}
.matchup-score{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:.1rem 1rem;align-items:center;margin:.5rem 0;padding:.45rem .9rem;background:#c0cfd4;border-radius:10px;color:#1e384d}
.match-score-label{grid-column:1/-1;font-size:.84rem;font-weight:570}.matchup-score>div{min-width:0;display:flex;align-items:baseline;column-gap:.55rem;row-gap:0;flex-wrap:wrap}
.matchup-score strong{font-weight:640;overflow-wrap:anywhere}.matchup-score b{font-size:1.12em;white-space:nowrap;font-variant-numeric:tabular-nums}.matchup-score small{color:#405866;white-space:nowrap}.matchup-score .versus{color:#4b6270;font-size:.86rem}
@media(max-width:720px){.matchup-score{gap:.12rem .48rem;padding:.5rem .65rem}.matchup-score>div{align-content:start}.matchup-score strong{width:100%}.matchup-score small{font-size:.8rem}}

/* Player screens use a dark timer band and warm, high-contrast answer cards. */
body.handset-view,
body:has(.league-onair.view-team, .league-station #teamLogin) {
  --ink: #1c2323;
  --sub: #3d4240;
  --muted: var(--sub);
  --sheet: #e9e2d7;
  --answer-paper: #faf8f0;
  --round-band: #283e47;
  --band-ink: #fffaf1;
  --score-paper: #dcd9cf;
  --stroke: #78827c;
  --answer-accent: #2a5551;
  color: var(--ink);
}
body.handset-view:not(:has(.break-stage, .final-stage)) {
  background: linear-gradient(145deg, #aaa9a3, #969590);
}
body.league-play:has(.league-onair.view-team),
body:has(.league-station #teamLogin) { background-color: #989793; }

.handset-view .phone-stage .question-panel,
.league-onair.view-team,
.league-station:has(#teamLogin) {
  color: var(--ink);
  background-color: var(--sheet);
  border-color: var(--stroke);
}
.handset-view .phone-stage :is(.casual-topline, .player-score),
.league-onair.view-team .matchup-score {
  color: var(--ink);
  background-color: var(--score-paper);
}
.handset-view .phone-stage :is(.question-score, .game-countdown),
.league-onair.view-team .league-question h2,
.league-station:has(#teamLogin) h2 { color: var(--ink); }

.handset-view .phone-stage :is(.question-meta, .round-call, .player-score dt, .venue-scores h3),
.handset-view .team-standings summary,
.league-onair.view-team :is(.league-question-number, .match-score-label, .matchup-score small, .versus) {
  color: var(--sub);
}
.handset-view .phone-stage :is(.venue-scores b, .recap-section b),
.handset-view .handset-lobby .check-in-roster li { color: var(--ink); }
.handset-view .question-score { border-color: var(--stroke); }

.handset-view .phone-stage .round-banner,
.league-onair.view-team .league-gamehead {
  background-color: var(--round-band);
  color: var(--band-ink);
}
.handset-view .phone-stage .round-banner :is(h2, .round-meta, .phase-clock, .game-countdown),
.league-onair.view-team .league-game-clock .game-countdown {
  color: var(--band-ink);
  background: transparent;
}
.handset-view .phone-stage .phase-clock { border-color: #788783; }
@media (min-width:721px) {
  .league-onair.view-team .league-gamehead::before {
    background-image: linear-gradient(90deg, var(--round-band) 20%, #283e47cc 45%, #283e47cc 62%, var(--round-band) 85%), var(--round-image, url('/trivia-night.webp'));
  }
}
.handset-view .phone-stage .question-body h1,
.league-onair.view-team .league-question h2 {
  font-size: clamp(1.5rem, 5.2vw, 2.25rem);
  font-weight: 620;
  line-height: 1.25;
}

.handset-view .phone-stage .venue-answer,
.league-onair.view-team .choices .choice {
  font-size: 1.1rem;
  font-weight: 600;
  background: var(--answer-paper);
  border-color: var(--stroke);
  color: var(--ink);
}
.handset-view .venue-answer b,
.league-onair.view-team .choices .choice b {
  background: #334950;
  color: var(--band-ink);
}
.handset-view .phone-stage .venue-answer.picked,
.league-onair.view-team .choices .choice.chosen {
  background: #d5e8e5;
  border-color: var(--answer-accent);
  box-shadow: inset 0 0 0 1px var(--answer-accent);
}
.handset-view .venue-answer.picked b,
.league-onair.view-team .choices .choice.chosen b {
  background: var(--answer-accent);
  color: white;
}
.handset-view .phone-stage .venue-answer.correct,
.league-onair.view-team .choices .choice.right {
  background: #dbe8df;
  border-color: #46634f;
  box-shadow: inset 0 0 0 1px #46634f;
}
.handset-view .phone-stage:has(.lock-casual, .locked-pick) .venue-answer.picked::after,
.league-onair.view-team.phase-answer .choice.chosen::after {
  content: "✓";
  content: "✓" / "";
  margin-inline-start: auto;
  color: var(--answer-accent);
  font-weight: 700;
}
.handset-view .venue-answer.correct b,
.league-onair.view-team .choices .choice.right b { background: #46634f; color: white; }
.handset-view .phone-stage :is(.locked-pick, .result-caption),
.league-onair.view-team .locked-pick { color: var(--ink); background: var(--score-paper); }
.league-onair.view-team .statusline { color: var(--ink); }
.handset-view .primary:disabled,
.league-onair.view-team #lock:disabled {
  color: var(--sub);
  background: #d9ddd7;
  opacity: 1;
}

/* Keep the round photo visible during league scoring breaks. */
.league-onair:is(.phase-break, .phase-complete)::before {
  content: "";
  display: block;
  height: clamp(42px, 8vh, 90px);
  border-radius: 12px;
  background: var(--round-image, url('/trivia-night.webp')) center 48% / cover;
}
.playoff-scores{display:flex;flex-wrap:wrap;gap:.65rem;margin-block:.6rem}
.playoff-scores section{flex:1 1 13rem;background:#e8e3d7;color:#25323a;border-inline-start:4px solid #a85636;border-radius:7px;padding:.65rem 1rem}
.playoff-scores ul{list-style:none;padding:0}.playoff-scores li{overflow-wrap:anywhere}
