:root{--bg:#161135;--card:#241b48;--line:#554476;--accent:#71ffc6;--muted:#c6bfdf}
body{background:radial-gradient(ellipse at 4% 0,#613ab044,transparent 58%),radial-gradient(ellipse at 100% 30%,#04b6cb29,transparent 48%),#161135}
.topbar{background:#14102ee8;border-bottom:1px solid #9380e231}.brand b{color:#ffe478;letter-spacing:2px;font-size:14px}.brand span{color:#78ffd0}.brand{letter-spacing:-1.4px;font-weight:900}
.panel,.card{background:linear-gradient(135deg,#312251dd,#211c42ed);border-color:#77619566;box-shadow:0 12px 35px #08051c2b}
button,.button{background:linear-gradient(135deg,#72ffd2,#43ddf4);box-shadow:0 4px 0 #0c968e,0 9px 22px #19eeb522;transition:transform .18s,box-shadow .18s,opacity .18s}
button:hover,.button:hover{transform:translateY(-2px)}button:active{transform:translateY(2px);box-shadow:0 1px 0 #0c968e}.quiet{box-shadow:0 3px 0 #08051c44!important;background:#342954!important}.danger{background:linear-gradient(135deg,#fa4d91,#ed4468)!important;box-shadow:0 4px 0 #9a2756}
button:disabled{box-shadow:none;transform:none}.eyebrow{color:#83ffd7;letter-spacing:2px}.tag{background:#ffffff14;color:#ebe5ff}.tag.READY{color:#ffdf85;background:#ffb22120}.tag.LIVE{color:#8effd6;background:#00e3aa21}.stat{border:1px solid #645586;background:#19142f}.stat strong{color:#fff}.status-banner{border:1px solid #65ffc942;background:linear-gradient(120deg,#30dfa31a,#3487fc13)}
.game-hero{position:relative;overflow:hidden;min-height:245px;padding:32px 38px;margin-bottom:28px;border-radius:28px;background:radial-gradient(ellipse at 85% 30%,#1c9bea77,transparent 50%),linear-gradient(125deg,#553897,#20296b);border:1px solid #9b80e790;display:flex;align-items:center;gap:30px}
.game-hero:before{content:'';position:absolute;width:320px;height:320px;right:50px;top:-65px;border:1px solid #6df5de66;border-radius:50%;box-shadow:0 0 0 48px #9c64ff13,0 0 0 98px #9c64ff0b;animation:haloBreath 7s ease-in-out infinite;pointer-events:none}
.game-hero h1{font-size:clamp(30px,3.7vw,52px);max-width:730px;margin-bottom:14px}.game-hero p{color:#e6ddff;max-width:640px}.hero-copy{position:relative;z-index:1;flex:1}.hero-art{position:relative;width:180px;height:185px;object-fit:contain;filter:drop-shadow(0 16px 24px #07031677);animation:floatPrize 5s ease-in-out infinite}.hero-chips{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}.hero-chips span{display:flex;align-items:center;gap:7px;border:1px solid #b7adff55;background:#fff1;padding:7px 10px;border-radius:10px;font-size:12px;font-weight:750}.hero-chips img{width:25px;height:25px;object-fit:contain}
.card{position:relative;animation:sceneRise .5s both;overflow:hidden}.card:before{content:'';position:absolute;top:0;left:0;right:0;height:4px;background:linear-gradient(90deg,#fc539b,#ad75ff,#57efd8)}.card .card-prize{width:62px;height:62px;object-fit:contain;float:right;margin-top:8px;filter:drop-shadow(0 5px 10px #0005)}.card h2{clear:left;padding-right:40px}.card:hover{border-color:#9a82da}
.orb{background:radial-gradient(circle,#ab7cfb36,#58419914);border:1px solid #b899ff54;transform:none;border-radius:32px;box-shadow:0 0 60px #8240e320;width:128px;height:128px;animation:floatPrize 5s ease-in-out infinite}.orb img{width:105px;height:105px;object-fit:contain;filter:drop-shadow(0 8px 12px #0005)}
.pairing{position:relative;background:linear-gradient(140deg,#362955f2,#161840f2);border-color:#967bd590}.pairing .code{background:linear-gradient(135deg,#fff,#8efbdc);background-clip:text;-webkit-text-fill-color:transparent;letter-spacing:10px;text-shadow:0 0 45px #63ead43d}.pairing .steps{background:#100d2cc9;border:1px solid #75609044}.pairing .orb{width:150px;height:150px}.pairing .orb img{width:126px;height:126px}
.display{background-image:linear-gradient(#11112dbf,#121032d9),url('./art/vivid/arena.webp');background-size:cover;background-position:center;background-attachment:fixed}.display .topbar{background:#11122acc}.display.live-question{background-image:linear-gradient(#121632dd,#171239ef),url('./art/vivid/arena.webp')}.display .scene{animation:sceneRise .42s ease-out}.scene .question-text{text-shadow:0 4px 18px #03051988}
.tile{border-radius:25px;border:2px solid #ffffff2c;background:linear-gradient(135deg,color-mix(in srgb,var(--tile),white 12%),var(--tile));box-shadow:0 7px 0 color-mix(in srgb,var(--tile),black 38%),0 12px 22px #08072155;animation:tileEnter .5s cubic-bezier(.2,.9,.2,1.1) both}.tile:nth-child(2){animation-delay:.06s}.tile:nth-child(3){animation-delay:.12s}.tile:nth-child(4){animation-delay:.18s}.tile:nth-child(5){animation-delay:.24s}.tile:nth-child(6){animation-delay:.3s}
.tile .shape{width:clamp(70px,7vw,125px);height:clamp(70px,7vw,125px);display:grid;place-items:center}.tile .shape img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 8px 8px #0004)}.tile .number{background:#03041927;border:1px solid #ffffff29;border-radius:50%;width:28px;height:28px;display:grid;place-items:center;opacity:1}.tile.correct{border-color:#b7ffbc;box-shadow:0 0 0 4px #acff9844,0 0 55px #7fff8955;animation:correctPop .6s both}.tile.incorrect{filter:saturate(.3)}.tile.selected{animation:correctPop .3s both}.symbol img{width:32px;height:32px;object-fit:contain}
.timer{color:#8affce;display:inline-flex;align-items:center;gap:8px;justify-content:center}.timer.locked{color:#ffe094;text-shadow:0 0 25px #ffaa4877}.timer.urgent{color:#ff789a;animation:urgentPulse 1s ease-in-out infinite}.timer.timer-pop{animation:timerBeat .25s ease-out}.timer-bar{height:9px;box-shadow:0 0 25px #63ffd121}.timer-bar div{background:linear-gradient(90deg,#6ef7dc,#aefe87,#fff39b)}
.score-row{background:linear-gradient(110deg,#403166f2,#1a3653eb);border-color:#9b83d966;box-shadow:0 7px 0 #09092122}.score-row.top{background:linear-gradient(110deg,#664887ee,#254971ee);border-color:#efc68477}.score-row .rank{color:#ffe38a}.rank-art{width:38px;height:38px;object-fit:contain}.points{color:#fff}.podium-card{background:linear-gradient(150deg,#473278f0,#1d365bf0);box-shadow:0 10px 0 #08091966,0 15px 35px #05021788;border-color:#9c84d3}.podium-card.first{background:linear-gradient(150deg,#ae753aee,#574375ee);border-color:#ffdb7e}.podium-card .medal{height:86px;display:grid;place-items:center}.podium-card .medal img{width:86px;height:86px;object-fit:contain;animation:floatPrize 5s ease-in-out infinite}.podium-card.first .medal img{width:110px;height:110px}.podium-card.first h2{margin-top:20px}.answer-received{display:flex;flex-direction:column;align-items:center;gap:20px;background:linear-gradient(140deg,#193e43,#252146);border-color:#85ffc566;animation:correctPop .55s both}.answer-received img{width:105px;height:105px;object-fit:contain}.result-icon{width:68px;height:68px;object-fit:contain;vertical-align:middle;margin-right:10px}
.participant .topbar{background:#171230}.participant .brand b{color:#ffe680}.participant .scene{animation:sceneRise .3s both}.participant .tile .shape{width:clamp(80px,20vw,118px);height:clamp(80px,20vw,118px)}.participant .tile:disabled{opacity:.62}.participant .tile.selected{opacity:1}.participant .orb{width:108px;height:108px}.participant .orb img{width:85px;height:85px}.participant .answer-received{margin-top:35px;padding:32px;max-height:none}.participant #answer-hint{font-weight:650;color:#e2d5ff}.participant .tile .number{font-size:18px}
#celebration{position:fixed;inset:0;pointer-events:none;overflow:hidden;z-index:15}.confetti-piece{position:absolute;top:-25px;width:9px;height:16px;border-radius:3px;animation:confettiFall var(--fall) cubic-bezier(.2,.6,.4,1) var(--delay) both;will-change:transform}.music-controls{display:flex;align-items:center;gap:10px}.music-controls[hidden]{display:none!important}.music-controls input[type=range]{accent-color:#7af8d4;width:75px;cursor:pointer}.music-controls button.active{border-color:#6cfcc5;color:#a3ffe5}
.question-editor{background:#1a1535;border-color:#6b568b}.savebar{background:#1a1432;border-color:#7d639c;padding:16px;border-radius:15px;box-shadow:0 -10px 20px #110d2633}.aside .roster label:hover{background:#fff05}.hero-breadcrumb{color:#dccff5;font-size:13px;margin-bottom:15px}.hero-breadcrumb b{color:#87ffd6}
@keyframes floatPrize{0%,100%{transform:translateY(0) rotate(-3deg)}50%{transform:translateY(-10px) rotate(3deg)}}@keyframes haloBreath{50%{transform:scale(1.1);opacity:.5}}@keyframes sceneRise{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}@keyframes tileEnter{from{opacity:0;transform:translateY(20px) scale(.93)}to{opacity:1;transform:none}}@keyframes correctPop{0%{transform:scale(.91)}65%{transform:scale(1.04)}100%{transform:scale(1)}}@keyframes urgentPulse{50%{filter:brightness(1.5);transform:scale(1.04)}}@keyframes timerBeat{0%{transform:scale(1.18)}100%{transform:scale(1)}}@keyframes confettiFall{to{transform:translate3d(var(--drift),110dvh,0) rotate(var(--spin));opacity:.1}}
@media(max-width:900px){.game-hero{padding:26px;gap:16px}.hero-art{width:120px;height:140px}.top-actions{gap:10px}.music-controls input[type=range]{width:55px}}
@media(max-width:650px){.game-hero{padding:24px;min-height:220px}.hero-art{position:absolute;right:14px;top:24px;width:88px;height:100px;opacity:.75}.game-hero h1{padding-right:70px;font-size:29px}.game-hero p{max-width:90%;font-size:14px}.hero-chips{gap:6px}.hero-chips span{padding:6px;font-size:10px}.game-hero .actions{margin-top:15px}.brand b{font-size:10px!important}.display .music-controls input[type=range]{display:none}.display .music-controls button{font-size:10px;padding:7px}.display .connection{display:none}.topbar{padding:0 14px}.card .card-prize{width:50px;height:50px}.pairing .code{letter-spacing:6px}.tile .shape{width:66px;height:66px}.tile .answer-text{font-size:20px}.podium-card .medal img{width:60px;height:60px}.podium-card.first .medal img{width:76px;height:76px}.podium-card .medal{height:70px}.participant .top-actions{gap:4px}}
.phone-shape{width:100%;height:100%;fill:#fff;filter:drop-shadow(0 5px 0 #0002);padding:5px}.participant .tile .shape{width:clamp(65px,19vw,95px);height:clamp(65px,19vw,95px)}.pool-source{font-size:12px;color:#8effd5}.sound-phase{font-size:11px;color:#c7b9e6;max-width:125px}@media(max-width:900px){.sound-phase{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}#celebration{display:none}}

.studio-summary{display:flex;flex-wrap:wrap;gap:12px 24px;padding:16px 20px;margin:0 0 22px;border:1px solid #a083d455;border-radius:16px;background:#21183f;color:#ded4f0;font-size:13px}.studio-summary b{color:#8dffd8}.savebar{flex-wrap:wrap}.savebar #draft-status{flex:1 1 100%;font-size:12px;color:#d8c8ef}.studio-validation{border:1px solid #ffae78;padding:18px 24px;margin-bottom:20px;border-radius:15px;background:#492936;color:#fff0db}.studio-validation[hidden]{display:none}.studio-validation li{margin:5px 0}.recovery-banner{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:18px;margin-bottom:24px;border:1px solid #8df3c666;border-radius:20px;padding:22px 26px;background:linear-gradient(120deg,#173d40,#302349)}.recovery-banner p{margin:7px 0;color:#e4dcf6}.recovery-banner small{color:#b5d6ce}.report-actions{margin:20px 0}.question-head .actions{flex-wrap:wrap}@media(max-width:650px){.recovery-banner{padding:18px}.question-head{align-items:flex-start;gap:12px;flex-wrap:wrap}.studio-summary{gap:10px;font-size:12px}}

/* Conference layout: names wrap only when necessary, independent of podium count. */
.podium{width:min(100%,1050px);display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));align-items:end;gap:22px}.podium-card{width:auto;min-width:0;padding:30px 24px;overflow-wrap:break-word;word-break:normal}.podium-card h2{font-size:clamp(20px,2.3vw,34px);line-height:1.25;white-space:normal;overflow-wrap:break-word}.podium:has(.podium-card:only-child){max-width:560px}.score-row{grid-template-columns:60px minmax(0,1fr) auto}.score-row .name{min-width:0;white-space:normal;overflow-wrap:break-word;line-height:1.3}.score-row .points{white-space:nowrap}.student-playing .brand{pointer-events:none;cursor:default}.portal-return{display:inline-flex;margin:14px 0}.finish-home{align-self:center;margin:20px 0}.participant .tile .shape img{width:100%;height:100%;object-fit:contain}.next-splash{position:relative;width:210px;height:210px;align-self:center;flex-shrink:0;margin:5px auto 35px}.next-splash img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.next-splash strong{position:absolute;inset:0;display:grid;place-items:center;font-size:76px;font-weight:950;color:#fff6a0;text-shadow:0 5px 0 #8e3b05,0 0 20px #f9cb39}.next-splash span{position:absolute;left:-50px;right:-50px;bottom:-30px;font-weight:850;font-size:20px;color:#90ffe5}.number-pop{animation:countPop .35s ease-out}.display .next-splash{width:190px;height:190px}.display .scene:has(.next-splash){gap:12px}.sound-start{position:fixed;inset:0;background:#100b2ddd;z-index:25;display:grid;place-items:center;padding:24px}.sound-start button{font-size:24px;padding:28px;border-radius:24px}.sound-start[hidden]{display:none}.participant .scene:has(.finish-home){padding-bottom:25px}
@keyframes countPop{from{transform:scale(1.35)}to{transform:scale(1)}}
@media(max-width:650px){.podium{grid-template-columns:1fr;gap:14px;width:100%;max-width:500px}.podium-card{padding:20px;display:grid;grid-template-columns:70px minmax(0,1fr);gap:10px;align-items:center;text-align:left}.podium-card.first,.podium-card.second{padding-top:20px}.podium-card .medal{grid-row:span 3;height:70px;margin:0}.podium-card h2,.podium-card.first h2{margin:0;font-size:22px}.podium-card p{margin:0}.score-row{grid-template-columns:28px minmax(0,1fr) auto;gap:10px;padding:14px 10px}.score-row .rank-art{width:26px;height:26px}.score-row .name{font-size:17px}.score-row .points{font-size:20px}.next-splash{width:210px;height:210px}}

.tile{color:var(--ink,#fff)}.participant .tile:disabled{opacity:.85}.participant.student-playing .brand{pointer-events:none}
