:root{color-scheme:dark;--ice:#83dcff;--snow:#f3fbff;--navy:#102b51;--yellow:#ffe96b}
*{box-sizing:border-box}
body{margin:0;min-height:100vh;background:radial-gradient(circle at 50% -20%,#447eb1,#193b6a 48%,#0b1b36);color:#fff;font-family:Inter,-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Malgun Gothic",sans-serif;touch-action:manipulation}
button{font:inherit}
.app-shell{width:min(100%,980px);margin:auto;padding:max(13px,env(safe-area-inset-top)) 9px max(28px,env(safe-area-inset-bottom))}
header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.eyebrow{margin:0;color:#bcecff;font-size:10px;font-weight:900;letter-spacing:.16em}
h1{margin:1px 0 0;font-size:clamp(25px,7vw,39px);letter-spacing:-.04em}
.header-actions{display:flex;gap:5px}
.header-actions button{width:41px;height:41px;border:1px solid #c7eeff48;border-radius:11px;background:#ffffff11;color:#fff;font-size:19px;cursor:pointer}
.stats{display:grid;grid-template-columns:repeat(5,1fr);gap:4px;margin-bottom:7px}
.stats div{padding:6px 3px;border:1px solid #ffffff1c;border-radius:8px;background:#071b35a6;text-align:center}
.stats span{display:block;color:#8fc7e6;font-size:8px;font-weight:900;letter-spacing:.1em}
.stats strong{display:block;margin-top:1px;font-family:"SFMono-Regular",Consolas,monospace;font-size:clamp(12px,3.4vw,18px)}
#lives{color:#ff809e;letter-spacing:.08em}
.game-stage{position:relative;width:100%;border:2px solid #8adfff;border-radius:15px;background:#bdeeff;box-shadow:0 22px 65px #020b18a8,0 0 45px #62d5ff36;overflow:hidden}
canvas{display:block;width:100%;height:auto;aspect-ratio:3/2;touch-action:none}
.overlay{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px;background:#0a2851b8;backdrop-filter:blur(4px);text-align:center}
.overlay p{max-width:390px;margin:3px 0;color:#d8f2ff;font-size:clamp(12px,3vw,15px)}
.overlay h2{margin:4px 0;font-size:clamp(28px,8vw,48px);text-shadow:0 4px 0 #17436e}
.overlay #overlayKicker{color:var(--yellow);font-size:11px;font-weight:900;letter-spacing:.2em}
.overlay button{margin-top:13px;border:0;border-radius:999px;background:var(--yellow);color:#2b2600;padding:12px 25px;font-weight:900;box-shadow:0 0 25px #ffe96b60;cursor:pointer}
.message{min-height:21px;margin:8px 0 3px;text-align:center;color:#d0ecfb;font-size:13px}
.controls{display:flex;align-items:center;justify-content:space-between;width:min(100%,670px);margin:5px auto 12px;padding:0 5px;gap:10px}
.move-controls,.action-controls{display:flex;gap:8px}
.controls button{width:64px;height:54px;border:1px solid #86d8f2;border-radius:15px;background:linear-gradient(#326b9c,#1e4a79);color:#fff;font-size:21px;font-weight:900;box-shadow:0 6px 0 #061a32;cursor:pointer;user-select:none;-webkit-user-select:none}
.controls button.active,.controls button:active{transform:translateY(4px);box-shadow:0 2px 0 #061a32;background:#4689bd}
.controls .jump{width:78px;border-color:#edcb55;background:linear-gradient(#ffe882,#dfba37);color:#3a2c00;font-size:13px;box-shadow:0 6px 0 #806414}
.controls .shoot{width:96px;border-color:#d5f5ff;background:linear-gradient(#eefcff,#94dbf5);color:#103b62;font-size:12px;box-shadow:0 6px 0 #397fa4}
details{max-width:740px;margin:12px auto;padding:11px 14px;border:1px solid #ffffff1b;border-radius:12px;background:#081d39;color:#bcd8e9;font-size:13px;line-height:1.5}
summary{color:#eefaff;font-weight:800;cursor:pointer}
details p{margin:8px 0 2px}
[hidden]{display:none!important}
@media(max-width:520px){.app-shell{padding-left:5px;padding-right:5px}.stats{gap:3px}.header-actions button{width:38px;height:38px}.controls{margin-top:2px}.controls button{width:58px;height:50px}.controls .jump{width:68px}.controls .shoot{width:84px;font-size:11px}}
