.stage #trk.marble-live{position:relative;flex:1;display:block;min-height:0;overflow:hidden;border-radius:18px;background:#20333e}
.marble-world{position:absolute;inset:0;overflow:hidden;border-radius:18px;background:#20333e;color:#edf4f4;isolation:isolate}
.marble-world-canvas{position:absolute;inset:0;display:block;width:100%;height:100%;outline:none}
.marble-world-title{position:absolute;left:24px;top:22px;display:flex;flex-direction:column;gap:6px;pointer-events:none;text-shadow:0 2px 9px #0009}
.marble-world-title small{font-size:10px;letter-spacing:2.2px;font-weight:800;color:#a8c7ce}.marble-world-title strong{font-size:27px;font-weight:900;letter-spacing:-1px}.marble-world-title span{font-size:12px;color:#b4c7ca}
.marble-world-controls{position:absolute;left:24px;bottom:25px;display:flex;gap:4px;padding:4px;background:#fff9;border:1px solid #fff9;border-radius:999px;backdrop-filter:blur(14px)}
.marble-world-controls button{padding:8px 12px;border-radius:999px;font-size:11px;font-weight:800;color:#6e6077}.marble-world-controls button.on{color:#fff;background:#8d789f;box-shadow:0 3px 12px #937b9a33}.marble-world-controls button:hover{background:#af94b940;color:#53455c}.marble-world-controls button.on:hover{background:#8d789f;color:white}
.marble-world-status{position:absolute;left:24px;top:117px;border:1px solid #ffffffa0;border-radius:99px;background:#fffa;backdrop-filter:blur(8px);padding:7px 12px;font-size:11px;color:#7f6b83;font-variant-numeric:tabular-nums;font-weight:800}
.marble-world-ranking{color:#283e49;position:absolute;right:18px;top:22px;width:164px;padding:15px;border:1px solid #fffc;background:#f3f5f1ed;border-radius:15px;backdrop-filter:blur(14px);box-shadow:0 12px 38px #816d8314}
.marble-world-ranking>small{display:block;font-size:9px;font-weight:900;letter-spacing:2px;color:#56727d;margin-bottom:10px}.marble-world-ranking>div{display:flex;align-items:center;gap:6px;height:28px;font-size:11px;border-bottom:1px solid #8c78900b}.marble-world-ranking b{font-weight:700;color:#a594a7;font-size:9px;width:13px}.marble-world-ranking i{display:block;width:9px;height:9px;border-radius:50%;box-shadow:inset 0 1px 2px #fffa}.marble-world-ranking span{font-weight:800;flex:1}.marble-world-ranking em{font-style:normal;font-size:9px;color:#5a6d79;font-variant-numeric:tabular-nums}
.marble-world-progress{position:absolute;left:24px;right:24px;bottom:13px;background:#fff7;height:3px;border-radius:10px;overflow:hidden}.marble-world-progress i{display:block;width:0;height:100%;background:#a18bae;transition:width .15s linear}.marble-world-section{position:absolute;right:24px;bottom:30px;font-size:11px;font-weight:800;color:#d2e5e6;pointer-events:none}
.marble-world:fullscreen{border-radius:0}.marble-world:fullscreen .marble-world-title{top:35px;left:35px}.marble-world:fullscreen .marble-world-ranking{color:#283e49;right:35px;top:35px}
@media(max-width:900px){.marble-world-title{left:16px;top:16px}.marble-world-title strong{font-size:21px}.marble-world-ranking{color:#283e49;right:12px;top:16px;width:140px;padding:11px}.marble-world-title span{display:none}.marble-world-status{left:16px;top:85px}.marble-world-controls{left:16px;bottom:23px}.marble-world-controls button{padding:7px 9px}}

.marble-world-ranking .out{opacity:.66}.marble-world-ranking .out em{color:#b04139;font-weight:900}.marble-world-title{max-width:calc(100% - 245px)}

/* Keep ranking nodes alive so a pass reads as a movement, not a redraw. */
.marble-world-ranking>div{position:relative;border-radius:5px;transition:background-color .25s,color .25s}
.marble-world-ranking .leader{background:#e5c17b38;color:#66491e}.marble-world-ranking .leader b{color:#a46e19;font-weight:900}.marble-world-ranking .podium em{color:#94702d;font-weight:900}
.marble-world-ranking span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.many-marbles .marble-world-ranking{max-height:calc(100% - 85px);overflow:auto;padding-block:9px}
.many-marbles .marble-world-ranking>div{height:21px}
.marble-world-progress i{width:100%;transform:scaleX(0);transform-origin:left;transition:transform .15s linear;background:linear-gradient(90deg,#80d8cf,#f4d597)}
.marble-world[data-phase=racing] .marble-world-status{color:#226a58;border-color:#85cbb4;background:#edfdf4ed}
.marble-world[data-phase=racing] .marble-world-status::before{content:'';display:inline-block;width:6px;height:6px;margin-right:7px;border-radius:50%;background:#3caa80;animation:marble-live 1.6s ease-in-out infinite}
.marble-world[data-phase=complete] .marble-world-status{color:#80602d;background:#fff0d5f5;border-color:#e3c68c;animation:marble-finish .65s cubic-bezier(.2,.8,.2,1) both}
@keyframes marble-live{50%{opacity:.35;transform:scale(.7)}}
@keyframes marble-finish{from{opacity:0;transform:translateY(10px) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(prefers-reduced-motion:reduce){.marble-world-ranking>div,.marble-world-progress i{transition:none}.marble-world-status,.marble-world-status::before{animation:none!important}}

.podium-picker{padding:20px}.podium-modes,.podium-slots{display:flex;gap:7px;margin:12px 0}.podium-modes button,.podium-slots button{flex:1;border:1px solid #ffffff25;background:#17243a;border-radius:12px;padding:12px 4px;color:#e6edf7;font-weight:800}.podium-modes button.on,.podium-slots button.on{border-color:#ffe093;background:#4a3820}.marble-choices{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:18px 0}.marble-choice{border:1px solid #ffffff22;border-radius:14px;background:#111b2d;padding:12px 4px;color:white}.marble-choice.taken{border-color:#ffe093;background:#4a3820}.marble-choice .ball{display:block;width:35px;height:35px;margin:0 auto 9px;border-radius:50%;background:radial-gradient(circle at 30% 25%,#ffffffdf,var(--marble) 40%,#0008);box-shadow:0 5px 14px #0008}.marble-choice b{font-size:12px}.podium-return{color:#ffe093;font-size:24px;font-weight:900;margin:14px 0}.race-phone-wait{text-align:center;padding:36px 20px}.race-phone-wait .symbol{font-size:64px}.race-phone-wait h2{font-size:23px}.race-phone-wait p{color:#b5c6d9;line-height:1.8}.race-podium{display:flex;flex-direction:column;gap:10px;margin-top:22px;text-align:left}.race-podium div{background:#ffffff0a;border:1px solid #ffffff16;border-radius:12px;padding:12px;font-weight:700}
