/* Question Card */
.question-card {
  width: 100%;
  padding: var(--spacing-lg);
  background: var(--color-card);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  text-align: center;
}

/* Question Counter */
.question-counter {
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
  margin-bottom: var(--spacing-sm);
}

/* Question Text */
.question-text {
  font-size: var(--font-size-xl);
  font-weight: 700;
  line-height: 1.8;
  min-height: 3em;
  word-break: break-all;
}

.question-text .char {
  display: inline;
  transition: opacity 0.15s ease;
}

.question-text .char.revealed {
  opacity: 1;
}

.question-text .char.hidden {
  opacity: 0;
}

@keyframes char-reveal {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.question-text .char.revealing {
  animation: char-reveal 0.15s ease forwards;
}

/* Answer Display */
.answer-display {
  margin-top: var(--spacing-md);
  padding: var(--spacing-md);
  background: rgba(42, 157, 143, 0.2);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xl);
  font-weight: 800;
  color: var(--color-success);
  transition: opacity 0.3s ease;
}

.answer-display.hidden {
  display: none;
}

/* TTS Controls */
.tts-controls {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  width: 100%;
}

.speed-selector {
  display: flex;
  gap: var(--spacing-xs);
}

.speed-option {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-card-border);
  background: transparent;
  color: var(--color-text);
  font-family: var(--font-family);
  font-size: var(--font-size-xs);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.speed-option.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

/* Answer Timer */
.answer-timer {
  width: 100%;
  text-align: center;
  margin-top: var(--spacing-sm);
}

.answer-timer-bar {
  width: 100%;
  height: 6px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: var(--spacing-xs);
}

.answer-timer-bar-fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: 3px;
  transition: width 0.1s linear;
}

.answer-timer-bar-fill.warning {
  background: var(--color-error);
}

.answer-timer-text {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text-muted);
}

/* Quiz Progress */
.quiz-progress {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.quiz-progress-bar {
  flex: 1;
  height: 4px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

.quiz-progress-bar-fill {
  height: 100%;
  background: var(--color-success);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.quiz-progress-text {
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  white-space: nowrap;
}

/* Game Mode Toggle */
.mode-toggle {
  display: flex;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-card-border);
}

.mode-option {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  font-family: var(--font-family);
  font-size: var(--font-size-sm);
  font-weight: 600;
  cursor: pointer;
  transition:
    background var(--transition-normal),
    color var(--transition-normal);
}

.mode-option.active {
  background: var(--color-primary);
  color: white;
}

/* Reading Status */
.reading-indicator {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: var(--font-size-sm);
  color: var(--color-success);
  font-weight: 600;
}

.reading-indicator::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-success);
  animation: pulse 1s ease-in-out infinite;
}
