/* Board overview: the score rail belongs below the board in every theme. */
body.jeopardy-page .jeopardy-player-view{padding:24px 20px 76px;min-height:100dvh;align-content:center}
body.jeopardy-page .jeopardy-player-view .player-view-topbar{display:none}
body.jeopardy-page .jeopardy-player-view .jeopardy-player-frame{width:min(1500px,96vw)!important;max-width:none!important;min-height:0;margin:auto}
body.jeopardy-page .jeopardy-player-view #playerBoard{display:flex!important;flex-direction:column;gap:22px;width:100%;position:relative}
body.jeopardy-page .jeopardy-player-view #playerBoard>.board{order:0;width:100%;height:auto;flex:none;min-height:0;align-self:stretch}
body.jeopardy-page .jeopardy-player-view #playerBoard>.jeopardy-board-scoreboard{order:1;position:static!important;inset:auto!important;transform:none!important;width:100%!important;max-width:none;max-height:none;overflow:visible;padding:0;background:none;border:0;box-shadow:none}
body.jeopardy-page .jeopardy-board-scoreboard .player-side-scoreboard-list{display:flex!important;flex-direction:row!important;flex-wrap:wrap;justify-content:center;align-items:flex-start;gap:18px;padding:0!important;width:100%}
body.jeopardy-page .jeopardy-player-view .board .tile{height:clamp(44px,6.4dvh,80px)!important}
body.jeopardy-page .board .tile.used{filter:none!important;opacity:1!important}
body.jeopardy-page .board .tile.used .point-value{text-decoration:line-through;text-decoration-thickness:.08em;text-decoration-color:currentColor}
/* Percentages below are coordinates within each card, not its parent rail. */
body.jeopardy-page :is(.jeopardy-board-scoreboard,.board-team-cards) .score{position:relative!important;box-sizing:border-box;width:280px!important;max-width:100%;flex:0 0 280px;min-width:0;min-height:0!important;aspect-ratio:var(--team-ratio,1.85)!important;padding:0!important;display:block!important;margin:0;overflow:visible;--team-left:12%;--team-right:12%;--team-name-top:16%;--team-name-height:20%;--team-members-top:36%;--team-members-height:22%;--team-points-top:61%;--team-points-height:24%;--turn-glow:#80cfff}
body.jeopardy-page :is(.jeopardy-board-scoreboard,.board-team-cards) .score>b,
body.jeopardy-page :is(.jeopardy-board-scoreboard,.board-team-cards) .score>.team-players,
body.jeopardy-page :is(.jeopardy-board-scoreboard,.board-team-cards) .score>.team-score{position:absolute!important;left:var(--team-left)!important;right:var(--team-right)!important;width:auto;box-sizing:border-box;margin:0!important;padding:0!important;border:0!important;display:flex!important;align-items:center!important;justify-content:center!important;flex-wrap:wrap;gap:0 .25em;text-align:center;line-height:1.15!important;transform:none!important;overflow-wrap:anywhere;min-width:0}
body.jeopardy-page :is(.jeopardy-board-scoreboard,.board-team-cards) .score>b{top:var(--team-name-top)!important;height:var(--team-name-height)!important;font-size:18px}
body.jeopardy-page :is(.jeopardy-board-scoreboard,.board-team-cards) .score>.team-players{top:var(--team-members-top)!important;height:var(--team-members-height)!important;font-size:12px;align-content:center}
body.jeopardy-page :is(.jeopardy-board-scoreboard,.board-team-cards) .score>.team-score{top:var(--team-points-top)!important;height:var(--team-points-height)!important;font-size:26px}
body.jeopardy-page :is(.jeopardy-board-scoreboard,.board-team-cards) .team-player-name{font:inherit!important;padding:0!important;background:none!important;border:0!important}
body.jeopardy-page :is(.jeopardy-board-scoreboard,.board-team-cards) .team-players>.small{display:none}

@keyframes designed-turn{0%,100%{filter:drop-shadow(0 0 3px var(--turn-glow,#7bd7ff))}50%{filter:drop-shadow(0 0 10px var(--turn-glow,#7bd7ff))}}
body.jeopardy-page .score.turn-active{border:0!important;outline:none!important;box-shadow:none!important;animation:designed-turn 2s ease-in-out infinite}
body.jeopardy-page :is(.jeopardy-board-scoreboard,.board-team-cards) .score.own-team>b{text-decoration:underline;text-underline-offset:4px}
@media(prefers-reduced-motion:reduce){body.jeopardy-page .score.turn-active{animation:none;filter:drop-shadow(0 0 7px var(--turn-glow,#7bd7ff))}}
/* Questions use the familiar blue cards regardless of the board's artwork. */
body.jeopardy-page #modal .score{position:relative;display:block;container-type:normal;aspect-ratio:auto;min-height:0;width:100%;padding:14px!important;background:#112c46!important;border:1px solid #385e7f!important;border-image:none!important;border-radius:12px;box-shadow:none;color:#eef6ff;font:16px Arial,sans-serif;text-align:left;text-shadow:none;filter:none;animation:none;clip-path:none}
body.jeopardy-page #modal .score::before,body.jeopardy-page #modal .score::after{display:none!important}
body.jeopardy-page #modal .score>b,body.jeopardy-page #modal .score .team-players,body.jeopardy-page #modal .score .team-score{position:static;display:block;transform:none;margin:5px 0!important;padding:0!important;height:auto;width:auto;border:0;grid-area:auto;text-align:left;color:inherit;line-height:1.25;font-size:16px}
body.jeopardy-page #modal .score>b{font-size:18px}
body.jeopardy-page #modal .score .team-score{font-size:23px}
body.jeopardy-page #modal .score .team-player-name{font:inherit;background:none;padding:0;border:0}
body.jeopardy-page #modal .player-side-scoreboard-list{padding-top:0}
.question-screenshot-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;min-width:0}
.question-shot{position:relative;margin:0;min-width:0;border:3px solid transparent;border-radius:10px;background:#081b2c;padding:5px}
.question-shot[hidden]{display:none}
.question-shot button{display:block;width:100%;padding:0;background:none;border:0;cursor:zoom-in}
.question-shot img.question-image{width:100%;max-width:100%;height:clamp(100px,20dvh,240px);object-fit:contain;margin:0}
.question-shot figcaption{font-size:12px;text-align:center;padding:4px}
.question-shot.is-correct,.host-shot.is-correct{border:3px solid #5aeb85;box-shadow:0 0 10px #42da6966}
.screenshot-correct-label{color:#80ffa2;font-weight:700}
.screenshot-pages{display:flex;align-items:center;justify-content:center;gap:10px;grid-column:1/-1}
.screenshot-zoom{width:94vw;max-width:1500px;height:92dvh;max-height:92dvh;background:#0b1d30;color:white;border:1px solid #517999;border-radius:12px;padding:12px}
.screenshot-zoom::backdrop{background:#000c}
.screenshot-zoom img{display:block;width:100%;height:calc(100% - 52px);object-fit:contain}
.screenshot-zoom>button{float:right;margin-bottom:6px}
.screenshot-zoom.is-correct{border:4px solid #5aeb85}
.screenshot-solution-choice{display:flex;align-items:center;gap:8px;margin:10px 0}
.screenshot-solution-choice input{width:auto}
@media(max-width:700px){body.jeopardy-page .jeopardy-player-view{padding:20px 10px 80px}body.jeopardy-page :is(.jeopardy-board-scoreboard,.board-team-cards) .score{flex-basis:min(320px,100%)}.question-screenshot-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}

body.jeopardy-page .board-team-cards{display:flex;flex-wrap:wrap;justify-content:center;gap:100px 18px;padding:0!important;margin:24px 0 100px}
body.jeopardy-page .board-team-cards .score>.row{position:absolute;top:calc(100% + 6px);left:0;right:0;display:flex;flex-wrap:wrap;justify-content:center;padding:6px;background:#102c46;border:1px solid #426079;border-radius:10px;min-height:48px}
/* Screenshot buttons only enlarge images or change pages, including read-only OBS. */
body.obs-view #modal .question-shot>button,body.obs-view #modal .screenshot-pages>button{display:block!important}

/* Preserve each theme's header-to-question proportions at the new board size. */
body.jeopardy-page{--presentation-row:clamp(44px,6.4dvh,80px);--presentation-header-ratio:1}

body.jeopardy-page .jeopardy-player-view .board .cat{height:calc(var(--presentation-row) * var(--presentation-header-ratio))!important;min-height:0}
body.jeopardy-page #modal .score:is(.team-buzzed,.auction-active){border-color:#54ef8a!important;box-shadow:0 0 0 2px #54ef8a55,0 0 14px #54ef8a33}

/* Two-person teams: the shared name replaces the separate membership row. */
body.jeopardy-page :is(.jeopardy-board-scoreboard,.board-team-cards) .score>.team-players{display:none!important}
body.jeopardy-page :is(.jeopardy-board-scoreboard,.board-team-cards) .score>b{height:calc(var(--team-members-top) + var(--team-members-height) - var(--team-name-top))!important;align-content:center}

/* One player per line, centered inside each artwork's name field. */
body.jeopardy-page :is(.jeopardy-board-scoreboard,.board-team-cards) .score>b:has(.team-name-member){flex-direction:column;flex-wrap:nowrap;overflow:hidden}
.team-name-member{display:block;max-width:100%;min-width:0;flex:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

