* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: radial-gradient(circle at 50% 0%, #12395c 0%, #071a2b 60%, #04101b 100%);
  color: #e6f4ff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  user-select: none;
}
header { text-align: center; padding: 14px 12px 4px; }
h1 { font-size: 20px; margin: 0 0 4px; letter-spacing: 1px; color: #8fd8ff; }
.sub { margin: 0; font-size: 12px; color: #7fa6c4; }
main { width: 100%; max-width: 520px; padding: 10px 12px 20px; display: flex; flex-direction: column; gap: 10px; }
.hud {
  display: flex; justify-content: space-between;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(143,216,255,.2);
  border-radius: 12px; padding: 10px 14px; font-size: 13px; color: #9dc4dc;
}
.hud b { color: #8fd8ff; font-size: 16px; }
.field {
  position: relative;
  height: min(62vh, 460px);
  border-radius: 16px;
  background:
    repeating-linear-gradient(0deg, rgba(143,216,255,.05) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, rgba(143,216,255,.05) 0 1px, transparent 1px 40px),
    linear-gradient(180deg, #0d2b44, #071a2b);
  border: 1px solid rgba(143,216,255,.25);
  overflow: hidden;
  cursor: crosshair;
}
.msg {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center; padding: 20px; background: rgba(4,16,27,.82);
  z-index: 5;
}
.msg h2 { margin: 0; font-size: 20px; color: #8fd8ff; }
.msg p { margin: 0; font-size: 13px; line-height: 1.7; color: #9dc4dc; max-width: 300px; }
.btn {
  margin-top: 6px;
  padding: 11px 26px; font-size: 15px; border-radius: 999px; border: none;
  background: linear-gradient(135deg, #37b6ff, #0b74c9); color: #fff; font-weight: 600;
  cursor: pointer; box-shadow: 0 6px 18px rgba(55,182,255,.35);
}
.btn:active { transform: scale(.96); }
.target {
  position: absolute; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: crosshair; animation: pop .16s ease-out;
}
.target::after {
  content: ""; width: 38%; height: 38%; border-radius: 50%;
  background: #fff; opacity: .9;
}
.target.red { background: radial-gradient(circle, #ff6b6b 0 30%, #d62828 30% 60%, #ff8f8f 60% 100%); box-shadow: 0 0 14px rgba(255,80,80,.6); }
.target.gold { background: radial-gradient(circle, #fff3b0 0 30%, #f4b400 30% 60%, #ffe066 60% 100%); box-shadow: 0 0 18px rgba(255,215,0,.75); }
@keyframes pop { from { transform: scale(.4); opacity: .3; } to { transform: scale(1); opacity: 1; } }
.hit { animation: hit .18s ease-out forwards; }
@keyframes hit { to { transform: scale(1.9); opacity: 0; } }
.float {
  position: absolute; font-size: 15px; font-weight: 700; color: #8fffb0;
  pointer-events: none; animation: rise .55s ease-out forwards; white-space: nowrap;
}
@keyframes rise { to { transform: translateY(-34px); opacity: 0; } }
.best { text-align: center; font-size: 13px; color: #7fa6c4; margin: 0; }
.best b { color: #ffd166; }
footer { font-size: 11px; color: #4a6b82; padding-bottom: 18px; }
