@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;600;700&family=Baloo+2:wght@600;700;800&family=Nunito:wght@400;600;700;800&display=swap');

/* ========================================================
   VARIÁVEIS DE COR E TEMA NUVITO ARCADE
   ======================================================== */
:root {
  --laranja: #ff8a3d;
  --laranja-escuro: #d66e2d;
  --azul-ceu: #74b9ff;
  --azul-escuro: #2f7dff;
  --azul-profundo: #185adb;
  --verde: #2ecc71;
  --verde-escuro: #219653;
  --vermelho: #ff7675;
  --vermelho-escuro: #d63031;
  --roxo: #a29bfe;
  --roxo-escuro: #6c5ce7;
  --amarelo-ouro: #f1c40f;
  --amarelo-escuro: #d4ac0d;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

/* ========================================================
   CANVAS FULLSCREEN (60 FPS / VOO LIVRE 2D)
   ======================================================== */
#game-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 2;
  background: transparent;
  touch-action: none; /* Impede rolagem ao arrastar o dedo */
  cursor: default;
}

.game-wrapper.em-voo #game-canvas {
  cursor: none !important;
}

/* ========================================================
   BARRA SUPERIOR PADRÃO (HEADER NUVITO)
   ======================================================== */
header { 
  background: rgba(255, 255, 255, 0.95); 
  width: 100%; 
  padding: 10px 20px; 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  z-index: 50; 
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12); 
  box-sizing: border-box; 
  position: relative; 
}

.grupo-botoes {
  display: flex;
  gap: 8px;
  z-index: 60;
  align-items: center;
}

.btn-header { 
  color: white; 
  text-decoration: none; 
  padding: 8px 16px; 
  border-radius: 50px; 
  font-weight: 800; 
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2); 
  border: none; 
  cursor: pointer; 
  font-family: 'Fredoka', 'Nunito', sans-serif; 
  font-size: 0.88rem; 
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  touch-action: manipulation;
}
.btn-header:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
}

.btn-vermelho { background: var(--vermelho-escuro, #d63031); }
.btn-roxo { background: var(--roxo-escuro, #6c5ce7); }
.btn-laranja { background: var(--laranja, #ff8a3d); }
.btn-azul { background: var(--azul-escuro, #2f7dff); }

.btn-texto-desktop { display: inline; }
.btn-texto-mobile { display: none; }

/* BARRA DE PROGRESSO NO HEADER (ESTILO MISSÃO DIVISÃO) */
.progresso-header {
  position: absolute; 
  left: 50%; 
  transform: translateX(-50%);
  width: 220px; 
  background: #1e272e; 
  border-radius: 20px; 
  height: 26px; 
  border: 3px solid #57606f; 
  overflow: hidden;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5);
  z-index: 55;
}
.progresso-fill { 
  height: 100%; 
  width: 0%; 
  background: linear-gradient(90deg, #00d2ff, #3a7bd5); 
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
}
.progresso-textos { 
  position: absolute; 
  inset: 0; 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  padding: 0 10px; 
  font-size: 0.95rem; 
  pointer-events: none; 
  z-index: 2; 
  font-weight: 800; 
  color: white; 
  text-shadow: 1px 1px 2px black; 
  white-space: nowrap; 
  font-family: 'Fredoka', sans-serif;
}

/* STATUS À DIREITA (PONTOS E SEQUÊNCIA / COMBO) */
.status-topo { 
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 60;
}
.bloco-status-topo {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.1;
}
.label-status-topo {
  font-size: 0.72rem;
  font-weight: 800;
  color: #64748b;
  font-family: 'Fredoka', 'Nunito', sans-serif;
  letter-spacing: 0.5px;
}
.valor-status-topo {
  font-family: 'Fredoka', 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--laranja);
}
.streak-box-topo .valor-status-topo {
  color: #e65100;
}
.streak-box-topo.modo-febre {
  background: linear-gradient(135deg, #fef3c7, #fed7aa) !important;
  border: 2px solid #f59e0b !important;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.75) !important;
  animation: pulsoFebre 0.7s infinite alternate ease-in-out;
}
.streak-box-topo.modo-febre .label-status-topo {
  color: #b45309 !important;
  font-weight: 900;
}
.streak-box-topo.modo-febre .valor-status-topo {
  color: #dc2626 !important;
  text-shadow: 0 0 8px rgba(220, 38, 38, 0.5);
}
@keyframes pulsoFebre {
  from { transform: scale(1); box-shadow: 0 0 8px rgba(245, 158, 11, 0.5); }
  to { transform: scale(1.08); box-shadow: 0 0 20px rgba(245, 158, 11, 0.95); }
}

/* ÁREA FLUTUANTE DA PALAVRA / MISSÃO (FORA DA BARRA SUPERIOR) */
.container-missao-flutuante {
  position: absolute;
  top: 68px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  width: 92%;
  max-width: 520px;
}
.container-missao-flutuante > * {
  pointer-events: auto;
}

/* Modo 1: Banner da Missão de Tiro */
.banner-missao {
  background: rgba(255, 255, 255, 0.95);
  border: 3px solid var(--laranja);
  border-radius: 50px;
  padding: 4px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  animation: flutuarLeve 3s infinite ease-in-out;
}
@keyframes flutuarLeve {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.missao-icone {
  font-size: 1.5rem;
  line-height: 1;
}

.missao-palavra {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.lacuna {
  color: #dc2626;
  background: #fee2e2;
  border: 2px dashed #dc2626;
  border-radius: 8px;
  padding: 0 8px;
  font-weight: 800;
  animation: pulsoLacuna 1.2s infinite ease-in-out;
}
@keyframes pulsoLacuna {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); background: #fecaca; }
}

.alvo-letra {
  color: #b45309;
  background: #fef08a;
  padding: 0 4px;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(245, 159, 0, 0.7);
  animation: brilhoAlvo 1.2s infinite alternate;
}
@keyframes brilhoAlvo {
  from { box-shadow: 0 0 4px rgba(245, 159, 0, 0.4); }
  to { box-shadow: 0 0 14px rgba(245, 159, 0, 0.95); }
}

.btn-ouvir-hud {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s;
}
.btn-ouvir-hud:hover { transform: scale(1.1); }

/* Modo 2: Banner do Caçador */
.banner-cacador {
  background: rgba(255, 255, 255, 0.95);
  border: 3px solid var(--verde);
  border-radius: 50px;
  padding: 5px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  color: #1e293b;
  transition: opacity 0.4s ease, transform 0.4s ease;
  opacity: 1;
}
.banner-cacador.escondido {
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
  pointer-events: none;
}
.cacador-icone { font-size: 1.3rem; }

/* Modo 1: Banner do Lança-Letras */
.banner-lanca-hud {
  border-color: var(--laranja) !important;
  box-shadow: 0 6px 20px rgba(255, 138, 61, 0.25) !important;
}

/* Modo 3: Banner do Modo Mestre */
.banner-mestre-hud {
  border-color: #a855f7 !important;
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.25) !important;
}



/* ========================================================
   PAINEL DE DISPARO (MODO 1: LANÇA-LETRAS)
   ======================================================== */
.painel-disparo-bottom {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 25;
  width: min(96vw, 520px);
  justify-content: center;
}

.btn-disparo-acao {
  flex: 1;
  border: none;
  border-radius: 24px;
  padding: 8px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.15s ease, filter 0.15s ease;
  user-select: none;
}
.btn-disparo-acao:active {
  transform: translateY(5px) scale(0.98);
}

/* Estado de Recarga (Cooldown anti-spam) */
.painel-disparo-bottom.em-recarga .btn-disparo-acao {
  opacity: 0.62;
  filter: saturate(0.65) brightness(0.92);
  transform: translateY(2px) scale(0.98);
  pointer-events: none;
}

.btn-disparo-m {
  background: linear-gradient(135deg, #ff8a3d 0%, #e65100 100%);
  box-shadow: 0 6px 0 #bf360c, 0 10px 20px rgba(230, 81, 0, 0.35);
}
.btn-disparo-m:active { box-shadow: 0 1px 0 #bf360c; }

.btn-disparo-n {
  background: linear-gradient(135deg, #2f7dff 0%, #1565c0 100%);
  box-shadow: 0 6px 0 #0d47a1, 0 10px 20px rgba(47, 125, 255, 0.35);
}
.btn-disparo-n:active { box-shadow: 0 1px 0 #0d47a1; }

.btn-disparo-raio {
  background: linear-gradient(135deg, #a855f7 0%, #7e22ce 100%);
  border: 2px solid #facc15;
  box-shadow: 0 6px 0 #581c87, 0 10px 20px rgba(168, 85, 247, 0.4);
}
.btn-disparo-raio:active { box-shadow: 0 1px 0 #581c87; }

.letra-disparo-grande {
  font-family: 'Fredoka', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.sub-disparo {
  font-family: 'Nunito', sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  margin-top: 2px;
}

.tecla-hint {
  font-size: 0.72rem;
  opacity: 0.8;
}

/* Dica de controle */
.dica-controles-touch {
  position: absolute;
  top: 142px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.82);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  color: white;
  padding: 6px 18px;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  z-index: 26;
  pointer-events: none;
  animation: fadePulse 2.5s infinite ease-in-out;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  white-space: nowrap;
  transition: top 0.2s ease;
}
.dica-controles-touch.dica-mestre,
#game-wrapper[data-modo="mestre"] .dica-controles-touch {
  top: 168px;
}
@keyframes fadePulse {
  0%, 100% { opacity: 0.9; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.6; transform: translateX(-50%) scale(0.97); }
}

/* ========================================================
   OVERLAY DE CONTAGEM REGRESSIVA PRÉ-VOO
   ======================================================== */
.tela-contagem {
  position: absolute;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(15, 32, 67, 0.4) 0%, rgba(15, 32, 67, 0.72) 100%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fadeInContagem 0.3s ease;
}

@keyframes fadeInContagem {
  from { opacity: 0; }
  to { opacity: 1; }
}

.wrap-contagem {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  user-select: none;
}

.subtitulo-contagem {
  font-family: 'Fredoka', 'Baloo 2', cursive, sans-serif;
  font-size: clamp(0.92rem, 3.2vw, 1.35rem);
  font-weight: 800;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.22);
  border: 2px solid rgba(255, 255, 255, 0.45);
  padding: 8px 24px;
  border-radius: 28px;
  max-width: 92vw;
  line-height: 1.35;
  letter-spacing: 0.8px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  margin-bottom: 12px;
  animation: pulseSubtitulo 1.6s infinite ease-in-out;
}

@keyframes pulseSubtitulo {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.contagem-numero {
  font-family: 'Fredoka', 'Baloo 2', cursive, sans-serif;
  font-size: clamp(95px, 24vw, 180px);
  font-weight: 900;
  line-height: 1;
  color: #fff200;
  -webkit-text-stroke: 0;
  /* Contorno externo sólido em 360° via text-shadow: elimina 100% de riscos e costuras internas da fonte */
  text-shadow:
    -4px -4px 0 #d35400,
     0   -4px 0 #d35400,
     4px -4px 0 #d35400,
    -4px  0   0 #d35400,
     4px  0   0 #d35400,
    -4px  4px 0 #d35400,
     0    4px 0 #d35400,
     4px  4px 0 #d35400,
    -2px -4px 0 #d35400,
     2px -4px 0 #d35400,
    -4px -2px 0 #d35400,
     4px -2px 0 #d35400,
    -4px  2px 0 #d35400,
     4px  2px 0 #d35400,
    -2px  4px 0 #d35400,
     2px  4px 0 #d35400,
    0 8px 0 #b33939,
    0 14px 0 #7b1113,
    0 18px 28px rgba(0, 0, 0, 0.65),
    0 0 40px rgba(255, 235, 59, 0.85);
  display: inline-block;
  will-change: transform, opacity;
}

.contagem-numero.anim-punch {
  animation: punchContagem 0.48s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes punchContagem {
  0% {
    transform: scale(0.2) rotate(-8deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.22) rotate(3deg);
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

.contagem-numero.decolar {
  font-size: clamp(48px, 13vw, 105px);
  color: #2ed573;
  -webkit-text-stroke: 0;
  /* Contorno externo verde sólido em 360° via text-shadow: elimina 100% dos riscos internos nas letras D, E, L, A, R */
  text-shadow:
    -3px -3px 0 #137547,
     0   -3px 0 #137547,
     3px -3px 0 #137547,
    -3px  0   0 #137547,
     3px  0   0 #137547,
    -3px  3px 0 #137547,
     0    3px 0 #137547,
     3px  3px 0 #137547,
    -2px -3px 0 #137547,
     2px -3px 0 #137547,
    -3px -2px 0 #137547,
     3px -2px 0 #137547,
    -3px  2px 0 #137547,
     3px  2px 0 #137547,
    -2px  3px 0 #137547,
     2px  3px 0 #137547,
    0 6px 0 #0b492b,
    0 10px 0 #052917,
    0 16px 30px rgba(0, 0, 0, 0.65),
    0 0 45px rgba(46, 213, 115, 0.95);
}

/* ========================================================
   TELAS MODAIS / OVERLAYS (INÍCIO, REGRA E FIM)
   ======================================================== */
.overlay {
  position: absolute;
  inset: 0;
  z-index: 400;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  background: rgba(116, 185, 255, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: fadeIn 0.3s ease;
}

.card-info {
  background: #ffffff;
  border: 6px solid var(--laranja);
  border-radius: 36px;
  padding: 26px 20px;
  max-width: 530px;
  width: min(94vw, 530px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  animation: popIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-inicio-custom {
  padding-top: 52px;
  overflow: visible !important;
}

.nuvito-header-badge {
  position: absolute;
  top: -54px;
  left: 50%;
  transform: translateX(-50%);
  width: 105px;
  height: 105px;
  z-index: 50;
  pointer-events: none;
}

.mascote-topo-img {
  width: 105px;
  height: 105px;
  object-fit: contain;
  position: relative;
  z-index: 50;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.22));
}

.titulo-jogo-inicio {
  color: var(--laranja);
  margin: 0;
  font-size: 2rem;
  letter-spacing: -0.5px;
}

.subtitulo-arcade {
  font-family: 'Baloo 2', cursive;
  color: var(--azul-escuro);
  font-size: 1.35rem;
  margin: 2px 0 8px 0;
}

.subtitulo-inicio {
  color: #4b5563;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 16px 0;
  line-height: 1.35;
}

/* Grid dos 2 Modos no Menu */
.grid-modos-voo {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.card-modo-voo {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 22px;
  border: 3px solid transparent;
  cursor: pointer;
  position: relative;
  text-align: left;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}
.card-modo-voo:hover, .card-modo-voo:active {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 22px rgba(0,0,0,0.12);
}

.modo-lanca {
  background: linear-gradient(135deg, #fff9f2 0%, #fff1df 100%);
  border-color: #ffd8a8;
}
.modo-lanca:hover { border-color: var(--laranja); }

.modo-cacador {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-color: #bbf7d0;
}
.modo-cacador:hover { border-color: var(--verde); }

.modo-mestre {
  background: linear-gradient(135deg, #fdf4ff 0%, #fae8ff 100%);
  border-color: #f0abfc;
}
.modo-mestre:hover { border-color: #a855f7; }

.icone-modo-voo {
  font-size: 2.2rem;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.info-modo-voo {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.nome-modo-voo {
  font-family: 'Baloo 2', cursive;
  font-size: 1.15rem;
  font-weight: 800;
  color: #1f2937;
  line-height: 1.2;
}

.desc-modo-voo {
  font-size: 0.82rem;
  color: #4b5563;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 2px;
}

.badge-modo-tag {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  position: absolute;
  top: -8px;
  right: 14px;
  background: var(--laranja);
  color: white;
  box-shadow: 0 2px 6px rgba(255, 138, 61, 0.4);
}
.tag-verde {
  background: var(--verde) !important;
  box-shadow: 0 2px 6px rgba(46, 204, 113, 0.4) !important;
}
.tag-roxa {
  background: #a855f7 !important;
  box-shadow: 0 2px 6px rgba(168, 85, 247, 0.4) !important;
}

.acoes-inicio-voo {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.botoes-guia-inicio {
  display: flex;
  gap: 10px;
  width: 100%;
}

.btn-dica-regra {
  flex: 1;
  background: linear-gradient(135deg, #fff3bf 0%, #ffe066 100%);
  color: #795548;
  border: 2px dashed #f59f00;
  padding: 10px 14px;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(245, 159, 0, 0.2);
  transition: transform 0.15s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-dica-regra:hover {
  transform: translateY(-2px);
}

.btn-dica-jogar {
  flex: 1;
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  color: #0369a1;
  border: 2px dashed #0284c7;
  padding: 10px 14px;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
  transition: transform 0.15s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-dica-jogar:hover {
  transform: translateY(-2px);
}

.btn-sair-menu {
  color: #64748b !important;
  font-size: 0.95rem;
  background: transparent;
  padding: 4px 12px;
  text-decoration: none;
  font-weight: 700;
}

/* ========================================================
   MODAL DE REGRAS & COMO JOGAR (GUIA COM ABAS)
   ======================================================== */
.card-regra {
  border-color: var(--amarelo-ouro);
  max-width: 520px;
  width: min(94vw, 520px);
  padding: 22px 20px 18px;
}

.btn-fechar-modal {
  position: absolute;
  top: 14px;
  right: 16px;
  background: #f1f5f9;
  border: none;
  font-size: 1.2rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  color: #64748b;
  font-weight: bold;
}
.btn-fechar-modal:hover { background: var(--vermelho); color: white; }

/* ABAS SUPERIORES DO GUIA */
.abas-guia-container {
  display: flex;
  gap: 8px;
  background: #f1f5f9;
  padding: 5px;
  border-radius: 50px;
  margin-bottom: 14px;
  width: 100%;
}

.btn-guia-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 40px;
  border: none;
  background: transparent;
  color: #64748b;
  font-family: 'Fredoka', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
}

.btn-guia-tab.ativo {
  background: #ffffff;
  color: #b45309;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  font-weight: 800;
}

.guia-tab-ico {
  font-size: 1.15rem;
}

.aba-guia-conteudo {
  width: 100%;
  animation: fadeIn 0.2s ease;
}

.cabecalho-regra {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}
.icone-regra { font-size: 1.9rem; }
.titulo-regra {
  font-family: 'Baloo 2', cursive;
  color: #b45309;
  font-size: 1.55rem;
  margin: 0;
}

.caixa-regra-destaque {
  background: #fffbeb;
  border: 2px solid #fde68a;
  border-radius: 18px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.frase-chave {
  color: #92400e;
  font-size: 1.12rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.35;
}

.exemplos-comparacao {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
.exemplo-card {
  padding: 12px 8px;
  border-radius: 16px;
  text-align: center;
}
.exemplo-m { background: #fef2f2; border: 2px solid #fecaca; }
.exemplo-n { background: #eff6ff; border: 2px solid #bfdbfe; }

.exemplo-badge {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 20px;
  margin-bottom: 6px;
  display: inline-block;
}
.exemplo-m .exemplo-badge { background: #fee2e2; color: #dc2626; }
.exemplo-n .exemplo-badge { background: #dbeafe; color: #2563eb; }

.exemplo-palavra {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1f2937;
  margin: 4px 0;
}
.letra-m { color: #dc2626; font-weight: 900; text-decoration: underline; text-underline-offset: 3px; }
.letra-pb { color: #b91c1c; background: #fecaca; padding: 0 4px; border-radius: 6px; font-weight: 900; }
.letra-n { color: #2563eb; font-weight: 900; text-decoration: underline; text-underline-offset: 3px; }
.letra-outra { color: #1d4ed8; background: #dbeafe; padding: 0 4px; border-radius: 6px; font-weight: 900; }

/* ========================================================
   CARDS DE TUTORIAL (COMO JOGAR OS 3 MODOS)
   ======================================================== */
.dica-geral-voo {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #e0f2fe;
  border: 1.5px solid #bae6fd;
  border-radius: 14px;
  padding: 8px 12px;
  margin-bottom: 12px;
  text-align: left;
}

.dica-geral-ico {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.dica-geral-txt {
  font-size: 0.86rem;
  font-weight: 700;
  color: #0369a1;
  line-height: 1.3;
}

.lista-tutoriais-modos {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
  width: 100%;
}

.card-tutorial-modo {
  border-radius: 16px;
  padding: 10px 12px;
  text-align: left;
  border: 2px solid transparent;
  transition: transform 0.15s ease;
}

.tuto-modo-topo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.tuto-badge-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
  color: white;
  flex-shrink: 0;
}

.tuto-icone {
  font-size: 1.25rem;
  line-height: 1;
}

.tuto-titulo {
  font-family: 'Fredoka', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: #1e293b;
}

.tuto-acao-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 4px;
}

.tuto-passo {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 0.86rem;
  color: #334155;
  line-height: 1.35;
}

.tuto-simbolo {
  font-weight: 900;
  font-size: 0.95rem;
  flex-shrink: 0;
  line-height: 1.2;
}

.tuto-simbolo.verde { color: #16a34a; }
.tuto-simbolo.vermelho { color: #dc2626; }
.tuto-simbolo.azul { color: #2563eb; }
.tuto-simbolo.laranja { color: #ea580c; }
.tuto-simbolo.roxo { color: #9333ea; }

/* Cores específicas por modo no tutorial */
.modo-tuto-cacador {
  background: #f0fdf4;
  border-color: #bbf7d0;
}
.modo-tuto-cacador .tuto-badge-num {
  background: #16a34a;
}

.modo-tuto-lanca {
  background: #eff6ff;
  border-color: #bfdbfe;
}
.modo-tuto-lanca .tuto-badge-num {
  background: #2563eb;
}

.modo-tuto-mestre {
  background: #faf5ff;
  border-color: #e9d5ff;
}
.modo-tuto-mestre .tuto-badge-num {
  background: #9333ea;
}

.btn-entendi {
  background: linear-gradient(135deg, var(--verde) 0%, var(--verde-escuro) 100%) !important;
  box-shadow: 0 6px 0 #1b8347 !important;
  font-size: 1.15rem !important;
  width: 100%;
}

/* ========================================================
   TELA FINAL & RECOMPENSAS
   ======================================================== */
.btn-acao {
  background: var(--laranja);
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: 50px;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 0 var(--laranja-escuro);
  transition: transform 0.1s;
}
.btn-acao:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 var(--laranja-escuro);
}

.nuvito-animado {
  animation: pular 2s infinite ease-in-out;
  filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.15));
}
@keyframes pular {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes popIn {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.anim-balanco {
  animation: balanco 2.4s infinite ease-in-out;
}
@keyframes balanco {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(8deg); }
  75% { transform: rotate(-8deg); }
}

.anim-pulso {
  animation: pulsoBotao 2s infinite ease-in-out;
}
@keyframes pulsoBotao {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

/* ========================================================
   CONTROLES FIXOS INFERIORES (PADRÃO NUVITO)
   ======================================================== */
.controles-fixos { 
  position: absolute; 
  bottom: 20px; 
  right: 20px; 
  display: flex; 
  flex-direction: column; 
  gap: 10px; 
  z-index: 110; 
}
.btn-circular {
  width: 55px;
  height: 55px;
  border-radius: 50% !important;
  border: 3.5px solid #ffffff !important;
  background: #ffffff;
  color: #4b5563;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16) !important;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.25s ease, box-shadow 0.2s ease, color 0.2s ease;
  touch-action: manipulation;
}
.btn-circular:hover { transform: scale(1.08); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22) !important; }
.btn-circular:active { transform: scale(0.92); }

/* Botão de Pausa (Branco padrão, Âmbar #f59f00 quando pausado) */
#btn-pausa { background: #ffffff; color: #4b5563; }
#btn-pausa.pausado { background: #f59f00 !important; color: #ffffff !important; box-shadow: 0 4px 16px rgba(245, 159, 0, 0.45) !important; }

/* Card da Tela de Pausa */
.card-pausa {
  border-color: #f59f00;
  text-align: center;
}

/* Música (Laranja #ff8533 quando ativo, Branco quando mudo) */
#btn-musica.ativo, .btn-musica.ativo { background: #ff8533 !important; color: #ffffff !important; }
#btn-musica:not(.ativo), .btn-musica:not(.ativo) { background: #ffffff !important; color: #4b5563 !important; }

/* Som / Voz (Verde #2ecc71 quando ativo, Branco quando mudo) */
#btn-som.ativo, #btn-voz.ativo, .btn-som.ativo, .btn-voz.ativo { background: #2ecc71 !important; color: #ffffff !important; }
#btn-som:not(.ativo), #btn-voz:not(.ativo), .btn-som:not(.ativo), .btn-voz:not(.ativo) { background: #ffffff !important; color: #4b5563 !important; }

/* Tela Cheia (Roxo / Lilás #8e7df0) */
#btn-fullscreen, .btn-fs, .btn-fullscreen, .btn-circular.roxo { background: #8e7df0 !important; color: #ffffff !important; }

/* Engrenagem (Azul #2f7dff) */
#btn-engrenagem, #btn-config { background: #2f7dff !important; color: #ffffff !important; }

.botoes-secundarios {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#btn-engrenagem {
  display: none;
}

@media (max-width: 1366px) {
  #btn-engrenagem {
    display: flex;
  }
  .botoes-secundarios {
    display: none;
  }
  .botoes-secundarios.mostrar {
    display: flex;
  }
}

@media (max-width: 768px) {
  header {
    padding: 8px 12px;
  }
  .btn-header {
    padding: 7px 10px;
    font-size: 0.8rem;
  }
  .btn-texto-desktop { display: none; }
  .btn-texto-mobile { display: inline-block; font-size: 1.05rem; }
  .progresso-header {
    width: auto;
    min-width: 54px;
    height: 24px;
    background: rgba(30, 39, 46, 0.88);
    border: 2px solid #57606f;
    border-radius: 12px;
    padding: 0 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .progresso-header .progresso-fill {
    display: none;
  }
  .progresso-header .progresso-textos {
    position: static;
    inset: auto;
    padding: 0;
    width: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.84rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
  }
  .progresso-header .progresso-textos span:not(#texto-progresso) {
    display: none;
  }
  .status-topo {
    gap: 8px;
  }
  .label-status-topo {
    font-size: 0.65rem;
  }
  .valor-status-topo {
    font-size: 1.15rem;
  }
  .container-missao-flutuante {
    top: 56px;
  }
  .dica-controles-touch {
    top: 126px;
    font-size: 0.78rem;
    padding: 5px 14px;
    white-space: normal;
    text-align: center;
    max-width: 90vw;
  }
  .dica-controles-touch.dica-mestre,
  #game-wrapper[data-modo="mestre"] .dica-controles-touch {
    top: 154px;
  }
  .controles-fixos {
    bottom: 14px;
    right: 12px;
    gap: 8px;
  }
  .btn-circular {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }
  .painel-disparo-bottom {
    width: min(calc(100vw - 140px), 380px);
    left: 50%;
    transform: translateX(-50%);
  }
  .scroll-indicator {
    bottom: 14px;
    left: 14px;
    font-size: 0.8rem;
  }
  .scroll-indicator svg {
    width: 20px;
    height: 20px;
  }

  /* Compactação do Menu Inicial no Mobile */
  .card-info {
    padding: 20px 16px;
    border-width: 5px;
    border-radius: 28px;
    width: min(94vw, 440px);
    max-height: 92vh;
  }
  .card-inicio-custom {
    padding-top: 42px;
  }
  .nuvito-header-badge {
    top: -42px;
    width: 82px;
    height: 82px;
  }
  .mascote-topo-img {
    width: 82px;
    height: 82px;
  }
  .titulo-jogo-inicio {
    font-size: 1.6rem;
    margin-bottom: 2px;
  }
  .subtitulo-arcade {
    font-size: 1.05rem;
    margin: 0 0 4px 0;
  }
  .subtitulo-inicio {
    font-size: 0.88rem;
    margin: 0 0 10px 0;
    line-height: 1.3;
  }
  .grid-modos-voo {
    gap: 8px;
    margin-bottom: 12px;
  }
  .card-modo-voo {
    padding: 10px 14px;
    gap: 12px;
    border-radius: 16px;
  }
  .icone-modo-voo {
    font-size: 1.6rem;
    line-height: 1;
  }
  .nome-modo-voo {
    font-size: 1.02rem;
    line-height: 1.25;
  }
  .desc-modo-voo {
    display: block !important;
    font-size: 0.74rem !important;
    color: #64748b !important;
    line-height: 1.25 !important;
    margin-top: 2px !important;
  }
  .badge-modo-tag {
    display: none !important;
  }
  .acoes-inicio-voo {
    gap: 8px;
  }
  .botoes-guia-inicio {
    gap: 8px;
  }
  .btn-dica-regra, .btn-dica-jogar {
    padding: 8px 10px;
    font-size: 0.84rem;
  }
  .btn-sair-menu {
    font-size: 0.85rem;
    padding: 2px 8px;
  }
}

/* Indicador de Scroll Padrão Oficial do Portal Nuvito (Canto Esquerdo) */
.scroll-indicator {
  position: absolute;
  bottom: 18px;
  left: 20px;
  transform: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: rgba(255, 255, 255, 0.92);
  font-family: 'Nunito', sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  z-index: 100;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.45);
  animation: floatScrollLeft 8s infinite ease-in-out;
  transition: color 0.2s ease, transform 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
}

.scroll-indicator:hover {
  color: #ffffff;
  transform: translateY(-3px);
}

@keyframes floatScrollLeft {
  0%, 88%, 100% {
    transform: translateY(0);
  }
  94% {
    transform: translateY(6px);
  }
}

.scroll-indicator svg {
  width: 24px;
  height: 24px;
  margin-top: 2px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.btn-voltar-jogo {
  background: var(--laranja, #ff8a3d);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 15px rgba(255, 138, 61, 0.35);
}

/* ========================================================
   OTIMIZAÇÃO DO MODO PAISAGEM NO CELULAR (SEM BLOQUEIO)
   ======================================================== */
@media (max-height: 520px) and (orientation: landscape) {
  header {
    padding: 6px 14px;
  }
  .btn-header {
    padding: 5px 8px;
    font-size: 0.75rem;
  }
  .progresso-header {
    width: auto;
    min-width: 50px;
    height: 22px;
    background: rgba(30, 39, 46, 0.88);
    border: 2px solid #57606f;
    border-radius: 11px;
    padding: 0 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .progresso-header .progresso-fill {
    display: none;
  }
  .progresso-header .progresso-textos {
    position: static;
    inset: auto;
    padding: 0;
    width: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.80rem;
    font-weight: 800;
    color: #ffffff;
  }
  .progresso-header .progresso-textos span:not(#texto-progresso) {
    display: none;
  }
  .container-missao-flutuante {
    top: 48px;
  }
  .banner-missao {
    padding: 3px 12px;
  }
  .missao-palavra {
    font-size: 1.15rem;
  }
  .dica-controles-touch {
    top: 96px;
    font-size: 0.72rem;
    padding: 4px 12px;
  }
  .dica-controles-touch.dica-mestre,
  #game-wrapper[data-modo="mestre"] .dica-controles-touch {
    top: 106px;
  }
  .painel-disparo-bottom {
    bottom: 6px;
    gap: 8px;
    width: min(calc(100vw - 150px), 420px);
    left: 50%;
    transform: translateX(-50%);
  }
  .scroll-indicator {
    bottom: 8px;
    left: 12px;
    font-size: 0.75rem;
  }
  .scroll-indicator svg {
    width: 16px;
    height: 16px;
  }
  .btn-disparo-acao {
    padding: 4px 10px;
    min-height: 48px;
  }
  .letra-disparo-grande {
    font-size: 1.6rem;
  }
  .sub-disparo {
    font-size: 0.68rem;
  }
  .controles-fixos {
    bottom: 8px;
    right: 8px;
    gap: 6px;
  }
  .btn-circular {
    width: 42px;
    height: 42px;
    font-size: 1.15rem;
  }
  .card-info {
    padding: 16px 14px;
    max-height: 94vh;
  }
  .card-inicio-custom {
    padding-top: 36px;
    overflow: visible !important;
  }
  .nuvito-header-badge {
    top: -34px;
    width: 68px;
    height: 68px;
    z-index: 50;
    pointer-events: none;
  }
  .mascote-topo-img {
    width: 68px;
    height: 68px;
    position: relative;
    z-index: 50;
  }
  .titulo-jogo-inicio {
    font-size: 1.35rem;
  }
  .subtitulo-arcade {
    font-size: 1rem;
    margin: 0 0 4px 0;
  }
  .subtitulo-inicio {
    font-size: 0.82rem;
    margin-bottom: 8px;
  }
  .grid-modos-voo {
    gap: 6px;
    margin-bottom: 8px;
  }
  .card-modo-voo {
    padding: 6px 12px;
    gap: 8px;
    border-radius: 12px;
  }
  .icone-modo-voo {
    font-size: 1.3rem;
  }
  .nome-modo-voo {
    font-size: 0.85rem;
  }
  .desc-modo-voo {
    display: none !important;
  }
  .badge-modo-tag {
    display: none !important;
  }
  .botoes-guia-inicio {
    gap: 6px;
  }
  .btn-dica-regra, .btn-dica-jogar {
    padding: 6px 10px;
    font-size: 0.78rem;
  }
  .btn-sair-menu {
    font-size: 0.8rem;
    padding: 2px 8px;
  }
  .subtitulo-contagem {
    font-size: 0.82rem;
    padding: 4px 14px;
    margin-bottom: 6px;
    max-width: 90vw;
  }
  .contagem-numero {
    font-size: clamp(65px, 18vw, 110px);
  }
}

@media (max-width: 480px) {
  .card-info {
    padding: 16px 14px;
    border-radius: 24px;
    border-width: 4px;
    width: min(94vw, 390px);
  }
  .card-inicio-custom {
    padding-top: 36px;
  }
  .nuvito-header-badge {
    top: -36px;
    width: 72px;
    height: 72px;
  }
  .mascote-topo-img {
    width: 72px;
    height: 72px;
  }
  .titulo-jogo-inicio {
    font-size: 1.42rem;
  }
  .subtitulo-arcade {
    font-size: 0.95rem;
  }
  .subtitulo-inicio {
    font-size: 0.82rem;
    margin-bottom: 8px;
  }
  .grid-modos-voo {
    gap: 6px;
    margin-bottom: 10px;
  }
  .card-modo-voo {
    padding: 8px 12px;
    gap: 10px;
    border-radius: 14px;
    min-height: 44px;
  }
  .icone-modo-voo {
    font-size: 1.45rem;
  }
  .nome-modo-voo {
    font-size: 0.94rem;
  }
  .botoes-guia-inicio {
    gap: 6px;
  }
  .btn-dica-regra, .btn-dica-jogar {
    padding: 6px 6px;
    font-size: 0.78rem;
    white-space: nowrap;
  }
  .btn-sair-menu {
    font-size: 0.82rem;
  }
  .banner-missao { padding: 4px 10px; }
  .missao-palavra { font-size: 1.3rem; }
  .missao-icone { font-size: 1.3rem; }
  .banner-cacador { font-size: 0.82rem; padding: 4px 12px; }
  .cacador-icone { font-size: 1.15rem; }
  .dica-controles-touch {
    top: 128px;
    font-size: 0.75rem;
    padding: 4px 12px;
    max-width: 92vw;
  }
  .dica-controles-touch.dica-mestre,
  #game-wrapper[data-modo="mestre"] .dica-controles-touch {
    top: 156px;
  }
  .letra-disparo-grande { font-size: 2rem; }
  .sub-disparo { font-size: 0.75rem; }
}

@media (max-width: 380px) {
  .botoes-guia-inicio {
    gap: 5px;
  }
  .btn-dica-regra, .btn-dica-jogar {
    padding: 6px 4px;
    font-size: 0.74rem;
    white-space: nowrap;
  }
}
