/* ============================================================
   TUTORIAL SPOTLIGHT - Kids 2
   ============================================================ */

/* ── Overlay escuro com buraco (o Spotlight) ─────────────────── */
#tutorial-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

#tutorial-overlay.ativo {
  opacity: 1;
  pointer-events: auto;
}

/* SVG que gera o efeito de buraco escuro */
#tutorial-overlay svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ── Caixa de texto do passo ─────────────────────────────────── */
#tutorial-card {
  position: fixed;
  z-index: 9100;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 2px solid rgba(99, 179, 237, 0.5);
  border-radius: 16px;
  padding: 20px 24px;
  max-width: 320px;
  min-width: 260px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(99, 179, 237, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

#tutorial-card.visivel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Badge da missão */
#tutorial-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #63b3ed;
  background: rgba(99, 179, 237, 0.12);
  border: 1px solid rgba(99, 179, 237, 0.3);
  border-radius: 99px;
  padding: 3px 10px;
  margin-bottom: 10px;
}

/* Título do passo */
#tutorial-titulo {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 8px;
  line-height: 1.3;
}

/* Descrição */
#tutorial-desc {
  font-size: 0.87rem;
  color: #a0aec0;
  line-height: 1.6;
  margin-bottom: 18px;
}

/* Indicador de passo */
#tutorial-steps {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.tutorial-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.3s, transform 0.3s;
}

.tutorial-dot.ativo {
  background: #63b3ed;
  transform: scale(1.4);
}

/* Botões de navegação */
#tutorial-nav {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.tutorial-btn {
  font-family: 'Archivo', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.tutorial-btn:hover {
  transform: translateY(-1px);
}

#tutorial-btn-prev {
  background: rgba(255, 255, 255, 0.08);
  color: #a0aec0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#tutorial-btn-prev:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
}

#tutorial-btn-next {
  background: linear-gradient(135deg, #3182ce, #2b6cb0);
  color: white;
  box-shadow: 0 4px 12px rgba(49, 130, 206, 0.4);
}

#tutorial-btn-next:hover {
  box-shadow: 0 6px 18px rgba(49, 130, 206, 0.55);
}

#tutorial-btn-fechar {
  background: transparent;
  color: #718096;
  font-size: 0.78rem;
  padding: 7px 10px;
  border: none;
  cursor: pointer;
  margin-right: auto;
}

#tutorial-btn-fechar:hover {
  color: #e2e8f0;
}

/* Seta apontando para o spotlight */
#tutorial-seta {
  position: fixed;
  z-index: 9050;
  font-size: 2rem;
  animation: seta-pulse 1.2s ease-in-out infinite;
  pointer-events: none;
  filter: drop-shadow(0 0 8px rgba(99, 179, 237, 0.8));
  opacity: 0;
  transition: opacity 0.4s ease;
}

#tutorial-seta.visivel {
  opacity: 1;
}

@keyframes seta-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.25); }
}

/* ── Botão de Tutorial (fora do tapete) ──────────────────────── */
#btn-abrir-tutorial {
  background: linear-gradient(135deg, #2b6cb0, #1a365d);
  color: white;
  border: 1px solid rgba(99, 179, 237, 0.35);
  border-radius: 10px;
  padding: 9px 18px;
  font-family: 'Archivo', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  margin-left: 12px;
  box-shadow: 0 4px 12px rgba(43, 108, 176, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}

#btn-abrir-tutorial:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(43, 108, 176, 0.5);
}

/* ── Painel seletor de missão ────────────────────────────────── */
#tutorial-seletor {
  position: fixed;
  inset: 0;
  z-index: 8900;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
}

#tutorial-seletor.ativo {
  opacity: 1;
  pointer-events: auto;
}

#tutorial-seletor-box {
  background: linear-gradient(160deg, #1a1a2e 0%, #16213e 100%);
  border: 1px solid rgba(99, 179, 237, 0.25);
  border-radius: 20px;
  padding: 32px;
  max-width: 520px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

#tutorial-seletor-box h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 6px;
}

#tutorial-seletor-box p {
  font-size: 0.85rem;
  color: #718096;
  margin-bottom: 22px;
}

.tutorial-missao-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.tutorial-missao-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: 'Archivo', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: #a0aec0;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
  line-height: 1.4;
}

.tutorial-missao-btn:hover {
  background: rgba(99, 179, 237, 0.12);
  border-color: rgba(99, 179, 237, 0.4);
  color: #e2e8f0;
  transform: translateY(-2px);
}

.tutorial-missao-btn .missao-num {
  display: block;
  font-size: 0.7rem;
  color: #63b3ed;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 3px;
}

#tutorial-seletor-fechar {
  display: block;
  width: 100%;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #718096;
  font-size: 0.82rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

#tutorial-seletor-fechar:hover {
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.25);
}
