.hud #shop{background:#ffd16a;border:2px solid #fff0b4;box-shadow:0 0 18px #e9b84355;color:#101820;letter-spacing:1px;min-height:48px}
.dialog-tools{position:sticky;top:-24px;z-index:5;display:flex;justify-content:flex-end;background:#142431;padding:8px 0;min-height:0}
#shop-close{background:#f6d078;color:#142431;font-weight:750;border:2px solid #fff0ba;min-height:44px}
.dialog-tools:has([hidden]){display:none}
html:fullscreen,html.game-fullscreen{width:100%;height:100%;background:#0b131c}
html:fullscreen body,html.game-fullscreen body{height:100dvh!important;overflow:hidden!important}
html:fullscreen .arcade-play-viewport,html.game-fullscreen .arcade-play-viewport{height:100dvh!important;width:100%;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}
html.game-fullscreen{position:fixed;inset:0;z-index:9999}
header{gap:8px;flex-shrink:0}footer{flex-shrink:0}#weapons{width:100%;scrollbar-width:thin}#stats{flex:1}#hearts{max-width:35vw;display:block;max-height:52px;overflow:auto}
@media(max-width:600px){.dialog-tools{top:-18px}header button{font-size:11px;padding:6px;min-height:40px}.hud #shop{min-width:96px;font-size:13px}#fullscreen{white-space:nowrap}}
@media(max-height:520px){header{padding:2px 8px;gap:6px;flex-wrap:nowrap;font-size:11px}header strong{font-size:12px;letter-spacing:1px}header button{min-height:32px;padding:4px 7px;font-size:11px}main{padding:3px 8px}.hud{padding-bottom:2px;gap:16px}.hud small{font-size:9px}.hud b{font-size:18px}.hud #shop{min-height:34px;padding:4px 12px}#hearts{font-size:16px;max-height:28px}.xp-line{margin-bottom:2px;font-size:11px}.xp-line button{min-height:30px;padding:3px 10px}#perks{max-height:16px;margin-bottom:2px;font-size:10px}footer{padding-top:3px;gap:3px;font-size:10px}#weapons button{min-height:30px;padding:4px 9px;font-size:11px}#stats{font-size:10px}.desktop-help{display:none}.stick{width:80px;height:80px;bottom:10px}.stick i{width:32px;height:32px}#banner{top:5px;padding:3px 9px;font-size:11px}#boss-hud{top:31px;padding:3px 8px;width:320px}#boss-health{height:5px;margin:3px 0}#boss-attack{font-size:10px}}
