* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; background: #0d181d; color: #edf2e8; font: 13px system-ui, sans-serif; touch-action: none; }
[hidden] { display: none !important; }
canvas { position: fixed; inset: 0; width: 100%; height: 100%; touch-action: none; }
button { min-height: 42px; padding: 0 14px; border: 1px solid #d7dfd45d; border-radius: 7px; color: inherit; background: #172932df; font: 700 11px system-ui; letter-spacing: .08em; touch-action: manipulation; }
button:focus-visible { outline: 2px solid #f2c879; outline-offset: 2px; }
header { position: fixed; z-index: 10; inset: 14px 18px auto; display: flex; align-items: center; justify-content: space-between; pointer-events: none; text-shadow: 0 2px 5px #000; }
header button { pointer-events: auto; }
header b { font-size: 21px; letter-spacing: .18em; } header b span { color: #f0c476; font-size: 12px; } header small { display: block; margin-top: 3px; font-size: 8px; letter-spacing: .13em; }
#hud { position: fixed; z-index: 4; top: 80px; left: 18px; text-shadow: 0 2px 5px #000; pointer-events: none; }
#phase { color: #f0c476; font-size: 14px; font-weight: 800; letter-spacing: .18em; } #feedback { margin-top: 4px; color: #dce6d8c7; font-size: 11px; } .meters { display: flex; gap: 18px; margin-top: 14px; font-size: 9px; letter-spacing: .12em; } .meters b { color: #f0c476; font-size: 17px; margin-left: 4px; }
#reticle { position: fixed; z-index: 3; left: 50%; top: 50%; width: 4px; height: 4px; border: 1px solid #fff; border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none; }
#ammo { position: fixed; z-index: 4; left: 50%; bottom: 24px; width: 116px; text-align: center; transform: translateX(-50%); text-shadow: 0 2px 5px #000; pointer-events: none; } #ammo b { display: block; font-size: 28px; letter-spacing: .1em; } #ammo span { font-size: 9px; letter-spacing: .15em; } progress { display: block; width: 100%; height: 4px; margin-top: 8px; accent-color: #f0c476; }
#desktop-help { position: fixed; z-index: 4; left: 18px; bottom: 20px; color: #dce6d8b8; font-size: 9px; letter-spacing: .08em; text-shadow: 0 2px 5px #000; }
.card { position: fixed; z-index: 20; left: 50%; top: 50%; width: min(420px, calc(100vw - 32px)); padding: 28px; border: 1px solid #d7dfd45d; border-radius: 13px; background: #10212beF; box-shadow: 0 15px 50px #0008; transform: translate(-50%, -50%); text-align: center; } .card h1 { margin: 7px 0 10px; font-size: 30px; font-weight: 500; } .card p { color: #bdcbc2; line-height: 1.5; } .eyebrow { color: #f0c476 !important; font-size: 10px; font-weight: 800; letter-spacing: .16em; } .card button { margin-top: 12px; background: #f0c476; color: #17232a; border-color: #f0c476; }
#rotate-card { display: none; position: fixed; z-index: 50; inset: 0; align-items: center; justify-content: center; flex-direction: column; gap: 10px; background: #0c171d; text-align: center; } #rotate-card b { color: #f0c476; letter-spacing: .18em; } #rotate-card span { color: #c3d0c7; }
#touch-controls { display: none; } #stick { position: fixed; left: 20px; bottom: 34px; width: 126px; height: 126px; border: 1px solid #dce6d844; border-radius: 50%; background: #10232a88; } #stick i { position: absolute; left: 39px; top: 39px; width: 46px; height: 46px; border: 1px solid #dce6d888; border-radius: 50%; background: #dce6d822; } #stick span { position: absolute; inset: auto 0 10px; color: #dce6d899; font-size: 8px; letter-spacing: .18em; text-align: center; } #touch-actions { position: fixed; right: 16px; bottom: 34px; display: grid; grid-template-columns: repeat(2, 72px); gap: 7px; } #touch-fire { grid-column: span 2; background: #c99756ed; color: #14212a; }
#toast { position: fixed; z-index: 30; left: 50%; top: 110px; padding: 9px 14px; border-radius: 7px; background: #10212beF; opacity: 0; transform: translateX(-50%); pointer-events: none; }
@media (any-pointer: coarse) { #touch-controls { display: block; } #desktop-help { display: none; } }
@media (orientation: portrait) { #rotate-card { display: flex; } }
@media (max-width: 600px) { header { inset: 10px 12px auto; } header b { font-size: 17px; } #hud { top: 70px; left: 13px; } #ammo { bottom: 190px; left: auto; right: 14px; transform: none; } }

@media (any-pointer: coarse) { #touch-actions button, #pause { min-height: 44px; } }
