#restoreStatus{display:none}
body.app-loading>.wrap,body.app-loading>.legal-footer{visibility:hidden}
body.app-loading #restoreStatus{position:fixed;inset:0;z-index:100;display:grid;place-items:center;background:#eef2ed;color:#245e45;font-size:18px;font-weight:700}
.teacher-display-bar{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:0 0 20px;padding:14px 18px;border:1px solid var(--line);border-radius:14px;background:#fffefa}
body.session-mode>.wrap{padding-top:18px}body.session-mode>.wrap>header{display:none}body.session-mode>.wrap>.global-class-topline{margin:0 0 12px}body.session-mode .stepbar .step-copy small{display:none}.teacher-pick-panel{padding:16px 0;border-top:1px solid var(--line);margin-top:14px}.teacher-pick-panel h2{display:none}
.teacher-display-bar>strong{color:var(--green);font-size:18px}.teacher-display-bar>div{display:flex;gap:8px;margin-left:auto}.teacher-display-bar p{flex-basis:100%;margin:0;font-size:14px}.teacher-display-bar p:empty{display:none}
.teacher-pick-panel h2{margin:0 0 12px;font-size:21px}.teacher-pick-panel form>label{display:block;margin-bottom:6px;font-weight:800}.teacher-pick-panel form>div{display:flex;gap:8px}.teacher-pick-panel input{min-width:0;width:100%;padding:10px;border:1px solid var(--line);border-radius:9px;background:#fff;font-size:20px}.teacher-pick-panel form button{flex-shrink:0}.teacher-pick-panel>button{margin-top:12px}.teacher-pick-panel [role=alert]{color:#a52b21;font-size:15px}.teacher-hint-buttons{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px}.teacher-pick-panel button:disabled{opacity:.45;cursor:not-allowed}
.hint-display-actions,.analysis-display-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:12px 0 20px}.hint-display-actions span,.analysis-display-actions span{font-size:15px}.hint-display-actions{position:sticky;bottom:0;padding:14px;background:#fffefa;border:1px solid var(--line);border-radius:12px}
.student-display{height:auto;min-height:100vh;background:#f2f0e7;overflow-x:clip}.student-display-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0;padding:14px 28px;border-bottom:1px solid var(--line);background:#fffefa}.student-display-header>strong{font-size:21px;color:var(--green)}.student-display-header>div{display:flex;align-items:center;gap:16px}.student-display-header [role=status]{font-size:16px;color:#9b461b}#studentScreen{max-width:1800px;margin:auto;padding:22px 28px 32px}.student-wait{display:grid;place-items:center;min-height:65vh;text-align:center}.student-wait h1{font-size:clamp(32px,5vw,64px)}.student-round-heading{display:flex;align-items:center;gap:12px 24px;margin:0 0 16px}.student-round-heading>span{color:var(--green);font-size:20px;font-weight:800}.student-round-heading h1{margin:0;font-size:clamp(30px,3.2vw,52px);letter-spacing:-.05em;line-height:1.2}.student-round-heading output{margin-left:auto;color:var(--green);font:800 clamp(40px,5vw,72px) ui-monospace,monospace;font-variant-numeric:tabular-nums}.student-map{overflow:hidden;border:1px solid var(--line);border-radius:16px;background:#cbe3f1}.student-map svg{display:block;width:100%;max-height:min(56vh,calc(100dvh - 320px));cursor:default;pointer-events:none}.student-turn-order{margin:14px 0}.student-turn-order .turn-order-track{display:flex;flex-wrap:wrap;gap:8px}.student-turn-order .turn-order-step{font-size:18px}.student-turn-order .turn-order-step b{font-size:18px}.student-turn-order .turn-order-pick{font-size:16px}.student-scores,.student-round-picks{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin-top:14px}.student-score{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 14px;padding:12px 16px;border-top:5px solid var(--team);border-radius:10px;background:#fffefa;font-size:20px}.student-score strong{color:var(--green)}.student-round-pick{display:grid;gap:3px;padding:12px 16px;border:1px solid var(--line);border-radius:10px;background:#fffefa;font-size:20px}.student-round-pick b{font-size:26px;color:var(--green)}.student-hint .hintmap{display:block;width:100%;max-height:70vh}.student-hint .hint-output-head{display:none}.student-hint .data-note,.student-hint .hint-source{font-size:16px}.student-hint .kg-item,.student-hint .elev-legend{font-size:16px}.student-analysis{display:block}.student-analysis .card{margin-bottom:20px}.student-map-defs{position:absolute;overflow:hidden}.student-display button:focus-visible,.teacher-display-bar button:focus-visible,.teacher-pick-panel button:focus-visible,.hint-display-actions button:focus-visible{outline:3px solid var(--gold);outline-offset:3px}.student-display-header button{font-size:16px}
@media(max-width:700px){.teacher-display-bar>div{margin-left:0;flex-wrap:wrap}.student-display-header{padding:12px 16px;flex-wrap:wrap}#studentScreen{padding:18px 14px}.student-round-heading{align-items:flex-start;flex-wrap:wrap}.student-round-heading>span{font-size:17px}.student-map svg{max-height:none}.student-scores,.student-round-picks{grid-template-columns:repeat(2,minmax(0,1fr))}.student-score{font-size:17px}.student-round-heading output{font-size:40px}.hint-display-actions{position:static}}
@media print{.teacher-display-bar,.teacher-pick-panel,.analysis-display-actions,.hint-display-actions{display:none!important}}

.student-display-header::after,.student-round-heading::after{display:none}.student-display-header{border-radius:0;box-shadow:none}.student-round-heading{padding:0;border:0;border-radius:0;background:none;box-shadow:none;overflow:visible}.student-round-picks:empty{display:none}.student-analysis .result-chart-segment{cursor:default}.student-analysis .result-chart-legend{display:none}

.student-display.student-reveal-mode{--student-reveal-height:clamp(320px,36dvh,440px);height:100dvh;overflow:hidden}
.student-reveal-mode .student-display-header{position:relative;z-index:100}
.student-reveal-mode .student-board>:not(.student-map){display:none}
.student-reveal-mode .student-map{position:fixed;inset:76px 0 var(--student-reveal-height);display:grid;place-items:center;border:0;border-radius:0;background:#cbe3f1}
.student-reveal-mode .student-map svg{width:100%;height:100%;max-height:none}
#studentRevealStage{position:fixed;inset:auto 0 0;z-index:80;height:var(--student-reveal-height);display:block;padding:12px 20px;overflow:visible;background:#f2f0e7;pointer-events:none}
#studentRevealStage .round-reveal-panel{display:grid;grid-template-rows:auto minmax(0,1fr);gap:10px;width:100%;height:100%;max-height:none;padding:12px 16px;overflow:visible;border-color:var(--line);background:#fffefa;box-shadow:none;pointer-events:none}
#studentRevealStage .round-reveal-head{text-align:left}
#studentRevealStage .round-reveal-head h2{font-size:24px;line-height:1.2}
#studentRevealStage .round-reveal-grid{grid-template-columns:repeat(var(--reveal-columns,4),minmax(0,1fr));grid-auto-rows:minmax(0,1fr);gap:8px;min-height:0}
#studentRevealStage .round-fly-card{min-height:0;gap:3px 8px;padding:7px 10px;box-shadow:none}
#studentRevealStage .fly-rank{width:28px;height:28px;font-size:16px}
#studentRevealStage .fly-team b{overflow:hidden;font-size:18px;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}
#studentRevealStage .fly-team span{font-size:13px;line-height:1.2}
#studentRevealStage .fly-pop{font-size:24px;line-height:1.15}
#studentRevealStage .round-source-marker b{font-size:22px}
#studentRevealStage .round-source-marker small{font-size:32px}
#studentRevealStage.student-reveal-finished .round-source-marker{display:none}
#studentRevealStage.student-reveal-finished .round-fly-card,#studentRevealStage.student-reveal-finished .fly-team,#studentRevealStage.student-reveal-finished .fly-pop{animation:none;transform:none}
@media(max-width:600px){
  .student-display.student-reveal-mode{--student-reveal-height:clamp(440px,60dvh,560px)}
  #studentRevealStage{padding:8px}
  #studentRevealStage .round-reveal-panel{padding:10px;gap:8px}
  #studentRevealStage .round-reveal-head h2{font-size:20px}
  #studentRevealStage .round-reveal-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
  #studentRevealStage .round-fly-card{padding:4px 6px;gap:1px 4px}
  #studentRevealStage .fly-rank{width:22px;height:22px;font-size:14px}
  #studentRevealStage .fly-team b{font-size:15px}
  #studentRevealStage .fly-team span{font-size:11px}
  #studentRevealStage .fly-pop{font-size:18px}
}

.turn-order-score{display:none}

/* Gameplay controls share the map frame above the team strip. */
.teacher-display-bar>strong{display:flex;align-items:center;gap:10px}
@media screen{
  .turn-order-score,.student-score strong{font-variant-numeric:tabular-nums}
  .turn-order-step[data-rank="1"]{--rank-fill:#e9bd48;--rank-ink:#513b08;--rank-line:#d7b449;--rank-bg:#fff8e6}
  .turn-order-step[data-rank="2"]{--rank-fill:#c5ced8;--rank-ink:#334155;--rank-line:#aebdca;--rank-bg:#f0f4f7}
  .turn-order-step[data-rank="3"]{--rank-fill:#c99a72;--rank-ink:#4b2c18;--rank-line:#bc8c65;--rank-bg:#faf0e7}
  .turn-order-step:is([data-rank="1"],[data-rank="2"],[data-rank="3"]) i{background:var(--rank-fill);color:var(--rank-ink)}
  body.teacher-board-mode{background:#eef2ed}
  body.teacher-board-mode>.wrap{display:grid;grid-template-rows:auto minmax(0,1fr);gap:10px;max-width:none;padding:14px 18px}
  body.teacher-board-mode>.wrap::before,body.teacher-board-mode>.wrap>header,body.teacher-board-mode>.wrap>.global-class-topline,body.teacher-board-mode>.legal-footer{display:none}
  body.teacher-board-mode .teacher-display-bar{gap:12px;margin:0;padding:0 0 12px;border:0;border-bottom:1px solid #d4ded5;border-radius:0;background:none}
  body.teacher-board-mode .teacher-display-bar>strong{font-size:20px;letter-spacing:-.055em;white-space:nowrap;color:#183d2d}
  body.teacher-board-mode .teacher-display-bar>div{align-items:center;gap:8px}
  body.teacher-board-mode .teacher-display-bar button{min-height:38px;padding:8px 13px;border:1px solid #d0dcd2;border-radius:9px;background:#fff;color:#294b38;box-shadow:none;font-size:14px;white-space:nowrap}
  body.teacher-board-mode #openStudentDisplay{border-color:#245e45;background:#245e45;color:#fff}
  body.teacher-board-mode #gameView.active{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto auto;gap:12px;min-height:0}
  body.teacher-board-mode #gameView .game-layout{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);grid-template-areas:"map";align-items:stretch;gap:12px;min-height:0}
  body.teacher-board-mode #gameView:not(.round-reveal-mode) .mapcard{grid-area:map;display:grid;grid-template-rows:auto minmax(0,1fr) auto;min-height:0;padding:0;border:1px solid #cddbd2;border-radius:15px;background:#dce9ee;box-shadow:none}
  body.teacher-board-mode #gameView:not(.round-reveal-mode) .map{display:block;width:100%;height:100%;min-height:0}
  body.teacher-board-mode #gameView .ocean{fill:#dce9ee}
  body.teacher-board-mode #gameView .land{fill:#fffdf6;stroke:#8daab1}
  body.teacher-board-mode #sessionStatusBar{display:flex;align-items:center;gap:12px;margin:0;padding:9px 12px;border:0;border-bottom:1px solid #d2ded7;border-radius:0;background:#fff;box-shadow:none;font-size:14px}
  body.teacher-board-mode #sessionRound{color:#245e45;font-size:14px;font-weight:800;font-variant-numeric:tabular-nums}
  body.teacher-board-mode #sessionPhase{color:#748476;font-size:13px}
  body.teacher-board-mode #selectedBlocksBtn{margin-left:auto;min-height:30px;padding:4px 8px;border:0;background:#f1f5ee;box-shadow:none;font-size:13px}
  body.teacher-board-mode #borderBtn{min-height:30px;padding:4px 8px;border:1px solid #d6e0d6;border-radius:8px;background:#fff;box-shadow:none;font-size:12px}
  body.teacher-board-mode #borderBtn[aria-pressed=true]{background:#edf4eb;color:#245e45}
  body.teacher-board-mode #gameView .block-search-group,body.teacher-board-mode #gameView .class-tools,body.teacher-board-mode #gameView .zlevel{display:none}
  body.teacher-board-mode #gameView .zoomui{position:static;grid-area:zoom;align-self:center;flex-direction:row;gap:2px;padding:4px;border:1px solid #d2dfd4;border-radius:10px;background:#fff;box-shadow:none}
  body.teacher-board-mode #gameView .zoomui button{width:32px;height:32px;border:0;border-radius:6px;box-shadow:none;font-size:20px}
  body.teacher-board-mode #gameView .zoomui .rs{width:46px;font-size:13px;white-space:nowrap}
  body.teacher-board-mode #gameView .game-side{display:contents!important}
  body.teacher-board-mode #gameView #gamePlay{display:grid;grid-template-columns:minmax(0,140px) minmax(0,1fr) auto;grid-template-areas:"turn pick zoom";align-items:center;gap:12px;height:auto;padding:12px;border:0;border-top:1px solid #d0dcd2;border-radius:0;background:#fff;box-shadow:none}
  body.teacher-board-mode #gameView #gamePlay .turn-head{grid-area:turn;min-width:0;flex-wrap:wrap;align-content:start;gap:8px;font-size:22px;line-height:1.2;letter-spacing:-.055em}
  body.teacher-board-mode #gameView #gamePlay .turn-head .dot{width:12px;height:12px;border-radius:50%}
  body.teacher-board-mode #gameView #gamePlay .turn-head>span:not(.dot):not(.step){min-width:0;overflow-wrap:anywhere}
  body.teacher-board-mode #gameView #gamePlay .turn-head .step,body.teacher-board-mode #gameView #pickNote,body.teacher-board-mode #gameView #scoreboard{display:none}
  body.teacher-board-mode #gameView #gamePlay .turn-result-button{width:auto;margin:0;padding:9px 12px;font-size:15px;letter-spacing:-.025em}
  body.teacher-board-mode #gameView button.primary{border:1px solid #edb437;border-radius:9px;background:#f6c451;color:#3c3018;box-shadow:none}
  body.teacher-board-mode #teacherPickPanel{display:contents}
  body.teacher-board-mode #teacherPickPanel h2{display:none}
  body.teacher-board-mode #teacherPickForm{grid-area:pick;min-width:0;max-width:440px}
  body.teacher-board-mode #teacherPickForm>label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  body.teacher-board-mode #teacherPickForm>div{display:grid;grid-template-columns:minmax(60px,1fr) 88px 96px;gap:8px;align-items:start}
  body.teacher-board-mode #teacherBlockNumber{grid-column:auto;width:100%;min-width:0;height:42px;padding:6px 10px;border:1px solid #bfcfc2;border-radius:9px;background:#f8faf6;font-size:24px;font-weight:800;font-variant-numeric:tabular-nums}
  body.teacher-board-mode #teacherBlockNumber:focus-visible{outline:3px solid #e8ba4f;outline-offset:2px;border-color:#245e45}
  body.teacher-board-mode #teacherPickPanel button{min-height:42px;margin:0;padding:8px;border:1px solid #d3ded4;border-radius:9px;background:#fff;box-shadow:none;font-size:14px;line-height:1.3;white-space:nowrap}
  body.teacher-board-mode #teacherPickPanel #teacherConfirmPick{border-color:#edb437;background:#f6c451;color:#3c3018;font-weight:900}
  body.teacher-board-mode #teacherPickError{margin:7px 0 0;font-size:14px}
  body.teacher-board-mode #gameView #gamePlay:has(#teacherPickPanel[hidden]){grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"turn zoom"}
  body.teacher-board-mode #gameView.round-reveal-mode #gamePlay{display:none}
  #gameView.board-preview-mode #gamePlay{display:none!important}
  .round-turn-order,.student-turn-sequence{display:flex;align-items:center;gap:10px;min-width:0;padding:6px 10px;border:1px solid #d0dcd2;border-radius:10px;background:#fff}
  .student-turn-sequence{margin-top:14px}
  body.teacher-board-mode #roundTurnOrder{grid-column:1;grid-row:3}
  .round-turn-order>strong,.student-turn-sequence>strong{flex-shrink:0;color:#5f7366;font-size:14px}
  .turn-sequence-list{display:grid;grid-template-columns:repeat(var(--turn-columns,8),minmax(0,1fr));flex:1;gap:5px;min-width:0;margin:0;padding:0;list-style:none}
  .turn-sequence-step{display:flex;align-items:center;gap:5px;min-width:0;min-height:28px;padding:3px 5px;border:1px solid transparent;border-radius:7px;color:#5f7366}
  .turn-sequence-step i{display:grid;place-items:center;flex:0 0 18px;height:18px;border-radius:50%;background:var(--team);color:#fff;font-size:11px;font-style:normal;font-weight:800}
  .turn-sequence-step b{min-width:0;overflow:hidden;font-size:15px;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}
  .turn-sequence-step.done b::after{content:" ✓";font-size:12px}
  .turn-sequence-step.now{border-color:#e1bc5f;background:#fff1c5;color:#183d2d}
  body.teacher-board-mode #turnOrderLine{grid-area:auto;grid-column:1;grid-row:4;display:block;min-width:0;margin:0;padding:0;border:0;border-radius:0;background:none;overflow:visible}
  body.teacher-board-mode #turnOrderLine>strong{display:none}
  body.teacher-board-mode #turnOrderLine .turn-order-track{display:grid;grid-template-columns:repeat(var(--team-columns,6),minmax(0,1fr));gap:8px;min-width:0}
  body.teacher-board-mode #turnOrderLine .turn-order-track::before{display:none}
  body.teacher-board-mode #turnOrderLine .turn-order-step{display:grid;grid-template-columns:36px minmax(0,1fr) auto;grid-template-rows:auto auto;gap:2px 7px;min-width:0;min-height:64px;padding:6px 10px;border:1px solid var(--rank-line,#d0dcd2);border-radius:11px;background:var(--rank-bg,#fff);box-shadow:none;opacity:1}
  body.teacher-board-mode #turnOrderLine .turn-order-step.now{box-shadow:inset 4px 0 var(--team),0 0 0 2px var(--team)}
  body.teacher-board-mode #turnOrderLine .turn-order-step i{grid-row:1;align-self:center;width:36px;height:26px;border:0;border-radius:7px;font-size:13px;box-shadow:none}
  body.teacher-board-mode #turnOrderLine .turn-order-step b{overflow:hidden;align-self:center;color:#254532;font-size:18px;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}
  body.teacher-board-mode #turnOrderLine .turn-order-pick{grid-column:3;grid-row:1;justify-self:end;color:#6a7f6e;font-size:14px;font-weight:500}
  body.teacher-board-mode #turnOrderLine .turn-order-step:not(.done) .turn-order-pick{visibility:hidden}
  body.teacher-board-mode #turnOrderLine .turn-order-score{grid-column:1/-1;grid-row:2;display:block;align-self:center;color:#245e45;font-size:20px;font-weight:800;line-height:1.1;white-space:nowrap}
  body.teacher-board-mode.round-reveal-lock :is(#turnOrderLine,#roundTurnOrder),#gameView.board-preview-mode #roundTurnOrder{display:none!important}
}
@media screen and (max-height:719px){
  body.teacher-board-mode #turnOrderLine .turn-order-step{min-height:55px;row-gap:0;padding-top:4px;padding-bottom:4px}
  body.teacher-board-mode #turnOrderLine .turn-order-step i{width:36px;height:22px}
}
@media screen and (min-width:700px) and (min-height:640px){
  body.teacher-board-mode{height:100dvh;min-height:0}
  body.teacher-board-mode>.wrap{height:100%;min-height:0}
}
@media screen and (min-width:700px) and (max-width:1099px){
  body.teacher-board-mode #turnOrderLine .turn-order-track{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media screen and (max-width:699px){
  body.teacher-board-mode{height:auto;min-height:100dvh;overflow-x:clip}
  body.teacher-board-mode>.wrap{height:auto;padding:12px}
  body.teacher-board-mode .teacher-display-bar{align-items:flex-start}
  body.teacher-board-mode .teacher-display-bar>div{flex-wrap:wrap;margin-left:0}
  body.teacher-board-mode #gameView:not(.round-reveal-mode) .map{height:250px}
  body.teacher-board-mode #gameView #gamePlay{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"turn zoom" "pick pick";gap:10px;padding:10px}
  body.teacher-board-mode #gameView #gamePlay:has(#teacherPickPanel[hidden]){grid-template-columns:minmax(0,1fr);grid-template-areas:"turn" "zoom"}
  body.teacher-board-mode #gameView #gamePlay:has(#teacherPickPanel[hidden]) .zoomui{justify-self:end}
  body.teacher-board-mode #teacherPickForm{max-width:none}
  body.teacher-board-mode #turnOrderLine .turn-order-track{grid-template-columns:repeat(2,minmax(0,1fr))}
  .round-turn-order,.student-turn-sequence{display:block}
  .round-turn-order>strong,.student-turn-sequence>strong{display:block;margin-bottom:6px}
  .turn-sequence-list{grid-template-columns:repeat(4,minmax(0,1fr))}
}

@media screen{
  .claimbox.current-round{fill-opacity:.78;stroke:#fff4bd;stroke-width:4;filter:drop-shadow(0 0 2px #fff3ba);animation:currentRoundGlow 2.4s ease-in-out infinite}
}
@keyframes currentRoundGlow{
  0%,100%{stroke:#fff8d7;stroke-width:3;filter:drop-shadow(0 0 1px #fff4b5)}
  50%{stroke:#f6c451;stroke-width:5;filter:drop-shadow(0 0 4px #ffd66d)}
}
@media screen and (prefers-reduced-motion:reduce){
  .claimbox.current-round{animation:none;stroke:#fff4bd;stroke-width:4;filter:drop-shadow(0 0 1px #8b6715)}
}
@media screen{
  body.teacher-board-mode #gameView.round-reveal-mode{--teacher-reveal-height:clamp(340px,44dvh,460px)}
  body.teacher-board-mode #gameView.round-reveal-mode:has(.round-fly-card:nth-child(9)){--teacher-reveal-height:clamp(380px,52dvh,540px)}
  body.teacher-board-mode #gameView.round-reveal-mode .mapcard{inset:0 0 var(--teacher-reveal-height);grid-template-rows:auto minmax(0,1fr);align-items:stretch;justify-items:stretch}
  body.teacher-board-mode #gameView.round-reveal-mode .map{min-height:0}
  body.teacher-board-mode #gameView.round-reveal-mode .round-reveal-stage{height:var(--teacher-reveal-height);padding:12px 18px}
  body.teacher-board-mode #gameView.round-reveal-mode .round-reveal-panel{min-height:0;gap:10px 14px;padding:12px 14px}
  body.teacher-board-mode #gameView.round-reveal-mode .round-reveal-head p{display:none}
  body.teacher-board-mode #gameView.round-reveal-mode .round-reveal-head h2{margin:0;font-size:24px;line-height:1.2}
  body.teacher-board-mode #gameView.round-reveal-mode .round-reveal-actions .primary{min-height:44px;padding:8px 14px;font-size:16px}
  body.teacher-board-mode #gameView.round-reveal-mode .round-reveal-grid{grid-auto-rows:minmax(0,1fr);align-content:stretch;gap:8px;overflow:visible}
  body.teacher-board-mode #gameView.round-reveal-mode .round-fly-card{grid-template-rows:minmax(0,1fr) auto;min-height:0;gap:3px 8px;padding:8px 10px;border-top-width:5px}
  body.teacher-board-mode #gameView.round-reveal-mode .fly-rank{width:30px;height:30px;font-size:18px}
  body.teacher-board-mode #gameView.round-reveal-mode .fly-team{min-width:0}
  body.teacher-board-mode #gameView.round-reveal-mode .fly-team b{overflow:hidden;font-size:22px;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}
  body.teacher-board-mode #gameView.round-reveal-mode .fly-team span{font-size:14px;line-height:1.2}
  body.teacher-board-mode #gameView.round-reveal-mode .fly-pop{font-size:clamp(18px,2.7vw,30px);line-height:1.1;white-space:nowrap}
  body.teacher-board-mode #gameView.round-reveal-mode:has(.round-fly-card:nth-child(9)) .round-fly-card{gap:2px 8px;padding:6px 8px}
  body.teacher-board-mode #gameView.round-reveal-mode:has(.round-fly-card:nth-child(9)) .fly-team b{font-size:18px}
  body.teacher-board-mode #gameView.round-reveal-mode:has(.round-fly-card:nth-child(9)) .fly-team span{font-size:12px}
  body.teacher-board-mode #gameView.round-reveal-mode:has(.round-fly-card:nth-child(9)) .fly-pop{font-size:clamp(18px,2.5vw,24px)}
  #studentRevealStage .fly-pop{font-size:clamp(18px,2.5vw,24px)}
  .student-display.student-reveal-mode:has(#studentRevealStage .round-fly-card:nth-child(9)){--student-reveal-height:clamp(380px,48dvh,520px)}
}
@media screen and (max-width:699px){
  body.teacher-board-mode #gameView.round-reveal-mode{--teacher-reveal-height:clamp(380px,58dvh,520px)}
  body.teacher-board-mode #gameView.round-reveal-mode:has(.round-fly-card:nth-child(9)){--teacher-reveal-height:min(82dvh,calc(100dvh - 96px))}
  body.teacher-board-mode #gameView.round-reveal-mode .round-reveal-stage{padding:8px}
  body.teacher-board-mode #gameView.round-reveal-mode .round-reveal-panel{gap:8px;padding:10px}
  body.teacher-board-mode #gameView.round-reveal-mode .round-reveal-head h2{font-size:18px}
  body.teacher-board-mode #gameView.round-reveal-mode .round-reveal-actions .primary{min-height:40px;padding:7px 9px;font-size:14px}
  body.teacher-board-mode #gameView.round-reveal-mode .round-reveal-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
  body.teacher-board-mode #gameView.round-reveal-mode .round-fly-card,body.teacher-board-mode #gameView.round-reveal-mode:has(.round-fly-card:nth-child(9)) .round-fly-card{gap:1px 6px;padding:4px 6px;border-top-width:4px}
  body.teacher-board-mode #gameView.round-reveal-mode .fly-rank{width:22px;height:22px;font-size:14px}
  body.teacher-board-mode #gameView.round-reveal-mode .fly-team b,body.teacher-board-mode #gameView.round-reveal-mode:has(.round-fly-card:nth-child(9)) .fly-team b{font-size:16px}
  body.teacher-board-mode #gameView.round-reveal-mode .fly-team span{font-size:12px}
  body.teacher-board-mode #gameView.round-reveal-mode .fly-pop,body.teacher-board-mode #gameView.round-reveal-mode:has(.round-fly-card:nth-child(9)) .fly-pop{font-size:18px}
}
@media screen and (max-width:600px){
  .student-display.student-reveal-mode:has(#studentRevealStage .round-fly-card:nth-child(9)){--student-reveal-height:min(78dvh,calc(100dvh - 112px))}
  #studentRevealStage:has(.round-fly-card:nth-child(9)) .round-fly-card{gap:1px 6px;padding:3px 6px;border-top-width:4px}
  #studentRevealStage:has(.round-fly-card:nth-child(9)) .fly-team span{font-size:11px}
}
@media print{#gameView #gamePlay{display:none!important}}
