/* Riang! Betang Arena 3.0 · vivid shared-screen game system.
   Uses local assets only. Pattern is decorative, not a ceremonial reproduction. */
:root{--ink:#282341;--sub:#716b87;--paper:#f5f3ff;--card:#fff;--line:#e5e0f2;--gold:#ffdc52;--gold-pale:#fff2b3;--forest:#6442d4;--red:#e73557;--shadow:0 8px 26px #46317412;--radius:20px}
body{background:var(--paper)}
.sidebar{background:linear-gradient(170deg,#291352,#372063 62%,#221447);border-right:0}
.brand-icon{color:#311e58;border-radius:16px 5px 16px 5px;background:#ffda52;box-shadow:0 5px 0 #e5aa2144}
.side-label,.side-profile small{color:#c1b2dd}.sidebar nav button{color:#e0d7ef}.sidebar nav button.active{color:#382258;background:#ffdc52;box-shadow:0 4px 0 #dbab3a55}.sidebar nav button:hover:not(.active){background:#ffffff12}.side-note p{color:#c2b4d9}.side-note b{font-family:inherit;font-weight:750;font-size:18px}.side-weave{height:15px;background-size:85px 34px;opacity:.9}
.topbar{background:#ffffffec}.topbar small{color:#7a6997}.dot{background:#10b981;box-shadow:0 0 0 3px #10b98115}.top-actions .icon-btn{background:#fff}.btn{font-size:13px;border-radius:12px;font-weight:750;transition:transform .15s,box-shadow .15s}.btn:active{transform:translateY(2px)!important;box-shadow:none!important}.btn-dark{background:#6841d9;box-shadow:0 4px 0 #442297}.btn-gold{background:#ffdc52;color:#34223d;box-shadow:0 4px 0 #d9a61e}.btn-green{background:#6841d9;box-shadow:0 4px 0 #442297}.btn-red{background:#dc2850;color:white}.btn-light{background:white;color:#443061;border-color:#e8e0f7;box-shadow:0 3px 0 #e6dff0}.btn:disabled{transform:none!important;box-shadow:none;opacity:.5}
.welcome h1{font-weight:850;font-size:34px;letter-spacing:-1.2px}.welcome p{font-size:14px}.badge{background:#f2e7ff;border-color:#e5ccff;color:#6a3ea1}.hero{background:radial-gradient(ellipse at 82% 15%,#8953edaa,transparent 60%),linear-gradient(125deg,#421b9c,#5634c1 50%,#2868bd);min-height:352px;box-shadow:0 8px 0 #ddd6f1;border:1px solid #7047d5}.hero h2{font-size:46px;font-weight:900;letter-spacing:-1.8px}.hero h2 i{font-family:inherit;font-weight:900;color:#ffdc52;letter-spacing:-1.8px}.hero .kicker{font-size:10px;color:#efdcff}.hero-copy{max-width:390px}.hero p{color:#e5d9ff;max-width:330px;font-size:13px}.hero-art{width:62%;right:-38px;opacity:.77}.hero-stat{color:#e4d8ff}.hero-stat strong{color:#ffdc52;font-size:17px}.hero:after{height:15px;opacity:.8}.join-panel{background:#fff6cb;border:2px solid #ffe475;box-shadow:0 8px 0 #efe6c4}.join-panel .join-icon{background:#ffdc52;color:#54316c}.join-panel h3{font-weight:850;font-size:25px}.join-panel .pin{background:#fff;border:2px solid #e4c551;color:#3a2260}.join-panel small{color:#766038}.mode{background:#fff;border:2px solid #e9e2f6;box-shadow:0 4px 0 #e4dcef}.mode:nth-child(1) .symbol{background:#eee5ff;color:#7642db}.mode:nth-child(2) .symbol{background:#dff3ff;color:#0977d1}.mode:nth-child(3) .symbol{background:#d4f8e8;color:#07865a}.mode.active{border-color:#a884ed;background:#f3edff}.mode b{color:#362750}.mode small{color:#726380}
.card-art{background:linear-gradient(125deg,#874ee4,#5b36ce);color:#fff;overflow:hidden}.card-art.green{background:linear-gradient(125deg,#10a574,#087960)}.card-art.blue{background:linear-gradient(125deg,#2189ef,#2464d4)}.card-art.red{background:linear-gradient(125deg,#f3536a,#d93458)}.card-art .card-label{color:#fff;background:#ffffff1c;border:1px solid #ffffff40}.card-art .big{color:#fff;text-shadow:0 4px 0 #00000018;font-weight:900}.quiz-card{background:#fff;border:1px solid #e7def3;box-shadow:0 6px 0 #e8e2f1;transition:transform .2s,box-shadow .2s}.quiz-card:hover{transform:translateY(-4px);box-shadow:0 10px 0 #e3d8f2}.cards{row-gap:28px}.tabs button.active{background:#6540d5;color:white}.info-banner{background:#eee8ff;border:1px solid #ddcef8;color:#52356e}.info-banner.success{background:#def9ea;color:#056647}.info-banner.error{background:#fff0f1;color:#a5233d}.card-body h3{font-weight:800}.footer{color:#857496}
/* Setup: the three most important switches are always visible. */
#modal{background:#fff;max-width:740px;border:0;box-shadow:0 24px 100px #210b5b70}#modal::backdrop{background:#1c0b48a3;backdrop-filter:blur(5px)}.modal-label{color:#8862b3}.modal-head h2{font-size:29px;font-weight:850}.close{background:#f2ebfd!important;color:#663ea1}.setup-summary{display:flex;gap:14px;align-items:center;background:#f6f0ff;border-radius:14px;padding:14px 16px;margin:18px 0}.setup-summary>span{display:grid;place-items:center;background:#ffdc52;width:45px;height:45px;font-size:28px;border-radius:12px}.setup-summary b{display:block}.setup-summary small{display:block;font-size:12px;color:#786490;margin-top:3px}.settings-primary{display:grid;gap:10px;margin-bottom:20px}.switch-card{display:flex;align-items:center;gap:14px;padding:14px 16px;background:#fff;border:2px solid #e4dfee;border-radius:14px;cursor:pointer;margin:0}.switch-card:has(input:checked){background:#f2edff;border-color:#a57ae8}.switch-card input{width:23px!important;height:23px;flex-shrink:0;accent-color:#7542d7}.switch-card b{font-size:15px;color:#3c225e}.switch-card small{display:block;font-size:12px;color:#7b698b;margin-top:2px}.settings-extra{margin:20px 0 12px}.settings-extra .check{font-size:13px}.arena-settings input,.arena-settings select{background:#faf8ff;border-color:#ded3ed}.arena-settings .actions{padding-top:18px}.arena-settings .field-note{line-height:1.6}.form-grid small{color:#837390}.check input{accent-color:#7643db}
/* Theatre layout: no dashboard sidebar on the classroom screen or student phone. */
body.playing{background:#32135f}.playing .sidebar,.playing .topbar,.playing .footer{display:none!important}.playing .workspace{margin:0!important}.playing #content{padding:0!important;max-width:none!important;min-height:100svh}.arena-stage{--accent:#ffdc52;color:white;position:relative;isolation:isolate;display:flex;flex-direction:column;min-height:100svh;padding:20px 44px 14px;overflow:hidden;background:radial-gradient(ellipse at 10% 0,#8045d577,transparent 47%),radial-gradient(ellipse at 100% 95%,#2177b64d,transparent 45%),linear-gradient(125deg,#492285,#351462 62%,#261246)}.arena-stage:before{content:'';position:absolute;z-index:-1;inset:0;background:url('weave.svg') repeat-x center top,url('weave.svg') repeat-x center bottom;background-size:115px 46px;opacity:.15;pointer-events:none}.arena-stage:after{content:'';position:absolute;z-index:-1;right:-30px;bottom:40px;width:600px;height:460px;background:url('betang.svg') center/contain no-repeat;opacity:.065;pointer-events:none}.stage-header{display:flex;align-items:center;gap:30px;min-height:66px;flex-shrink:0;border-bottom:1px solid #ffffff18;padding-bottom:13px}.stage-brand{display:flex;flex-direction:column;text-decoration:none;min-width:132px}.stage-brand b{font-size:45px;line-height:1;font-weight:950;letter-spacing:-2.3px;color:white}.stage-brand b span{color:#ffdc52}.stage-brand small{font-size:8px;color:#d3bcec;letter-spacing:2px;margin-top:4px}.stage-title{flex:1;min-width:0}.stage-title>b{font-size:18px;display:block;font-weight:750;line-height:1.2}.stage-title>small{display:block;font-size:10px;letter-spacing:1.3px;color:#c8b5e1;margin-top:6px}.stage-tools{display:flex;gap:8px}.stage-tools button{color:white;background:#ffffff12;border:1px solid #ffffff28;border-radius:12px;width:41px;height:41px;font-size:23px;display:grid;place-items:center}.stage-tools button:hover{background:#ffffff28}.stage-info{display:flex;justify-content:space-between;align-items:center;min-height:46px;gap:12px;flex-shrink:0}.stage-badges{display:flex;flex-wrap:wrap;gap:7px}.stage-chip{font-size:11px;color:#ddd0f3;background:#ffffff0e;border:1px solid #ffffff1a;border-radius:30px;padding:3px 10px}.stage-chip.auto-on{background:#29cb8e20;color:#a1ffda;border-color:#58dea54d}.stage-stats{display:flex;align-items:center;gap:16px;font-size:13px;color:#deceed;white-space:nowrap}.stage-stats b{color:#fff}.stage-kicker{color:#d9bef4;font-size:12px;font-weight:800;letter-spacing:2.2px;display:block}.stage-title,.stage-brand,.stage-info{position:relative;z-index:1}
.stage-controls{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-shrink:0;padding:14px 0 8px;min-height:60px}.stage-auto{display:flex;align-items:center;justify-content:flex-start;gap:8px;color:#d6c4eb;font-size:12px;line-height:1.5;min-height:28px}.stage-auto b{color:#ffdc52;white-space:nowrap}.auto-dot{width:7px;height:7px;flex-shrink:0;background:#4fe2b1;border-radius:50%;box-shadow:0 0 0 4px #4fe2b11b}.arena-stage .btn{font-size:13px;min-height:40px}.arena-stage .btn-light{background:#ffffff12;color:#fff;border:1px solid #ffffff38;box-shadow:0 3px 0 #0000001f}.arena-stage .btn-light:hover{background:#ffffff23}.arena-stage .btn-ghost{background:transparent;color:#d3bde5;padding:9px;border:0}.arena-stage .btn-gold{color:#34213c}.live-connection{color:#b8a3d0!important;text-align:center;font-size:10px;margin:3px 0 0;padding:0!important;line-height:1.2;min-height:14px}.arena-stage .centered,.centered{justify-content:center}.arena-stage button:focus-visible{outline:4px solid #fff;outline-offset:5px}
/* Vivid answers: text + letter + distinct shape, not colour alone. */
.question-panel{display:flex;flex-direction:column;flex:1;min-height:0}.question-top{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:60px;flex-shrink:0}.round-tag{color:#fff;font-size:16px;font-weight:900;letter-spacing:.6px}.round-tag i{font-style:normal;color:#bca4d9;font-size:13px;font-weight:650}.question-type{color:#c9b3e2;font-size:10px;font-weight:750;letter-spacing:1.2px}.clock{display:flex;gap:6px;align-items:baseline;background:#ffffff18;border:2px solid #ffffff35;border-radius:17px;min-width:90px;justify-content:center;padding:3px 12px}.clock b{color:#fff;font-size:29px;font-weight:900;line-height:1.3}.clock small{font-size:10px;color:#d3c3e8}.clock.urgent{background:#e7315844;border-color:#ff7594}.clock.urgent b{color:#ffccd6}.clock-track{height:5px;background:#ffffff15;border-radius:5px;overflow:hidden;margin:5px 0 14px;flex-shrink:0}.clock-track i{display:block;height:100%;width:100%;background:linear-gradient(90deg,#ffce4a,#ffecaa);border-radius:5px;transition:width .1s linear}.big-question{font-size:clamp(27px,3.3vw,54px);line-height:1.2;color:#fff;font-weight:850;letter-spacing:-.9px;text-align:center;display:flex;align-items:center;justify-content:center;flex:1;min-height:100px;padding:18px 6%;margin:0 0 20px;text-shadow:0 3px 0 #00000014;overflow-wrap:anywhere;white-space:pre-wrap}.math-question{font-size:clamp(50px,6.9vw,116px);letter-spacing:-2.5px;padding:10px}.long-question{font-size:clamp(23px,2.5vw,38px);line-height:1.25}.answer-grid{display:grid;grid-template-columns:1fr 1fr;grid-auto-rows:minmax(92px,1fr);gap:15px;margin:0;height:clamp(212px,29.5vh,344px);flex-shrink:0}.answer-grid.five-options{height:clamp(276px,35vh,390px)}.five-options .answer:last-child{grid-column:1/-1}.ans-0{--answer:#e83355;--answer-deep:#a51a3c;--answer-tint:#ff839a}.ans-1{--answer:#187ee0;--answer-deep:#1051a0;--answer-tint:#7dc9ff}.ans-2{--answer:#efa91f;--answer-deep:#b97610;--answer-tint:#ffe28b}.ans-3{--answer:#11a970;--answer-deep:#08714f;--answer-tint:#8ee9be}.ans-4{--answer:#ca46ce;--answer-deep:#892894;--answer-tint:#f2a4ff}.arena-stage .answer{background:var(--answer);color:#fff;border:2px solid #ffffff0c;border-radius:16px;box-shadow:0 6px 0 var(--answer-deep);position:relative;display:flex;align-items:center;justify-content:flex-start;gap:22px;padding:16px 24px;text-align:left;min-width:0;font-size:clamp(20px,2vw,33px);line-height:1.2;font-weight:800;transition:transform .14s,filter .14s,outline-color .14s;animation:answer-in .35s both;overflow:hidden;margin:0}.answer:nth-child(2){animation-delay:.055s}.answer:nth-child(3){animation-delay:.11s}.answer:nth-child(4){animation-delay:.165s}.answer-shape{color:#fff;font-size:clamp(32px,3vw,51px);line-height:1;min-width:52px;text-align:center;flex-shrink:0;text-shadow:0 3px 0 #00000012}.answer-copy{flex:1;overflow-wrap:anywhere;white-space:pre-wrap;padding-right:18px}.answer-corner{position:absolute;right:12px;top:9px;font-size:13px;line-height:1;font-weight:800;opacity:.72}.arena-stage button.answer:hover:not(:disabled){transform:translateY(-3px);filter:brightness(1.09)}.arena-stage button.answer:active:not(:disabled){transform:translateY(4px);box-shadow:0 2px 0 var(--answer-deep)}.arena-stage .answer.selected{outline:4px solid #fff;outline-offset:-5px;border-color:#fff;background:var(--answer);color:white}.arena-stage .answer:disabled{opacity:1;cursor:default}.arena-stage .answer.dim{filter:grayscale(.2);opacity:.35}.arena-stage .answer.correct{outline:4px solid #fff;outline-offset:-4px}.arena-stage .answer.selected .answer-corner{background:#fff;color:var(--answer-deep);border-radius:50%;width:22px;height:22px;display:grid;place-items:center;opacity:1}.answer-progress{display:flex;align-items:center;gap:18px;margin-top:23px;flex-shrink:0;color:#d5c4e9;font-size:12px}.answer-progress>div{height:10px;max-width:280px;flex:1;border-radius:12px;background:#ffffff18;overflow:hidden}.answer-progress i{height:100%;display:block;background:#a275eb;transition:width .5s;border-radius:12px}.answer-progress b{color:white}.answer-tools{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:23px 0 4px;min-height:66px;flex-shrink:0}.input-hint{font-size:11px;color:#c6b2dd}.arena-stage .power-ups{display:flex;gap:10px;flex-wrap:wrap}.arena-stage .power{background:#ffffff10;border:1px solid #ffffff35;color:#fff;border-radius:12px;font-size:13px;padding:9px 14px;min-height:39px}.arena-stage .power.active{background:#ffdc52;color:#3c224d;border-color:#ffdc52}.arena-stage .power:disabled{opacity:.35}.number-form{max-width:900px;width:100%;margin:0 auto 40px;display:flex;gap:14px}.number-form input{border:3px solid #b899e9;background:white;font-size:34px;font-weight:800;color:#352054;min-height:94px}.number-form button{min-width:180px;font-size:17px!important}.host-number-hint{border:2px dashed #ffffff30;display:grid;place-content:center;text-align:center;border-radius:22px;padding:40px;min-height:180px;background:#ffffff08;margin-bottom:30px;color:#d6c5eb}.host-number-hint span{font-size:64px;font-weight:900;color:#ffdc52;letter-spacing:12px}.submitted-state{margin-top:23px;border:1px solid #67deb366;background:#2fba831a;padding:13px 20px;border-radius:16px;display:flex;align-items:center;gap:15px;color:#b6ffdc;flex-shrink:0}.submitted-state>span{font-size:24px;display:grid;place-items:center;border-radius:50%;background:#16aa71;width:38px;height:38px;color:white}.submitted-state p{color:#c5dbda;font-size:12px;margin:2px 0}.submitted-state .waiting-dots{margin-left:auto}
/* Lobby and countdown */
.live-lobby{display:grid;grid-template-columns:1fr minmax(300px,.78fr);gap:60px;align-items:center;padding:32px 4% 24px;flex:1}.lobby-intro h1{font-size:clamp(36px,4.5vw,68px);line-height:1.08;letter-spacing:-2px;margin:16px 0}.lobby-intro em{font-style:normal;color:#ffdc52}.lobby-intro p{font-size:15px;color:#d2bce9;max-width:410px}.pin-card{position:relative;border:2px solid #ffffff25;box-shadow:0 10px 0 #170e2f33;background:#ffffff0e;border-radius:26px;text-align:center;padding:30px 28px}.pin-card>span{font-size:11px;letter-spacing:3px;color:#d5bbee;font-weight:750}.room-code{display:block;font-size:clamp(54px,6vw,92px);font-weight:950;letter-spacing:8px;line-height:1.2;color:#ffdc52;margin:7px 0 18px;font-variant-numeric:tabular-nums;white-space:nowrap}.join-address{overflow-wrap:anywhere;color:#e2d4f3;font-size:13px;margin:0 0 20px}.pin-card .btn{width:auto;min-width:220px}.pin-card p{font-size:13px;color:#d9c5e9}.waiting-avatar{font-size:68px;margin:15px}.lobby-roster{padding:10px 4% 20px}.roster-title{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ffffff14;padding-bottom:16px}.roster-title h2{font-size:20px;color:white}.roster-title>span{font-size:12px;background:#ffffff14;border-radius:30px;padding:6px 14px}.roster-title>span b{color:#ffdc52;font-size:16px}.arena-stage .players{display:flex;flex-wrap:wrap;gap:12px;justify-content:flex-start;padding:22px 0 8px;max-height:210px;overflow:auto;min-height:96px}.arena-stage .player{background:#ffffff10;color:white;border:1px solid #ffffff26;border-radius:14px;padding:11px 18px;gap:10px;font-size:14px;box-shadow:0 4px 0 #00000015;animation:answer-in .3s both}.arena-stage .player span{font-size:23px}.arena-stage .team-0{border-bottom:3px solid #78c9ff}.arena-stage .team-1{border-bottom:3px solid #80e3bb}.arena-stage .team-2{border-bottom:3px solid #ffd05e}.arena-stage .team-3{border-bottom:3px solid #da97ff}.start-game{min-width:235px;min-height:52px!important;font-size:17px!important}.waiting-dots{display:flex;align-items:center;gap:6px;justify-content:center}.waiting-dots i{width:7px;height:7px;border-radius:50%;background:#c3a4ef;animation:bounce-dot 1s infinite}.waiting-dots i:nth-child(2){animation-delay:.16s}.waiting-dots i:nth-child(3){animation-delay:.32s}.waiting-dots span{margin-left:12px;color:#bfa7d8;font-size:13px}.countdown-screen{position:relative;flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:480px;text-align:center;padding:25px 0}.countdown-screen h1{font-size:clamp(30px,4vw,52px);margin-top:14px;color:white;font-weight:900}.countdown-number{font-size:clamp(135px,23vh,240px);line-height:1.15;font-weight:950;letter-spacing:-10px;color:#ffdc52;text-shadow:0 10px 0 #a779194d;min-width:240px;text-align:center;animation:count-pop .6s both}.countdown-number.pop{animation:count-pop .5s both}.countdown-screen>p:last-of-type{color:#d9c5e8;font-size:15px}.count-shapes{position:absolute;inset:5%;pointer-events:none}.count-shapes span{position:absolute;font-size:70px;animation:float-shape 4s ease-in-out infinite;opacity:.8}.count-shapes span:nth-child(1){color:#ed4a6c;left:10%;top:8%;transform:rotate(-17deg)}.count-shapes span:nth-child(2){color:#45aaff;right:11%;top:10%;animation-delay:-1.5s}.count-shapes span:nth-child(3){color:#ffcd42;left:18%;bottom:8%;font-size:40px;animation-delay:-2s}.count-shapes span:nth-child(4){color:#28c995;right:15%;bottom:14%;font-size:60px;animation-delay:-.8s}.count-weave{margin-top:27px;background:url('weave.svg') repeat-x center center;width:160px;height:30px;background-size:80px 32px;opacity:.6}
/* Reveal, progress and podium. */
.round-review{flex:1;display:flex;flex-direction:column;justify-content:center;min-height:0;padding:20px 1%}.round-review>.stage-kicker{margin-bottom:14px}.review-question{font-size:clamp(24px,2.5vw,37px);color:#fff;line-height:1.2;font-weight:850;margin:0 0 25px}.reveal-grid{display:grid;grid-template-columns:1.65fr 1fr;gap:22px}.answer-feedback{border:1px solid #ffffff35;background:#ffffff0d;border-radius:22px;overflow:hidden}.feedback-score{display:flex;align-items:center;gap:18px;padding:21px 25px;background:#00a968}.is-wrong .feedback-score{background:#c9365b}.feedback-score>span{font-size:40px;font-weight:950}.feedback-score h2{font-size:25px;line-height:1.2;font-weight:850;color:white}.feedback-score b{display:block;font-size:17px;font-weight:750;color:#d5ffeb;margin-top:6px}.is-wrong .feedback-score b{color:#ffe1ea}.explanation{padding:25px 28px;max-height:40vh;overflow:auto;line-height:1.6}.explanation strong{color:#ffdc52;font-size:19px;display:block;white-space:pre-wrap;overflow-wrap:anywhere}.explanation p{font-size:16px;color:#e1d4f2;line-height:1.7;margin-top:15px;white-space:pre-wrap}.personal-progress{font-size:13px;text-align:center;color:#cfb7e7;margin-top:23px}.vote-panel{border:1px solid #ffffff20;background:#ffffff08;border-radius:22px;padding:22px 24px;min-width:0}.vote-panel h3{color:#e9dcfc;font-size:17px}.vote-panel p{font-size:11px;color:#ceb9e0;line-height:1.4;margin-top:16px}.vote-chart{display:flex;align-items:flex-end;gap:12px;height:190px;padding-top:20px}.vote-col{flex:1;position:relative;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:6px;min-width:0}.vote-col>b{font-size:22px;line-height:1;color:white}.vote-bar{height:var(--height);max-height:130px;width:100%;background:var(--answer);border-radius:8px 8px 3px 3px;box-shadow:0 4px 0 var(--answer-deep);animation:bar-grow .6s both;transform-origin:bottom}.vote-col>span{font-size:12px;font-weight:800;color:var(--answer-tint);white-space:nowrap;margin-top:5px}.round-totals{display:flex;gap:15px;justify-content:center;padding:40px 0}.round-totals b{font-size:40px;color:#ffdc52;text-align:center}.round-totals small{display:block;font-size:11px;color:#d8bfec}.streak-card{text-align:center;background:#ffffff0b;border:1px solid #ffffff1c;border-radius:22px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:25px}.streak-card>span{font-size:54px}.streak-card>b{font-size:70px;color:#ffdc52;line-height:1}.streak-card p{font-size:13px;color:#d2bfe3;margin-top:12px}.streak-card strong{font-size:17px;margin-top:18px;color:#fff}.score-screen{flex:1;text-align:center;padding:18px 4% 10px;min-height:0}.score-screen>h1{color:white;font-size:clamp(29px,3.6vw,49px);font-weight:900;margin:13px 0 20px;line-height:1.1;letter-spacing:-1.5px}.podium{display:flex;justify-content:center;align-items:flex-end;gap:16px;margin:32px auto 15px;max-width:980px}.podium-slot{width:30%;max-width:260px;display:flex;flex-direction:column;align-items:center;animation:podium-rise .8s both;min-width:0}.podium-avatar{font-size:55px;position:relative;line-height:1.25;margin-bottom:8px;filter:drop-shadow(0 5px 0 #00000018)}.crown{position:absolute;left:50%;transform:translateX(-50%);color:#ffdc52;top:-32px;font-size:35px}.podium-name{font-size:20px;line-height:1.2;color:#fff;width:100%;overflow-wrap:anywhere;padding:0 4px;max-height:48px;overflow:hidden}.podium-score{font-size:22px;font-weight:900;color:#ffdc52;line-height:1.3;margin:6px 0 13px}.podium-score small{font-size:10px;font-weight:550;color:#d4bbec;display:block}.podium-block{width:100%;height:clamp(86px,15vh,164px);background:linear-gradient(#9a72dc,#6e41af);border-top:4px solid #c3a2fa;border-radius:18px 18px 2px 2px;box-shadow:10px 0 0 #00000016;display:flex;flex-direction:column;justify-content:center;align-items:center}.podium-block strong{font-size:56px;line-height:1;color:#e7cfff;font-weight:950}.podium-block span{font-size:9px;letter-spacing:2px;color:#e8d8fa;margin-top:8px;font-weight:800}.place-1 .podium-block{height:clamp(125px,21vh,227px);background:linear-gradient(#ffdc52,#efa51d);border-color:#fff1a2}.place-1 .podium-block strong{color:#7b4214}.place-1 .podium-block span{color:#815317}.place-3 .podium-block{height:clamp(66px,12vh,131px);background:linear-gradient(#b56954,#824244);border-color:#e6a981}.place-3 .podium-block strong{color:#ffd5bd}.rank-strip{display:grid;grid-template-columns:1fr 1fr;gap:8px;max-width:960px;margin:15px auto}.rank-strip>div{display:flex;justify-content:space-between;background:#ffffff10;border:1px solid #ffffff17;border-radius:9px;padding:8px 14px;color:#d5bee9;font-size:12px}.rank-strip>div b{color:white}.rank-strip>div strong{color:#ffdc52}.my-standing{margin:10px auto;background:#ffffff13;border:1px solid #ffffff20;padding:10px 20px;border-radius:30px;width:fit-content;font-size:13px}.final-stats{display:flex;justify-content:center;gap:32px;margin:15px 0 23px;color:#d7c4e8;font-size:12px}.final-stats b{color:#ffdc52;font-size:21px;margin-right:5px}.all-ranks{margin:22px auto 0;padding:16px;border:1px solid #ffffff25;border-radius:14px;max-width:1040px;text-align:left;background:#ffffff09}.all-ranks summary{cursor:pointer;color:#d9c3ed;font-size:13px}.all-ranks .ranking{max-height:350px;overflow:auto;margin-top:15px}.all-ranks .rank-row{background:#ffffff0a;color:white;border-color:#ffffff20}.all-ranks .rank-row small{color:#bfa8d5}.all-ranks .rank{background:#ffffff13;color:#ffdc52}.all-ranks .score{color:#ffdc52}.all-ranks .review{color:#e0cdef;border-color:#ffffff25}.all-ranks .review p{color:#cab4dc}.coop-celebration{display:grid;justify-items:center;gap:16px;padding:20px}.coop-ring{border-radius:50%;width:240px;height:240px;background:conic-gradient(#41e1ad var(--progress),#ffffff1a 0);padding:12px;display:grid;place-items:center}.coop-ring>div{width:100%;height:100%;border-radius:50%;background:#41206e;display:flex;flex-direction:column;align-items:center;justify-content:center}.coop-ring b{font-size:60px;color:#a5ffe1;font-weight:950;line-height:1.1}.coop-ring span{font-size:13px;color:#dec9ee}.coop-celebration h2{color:#fff;font-size:28px}.coop-celebration p{color:#d1b9e7;font-size:14px}
/* Result for solo uses the saved report component. */
body[data-view="result"]{background:#f5f0ff}body[data-view="result"] #content{padding:35px 6%!important;max-width:1280px!important}body[data-view="result"] .result-title h1{color:#4c297f}body[data-view="result"] .celebration{color:#9659e2}.pause-overlay{position:absolute;inset:126px 20px 88px;z-index:20;display:grid;place-items:center;background:#281047e8;backdrop-filter:blur(8px);border:1px solid #ffffff22;border-radius:26px;padding:25px;text-align:center}.pause-overlay>div>span{font-size:80px;line-height:1.1;color:#ffdc52;font-weight:900}.pause-overlay h2{font-size:32px;color:white;margin:20px 0 14px}.pause-overlay p{color:#d6bdec;font-size:15px;margin-bottom:24px}.pause-overlay .btn{min-width:220px}.confetti{position:fixed;inset:0;pointer-events:none;overflow:hidden;z-index:500}.confetti i{position:absolute;left:var(--x);top:-5%;width:var(--s);height:calc(var(--s)*1.5);background:#ffdc52;animation:confetti-fall 2.8s var(--d) ease-in both;border-radius:2px}.confetti i:nth-child(4n+1){background:#ff5479}.confetti i:nth-child(4n+2){background:#4dacff}.confetti i:nth-child(4n+3){background:#52e4b1}#toast{z-index:900;background:#20103c;color:white;border:1px solid #997ac2;border-radius:14px;font-size:13px;line-height:1.5}
@keyframes confetti-fall{0%{transform:translateY(-5vh) rotate(0deg);opacity:1}100%{transform:translateY(110vh) rotate(var(--r));opacity:0}}
@keyframes answer-in{from{opacity:0;transform:translateY(12px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes count-pop{0%{transform:scale(.72);opacity:.4}65%{transform:scale(1.05);opacity:1}100%{transform:scale(1);opacity:1}}
@keyframes float-shape{50%{translate:0 -15px;rotate:9deg}}
@keyframes bounce-dot{50%{transform:translateY(-5px);opacity:.45}}
@keyframes podium-rise{from{transform:translateY(28px);opacity:0}to{transform:translateY(0);opacity:1}}
@keyframes bar-grow{from{transform:scaleY(.05)}to{transform:scaleY(1)}}
@media(min-width:1000px){.is-host.phase-question,.is-host.phase-countdown,.is-host.phase-scoreboard,.is-host.phase-reveal,.is-solo.phase-question,.is-solo.phase-countdown,.is-solo.phase-reveal{height:100svh;min-height:650px}.is-host.phase-reveal .round-review{overflow:auto}.is-host.phase-scoreboard .score-screen{overflow:auto}.is-solo .round-review{max-width:1120px;width:100%;margin:auto}}
@media(min-width:1500px){.arena-stage{padding:24px 65px 18px}.stage-header{min-height:78px}.stage-info{min-height:57px}.stage-title>b{font-size:22px}.stage-stats{font-size:16px}.stage-chip{font-size:13px;padding:4px 12px}.stage-controls{min-height:70px}.arena-stage .btn{font-size:15px}.stage-auto{font-size:14px}.answer-shape{min-width:66px}.arena-stage .answer{padding:22px 35px}.question-top{min-height:68px}.clock b{font-size:37px}.clock{min-width:115px}.round-tag{font-size:20px}.question-type{font-size:12px}.answer-progress{font-size:15px}.feedback-score{padding:27px 32px}.feedback-score h2{font-size:34px}.explanation strong{font-size:25px}.explanation p{font-size:22px}.vote-panel h3{font-size:22px}.vote-chart{height:245px}.vote-bar{max-height:180px}.vote-panel p{font-size:14px}.podium-name{font-size:25px}.podium-avatar{font-size:70px}.podium{margin-top:48px}.lobby-roster .players{max-height:290px}}
@media(max-width:1100px){.arena-stage{padding:16px 26px 12px}.hero h2{font-size:39px}.hero-copy{max-width:315px}.hero-art{opacity:.55}.live-lobby{gap:25px;padding:26px 1%}.lobby-roster{padding-left:1%;padding-right:1%}.reveal-grid{gap:16px}.feedback-score{padding:18px}.feedback-score h2{font-size:22px}.explanation{padding:20px}.explanation p{font-size:15px}.count-shapes span{font-size:55px}.vote-panel{padding:18px}}
@media(max-width:760px){
 .welcome h1{font-size:29px}.hero h2{font-size:39px}.hero{min-height:345px}.hero-copy{max-width:340px}.hero-art{width:75%;right:-90px;opacity:.45}.hero p{max-width:300px}.hero-stat{gap:14px}.quiz-card:hover{transform:none}.stage-header{gap:12px;min-height:61px;padding-bottom:10px}.stage-brand{min-width:85px}.stage-brand b{font-size:33px}.stage-brand small{font-size:5px;letter-spacing:1.5px}.stage-title>b{font-size:12px;line-height:1.3;max-height:34px;overflow:hidden}.stage-title>small{font-size:8px;letter-spacing:.5px;margin-top:4px}.stage-tools{gap:4px}.stage-tools button{width:30px;height:31px;border-radius:8px;font-size:17px}.stage-tools button[data-action="arenafull"]{display:none}.arena-stage{padding:12px 16px 12px;min-height:100svh}.stage-info{flex-wrap:wrap;gap:8px;padding:10px 0}.stage-badges{gap:5px}.stage-chip{font-size:9px;padding:3px 7px}.stage-stats{font-size:12px;gap:14px;justify-content:space-between;width:100%}.question-top{min-height:53px;gap:10px}.round-tag{font-size:12px;white-space:nowrap}.round-tag i{font-size:10px}.question-type{font-size:8px;letter-spacing:.6px;max-width:105px;text-align:center}.clock{min-width:62px;padding:2px 8px;border-radius:12px;gap:3px}.clock b{font-size:24px}.clock small{font-size:8px}.clock-track{margin:6px 0 8px;height:4px}.big-question{font-size:23px;letter-spacing:-.35px;padding:14px 1%;min-height:120px;margin:0 0 15px;line-height:1.3;flex:1}.math-question{font-size:58px;letter-spacing:-1.5px;min-height:120px}.long-question{font-size:20px;line-height:1.35}.answer-grid{gap:12px;height:auto;grid-auto-rows:minmax(119px,auto)}.answer-grid.five-options{height:auto;grid-auto-rows:minmax(107px,auto)}.arena-stage .answer{font-size:20px;flex-direction:column;gap:9px;justify-content:center;text-align:center;padding:15px 12px;border-radius:15px;min-height:115px;box-shadow:0 5px 0 var(--answer-deep)}.answer-copy{padding:0;flex:0;line-height:1.25;width:100%}.answer-shape{font-size:31px;min-width:30px}.answer-corner{font-size:10px;right:9px;top:8px}.is-math .answer{font-size:28px;min-height:126px}.five-options .answer:last-child{flex-direction:row;gap:16px;min-height:85px}.five-options .answer:last-child .answer-copy{width:auto}.answer-tools{padding-top:20px;gap:10px;flex-wrap:wrap;min-height:65px}.input-hint{font-size:9px}.arena-stage .power{font-size:11px;padding:8px 11px}.stage-controls{flex-wrap:wrap;padding:16px 0 4px;gap:10px}.stage-auto{font-size:10px;gap:7px;min-height:23px}.stage-controls>.actions{margin-left:auto}.arena-stage .btn{font-size:11px;min-height:35px;padding:8px 12px;border-radius:10px}.live-connection{font-size:9px!important;margin-top:13px!important}.number-form{flex-direction:column;gap:12px;margin:0 0 20px}.number-form input{min-height:75px;font-size:29px}.number-form button{min-height:50px!important}.submitted-state{margin-top:20px;gap:10px;padding:13px}.submitted-state>span{width:29px;height:29px;font-size:18px;flex-shrink:0}.submitted-state b{font-size:12px}.submitted-state p{font-size:10px;line-height:1.5}.submitted-state .waiting-dots{display:none}.answer-progress{font-size:10px;gap:12px;flex-wrap:wrap;margin-top:21px}.answer-progress>div{flex-basis:100%;max-width:none}.live-lobby{grid-template-columns:1fr;padding:22px 0 14px;gap:25px;flex:0}.lobby-intro{text-align:center}.lobby-intro .stage-kicker{font-size:9px}.lobby-intro h1{font-size:35px;letter-spacing:-1px;margin:11px 0}.lobby-intro p{font-size:12px;max-width:none}.pin-card{padding:22px;border-radius:23px}.room-code{font-size:55px;letter-spacing:5px}.join-address{font-size:11px}.pin-card .btn{min-width:210px;min-height:42px;font-size:13px}.lobby-roster{padding:20px 0;flex:1}.roster-title h2{font-size:16px}.roster-title>span{font-size:10px}.arena-stage .players{gap:8px;padding:16px 0;max-height:230px}.arena-stage .player{padding:9px 12px;font-size:12px;border-radius:12px}.arena-stage .player span{font-size:20px}.start-game{min-width:170px;min-height:44px!important;font-size:14px!important;width:100%}.countdown-screen{min-height:450px;padding:40px 0;flex:1}.countdown-screen h1{font-size:29px;letter-spacing:-.6px}.countdown-screen .stage-kicker{font-size:10px;letter-spacing:1.2px}.countdown-screen>p:last-of-type{font-size:12px;max-width:250px;line-height:1.6}.countdown-number{font-size:170px;letter-spacing:-7px;min-width:190px;line-height:1.3}.count-shapes{inset:3%}.count-shapes span{font-size:40px!important;opacity:.5}.count-shapes span:nth-child(1){left:2%;top:7%}.count-shapes span:nth-child(2){right:2%;top:13%}.count-shapes span:nth-child(3){left:7%;bottom:10%}.count-shapes span:nth-child(4){right:6%;bottom:10%}.round-review{padding:22px 0;flex:1;justify-content:flex-start}.round-review .stage-kicker{font-size:9px;letter-spacing:1.2px}.review-question{font-size:23px;line-height:1.35;margin-bottom:20px}.reveal-grid{grid-template-columns:1fr;gap:16px}.feedback-score{gap:13px;padding:20px}.feedback-score>span{font-size:34px}.feedback-score h2{font-size:23px}.feedback-score b{font-size:17px}.explanation{padding:21px;max-height:none}.explanation strong{font-size:17px}.explanation p{font-size:14px;line-height:1.7;margin-top:14px}.answer-feedback{border-radius:20px}.streak-card{flex-direction:row;flex-wrap:wrap;gap:10px;padding:16px}.streak-card>span{font-size:24px}.streak-card>b{font-size:32px}.streak-card p{font-size:11px;margin:0}.streak-card strong{font-size:13px;flex-basis:100%;margin:0}.personal-progress{font-size:12px}.score-screen{padding:27px 0 12px}.score-screen>.stage-kicker{font-size:9px;letter-spacing:1.4px}.score-screen>h1{font-size:31px;letter-spacing:-1px;line-height:1.2;margin:14px 0 24px}.podium{gap:9px;max-width:none;margin-top:55px}.podium-slot{width:32%}.podium-avatar{font-size:39px;margin-bottom:8px}.crown{font-size:27px;top:-22px}.podium-name{font-size:13px;line-height:1.25;max-height:48px;min-height:33px;display:flex;align-items:center;justify-content:center}.podium-score{font-size:16px;margin:5px 0 10px}.podium-score small{font-size:8px}.podium-block{height:107px;border-radius:12px 12px 2px 2px;box-shadow:5px 0 0 #00000012}.place-1 .podium-block{height:150px}.place-3 .podium-block{height:81px}.podium-block strong{font-size:42px}.podium-block span{font-size:6px;letter-spacing:.8px;margin-top:7px}.rank-strip{grid-template-columns:1fr;gap:6px;margin-top:20px}.rank-strip>div{font-size:11px;padding:8px 12px}.my-standing{font-size:11px;border-radius:14px;margin-top:15px}.final-stats{gap:15px;flex-wrap:wrap;font-size:10px;margin:17px 0}.final-stats b{display:block;font-size:20px}.coop-ring{width:205px;height:205px}.coop-celebration h2{font-size:24px}.coop-celebration p{font-size:12px}.pause-overlay{inset:128px 10px 90px;border-radius:20px;padding:20px}.pause-overlay h2{font-size:25px}.pause-overlay p{font-size:13px}.pause-overlay>div>span{font-size:66px}.settings-primary{gap:8px}.switch-card{padding:12px;gap:12px}.switch-card b{font-size:13px}.switch-card small{font-size:11px}.modal-head h2{font-size:25px}.setup-summary{padding:12px;gap:10px}.setup-summary b{font-size:13px}.setup-summary small{font-size:10px}.setup-summary>span{width:35px;height:35px;font-size:22px;flex-shrink:0}.arena-settings .form-grid{gap:13px}.arena-settings label{font-size:12px}.settings-extra .check{font-size:12px}.arena-settings .actions{padding-top:13px}body[data-view="result"] #content{padding:30px 18px!important}.result-title h1{font-size:32px}.is-host .vote-chart{height:160px}
}
@media(max-width:380px){.arena-stage{padding:10px 12px}.stage-title>b{font-size:11px}.stage-tools button{width:28px}.stage-brand{min-width:75px}.stage-brand b{font-size:30px}.stage-chip{font-size:8px}.stage-stats{font-size:11px}.arena-stage .answer{font-size:18px}.room-code{font-size:47px;letter-spacing:4px}.stage-header{gap:8px}.big-question{font-size:21px}.math-question{font-size:53px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.confetti{display:none}}
/* Dark foreground on amber keeps longer answer text legible. */
.arena-stage .answer.ans-2,.arena-stage .answer.ans-2 .answer-shape,.arena-stage .answer.ans-2 .answer-corner{color:#4c2d06;text-shadow:none}
/* Entry animation only once per new round, never on every participant poll/tap. */
.arena-stage .answer{animation:none}
.arena-stage .round-enter .answer{animation:answer-in .35s both}
.arena-stage .round-enter .answer:nth-child(2){animation-delay:.055s}
.arena-stage .round-enter .answer:nth-child(3){animation-delay:.11s}
.arena-stage .round-enter .answer:nth-child(4){animation-delay:.165s}
@media(prefers-reduced-motion:reduce){.arena-stage .round-enter .answer{animation:none!important}}
