* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #9fd3ff; font-family: 'Malgun Gothic', sans-serif; }
canvas { display: block; }
[hidden] { display: none !important; }

#hud { position: fixed; top: 12px; left: 12px; display: flex; gap: 10px; flex-wrap: wrap; z-index: 2; pointer-events: none; }
.stat { background: rgba(0, 0, 0, 0.55); color: #fff; padding: 8px 12px; border-radius: 8px; font-size: 16px; }
.stat strong { font-size: 20px; margin-left: 4px; }

#crosshair { position: fixed; left: 50%; top: 50%; width: 0; height: 0; z-index: 2; pointer-events: none; }
#crosshair::before, #crosshair::after { content: ''; position: absolute; background: #00ff88; }
#crosshair::before { width: 2px; height: 14px; left: -1px; top: -7px; }
#crosshair::after { width: 14px; height: 2px; left: -7px; top: -1px; }

#hit { position: fixed; left: 50%; top: 45%; transform: translate(-50%, -50%); color: #ffeb3b; font-size: 28px; font-weight: bold; text-shadow: 0 0 6px #000; z-index: 2; pointer-events: none; }

#start { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; z-index: 3; }
#start button { font-size: 20px; padding: 14px 32px; border: none; border-radius: 10px; background: #ff4655; color: #fff; cursor: pointer; margin-top: 12px; }
.help { font-size: 14px; opacity: 0.8; }

@media (max-width: 600px) {
  .stat { font-size: 13px; padding: 6px 8px; }
  .stat strong { font-size: 16px; }
}
