/* ============================================================
   game.css — Ausweich-Spiel im Dialog
   Verwendet von: index.html
   Setzt base.css voraus.
   ============================================================ */

.game-dialog {
  position: relative;
  border: none;
  border-radius: 20px;
  padding: 1.5rem 1.5rem 1.75rem;
  /* Gleiche Breite für beide Spiele-Dialoge (Arenen sind jeweils width: 100%) */
  width: min(480px, calc(100vw - 2rem));
  max-width: min(480px, calc(100vw - 2rem));
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.game-dialog::backdrop {
  background: rgba(26, 26, 46, 0.6);
}

.game-dialog__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-dialog__close:hover {
  background: rgba(0, 0, 0, 0.14);
}

.game-dialog__title {
  margin: 0 2rem 0.5rem 0;
  font-size: 1.35rem;
}

.game-dialog__hint {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  opacity: 0.85;
}

.game-timer {
  margin: 0 0 0.65rem;
  padding: 0.4rem 0.75rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--text);
  background: rgba(108, 92, 231, 0.12);
  border-radius: 10px;
}

.game-arena-wrap {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.08);
}

.game-arena {
  position: relative;
  width: 100%;
  height: min(384px, 66vh);
  min-height: 264px;
  background: linear-gradient(160deg, #e8f4f8 0%, #dfe6f0 100%);
  cursor: none;
}

.game-dot {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  top: 0;
  left: 0;
  will-change: transform;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.game-dot--player {
  background: radial-gradient(circle at 30% 30%, #74b9ff, #0984e3);
  z-index: 2;
}

.game-dot--enemy {
  background: radial-gradient(circle at 30% 30%, #ff7675, #d63031);
  z-index: 1;
}

.game-start-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -175%);
  z-index: 4;
  border: none;
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--btn-game-from), var(--btn-game-to));
  box-shadow: 0 8px 24px rgba(108, 92, 231, 0.35);
}

.game-start-btn[hidden] {
  display: none;
}

.game-boom {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: clamp(2.5rem, 10vw, 4rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #d63031;
  text-shadow: 0 0 20px #fff, 0 4px 0 #fab1a0;
  background: rgba(255, 255, 255, 0.35);
  z-index: 3;
  pointer-events: none;
}

.game-boom:not([hidden]) {
  display: flex;
}
