/* Game Night's original stadium palette and display lettering. */
.game-page { padding: clamp(24px,4vw,52px) 20px 48px; }
.game-page h1 { margin: 0 0 .2em; line-height: 1.05; }
.game-page #library > p { margin: 0 0 24px; }
.game-page .game h2 { margin: 0 0 6px; font-size: 1.4rem; }
.game-page .set .name { white-space: normal; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#stage {
  --pitch: #101824; --surface: #182333; --border: #334257; --chalk: #f8f7f4; --soft: #b7c3d1;
  --hot: #ff792c; --lime: #bafa80;
  --game-type: Impact, Haettenschweiler, 'Arial Narrow Bold', 'Arial Black', system-ui, sans-serif;
  color: var(--chalk); overflow-wrap: anywhere;
}
#stage:empty { display: none; }
.room-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.3rem; }
.room-id, .round-meta, .clock { font-size: .79rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.room-id { margin: 0 0 .35rem; color: var(--hot); }
.room-top h1, .round-content h2, .champion { font-family: var(--game-type); font-weight: 750; line-height: 1.08; }
.room-top h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); letter-spacing: -.025em; margin: 0; }
#stage[data-game="legends"] .room-top h1 { display: table; letter-spacing: .01em; font-weight: 900; text-transform: uppercase; border-bottom: 5px solid var(--hot); }
#stage[data-game="mvp"] .room-top h1 { color: var(--hot); }
.room-layout { display: grid; grid-template-columns: minmax(0,2fr) minmax(240px,1fr); gap: 16px; align-items: start; }
.round-panel, .standings, .invite-box { border: 1px solid var(--border); border-radius: 16px; }
.round-panel {
  position: relative; overflow: hidden; padding: clamp(22px,4vw,42px);
  background: linear-gradient(145deg, #203149 0%, var(--pitch) 57%);
}
.round-content h2 { font-size: clamp(1.85rem,3.5vw,2.8rem); letter-spacing: -.018em; margin: 0 0 1rem; }
.room-instructions, .round-explanation, .fallback-clue, .clues { color: var(--soft); font-size: 1.08rem; }
.room-instructions { max-width: 34em; }
.clues { padding-left: 1.3rem; }
.clues li + li { margin-top: .45em; }
.room-status { color: var(--lime); font-weight: 600; }
.room-controls { display: flex; flex-wrap: wrap; gap: .65rem; }
.room-controls:not(:empty) { margin-top: 1.5rem; }
.room-sound { flex: none; }
.round-meta { color: var(--soft); display: flex; flex-wrap: wrap; gap: .8em; margin-bottom: .8rem; }
.clock:not([hidden]) { display: inline-block; float: right; margin: -.3rem 0 .8rem .8rem; padding: .35em .7em; border-radius: 6px; background: #283749; color: var(--lime); font-variant-numeric: tabular-nums; }
.vote-emoji { display: block; font-size: 2.3rem; }
.legend-image { width: min(100%, 430px); height: clamp(180px,30vh,320px); object-fit: contain; display: block; margin: .75rem 0 1rem; background: #0c131e; border-radius: 10px; }
.photo-credit { font-size: .82rem; color: var(--soft); }
.room-choices { display: grid; gap: .6rem; grid-template-columns: repeat(2,minmax(0,1fr)); margin: 1.25rem 0 0; clear: both; }
.round-choice { display: flex; gap: .7rem; align-items: center; text-align: left; padding: .7rem; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--chalk); font: inherit; line-height: 1.25; font-weight: 700; min-height: 55px; }
button.round-choice:not(:disabled) { cursor: pointer; }
button.round-choice:not(:disabled):hover, button.round-choice:not(:disabled):focus-visible { border-color: var(--hot); background: #26354a; }
.round-choice small { display: block; color: var(--soft); font-weight: 600; margin-top: .2em; }
.round-choice .choice-key { flex: none; display: grid; place-items: center; width: 1.95rem; height: 1.95rem; color: #ffb685; border-radius: 7px; background: #47301e; }
.round-choice.chosen { border-color: var(--hot); }
.round-choice.correct { border-color: var(--lime); background: #233526; }
.round-choice.correct .choice-key { background: var(--lime); color: #19321d; }
.champion { font-size: clamp(2rem,4vw,3rem); margin: .65rem 0; color: var(--lime); }
.award, .round-result { font-size: 1.05rem; }
.room-side { display: grid; gap: 12px; }
.room-side h3 { margin: 0; font-size: 1.15rem; }
.invite-box, .standings { background: var(--pitch); padding: 18px; }
.invite-box { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.invite-box img { width: clamp(85px,10vw,128px); height: auto; aspect-ratio: 1; border: 7px solid white; background: white; border-radius: 8px; }
.invite-box p, .ready-count, .standings .muted { color: var(--soft); font-size: .92rem; margin: .3em 0; }
.display-code, .code-input { font-family: ui-monospace, monospace; letter-spacing: .1em; font-weight: 800; }
.display-code { color: #ff9d61; font-size: 1.75rem; }
.standings ul { list-style: none; padding: 0; margin: .6rem 0 0; }
.standings li { display: flex; align-items: baseline; justify-content: space-between; gap: .6em; border-top: 1px solid var(--border); padding: .48em 0; }
.standings li:last-child { padding-bottom: 0; }
.standings li b { color: var(--lime); font-variant-numeric: tabular-nums; }
.standings li small { display: block; color: var(--soft); }
.standings .team-scores { background: var(--surface); border-radius: 8px; padding: .5rem .8rem; }
.team-scores li:first-child { border-top: 0; }
.room-invite:empty, .room-msg:empty, #pageMsg:empty, #tvMsg:empty { display: none; }
.tv-tools { border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin: 20px 0 10px; }
.tv-tools summary { font-weight: 700; cursor: pointer; }
.tv-tools p { color: var(--muted); }
.tv-tools input { max-width: 150px; text-transform: uppercase; letter-spacing: .12em; }
.tv-links { margin: .8rem 0; }
.link-button { font: inherit; color: var(--orange); background: none; border: 0; padding: 0; cursor: pointer; }
.link-button:hover { text-decoration: underline; }
.back-link, .after-game a { display: inline-block; padding: .5rem 0; }
.after-game:not(:empty) { margin-top: .8rem; }
.enter-room { width: min(440px,100%); margin: auto; }
.enter-room button { margin-top: 1rem; }
.enter-room input { text-transform: uppercase; }
@media(max-width: 760px) {
  .room-layout { grid-template-columns: 1fr; }
  .room-side { grid-template-columns: repeat(auto-fit,minmax(min(230px,100%),1fr)); }
  .room-invite:empty { display: none; }
}
@media(max-width: 480px) {
  .game-page { padding-inline: 14px; }
  .room-choices { grid-template-columns: 1fr; }
  .round-panel { padding: 20px 16px; }
  .room-top { align-items: end; }
  .room-sound { font-size: .76rem; }
}
.roster-name { flex: 1; }
.standings li:has(.roster-avatar) { align-items: center; }
.roster-avatar { flex: none; }
