@font-face{font-family:Fredoka;src:url('./fonts/fredoka.ttf') format('truetype');font-weight:600;font-style:normal;font-display:swap}
.distribution-links{display:flex;align-items:center;flex-wrap:wrap;gap:4px 16px;margin:10px 0}.distribution-links a,.distribution-links button{color:var(--muted);font-size:12px;min-height:44px;display:inline-flex;align-items:center;padding:0;text-decoration:underline;background:none;border:0}.distribution-links a:hover{color:var(--mint)}
.privacy-page{height:auto;min-height:100%;padding:32px 24px}.privacy-page main{max-width:68ch;margin:0 auto}.privacy-page h1,.privacy-page h2{font-family:Fredoka,sans-serif}.privacy-page h1{font-size:42px}.privacy-page h2{margin-top:32px}.privacy-page a{color:var(--mint);text-underline-offset:3px}.privacy-page p{line-height:1.7}
body.native .icon-button{width:48px;height:48px}body.native .text-button,body.native .distribution-links a{min-height:48px}
@media(max-height:520px) and (min-width:761px){body.native .entry{top:84px;transform:none;width:min(410px,45vw)}body.native .entry h1{font-size:30px;line-height:1.05;margin-bottom:12px}body.native .entry h1 br:nth-child(2){display:none}body.native .intro{font-size:13px;line-height:1.4}body.native .session-note{display:none}body.native .distribution-links{margin:2px 0}}
:root{color-scheme:dark;--space:#182338;--surface:#202f48;--ink:#faf1d7;--muted:#bac8dc;--yellow:#f4dc78;--mint:#9edfd0;--coral:#ff9e8c;--radius:14px;--ease:cubic-bezier(.16,1,.3,1)}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overscroll-behavior:none}body{font:15px/1.5 system-ui,sans-serif;background:var(--space);color:var(--ink)}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:disabled{cursor:default;opacity:.55}button:focus-visible,a:focus-visible,canvas:focus-visible{outline:3px solid var(--mint);outline-offset:5px}button:focus:not(:focus-visible){outline:none}::selection{background:var(--yellow);color:var(--space)}[hidden]{display:none!important}.game{position:relative;width:100%;height:100%;height:100dvh;min-height:520px;overflow:hidden;background:var(--space)}#arena{display:block;width:100%;height:100%;touch-action:none;outline:none}.topbar{position:absolute;top:0;left:0;right:0;padding:24px 36px;display:flex;align-items:center;justify-content:space-between;gap:16px;pointer-events:none}.topbar>*{pointer-events:auto}.wordmark{display:flex;align-items:center;gap:9px;text-decoration:none;color:var(--ink);font:600 32px/1 Fredoka,sans-serif}.wordmark svg{width:34px;height:34px;fill:var(--yellow)}.wordmark svg ellipse{fill:none;stroke:var(--yellow);stroke-width:1.8}.byline{font:12px/1 system-ui,sans-serif;letter-spacing:.02em;color:var(--muted);margin:8px 0 0 5px}.settings{display:flex;align-items:center;gap:12px}.practice{font-size:12px;color:var(--muted);margin-right:10px}.icon-button{display:grid;place-items:center;width:44px;height:44px;background:var(--surface);color:var(--ink);border:0;border-radius:50%;transition:background .2s}.icon-button:hover{background:#354664}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.panel{position:absolute}.entry{left:clamp(28px,7vw,112px);top:50%;transform:translateY(-47%);width:380px}.entry h1{font:600 clamp(44px,5.4vw,76px)/.98 Fredoka,sans-serif;letter-spacing:-.025em;margin:0 0 24px}.entry h1 span{color:var(--yellow)}.intro{color:var(--muted);font-size:18px;line-height:1.6;margin:0 0 26px}.intro strong{color:var(--ink);font-weight:600}.rules{margin:0 0 26px}.rules p{margin:9px 0;display:flex;align-items:center;gap:11px;font-size:13px;color:var(--muted)}.rule-dot{width:9px;height:9px;border-radius:50%;flex:none}.collect{background:var(--yellow)}.steal{background:var(--mint)}.capture{background:var(--coral)}.primary{display:flex;align-items:center;justify-content:center;gap:16px;width:100%;min-height:57px;padding:13px 24px;border:0;border-radius:var(--radius);background:var(--yellow);color:var(--space);font:600 21px/1.4 Fredoka,sans-serif;transition:background .2s,transform .2s var(--ease);box-shadow:0 6px 18px #08132145}.primary:hover{background:#ffeaa1;transform:translateY(-2px)}.primary:active{transform:translateY(1px)}.session-note{font-size:12px;text-align:center;color:var(--muted);margin:12px 0 20px}.entry-footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #bac8dc25;padding-top:14px;font-size:12px;color:var(--muted)}.text-button{display:inline-flex;align-items:center;justify-content:center;gap:5px;background:none;border:0;color:var(--ink);min-height:44px;padding:6px 0;font-size:13px}.text-button:hover{color:var(--yellow)}.text-button svg{width:16px;height:16px}.demo-caption{position:absolute;left:74%;top:74%;display:flex;align-items:flex-start;gap:12px;color:var(--muted);font-size:13px;transform:rotate(-6deg);pointer-events:none}.demo-caption p{margin:0}.demo-caption strong{color:var(--coral);font-weight:600}.caption-line{height:28px;width:28px;border-bottom:1px solid #ff9e8c80;border-left:1px solid #ff9e8c80;border-bottom-left-radius:18px;transform:rotate(30deg)}.home-controls{position:absolute;bottom:20px;width:100%;text-align:center;color:var(--muted);font-size:11px;pointer-events:none}.hud{position:absolute;top:105px;left:36px;right:36px;display:flex;justify-content:space-between;align-items:flex-start;pointer-events:none}.player-stats{width:190px}.hud-label{display:block;font-size:11px;letter-spacing:.1em;color:var(--muted)}.player-stats strong{display:block;font:600 38px/1.2 Fredoka,sans-serif;color:var(--yellow);font-variant-numeric:tabular-nums}.growth{height:4px;margin:8px 0;background:#bac8dc25;border-radius:2px;overflow:hidden}.growth span{display:block;height:100%;width:0;background:var(--yellow);transition:transform .25s}#growth-copy{display:block;font-size:11px;color:var(--muted)}.clock{position:absolute;left:50%;transform:translateX(-50%);text-align:center}.clock>span:first-child{font:600 35px/1.3 Fredoka,sans-serif;font-variant-numeric:tabular-nums}.clock>span:last-child{display:block;font-size:11px;letter-spacing:.13em;color:var(--muted)}.leaders{list-style:none;padding:0;margin:0;width:160px;font-size:12px}.leaders li{display:flex;gap:7px;align-items:center;margin:0 0 8px;color:var(--muted)}.leaders li.you{color:var(--yellow)}.leaders .leader-dot{width:6px;height:6px;border-radius:50%}.leaders .leader-score{margin-left:auto;font-variant-numeric:tabular-nums}.controls{position:absolute;bottom:max(26px,env(safe-area-inset-bottom));left:36px;right:36px;display:flex;align-items:center;justify-content:space-between;pointer-events:none}.controls p{font-size:12px;color:var(--muted)}.boost-button{pointer-events:auto;display:flex;align-items:center;gap:9px;border:1px solid #f4dc7860;background:var(--surface);border-radius:var(--radius);color:var(--yellow);min-height:56px;padding:12px 17px;min-width:150px}.boost-button:hover{background:#354664}#boost-key{font-size:11px;color:var(--muted);margin-left:8px}.toast{position:absolute;left:50%;bottom:110px;transform:translate(-50%,15px);font:600 19px/1.3 Fredoka,sans-serif;color:var(--yellow);text-align:center;opacity:0;pointer-events:none;transition:opacity .2s,transform .25s var(--ease);max-width:90%;width:max-content;text-shadow:none}.toast.show{opacity:1;transform:translate(-50%,0)}.capture-banner{position:absolute;top:235px;left:50%;transform:translateX(-50%);text-align:center;background:var(--coral);color:var(--space);border-radius:var(--radius);padding:12px 18px;width:max-content;max-width:90%}.capture-banner strong{display:block;font:600 20px/1.3 Fredoka,sans-serif}.capture-banner span{font-size:12px}.center-panel{top:50%;left:50%;transform:translate(-50%,-50%);width:min(390px,calc(100% - 40px));background:var(--surface);border-radius:20px;padding:30px;text-align:center;box-shadow:0 20px 70px #08132180}.center-panel h2{font:600 43px/1.05 Fredoka,sans-serif;letter-spacing:-.02em;margin:0 0 16px}.center-panel>p{color:var(--muted);margin:12px 0 24px;font-size:14px}.center-panel>.text-button{margin-top:10px}.center-panel .result-rank{color:var(--yellow);font:600 18px Fredoka,sans-serif;margin:0 0 16px}.result-stats{display:flex;justify-content:center;gap:35px;margin:22px 0}.result-stats strong{display:block;font:600 35px Fredoka,sans-serif}.result-stats span{font-size:11px;color:var(--muted);letter-spacing:.05em}.center-panel .earned{color:var(--mint);margin:12px 0 4px}.center-panel .best{font-size:11px;margin:0 0 22px}.secondary{border:1px solid #bac8dc60;border-radius:var(--radius);background:transparent;min-height:48px;width:100%;color:var(--ink);font-size:12px;margin-top:12px}.skin-options{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:20px 0}.skin-option{border:1px solid #bac8dc30;background:var(--space);border-radius:var(--radius);color:var(--ink);min-height:104px;padding:12px 8px}.skin-option[aria-pressed=true]{border-color:var(--yellow);background:#344153}.skin-option .swatch{display:block;width:30px;height:30px;border-radius:50%;margin:0 auto 8px;position:relative}.swatch:after{content:'';position:absolute;width:15px;height:7px;top:12px;left:7px;border-bottom:2px solid #182338;border-radius:50%}.skin-option strong{display:block;font-size:12px}.skin-option small{color:var(--muted);font-size:11px}.joystick{position:absolute;width:100px;height:100px;border:1px solid #faf1d745;border-radius:50%;background:#faf1d70c;pointer-events:none;transform:translate(-50%,-50%)}.joystick span{position:absolute;top:50%;left:50%;width:30px;height:30px;border-radius:50%;background:#f4dc7870;transform:translate(-50%,-50%)}.storage-notice{position:absolute;bottom:0;left:0;right:0;font-size:11px;text-align:center;background:var(--surface);margin:0;padding:4px;color:var(--muted)}.noscript{position:absolute;inset:40%;background:var(--surface);padding:20px}body[data-playing=true] .game{min-height:0}
@media(min-width:1600px){.entry{left:calc(50% - 600px)}}@media(max-height:720px) and (min-width:761px){.entry{width:340px;transform:translateY(-43%)}.entry h1{font-size:52px;margin-bottom:18px}.intro{font-size:16px;margin-bottom:16px}.rules{margin-bottom:16px}.session-note{margin-bottom:8px}.center-panel{padding:22px}.center-panel h2{font-size:36px}}
@media(max-width:760px){.topbar{padding:18px 20px}.wordmark{font-size:27px}.wordmark svg{width:28px;height:28px}.byline{font-size:11px}.settings{gap:8px}.practice{font-size:11px;margin-right:0}.icon-button{width:40px;height:40px}.entry{top:auto;bottom:max(35px,env(safe-area-inset-bottom));left:24px;right:24px;width:auto;transform:none}.entry h1{font-size:43px;line-height:1.02;margin:0 0 12px}.entry h1 br:nth-child(2){display:none}.intro{font-size:14px;line-height:1.5;margin:0 0 13px}.intro br{display:none}.rules{margin-bottom:17px}.rules p{font-size:12px;margin:6px 0}.primary{min-height:54px;font-size:20px}.session-note{margin:10px 0 8px;font-size:11px}.entry-footer{padding-top:4px}.home-controls{display:none}.demo-caption{left:62%;top:29%;font-size:11px}.caption-line{display:none}.hud{top:85px;left:20px;right:20px}.player-stats{width:115px}.player-stats strong{font-size:31px}.hud-label{font-size:11px}#growth-copy{font-size:11px}.clock>span:first-child{font-size:29px}.leaders{width:105px;font-size:11px}.leaders li{margin-bottom:6px;gap:4px}.controls{left:20px;right:20px;bottom:max(22px,env(safe-area-inset-bottom))}.controls p{font-size:11px;max-width:160px}.boost-button{min-width:112px;min-height:55px;padding:10px 13px}#boost-key{display:none}.capture-banner{top:195px}.toast{bottom:100px;font-size:17px}.center-panel{padding:26px;max-height:calc(100% - 120px);overflow:auto}.center-panel h2{font-size:38px}}
@media(max-width:760px) and (max-height:700px){.entry{bottom:18px}.entry h1{font-size:35px}.intro{margin-bottom:9px}.rules{margin-bottom:12px}.rules p{margin:4px 0}.entry-footer{display:none}.demo-caption{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important}}

/* Compact entry and short-screen support. */
.entry{width:410px}.entry h1{font-size:clamp(44px,5.1vw,64px)}.game{min-height:0}
@media(max-width:760px){.entry{width:auto}.entry h1{font-size:40px}}
@media(max-width:760px) and (max-height:700px){.entry h1{font-size:35px}}
@media(max-height:520px) and (min-width:761px){.topbar{padding:12px 20px}.entry{width:310px;left:35px;top:56%}.entry h1{font-size:36px;margin-bottom:12px}.intro{font-size:13px;margin-bottom:12px}.rules,.entry-footer{display:none}.primary{min-height:46px}.session-note{margin-bottom:0}.home-controls{display:none}.hud{top:78px}.center-panel{padding:18px;max-height:calc(100% - 80px);overflow:auto}}

/* Reserve a quiet backing for game information over the moving arena. */
.topbar{background:var(--space);z-index:2}.hud{isolation:isolate;z-index:1}.hud:before{content:'';position:absolute;inset:-12px -12px -14px;background:var(--space);border-radius:14px;z-index:-1}.toast{background:var(--space);padding:10px 14px;border-radius:12px;z-index:3}.result-stats{gap:22px}.result-stats strong{font-size:31px}


#arena:focus-visible{outline:3px solid var(--mint);outline-offset:-3px}

#orbit-copy{display:block;font-size:11px;color:var(--mint);margin:3px 0 4px}.growth span{background:var(--mint)}.center-panel .orbit-result{color:var(--mint);font-size:12px;margin:0 0 14px}



#motion-copy{display:block;font-size:11px;color:var(--mint);margin-top:3px}.burn-controls{display:flex;gap:8px}.brake-button{pointer-events:auto;touch-action:none;display:flex;align-items:center;gap:7px;min-height:56px;padding:10px 15px;border:1px solid #9edfd060;background:var(--surface);color:var(--mint);border-radius:var(--radius)}.brake-button.active,.brake-button:active{background:#37554e}.controls p{background:var(--space);padding:6px 8px;border-radius:8px;max-width:240px}.mass-pop{animation:mass-grow .25s var(--ease)}@keyframes mass-grow{50%{transform:scale(1.13);transform-origin:left center}}@media(max-width:760px){.controls{gap:10px}.controls p{max-width:120px}.burn-controls{gap:6px}.brake-button{padding:10px;min-height:55px;font-size:13px}.brake-button svg{width:18px}.boost-button{min-width:95px;padding:10px}.hud{gap:8px}.player-stats{width:108px}#motion-copy{font-size:11px}.clock{top:0}.leaders{width:101px}}

@media(max-height:520px) and (min-width:761px){.hud{top:70px}.hud:before{inset:-4px -8px -8px}.player-stats{width:190px}.hud-label{font-size:11px}.player-stats strong{display:inline-block;font-size:25px;margin-right:8px}#motion-copy{display:inline-block;font-size:11px}.growth{margin:3px 0}#growth-copy{font-size:11px}.clock>span:first-child{font-size:25px}.clock>span:last-child{font-size:11px}.leaders{font-size:11px}.leaders li{margin-bottom:2px}.controls{bottom:12px;left:20px;right:20px}.controls p{font-size:11px}.burn-controls button{min-height:44px;padding:8px 12px}.toast{bottom:65px;font-size:15px;padding:6px 10px}.capture-banner{top:140px;padding:6px 10px}.capture-banner strong{font-size:15px}.capture-banner span{font-size:11px}}
#scout-copy{display:block;font-size:11px;color:var(--ink);margin-top:6px}
.clock small{display:block;font-size:11px;color:var(--mint);margin-top:4px;letter-spacing:0}.clock{width:130px}.clock>span:last-child{letter-spacing:.04em}.center-panel #result-reason{font-size:13px;margin:10px 0 16px}#skins{width:min(410px,calc(100% - 40px));max-height:calc(100% - 110px);overflow:auto;scrollbar-width:thin;scrollbar-color:var(--mint) var(--surface)}#skins h2{font-size:38px;margin-bottom:8px}#skins>p{margin:8px 0 16px}#skins h3{font-size:13px;font-weight:600;margin:18px 0 8px;text-align:left;color:var(--ink)}#skins .skin-options{margin:0;gap:8px}#skins .skin-option{min-height:78px;padding:8px}#skins .swatch{width:24px;height:24px;margin-bottom:4px}#skins .swatch:after{top:9px;left:5px}.style-options{display:grid;grid-template-columns:1fr 1fr;gap:8px}.style-options.trails{grid-template-columns:repeat(3,1fr)}.style-choice{min-height:44px;padding:8px;border:1px solid #bac8dc50;border-radius:10px;background:var(--space);color:var(--ink);font-size:13px}.style-choice:hover{background:#354664}.style-choice[aria-pressed=true]{border-color:var(--yellow);color:var(--yellow);background:#344153}#skins .primary{margin-top:14px}@media(max-width:760px){.clock{width:106px}.clock>span:first-child{font-size:26px}.clock>span:nth-child(2){font-size:11px;letter-spacing:.02em}.clock small{font-size:11px}#skins{padding:22px}.practice{font-size:11px}}@media(max-height:520px){#skins{max-height:calc(100% - 80px)}}
.clock>span:nth-child(2){display:block;font-size:11px;color:var(--muted);letter-spacing:.04em}.clock small,.practice{font-size:11px}
@media(min-width:761px){#results.black-hole-result{left:30%}}
.upgrade-choice{display:flex;flex-direction:column;gap:6px;text-align:left;padding:12px}.upgrade-choice strong{font-size:13px}.upgrade-choice span,.upgrade-choice small{font-size:12px;color:var(--muted)}#skins .upgrade-note{font-size:12px;margin:8px 0;color:var(--muted)}.danger-warning{position:absolute;left:50%;bottom:180px;transform:translateX(-50%);max-width:calc(100% - 40px);width:max-content;margin:0;padding:10px 14px;background:var(--surface);border-radius:12px;color:var(--coral);font-size:13px;pointer-events:none}body:not([data-playing=true]) .danger-warning{display:none}@media(max-height:520px){.danger-warning{bottom:110px;font-size:12px;padding:6px 10px}}

/* Planet workshop: the world is the preview, the catalog is the task. */
#skins.workshop{width:min(860px,calc(100% - 48px));height:min(680px,calc(100% - 110px));max-height:calc(100% - 110px);padding:0;overflow:hidden;text-align:left;display:flex;flex-direction:column;border-radius:20px}
.workshop-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px 24px 12px}
#skins .workshop-header h2{font-size:36px;margin:0 0 4px}#skins .workshop-header p{font-size:13px;color:var(--muted);margin:0}
.workshop-header .icon-button{flex-shrink:0;width:48px;height:48px}
.workshop-tabs{display:flex;gap:8px;padding:0 24px 12px;border-bottom:1px solid #bac8dc25;overflow-x:auto;flex-shrink:0}
.workshop-tabs button{min-height:48px;padding:10px 15px;border:0;border-radius:10px;background:transparent;color:var(--muted);font-weight:600;font-size:13px;flex-shrink:0}
.workshop-tabs button:hover{background:var(--control-hover,#354664)}.workshop-tabs button[aria-pressed=true]{background:var(--mint);color:var(--space)}
.workshop-layout{display:flex;min-height:0;flex:1}
.planet-preview{width:280px;flex-shrink:0;padding:10px 18px 20px;border-right:1px solid #bac8dc25;display:flex;flex-direction:column;justify-content:center;text-align:center}
#planet-preview{display:block;width:100%;height:auto;border-radius:14px;aspect-ratio:300/238}
#skins .preview-details h3{font:500 24px/1.2 Fredoka,sans-serif;margin:10px 0 8px;text-align:center}
#preview-description{color:var(--muted);font-size:13px;line-height:1.5;margin:0 0 14px;min-height:39px}
#cosmetic-action{font:500 16px/1.25 Fredoka,sans-serif;padding:12px;min-height:48px}
#preview-cost{font-size:12px;color:var(--muted);line-height:1.5;margin:10px 0 0}
.workshop-catalog{flex:1;min-width:0;overflow:auto;padding:14px 20px 24px;scrollbar-width:thin;scrollbar-color:var(--mint) var(--surface)}
#skins .workshop-catalog h3{font:500 20px/1.2 Fredoka,sans-serif;margin:24px 0 12px}#skins .workshop-catalog h3:first-child{margin-top:4px}
.catalog-note{font-size:13px;line-height:1.5;color:var(--muted);margin:4px 0 16px}
.catalog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.catalog-choice{border:1px solid #bac8dc35;border-radius:12px;background:var(--space);padding:0 6px 12px;color:var(--ink);text-align:center;min-width:0}
.catalog-choice:hover{background:#354664}.catalog-choice[aria-pressed=true]{border-color:var(--yellow);background:#344153}
.catalog-choice img{display:block;width:100%;height:auto;aspect-ratio:192/112;object-fit:contain;pointer-events:none}
.catalog-choice strong{display:block;font:500 14px/1.3 Fredoka,sans-serif;margin:0 0 5px;overflow-wrap:anywhere}
.catalog-choice small{display:block;color:var(--muted);font-size:12px;line-height:1.3}
.catalog-choice[aria-pressed=true] small{color:var(--yellow)}
.upgrade-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 0;border-bottom:1px solid #bac8dc25}
.upgrade-row strong{font:500 19px/1.25 Fredoka,sans-serif}.upgrade-row p{font-size:13px;color:var(--muted);line-height:1.4;margin:5px 0 10px}
.upgrade-levels{display:flex;gap:5px}.upgrade-levels i{width:22px;height:4px;border-radius:2px;background:#bac8dc35}.upgrade-levels .filled{background:var(--mint)}
.upgrade-buy,.audio-enable{min-height:48px;border:1px solid #9edfd070;background:transparent;color:var(--mint);border-radius:10px;padding:10px 12px;font-size:13px;flex-shrink:0}
.upgrade-buy:hover,.audio-enable:hover{background:#37554e}.upgrade-buy:disabled{color:var(--muted);border-color:#bac8dc30;background:transparent;opacity:.65}
.workshop-footer{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:14px 24px;border-top:1px solid #bac8dc25;flex-shrink:0}
#skin-wallet{color:var(--mint);font:500 19px/1.3 Fredoka,sans-serif;font-variant-numeric:tabular-nums;margin:0}
#workshop-play{margin:0!important;width:180px;min-height:48px;font-size:18px;padding:10px 12px;white-space:nowrap}
.audio-group{margin:22px 0;display:grid;grid-template-columns:1fr 50px;gap:12px;align-items:center}
.audio-group label{grid-column:1/-1;display:flex;align-items:center;gap:12px;font-size:15px;min-height:48px;cursor:pointer}
.audio-group input[type=checkbox]{width:22px;height:22px;accent-color:var(--mint)}
.audio-group input[type=range]{width:100%;min-height:48px;accent-color:var(--mint);cursor:pointer}
.audio-group output{font-variant-numeric:tabular-nums;font-size:13px;color:var(--muted);text-align:right}
.track-title{font-size:13px;color:var(--mint);margin:22px 0 14px}
.entry-footer .text-button{min-height:48px}.entry-footer{display:flex}
button{touch-action:manipulation;user-select:none}
body.native #demo-caption{display:none}

/* During play the arena stays visible through the HUD; menus retain their backing. */
body[data-playing=true] .topbar{background:transparent}
body[data-playing=true] .hud:before{display:none}
body[data-playing=true] .hud,body[data-playing=true] .wordmark,body[data-playing=true] .practice{ text-shadow:0 2px 3px #182338,0 1px 2px #182338 }
body[data-playing=true] .icon-button,body[data-playing=true] .icon-button:hover{background:transparent}
body[data-playing=true] .controls p{background:transparent;padding:0;text-shadow:0 2px 3px #182338}
body[data-playing=true] .burn-controls button,body[data-playing=true] .burn-controls button:active,body[data-playing=true] .burn-controls button:hover{background:transparent;text-shadow:0 2px 3px #182338}
body[data-playing=true] .toast,body[data-playing=true] .danger-warning,body[data-playing=true] .capture-banner{background:transparent;text-shadow:0 2px 3px #182338,0 1px 2px #182338}
body[data-playing=true] .capture-banner{color:var(--coral)}
body[data-playing=true] .joystick,body[data-playing=true] .storage-notice{background:transparent}
@media(max-width:760px){
 body[data-playing=true] .topbar{padding:8px 12px;gap:8px}
 body[data-playing=true] .wordmark{font-size:22px;gap:6px}
 body[data-playing=true] .wordmark svg{width:23px;height:23px}
 body[data-playing=true] .byline{display:none}
 body[data-playing=true] .settings{gap:8px}
 body[data-playing=true] .icon-button{width:48px;height:48px}
 body[data-playing=true] .icon-button svg{width:19px;height:19px}
 body[data-playing=true] .hud{top:68px;left:12px;right:12px;gap:6px}
 body[data-playing=true] .player-stats{width:clamp(90px,27vw,110px);line-height:1.3}
 body[data-playing=true] .hud-label{display:none}
 body[data-playing=true] .player-stats strong{font-size:24px;line-height:1.15}
 body[data-playing=true] #growth-copy{display:none}
 body[data-playing=true] .growth{height:3px;margin:5px 0}
 body[data-playing=true] #orbit-copy{margin:2px 0;font-size:11px;white-space:nowrap}
 body[data-playing=true] #scout-copy{margin-top:4px;font-size:11px}
 body[data-playing=true] .clock{width:100px}
 body[data-playing=true] .clock>span:first-child{font-size:23px;line-height:1.2}
 body[data-playing=true] .clock>span:nth-child(2){font-size:11px;letter-spacing:0}
 body[data-playing=true] .clock small{font-size:11px;line-height:1.3}
 body[data-playing=true] .leaders{width:clamp(90px,27vw,108px);font-size:11px;line-height:1.3}
 body[data-playing=true] .leaders li{margin-bottom:3px;gap:4px}
 body[data-playing=true] .controls{left:12px;right:12px;bottom:max(12px,env(safe-area-inset-bottom));justify-content:flex-end}
 body[data-playing=true] .controls p{display:none}
 body[data-playing=true] .burn-controls{gap:8px}
 body[data-playing=true] .burn-controls button{min-height:48px;min-width:82px;padding:8px 10px;font-size:13px;gap:6px}
 body[data-playing=true] .burn-controls button svg{width:18px;height:18px}
 body[data-playing=true] .capture-banner{top:165px}
}
body.native .workshop-tabs button,body.native .catalog-choice,body.native .audio-enable{min-height:48px}
@media(max-width:760px){
  #skins.workshop{width:calc(100% - 24px);height:calc(100% - 94px);max-height:calc(100% - 94px);top:calc(50% + 27px);border-radius:16px}
  .workshop-header{padding:14px 16px 8px}.workshop-header .icon-button{width:48px;height:48px}
  #skins .workshop-header h2{font-size:29px}.workshop-tabs{padding:0 12px 8px;gap:8px}.workshop-tabs button{padding:8px 12px}
  .workshop-layout{flex-direction:column}.planet-preview{width:100%;padding:8px 12px;flex-direction:row;align-items:center;gap:8px;border-right:0;border-bottom:1px solid #bac8dc25;flex-shrink:0;text-align:left}
  #planet-preview{width:128px;flex-shrink:0}#skins .preview-details h3{text-align:left;font-size:20px;margin:4px 0 5px}
  .preview-details{flex:1;min-width:0}#preview-description{font-size:12px;min-height:0;margin:0 0 7px;line-height:1.4}
  #preview-cost{font-size:12px;margin:6px 0}#cosmetic-action{font-size:14px;padding:10px 8px;min-height:48px}
  .workshop-catalog{padding:12px 14px 20px}.catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .catalog-choice strong{font-size:13px}.catalog-choice small{font-size:12px}.catalog-choice{padding:0 3px 10px}
  .upgrade-row{gap:10px;padding:13px 0}.upgrade-row strong{font-size:17px}.upgrade-row p{font-size:12px}.upgrade-buy{max-width:104px;padding:8px;font-size:12px}
  .workshop-footer{padding:10px 16px;gap:10px}#skin-wallet{font-size:17px}#workshop-play{width:132px;min-height:48px;font-size:17px}
}
@media(max-height:520px) and (min-width:761px){
  #skins.workshop{height:calc(100% - 80px);max-height:calc(100% - 80px);top:calc(50% + 25px)}
  .workshop-header{padding:8px 18px 4px}#skins .workshop-header h2{font-size:26px}.workshop-header p{display:none}
  .workshop-tabs{padding:0 14px 6px}.workshop-tabs button{min-height:48px;padding:8px 12px}
  .planet-preview{width:220px;flex-direction:row;padding:8px;align-items:center}#planet-preview{width:110px}.preview-details{flex:1}
  #skins .preview-details h3{font-size:17px}#preview-description,#preview-cost{display:none}#cosmetic-action{font-size:12px;padding:8px}
  .workshop-footer{padding:8px 18px}#skin-wallet{font-size:16px}#workshop-play{font-size:16px}
}


/* Returning players keep a quiet, optional save drawer on the home screen. */
.player-session{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:13px;color:var(--mint)}
.player-session .text-button,.save-options .text-button{min-height:48px;margin:0;font-size:13px}
.save-options{margin:4px 0 12px;color:var(--muted);font-size:13px;line-height:1.5}
.save-options summary{cursor:pointer;min-height:48px;display:flex;align-items:center;color:var(--mint);text-decoration:underline;text-underline-offset:4px}
.save-options p{margin:6px 0 12px}.save-options label{display:block;margin:10px 0 6px;color:var(--ink)}
.restore-controls{display:flex;gap:8px}.restore-controls input{min-width:0;flex:1}
.save-options input,.save-options textarea{font:16px/1.4 system-ui,sans-serif;border:1px solid #bac8dc60;border-radius:8px;padding:10px;background:transparent;color:var(--ink);caret-color:var(--mint)}
.save-options input::placeholder{color:var(--muted)}.save-options textarea{width:100%;resize:vertical;overflow-wrap:anywhere}
.restore-controls button{min-height:48px;border:1px solid #9edfd070;border-radius:8px;padding:8px 12px;background:transparent;color:var(--mint)}
.save-options :focus-visible{outline:2px solid var(--mint);outline-offset:3px}
#save-message{color:var(--coral)}
.entry{max-height:calc(100% - 108px);overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--mint) var(--space);padding-right:8px}
@media(max-width:760px){.entry{max-height:calc(100% - 105px)}.save-options{font-size:13px}.player-session{font-size:13px}.entry-footer{display:flex}}
@media(max-height:520px) and (min-width:761px){.entry{top:82px;transform:none;max-height:calc(100% - 94px)}.player-session{font-size:12px}}
@media(max-width:760px){#demo-caption{display:none}}
@media(min-width:761px) and (min-height:521px){body.native .entry{padding-top:8px}body.native .entry h1{font-size:48px;line-height:1.05;margin-bottom:18px}body.native .entry .intro{font-size:16px;line-height:1.5;margin-bottom:16px}body.native .entry .rules{margin-bottom:16px}}
.capture-banner{background:transparent;color:var(--coral)}
.capture-banner #lucky-copy{font-size:12px;margin:8px 0;color:var(--mint)}
.lucky-options{display:flex;gap:8px;justify-content:center}
.lucky-options button{display:flex;align-items:center;justify-content:center;gap:5px;min-width:56px;min-height:48px;padding:8px;border:1px solid #9edfd080;border-radius:8px;background:transparent;color:var(--mint);font-size:14px}
.lucky-options button:hover{color:var(--yellow);border-color:var(--yellow)}
.lucky-options button svg{width:20px;height:20px}
@media(max-height:520px) and (min-width:761px){body[data-playing=true] .capture-banner{top:150px;left:20px;transform:none;max-width:235px;text-align:left}.capture-banner #lucky-copy{font-size:12px}.lucky-options{justify-content:flex-start}}
@media(max-height:520px){body[data-bound=true] #growth-copy,body[data-bound=true] #scout-copy{display:none}}

/* Orbit app destinations: thumb navigation on phones, a rail on wide screens. */
:root{--nav-height:76px}button{touch-action:manipulation}input,textarea{caret-color:var(--mint)}a{text-underline-offset:4px}*{scrollbar-width:thin;scrollbar-color:var(--mint) var(--space)}
.app-nav{position:absolute;bottom:0;left:0;right:0;display:flex;gap:8px;padding:8px 12px max(8px,env(safe-area-inset-bottom));background:var(--space);border-top:1px solid #bac8dc30;z-index:4}
.app-nav button{flex:1;min-height:56px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:0;border-radius:12px;background:transparent;color:var(--muted);font-size:12px;font-weight:600}
.app-nav button svg{width:24px;height:24px}.app-nav button[aria-current]{background:#354664;color:var(--yellow)}.app-nav button:hover{color:var(--yellow)}.app-nav button:active{transform:scale(.96)}
.home-planet{display:none}.home-records{display:flex;gap:24px;margin:20px 0;color:var(--muted);font-size:13px;font-variant-numeric:tabular-nums}.home-records strong{color:var(--mint);font-size:18px;margin-right:4px}
.rankings{inset:96px 24px calc(var(--nav-height) + env(safe-area-inset-bottom) + 12px);max-width:700px;margin:0 auto;overflow:auto;background:var(--surface);padding:28px;border-radius:16px}
.ranking-header h2{font:600 38px/1.05 Fredoka,sans-serif;letter-spacing:-.02em;margin:0 0 8px;text-wrap:balance}.ranking-header p{color:var(--muted);margin:0 0 24px}
.ranking-switch{display:flex;gap:8px;margin-bottom:16px}.ranking-switch button{flex:1;min-height:48px;border:1px solid #bac8dc55;border-radius:12px;background:transparent;color:var(--muted);padding:8px;font-size:14px}.ranking-switch button[aria-pressed=true]{background:var(--mint);color:var(--space);border-color:var(--mint);font-weight:700}.ranking-switch button:hover{border-color:var(--mint)}
.metrics button[aria-pressed=true]{background:var(--yellow);border-color:var(--yellow)}.ranking-columns{display:flex;justify-content:space-between;font-size:12px;color:var(--muted);padding:10px 0;border-bottom:1px solid #bac8dc30}
.ranking-list{list-style:none;margin:0;padding:0;font-variant-numeric:tabular-nums}.ranking-list li{display:flex;align-items:center;gap:12px;min-height:60px;border-bottom:1px solid #bac8dc30;padding:10px 4px;font-size:14px}.ranking-position{width:38px;flex-shrink:0;color:var(--muted)}.ranking-list li>span:nth-child(2){overflow-wrap:anywhere}.ranking-list strong{margin-left:auto;color:var(--yellow);white-space:nowrap}.ranking-list .is-you{color:var(--mint)}.ranking-list[aria-busy=true]{min-height:72px;background:linear-gradient(90deg,transparent,#9edfd012,transparent);background-size:200% 100%;animation:ranking-load 1.6s ease-in-out infinite}
@keyframes ranking-load{to{background-position:-200% 0}}#ranking-status{color:var(--muted);font-size:14px;line-height:1.6;margin:24px 0}.personal-standing{margin-top:24px}.personal-standing:empty{display:none}.ranking-rules{color:var(--muted);font-size:13px;margin-top:20px}.ranking-rules summary{cursor:pointer;min-height:48px;display:flex;align-items:center;color:var(--mint);text-decoration:underline}.ranking-rules p{line-height:1.6;margin:0}
.center-panel .run-progress{color:var(--yellow);font-size:13px;margin:12px 0 20px}.home-records strong,.run-progress{font-variant-numeric:tabular-nums}
@media(max-width:760px){
 body:not([data-playing=true]) .topbar{padding:12px 20px}.icon-button{min-width:48px;min-height:48px}.text-button{min-height:48px}
 body[data-view=home] .entry{inset:84px 24px calc(var(--nav-height) + env(safe-area-inset-bottom) + 8px);transform:none;width:auto;max-height:none;overflow:auto;text-align:center;padding:0 0 8px;scrollbar-width:none}
 .entry h1{font-size:clamp(30px,8.8vw,40px);line-height:1.04;margin:8px 0 0}.entry h1 br:nth-child(2){display:none}.home-planet{display:block;height:clamp(130px,22vh,185px);pointer-events:none}
 .entry .intro{font-size:14px;margin:0 auto 12px;max-width:32ch}.entry .intro br{display:none}.entry .rules{display:none}.home-records{justify-content:center;margin:16px 0;gap:20px}.home-records strong{font-size:18px}
 .entry .primary{min-height:58px}.entry .session-note{margin:10px 0 4px;line-height:1.45}.entry .entry-footer{margin-top:4px;min-height:48px;padding:0}.entry-footer #open-skins{display:none}.entry-footer #wallet{margin:auto;color:var(--mint)}.entry .distribution-links{justify-content:center;margin:0;gap:16px}.entry .distribution-links a,.entry .distribution-links button{min-height:48px}body.native #android-download{display:none}
 .demo-caption{display:none}.rankings{inset:84px 12px calc(var(--nav-height) + env(safe-area-inset-bottom) + 8px);padding:22px 18px}.ranking-header h2{font-size:32px}
 body[data-view=skins] #skins.workshop{inset:84px 12px calc(var(--nav-height) + env(safe-area-inset-bottom) + 8px);height:auto;width:auto;transform:none;max-height:none}
 .center-panel#results{max-height:calc(100% - 100px)}
}
@media(min-width:761px){.app-nav{top:110px;bottom:auto;left:20px;right:auto;width:82px;flex-direction:column;border:0;padding:8px;background:transparent}.app-nav button{min-height:68px;flex:none}.entry{left:clamp(130px,13vw,210px)}.rankings{left:125px;right:32px;bottom:24px}.home-controls{bottom:12px}body[data-view=skins] #skins.workshop{left:calc(50% + 44px);width:min(860px,calc(100% - 160px))}}
@media(max-height:520px){body:not([data-playing=true]) .topbar{padding:8px 20px}.rankings{top:70px}.ranking-header h2{font-size:28px}.home-planet{height:120px}.home-records{margin:10px 0}}

@media(max-width:760px){.entry .rules{display:block;margin:0 0 8px}.entry .rules p{display:none}.entry .rules p:last-child{display:block;font-size:12px;text-align:center;color:var(--mint)}.entry .rules .rule-dot{display:none}}
@media(min-width:761px) and (max-height:520px){body[data-view=home] .entry{top:76px;bottom:12px;transform:none;overflow:auto;max-height:none}.entry h1{font-size:30px}.entry .intro{font-size:13px;margin-bottom:10px}.app-nav{top:84px}body[data-view=skins] #skins.workshop{top:70px;bottom:12px;left:125px;right:12px;transform:none;width:auto;height:auto;max-height:none}}
