.game-setup {
  position: fixed;
  inset: 0;
  z-index: 10500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(2, 8, 20, 0.88);
  font-family: Rajdhani, "Segoe UI", sans-serif;
  color: #f4f9ff;
}

.game-setup[hidden] {
  display: none !important;
}

.game-setup__panel {
  width: min(480px, 100%);
  max-height: 90vh;
  overflow: auto;
  padding: 20px 22px;
  border: 1px solid rgba(90, 190, 255, 0.38);
  border-radius: 8px;
  background: rgba(4, 18, 38, 0.95);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.55);
}

.game-setup__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.game-setup__title {
  margin: 0;
  font-family: Orbitron, sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: #3ec8ff;
}

.game-setup__close {
  border: none;
  background: transparent;
  color: #9ec8e8;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.game-setup__intro {
  margin: 0 0 14px;
  font-size: 0.95rem;
  color: #9ec8e8;
}

.game-setup__map-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
  margin-bottom: 16px;
}

.game-setup__field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
  font-size: 0.85rem;
  color: #b8d4ec;
}

.game-setup__field--wide {
  grid-column: 1 / -1;
}

.game-setup__field input,
.game-setup__field select {
  padding: 8px 10px;
  border: 1px solid rgba(90, 190, 255, 0.35);
  border-radius: 4px;
  background: rgba(2, 12, 28, 0.9);
  color: #f4f9ff;
  font: inherit;
}

.game-setup__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.game-setup__btn {
  padding: 8px 14px;
  border: 1px solid rgba(90, 190, 255, 0.38);
  border-radius: 4px;
  background: rgba(4, 18, 38, 0.72);
  color: #f4f9ff;
  font: inherit;
  cursor: pointer;
}

.game-setup__btn--primary {
  border-color: rgba(62, 200, 255, 0.65);
  background: rgba(20, 80, 120, 0.55);
}

body.main-menu-open .game-setup {
  z-index: 10050;
}
