.tv-view { --bg: #0b1019; background: radial-gradient(ellipse at 12% 8%,#253247 0,transparent 46%),#0b1019; min-height: 100vh; }
.tv-wrap { max-width: 1600px; margin: 0 auto; padding: 3.5vh 4vw; }
.tv-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 3vh; }
.tv-top .brand { font-size: clamp(1rem,2vw,2rem); }
.pairing-panel { margin: 15vh auto 8vh; max-width: 54rem; padding: 0 1rem; }
.pairing-panel h1 { font-size: clamp(2rem,5vw,5rem); line-height: 1; margin: 0; }
.pairing-panel p { font-size: clamp(1rem,2.2vw,2.2rem); color: #b7c3d1; }
.pairing-panel .display-code { font-size: clamp(3rem,9vw,8rem); }
.tv-view .room-id, .tv-view .round-meta, .tv-view .clock { font-size: clamp(.85rem,1.3vw,1.35rem); }
.tv-view .room-layout { grid-template-columns: minmax(0,2.5fr) minmax(220px,1fr); }
.tv-view .room-status, .tv-view .clues, .tv-view .fallback-clue, .tv-view .round-explanation, .tv-view .room-instructions, .tv-view .round-choice { font-size: clamp(1rem,1.65vw,2rem); }
.tv-view .standings, .tv-view .room-side h3 { font-size: clamp(1rem,1.5vw,1.55rem); }
.tv-view .room-top h1 { font-size: clamp(2rem,4.3vw,4.8rem); }
.tv-view .invite-box { display: grid; justify-items: start; }
.tv-view .invite-box img { width: clamp(90px,16vw,230px); }
.tv-view .invite-box p { font-size: clamp(.9rem,1.3vw,1.4rem); }
.tv-view .display-code { font-size: clamp(2rem,3.8vw,4.5rem); }
.tv-view .pairing-panel .display-code { font-size: clamp(3rem,9vw,8rem); }
@media(min-width: 950px) {
  .tv-view .round-content:has(.legend-image:not([hidden])) { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); column-gap: 20px; align-items: center; }
  .tv-view .round-content:has(.legend-image:not([hidden])) > * { grid-column: 1/-1; }
  .tv-view .round-content:has(.legend-image:not([hidden])) > .legend-image { grid-column: 1; height: 27vh; width: 100%; margin: 0; }
  .tv-view .round-content:has(.legend-image:not([hidden])) .room-choices { grid-column: 2; grid-template-columns: 1fr; margin: 0; }
}
@media(max-width: 740px) { .tv-view .room-layout { grid-template-columns: 1fr; } }

@media(min-width: 741px) and (orientation: landscape) {
  .tv-view { height: 100vh; overflow: hidden; }
  .tv-wrap { transform-origin: top center; transform: scale(var(--screen-fit, 1)); }
  .tv-view .round-panel { padding: clamp(20px,2.6vh,36px) clamp(24px,2.5vw,36px); }
}
