.round-podium { max-width: 640px; margin: 24px auto 0; }
#game .timer { color: var(--theme-accent, #1467d8); }
.round-podium h2 { font-size: clamp(21px, 2.5vw, 28px); margin: 0 0 10px; color: var(--text, #20211f); }
.round-podium .round-podium-note { min-height: 0; margin: 0 0 22px; color: var(--theme-muted, #62615e); font-size: 12px; line-height: 1.6; }
.round-podium-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 12px; margin: 0; padding: 0; list-style: none; }
.round-podium-player { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; padding: 20px 10px 0; border: 1px solid var(--podium-border); border-radius: 20px 20px 12px 12px; background: var(--podium-bg); color: var(--text, #20211f); overflow: hidden; }
.round-podium-player.podium-place-1 { grid-column: 2; grid-row: 1; --podium-bg: #fff0bb; --podium-border: #e3c477; --podium-step: #e9c76b; --podium-height: 62px; }
.round-podium-player.podium-place-2 { grid-column: 1; grid-row: 1; --podium-bg: #eaf2ff; --podium-border: #c7d9ed; --podium-step: #c6d9f0; --podium-height: 42px; }
.round-podium-player.podium-place-3 { grid-column: 3; grid-row: 1; --podium-bg: #ffeadc; --podium-border: #e7c5ad; --podium-step: #e6bc9b; --podium-height: 28px; }
.round-podium-avatar { display: grid; place-items: center; position: relative; width: 58px; height: 58px; margin-bottom: 12px; border-radius: 50%; background: #ffffff66; font-size: 30px; font-weight: 900; }
.round-podium-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.round-podium-avatar:has(img:not([hidden])) > span { visibility: hidden; }
.round-podium-name { display: block; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; width: 100%; }
.round-podium-score { margin-top: 12px; font-size: clamp(20px, 2.5vw, 32px); font-weight: 900; line-height: 1.15; }
.round-podium-player > small { font-size: 11px; margin: 5px 0 16px; color: inherit; opacity: .8; }
.round-podium-place { display: grid; place-items: center; align-self: stretch; height: var(--podium-height); margin: 0 -10px; background: var(--podium-step); font-size: 20px; font-weight: 900; }
#final-podium { margin-top: 30px; }
.winner #final-podium h2 { font-size: clamp(22px, 3vw, 32px); }
.round-podium-player { animation: podium-arrive .35s ease-out; }
@keyframes podium-arrive { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
:root[data-theme='dark'] .podium-place-1 { --podium-bg: #3a311f; --podium-border: #7e622f; --podium-step: #705324; }
:root[data-theme='dark'] .podium-place-2 { --podium-bg: #233450; --podium-border: #3b587e; --podium-step: #354f76; }
:root[data-theme='dark'] .podium-place-3 { --podium-bg: #3e2e28; --podium-border: #765140; --podium-step: #684738; }
:root[data-theme='dark'] .round-podium-avatar { background: #ffffff12; }
@media (max-width: 580px) {
  .round-podium { margin-top: 20px; }
  .round-podium-list { gap: 8px; }
  .round-podium-player { padding: 16px 6px 0; border-radius: 16px 16px 10px 10px; }
  .round-podium-avatar { width: 42px; height: 42px; font-size: 24px; margin-bottom: 10px; }
  .round-podium-name { font-size: 12px; }
  .round-podium-score { font-size: clamp(16px, 4vw, 20px); }
  .round-podium-place { font-size: 17px; margin: 0 -6px; }
}
@media (prefers-reduced-motion: reduce) { .round-podium-player { animation: none; } }

/* Only the current round's board or podium occupies the active game screen. */
.room-focus { height: 100dvh; overflow: hidden; }
.room-focus > header, .room-focus > footer { display: none !important; }
.room-focus #game { min-height: 100dvh; padding: 0 !important; }
.room-focus #game > :not(.play-layout):not(.game-top):not(#room-options) { display: none !important; }
.room-focus #game .game-top { display: none; }
.room-focus #game .play-layout { display: block; margin: 0; }
.room-focus #game .leaderboard { display: none; }
.room-focus #game .arena { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100dvh; padding: 60px 16px; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.room-focus #game .arena > :where(:not(#game-pads):not(#round-podium):not(.host-actions)) { display: none !important; }
.room-focus #game .host-actions { display: none; }
.room-focus #game .pads { width: min(82vw, 74dvh, 680px); max-width: none; margin: 0 auto; gap: clamp(12px, 2vw, 22px); }
.room-focus #game .pad { aspect-ratio: 1; border-radius: clamp(24px, 5vmin, 48px); font-size: clamp(42px, 8vmin, 84px); }
.room-focus #game .pad small { display: none; }
.room-focus #game .round-podium { width: min(92vw, 760px); max-width: none; margin: 0; }
.room-focus #game .round-podium > h2, .room-focus #game .round-podium-note { display: none; }
.room-focus #game.room-results .host-actions:has(#next:not([hidden])) { display: flex; margin-top: 30px; }
.room-focus #game.room-results .host-actions #finish { display: none; }
.room-focus #game.streamer-host.room-playing #status-title { display: block !important; max-width: 700px; }
.room-focus #game.streamer-host.room-playing #status-description { display: block !important; max-width: 700px; }
.room-options { display: none; position: fixed; top: max(16px, env(safe-area-inset-top)); right: max(16px, env(safe-area-inset-right)); z-index: 120; width: 42px; height: 42px; padding: 0; align-items: center; justify-content: center; background: var(--surface-2, #f4f0e9); color: var(--theme-muted, #62615e); border: 1px solid var(--theme-line, #ded7cd); border-radius: 50%; font-size: 23px; line-height: 1; }
.room-focus .room-options { display: flex; }
.room-focus.room-controls-open #game .game-top { display: flex; flex-direction: column; align-items: stretch; position: fixed; top: 74px; right: 16px; z-index: 119; width: min(360px, calc(100vw - 32px)); max-height: calc(100dvh - 96px); overflow-y: auto; padding: 24px; gap: 16px; background: var(--surface, #fffdf9); border: 1px solid var(--theme-line, #ded7cd); border-radius: 20px; box-shadow: 0 18px 60px #0005; }
.room-focus.room-controls-open #game .game-top h2 { font-size: 26px; }
.room-focus.room-controls-open #game .game-actions { flex-direction: column; gap: 10px; }
.room-focus.room-controls-open #game #broadcast-toggle { display: none; }
@media (max-height: 420px) and (min-width: 580px) {
  .room-focus #game .arena { padding: 16px 70px; }
  .room-focus #game .round-podium { width: min(70vw, 640px); }
  .room-focus #game .round-podium-player { padding-top: 10px; }
  .room-focus #game .round-podium-avatar { width: 38px; height: 38px; font-size: 24px; margin-bottom: 8px; }
  .room-focus #game .round-podium-score { font-size: 22px; margin-top: 8px; }
  .room-focus #game .round-podium-player > small { margin-bottom: 8px; }
  .room-focus #game .round-podium-place { height: 26px; }
  .room-focus #game.room-results .host-actions:has(#next:not([hidden])) { margin-top: 12px; }
}
