/* math-game.css - Galaxy Theme */

.math-container {
  max-width: 720px;
  box-sizing: border-box;
  text-align: center;
}

.math-board {
  width: 100%;
  height: auto;
  min-height: 300px;
  padding: 20px;
  box-sizing: border-box;
  background-color: var(--game-bg-color);
  border: 1px solid var(--game-grid-color);
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.game-info {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 600px;
  margin: 0 auto 1rem;
  padding: 0 20px;
  box-sizing: border-box;
}

.info-box {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-color);
  font-family: var(--galaxy-font);
}

#problem {
  font-family: var(--galaxy-font);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  color: var(--title-color);
}

.dot-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin: 0 1rem;
}

.dot {
  font-size: 2.2rem;
  color: var(--text-color);
  margin: 0.2rem;
}

.emphasized-dot {
  color: var(--accent-color);
}

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

#answer-buttons {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 2rem;
}

.btn-answer {
  width: 56px;
  height: 56px;
  font-size: 1.5rem;
  font-family: var(--galaxy-font);
  font-weight: 800;
  background-color: var(--panel-color);
  color: var(--text-color);
  border: 1px solid var(--game-grid-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--card-shadow);
}

.btn-answer:hover {
  background-color: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
  transform: translateY(-2px);
}

.btn-answer:active {
  transform: scale(0.95);
}

.game-wrapper {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 2rem auto;
  min-height: 340px;
}

.start-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 253, 245, 0.95);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 100;
  border-radius: var(--radius-md);
  color: var(--text-color);
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.start-overlay h2 {
  margin-bottom: 1rem;
  font-family: var(--galaxy-font);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--title-color);
}

#winOverlay {
  justify-content: center;
}

#winOverlay h2 {
  margin-bottom: 2rem;
  transform: translateY(-160%);
  color: var(--title-color);
}