/* One viewport, one game. Shared by the browser and Android wrapper. */
html,body{width:100%;height:100%;overflow:hidden;overscroll-behavior:none}
body{height:100dvh;user-select:none;-webkit-user-select:none}
main{width:100%;height:100%;max-width:none;margin:0;padding:0}
.game-shell,.game-shell:fullscreen{position:relative;width:100%;height:100%;border:0;border-radius:0;box-shadow:none;display:block}
.arena,.game-shell:fullscreen .arena{width:100%;height:100%;min-height:0}
.game-topbar{position:absolute;top:calc(env(safe-area-inset-top,0px) + 12px);right:calc(env(safe-area-inset-right,0px) + 12px);height:44px;padding:0;background:none;border:0;z-index:10;pointer-events:none}
.game-status{display:none}.game-tools{gap:6px;pointer-events:auto}
.game-tools button{display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;border:1px solid #b298f533;border-radius:12px;padding:10px;background:#11101dd9;color:#ded3f4;font-size:20px}
.menu-screen{align-items:center}.menu-content{width:100%;max-width:54%;padding:40px 7%}.menu-content h2{font-size:clamp(64px,9vw,130px);line-height:.95;margin:20px 0}.menu-content p{font-size:16px}.menu-kicker{font-size:12px;letter-spacing:3px;color:#c4b0e8}.start{width:min(300px,100%);min-height:56px;font-size:14px}
.menu-best{display:flex;align-items:center;gap:16px;margin-top:24px;font:11px var(--mono);color:#a9a0ba}.menu-best strong{color:#e7def4;font:28px var(--heading);letter-spacing:1px}.menu-best strong span{font:10px var(--mono);margin-left:6px;color:#a9a0ba}
.hud{top:calc(env(safe-area-inset-top,0px) + 75px);left:calc(env(safe-area-inset-left,0px) + 20px);right:calc(env(safe-area-inset-right,0px) + 20px)}
.boss-hud{top:calc(env(safe-area-inset-top,0px) + 164px)}
.joystick{left:calc(env(safe-area-inset-left,0px) + 24px);bottom:calc(env(safe-area-inset-bottom,0px) + 28px);width:100px;height:100px}.joystick:before,.joystick:after{top:49px}#stick{left:30px;top:30px}
#dashTouch{right:calc(env(safe-area-inset-right,0px) + 24px);bottom:calc(env(safe-area-inset-bottom,0px) + 38px);width:82px;height:82px}#dashTouch b{font-size:12px}
.modal{max-height:100%;padding:calc(env(safe-area-inset-top,0px) + 76px) 24px calc(env(safe-area-inset-bottom,0px) + 24px)}.primary{min-height:48px}.text-button{min-height:44px}.screen.shade{background:#090a12e8}.dash-desktop{bottom:28px}
@media(max-width:600px){.menu-screen{align-items:flex-end}.menu-content{max-width:100%;padding:24px 28px max(48px,env(safe-area-inset-bottom,0px))}.menu-content h2{font-size:clamp(64px,19vw,108px);margin:16px 0}.menu-content p{font-size:14px}.menu-best{margin-top:18px}.start{width:100%}.hud{left:16px;right:16px}.boss-hud{width:calc(100% - 32px)}}
@media(orientation:landscape) and (max-height:540px){.game-topbar{top:calc(env(safe-area-inset-top,0px) + 8px)}.game-tools button{min-width:44px;min-height:44px}.hud{top:calc(env(safe-area-inset-top,0px) + 12px);right:calc(env(safe-area-inset-right,0px) + 222px);left:calc(env(safe-area-inset-left,0px) + 20px)}.hud-center{left:55%}.hud-left strong{font-size:24px}.hud-center strong{font-size:16px}.boss-hud{top:calc(env(safe-area-inset-top,0px) + 90px);padding:6px 10px;max-width:360px}.boss-heading strong{font-size:18px}.boss-hud p{margin-top:4px}.menu-screen{align-items:center}.menu-content{max-width:60%;padding:16px 6%}.menu-content h2{font-size:64px;margin:10px 0}.menu-content p{margin:8px 0}.menu-kicker{font-size:10px}.start{margin-top:14px;min-height:48px}.menu-best{margin-top:10px}.modal{padding-top:60px;padding-bottom:16px}.modal h2{font-size:32px;margin:8px 0}.upgrade-list{margin-top:12px;gap:8px}.upgrade{padding:12px}.final-score{font-size:40px}.results{margin:10px 0}.joystick{bottom:16px;width:88px;height:88px}.joystick:before,.joystick:after{top:43px}#stick{left:24px;top:24px}#dashTouch{bottom:24px;width:72px;height:72px}}

/* Player health uses the same three hit points as the original life system. */
.player-health{width:112px;margin-top:9px}.health-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;font:10px var(--mono);color:#c7c0d4;line-height:1.4}.health-heading b{font-weight:700;color:#eeedf3}.health-track{height:12px;margin-top:5px;border:1px solid #bbf7d080;border-radius:4px;background:#162329;overflow:hidden;box-shadow:0 2px 12px #0007}.health-track i{display:block;width:100%;height:100%;background:linear-gradient(90deg,#4cce9d,#aff5d6);transition:width .18s ease,background .18s ease}.health-track.low-health{border-color:#ff8399;background:#331d2c}.health-track.low-health i{background:#ff8399}.health-track.hurt{box-shadow:0 0 12px #ff839980}
@media(orientation:landscape) and (max-height:540px){.player-health{margin-top:4px}.health-track{height:10px;margin-top:3px}}

/* Mob-family bosses keep readable names and distinct warning colors. */
.boss-heading strong{flex:1;min-width:0;font-size:20px;line-height:1.1}.boss-heading small{display:block;font:10px var(--mono);letter-spacing:.5px;margin-top:4px;white-space:nowrap}.boss-heading>span{font-size:10px}.boss-hud p{font-size:11px}
.boss-hud[data-boss="prime"]{border-color:#ff91b366}.boss-hud[data-boss="prime"] .boss-heading>span,.boss-hud[data-boss="prime"] p{color:#ffb2cd}.boss-hud[data-boss="prime"] .boss-heading strong{color:#ffd4e3}.boss-hud[data-boss="prime"] .boss-track i{background:linear-gradient(90deg,#d25283,#ffb2cd)}
.boss-hud[data-boss="reaper"]{border-color:#8ee8ff66}.boss-hud[data-boss="reaper"] .boss-heading>span,.boss-hud[data-boss="reaper"] p{color:#8ee8ff}.boss-hud[data-boss="reaper"] .boss-heading strong{color:#d4f7ff}.boss-hud[data-boss="reaper"] .boss-track i{background:linear-gradient(90deg,#4bafcd,#b3f4ff)}
@media(max-width:600px){.boss-heading strong{font-size:19px}.boss-heading>span{font-size:9px}.boss-heading small{font-size:10px;letter-spacing:0}.boss-hud p{font-size:11px}}
@media(orientation:landscape) and (max-height:540px){.boss-heading strong{font-size:18px}.boss-heading small{display:none}.boss-hud p{font-size:11px}}

/* The boss bar carries combat hints; live announcements stay off the arena. */
.boss-active .toast{opacity:0}
