/* === SCREEN MANAGEMENT === */
.screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  z-index: 10;
}

.screen.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.screen-content {
  width: 100%;
  max-width: 400px;
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.screen-content.scrollable {
  max-height: 90vh;
  justify-content: flex-start;
}

/* === START SCREEN === */
.game-title {
  font-size: 2.8rem;
  margin-bottom: 0.2rem;
  animation: pulse 2s infinite;
}

.game-subtitle {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.menu-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  width: 100%;
  max-width: 220px;
}

/* === HIGH SCORES === */
.high-scores-preview {
  margin-top: 1rem;
  width: 100%;
  max-width: 280px;
}

.high-scores-preview h3 {
  font-size: 0.8rem;
  color: var(--text-accent);
  margin-bottom: 0.5rem;
}

.scores-list,
.full-scores-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.score-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0.6rem;
  background: var(--bg-secondary);
  border-radius: 4px;
  font-size: 0.6rem;
}

.score-rank {
  color: var(--text-accent);
  min-width: 2rem;
}

.score-name {
  flex: 1;
  text-align: left;
  margin-left: 0.5rem;
}

.score-value {
  color: var(--text-accent);
}

.full-scores-list {
  max-height: 60vh;
  overflow-y: auto;
  margin-bottom: 1rem;
}

/* === HELP SCREEN === */
.help-section {
  width: 100%;
  background: var(--bg-secondary);
  padding: 0.8rem;
  border-radius: 8px;
  margin-bottom: 0.6rem;
  text-align: left;
}

.help-section h3 {
  font-size: 0.8rem;
  margin-bottom: 0.4rem;
  color: var(--text-accent);
}

.help-section p {
  font-size: 0.6rem;
  margin-bottom: 0.2rem;
}

/* === GAME OVER SCREEN === */
.gameover-stats {
  background: var(--bg-secondary);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  width: 100%;
  max-width: 280px;
}

.gameover-stats p {
  font-size: 0.7rem;
  margin-bottom: 0.4rem;
  display: flex;
  justify-content: space-between;
}

.gameover-stats span {
  color: var(--text-accent);
}

/* === PAUSE OVERLAY === */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.overlay-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}
