.game-page {
  max-width: 100%;
}

.arena {
  position: relative;
  width: 100%;
  min-height: min(72dvh, 520px);
  border-radius: 1.25rem;
  border: 1px solid var(--stroke);
  background:
    linear-gradient(180deg, rgba(14, 116, 144, 0.25) 0%, rgba(6, 16, 24, 0.6) 100%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(56, 189, 248, 0.12), transparent 70%);
  overflow: hidden;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

.target {
  position: absolute;
  width: clamp(3.25rem, 14vw, 4.25rem);
  height: clamp(3.25rem, 14vw, 4.25rem);
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.35), transparent 55%),
    linear-gradient(145deg, #0ea5e9, #0369a1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  font-size: clamp(1.5rem, 7vw, 2rem);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform: scale(0);
  animation: target-in 0.18s ease forwards;
  -webkit-tap-highlight-color: transparent;
}

.target:active {
  transform: scale(0.92) !important;
}

.target--hit {
  animation: target-pop 0.22s ease forwards;
  pointer-events: none;
}

@keyframes target-in {
  to {
    transform: scale(1);
  }
}

@keyframes target-pop {
  to {
    transform: scale(1.35);
    opacity: 0;
  }
}

.overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right))
    max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  background: rgba(6, 16, 24, 0.72);
  backdrop-filter: blur(8px);
  z-index: 50;
}

.overlay[hidden] {
  display: none;
}

.overlay__panel {
  width: min(22rem, 100%);
  padding: 1.75rem 1.5rem;
  border-radius: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  text-align: center;
}

.overlay__title {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
}

.overlay__msg {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.45;
}

.overlay__score {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  color: var(--accent);
  font-weight: 800;
}

.btn-start {
  width: 100%;
  min-height: 52px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent-hot), #0284c7);
  color: #061018;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.35);
}

.btn-start:active {
  transform: scale(0.98);
}
