/* =====================================================
   INGLÊS AVENTURA — CSS infantil para 6–12 anos
   ===================================================== */

:root {
  --verde:   #38a169;
  --verde-c: #c6f6d5;
  --azul:    #3182ce;
  --azul-c:  #bee3f8;
  --roxo:    #805ad5;
  --roxo-c:  #e9d8fd;
  --laranja: #dd6b20;
  --laranja-c: #feebc8;
  --amarelo: #d69e2e;
  --amarelo-c: #fefcbf;
  --vermelho:#e53e3e;
  --vermelho-c:#fed7d7;
  --bg:      #f0f4ff;
  --card-bg: #ffffff;
  --text:    #1a202c;
  --text-m:  #4a5568;
  --radius:  20px;
  --shadow:  0 4px 20px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============ ESTRELAS FLUTUANTES ============ */
.stars-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.star-float {
  position: absolute;
  font-size: 1.4rem;
  opacity: .18;
  animation: float-star 8s ease-in-out infinite;
}
.s1 { top: 8%;  left: 5%;  animation-delay: 0s; }
.s2 { top: 20%; right: 8%; animation-delay: 2s; }
.s3 { top: 60%; left: 3%; animation-delay: 4s; }
.s4 { bottom: 20%; right: 5%; animation-delay: 1s; }
.s5 { bottom: 8%; left: 40%; animation-delay: 3s; }

@keyframes float-star {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-18px) rotate(15deg); }
}

/* ============ HEADER ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(135deg, #4c51bf 0%, #2b6cb0 100%);
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: .75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  color: #fff;
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -.5px;
}
.brand-icon { font-size: 1.6rem; animation: spin-star 4s linear infinite; }
@keyframes spin-star {
  0%,100% { transform: rotate(0deg); }
  50% { transform: rotate(20deg); }
}

.nav { display: flex; gap: .6rem; }
.nav-link {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-weight: 700;
  font-size: .9rem;
  padding: .4rem .85rem;
  border-radius: 50px;
  transition: background .2s, color .2s;
}
.nav-link:hover,
.nav-link.active {
  background: rgba(255,255,255,.22);
  color: #fff;
}

/* ============ MAIN ============ */
.main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* ============ HERO ============ */
.hero {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  color: #fff;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  right: -80px; bottom: -80px;
}
.hero-mascot {
  font-size: 5rem;
  animation: bounce-mascot 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes bounce-mascot {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.hero-title {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: .5rem;
}
.hero-title .highlight {
  background: linear-gradient(90deg, #ffd700, #ff8c00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub { font-size: 1.05rem; opacity: .9; }

/* ============ QUICK NAV ============ */
.quick-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.quick-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  padding: 1.2rem .8rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 800;
  font-size: .9rem;
  color: #fff;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
  border: none;
}
.quick-btn:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.q-green  { background: linear-gradient(135deg, #48bb78, #38a169); }
.q-blue   { background: linear-gradient(135deg, #4299e1, #2b6cb0); }
.q-purple { background: linear-gradient(135deg, #9f7aea, #6b46c1); }
.q-orange { background: linear-gradient(135deg, #ed8936, #c05621); }
.qb-icon  { font-size: 2rem; }
.qb-label { font-size: .85rem; }

/* ============ SECTION CARD ============ */
.section-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow);
}
.section-header { margin-bottom: 1.25rem; }
.section-title {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: .3rem;
}
.section-desc { color: var(--text-m); font-size: .95rem; }

/* ============ QUIZ ============ */
.quiz-card { border-top: 5px solid #48bb78; }
.quiz-box { min-height: 180px; }
.quiz-loading { color: var(--text-m); padding: 2rem; text-align: center; font-size: 1.1rem; }

.quiz-pergunta {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.4;
}
.quiz-opcoes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem;
  margin-bottom: 1rem;
}
.quiz-opcao-btn {
  padding: .8rem 1rem;
  border: 2.5px solid #e2e8f0;
  border-radius: 12px;
  background: #f7fafc;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: all .2s;
  color: var(--text);
}
.quiz-opcao-btn:hover:not(:disabled) {
  border-color: var(--azul);
  background: var(--azul-c);
  transform: scale(1.02);
}
.quiz-opcao-btn.certa {
  border-color: var(--verde);
  background: var(--verde-c);
  color: #276749;
  animation: pop .3s ease;
}
.quiz-opcao-btn.errada {
  border-color: var(--vermelho);
  background: var(--vermelho-c);
  color: #9b2c2c;
}
@keyframes pop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.06); }
  100% { transform: scale(1); }
}
.quiz-feedback-msg {
  font-size: 1rem;
  font-weight: 700;
  padding: .75rem 1rem;
  border-radius: 12px;
  margin-bottom: .5rem;
}
.quiz-feedback-msg.ok  { background: var(--verde-c); color: #276749; }
.quiz-feedback-msg.err { background: var(--vermelho-c); color: #9b2c2c; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; }
.btn-quiz-next {
  margin-top: 1rem;
  padding: .7rem 1.6rem;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 3px 10px rgba(102,126,234,.4);
}
.btn-quiz-next:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(102,126,234,.5); }

/* ============ CURIOSIDADES ============ */
.curiosidades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.curiosidade-card {
  background: linear-gradient(135deg, #f7fafc, #edf2f7);
  border-radius: 16px;
  padding: 1.25rem;
  border: 2px solid #e2e8f0;
  transition: transform .2s, box-shadow .2s;
}
.curiosidade-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.curiosidade-emoji { font-size: 2.5rem; margin-bottom: .5rem; }
.curiosidade-titulo { font-size: 1rem; font-weight: 800; margin-bottom: .4rem; color: #2d3748; }
.curiosidade-fato   { font-size: .9rem; color: var(--text-m); line-height: 1.5; }

/* ============ TRADUTOR ============ */
.tradutor-card { border-top: 5px solid var(--roxo); }
.tradutor-inner { display: flex; flex-direction: column; gap: 1rem; }
.tradutor-hint {
  font-size: .92rem;
  color: #553c9a;
  background: var(--roxo-c);
  border-radius: 10px;
  padding: .6rem 1rem;
  font-weight: 700;
}
.tradutor-input {
  width: 100%;
  border: 2.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 1rem;
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
  outline: none;
  transition: border-color .2s;
}
.tradutor-input:focus { border-color: var(--roxo); }
.tradutor-counter { text-align: right; font-size: .8rem; color: var(--text-m); }
.btn-traduzir {
  align-self: flex-start;
  padding: .75rem 1.75rem;
  background: linear-gradient(135deg, #9f7aea, #6b46c1);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 3px 10px rgba(107,70,193,.35);
}
.btn-traduzir:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(107,70,193,.5); }
.tradutor-result {
  background: linear-gradient(135deg, #f0e6ff, #e9d8fd);
  border: 2px solid #b794f4;
  border-radius: 14px;
  padding: 1rem 1.25rem;
}
.result-label { font-size: .8rem; font-weight: 800; color: #6b46c1; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .4rem; }
.result-text  { font-size: 1.2rem; font-weight: 700; color: #2d3748; }
.tradutor-loading { color: var(--text-m); font-weight: 700; padding: .75rem 0; animation: pulse-text 1s ease-in-out infinite; }
@keyframes pulse-text { 0%,100% { opacity: 1; } 50% { opacity: .5; } }
.hidden { display: none !important; }

/* ============ TRILHAS CTA ============ */
.trilhas-cta {
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.cta-title { font-size: 1.75rem; font-weight: 900; margin-bottom: .5rem; }
.cta-desc  { font-size: 1rem; opacity: .85; margin-bottom: 1.5rem; }
.trilhas-preview {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.trilha-preview-card {
  background: rgba(255,255,255,.1);
  border: 2px solid rgba(255,255,255,.2);
  border-radius: 16px;
  padding: 1rem 1.5rem;
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  transition: all .2s;
  border-top: 4px solid var(--trilha-cor, #fff);
}
.trilha-preview-card:hover { background: rgba(255,255,255,.18); transform: translateY(-4px); }
.tp-emoji { font-size: 2.5rem; }
.tp-nome  { font-weight: 800; font-size: .95rem; }
.tp-fases { font-size: .8rem; opacity: .75; }
.btn-cta {
  display: inline-block;
  padding: .9rem 2.5rem;
  background: linear-gradient(135deg, #f6e05e, #ed8936);
  color: #1a202c;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(237,137,54,.5);
  transition: transform .2s, box-shadow .2s;
}
.btn-cta:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(237,137,54,.6); }

/* ============ PAGE HERO (Trilhas/Fase) ============ */
.page-hero {
  padding: 1.5rem 0 .5rem;
}
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  text-decoration: none;
  color: var(--text-m);
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: 1rem;
  padding: .4rem .8rem;
  border-radius: 8px;
  background: rgba(0,0,0,.05);
  transition: background .2s;
}
.back-btn:hover { background: rgba(0,0,0,.1); }
.page-title { font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 900; margin-bottom: .4rem; }
.page-desc  { color: var(--text-m); font-size: 1rem; }

/* ============ TRILHAS LIST ============ */
.trilhas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.trilha-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  border-top: 6px solid var(--cor, var(--azul));
  transition: transform .2s, box-shadow .2s;
}
.trilha-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.trilha-card-top {
  background: var(--cor-clara, var(--azul-c));
  padding: 1.5rem;
  text-align: center;
}
.trilha-emoji-big { font-size: 4rem; }
.trilha-card-body { padding: 1.25rem 1.5rem; flex: 1; }
.trilha-nome { font-size: 1.3rem; font-weight: 900; margin-bottom: .5rem; }
.trilha-desc { color: var(--text-m); font-size: .92rem; line-height: 1.5; margin-bottom: .75rem; }
.trilha-fases-badge {
  display: inline-block;
  background: var(--cor-clara, var(--azul-c));
  color: var(--cor, var(--azul));
  padding: .25rem .75rem;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 800;
}
.trilha-card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #e2e8f0;
  text-align: right;
}
.btn-comecar {
  color: var(--cor, var(--azul));
  font-weight: 800;
  font-size: 1rem;
}

/* ============ TRILHA DETALHE ============ */
.trilha-page-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: .75rem;
}
.trilha-page-emoji { font-size: 4rem; flex-shrink: 0; }
.trilha-page-title { font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 900; margin-bottom: .3rem; }
.trilha-page-desc  { color: var(--text-m); }

.fases-wrap { display: flex; flex-direction: column; gap: 1rem; }
.fases-title { font-size: 1.2rem; font-weight: 800; color: var(--text-m); }
.fases-lista { display: flex; flex-direction: column; gap: .85rem; }

.fase-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--card-bg);
  border-radius: 16px;
  padding: 1.1rem 1.4rem;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
  border-left: 5px solid var(--cor, var(--azul));
  transition: transform .2s, box-shadow .2s;
}
.fase-card:hover { transform: translateX(6px); box-shadow: var(--shadow-lg); }
.fase-card.fase-completa { background: #f0fff4; border-left-color: var(--verde); }
.fase-num {
  width: 2.2rem; height: 2.2rem;
  border-radius: 50%;
  background: var(--cor, var(--azul));
  color: #fff;
  font-weight: 900;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.fase-info { display: flex; align-items: center; gap: .8rem; flex: 1; }
.fase-emoji { font-size: 2rem; flex-shrink: 0; }
.fase-titulo { font-size: 1.05rem; font-weight: 800; margin-bottom: .15rem; }
.fase-desc   { font-size: .87rem; color: var(--text-m); }
.fase-status { flex-shrink: 0; }
.fase-badge {
  display: inline-block;
  padding: .3rem .9rem;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 800;
}
.fase-ok  { background: var(--verde-c); color: #276749; }
.fase-new { background: var(--azul-c);  color: #2b6cb0; }

/* ============ FASE (Conteúdo) ============ */
.fase-nav {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  font-size: .88rem;
  margin-bottom: .75rem;
  color: var(--text-m);
}
.fase-nav-link { color: var(--azul); text-decoration: none; font-weight: 700; }
.fase-nav-link:hover { text-decoration: underline; }
.fase-nav-sep { color: #a0aec0; }
.fase-nav-cur { font-weight: 700; color: var(--text); }

.fase-header {
  background: linear-gradient(135deg, var(--cor, #4c51bf), #2d3748);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  color: #fff;
  box-shadow: var(--shadow);
  margin-bottom: .5rem;
}
.fase-progress-bar {
  height: 8px;
  background: rgba(255,255,255,.25);
  border-radius: 50px;
  margin-bottom: .4rem;
  overflow: hidden;
}
.fase-progress-fill {
  height: 100%;
  background: #ffd700;
  border-radius: 50px;
  transition: width .6s ease;
}
.fase-progress-label { font-size: .85rem; opacity: .85; margin-bottom: .75rem; }
.fase-title-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .4rem;
}
.fase-big-emoji   { font-size: 3rem; }
.fase-titulo-big  { font-size: clamp(1.4rem, 3.5vw, 2rem); font-weight: 900; }
.fase-desc-big    { opacity: .9; font-size: .95rem; }

.card-section {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow);
}
.content-title { font-size: 1.25rem; font-weight: 900; margin-bottom: 1rem; }

.fase-texto {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.fase-texto strong {
  color: #2b6cb0;
  background: #ebf8ff;
  padding: .05em .25em;
  border-radius: 4px;
  cursor: pointer;
  border-bottom: 2px dashed #90cdf4;
  transition: background .15s, transform .15s;
}
.fase-texto strong:hover {
  background: #bee3f8;
  transform: scale(1.05);
}
.fase-texto b {
  font-weight: 800;
  color: #2d3748;
}

/* Botão de áudio nas questões */
.q-audio-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  margin-bottom: .85rem;
}
.audio-speak-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #4299e1, #2b6cb0);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(66,153,225,.45);
  transition: transform .15s, box-shadow .15s;
  animation: audio-pulse 2.5s ease-in-out infinite;
}
.audio-speak-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 20px rgba(66,153,225,.6);
}
.audio-speak-btn.audio-pulsando {
  animation: audio-click .3s ease;
}
@keyframes audio-pulse {
  0%,100% { box-shadow: 0 4px 14px rgba(66,153,225,.45); }
  50%      { box-shadow: 0 4px 22px rgba(66,153,225,.75); }
}
@keyframes audio-click {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}
.q-instrucao {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-m);
}

/* Vocabulário */
.vocab-section { margin-top: 1.25rem; }
.vocab-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: .75rem;
  color: #2d3748;
}
.vocab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: .6rem;
}
.vocab-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: #ebf8ff;
  border: 1.5px solid #bee3f8;
  border-radius: 10px;
  padding: .6rem .9rem;
  font-size: .95rem;
}
.vocab-en { font-weight: 900; color: #2b6cb0; }
.vocab-arrow { color: #90cdf4; }
.vocab-pt { color: #2d3748; }

/* ============ QUESTÕES ============ */
.questoes-section { margin-top: .5rem; }
.questoes-score {
  text-align: right;
  font-size: .95rem;
  font-weight: 800;
  color: var(--text-m);
  margin-bottom: 1rem;
}
.questoes-lista { display: flex; flex-direction: column; gap: 1.25rem; }

.questao-card {
  background: #f7fafc;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.25rem 1.4rem;
  position: relative;
  transition: border-color .2s;
}
.questao-card.acertou { border-color: var(--verde); background: #f0fff4; }
.questao-card.errou   { border-color: var(--vermelho); background: #fff5f5; }
.q-numero {
  position: absolute;
  top: 1rem; right: 1.2rem;
  font-size: .8rem;
  font-weight: 800;
  color: var(--text-m);
  background: #e2e8f0;
  width: 1.8rem; height: 1.8rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.q-pergunta {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: .85rem;
  padding-right: 2rem;
  line-height: 1.4;
}
.q-opcoes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
}
.opcao-btn {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .7rem .9rem;
  border: 2.5px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  font-family: inherit;
  font-size: .97rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: all .2s;
  color: var(--text);
}
.opcao-btn:hover:not(:disabled) {
  border-color: var(--azul);
  background: var(--azul-c);
  transform: scale(1.02);
}
.opcao-btn:disabled { cursor: default; }
.opcao-btn.opcao-certa {
  border-color: var(--verde);
  background: var(--verde-c);
  color: #276749;
}
.opcao-btn.opcao-errada {
  border-color: var(--vermelho);
  background: var(--vermelho-c);
  color: #9b2c2c;
}
.opcao-btn.opcao-certa-dest {
  border-color: var(--verde);
  background: var(--verde-c);
  color: #276749;
  font-weight: 900;
}
.opcao-letra {
  width: 1.6rem; height: 1.6rem;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem;
  font-weight: 900;
  flex-shrink: 0;
  transition: background .2s;
}
.opcao-btn.opcao-certa .opcao-letra,
.opcao-btn.opcao-certa-dest .opcao-letra { background: var(--verde); color: #fff; }
.opcao-btn.opcao-errada .opcao-letra { background: var(--vermelho); color: #fff; }

.q-feedback { margin-top: .75rem; }
.fb-certa {
  padding: .65rem 1rem;
  background: var(--verde-c);
  border: 1.5px solid #9ae6b4;
  border-radius: 10px;
  color: #276749;
  font-weight: 800;
  font-size: .95rem;
  animation: slide-in .3s ease;
}
.fb-errada {
  padding: .65rem 1rem;
  background: var(--vermelho-c);
  border: 1.5px solid #feb2b2;
  border-radius: 10px;
  color: #9b2c2c;
  font-weight: 700;
  font-size: .9rem;
  animation: slide-in .3s ease;
}
@keyframes slide-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============ NAVEGAÇÃO ENTRE FASES ============ */
.fase-navigation {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn-nav {
  padding: .8rem 1.75rem;
  border-radius: 50px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  display: inline-flex;
  align-items: center;
}
.btn-prev {
  background: #e2e8f0;
  color: var(--text);
}
.btn-prev:hover { background: #cbd5e0; transform: translateX(-3px); }
.btn-next {
  background: linear-gradient(135deg, #48bb78, #276749);
  color: #fff;
  box-shadow: 0 3px 12px rgba(72,187,120,.4);
}
.btn-next:hover { transform: translateX(3px); box-shadow: 0 6px 20px rgba(72,187,120,.5); }

/* ============ CONFETTI ============ */
#confetti-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}
.confetti-piece {
  position: absolute;
  top: -20px;
  width: 10px; height: 10px;
  border-radius: 2px;
  animation: confetti-fall linear forwards;
}
@keyframes confetti-fall {
  to { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

/* ============ FOOTER ============ */
.footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-m);
  font-size: .88rem;
  font-weight: 700;
}

/* ============ NAV USUÁRIO ============ */
.nav-usuario {
  color: rgba(255,255,255,.9);
  font-weight: 800;
  font-size: .9rem;
  padding: .4rem .85rem;
  background: rgba(255,255,255,.18);
  border-radius: 50px;
}
.nav-sair {
  background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.4);
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: .85rem;
  padding: .35rem .8rem;
  border-radius: 50px;
  cursor: pointer;
  transition: background .2s;
}
.nav-sair:hover { background: rgba(255,255,255,.28); }
.nav-entrar {
  background: rgba(255,255,255,.2);
  border: 2px solid rgba(255,255,255,.5);
}
.nav-entrar:hover { background: rgba(255,255,255,.3); color: #fff; }

/* ============ LOGIN PAGE ============ */
.login-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem 3rem;
  gap: 0;
}
.login-mascot {
  font-size: 4rem;
  animation: bounce 2s infinite;
  margin-bottom: .5rem;
}
.login-titulo {
  font-size: 2rem;
  font-weight: 900;
  color: var(--roxo);
  text-align: center;
}
.login-subtitulo {
  color: var(--text-m);
  font-size: 1rem;
  text-align: center;
  margin: .4rem 0 1.5rem;
}
.login-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  width: 100%;
  max-width: 420px;
}
.login-tabs {
  display: flex;
  gap: .5rem;
  margin-bottom: 1.5rem;
  background: var(--bg);
  border-radius: 50px;
  padding: .3rem;
}
.login-tab {
  flex: 1;
  background: transparent;
  border: none;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: .95rem;
  padding: .55rem .5rem;
  border-radius: 50px;
  cursor: pointer;
  color: var(--text-m);
  transition: background .2s, color .2s;
}
.login-tab.active {
  background: var(--roxo);
  color: #fff;
  box-shadow: 0 2px 8px rgba(128,90,213,.35);
}
.login-form { display: flex; flex-direction: column; gap: 1rem; }
.login-form.hidden { display: none; }

.campo-grupo { display: flex; flex-direction: column; gap: .3rem; }
.campo-label {
  font-weight: 700;
  font-size: .9rem;
  color: var(--text);
}
.campo-dica {
  font-weight: 400;
  color: var(--text-m);
  font-size: .8rem;
}
.campo-input {
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  padding: .65rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
  color: var(--text);
  background: #fff;
}
.campo-input:focus {
  border-color: var(--roxo);
  box-shadow: 0 0 0 3px rgba(128,90,213,.18);
}
.campo-senha-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.campo-senha-wrap .campo-input { padding-right: 2.8rem; }
.btn-mostrar-senha {
  position: absolute;
  right: .6rem;
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  padding: .2rem;
  line-height: 1;
}
.campo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .8rem;
}
.login-erro {
  color: var(--vermelho);
  font-weight: 700;
  font-size: .9rem;
  min-height: 1.2em;
}
.btn-login-submit {
  background: linear-gradient(135deg, var(--roxo), #9f7aea);
  color: #fff;
  border: none;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  padding: .8rem;
  border-radius: 50px;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 14px rgba(128,90,213,.4);
  margin-top: .3rem;
}
.btn-login-submit:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(128,90,213,.5); }
.btn-login-submit:active { transform: translateY(0); }
.btn-cadastrar {
  background: linear-gradient(135deg, var(--verde), #68d391);
  box-shadow: 0 4px 14px rgba(56,161,105,.4);
}
.btn-cadastrar:hover { box-shadow: 0 6px 20px rgba(56,161,105,.5); }

/* ============ APK ============ */
.apk-card {
  text-align: center;
  background: linear-gradient(135deg, #e0f2fe 0%, #f8fafc 100%);
  border: 2px solid #bae6fd;
}
.btn-apk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  padding: .85rem 1.6rem;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(3,105,161,.28);
}
.btn-apk:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(3,105,161,.35);
}
.apk-meta {
  margin-top: .85rem;
  color: #0f172a;
  font-weight: 700;
  font-size: .92rem;
}
.apk-unavailable {
  margin-top: .8rem;
  color: #334155;
  font-weight: 700;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 640px) {
  .hero { flex-direction: column; text-align: center; padding: 1.5rem; }
  .hero-mascot { font-size: 3.5rem; }
  .quick-nav { grid-template-columns: repeat(2, 1fr); }
  .quiz-opcoes { grid-template-columns: 1fr; }
  .q-opcoes { grid-template-columns: 1fr; }
  .trilhas-preview { flex-direction: column; align-items: center; }
  .fase-nav { font-size: .8rem; }
  .vocab-grid { grid-template-columns: 1fr; }
  .curiosidades-grid { grid-template-columns: 1fr; }
  .section-card { padding: 1.25rem 1.1rem; }
  .card-section { padding: 1.25rem 1.1rem; }
  .fase-header { padding: 1.25rem 1.1rem; }
  .trilha-page-header { flex-direction: column; text-align: center; }
  .fase-title-row { flex-direction: column; text-align: center; }
  .fase-navigation { flex-direction: column; }
  .btn-nav { text-align: center; justify-content: center; }
}
