/* Connection is a room-level hold, not a new game stage or an animated result. */
.tv-connection-hold {
  /* A hold owns header space, not an overlay above the QR, question or rules.
     The game DOM and host-authored clock stay untouched. */
  position: static;
  flex: 0 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.5vw, 40px);
  padding: clamp(16px, 2vh, 44px) clamp(20px, 2vw, 60px);
  border: 2px solid var(--primary, #BF3D0A);
  border-radius: 20px;
  background: var(--canvas, #FFF4DE);
  color: var(--ink, #173F46);
  box-shadow: 0 10px 36px #173f4629;
  pointer-events: none;
  text-align: start;
}
.tv-connection-hold strong { display: block; font-size: clamp(22px, 2.2vw, 60px); line-height: 1.2; }
.tv-connection-hold p { margin: 8px 0 0; font-size: clamp(17px, 1.5vw, 40px); line-height: 1.4; }
.tv-connection-symbol {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 1.5em;
  height: 1.5em;
  border: 2px solid currentColor;
  border-radius: 50%;
  color: var(--primary, #BF3D0A);
  font-size: clamp(26px, 2.5vw, 64px);
  font-weight: 800;
}
/* Share the existing header row: taking a second large row away from a compact
   game clipped its score footer. Keep the header landmark and all controls. */
html .tv-host-held .host-shell { display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-rows: auto minmax(0,1fr) auto; }
html .tv-host-held .host-topbar { grid-area: 1 / 2; gap: 0; min-width: 0; }
html .tv-host-held .host-brand { display: none; }
html .tv-host-held .host-grid { grid-area: 2 / 1 / 3 / -1; }
html .tv-host-held .tv-narrator { grid-area: 3 / 1 / 4 / -1; }
html .tv-host-held .tv-connection-hold { grid-area: 1 / 1; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; gap: 8px; }
html .tv-host-held .tv-connection-hold strong { font-size: clamp(18px,2vw,48px); }
html .tv-host-held .tv-connection-symbol { font-size: clamp(20px,2vw,48px); width: 1.2em; height: 1.2em; }
/* Retain the explanatory copy for assistive technology without repeating it
   over the board or consuming another fixed-height row. */
html .tv-host-held .tv-connection-hold p { position: absolute; width: 1px; height: 1px; padding: 0; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-height: 600px) {
  .tv-connection-hold { gap: 12px; padding: 10px 16px; border-radius: 14px; }
  .tv-connection-hold strong { font-size: 20px; }
  .tv-connection-hold p { margin-top: 4px; font-size: 16px; line-height: 1.25; }
  html .tv-host-held .tv-trivia-fragment { gap: 10px; }
  /* Keep every join instruction and the actual QR/code in the remaining
     compact lobby canvas. Only decorative/repeated invitation copy is hidden. */
  html .tv-host-held .tv-lobby .join-panel { gap: 4px; padding: 10px; }
  html .tv-host-held .tv-lobby .qr-frame { width: min(30vh,144px); padding: 8px; margin-bottom: 0; border-width: 4px; }
  html .tv-host-held .tv-lobby .join-panel h2 { margin: 0; font-size: 18px; }
  html .tv-host-held .tv-lobby .room-code { font-size: 28px; }
  html .tv-host-held .tv-lobby .roster-player { font-size: 12px; padding: 3px 6px; line-height: 1.2; }
  html .tv-host-held .tv-lobby .stage { padding: 8px 16px; }
  html .tv-host-held .tv-lobby .lobby-instructions { gap: 8px; }
  html .tv-host-held .tv-lobby .lobby-instructions > .eyebrow,
  html .tv-host-held .tv-lobby .lobby-instructions > .stage-copy { display: none; }
  html .tv-host-held .tv-lobby .lobby-instructions h1 { margin: 0; font-size: 24px; line-height: 1.1; }
  html .tv-host-held .tv-lobby .join-steps { margin: 0; gap: 8px; }
  html .tv-host-held .tv-lobby .join-steps > div { padding: 8px; gap: 8px; }
  html .tv-host-held .tv-lobby .join-steps span { font-size: 16px; line-height: 1.2; }
  html .tv-host-held .tv-lobby .lobby-count { margin: 0; padding: 6px 10px; }
  html .tv-host-held .tv-lobby .lobby-count strong { font-size: 28px; }
}
@media (min-width: 720px) and (max-height: 600px) {
  /* The generic narrow-browser fallback stacks two 360px panels. A landscape
     TV still needs one bounded canvas, including while its host reconnects. */
  html body.host-page.tv-host-held { height: 100svh; min-height: 0; overflow: hidden; }
  html .tv-host-held .host-shell { min-height: 0; }
  html .tv-host-held .host-grid.tv-lobby { grid-template-columns: minmax(240px,.7fr) minmax(0,1.3fr); grid-template-rows: minmax(0,1fr); gap: 16px; }
  html .tv-host-held .tv-lobby .stage,
  html .tv-host-held .tv-lobby .join-panel { min-height: 0; }
}
