:root { color-scheme: light; font-family: 'Avenir Next', 'PingFang SC', sans-serif; color: #244f50; background: #cbe7e7; }
* { box-sizing: border-box; }
body { margin: 0; overflow: hidden; }
main { position: relative; width: 100%; height: 100svh; min-height: 360px; isolation: isolate; }
canvas { display: block; width: 100%; height: 100%; touch-action: none; outline: none; cursor: none; }
canvas:focus-visible { outline: 3px solid #42817d; outline-offset: -4px; }
header, footer { position: absolute; left: 36px; right: 36px; display: flex; justify-content: space-between; gap: 20px; pointer-events: none; }
header { top: 29px; align-items: flex-start; }
h1 { margin: 0 0 7px; font-size: clamp(24px, 3vw, 36px); letter-spacing: -.055em; font-weight: 700; }
p { margin: 0; font-size: 13px; line-height: 1.7; }
nav { display: flex; gap: 8px; pointer-events: auto; }
button { font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; color: #244f50; border: 1px solid #3a797a30; background: #f9ffffad; padding: 10px 15px; border-radius: 9px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); touch-action: none; }
button:hover { background: #fff; }
button:focus-visible { outline: 3px solid #327d75; outline-offset: 3px; }
button:disabled { opacity: .4; cursor: wait; }
footer { bottom: 29px; align-items: flex-end; }
.counters { display: flex; gap: 22px; margin-top: 9px; font-size: 11px; color: #477372; }
.counters b { font: 500 18px 'Avenir Next', sans-serif; color: #244f50; font-variant-numeric: tabular-nums; margin-right: 3px; }
#fire { pointer-events: auto; padding: 15px 25px; background: #315a4b; color: #fff8e6; border: none; font-size: 14px; box-shadow: 0 5px 16px #315a4b1f; user-select: none; -webkit-user-select: none; }
#fire:active, #fire.firing { background: #214336; transform: translateY(2px); }
.feedback { position: absolute; left: 16px; right: 16px; top: 18%; display: flex; justify-content: center; pointer-events: none; }
#status { font-size: 13px; letter-spacing: .02em; padding: 9px 16px; background: #faffffb8; border-radius: 30px; color: #426d68; }
#status.hit { color: #315a4b; background: #fff8e6ed; }
#reticle { position: absolute; width: 28px; height: 28px; left: 50%; top: 50%; transform: translate(-50%, -50%); pointer-events: none; border: 1px solid #fffdf0cc; border-radius: 50%; box-shadow: 0 0 0 1px #315a4b50; }
#reticle i { position: absolute; width: 8px; height: 1px; background: #315a4b99; left: 9px; top: 13px; }
#reticle i + i { transform: rotate(90deg); }
@media (max-width: 640px) { header, footer { left: 18px; right: 18px; } header { top: 19px; flex-direction: column; gap: 12px; } nav { gap: 6px; } button { padding: 8px 11px; } footer { bottom: 19px; gap: 10px; } .instructions { max-width: 220px; font-size: 11px; } .counters { gap: 13px; } #fire { padding: 15px 16px; white-space: nowrap; } .feedback { top: 20%; } }
@media (prefers-reduced-motion: reduce) { button { transform: none !important; } }
