.reflex-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 12px;
}

.glass-box {
  border: 1px solid #dce5f3;
  border-radius: 14px;
  background: #ffffff;
  padding: 14px;
}

.controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.controls select {
  min-height: 36px;
  border: 1px solid #cfdbef;
  border-radius: 10px;
  padding: 0 10px;
  font: inherit;
}

#game-area {
  position: relative;
  width: 100%;
  min-height: 340px;
  height: clamp(340px, 48vh, 520px);
  border: 1px solid #cfdbef;
  border-radius: 14px;
  background: linear-gradient(160deg, #edf4ff, #dce9ff);
  overflow: hidden;
  cursor: crosshair;
}

.overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  background: rgba(15, 23, 42, 0.55);
  color: #ffffff;
  z-index: 10;
  padding: 16px;
}

.overlay.hidden {
  display: none;
}

.overlay h3 {
  margin: 0 0 6px;
}

.overlay p {
  margin: 0;
}

.hud {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.hud p {
  margin: 0;
  border: 1px solid #dce5f3;
  border-radius: 10px;
  background: #f9fbff;
  padding: 8px 6px;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 800;
}

#player-name {
  margin-top: 8px;
  width: 100%;
  border: 1px solid #cfdbef;
  border-radius: 10px;
  padding: 10px 11px;
  font: inherit;
}

.target {
  position: absolute;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 8px 16px rgba(17, 24, 39, 0.24);
  cursor: pointer;
}

.target--normal {
  background: radial-gradient(circle at 30% 30%, #ffffff, #3b82f6 58%, #1d4ed8);
}

.target--bonus {
  background: radial-gradient(circle at 30% 30%, #fff8df, #f59e0b 58%, #d97706);
}

.target--trap {
  background: radial-gradient(circle at 30% 30%, #ffe2e2, #ef4444 58%, #b91c1c);
}

#leaderboard-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}

#leaderboard-list li {
  padding: 8px 0;
  border-bottom: 1px solid #e3ebf8;
  font-size: 0.9rem;
}

#leaderboard-list li:last-child {
  border-bottom: 0;
}

@media (max-width: 980px) {
  .reflex-shell {
    grid-template-columns: 1fr;
  }

  .hud {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
