:root{--bg:#172689;--card:#204bbd;--line:#879bff;--accent:#80ffce;--muted:#dbe8ff}
body{background:linear-gradient(120deg,#172795c9,#382fa0c9),url('./art/vivid/arena.webp') center/cover fixed;color:#fff}
.topbar{background:#10297ced;border-bottom:1px solid #50ecff66}.brand{color:#fff}.brand span{color:#67ffe5}.brand b{color:#ffe379}
.display,.display.live-question{background-image:linear-gradient(#14268320,#12248445),url('./art/vivid/arena.webp');background-color:#182ba6}
.display .topbar{background:#10328dbb}.participant .topbar{background:#12379ade}.participant{background-image:linear-gradient(#1a278391,#242292a8),url('./art/vivid/arena.webp')}
.panel,.card{background:linear-gradient(135deg,#2c66d8f7,#452dc7f2);border-color:#a4baff88;box-shadow:0 12px 30px #1113723b}.card:nth-child(3n+2){background:linear-gradient(135deg,#8130d9f5,#c231aaf0)}.card:nth-child(3n+3){background:linear-gradient(135deg,#075cbff5,#0d819ff2)}
.card:before{height:5px;background:linear-gradient(90deg,#71fff0,#ffe366,#ff61b2)}.card .card-prize{width:95px;height:95px;float:right;margin:-8px -12px 4px 0}.card h2{padding-right:60px}.card p{color:#edf4ff}.card .meta{color:#e5edff}.card .actions{clear:both}
.teacher .cards{grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr))}.library-intro>div{flex:1}
.tag.READY{color:#fff0a6;background:#6c390067;border:1px solid #ffe45a66}.tag.FINISHED{color:#beffe6;background:#003f6e99}.tag.LIVE{color:#d2ffe9;background:#00584699}.eyebrow{color:#9dffe4}
button,.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;background:linear-gradient(120deg,#ffdc53,#fff19a);color:#172661;box-shadow:0 4px 0 #bc7418,0 8px 24px #ffe64925;font-weight:800}
button.quiet,.button.quiet,.quiet{background:linear-gradient(130deg,#2c53c9,#6741d9)!important;border-color:#b4c6ff66;color:#fff!important;box-shadow:0 3px 0 #182c8388!important}.danger{background:linear-gradient(125deg,#ff518c,#ff8262)!important;color:#fff!important}
.ui-icon{display:inline-block;width:38px;height:38px;object-fit:contain;flex-shrink:0;vertical-align:middle;margin:-8px -4px}.small .ui-icon{width:29px;height:29px;margin:-6px -3px}.top-actions .ui-icon{width:32px;height:32px}.sound-start .ui-icon{width:68px;height:68px;margin:-15px -8px}
.hero-icon{width:140px;height:140px;object-fit:contain;flex-shrink:0}.library-intro{display:flex;align-items:center;gap:12px}.library-intro h1{margin-bottom:10px}.library-intro p{max-width:800px;color:#edf4ff}.library-intro .eyebrow{color:#a6ffe9}.library-intro{padding:24px;border:1px solid #a8cfff70;border-radius:26px;background:linear-gradient(110deg,#1978d9a6,#833dddba)}
.stat{background:linear-gradient(130deg,#1d65c5,#452ab4);border-color:#91bdff80}.stat:nth-child(2){background:linear-gradient(130deg,#ba388e,#7932bd)}.stat:nth-child(3){background:linear-gradient(130deg,#07879d,#0d58aa)}.stat strong{color:#fff}.stat span,.muted,.note{color:#dfebff}.status-banner{background:linear-gradient(110deg,#115d9888,#394a9d88);border-color:#6cffe890;color:#d6fff1}
.question-editor,.savebar{background:#1b3f9eea;border-color:#9cbdff80}.aside .class-checks .check{background:#2055ab}.aside .roster label{border-color:#9ec5ff2b}.pairing{background:linear-gradient(130deg,#4059d0,#6635c4)}.pairing .steps{background:#11267188}.host-main{background:linear-gradient(140deg,#2666ccf5,#4934bff5)}
.orb{background:none;border:0;box-shadow:none;width:170px;height:170px}.orb img{width:170px;height:170px}.participant .orb,.participant .orb img{width:135px;height:135px}.hero-art{width:225px;height:225px}.game-hero{background:linear-gradient(120deg,#1266d3,#6540d7,#bd36a6);border-color:#9ad1ff99}.game-hero:before{display:none}
.tile{border:2px solid #fff9;background:linear-gradient(130deg,color-mix(in srgb,var(--tile),white 22%),var(--tile));box-shadow:0 6px 0 color-mix(in srgb,var(--tile),black 24%),0 8px 26px #1825833b}.display .tile{background:linear-gradient(120deg,color-mix(in srgb,var(--tile),black 10%),var(--tile));border-color:#fff9}.tile .answer-text{font-weight:850;text-shadow:0 2px 3px #16306740}.tile .shape img{filter:drop-shadow(0 7px 6px #05094338)}.tile .number{background:#101a604a;border-color:#ffffff66}
.display .scene .question-text{color:#fff;text-shadow:0 3px 5px #17257c,0 0 12px #16247199}.scene-meta{color:#e6f4ff}.timer{color:#a8ffdf}.timer-bar{background:#8cd8ff44}.timer-bar div{background:linear-gradient(90deg,#66fff0,#fff381,#ff72b4)}
.participant .tile .shape{width:155px;height:145px}.participant .tile:disabled{opacity:.75}.participant .tile.selected{opacity:1}.participant .tiles{gap:15px}.participant .tile{border-radius:28px}.participant #answer-hint{color:#fff}.answer-received{background:linear-gradient(135deg,#08638bbd,#3862d5d9);border-color:#8fffd299;color:#aeffdc}.answer-received img{width:170px;height:170px}.participant .answer-received{padding:24px}
.score-row{background:linear-gradient(110deg,#345ad8,#9536c8);border-color:#aeefff99}.score-row.top{background:linear-gradient(110deg,#a83bbb,#225ace);border-color:#ffe588aa}.score-row .rank{color:#ffeb8c}.rank-art{width:54px;height:54px}.podium-card{background:linear-gradient(135deg,#1b89bb,#5b3bd8);border-color:#bfe8ff}.podium-card.first{background:linear-gradient(140deg,#dd9229,#c747b1);border-color:#ffefab}.podium-card .medal,.podium-card .medal img{height:140px;width:140px;margin:auto}.podium-card.first .medal img{width:180px;height:180px}.podium-card .medal{display:grid;place-items:center}.podium-card strong{color:#fff0aa}
.display .result-reveal .tile.correct{overflow:hidden;background:linear-gradient(110deg,color-mix(in srgb,var(--tile),black 5%),var(--tile));box-shadow:0 0 55px #ffef75bb;animation:winnerArrive .85s cubic-bezier(.16,1,.3,1) both,winnerGlow 1.6s .85s ease-in-out infinite}.display .result-reveal .tile.correct:before{display:none}.winner-splash{position:absolute;width:115%;height:150%;max-width:none;left:-7.5%;top:-25%;object-fit:fill;pointer-events:none;z-index:-1;opacity:.62;animation:prizeShimmer 2s ease-in-out infinite}.tile.correct .answer-text,.tile.correct .shape{z-index:1}
.next-splash img{filter:drop-shadow(0 7px 12px #79179c77)}.next-splash strong{color:#fff8b1;text-shadow:0 4px 0 #8c318c,0 0 12px #ffe06a}.next-splash span{color:#fff6bb;text-shadow:0 2px 4px #233a8e}
.confetti-piece{width:44px;height:44px;background:none;border-radius:0;object-fit:contain}.connection.online{color:#b4ffe1}.sound-start{background:#16388bbb}.sound-start button{background:linear-gradient(120deg,#ffdc57,#fff3ab);color:#153078}.table-wrap{background:#143d9988;border-color:#8fbaff88}th{background:#18348e;color:#d4edff}td{border-color:#9ebdff33}
@keyframes prizeShimmer{50%{opacity:.52;transform:scale(1.02)}}
@media(max-width:650px){.library-intro{padding:18px;gap:6px}.library-intro h1{font-size:30px}.hero-icon{width:90px;height:100px}.card .card-prize{width:75px;height:75px}.card h2{padding-right:40px}.ui-icon{width:32px;height:32px}.participant .tile .shape{width:140px;height:132px}.podium-card .medal,.podium-card .medal img{width:100px;height:100px}.podium-card.first .medal img{width:125px;height:125px}.rank-art{width:42px;height:42px}}

@media(max-height:760px){.participant .tiles.count-5 .shape,.participant .tiles.count-6 .shape{height:clamp(60px,calc((100dvh - 355px)/3),132px)}}

.display .result-reveal .tile.correct .winner-splash{inset:0;width:100%;height:100%;object-fit:contain;opacity:.4}.display .result-reveal .tile.correct .answer-text{text-shadow:0 3px 4px #031b59,0 0 12px #062651}

.participant .tile{animation:none}.participant{background-attachment:scroll}
