/* ==========================================================================
   ANAEROBIC ARCADE - feedback.css
   Estados das alternativas e painel de feedback (acerto / erro).
   Ícones têm tamanho fixo em CSS: nunca ocupam a tela.
   Autores: Henrique e Daniel
   ========================================================================== */

/* ---------- Alternativas após responder ---------- */
.pixel-btn.btn-correct {
  background: rgba(0, 255, 136, 0.18) !important;
  border-color: var(--neon-green) !important;
  box-shadow: 0 4px 0 #007733, 0 7px 0 #000, 0 0 18px rgba(0, 255, 136, 0.55) !important;
  animation: correctGlow 1.2s ease-in-out 2;
}

.pixel-btn.btn-wrong {
  background: rgba(255, 42, 85, 0.2) !important;
  border-color: var(--neon-red) !important;
  box-shadow: 0 4px 0 #880022, 0 7px 0 #000, 0 0 14px rgba(255, 42, 85, 0.5) !important;
  animation: optionShake 0.4s ease-in-out 1;
}

/* Alternativa correta destacada de forma discreta quando o jogador erra */
.pixel-btn.btn-reveal {
  border-color: var(--neon-green) !important;
  box-shadow: 0 4px 0 #007733, 0 7px 0 #000 !important;
  background: rgba(0, 255, 136, 0.08) !important;
}

.pixel-btn:disabled { cursor: default; }
.pixel-btn.btn-dim { opacity: 0.55; }

@keyframes optionShake {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-6px); }
  40%      { transform: translateX(6px); }
  60%      { transform: translateX(-4px); }
  80%      { transform: translateX(4px); }
}

@keyframes correctGlow {
  0%, 100% { filter: brightness(1); }
  50%      { filter: brightness(1.25); }
}

/* ---------- Painel de feedback ---------- */
.feedback-panel {
  position: relative;
  z-index: 50;
  margin-top: 8px;
  padding: 14px 16px;
  text-align: left;
  background: #090314;
  border: 3px solid var(--neon-green);
  border-radius: 6px;
  box-shadow: 0 3px 0 #000, 0 0 18px rgba(0, 255, 136, 0.3);
  animation: feedbackIn 0.25s ease-out both;
}

.feedback-panel.is-wrong {
  border-color: var(--neon-red);
  box-shadow: 0 3px 0 #000, 0 0 18px rgba(255, 42, 85, 0.3);
}

.feedback-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.feedback-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;               /* tamanho fixo */
  display: block;
}
.feedback-panel:not(.is-wrong) .feedback-icon { filter: drop-shadow(0 0 6px rgba(0, 255, 136, 0.9)); animation: iconPop 0.5s ease-out; }
.feedback-panel.is-wrong .feedback-icon { filter: drop-shadow(0 0 4px rgba(255, 42, 85, 0.7)); }

.feedback-title {
  font-family: var(--font-pixel);
  font-size: 11px;
  line-height: 1.4;
  color: var(--neon-green);
  text-shadow: 0 0 8px rgba(0, 255, 136, 0.6);
}
.feedback-panel.is-wrong .feedback-title { color: var(--neon-red); text-shadow: none; }

.feedback-chip {
  margin-left: auto;
  padding: 3px 8px;
  font-family: var(--font-pixel);
  font-size: 8px;
  color: #000;
  background: var(--neon-yellow);
  border: 2px solid #000;
}
.feedback-panel.is-wrong .feedback-chip { background: var(--neon-red); color: #fff; }

.feedback-right-answer {
  margin-bottom: 8px;
  font-size: 12.5px;
  color: #bbf7d0;
}
.feedback-right-answer strong { color: var(--neon-green); }

.feedback-label {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: var(--neon-yellow);
  margin-bottom: 6px;
}

.feedback-explanation {
  font-size: 13.5px;
  line-height: 1.5;
  color: #f1f5f9;
}

.clinical-tip-box {
  margin-top: 10px;
  padding: 8px 12px;
  font-size: 12.5px;
  color: #bbf7d0;
  background: rgba(0, 240, 255, 0.08);
  border-left: 3px solid var(--neon-cyan);
  border-radius: 0 4px 4px 0;
}

/* Botão CONTINUAR */
.continue-wrap { text-align: center; margin-top: 14px; }
.continue-btn {
  display: inline-flex;
  justify-content: center;
  min-width: 240px;
  font-family: var(--font-pixel);
  font-size: 11px;
}

/* Pequena comemoração (faíscas) no acerto */
.feedback-sparks { display: inline-flex; gap: 4px; }
.feedback-sparks i {
  width: 6px; height: 6px; display: block; background: var(--neon-yellow);
  animation: sparkUp 0.9s ease-out both;
}
.feedback-sparks i:nth-child(2) { background: var(--neon-cyan); animation-delay: 0.1s; }
.feedback-sparks i:nth-child(3) { background: var(--neon-pink); animation-delay: 0.2s; }

@keyframes sparkUp {
  0%   { transform: translateY(6px) scale(0.4); opacity: 0; }
  40%  { opacity: 1; }
  100% { transform: translateY(-10px) scale(1); opacity: 0; }
}
@keyframes iconPop { 0% { transform: scale(0.3); } 70% { transform: scale(1.2); } 100% { transform: scale(1); } }
@keyframes feedbackIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 680px) {
  .feedback-panel { padding: 12px; }
  .feedback-title { font-size: 10px; }
  .feedback-chip { margin-left: 0; }
  .continue-btn { width: 100%; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .feedback-panel, .pixel-btn.btn-wrong, .pixel-btn.btn-correct, .feedback-icon, .feedback-sparks i { animation: none !important; }
}

/* Bot�o CONTINUAR acima do efeito CRT (mesmo n�vel do painel) */
.continue-wrap { position: relative; z-index: 50; }
