/* ==========================================================================
   ANAEROBIC ARCADE - arcade.css
   Gabinete, Monitor CRT, Botões 8-Bit, HUD e Alternativas do Quiz
   (Tela inicial: start-screen.css | Feedback: feedback.css)
   Autores: Henrique e Daniel
   ========================================================================== */

/* Gabinete do Fliperama */
.arcade-cabinet {
  background: var(--lab-cabinet);
  border: 4px solid var(--lab-border);
  border-radius: 14px;
  padding: 16px 20px 22px;
  box-shadow: 
    0 0 0 3px #000000,
    0 0 0 6px #6a1b9a,
    0 0 50px rgba(157, 78, 221, 0.35),
    0 20px 45px rgba(0, 0, 0, 0.85);
  position: relative;
}

/* Marquee Superior */
.arcade-marquee {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 2px solid rgba(157, 78, 221, 0.4);
  font-family: var(--font-pixel);
  font-size: 10px;
}

.marquee-left, .marquee-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Monitor CRT Retrô com Scanlines */
.crt-monitor {
  position: relative;
  background: radial-gradient(circle at 50% 45%, #180933 0%, #060210 100%);
  border: 4px solid #3c1370;
  border-radius: 10px;
  padding: 24px;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 
    0 0 0 3px #000000,
    0 0 0 6px var(--neon-cyan),
    inset 0 0 45px rgba(0, 0, 0, 0.9),
    0 0 30px rgba(0, 240, 255, 0.3);
  overflow: hidden;
}

/* Linhas de Varredura (Scanlines) CRT */
.crt-monitor::before {
  content: " ";
  display: block;
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%,
    rgba(0, 0, 0, 0.38) 50%
  );
  background-size: 100% 4px;
  z-index: 40;
  pointer-events: none;
  opacity: 0.8;
}

/* Brilho interno do tubo de raios catódicos */
.crt-monitor::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03) 0%, rgba(0, 0, 0, 0.3) 100%);
  pointer-events: none;
  z-index: 41;
}

/* HUD Superior 8-Bit (Fase e Pontuação) */
.arcade-hud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #110724;
  border: 2px solid var(--neon-purple);
  padding: 10px 14px;
  margin-bottom: 18px;
  font-family: var(--font-pixel);
  font-size: 11px;
  position: relative;
  z-index: 50;
  box-shadow: 0 4px 0 #000000;
}

/* Badges de Categoria das Bactérias */
.hud-badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 9px;
  border: 2px solid var(--neon-magenta);
  background: rgba(255, 0, 127, 0.2);
  color: var(--neon-magenta);
  text-transform: uppercase;
  box-shadow: 0 2px 0 #000000;
}

.hud-badge.cyan {
  border-color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.2);
  color: var(--neon-cyan);
}

.hud-badge.yellow {
  border-color: var(--neon-yellow);
  background: rgba(255, 230, 0, 0.2);
  color: var(--neon-yellow);
}

.hud-score-val {
  color: var(--neon-yellow);
  text-shadow: 0 0 10px rgba(255, 230, 0, 0.7);
}

/* Card da Pergunta com Borda Pixel Cyan */
.question-card {
  background: #150a2b;
  border: 3px solid var(--neon-cyan);
  border-radius: 6px;
  padding: 18px 20px;
  margin-bottom: 16px;
  box-shadow: 
    0 -3px 0 0 #000000,
    0 3px 0 0 #000000,
    -3px 0 0 0 #000000,
    3px 0 0 0 #000000,
    0 0 20px rgba(0, 240, 255, 0.3);
  position: relative;
  z-index: 50;
}

.question-text {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
  color: #ffffff;
}

/* Grid de Alternativas 8-bit */
.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
  position: relative;
  z-index: 50;
}

/* Botão Arcade 8-Bit com Chanfro e Sombra Marcada */
.pixel-btn {
  position: relative;
  background: #140926;
  border: 3px solid var(--neon-cyan);
  color: #ffffff;
  padding: 13px 16px;
  font-family: var(--font-read);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  box-shadow: 
    0 5px 0 #007788,
    0 8px 0 #000000,
    0 0 16px rgba(0, 240, 255, 0.35);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
  user-select: none;
}

.pixel-btn:hover:not(:disabled) {
  background: #200f3f;
  transform: translateY(2px);
  box-shadow: 
    0 3px 0 #007788,
    0 6px 0 #000000,
    0 0 25px rgba(0, 240, 255, 0.7);
  border-color: #ffffff;
}

.pixel-btn:active:not(:disabled) {
  transform: translateY(5px);
  box-shadow: 
    0 0 0 #007788,
    0 3px 0 #000000,
    0 0 10px rgba(0, 240, 255, 0.5);
}

/* Tecla A, B, C, D 8-bit */
.key-badge {
  font-family: var(--font-pixel);
  font-size: 10px;
  background: #000000;
  color: var(--neon-yellow);
  border: 2px solid var(--neon-yellow);
  padding: 4px 6px;
  flex-shrink: 0;
  box-shadow: 0 2px 0 #000000;
}

/* Botão Primário (START / AVANÇAR) Magenta */
.pixel-btn-magenta {
  border-color: var(--neon-magenta);
  box-shadow: 
    0 5px 0 #99004d,
    0 8px 0 #000000,
    0 0 18px rgba(255, 0, 127, 0.4);
}

.pixel-btn-magenta:hover:not(:disabled) {
  border-color: #ffffff;
  box-shadow: 
    0 3px 0 #99004d,
    0 6px 0 #000000,
    0 0 25px rgba(255, 0, 127, 0.8);
}

.pixel-btn-magenta:active:not(:disabled) {
  transform: translateY(5px);
  box-shadow: 0 0 0 #99004d, 0 3px 0 #000000;
}

/* Rodapé dos Créditos */
.arcade-credits {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-pixel);
  font-size: 10px;
  color: rgba(157, 78, 221, 0.8);
  border-top: 1px solid rgba(157, 78, 221, 0.3);
  padding-top: 10px;
}

/* Responsividade */
@media (max-width: 768px) {
  .options-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .arcade-cabinet {
    padding: 12px;
  }

  .crt-monitor {
    padding: 16px 12px;
    min-height: 490px;
  }

  .question-text {
    font-size: 14px;
  }

  .pixel-btn {
    font-size: 13px;
    padding: 12px 14px;
  }

  .arcade-credits {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
}
/* Mini avatares reativos no HUD (mostra só o rosto do sprite) */
.hud-avatars { display: flex; align-items: center; gap: 8px; padding: 2px 8px; background: rgba(0, 0, 0, 0.4); border: 1px solid var(--neon-purple); }
.mini-avatar { width: 34px; height: 34px; overflow: hidden; display: flex; justify-content: center; }
.mini-avatar img { width: 60px; height: 120px; flex: none; image-rendering: pixelated; object-fit: contain; object-position: top; margin-top: -2px; }

/* Sprites nas telas de vitória (tamanho nativo 80x160) */
.end-sprite-box { width: 80px; height: 160px; }
.end-sprite { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; }

@media (max-width: 680px) {
  .arcade-marquee { flex-direction: column; align-items: flex-start; gap: 6px; font-size: 8px; line-height: 1.5; }
  .marquee-left, .marquee-right { flex-wrap: wrap; gap: 6px; }
}

/* Evita sobreposição de linhas quando o texto quebra em telas estreitas */
.arcade-marquee, .arcade-credits, .arcade-tool-btn { line-height: 1.5; }
