:root{color-scheme:dark;--sc-ink:#e9f5fa;--sc-muted:#9ab2c5;--sc-accent:#7cebdc;--sc-scale:1;--sc-width:390px;--sc-height:844px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:#060e1c;color:var(--sc-ink)}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at top,#142f43 0,#060e1c 68%);min-height:100dvh}button,a,input{font:inherit}button,a{touch-action:manipulation}button{border:1px solid #436074;border-radius:13px;min-height:48px;padding:10px 18px;background:#182a3e;color:var(--sc-ink);font-weight:700;cursor:pointer;transition:background .16s,border-color .16s,box-shadow .16s}button:hover{background:#243e52;border-color:#8ab9c8}button:active{background:#35526a;box-shadow:inset 0 0 0 2px #9bf6ea}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #ffdc9d;outline-offset:3px}button:disabled{opacity:.4;cursor:default}button.primary{background:var(--sc-accent);border-color:#a5f7e8;color:#082d37;box-shadow:0 6px 26px #5bd9ca18}button.primary:hover{background:#b2f7e7}[hidden]{display:none!important}h1,h2,p{margin:0}small{font-size:12px}button small{display:block;color:#b5ced8;font-weight:500;margin-top:4px}.primary small{color:#234750}.sc-main{max-width:920px;margin:auto;padding:0 20px 40px}.sc-main-head{height:80px;display:grid;grid-template-columns:58px 1fr 48px;gap:16px;align-items:center}.sc-main-head h1{text-align:center;font-size:25px;letter-spacing:-.7px}.sc-main-head a{display:flex;align-items:center;justify-content:center;gap:3px;text-decoration:none;color:#e6f8ff;border:1px solid #436074;border-radius:12px;width:58px;height:48px}.sc-main-head a img{width:25px;height:25px;object-fit:contain}.sc-main-head button{padding:0;width:48px;font-size:22px}.sc-hero{position:relative;overflow:hidden;border:1px solid #41667b;border-radius:26px;background:#0b1d30;min-height:420px;isolation:isolate}.sc-hero>img{display:block;width:100%;height:420px;object-fit:cover;object-position:50% 35%}.sc-hero:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#071628 0%,#071628d9 18%,transparent 70%);z-index:0}.sc-hero-copy{position:absolute;bottom:30px;left:30px;right:30px;z-index:1}.sc-kicker{font-size:12px;font-weight:800;color:var(--sc-accent);letter-spacing:2px;text-transform:uppercase}.sc-hero h2{max-width:480px;margin:12px 0;font-size:32px;line-height:1.25;letter-spacing:-1px}.sc-hero-copy>p:last-child{font-size:14px;color:#cadce6}.sc-main-bottom{text-align:center;padding:22px 0 30px}.sc-main-bottom>p{color:#b4c9d6;font-size:14px;margin-bottom:15px}#startBtn{width:min(100%,380px);height:56px;font-size:18px}#saveStatus{display:block;color:#819dae;margin-top:12px;min-height:18px}.sc-guide{padding:26px 0;border-top:1px solid #294253;line-height:1.8;color:#b5cbd8}.sc-guide h2{color:#e8f7fc;font-size:22px;margin-bottom:10px}.sc-guide p{max-width:76ch}.sc-playing,.sc-playing body{overflow:hidden;overscroll-behavior:none;height:100%;touch-action:none}.sc-screen{position:fixed;inset:0;overflow:hidden;max-width:920px;margin:auto}.sc-envelope{position:absolute;top:0;left:50%;width:var(--sc-width);height:var(--sc-height);transform:translate(-50%) scale(var(--sc-scale));transform-origin:top center;background:radial-gradient(ellipse at 50% 40%,#153b4b 0,#0b1b2d 55%,#071425);overflow:hidden;display:flex;flex-direction:column}.sc-head{height:48px;min-height:48px;display:grid;grid-template-columns:48px 1fr 48px;gap:12px;align-items:center;padding:0 12px;position:relative;z-index:3;background:#0c1b2ce8}.sc-head button{width:48px;height:48px;border-radius:11px;padding:0;font-size:22px}.sc-head>span{text-align:center;font-size:14px;color:#c4d6e1}.sc-battle-state{display:flex;justify-content:space-between;gap:10px;min-width:0;font-size:12px;align-items:center}.sc-battle-state strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sc-battle-state span{color:#ffdc9d;font-weight:800;direction:ltr}.sc-stage-space{position:relative;flex:1;min-height:0}#mapPage{position:absolute;inset:0;overflow:hidden}.sc-tabs{height:56px;min-height:56px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:6px;background:#0c192c;border-top:1px solid #304657}.sc-tabs button{height:44px;min-height:44px;padding:6px 8px;font-size:14px}.sc-tabs button[aria-selected=true]{background:#234e5a;border:1px solid var(--sc-accent);color:#bbfff1}#equipmentPage{height:100%;padding:25px;overflow:auto}#equipmentPage h2{font-size:22px;margin-bottom:24px}#tools{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}.sc-tool{height:176px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px}.sc-tool svg{width:90px;height:60px}.sc-tool b{font-size:18px}.sc-tool.chosen{border-color:var(--sc-accent);background:#234655;box-shadow:inset 0 0 0 1px var(--sc-accent)}#liveBattle{height:100%;display:flex;flex-direction:column}.sc-objective{height:36px;min-height:36px;padding:0 16px;display:flex;align-items:center;justify-content:space-between;gap:14px;font-size:12px;background:#102338}.sc-objective strong{color:#91efdd;white-space:nowrap;font-size:12px}.sc-meter{height:4px;min-height:4px;background:#1b364a}.sc-meter i{height:4px;display:block;background:#7cebdc;transition:width .16s}.sc-arena{position:relative;flex:1;min-height:0;overflow:hidden}.sc-arena canvas{display:block;width:100%;height:100%;outline:none;touch-action:none}.sc-auto{position:absolute;top:12px;left:14px;color:#92baca;font-size:10px;letter-spacing:1.2px;pointer-events:none}#gameMessage{position:absolute;left:16px;right:16px;bottom:14px;min-height:24px;color:#c7f5ed;font-size:12px;line-height:1.4;text-align:center;pointer-events:none;text-shadow:0 2px 4px #000}.sc-control-row{height:76px;min-height:76px;display:grid;grid-template-columns:1fr 104px 104px;gap:10px;padding:8px 12px;background:#0d2032;border-top:1px solid #2e4b5e}.sc-control-row button{height:60px;padding:4px 8px;font-size:14px;border-color:#80d5d1;background:#1c414b}.sc-control-row button.cooling{border-color:#3b566d;background:#172c40}.sc-control-hint{align-self:center;color:#83a3b9;font-size:10px;line-height:1.8;direction:ltr}.sc-result{height:100%;display:grid;align-items:center;justify-items:center;padding:20px;overflow:auto;background:radial-gradient(ellipse,#1a4550,#08182a 70%)}.sc-result-card{width:min(100%,560px);text-align:center;padding:24px 12px}.sc-result-emblem{font-size:80px;color:#9ef4dc;line-height:1.5;text-shadow:0 0 50px #86e8d566}.sc-result h2{font-size:30px;letter-spacing:-1px}.sc-stars{height:54px;line-height:54px;color:#ffda8c;font-size:30px;letter-spacing:8px}#resultCopy{font-size:14px;color:#9fb8ca;min-height:20px}.sc-result-facts{display:grid;grid-template-columns:1fr 1fr;margin:25px 0;gap:14px}.sc-result-facts span{border:1px solid #315569;border-radius:14px;padding:14px;color:#9bbac9;font-size:12px}.sc-result-facts b{display:block;font-size:20px;color:#e3f7fa;margin-top:8px}.sc-result-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.sc-result-actions button{padding:10px 4px;font-size:13px;min-height:52px}dialog{background:#112b3d;color:#e8f4fa;border:1px solid #6ca5b2;border-radius:22px;max-width:min(440px,calc(100vw - 32px));padding:26px;box-shadow:0 30px 100px #0009}dialog::backdrop{background:#020811c9}dialog h2{font-size:24px;margin-bottom:16px}dialog p{font-size:15px;line-height:1.7;margin-bottom:22px;color:#bad0dd}.sc-dialog-actions{display:grid;gap:10px}dialog label{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:20px 0}dialog input[type=range]{width:170px;accent-color:#7cebdc}dialog input[type=checkbox]{width:24px;height:24px;accent-color:#7cebdc}#settingsClose{width:100%;margin-top:10px}.sc-main,.sc-envelope,.sc-result-card,dialog[open]{animation:sc-enter .24s ease-out}@keyframes sc-enter{0%{opacity:0}to{opacity:1}}.sc-stage-card small{transition:color .18s}.sc-tool svg{transition:filter .2s}.sc-tool.chosen svg{filter:drop-shadow(0 0 8px #89ead34d)}@media(max-width:480px){.sc-main{padding-inline:16px}.sc-main-head{height:88px}.sc-main-head h1{font-size:21px}.sc-hero{min-height:420px}.sc-hero-copy{left:22px;right:22px;bottom:25px}.sc-hero h2{font-size:29px}.sc-main-bottom{padding-top:20px}.sc-guide{margin-top:10px}}@media(max-height:500px)and (min-width:600px){.sc-map-info{top:calc(38% + 103px);font-size:11px}.sc-muted{display:none}.sc-result{align-items:start}.sc-result-card{padding:0 8px}.sc-result-emblem{font-size:36px;line-height:1}.sc-result h2{font-size:23px}.sc-stars{height:35px;line-height:35px;font-size:24px}.sc-result-facts{margin:10px 0}.sc-result-facts span{padding:6px}.sc-result-facts b{font-size:16px;margin-top:3px}.sc-result .sc-kicker{font-size:10px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}.sc-main-content .sc-hero{width:100%}.sc-battle-content{height:100%;overflow:hidden}.sc-control-hint #pauseBtn{width:48px;height:48px;padding:0;font-size:20px}.sc-battle-state[data-wp-frame-info]{display:flex;align-items:center;justify-content:space-between}.sc-battle-state #timeValue{margin-inline-start:auto}.sc-envelope:has(#resultScreen:not([hidden])){grid-template-rows:0 minmax(0,1fr)!important}#mapPage[data-wp-stage-selector]{position:relative}.sc-envelope [data-wp-frame-nav]{margin:0}#equipmentPage{overflow:auto}.sc-main [data-wp-frame-title]{font-size:24px}dialog{max-height:calc(100dvh - 40px);overflow:auto}#loadingPanel{pointer-events:none}.sc-main-content{width:100%}[data-wp-logical-battle-canvas]>.sc-result{position:absolute;inset:0;z-index:8;height:100%}.is-failure .sc-result-emblem{color:#f6a1ab;text-shadow:0 0 40px #d1587166}.sc-result-actions button{white-space:normal}.sc-arena{background:linear-gradient(#05102055,#05102077),url(/games/space-rocks/assets/nebula-campaign-v1.png) center/cover}.sc-arena canvas[data-renderer=three-r180]{background:transparent}.sc-hero{min-height:0;aspect-ratio:1}.sc-hero>img{height:100%;aspect-ratio:1;object-fit:cover}.sc-hero:after{display:none}.sc-main-bottom .sc-hero-copy{position:static;margin-bottom:20px;text-align:start}.sc-main-bottom .sc-hero-copy h2{font-size:25px;line-height:1.4;margin:10px 0}.sc-main-bottom .sc-hero-copy p:last-child{font-size:13px;color:#a9c6d3}.sc-main-bottom{display:flex;flex-direction:column;justify-content:center;align-items:stretch}.sc-main-bottom>p{margin-top:8px}.sc-main-bottom #startBtn{align-self:center}@media(min-width:700px){.sc-main-content .sc-hero{width:420px;height:420px}.sc-main-bottom{padding:18px 0;text-align:start}.sc-main-bottom #startBtn{width:100%}.sc-main-bottom .sc-hero-copy h2{font-size:29px}}.sc-hero{border:0}html body[data-game-id=space-rocks] [data-wp-frame-content=main]>.sc-hero-copy{position:static!important;inset:auto!important;z-index:auto!important;text-align:start}html body[data-game-id=space-rocks] [data-wp-frame-content=main]>.sc-hero-copy h2{max-width:480px;margin:12px 0;font-size:clamp(24px,3vw,32px);line-height:1.25;letter-spacing:-1px}html.wp-frame-main-flow,html.wp-frame-main-flow body,html body[data-game-id=space-rocks][data-wp-interface-version="9"] .sc-hero{background:transparent!important}html body[data-game-id=space-rocks][data-wp-interface-version="9"] .sc-main .sc-kicker,html body[data-game-id=space-rocks][data-wp-interface-version="9"] .sc-hero-copy>p:last-child,html body[data-game-id=space-rocks][data-wp-interface-version="9"] #saveStatus{color:var(--wp-ui-text)!important}html body[data-game-id=space-rocks][data-wp-interface-version="9"] [data-wp-frame-content=main] [data-wp-frame-progress]{height:44px!important;min-height:40px!important;max-height:44px!important;white-space:nowrap!important;overflow:hidden!important}@media(max-height:500px)and (min-width:600px){html body[data-game-id=space-rocks] dialog{max-height:calc(100dvh - 16px);padding:14px 20px}html body[data-game-id=space-rocks] dialog h2{font-size:21px;margin-bottom:8px}html body[data-game-id=space-rocks] dialog p{font-size:13px;line-height:1.4;margin-bottom:12px}.sc-dialog-actions{gap:8px}}
