/* ==========================================================================
   SUPER QUIZ — ESTILOS ESPECÍFICOS DA ARENA & PERGUNTAS
   Prof. Paulo Henrique Maciel · PHM Games
   ========================================================================== */

.quiz-app-body {
  background: var(--phm-bg-dark);
  background-image: var(--phm-bg-gradient);
  min-height: 100vh;
  color: var(--phm-text-pure);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  margin: 0;
  padding: 0;
}

.setup-section-title {
  color: var(--phm-cyan);
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Arena de Perguntas */
.quiz-arena-card {
  display: flex;
  flex-direction: column;
}

.arena-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.quiz-pill-info {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--phm-line);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--phm-text-light);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Barra Multiplayer */
.multiplayer-players-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.player-chip {
  background: rgba(0, 0, 0, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--phm-radius-sm);
  padding: 0.5rem 0.75rem;
  text-align: center;
  transition: all 0.2s ease;
}

.player-chip.active-turn {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8 !important;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
  transform: scale(1.03);
}

.player-chip.eliminated {
  opacity: 0.4;
  border-color: #ef4444 !important;
  text-decoration: line-through;
}

/* Barra de Tempo */
.quiz-timer-box {
  width: 100%;
  height: 8px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 1px solid var(--phm-line);
}

.quiz-timer-progress {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #10b981, #38bdf8);
  transition: width 1s linear, background-color 0.3s ease;
}

.quiz-timer-progress.danger {
  background: linear-gradient(90deg, #f59e0b, #ef4444);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.7);
}

/* Enunciado da Pergunta */
.quiz-question-text {
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.5;
  color: var(--phm-text-pure);
  margin: 0 0 1.5rem 0;
}

/* Grid de Alternativas */
.answers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.answer-btn {
  background: var(--phm-surface-card);
  border: 1.5px solid var(--phm-line);
  color: var(--phm-text-pure);
  border-radius: var(--phm-radius-md);
  padding: 1rem 1.25rem;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  line-height: 1.4;
  font-family: inherit;
}

.answer-btn:hover:not(:disabled) {
  background: var(--phm-surface-hover);
  border-color: rgba(56, 189, 248, 0.5);
  transform: translateY(-2px);
}

.answer-letter {
  background: rgba(255, 255, 255, 0.1);
  color: var(--phm-cyan);
  font-weight: 900;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.answer-btn.correct {
  background: rgba(16, 185, 129, 0.25) !important;
  border-color: #10b981 !important;
  color: #ffffff !important;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.45);
}

.answer-btn.wrong {
  background: rgba(239, 68, 68, 0.25) !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.45);
}

.answer-btn.disabled-50 {
  opacity: 0.25;
  pointer-events: none;
  text-decoration: line-through;
}

/* Feedback Box */
.quiz-feedback-box {
  border-radius: var(--phm-radius-md);
  padding: 1.15rem 1.35rem;
  margin-bottom: 1.5rem;
  line-height: 1.55;
  display: none;
  animation: fadeIn 0.2s ease-out;
}

.quiz-feedback-box.correct {
  background: rgba(16, 185, 129, 0.15);
  border: 1.5px solid rgba(16, 185, 129, 0.45);
  color: #a7f3d0;
}

.quiz-feedback-box.wrong {
  background: rgba(239, 68, 68, 0.15);
  border: 1.5px solid rgba(239, 68, 68, 0.45);
  color: #fecaca;
}

/* Lifelines */
.lifelines-row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid var(--phm-line);
  margin-bottom: 1rem;
}

.lifeline-btn {
  background: rgba(0, 0, 0, 0.5);
  border: 1.5px solid var(--phm-line);
  color: var(--phm-text-pure);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: inherit;
}

.lifeline-btn:hover:not(:disabled) {
  background: var(--phm-surface-soft);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.4);
}

.lifeline-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Atalhos de Teclado */
.keyboard-hints {
  font-size: 0.78rem;
  color: var(--phm-text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.kbd-badge {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  font-weight: 700;
  color: #ffffff;
  font-size: 0.72rem;
  margin: 0 0.15rem;
}

/* Estatísticas do Grand Finale */
.stat-card {
  background: rgba(0, 0, 0, 0.5);
  border: 1.5px solid var(--phm-line);
  border-radius: var(--phm-radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

@media (max-width: 680px) {
  .answers-grid {
    grid-template-columns: 1fr;
  }
}