/* Pass 2 — classroom arena. Distinct, readable surfaces; same brand as Solo. */
.multiplayer-hero{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(270px,.8fr);gap:35px;align-items:center;min-height:345px}
.multiplayer-hero-content{min-width:0}
.multiplayer-hero h1{margin:15px 0;font-size:clamp(2.2rem,4vw,3.3rem)}
.multiplayer-hero h1 em{font-style:normal;color:#a7e5cb}
.multiplayer-hero .arena-live-dot{display:inline-block;width:9px;height:9px;margin-right:8px;border-radius:50%;background:#a8e9ba;box-shadow:0 0 0 4px #a8e9ba22}
.multiplayer-hero-preview{position:relative;min-width:0;transform:rotate(1.5deg);padding:22px;border-radius:20px;border:1px solid #b4e5da88;background:#ffffff15;box-shadow:0 17px 34px #081f2528, inset 0 1px 0 #ffffff4a;backdrop-filter:blur(5px)}
.arena-preview-top{display:flex;gap:8px;align-items:center;justify-content:space-between;padding:0 0 15px;border-bottom:1px solid #ffffff46;color:#d9f3e9;font-weight:850;letter-spacing:.11em;font-size:.61rem}
.preview-signal{display:inline-block;width:9px;height:9px;border-radius:50%;background:#b6f1c7}
.arena-preview-label{color:#d0eedf;font-size:.69rem;font-weight:800;letter-spacing:.14em;margin-top:20px}
.arena-preview-question{font-size:1.28rem;font-weight:850;letter-spacing:-.035em;line-height:1.25;max-width:16ch;margin:9px 0 14px}
.arena-preview-options{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.arena-preview-options span{display:grid;place-items:center;min-height:40px;padding:8px;border:1px solid #b1d6cc71;border-radius:8px;background:#ffffff15;color:#effaf6;font-size:.75rem;font-weight:740;text-align:center}
.arena-preview-options .is-choice{background:#d9f0e2;color:#194b3f;border-color:#e5fff0}
.arena-preview-footer{display:flex;justify-content:space-between;gap:6px;margin-top:13px;font-size:.58rem;color:#d8f2e7;letter-spacing:.15em;font-weight:800}
#notice:not(:empty){margin-top:18px;border:1px solid #d3b39c;background:#fff4e5;border-radius:12px;padding:13px 18px;color:#823d1f;font-size:.88rem;font-weight:740}
.multiplayer-entry-section{margin-top:37px}
.multiplayer-entry-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:17px}
.multiplayer-entry-heading h2{font-size:clamp(1.35rem,2.5vw,1.75rem);letter-spacing:-.035em;margin:6px 0 0}
.multiplayer-entry-heading p{font-size:.82rem;line-height:1.5;max-width:390px;color:#4f6c64;margin:0}
.multiplayer-entry{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.multiplayer-panel{display:flex;flex-direction:column;align-items:stretch;gap:15px;min-width:0;padding:clamp(23px,3vw,35px);border-radius:24px;border:1px solid #b9d5c6;box-shadow:0 5px 23px #164e3820}
.multiplayer-panel.host-entry{background:#e8f4eb;border-color:#b6dac5}
.multiplayer-panel.student-entry{background:#eaf1fa;border-color:#bbd1e6}
.entry-card-heading{display:flex;align-items:center;gap:16px}
.entry-mode-icon{display:grid;place-items:center;width:54px;height:54px;border-radius:16px;font-size:1.65rem;font-weight:700;color:#195b49;background:#cae6d3;flex:none}
.student-entry .entry-mode-icon{color:#3d6491;background:#cfdfef}
.entry-mode-tag{color:#356b56;font-size:.66rem;letter-spacing:.13em;font-weight:850}
.student-entry .entry-mode-tag{color:#45698c}
.entry-card-heading h3{font-size:clamp(1.25rem,2.2vw,1.6rem);letter-spacing:-.045em;margin:3px 0}
.multiplayer-panel>p{font-size:.89rem;color:#425c53;line-height:1.65;margin:0;max-width:56ch}
.entry-inputs{display:grid;align-content:start;gap:8px;margin-top:2px}
.entry-inputs label{display:block;font-size:.79rem;font-weight:830;color:#264c3e;margin-top:7px}
.entry-inputs input,.entry-inputs select{display:block;width:100%;min-width:0;padding:13px 15px;background:#fff;color:#193f32;border:2px solid #abcabd;border-radius:12px;font:inherit;font-size:.92rem;line-height:1.4;box-shadow:0 2px 7px #2c514012}
.entry-inputs input::placeholder{color:#6f817c}
.entry-inputs :is(input,select):focus-visible{outline:3px solid #e0a64b;outline-offset:3px}
.entry-field-tip{font-size:.75rem!important;line-height:1.5!important;color:#567063!important;margin:4px 0 7px!important}
.student-entry .entry-inputs label{color:#2b506b}
.student-entry .entry-inputs input{border-color:#b8cedf}
.entry-submit{margin-top:auto;display:flex;align-self:stretch;justify-content:space-between;font-weight:850;padding-inline:20px;min-height:55px;background:#165b4b!important;color:#fff!important}
.student-entry .entry-submit{background:#285c83!important}
.entry-submit:hover{filter:brightness(1.12)}
.entry-footnote{font-size:.82rem;text-align:center;color:#4b635b;margin-top:20px}
.entry-footnote a{color:#20664d;font-weight:800}
.multiplayer-room{margin-top:31px}
.multiplayer-room-top{background:linear-gradient(115deg,#133e47,#174a50 68%,#215848);border:1px solid #306f68;box-shadow:0 13px 30px #173c342b;border-radius:25px;color:#fff;padding:clamp(20px,3vw,35px);display:flex;align-items:flex-start;justify-content:space-between;gap:22px;flex-wrap:wrap;margin-bottom:19px}
.room-code-block{min-width:0}
.room-kicker{font-size:.67rem;font-weight:850;letter-spacing:.15em;color:#b9f1d5}
.room-code-line{display:flex;align-items:baseline;gap:15px;flex-wrap:wrap;margin:8px 0}
.room-code-prefix{font-size:.71rem;font-weight:850;letter-spacing:.13em;color:#bbe9d9}
#room-id{font-size:clamp(2.4rem,6.2vw,4.4rem);font-weight:850;letter-spacing:.12em;line-height:1.05;font-variant-numeric:tabular-nums;margin:0;color:#fff}
.room-state{margin:10px 0;color:#f1f9f3;font-size:1rem;font-weight:730}
.room-chip-line{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin-top:12px}
.room-chip-line>span{padding:7px 10px;border-radius:30px;background:#ffffff21;border:1px solid #ffffff47;color:#f0f8f2;font-size:.72rem;font-weight:750}
.room-chip-line .connection-status{color:#d8f7df}
.room-chip-line .room-lock-chip.is-locked{color:#ffe5af;border-color:#f7d68b}
.room-share-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;max-width:410px}
.room-share-actions .room-action{background:#ffffff14;border:1px solid #b6d6ca8f;color:#fff;padding:10px 13px;border-radius:11px;min-height:43px;font-size:.77rem;font-weight:780}
.room-share-actions .room-action:hover,.room-share-actions .room-action:focus-visible{background:#e1f3e9;color:#144a40}
.room-share-actions .room-leave{border-color:#ffddce99;color:#ffe2d4}
.multiplayer-layout{display:grid;grid-template-columns:minmax(0,1.85fr) minmax(285px,.85fr);gap:17px;align-items:start}
.multiplayer-stage,.multiplayer-players{min-width:0;padding:clamp(20px,3vw,33px);border-radius:22px;border:1px solid #bcd5c7;box-shadow:0 4px 22px #193e3210}
.multiplayer-stage{background:#fff;min-height:325px}
.multiplayer-stage h2{font-size:clamp(1.42rem,2.5vw,2.12rem);line-height:1.27;letter-spacing:-.04em;margin:9px 0 13px;color:#153a36}
.multiplayer-stage p{color:#456058;line-height:1.65;margin:8px 0}
.multiplayer-stage .stage-kicker,.multiplayer-stage .eyebrow{display:block;font-size:.68rem;font-weight:850;color:#356c57;letter-spacing:.15em;text-transform:uppercase}
.multiplayer-stage .stage-support{background:#eaf3ef;border:1px solid #ccded3;border-radius:13px;padding:14px 17px;margin:16px 0 20px;color:#2b5847}
.multiplayer-stage .stage-support p{margin:3px 0;font-size:.84rem;color:#3d6455}
.multiplayer-stage .lobby-stat-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
.lobby-stat-row span{background:#e5f2e9;border:1px solid #c0dccc;color:#205b44;border-radius:30px;padding:8px 12px;font-size:.79rem;font-weight:760}
.multiplayer-stage .host-action-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:23px}
.multiplayer-stage .host-action-row .btn{min-height:47px;font-weight:810}
.multiplayer-stage .host-action-row .btn:disabled{opacity:.56;cursor:not-allowed}
.multiplayer-stage .host-action-row .btn.btn-quiet{background:#eef6f0;color:#175945;border:1px solid #bfd8c7}
.multiplayer-stage .host-action-row .btn.btn-danger{background:#fff0eb;color:#843a25;border:1px solid #e3b7a9}
.multiplayer-stage .question-clock{font-size:1rem;font-weight:850;font-variant-numeric:tabular-nums;color:#185e4a;background:#ebf6ed;padding:10px 14px;border-radius:11px;display:inline-flex;margin:15px 0}
.multiplayer-stage .question-clock.time-up{background:#fff0e2;color:#a34724}
.multiplayer-stage .option-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:19px}
.multiplayer-stage .method-option{min-height:64px;white-space:normal;text-align:center;line-height:1.36;font-size:.89rem;font-weight:790;border:2px solid #a3c4b4;border-radius:15px;background:#ebf5ef;color:#154f3e;padding:15px}
.multiplayer-stage .method-option:hover{border-color:#26795c;background:#dff0e5;color:#174f3c}
.multiplayer-stage .method-option:disabled{opacity:.58;cursor:not-allowed}
.multiplayer-stage .method-option:focus-visible{outline:3px solid #bc8533;outline-offset:3px}
.multiplayer-stage .answer-confirm{background:#e4f4e7;border:1px solid #b9dec4;border-radius:13px;padding:14px 17px;color:#1e6543;font-weight:800}
.multiplayer-stage .answer-review{border-left:4px solid #66ab86;padding:1px 0 1px 18px;margin-top:18px}
.multiplayer-stage .answer-review strong{font-size:.84rem;color:#22513d}
.multiplayer-stage .answer-review p{margin:7px 0 14px}
.multiplayer-stage .question-progress-track{height:8px;overflow:hidden;border-radius:40px;background:#e5ede8;margin:16px 0}
.multiplayer-stage .question-progress-fill{height:100%;background:#26775d;transition:width .2s ease}
.multiplayer-stage .small-note{font-size:.78rem;color:#6a7873}
.multiplayer-players{background:#f2f7f3}
.roster-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
.roster-heading h2{font-size:1.13rem;letter-spacing:-.025em;margin:4px 0}
.player-count{white-space:nowrap;display:inline-flex;padding:8px 10px;border-radius:9px;background:#d9ecdf;color:#205a42;font-weight:850;font-variant-numeric:tabular-nums;font-size:.82rem}
.roster-help{font-size:.77rem;color:#537166;line-height:1.6;margin:12px 0}
.multiplayer-players ol{list-style:none;counter-reset:placement;padding:0;margin:14px 0;display:grid;gap:8px}
.multiplayer-players li{display:grid;grid-template-columns:26px minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px;border-radius:12px;background:#fff;border:1px solid #d7e5dc;min-width:0;counter-increment:placement}
.multiplayer-players li::before{content:counter(placement,decimal-leading-zero);color:#477563;font-size:.68rem;font-weight:850}
.player-details{min-width:0}
.player-name{display:block;color:#214839;font-size:.81rem;font-weight:840;overflow-wrap:anywhere}
.player-presence{display:block;font-size:.67rem;color:#698579;margin-top:2px}
.player-presence.is-online{color:#247650}
.player-presence.is-answered{color:#376b92}
.player-score{font-size:.77rem;color:#385b4d;font-weight:850;font-variant-numeric:tabular-nums;white-space:nowrap}
.player-remove{grid-column:2/4;justify-self:start;min-height:32px;padding:5px 11px;border-radius:8px;border:1px solid #debaa9;background:#fff4ef;color:#91412d;font-size:.7rem;font-weight:830}
.player-remove:hover{background:#f9e1d6}
.roster-explainer{margin-top:21px;padding:16px;background:#e3eee6;border:1px solid #c6dbce;border-radius:12px;color:#325d48}
.roster-explainer strong{font-size:.81rem}
.roster-explainer p{font-size:.74rem;line-height:1.6;color:#526d5d;margin:4px 0 0}
.room-finished-summary{background:#f5f0fb;border:1px solid #d7c7e6;border-radius:15px;padding:18px;margin:22px 0}
.room-finished-summary p{margin:0;color:#614975;font-weight:750}
#notice:empty{display:none}
[hidden]{display:none!important}
@media(max-width:1100px){.multiplayer-hero{grid-template-columns:minmax(0,1fr) minmax(235px,.7fr)}.multiplayer-layout{grid-template-columns:minmax(0,1.45fr) minmax(270px,1fr)}}
@media(max-width:870px){.multiplayer-hero{grid-template-columns:1fr}.multiplayer-hero-preview{display:none}}
@media(max-width:760px){
  .multiplayer-entry{grid-template-columns:1fr}
  .multiplayer-entry-heading{align-items:start;flex-direction:column;gap:10px}
  .multiplayer-layout{grid-template-columns:1fr}
  .multiplayer-panel{padding:23px}
  .multiplayer-room-top{gap:15px;padding:23px}
  .room-share-actions{max-width:none;justify-content:flex-start}
  .multiplayer-stage .option-grid{grid-template-columns:1fr}
  .multiplayer-stage .method-option{min-height:57px}
  .multiplayer-stage,.multiplayer-players{padding:22px}
}
@media(max-width:430px){
  #room-id{font-size:2.5rem;letter-spacing:.08em}
  .room-code-line{gap:8px}
  .room-share-actions .room-action{font-size:.73rem;padding:9px 10px}
  .entry-card-heading h3{font-size:1.35rem}
}
@media(prefers-reduced-motion:reduce){
  .multiplayer-stage .question-progress-fill{transition:none}
  .multiplayer-hero-preview{transform:none}
}
.multiplayer-room:fullscreen{
  overflow:auto;
  width:100vw;
  min-height:100vh;
  margin:0;
  padding:clamp(16px,2.5vw,34px);
  background:#f5f8f5;
}
.multiplayer-room:fullscreen .multiplayer-room-top{margin-bottom:18px}
@media print{.multiplayer-hero,.multiplayer-entry-section,.room-share-actions,.player-remove{display:none!important}.multiplayer-room-top{background:#fff;color:#000;box-shadow:none}.room-code-block *{color:#000!important}}


/* Pass 4 — three purposeful classroom boards, with tap and keyboard alternatives. */
.multiplayer-stage .arena-mode-intro{font-size:.8rem;color:#426b5c;margin:13px 0}
.multiplayer-stage .arena-instruction{padding:13px 16px;margin:12px 0 16px;background:#f1f7f4;border:1px solid #d4e5d9;border-radius:14px}
.multiplayer-stage .arena-instruction strong{font-size:.72rem;letter-spacing:.09em;color:#1b6753}
.multiplayer-stage .arena-instruction p{font-size:.8rem;line-height:1.55;margin:5px 0 0}
.multiplayer-stage .arena-board-counter{font-size:.81rem;font-weight:850;color:#2b6552;margin:0 0 14px}
.multiplayer-stage .arena-speed-form{display:grid;gap:12px;max-width:540px;margin-top:15px}
.multiplayer-stage .arena-speed-label{font-size:.9rem;font-weight:820;color:#244f43}
.multiplayer-stage #arena-speed-answer{min-height:58px;width:100%;border:2px solid #b4d3c4;border-radius:14px;padding:14px 16px;
  background:white;color:#203b37;font-size:1.04rem;font-weight:680}
.multiplayer-stage #arena-speed-answer:focus-visible{outline:3px solid #d19a44;outline-offset:3px;border-color:#2f886e}
.multiplayer-stage .arena-field-hint{font-size:.77rem;color:#536e64;margin:0}
.multiplayer-stage .arena-speed-form button{justify-self:start;min-height:49px}
.multiplayer-stage .arena-speed-form button:disabled{opacity:.55}
.multiplayer-stage .arena-match-columns{display:grid;grid-template-columns:minmax(0,.74fr) minmax(0,1.26fr);gap:13px;margin:12px 0 20px}
.multiplayer-stage .arena-match-panel{min-width:0;display:flex;flex-direction:column;gap:9px;padding:13px;border:1px solid #cfddd6;
  background:#f2f7f3;border-radius:17px}
.multiplayer-stage .arena-match-panel h3{font-size:.73rem;letter-spacing:.1em;color:#2f6756;margin:1px 2px 7px}
.multiplayer-stage .arena-term,.multiplayer-stage .arena-definition{display:flex;align-items:center;gap:10px;width:100%;
  min-width:0;min-height:58px;border:2px solid #c2d9cd;background:#fff;border-radius:12px;padding:11px 13px;
  color:#234b3e;text-align:left;font-size:.83rem;line-height:1.45;font-weight:700;white-space:normal;overflow-wrap:anywhere}
.multiplayer-stage .arena-term{font-size:.86rem}
.multiplayer-stage .arena-term:hover,.multiplayer-stage .arena-definition:not(:disabled):hover{border-color:#31795f;background:#f0faf4}
.multiplayer-stage .arena-term.is-selected{background:#d9f4e3;border-color:#237553;box-shadow:0 0 0 2px #80cba450}
.multiplayer-stage .arena-term.is-paired,.multiplayer-stage .arena-definition.is-paired{border-color:#8dbbb1;background:#e9f6f0}
.multiplayer-stage .arena-definition-letter{display:grid;place-items:center;flex:none;width:29px;height:29px;
  border-radius:9px;background:#d7e8de;color:#245643;font-size:.8rem;font-weight:850}
.multiplayer-stage .arena-match-panel button:disabled{cursor:not-allowed}
.multiplayer-stage .arena-definition:disabled:not(.is-paired){opacity:.7}
.multiplayer-stage .arena-match-panel button:focus-visible,.multiplayer-stage .arena-sort-card:focus-visible,
.multiplayer-stage .arena-zone-action:focus-visible{outline:3px solid #cc933d;outline-offset:2px}
.multiplayer-stage .arena-submit{margin-top:20px;display:flex}
.multiplayer-stage .arena-sort-bank{margin:12px 0 23px}
.multiplayer-stage .arena-sort-bank h3{font-size:.73rem;letter-spacing:.11em;margin:0 0 8px;color:#2d6754}
.multiplayer-stage .arena-sort-bank-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.multiplayer-stage .arena-sort-card{min-width:0;min-height:82px;text-align:left;display:flex;flex-direction:column;
  justify-content:space-between;align-items:stretch;gap:7px;padding:13px;background:white;border:2px solid #bfcec7;
  border-radius:12px;color:#26493d;white-space:normal;font-size:.79rem;line-height:1.45;overflow-wrap:anywhere}
.multiplayer-stage .arena-sort-card small{color:#5a786a;font-weight:790;font-size:.65rem;line-height:1.4}
.multiplayer-stage .arena-sort-card.is-placed{border-color:#79b49a;background:#eaf7ec}
.multiplayer-stage .arena-sort-card.is-selected{outline:3px solid #c99037;outline-offset:2px;border-color:#17684c}
.multiplayer-stage .arena-sort-destinations{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}
.multiplayer-stage .arena-sort-zone{min-width:0;border-radius:15px;border:1px solid #cadfd2;background:#f6faf6;
  padding:13px;display:flex;flex-direction:column}
.multiplayer-stage .arena-sort-zone h4{font-size:.8rem;font-weight:860;margin:0;color:#255e47;overflow-wrap:anywhere;line-height:1.4}
.multiplayer-stage .arena-sort-zone .arena-zone-count{font-size:.7rem;margin:4px 0 9px;color:#56806c}
.multiplayer-stage .arena-sort-zone ul{padding:0 0 0 14px;margin:0;flex:1}
.multiplayer-stage .arena-sort-zone li{font-size:.73rem;color:#405e51;margin-bottom:8px;line-height:1.43;overflow-wrap:anywhere}
.multiplayer-stage .arena-zone-action{background:#d9ebdf;border:1px solid #a9d0b7;color:#215b45;
  border-radius:10px;padding:10px 8px;font-weight:830;font-size:.74rem;min-height:43px;margin-top:10px}
.multiplayer-stage .arena-zone-action:disabled{opacity:.54;cursor:default}
.multiplayer-stage .arena-math-review{display:grid;gap:10px;margin-top:17px}
.multiplayer-stage .arena-review-line{padding:13px 15px;border:1px solid #c6ddcc;background:#f4faf5;border-radius:13px}
.multiplayer-stage .arena-review-line strong{font-size:.84rem;color:#185a45}
.multiplayer-stage .arena-review-line p{font-size:.81rem;margin:4px 0;line-height:1.6}
.multiplayer-stage .arena-review-line .arena-explanation{font-size:.74rem;color:#527064}
.multiplayer-stage .arena-my-result{background:#f7f2e3;padding:12px;border:1px solid #ddcda4;border-radius:12px;font-weight:780}
@media(max-width:1000px){
  .multiplayer-stage .arena-match-columns{grid-template-columns:1fr}
  .multiplayer-stage .arena-sort-destinations{grid-template-columns:1fr}
}
@media(max-width:650px){
  .multiplayer-stage .arena-sort-bank-cards{grid-template-columns:1fr}
  .multiplayer-stage .arena-match-panel,.multiplayer-stage .arena-sort-zone{padding:11px}
  .multiplayer-stage .arena-term,.multiplayer-stage .arena-definition{padding:12px}
  .multiplayer-stage .arena-sort-destinations{grid-template-columns:1fr}
  .multiplayer-stage .arena-speed-form button{width:100%}
}
@media(prefers-reduced-motion:reduce){
  .multiplayer-stage .arena-match-panel button,.multiplayer-stage .arena-sort-card{transition:none}
}


/* Pass 5 — The Grand Awards Ceremony. Motion never advances the timeline. */
.multiplayer-room.is-ceremony .multiplayer-layout{display:block}
.multiplayer-room.is-ceremony .multiplayer-players{display:none}
.multiplayer-room.is-ceremony .multiplayer-stage{padding:clamp(16px,3vw,35px);overflow:hidden}
.multiplayer-stage .ceremony-card{position:relative;isolation:isolate;min-width:0;width:100%;
  border:1px solid #d5bd87;border-radius:25px;
  background:radial-gradient(circle at 12% 7%,#fdf4da,#ffffff00 40%),
    radial-gradient(circle at 85% 95%,#d9eee5,#ffffff00 42%),#fffefb;
  padding:clamp(20px,4vw,48px);text-align:center;
  box-shadow:0 16px 42px #26453614;overflow:hidden;min-height:330px}
.multiplayer-stage .ceremony-card::after{content:"✦";pointer-events:none;
  position:absolute;right:6%;top:8%;color:#bd9c5a;font-size:1.6rem;opacity:.65}
.multiplayer-stage .ceremony-progress{display:block;width:min(380px,100%);
  height:7px;margin:13px auto 27px;accent-color:#37876d}
.multiplayer-stage .ceremony-title{font-size:clamp(1.55rem,4.3vw,3.35rem);font-weight:900;
  color:#16483d;letter-spacing:-.06em;line-height:1.11;max-width:850px;
  margin:16px auto;overflow-wrap:anywhere}
.multiplayer-stage .ceremony-subtitle{font-size:clamp(.95rem,2vw,1.2rem);
  max-width:660px;margin:12px auto;color:#476a5a;line-height:1.6}
.multiplayer-stage .ceremony-context{max-width:570px;margin:17px auto 0;color:#53736a;font-size:.86rem}
.multiplayer-stage .ceremony-welcome-icons{display:block;font-size:clamp(2.4rem,7vw,5.2rem);
  letter-spacing:.22em;line-height:1.45;animation:ceremony-arrive .7s both;user-select:none}
.multiplayer-stage .ceremony-top-icon{font-size:3.3rem;line-height:1.4}
.multiplayer-stage .ceremony-controls{justify-content:center;gap:10px;flex-wrap:wrap;margin:22px 0 8px}
.multiplayer-stage .ceremony-controls .btn{min-height:46px}
.multiplayer-stage .ceremony-control-note,.multiplayer-stage .ceremony-student-note{
  text-align:center;font-size:.78rem;line-height:1.6;color:#516d63;margin:13px auto}
.multiplayer-stage .ceremony-student-note{font-weight:720}
.multiplayer-stage .ceremony-podium{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  gap:13px;align-items:end;margin:30px 0 13px;padding:0;list-style:none}
.multiplayer-stage .ceremony-podium-step{min-width:0;min-height:180px;display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:8px;border-radius:20px 20px 9px 9px;
  padding:20px 12px 18px;border:2px solid #c0d3c8;background:linear-gradient(180deg,#f3f7f4,#e0ece5);
  overflow-wrap:anywhere;box-shadow:0 6px 16px #193f3614}
.multiplayer-stage .ceremony-podium-step.is-gold{order:2;min-height:235px;
  border-color:#d8b66b;background:linear-gradient(155deg,#fffbe5,#f8e6b3)}
.multiplayer-stage .ceremony-podium-step.is-silver{order:1;
  border-color:#b9c8c9;background:linear-gradient(165deg,#fbfdfe,#e5ebed)}
.multiplayer-stage .ceremony-podium-step.is-bronze{order:3;
  border-color:#cfa887;background:linear-gradient(165deg,#fff4e6,#ebd7c8)}
.multiplayer-stage .ceremony-podium-emoji{font-size:clamp(2rem,4.2vw,3.25rem)}
.multiplayer-stage .ceremony-podium-rank{font-weight:880;color:#3d6055;font-size:.72rem;letter-spacing:.04em;text-transform:uppercase}
.multiplayer-stage .ceremony-podium-names{display:flex;flex-direction:column;gap:4px;
  max-height:220px;overflow-y:auto;width:100%;font-size:clamp(.85rem,2vw,1.12rem);color:#24483e}
.multiplayer-stage .ceremony-podium-names strong{overflow-wrap:anywhere}
.multiplayer-stage .ceremony-podium-score{font-size:.84rem;font-weight:800;color:#4a655a;white-space:nowrap}
.multiplayer-stage .ceremony-footnote{font-size:.77rem;color:#5c736a;line-height:1.5}
.multiplayer-stage .ceremony-empty{padding:30px 15px;border:1px dashed #b9d0c2;border-radius:15px}
.multiplayer-stage .ceremony-award-kicker{font-weight:900;font-size:.76rem;letter-spacing:.13em;
  color:#926e38;margin:24px auto 14px}
.multiplayer-stage .ceremony-award-portrait{display:grid;place-items:center;
  border:9px double #dfb975;border-radius:50%;width:clamp(125px,18vw,185px);height:clamp(125px,18vw,185px);
  margin:10px auto 18px;font-size:clamp(3.5rem,9vw,6rem);
  background:radial-gradient(circle at 30% 22%,#fffdf0,#f8e5b6 60%,#deb772 100%);
  box-shadow:0 12px 32px #9d753433,inset 0 4px 14px #ffffff;
  animation:ceremony-arrive .65s cubic-bezier(.2,1,.3,1) both}
.multiplayer-stage .ceremony-award-detail{font-size:clamp(.87rem,2vw,1.08rem);line-height:1.55;
  max-width:670px;margin:11px auto 22px;color:#506f61}
.multiplayer-stage .ceremony-recipients{max-width:690px;margin:10px auto;padding:17px;
  border:1px solid #cfdfd2;background:#f4f9f5;border-radius:17px}
.multiplayer-stage .ceremony-recipients-kicker{font-size:.7rem;color:#3c755a;font-weight:900;
  letter-spacing:.09em;text-transform:uppercase}
.multiplayer-stage .ceremony-recipients ul{list-style:none;margin:14px 0 0;padding:0;
  display:flex;justify-content:center;gap:10px;flex-wrap:wrap;max-height:240px;overflow:auto}
.multiplayer-stage .ceremony-recipients li{display:flex;gap:6px;align-items:center;
  padding:8px 13px;border-radius:12px;background:#fff;border:1px solid #d8e3d9;
  color:#285747;font-size:.85rem;overflow-wrap:anywhere}
.multiplayer-stage .ceremony-name-spark{color:#ba9749}
.multiplayer-stage .ceremony-finale-count{font-weight:780;font-size:.82rem;margin:20px auto;color:#2e6652}
.multiplayer-stage .ceremony-awards-link{color:#16634a;font-weight:830;display:inline-block;margin-top:14px}
@keyframes ceremony-arrive{from{opacity:0;transform:translateY(12px) scale(.96)}
 to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:600px){
  .multiplayer-stage .ceremony-podium{grid-template-columns:1fr;align-items:stretch}
  .multiplayer-stage .ceremony-podium-step{min-height:105px!important;order:initial!important;
    flex-direction:row;gap:12px;border-radius:15px;justify-content:flex-start}
  .multiplayer-stage .ceremony-podium-emoji{flex:none}
  .multiplayer-stage .ceremony-podium-names{flex:1;max-height:110px;text-align:left}
  .multiplayer-stage .ceremony-podium-score{font-size:.72rem}
  .multiplayer-stage .ceremony-recipients li{max-width:100%}
  .multiplayer-stage .ceremony-card{min-height:260px}
  .multiplayer-stage .ceremony-controls .btn{flex:1 1 150px}
}
@media(prefers-reduced-motion:reduce){
  .multiplayer-stage .ceremony-award-portrait,
  .multiplayer-stage .ceremony-welcome-icons{animation:none}
}
@media print{.ceremony-controls{display:none!important}.ceremony-card{box-shadow:none!important}}


/* Pass 6 — optional team league, accuracy-first quests and teacher reflection. */
.multiplayer-stage .team-setup{margin:24px 0 6px;border:1px solid #cfe2d5;
  border-radius:18px;padding:18px;background:linear-gradient(140deg,#f0f8f1,#f8faf3)}
.multiplayer-stage .team-setup h3{font-size:1.1rem;letter-spacing:-.035em;
  margin:6px 0 8px;color:#194c3c}
.multiplayer-stage .team-setup>p{font-size:.81rem;max-width:78ch;line-height:1.52}
.multiplayer-stage .team-setup-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;margin-top:14px}
.multiplayer-stage .team-setup-field{min-width:0;display:flex;flex-direction:column;gap:8px;
  padding:13px;background:#ffffffb5;border:1px solid #dcebe0;border-radius:13px}
.multiplayer-stage .team-setup-field label{color:#275944;font-size:.8rem;font-weight:850}
.multiplayer-stage .team-setup-field select{width:100%;min-height:46px;padding:10px;
  border-radius:11px;border:1px solid #aecbb9;color:#255945;background:#fff;
  font-size:.84rem;font-weight:720}
.multiplayer-stage .team-setup-field button{width:100%;min-height:42px;font-size:.79rem;
  white-space:normal;line-height:1.35}
.multiplayer-stage .team-setup-note{font-size:.74rem!important;color:#517362!important;margin:14px 0 0!important}
.multiplayer-stage .team-lobby-note{padding:10px 12px;border-left:4px solid #69a282;
  border-radius:8px;background:#eef6f0;font-size:.8rem}
.multiplayer-players .class-pulse[hidden]{display:none}
.multiplayer-players .class-pulse{display:grid;gap:15px;margin:0 0 22px;padding-bottom:20px;
  border-bottom:1px solid #d7e8dc}
.multiplayer-players .team-score-panel h3,.multiplayer-players .class-quest-panel h3{
  color:#205842;font-size:.87rem;letter-spacing:-.02em;margin:0 0 7px}
.multiplayer-players .team-score-grid{display:grid;gap:8px;margin-top:9px}
.multiplayer-players .team-score-card{min-width:0;background:#fff;border-radius:13px;
  border:1px solid #cfe0d4;padding:12px;display:flex;flex-direction:column;gap:5px}
.multiplayer-players .team-score-name{display:flex;align-items:center;gap:8px;
  font-size:.81rem;color:#255440;overflow-wrap:anywhere}
.multiplayer-players .team-score-name span{font-size:1.2rem}
.multiplayer-players .team-score-amount{font-size:1.13rem;font-variant-numeric:tabular-nums;
  letter-spacing:-.035em;color:#174e3c}
.multiplayer-players .team-score-card small{font-size:.72rem;color:#5c756a}
.multiplayer-players .team-small-note{font-size:.71rem!important;line-height:1.5;
  margin:4px 0!important;color:#557466!important}
.multiplayer-players .team-progress-group{display:grid;gap:3px;margin-top:7px}
.multiplayer-players .team-progress-label{font-size:.7rem;font-weight:750;color:#527164}
.multiplayer-players .team-progress-group progress{height:8px;width:100%;accent-color:#37846b}
.multiplayer-players .team-quest-label{font-size:.7rem;font-weight:800;color:#255c47;line-height:1.4}
.multiplayer-players .class-quest-panel{background:#e8f3ec;border:1px solid #b4d5c1;
  padding:13px;border-radius:14px;min-width:0}
.multiplayer-players .class-quest-status{font-size:.76rem;color:#1c654a;line-height:1.4;display:block;margin-top:10px}
.multiplayer-players .player-team-label{font-size:.67rem;color:#46735e;font-weight:790;
  line-height:1.4;overflow-wrap:anywhere}
.multiplayer-stage .teacher-feedback-tools{margin:22px 0 4px;padding:15px 17px;
  background:#f0f7f2;border:1px solid #c6ded0;border-radius:15px}
.multiplayer-stage .teacher-feedback-tools summary{font-weight:850;font-size:.86rem;
  color:#225b42;cursor:pointer;padding:4px;min-height:34px}
.multiplayer-stage .teacher-feedback-tools[open] summary{margin-bottom:12px}
.multiplayer-stage .teacher-feedback-tools .teacher-feedback-pulse{
  font-size:.8rem;font-weight:760;background:#e5f0e6;padding:9px 12px;
  border-radius:9px;color:#315d48}
.multiplayer-stage .teacher-feedback-presets{display:grid;gap:7px;margin:14px 0 16px}
.multiplayer-stage .teacher-feedback-choice{border:1px solid #bcd5c8;border-radius:10px;
  background:#fff;padding:10px 12px;text-align:left;color:#315b4a;
  font-size:.76rem;line-height:1.5;min-height:44px;font-weight:750;white-space:normal}
.multiplayer-stage .teacher-feedback-choice:hover{background:#e5f4eb}
.multiplayer-stage .teacher-feedback-tools label{display:block;font-size:.77rem;
  font-weight:820;color:#315f4c;margin:5px 0 7px}
.multiplayer-stage #teacher-feedback-text{width:100%;font-size:.86rem;border:1px solid #b9d2c4;
  padding:11px;border-radius:11px;min-height:70px;background:#fff;color:#264638;
  resize:vertical}
.multiplayer-stage #teacher-feedback-text:focus-visible,.multiplayer-stage .team-setup select:focus-visible,
.multiplayer-stage .teacher-feedback-choice:focus-visible{outline:3px solid #d0a54c;outline-offset:2px}
.multiplayer-stage .teacher-feedback-tools #teacher-feedback-send{margin-top:10px;min-height:45px}
.multiplayer-stage .teacher-feedback-note{margin:19px 0 0;padding:15px 18px;
  border:1px solid #d0c2a4;border-left:5px solid #b7964e;
  background:#fff9ea;border-radius:12px}
.multiplayer-stage .teacher-feedback-note strong{font-size:.69rem;letter-spacing:.12em;color:#926f30}
.multiplayer-stage .teacher-feedback-note p{margin:9px 0 0;color:#5a4d36;
  font-size:.9rem;line-height:1.55;overflow-wrap:anywhere}
.multiplayer-stage .team-finish-summary{border-radius:12px;border:1px solid #cce0d1;
  background:#f1f7f2;padding:12px 16px;margin:15px 0;font-size:.84rem}
.multiplayer-stage .ceremony-team-podium{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:13px;max-width:800px;margin:24px auto}
.multiplayer-stage .ceremony-team-podium article{display:grid;gap:7px;
  border-radius:17px;border:2px solid #bddac9;padding:19px 15px;
  background:linear-gradient(145deg,#f7fff8,#e7f1ed);overflow-wrap:anywhere}
.multiplayer-stage .ceremony-team-podium .team-rank{font-weight:860;font-size:.73rem;color:#39745a}
.multiplayer-stage .ceremony-team-podium .team-avatar{font-size:2.5rem}
.multiplayer-stage .ceremony-team-podium .team-name{font-size:1.04rem;font-weight:900;color:#1e5540}
.multiplayer-stage .ceremony-team-podium .team-average{font-size:1.2rem;font-weight:870;color:#195342}
.multiplayer-stage .ceremony-team-podium .team-quest-label{font-size:.73rem;color:#466d58}
@media(max-width:770px){
 .multiplayer-stage .team-setup-controls{grid-template-columns:1fr}
 .multiplayer-stage .ceremony-team-podium{grid-template-columns:1fr}
}
@media(max-width:390px){
 .multiplayer-stage .team-setup{padding:12px}
 .multiplayer-stage .team-setup-field{padding:10px}
 .multiplayer-stage .ceremony-team-podium article{padding:14px}
}
@media(prefers-reduced-motion:reduce){
 .multiplayer-stage .team-score-card,.multiplayer-stage .teacher-feedback-choice{transition:none}
}
