/* ============================================================
   Binary Combat — Estilos Principais
   Dark theme com accent verde-água
   ============================================================ */

/* --- Variáveis de design --- */
:root {
  --bg-dark:       #0a0f1e;
  --bg-card:       #111827;
  --bg-card2:      #1a2236;
  --accent:        #00d4aa;
  --accent-dim:    #00a882;
  --call-green:    #2ed573;
  --put-red:       #ff4757;
  --text-main:     #e8eaf6;
  --text-muted:    #7986a3;
  --border:        #1e2d45;
  --gold:          #ffd700;
  --shadow-accent: 0 0 20px rgba(0,212,170,0.25);
  --font-display:  'Orbitron', monospace;
  --font-body:     'Sora', sans-serif;
  --radius:        12px;
  --radius-lg:     20px;
}

/* --- Reset básico --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ============================================================
   NAVEGAÇÃO GLOBAL
   ============================================================ */
.site-nav {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 1px;
}
.nav-logo .accent { color: var(--accent); }
.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  align-items: center;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  transition: color .2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 22px;
  cursor: pointer;
  padding: 4px 8px;
}
.footer-nav {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  transition: color .2s;
}
.footer-nav a:hover { color: var(--accent); }

@media (max-width: 600px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 52px;
    left: 0; right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 16px 20px;
    gap: 16px;
    align-items: flex-start;
  }
  .nav-links.open { display: flex; }
}

/* ============================================================
   ANÚNCIOS
   ============================================================ */
.ad-top {
  width: 100%;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 0;
  min-height: 60px;
}

.ad-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.03);
  border: 1px dashed var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 11px;
  text-align: center;
  width: 728px;
  max-width: 100%;
  height: 90px;
}

.ad-placeholder.ad-rect {
  width: 300px;
  height: 250px;
}

.ad-placeholder.ad-mobile-banner {
  width: 320px;
  height: 50px;
}

.ad-sidebar {
  width: 320px;
  flex-shrink: 0;
  padding: 20px 0 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ad-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
  align-self: flex-start;
}

.ad-bottom-mobile {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  justify-content: center;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  z-index: 100;
  padding: 4px;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.app-layout {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px;
  gap: 0;
  min-height: calc(100vh - 120px);
}

.game-area {
  flex: 1;
  min-width: 0;
  position: relative;
}

/* ============================================================
   RODAPÉ
   ============================================================ */
.app-footer {
  border-top: 1px solid var(--border);
  padding: 16px;
  text-align: center;
  background: var(--bg-card);
}

.disclaimer {
  color: var(--text-muted);
  font-size: 12px;
  margin-bottom: 4px;
}

.footer-links {
  color: var(--text-muted);
  font-size: 11px;
}

/* ============================================================
   TELAS (screens)
   ============================================================ */
.screen {
  display: none;
  animation: fadeSlideIn 0.4s ease;
}

.screen.active {
  display: block;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   TELA DE BOAS-VINDAS
   ============================================================ */
.welcome-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
  gap: 24px;
}

.logo-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.logo-icon {
  font-size: 48px;
  filter: drop-shadow(0 0 16px var(--accent));
}

.logo-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 6vw, 52px);
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: 2px;
}

.logo-title .accent {
  color: var(--accent);
  text-shadow: var(--shadow-accent);
}

.logo-sub {
  color: var(--text-muted);
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.dialog-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 20px;
  max-width: 520px;
  text-align: left;
  position: relative;
}

.dialog-box::before {
  content: '💬';
  position: absolute;
  top: -14px;
  left: 16px;
  font-size: 20px;
}

.welcome-hint {
  color: var(--text-muted);
  font-size: 12px;
}

/* ============================================================
   BOTÕES
   ============================================================ */
.btn-primary {
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: var(--radius);
  padding: 14px 36px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(0,212,170,0.35);
}

.btn-primary:hover {
  background: #00f0c3;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,212,170,0.5);
}

.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-call {
  background: linear-gradient(135deg, #1a5c2e, var(--call-green));
  color: #fff;
  border: 2px solid var(--call-green);
  border-radius: var(--radius);
  padding: 18px 40px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(46,213,115,0.3);
}

.btn-call:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(46,213,115,0.5);
}

.btn-put {
  background: linear-gradient(135deg, #5c1a1a, var(--put-red));
  color: #fff;
  border: 2px solid var(--put-red);
  border-radius: var(--radius);
  padding: 18px 40px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(255,71,87,0.3);
}

.btn-put:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255,71,87,0.5);
}

.btn-disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ============================================================
   MAPA DE FASES
   ============================================================ */
.map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.screen-title {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--accent);
}

.player-stats {
  display: flex;
  gap: 20px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
}

.stat-icon { font-size: 16px; }

.stat-value {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--accent);
  font-weight: 700;
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.phase-map {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  padding-left: 40px;
}

.phase-map::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 30px;
  bottom: 30px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--border));
}

.phase-node {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
}

.phase-node:hover:not(.locked) {
  border-color: var(--accent);
  background: var(--bg-card2);
  transform: translateX(4px);
}

.phase-node.locked {
  opacity: 0.45;
  cursor: not-allowed;
}

.phase-node.completed {
  border-color: var(--accent-dim);
}

.phase-dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-card2);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  position: relative;
  left: -56px;
  margin-right: -56px;
}

.phase-node.active .phase-dot,
.phase-node.current .phase-dot {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
  box-shadow: 0 0 16px rgba(0,212,170,0.6);
}

.phase-node.completed .phase-dot {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: #000;
}

.phase-node.locked .phase-dot {
  background: var(--bg-dark);
  border-color: var(--border);
  color: var(--text-muted);
}

.phase-info { flex: 1; }

.phase-name {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 2px;
}

.phase-desc {
  font-size: 12px;
  color: var(--text-muted);
}

.phase-stars {
  font-size: 18px;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.phase-stars .earned { color: var(--gold); }

.lock-hint {
  font-size: 11px;
  color: var(--accent);
  opacity: 0.7;
  margin-top: 4px;
  line-height: 1.3;
}

/* ============================================================
   TELA DE INTRODUÇÃO DA FASE
   ============================================================ */
.phase-intro-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 20px;
  gap: 20px;
}

.phase-badge {
  background: linear-gradient(135deg, var(--accent-dim), var(--accent));
  color: #000;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 20px;
  letter-spacing: 2px;
}

.phase-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 4vw, 32px);
  color: var(--text-main);
}

.phase-objectives {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 24px;
  max-width: 480px;
  text-align: left;
  width: 100%;
}

.phase-objectives h4 {
  color: var(--accent);
  font-size: 13px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.phase-objectives ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.phase-objectives li::before {
  content: '▸ ';
  color: var(--accent);
}

.phase-objectives li {
  font-size: 14px;
  color: var(--text-muted);
}

/* ============================================================
   TELA DE DESAFIO
   ============================================================ */
.challenge-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 20px;
  margin-bottom: 16px;
}

.challenge-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.phase-label {
  background: var(--accent);
  color: #000;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 6px;
}

.challenge-title-text {
  font-weight: 600;
  font-size: 15px;
}

.challenge-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.mini-progress-bar {
  width: 100px;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.mini-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.4s ease;
  width: 0%;
}

.challenge-body {
  position: relative;
}

#main-chart {
  width: 100%;
  max-width: 700px;
  height: auto;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: crosshair;
}

/* ============================================================
   BOTÕES CALL/PUT
   ============================================================ */
.call-put-area {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* ============================================================
   MASCOTE (SVG inline via JS)
   ============================================================ */
.mascot-welcome,
.mascot-intro,
.mascot-result {
  width: 120px;
  height: 120px;
}

/* Layout lateral da tela de desafio */
.challenge-layout {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

/* Coluna esquerda — mascote + balão de dica */
.mascot-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 80px;
  flex-shrink: 0;
  padding-top: 8px;
}

.mascot-side {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}

/* Balão de dica vertical (à esquerda do gráfico) */
.hint-bubble-side {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 10px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-muted);
  width: 80px;
  text-align: center;
  position: relative;
}

/* Setinha apontando para a direita (em direção ao gráfico) */
.hint-bubble-side::after {
  content: '';
  position: absolute;
  right: -7px;
  top: 14px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 7px solid var(--border);
}

/* Coluna direita — gráfico + controles */
.challenge-body {
  flex: 1;
  min-width: 0;
}

/* Mantém compatibilidade com classes antigas que podem ser usadas pelas fases */
.mascot-small {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}

/* Balão horizontal legado (mantido caso alguma fase use diretamente) */
.hint-bubble {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 10px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-muted);
  width: 80px;
  text-align: center;
  position: relative;
}

.hint-bubble::after {
  content: '';
  position: absolute;
  right: -7px;
  top: 14px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 7px solid var(--border);
}

/* ============================================================
   TELA DE RESULTADO
   ============================================================ */
.result-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 20px;
  gap: 20px;
}

.stars-display {
  display: flex;
  gap: 8px;
  font-size: 44px;
  filter: drop-shadow(0 0 8px var(--gold));
}

.result-title {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--accent);
}

.result-message {
  color: var(--text-muted);
  max-width: 440px;
}

.result-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.result-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 24px;
  min-width: 100px;
}

.result-stat-value {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--accent);
  display: block;
}

.result-stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.xp-gained {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,212,170,0.1);
  border: 1px solid var(--accent);
  border-radius: 30px;
  padding: 10px 24px;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--accent);
  animation: pulse 1s ease infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 10px rgba(0,212,170,0.3); }
  50%       { box-shadow: 0 0 24px rgba(0,212,170,0.7); }
}

.result-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================================================
   CERTIFICADO
   ============================================================ */
.certificate-wrapper {
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.certificate-border {
  border: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 600px;
  width: 100%;
  background: var(--bg-card);
  box-shadow: 0 0 40px rgba(0,212,170,0.2), inset 0 0 60px rgba(0,0,0,0.3);
  position: relative;
}

.certificate-border::before,
.certificate-border::after {
  content: '◆';
  color: var(--accent);
  font-size: 20px;
  position: absolute;
}

.certificate-border::before { top: 12px; left: 12px; }
.certificate-border::after  { bottom: 12px; right: 12px; }

.cert-header {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.cert-icon { font-size: 48px; display: block; margin-bottom: 8px; }

.cert-title {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--accent);
}

.cert-body { text-align: center; }

.cert-text { color: var(--text-muted); font-size: 14px; margin-bottom: 4px; }

.cert-name {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--text-main);
  margin: 8px 0;
}

.cert-program {
  color: var(--accent);
  font-weight: 600;
  font-size: 16px;
  margin: 8px 0 16px;
}

.cert-skills {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}

.cert-skills li::before { content: '✓ '; color: var(--call-green); }
.cert-skills li { font-size: 13px; color: var(--text-muted); text-align: left; }

.cert-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.cert-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.cert-stat {
  text-align: center;
}

.cert-stat-value {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--accent);
  display: block;
}

.cert-stat-label {
  font-size: 11px;
  color: var(--text-muted);
}

.cert-date {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.cert-disclaimer {
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
}

.cert-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================================================
   PHASE-SPECIFIC: Cards de padrão (Fase 5)
   ============================================================ */
.pattern-cards {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 16px;
}

.pattern-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  min-width: 130px;
}

.pattern-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.pattern-card.selected {
  border-color: var(--accent);
  background: rgba(0,212,170,0.1);
}

.pattern-card.correct { border-color: var(--call-green); background: rgba(46,213,115,0.1); }
.pattern-card.wrong   { border-color: var(--put-red);   background: rgba(255,71,87,0.1); }

.pattern-card-icon { font-size: 28px; margin-bottom: 6px; }
.pattern-card-name { font-size: 13px; font-weight: 600; }
.pattern-card-desc { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* ============================================================
   PHASE 7 — ARMADILHA
   ============================================================ */
.trap-alert {
  background: rgba(255,71,87,0.1);
  border: 2px solid var(--put-red);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-top: 16px;
  animation: trapFlash 0.5s ease;
}

@keyframes trapFlash {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.trap-alert h3 { color: var(--put-red); margin-bottom: 8px; }
.trap-alert p  { color: var(--text-muted); font-size: 14px; }

/* ============================================================
   PHASE 8 — GESTÃO DE BANCA
   ============================================================ */
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.quiz-option {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 20px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-main);
  width: 100%;
}

.quiz-option:hover { border-color: var(--accent); }
.quiz-option.correct { border-color: var(--call-green); background: rgba(46,213,115,0.1); color: var(--call-green); }
.quiz-option.wrong   { border-color: var(--put-red);   background: rgba(255,71,87,0.1);   color: var(--put-red); }

/* ============================================================
   BARRA DE PROGRESSO GLOBAL
   ============================================================ */
.global-progress {
  height: 4px;
  background: var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.global-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  transition: width 0.6s ease;
}

/* ============================================================
   FEEDBACK VISUAL (acerto/erro overlay)
   ============================================================ */
.feedback-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 200;
  animation: feedbackFade 1s ease forwards;
}

@keyframes feedbackFade {
  0%   { opacity: 1; }
  70%  { opacity: 1; }
  100% { opacity: 0; }
}

.feedback-icon {
  font-size: 80px;
  filter: drop-shadow(0 0 30px currentColor);
}

.feedback-overlay.correct .feedback-icon { color: var(--call-green); }
.feedback-overlay.wrong   .feedback-icon { color: var(--put-red); }

/* ============================================================
   FASE 3 — ZONAS DE SUPORTE/RESISTÊNCIA
   ============================================================ */
.zone-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 14px;
}

.zone-btn {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 20px;
  cursor: pointer;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 13px;
  transition: all 0.2s;
}

.zone-btn.suporte   { border-color: var(--call-green); }
.zone-btn.resistencia { border-color: var(--put-red); }
.zone-btn.selected  { background: rgba(0,212,170,0.1); border-color: var(--accent); }

/* ============================================================
   RESPONSIVIDADE
   ============================================================ */
@media (max-width: 900px) {
  .ad-sidebar { display: none; }
  .ad-bottom-mobile { display: flex; }

  body { padding-bottom: 60px; }
}

@media (max-width: 600px) {
  .app-layout { padding: 12px 10px; }

  .call-put-area { gap: 10px; }
  .btn-call, .btn-put { padding: 14px 24px; font-size: 15px; }

  .challenge-header { flex-direction: column; gap: 8px; align-items: flex-start; }

  /* Em mobile: mascote fica em cima do gráfico, em linha horizontal */
  .challenge-layout { flex-direction: column; gap: 8px; }

  .mascot-sidebar {
    flex-direction: row;
    width: 100%;
    align-items: center;
    padding-top: 0;
    gap: 10px;
  }

  .mascot-side { width: 52px; height: 52px; }

  .hint-bubble-side {
    width: auto;
    flex: 1;
    text-align: left;
    font-size: 12px;
  }

  /* Setinha aponta para baixo em mobile */
  .hint-bubble-side::after {
    right: auto;
    top: auto;
    left: 20px;
    bottom: -7px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 7px solid var(--border);
    border-bottom: none;
  }

  .phase-map { padding-left: 20px; }
  .phase-map::before { left: 9px; }
  .phase-dot { left: -36px; margin-right: -36px; width: 30px; height: 30px; font-size: 11px; }

  .certificate-border { padding: 24px 16px; }
  .cert-title { font-size: 16px; }
}

/* ============================================================
   ANIMAÇÕES EXTRAS
   ============================================================ */
@keyframes bounceIn {
  0%   { transform: scale(0.5); opacity: 0; }
  70%  { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.bounce-in { animation: bounceIn 0.5s cubic-bezier(0.68,-0.55,0.265,1.55) both; }
.slide-up  { animation: slideUp 0.4s ease both; }

/* Barra de XP animada */
@keyframes xpPop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.15); color: var(--gold); }
  100% { transform: scale(1); }
}

.xp-pop { animation: xpPop 0.5s ease; }

/* ============================================================
   UTILITÁRIOS
   ============================================================ */
.text-accent  { color: var(--accent); }
.text-green   { color: var(--call-green); }
.text-red     { color: var(--put-red); }
.text-muted   { color: var(--text-muted); }
.text-center  { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
