/* ==========================================================================
   QUESTIONS PAGE STYLES - T.I QUIZZMASTER
   ========================================================================== */

:root {
  --primary-green: #00ff41;
  --secondary-green: #00d300;
  --dark-green: #003300;
  --neon-blue: #00ffff;
  --background-black: #000000;
  --text-white: #ffffff;
  --glitch-red: #ff0040;
  --terminal-green: #00ff00;
  --shadow-color: rgba(0, 255, 65, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
}

body {
  min-height: 100vh;
  background: var(--background-black);
  color: var(--text-white);
  font-family: 'Press Start 2P', monospace;
  overflow-x: hidden;
}

/* ==========================================================================
   BACK BUTTON
   ========================================================================== */

.back-home-container {
  position: fixed;
  top: 3rem;
  left: 5rem;
  z-index: 1000;
}

.back-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  background: rgba(0, 0, 0, 0.9);
  border: 2px solid var(--primary-green);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
  font-size: 0.7rem;
  color: var(--primary-green);
}

.back-btn:hover {
  border-color: var(--neon-blue);
  color: var(--neon-blue);
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
  transform: translateY(-2px);
}

.back-btn img {
  width: 20px;
  height: 20px;
  filter: brightness(0) saturate(100%) invert(59%) sepia(96%) saturate(3207%) hue-rotate(92deg) brightness(101%) contrast(107%);
  transition: filter 0.3s ease;
}

.back-btn:hover img {
  filter: brightness(0) saturate(100%) invert(59%) sepia(96%) saturate(3207%) hue-rotate(180deg) brightness(101%) contrast(107%);
}

.back-tooltip {
  position: absolute;
  bottom: -3rem; /* 🔧 CORRIGIDO: Mudado de top para bottom */
  left: 50%;
  transform: translateX(-50%);
  background: var(--background-black);
  color: var(--primary-green);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.6rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  border: 1px solid var(--primary-green);
  white-space: nowrap;
  z-index: 10;
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

/* 🔧 CORRIGIDO: Tooltip alternativo para telas pequenas */
@media screen and (max-height: 600px) {
  .back-tooltip {
    bottom: auto;
    top: 100%;
    margin-top: 0.5rem;
  }
}

.back-btn:hover .back-tooltip {
  opacity: 1;
}

/* ==========================================================================
   SCORE DISPLAY - AJUSTADO PARA NÃO CONFLITAR
   ========================================================================== */

.score-display {
  position: fixed;
  top: 3rem; /* 🔧 AJUSTADO: Alinhado com o botão de voltar */
  right: 2rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.score-item {
  background: rgba(0, 0, 0, 0.9);
  border: 2px solid var(--primary-green);
  border-radius: 8px;
  padding: 0.8rem 1.2rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
  text-align: center;
  min-width: 120px;
}

.score-label {
  color: var(--secondary-green);
  font-size: 0.5rem;
  display: block;
  margin-bottom: 0.3rem;
  letter-spacing: 0.05em;
}

.score-value {
  color: var(--primary-green);
  font-size: 0.7rem;
  font-weight: bold;
  text-shadow: 0 0 10px var(--primary-green);
}

/* ==========================================================================
   TERMINAL - CENTRALIZAÇÃO PERFEITA
   ========================================================================== */

.terminal-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 9rem auto 0; /* 🔧 AJUSTADO: Aumentado de 8rem para 9rem para dar espaço aos botões */
  padding: 0 2rem;
  z-index: 10;
  width: 100%;
  max-width: 1200px;
}

.terminal {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  background: var(--background-black);
  border: 3px solid var(--primary-green);
  border-radius: 12px;
  box-shadow: 
    0 0 30px rgba(0, 255, 65, 0.4),
    inset 0 0 20px rgba(0, 255, 65, 0.1);
  overflow: hidden;
  animation: terminalGlow 3s ease-in-out infinite alternate;
}

@keyframes terminalGlow {
  0% {
    box-shadow: 
      0 0 30px rgba(0, 255, 65, 0.4),
      inset 0 0 20px rgba(0, 255, 65, 0.1);
  }
  100% {
    box-shadow: 
      0 0 40px rgba(0, 255, 65, 0.6),
      inset 0 0 30px rgba(0, 255, 65, 0.2);
  }
}

.terminal-header {
  background: linear-gradient(90deg, var(--dark-green), var(--secondary-green));
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--primary-green);
}

.terminal-controls {
  display: flex;
  gap: 0.5rem;
}

.control {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.control.close { background: #ff5f57; }
.control.minimize { background: #ffbd2e; }
.control.maximize { background: #28ca42; }

.terminal-title {
  color: var(--background-black);
  font-size: 0.7rem;
  font-weight: bold;
  text-align: center;
  flex: 1;
}

.terminal-content {
  padding: 2rem;
  min-height: 200px;
  text-align: center;
}

.command-line {
  color: var(--terminal-green);
  font-size: 0.7rem;
  margin-bottom: 1.5rem;
  opacity: 0.8;
  text-align: left;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.prompt {
  color: var(--neon-blue);
}

.command {
  color: var(--primary-green);
  margin-left: 0.5rem;
}

.pergunta {
  color: var(--primary-green);
  font-size: clamp(0.8rem, 2.5vw, 1.2rem);
  line-height: 1.8;
  text-align: center;
  text-shadow: 0 0 10px var(--primary-green);
  animation: questionPulse 2s ease-in-out infinite alternate;
  margin: 0 auto;
  max-width: 800px;
  padding: 0 1rem;
}

@keyframes questionPulse {
  0% { opacity: 0.9; }
  100% { opacity: 1; }
}

/* ==========================================================================
   ANSWERS GRID - CENTRALIZAÇÃO PERFEITA
   ========================================================================== */

.answers-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 3rem auto;
  padding: 0 2rem;
  z-index: 10;
  position: relative;
  width: 100%;
  max-width: 1200px;
}

.answers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  justify-items: center;
}

.answer-box {
  position: relative;
  background: var(--background-black);
  border: 2px solid var(--primary-green);
  border-radius: 8px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 120px;
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
  overflow: hidden;
  text-align: center;
}

.answer-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--primary-green), transparent);
  transition: all 0.5s ease;
  z-index: 1;
  opacity: 0.1;
}

.answer-box:hover::before {
  left: 0;
}

.answer-box:hover {
  border-color: var(--neon-blue);
  box-shadow: 
    0 0 30px rgba(0, 255, 255, 0.4),
    inset 0 0 20px rgba(0, 255, 255, 0.1);
  transform: translateY(-5px) scale(1.02);
}

.answer-box:active {
  transform: translateY(-2px) scale(1.01);
}

.answer-label {
  position: relative;
  z-index: 2;
  font-size: 1.2rem;
  color: var(--neon-blue);
  font-weight: bold;
  margin-bottom: 1rem;
  text-shadow: 0 0 10px var(--neon-blue);
  text-align: center;
}

.answer-text {
  position: relative;
  z-index: 2;
  color: var(--primary-green);
  font-size: clamp(0.6rem, 2vw, 0.8rem);
  line-height: 1.6;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  word-wrap: break-word;
  hyphens: auto;
  padding: 0 0.5rem;
}

/* ==========================================================================
   PROGRESS BAR - CENTRALIZAÇÃO PERFEITA
   ========================================================================== */

.progress-container {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 600px;
  z-index: 1000;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(0, 255, 65, 0.2);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--primary-green);
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--secondary-green), var(--primary-green));
  border-radius: 4px;
  width: 0%;
  transition: width 0.5s ease;
  box-shadow: 0 0 10px var(--primary-green);
}

.progress-text {
  text-align: center;
  margin-top: 0.5rem;
  color: var(--primary-green);
  font-size: clamp(0.5rem, 1.5vw, 0.7rem);
}

/* ==========================================================================
   LOADING OVERLAY
   ========================================================================== */

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.loading-content {
  text-align: center;
  color: var(--primary-green);
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid var(--dark-green);
  border-top: 3px solid var(--primary-green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 2rem;
  box-shadow: 0 0 20px var(--primary-green);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-overlay.hidden {
  display: none;
}

/* ==========================================================================
   AUTHENTICATION REQUIRED OVERLAY
   ========================================================================== */

.auth-required-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(15px);
  animation: fadeInSlide 0.5s ease-out;
}

@keyframes fadeInSlide {
  0% {
    opacity: 0;
    transform: translateY(-50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-required-content {
  background: rgba(0, 0, 0, 0.9);
  border: 3px solid var(--glitch-red);
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
  max-width: 500px;
  width: 90%;
  margin: 0 auto;
  box-shadow: 
    0 0 40px rgba(255, 0, 64, 0.5),
    inset 0 0 20px rgba(255, 0, 64, 0.1);
  animation: authGlow 2s ease-in-out infinite alternate;
}

@keyframes authGlow {
  0% {
    box-shadow: 
      0 0 40px rgba(255, 0, 64, 0.5),
      inset 0 0 20px rgba(255, 0, 64, 0.1);
  }
  100% {
    box-shadow: 
      0 0 60px rgba(255, 0, 64, 0.7),
      inset 0 0 30px rgba(255, 0, 64, 0.2);
  }
}

.auth-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  color: var(--glitch-red);
  text-shadow: 0 0 20px var(--glitch-red);
  animation: iconPulse 1.5s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.auth-title {
  color: var(--glitch-red);
  font-size: clamp(1rem, 3vw, 1.5rem);
  margin-bottom: 2rem;
  text-shadow: 0 0 15px var(--glitch-red);
  letter-spacing: 0.1em;
}

.auth-message {
  color: var(--text-white);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.auth-message p {
  margin-bottom: 1rem;
  font-size: clamp(0.7rem, 2vw, 0.9rem);
}

.auth-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.auth-btn {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2rem;
  border: 2px solid;
  border-radius: 8px;
  text-decoration: none;
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(0.5rem, 1.5vw, 0.7rem);
  transition: all 0.3s ease;
  min-width: 180px;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.auth-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: all 0.5s ease;
}

.auth-btn:hover::before {
  left: 100%;
}

.login-btn {
  border-color: var(--primary-green);
  color: var(--primary-green);
  background: transparent;
}

.login-btn:hover {
  background: var(--primary-green);
  color: var(--background-black);
  box-shadow: 0 0 25px var(--primary-green);
  transform: translateY(-3px);
}

.auth-btn.back-btn {
  border-color: var(--secondary-green);
  color: var(--secondary-green);
  background: transparent;
}

.auth-btn.back-btn:hover {
  background: var(--secondary-green);
  color: var(--background-black);
  box-shadow: 0 0 25px var(--secondary-green);
  transform: translateY(-3px);
}

.btn-icon {
  font-size: 1rem;
}

.auth-timer {
  color: var(--neon-blue);
  font-size: clamp(0.5rem, 1.5vw, 0.7rem);
  opacity: 0.8;
  animation: timerBlink 1s ease-in-out infinite;
}

@keyframes timerBlink {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 0.4; }
}

/* ==========================================================================
   ERROR OVERLAY
   ========================================================================== */

.error-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(15px);
}

.error-content {
  background: rgba(0, 0, 0, 0.9);
  border: 3px solid var(--glitch-red);
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
  max-width: 500px;
  width: 90%;
  margin: 0 auto;
  box-shadow: 
    0 0 40px rgba(255, 0, 64, 0.5),
    inset 0 0 20px rgba(255, 0, 64, 0.1);
}

.error-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  color: var(--glitch-red);
  text-shadow: 0 0 20px var(--glitch-red);
}

.error-title {
  color: var(--glitch-red);
  font-size: clamp(1rem, 3vw, 1.3rem);
  margin-bottom: 2rem;
  text-shadow: 0 0 15px var(--glitch-red);
}

.error-message {
  color: var(--text-white);
  margin-bottom: 2.5rem;
  line-height: 1.6;
  font-size: clamp(0.6rem, 2vw, 0.8rem);
}

.error-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.error-btn {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2rem;
  border: 2px solid;
  border-radius: 8px;
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(0.5rem, 1.5vw, 0.7rem);
  transition: all 0.3s ease;
  min-width: 180px;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  background: transparent;
}

.retry-btn {
  border-color: var(--primary-green);
  color: var(--primary-green);
}

.retry-btn:hover {
  background: var(--primary-green);
  color: var(--background-black);
  box-shadow: 0 0 25px var(--primary-green);
}

/* ==========================================================================
   RESPONSIVE DESIGN - MELHORADO
   ========================================================================== */

/* Tablets */
@media screen and (max-width: 768px) {
  .terminal-container {
    margin-top: 7rem; /* 🔧 AJUSTADO: Reduzido para tablets */
    padding: 0 1rem;
  }
  
  .terminal-content {
    padding: 1.5rem;
  }
  
  .answers-container {
    margin: 2rem auto;
    padding: 0 1rem;
  }
  
  .answers-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 500px;
  }
  
  .answer-box {
    padding: 1.2rem;
    min-height: 100px;
    max-width: none;
  }
  
  .score-display {
    position: static;
    margin: 1rem;
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
  }
  
  .back-home-container {
    top: 2rem; /* 🔧 AJUSTADO: Menos espaço em tablets */
    left: 1rem;
  }
  
  .auth-required-content,
  .error-content {
    padding: 2rem 1.5rem;
    margin: 1rem;
  }
  
  .auth-actions,
  .error-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .auth-btn,
  .error-btn {
    width: 100%;
    max-width: 280px;
  }
}

/* Small Mobile */
@media screen and (max-width: 480px) {
  .terminal-container {
    margin-top: 5rem; /* 🔧 AJUSTADO: Menos espaço em mobile */
    padding: 0 0.5rem;
  }
  
  .terminal-content {
    padding: 1rem;
  }
  
  .answers-container {
    padding: 0 0.5rem;
  }
  
  .answer-box {
    padding: 1rem;
    min-height: 80px;
  }
  
  .score-item {
    padding: 0.6rem;
    min-width: 100px;
  }
  
  .back-home-container {
    top: 1rem; /* 🔧 AJUSTADO: Mais próximo do topo em mobile */
    left: 0.5rem;
  }
  
  .auth-required-content,
  .error-content {
    padding: 1.5rem 1rem;
    margin: 0.5rem;
  }
  
  .auth-btn,
  .error-btn {
    padding: 0.8rem 1.5rem;
  }
}

/* Ultra-wide screens */
@media screen and (min-width: 1400px) {
  .terminal-container {
    max-width: 1400px;
  }
  
  .answers-container {
    max-width: 1400px;
  }
  
  .answers-grid {
    max-width: 1000px;
    gap: 3rem;
  }
  
  .answer-box {
    max-width: 450px;
    padding: 2rem;
    min-height: 150px;
  }
}

/* ==========================================================================
   ACCESSIBILITY & ANIMATIONS
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .terminal,
  .pergunta,
  .answer-box,
  .progress-fill,
  .loading-spinner,
  .auth-required-content,
  .auth-icon {
    animation: none;
  }
  
  .answer-box {
    transition: none;
  }
}

/* High contrast mode */
.high-contrast .answer-box {
  border-width: 3px;
}

.high-contrast .terminal {
  border-width: 4px;
}

.high-contrast .auth-required-content,
.high-contrast .error-content {
  border-width: 4px;
}

/* ==========================================================================
   CLICK FEEDBACK - MELHORADO
   ========================================================================== */

.answer-box.clicked {
  animation: clickFeedback 0.3s ease;
}

@keyframes clickFeedback {
  0% { 
    transform: scale(1); 
  }
  50% { 
    transform: scale(0.95); 
    background-color: rgba(0, 211, 0, 0.2);
    box-shadow: 0 0 40px rgba(0, 255, 65, 0.6);
  }
  100% { 
    transform: scale(1); 
  }
}

/* States for disabled buttons */
.answer-box[style*="pointer-events: none"] {
  opacity: 0.6 !important;
  cursor: not-allowed;
}

/* ==========================================================================
   LAYOUT UTILITIES PARA GARANTIR CENTRALIZAÇÃO
   ========================================================================== */

.center-content {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.center-text {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Force centering for problematic elements */
.terminal,
.answers-grid,
.progress-container {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* ==========================================================================
   ANIMAÇÕES DE EMBARALHAMENTO DAS RESPOSTAS
   ========================================================================== */

/* Animação principal de embaralhamento */
@keyframes shuffleAnimation {
  0% {
    transform: scale(1) rotateY(0deg);
    opacity: 1;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
  }
  25% {
    transform: scale(0.95) rotateY(90deg);
    opacity: 0.8;
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.3);
  }
  50% {
    transform: scale(0.9) rotateY(180deg);
    opacity: 0.6;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.4);
  }
  75% {
    transform: scale(0.95) rotateY(270deg);
    opacity: 0.8;
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.3);
  }
  100% {
    transform: scale(1) rotateY(360deg);
    opacity: 1;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
  }
}

/* Aplicar animação aos boxes de resposta */
.answer-box.shuffling {
  animation: shuffleAnimation 0.6s ease-out;
}

/* Indicador visual de embaralhamento */
.answers-container {
  position: relative;
}

.answers-container.shuffled::before {
  content: '🔀 Respostas Embaralhadas';
  position: absolute;
  top: -4rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  color: var(--neon-blue);
  background: rgba(0, 0, 0, 0.8);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  border: 1px solid var(--neon-blue);
  opacity: 0;
  animation: shuffleIndicator 2.5s ease-out;
  z-index: 100;
  white-space: nowrap;
  font-family: 'Press Start 2P', monospace;
  text-shadow: 0 0 10px var(--neon-blue);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

@keyframes shuffleIndicator {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(20px) scale(0.8);
  }
  15% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
  85% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px) scale(0.8);
  }
}

/* Animação de entrada escalonada para cada resposta */
.answer-box:nth-child(1) {
  animation-delay: 0ms;
}

.answer-box:nth-child(2) {
  animation-delay: 100ms;
}

.answer-box:nth-child(3) {
  animation-delay: 200ms;
}

.answer-box:nth-child(4) {
  animation-delay: 300ms;
}

/* Efeito de "mistura" das letras dos labels */
@keyframes labelShuffle {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-2px);
  }
  75% {
    transform: translateX(2px);
  }
}

.answer-box.shuffling .answer-label {
  animation: labelShuffle 0.6s ease-out;
}

/* Feedback visual adicional durante o embaralhamento */
.answers-grid.shuffling {
  perspective: 1000px;
}

.answers-grid.shuffling .answer-box {
  transform-style: preserve-3d;
}

/* Indicador sutil de randomização */
.answers-grid::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  background: radial-gradient(circle, var(--neon-blue) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
}

.answers-grid.shuffling::after {
  animation: shuffleCenter 0.6s ease-out;
}

@keyframes shuffleCenter {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
  }
  50% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
  }
}

/* Responsividade para as animações */
@media screen and (max-width: 768px) {
  .answers-container.shuffled::before {
    font-size: 0.6rem;
    padding: 0.4rem 0.8rem;
    top: -3rem;
  }
}

@media screen and (max-width: 480px) {
  .answers-container.shuffled::before {
    font-size: 0.5rem;
    padding: 0.3rem 0.6rem;
    top: -2.5rem;
  }
}

/* Reduzir animações para quem prefere menos movimento */
@media (prefers-reduced-motion: reduce) {
  .answer-box.shuffling {
    animation: none;
  }
  
  .answers-container.shuffled::before {
    animation: none;
    opacity: 1;
  }
  
  .answer-box.shuffling .answer-label {
    animation: none;
  }
  
  .answers-grid.shuffling::after {
    animation: none;
  }
}