/* ==========================================================================
   MENTAL MATH SPEED ARENA — GAME STYLES (style.css)
   Token-based styles for math challenge, responsive 360px touch grid.
   ========================================================================== */

.math-game-container {
  max-width: 580px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Difficulty Selector Pills */
.difficulty-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.diff-btn {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--duration-fast) ease;
}

.diff-btn:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.diff-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text);
  box-shadow: 0 0 12px var(--primary-glow);
}

/* Arithmetic Problem Card */
.math-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-4);
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-md);
}

.math-equation {
  font-family: var(--font-mono);
  font-size: clamp(2.25rem, 8vw, 3.75rem);
  font-weight: 900;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
}

.math-equation .operator {
  color: var(--accent);
}

/* Answer Choices - 2x2 Grid */
.math-choices {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.math-choice-btn {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-2);
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  font-weight: 800;
  color: var(--text);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  min-height: 72px;
  touch-action: manipulation;
}

.math-choice-btn:hover {
  background: var(--surface-hover);
  border-color: var(--primary);
}

.math-choice-btn:active {
  transform: scale(0.97);
}

/* Start Overlay */
.game-start-overlay {
  text-align: center;
  padding: var(--space-8) var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}

.start-title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-2);
}

.start-desc {
  color: var(--text-muted);
  max-width: 400px;
  margin: 0 auto var(--space-6);
  font-size: var(--text-sm);
}
