:root.night-mode{--mint:#fe586b;--ink:#e9efff;--line:#26334e;background:#090f1e}.night-mode body{background:#090f1e}.night-mode .game-header,.night-mode .bets-sidebar,.night-mode .bet-panel,.night-mode dialog{background:#111c30;border-color:#26334e}.spaceship-brand span{color:#fff;font-size:21px;letter-spacing:2px}.demo-badge{background:#29344e;color:#bdcce8}.night-mode .fun-strip{background:#202b44;color:#aebfdb;letter-spacing:3px}.space-scenes{position:absolute;inset:0;overflow:hidden}.space-scene{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity 1s ease,transform 10s linear}.launch-scene{opacity:1}.stage[data-altitude=flight] .launch-scene,.stage[data-altitude=orbit] .launch-scene{opacity:0}.stage[data-altitude=flight] .flight-scene,.stage[data-altitude=orbit] .orbit-scene{opacity:1}.stage[data-phase=live] .space-scene{transform:scale(1.04)}.stage[data-phase=crashed] .space-scenes{filter:saturate(.35) brightness(.55)}.stage{isolation:isolate}.stage .multiplier-sign{position:absolute;top:6%;left:50%;transform:translateX(-50%);width:90%;height:auto;aspect-ratio:auto;min-width:0;z-index:3;filter:none}.stage .sign-copy{position:static;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:white;text-shadow:0 3px 20px #0009}.stage .sign-copy strong{font:900 clamp(42px,6vw,100px)/1.05 'Manrope',sans-serif;color:white;letter-spacing:-3px}.stage .sign-copy small{font-size:10px;letter-spacing:3px;color:#d2dcf0}.stage .sign-copy>span{font-size:12px;color:#c8d4eb}.stage[data-phase=crashed] .sign-copy strong{color:#ff6576}.stage .round-id{font-size:9px}.stage-message{color:white}.night-mode .win-confirmation{background:#142c36;color:#89ffda}.no-animation .space-scene{transition:none;transform:none!important}@media(max-width:600px){.spaceship-brand span{font-size:14px;letter-spacing:1px}.stage .sign-copy strong{font-size:52px}.stage .space-scene{object-position:center}.stage .sign-copy small{font-size:8px}}@media(prefers-reduced-motion:reduce){.space-scene{transition:none;transform:none!important}}
/* One persistent rocket, with the camera following its ascent. */
.space-scene{transition:none!important;transform-origin:center;will-change:transform,opacity}.stage[data-phase=crashed] .space-scenes{filter:none}.rocket-flight{position:absolute;left:50%;top:60%;height:39%;aspect-ratio:2/3;transform:translate(-50%,-50%);z-index:2;pointer-events:none;will-change:left,top;filter:drop-shadow(0 5px 12px #0005)}.rocket-body{position:relative;width:100%;height:100%;transform:rotate(var(--rocket-angle,0deg));transform-origin:50% 55%}.rocket-body>img{position:relative;width:100%;height:100%;object-fit:contain;z-index:2}.rocket-flame{position:absolute;top:80%;left:42%;width:16%;height:66%;transform-origin:50% 0;opacity:var(--engine-power,0);background:linear-gradient(#fffbe3 0%,#ffe89b 22%,#ff9e35 55%,#ff572200 100%);clip-path:polygon(10% 0,90% 0,100% 25%,50% 100%,0 25%);filter:drop-shadow(0 0 8px #ff9b38);animation:engine-flicker .13s ease-in-out infinite alternate;z-index:1}.stage[data-phase=waiting] .rocket-flame{animation-play-state:paused}.no-animation .rocket-flame{animation:none}@keyframes engine-flicker{from{transform:scaleY(.87) scaleX(.9)}to{transform:scaleY(1.08) scaleX(1.06)}}@media(prefers-reduced-motion:reduce){.rocket-flame{animation:none}}

/* Downward scenery movement keeps ascent visible even after reaching space. */
.space-scenes .space-scene{display:none}.ascent-scenery{position:absolute;inset:0;width:100%;height:100%}.rocket-flight{height:35%}

/* Use Bank Heist's shared layout and breakpoints without overriding them. */
.stage{container-type:size}
.stage .sign-copy strong{font-size:clamp(28px,12cqh,80px)}
.stage .sign-copy small{font-size:clamp(7px,2cqh,10px)}
.stage .sign-copy>span{font-size:clamp(8px,2.5cqh,12px)}
@media(max-width:480px){.spaceship-brand span{font-size:12px;letter-spacing:0}}


.night-mode .fun-strip{background:#f6d60c;color:#182337}
/* Layered exhaust: white-hot core, turbulent amber plume and soft glow. */
.rocket-flame{top:81%;left:41%;width:18%;height:72%;clip-path:none;border-radius:35% 35% 48% 48%;background:radial-gradient(ellipse at 50% 0%,#fff 0%,#fff9ce 10%,#ffd064 27%,#ff861bd9 47%,#ef430a60 67%,transparent 82%);filter:blur(1.4px) drop-shadow(0 0 7px #ff9c48);transform-origin:50% 0;animation:exhaust-flow .11s ease-in-out infinite alternate;mix-blend-mode:screen}
.rocket-flame:before,.rocket-flame:after{content:"";position:absolute;pointer-events:none;transform-origin:50% 0}
.rocket-flame:before{inset:0 20% 30%;border-radius:30% 30% 50% 50%;background:linear-gradient(#f0f9ff 0%,#fff 18%,#fff5c2 42%,#ffc45090 74%,transparent);filter:blur(.6px);animation:exhaust-core .17s ease-in-out infinite alternate}
.rocket-flame:after{top:15%;left:-18%;width:136%;height:90%;border-radius:40% 50% 48% 45%;background:radial-gradient(ellipse at 45% 15%,#ffbc4b65, #ff630b35 35%,transparent 70%);filter:blur(4px);animation:exhaust-flow .23s ease-in-out infinite alternate-reverse}
@keyframes exhaust-flow{0%{transform:scaleX(.88) scaleY(.86);opacity:.85}45%{transform:scaleX(1.08) scaleY(1.02);opacity:1}100%{transform:scaleX(.95) scaleY(1.13);opacity:.93}}
@keyframes exhaust-core{from{transform:scaleX(.8) scaleY(.83)}to{transform:scaleX(1.05) scaleY(1.12)}}
.no-animation .rocket-flame,.no-animation .rocket-flame:before,.no-animation .rocket-flame:after{animation:none}
@media(prefers-reduced-motion:reduce){.rocket-flame,.rocket-flame:before,.rocket-flame:after{animation:none}}

/* Ignition is controlled by round time; animation never overrides visibility. */
.rocket-flame{left:34%;width:32%;height:76%;opacity:var(--engine-power,0);animation:living-exhaust .31s linear infinite;clip-path:polygon(35% 0,65% 0,83% 18%,72% 33%,96% 48%,70% 60%,66% 80%,48% 100%,35% 77%,14% 63%,27% 44%,6% 30%,24% 14%)}
.rocket-flame:after{animation:living-exhaust .19s linear infinite reverse}
@keyframes living-exhaust{0%,100%{transform:scale(.95,.94) skewX(-3deg)}20%{transform:scale(1.15,1.08) skewX(4deg)}43%{transform:scale(.88,.85) skewX(-5deg)}67%{transform:scale(1.08,1.15) skewX(2deg)}84%{transform:scale(1.2,.97) skewX(-2deg)}}
.rocket-smoke{position:absolute;top:83%;left:30%;width:40%;height:70%;opacity:var(--smoke-power,0);pointer-events:none;z-index:1}
.rocket-smoke i{position:absolute;top:0;left:15%;width:70%;height:35%;border-radius:50%;background:radial-gradient(ellipse,#dddfe4b0,#8b929a80 40%,#66708000 72%);filter:blur(3px);animation:launch-smoke .7s ease-out infinite;animation-play-state:paused}
.rocket-smoke i:nth-child(2){left:-15%;animation-delay:-.23s}.rocket-smoke i:nth-child(3){left:40%;animation-delay:-.46s}
.stage[data-phase=live] .rocket-smoke i{animation-play-state:running}
.stage:not([data-phase=live]) .rocket-flame,.stage:not([data-phase=live]) .rocket-smoke{visibility:hidden;opacity:0}
@keyframes launch-smoke{from{transform:translateY(0) scale(.4);opacity:.8}to{transform:translateY(160%) scale(2.5);opacity:0}}
.no-animation .rocket-flame,.no-animation .rocket-flame:after,.no-animation .rocket-smoke i{animation:none}
@media(prefers-reduced-motion:reduce){.rocket-flame,.rocket-flame:after,.rocket-smoke i{animation:none}}
.rocket-flame{clip-path:none;border-radius:38% 42% 55% 48%;filter:blur(2px) drop-shadow(0 0 6px #ff9c48)}
/* Dense launch cloud, visible before ignition and fading as the flame catches. */
.rocket-smoke{left:-15%;width:130%;height:110%;opacity:clamp(0,calc(var(--smoke-power,0)*10),1)}
.rocket-smoke i{width:90%;height:60%;left:5%;background:radial-gradient(ellipse,#f2f2f0ee 0%,#c4c9cfdd 35%,#8b949eb3 57%,#66708000 74%);filter:blur(2px);animation-duration:1s}
.rocket-smoke i:nth-child(2){left:-30%;animation-delay:-.33s}.rocket-smoke i:nth-child(3){left:35%;animation-delay:-.66s}

/* Compact Cosmo header and Alien-style navigation. */
.game-header{height:38px;padding:0 12px;gap:8px}
.game-header .wordmark,.game-header .spaceship-brand span{font-size:17px;letter-spacing:1px}
.game-header .demo-badge{font-size:8px;padding:5px 7px;border-radius:5px}
.game-header .wallet{font-size:8px;gap:5px}.game-header .wallet strong{font-size:13px;font-weight:400}
.game-header .icon{width:25px;min-width:25px;height:25px;font-size:16px}
.game-header .back,.rounds-bar .icon{display:grid;place-items:center;flex:none;width:28px;min-width:28px;height:28px;padding:0;border:1px solid #354963;border-radius:8px;color:#b7c7dd;background:#19283e;box-shadow:none}
.game-header .back:hover,.rounds-bar .icon:hover{color:#fff;background:#24364e}
.night-mode .fair-modal-brand img{background:#fff;border-radius:4px;padding:4px;mix-blend-mode:normal}
@media(min-width:801px) and (min-height:551px) and (min-aspect-ratio:1/1){.game-layout{height:calc(100dvh - 38px)}}
@media(max-width:380px){.game-header{gap:5px;padding:0 6px}.game-header .spaceship-brand span{font-size:14px}}

.rounds-bar .icon{width:24px;min-width:24px;height:20px;border-radius:6px;flex:0 0 24px;align-self:center;font-size:20px;line-height:1}.rounds-bar .icon svg{display:block;margin:auto}

#modal{scrollbar-width:none}#modal::-webkit-scrollbar{display:none;width:0;height:0}.crash-multipliers{display:grid;grid-template-columns:repeat(auto-fit,minmax(70px,1fr));gap:8px;padding:4px 0 12px}.crash-multipliers .round-chip{text-align:center;padding:10px 6px}

#players{scrollbar-width:none}#players::-webkit-scrollbar{display:none;width:0;height:0}

#players .player-row{content-visibility:auto;contain-intrinsic-size:auto 44px}


/* Top results: compact filter rows and individual result cards. */
#activity-panel.show-top .activity-summary,#activity-panel.show-top .table-labels{display:none}
#top-filters{flex-direction:column;gap:4px;margin:8px 0;padding:5px;background:#0b1525;border-radius:15px;flex-shrink:0}
#top-filters .segmented{background:transparent;padding:0;width:100%}
#top-filters button{padding:7px 3px;font-size:12px;font-weight:400}
#top-filters button.selected{background:#2d405d;color:#fff}
.top-result{padding:12px 10px;margin-bottom:7px;background:#0a1423;border-radius:16px;color:#c4cfdf}
.top-result header{display:flex;align-items:center;gap:8px;margin-bottom:13px}
.top-avatar{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#26384f;font-size:24px;flex-shrink:0}
.top-result header strong{font-size:12px;font-weight:500}.top-result time{display:block;font-size:10px;color:#8392a9;margin-top:2px}
.top-proof{margin-left:auto;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#253147;color:#a4b1c5;flex-shrink:0}
.top-result dl{display:grid;grid-template-columns:1fr 1fr;gap:7px 10px;margin:0;font-size:10px;font-variant-numeric:tabular-nums}
.top-result dl div{display:flex;justify-content:space-between;gap:4px;min-width:0}.top-result dt{color:#8392a9;white-space:nowrap}.top-result dd{margin:0;text-align:right;overflow-wrap:anywhere}.top-result .top-mult{color:#8bd2ff}.top-result .top-mult.medium{color:#c9a7ff}.top-result .top-mult.high{color:#fface4}

/* Center manual controls; automatic controls use the space below them. */
.bet-panel{display:flex;flex-direction:column}
.bet-panel>.panel-top,.bet-panel>.bet-main,.bet-panel>.auto-options,.bet-panel>.panel-help{flex-shrink:0}
.bet-panel:has(.auto-options[hidden])>.bet-main{margin-top:auto}
.bet-panel:has(.auto-options[hidden])>.panel-help{margin-bottom:auto}

.game-header .spaceship-brand{display:inline-flex;align-items:center;gap:6px}.game-header .cosmo-brand-rocket{width:20px;height:28px;object-fit:contain;display:block;flex-shrink:0}

/* Cosmo cashout notifications, matching Tbilisi's compact popup. */
#cosmo-cashout-popups{position:fixed;top:46px;left:50%;transform:translateX(-50%);z-index:100;display:grid;gap:5px;width:min(310px,calc(100vw - 24px));pointer-events:none}
.cosmo-cashout-popup{display:flex;align-items:center;gap:10px;padding:6px 10px;border:1px solid #92c9ff55;border-radius:8px;background:linear-gradient(110deg,#17365980,#345f8e66);backdrop-filter:blur(5px);box-shadow:0 3px 12px #07162c22;color:#f0f6ff;animation:win-arrive .22s ease-out;transition:opacity .25s ease,transform .25s ease}
.cosmo-cashout-popup .cashout-message{display:grid;gap:2px;flex:1;text-align:center;min-width:0}.cosmo-cashout-popup .cashout-message span{font-size:11px;color:#d2e3f7}.cosmo-cashout-popup .cashout-message strong{font-size:17px;font-weight:800}
.cosmo-cashout-popup .cashout-payout{display:grid;gap:2px;text-align:center;background:#77b6ee1a;border:1px solid #aed6ff22;border-radius:6px;padding:4px 10px;min-width:85px}.cosmo-cashout-popup .cashout-payout span{font-size:10px;color:#d4e7ff}.cosmo-cashout-popup .cashout-payout strong{font-size:19px;line-height:1.1;font-weight:800;overflow-wrap:anywhere}
.cosmo-cashout-popup.leaving{opacity:0;transform:translateY(-6px)}
@media(max-width:480px){#cosmo-cashout-popups{width:min(290px,calc(100vw - 24px))}.cosmo-cashout-popup{padding:5px 8px;gap:8px}.cosmo-cashout-popup .cashout-payout{min-width:78px;padding:4px 8px}.cosmo-cashout-popup .cashout-payout strong{font-size:18px}}
@media(prefers-reduced-motion:reduce){.cosmo-cashout-popup{animation:none;transition:none}}
.no-animation .cosmo-cashout-popup{animation:none;transition:none}
