* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: #0f172a;
  color: #f8fafc;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 14px;
}

.game-wrapper {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.back-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background-color: #1e293b;
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid #334155;
}

.hud {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background-color: #1e293b;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #334155;
  text-align: center;
}

.hud-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hud-item .label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #94a3b8;
}

.hud-item .value {
  font-size: 1.6rem;
  font-weight: 800;
  color: #38bdf8;
}

.game-board {
  position: relative;
  width: 100%;
  height: min(450px, 62vh);
  min-height: 300px;
  background-color: #1e293b;
  border-radius: 16px;
  border: 2px solid #334155;
  overflow: hidden;
  cursor: crosshair;
  touch-action: none;
}

.overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.92);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 24px;
  z-index: 10;
  cursor: default;
}

.overlay.hidden {
  display: none;
}

.overlay h1 {
  font-size: 2.1rem;
  margin-bottom: 10px;
}

.overlay p {
  color: #94a3b8;
  max-width: 380px;
  line-height: 1.5;
  margin-bottom: 24px;
}

.primary-btn {
  background-color: #38bdf8;
  color: #0f172a;
  border: none;
  padding: 14px 32px;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
}

.target {
  position: absolute;
  border-radius: 50%;
  cursor: pointer;
  transform: translate(-50%, -50%);
  animation: popIn 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  touch-action: none;
}

.target.standard {
  width: 58px;
  height: 58px;
  background: radial-gradient(circle, #38bdf8 30%, #0284c7 100%);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.5);
  border: 3px solid #ffffff;
}

.target.bonus {
  width: 38px;
  height: 38px;
  background: radial-gradient(circle, #facc15 30%, #ca8a04 100%);
  box-shadow: 0 0 18px rgba(250, 204, 21, 0.7);
  border: 2px solid #ffffff;
}

.score-popup {
  position: absolute;
  font-weight: 800;
  font-size: 1.2rem;
  pointer-events: none;
  animation: floatUp 0.6s ease-out forwards;
}

@keyframes popIn {
  from { transform: translate(-50%, -50%) scale(0); }
  to { transform: translate(-50%, -50%) scale(1); }
}

@keyframes floatUp {
  0% { opacity: 1; transform: translate(-50%, -50%); }
  100% { opacity: 0; transform: translate(-50%, -130%); }
}