/* Game Header */
.game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

/* Timer */
.timer-bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 16px;
}

.timer-bar__fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.1s linear;
}

.timer-bar__fill.green {
  background: var(--success);
}

.timer-bar__fill.yellow {
  background: var(--warning);
}

.timer-bar__fill.red {
  background: var(--danger);
}

.timer-text {
  font-size: var(--fs-2xl);
  font-weight: 700;
  text-align: center;
}

.question-counter {
  font-size: var(--fs-sm);
  color: var(--text-light);
  font-weight: 600;
}

/* Quiz Image */
.quiz-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: #eee;
  margin: 16px 0;
}

.quiz-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.1s linear;
}

.quiz-image.blurred {
  filter: blur(var(--blur-amount, 20px));
}

.category-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
}

.difficulty-stars {
  color: var(--warning);
}

/* Answer Section */
.answer-section {
  margin-top: 16px;
}

.answer-input {
  font-size: var(--fs-lg) !important;
  text-align: center;
  letter-spacing: 2px;
}

/* Hints */
.hints-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.hint-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 8px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
  cursor: pointer;
  transition: var(--transition);
  font-size: var(--fs-xs);
  gap: 4px;
}

.hint-btn:hover {
  border-color: var(--primary);
  background: rgba(108, 92, 231, 0.05);
}

.hint-btn__icon {
  font-size: 1.25rem;
}

.hint-btn__cost {
  color: #F39C12;
  font-weight: 700;
}

.hint-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.hint-btn:disabled:hover {
  border-color: var(--border);
  background: white;
}

/* Letter Hint */
.letter-hint {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin: 12px 0;
  flex-wrap: wrap;
}

.letter-box {
  width: 32px;
  height: 40px;
  border: 2px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-lg);
  font-weight: 700;
}

.letter-box.revealed {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(108, 92, 231, 0.1);
}

/* Result Overlay */
.result-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
}

.result-correct {
  background: rgba(0, 184, 148, 0.95);
}

.result-wrong {
  background: rgba(255, 118, 117, 0.95);
}

.result-content {
  text-align: center;
  color: white;
  padding: 40px;
}

.result-content .icon {
  font-size: 4rem;
  margin-bottom: 16px;
}

.result-content .message {
  font-size: var(--fs-xl);
  font-weight: 700;
  margin-bottom: 8px;
}

.result-content .score {
  font-size: var(--fs-2xl);
  font-weight: 700;
}

.result-content .answer-text {
  font-size: var(--fs-lg);
  margin-top: 8px;
  opacity: 0.9;
}

/* Game Over */
.game-over {
  text-align: center;
  padding: 32px 16px;
}

.game-over__title {
  font-size: var(--fs-xl);
  font-weight: 700;
  margin-bottom: 8px;
}

.game-over__score {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  margin: 16px 0;
}

.game-over__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.stat-card {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
}

.stat-card__value {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--primary);
}

.stat-card__label {
  font-size: var(--fs-xs);
  color: var(--text-light);
  margin-top: 4px;
}

.game-over__actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.game-over__actions .btn {
  flex: 1;
}

/* Animations */
@keyframes correctPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

.shake {
  animation: shake 0.3s ease;
}

.correct-pulse {
  animation: correctPulse 0.5s ease;
}
