/* Faixas etárias — seletor + quiz kids/médio (escopado em .edu-faixas) */
.edu-faixas {
  --fx-nb: #00d4ff;
  --fx-np: #ff2d9b;
  --fx-nv: #b45aff;
  --fx-ng: #ffd700;
  --fx-green: #00ff88;
  --fx-card: rgba(8, 18, 55, 0.92);
  --fx-dark: #07102b;
  position: relative;
  font-family: 'Nunito', sans-serif;
  color: #fff;
  max-width: 820px;
  margin: 0 auto;
  padding: 8px 0 48px;
}

.edu-faixas *,
.edu-faixas *::before,
.edu-faixas *::after {
  box-sizing: border-box;
}

/* ── Screens ── */
.edu-faixas .fx-screen {
  display: none;
  animation: fxFadeIn 0.35s ease;
}

.edu-faixas .fx-screen.active {
  display: block;
}

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

/* ── Título principal (seletor + faixas infantis/fundamental) ── */
.fx-faixa-top-wrap {
  display: none;
  position: relative;
  z-index: 2;
  padding-top: 4px;
}

body.edu-faixa-active .fx-faixa-top-wrap,
body.edu-faixa-teen .fx-faixa-top-wrap {
  display: block;
}

.fx-faixa-top {
  max-width: 560px;
  margin: 0 auto 4px;
}

.fx-faixa-top .fx-faixa-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0, 212, 255, 0.25);
  background: rgba(0, 8, 28, 0.7);
  color: rgba(200, 220, 255, 0.85);
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s;
}

.fx-faixa-top .fx-faixa-back:hover {
  border-color: var(--fx-nb);
  color: var(--fx-nb);
  background: rgba(0, 212, 255, 0.08);
}

.fx-faixa-top .fx-faixa-back[hidden] {
  display: none !important;
}

.fx-brand-hero {
  display: none;
  text-align: center;
  margin: 0 auto;
  max-width: 560px;
  align-items: center;
}

body.edu-faixa-active .fx-brand-hero {
  display: flex;
}

body.edu-faixa-teen .fx-brand-hero {
  display: none;
}

.fx-brand-hero .game-start-title {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: 0.35em 0.55em;
  text-align: center;
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.55rem, 4.5vw, 2.35rem);
  font-weight: 900;
  line-height: 1.1;
  color: #f8fafc;
  text-shadow: 0 2px 20px rgba(124, 58, 237, 0.5);
  margin-bottom: 0;
}

.fx-brand-hero .game-start-title-main {
  display: inline-block;
  margin: 0;
}

.fx-brand-hero .game-start-title-accent-wrap {
  align-items: center;
}

.edu-faixas .fx-screen--selector .fx-header {
  margin-top: 0;
  margin-bottom: 16px;
}

.edu-faixas .fx-screen--selector .fx-subtitle {
  margin-top: 0;
  margin-bottom: 0;
}

/* ── Header / selector ── */
.edu-faixas .fx-header {
  text-align: center;
  margin-bottom: 24px;
}

.edu-faixas .fx-eyebrow {
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--fx-nb);
  opacity: 0.85;
  margin-bottom: 8px;
}

.edu-faixas .fx-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(20px, 4.5vw, 28px);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 8px;
}

.edu-faixas .fx-subtitle {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(200, 220, 255, 0.75);
  max-width: 520px;
  margin: 0 auto;
}

.edu-faixas .selector-layout {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 36px);
  align-items: center;
  background: var(--fx-card);
  border: 1px solid rgba(0, 212, 255, 0.22);
  border-radius: 18px;
  padding: clamp(18px, 3vw, 28px);
  position: relative;
  overflow: visible;
}

.edu-faixas .selector-layout::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--fx-nb), var(--fx-nv), transparent);
}

.edu-faixas .ju-arena {
  position: relative;
  display: grid;
  align-items: end;
  justify-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 0;
  margin-inline: auto;
  overflow: visible;
}

.edu-faixas .ju-arena--with-speech {
  --ju-figure-col: var(--ju-quiz-max-w);
  align-items: center;
  justify-items: stretch;
  width: 100%;
  max-width: var(--ju-quiz-max-w);
}

.edu-faixas {
  --ju-intro-video-max-w: min(96vw, 560px);
  --ju-intro-video-max-h: min(88svh, 720px);
  --ju-help-video-max-w: min(96vw, 400px);
  --ju-help-video-max-h: min(80svh, 560px);
}

.edu-faixas .ju-arena--selector {
  overflow: visible;
  justify-items: center;
  align-items: center;
  width: 100%;
  max-width: var(--ju-intro-video-max-w, var(--ju-quiz-max-w));
  margin-inline: auto;
  --ju-figure-col: var(--ju-intro-video-max-w, var(--ju-quiz-max-w));
}

.edu-faixas .ju-arena:not(.ju-arena--with-speech) > .kids-ju,
.edu-faixas .ju-arena:not(.ju-arena--with-speech) > .ju-img,
.edu-faixas .ju-arena:not(.ju-arena--with-speech) > .game-start-splash,
.edu-faixas .ju-arena:not(.ju-arena--with-speech) > .ju-bubble {
  grid-column: 1;
  grid-row: 1;
}

.edu-faixas .ju-arena > .kids-ju,
.edu-faixas .ju-arena > .ju-img,
.edu-faixas .ju-arena > .game-start-splash {
  align-self: end;
  width: 100%;
}

.edu-faixas .ju-arena--selector.game-start-mascot {
  display: grid;
  align-items: center;
  justify-items: stretch;
}

.edu-faixas .ju-arena--selector .game-start-splash {
  width: 100%;
  max-width: var(--ju-intro-video-max-w, var(--ju-quiz-max-w));
  margin: 0 auto;
}

.edu-faixas .ju-arena--selector .game-start-img,
.edu-faixas .ju-arena--selector video.ju-intro-video,
.edu-faixas #selectorJu {
  width: 100%;
  max-width: var(--ju-intro-video-max-w, var(--ju-quiz-max-w));
  max-height: var(--ju-intro-video-max-h, var(--ju-quiz-max-h));
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  object-position: center bottom;
}

.edu-faixas .kids-ju,
.edu-faixas .ju-img {
  display: block;
  width: 100%;
  max-width: var(--ju-quiz-max-w);
  height: auto;
  max-height: var(--ju-quiz-max-h);
  object-fit: contain;
  object-position: center bottom;
  mix-blend-mode: lighten;
  background: transparent !important;
  border: none;
  box-shadow: none;
  filter: none;
  position: relative;
  z-index: 1;
}

/* Feedback “acertou” — mesma escala visual da Ju pensando */
.edu-faixas .kids-ju[src*="ju-acertou"],
.edu-faixas .ju-img[src*="ju-acertou"] {
  max-width: min(calc(var(--ju-quiz-max-w) * 1.08), 92vw);
  max-height: min(calc(var(--ju-quiz-max-h) * 1.32), 48svh);
}

.edu-faixas .ju-bubble {
  position: relative;
  z-index: 3;
  margin: 0;
  padding: 10px 14px;
  background: rgba(8, 18, 42, 0.94);
  border: 2px solid rgba(0, 212, 255, 0.45);
  border-radius: 16px;
  font-size: clamp(0.72rem, 2.8vw, 0.82rem);
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  color: rgba(220, 240, 255, 0.95);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.22), 0 8px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  pointer-events: auto;
}

.edu-faixas .ju-img--speak,
.edu-faixas .ju-bubble--speak {
  cursor: pointer;
}

.edu-faixas .ju-img--speak:focus-visible,
.edu-faixas .ju-bubble--speak:focus-visible {
  outline: 2px solid var(--fx-nb);
  outline-offset: 3px;
}

/* ── Ju animada + voz (6–9 anos) ── */
.edu-faixas .kids-ju.ju-anim-pop,
.edu-faixas .ju-img.ju-anim-pop {
  animation: juKidsPop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.edu-faixas .kids-ju.ju-anim-celebrate,
.edu-faixas .ju-img.ju-anim-celebrate {
  animation: juKidsCelebrate 0.75s ease;
}

.edu-faixas .kids-ju.ju-anim-shake,
.edu-faixas .ju-img.ju-anim-shake {
  animation: juKidsShake 0.55s ease;
}

.edu-faixas .ju-bubble.ju-bubble-pop {
  animation: juBubblePop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.edu-faixas .ju-arena--celebrate {
  animation: juArenaGlow 0.8s ease;
}

@keyframes jufloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes juShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px) rotate(-2deg); }
  40% { transform: translateX(8px) rotate(2deg); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}

@keyframes juKidsPop {
  0% { transform: scale(0.92); opacity: 0.85; }
  55% { transform: scale(1.06); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes juKidsCelebrate {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.08) rotate(-3deg); }
  50% { transform: scale(1.12) rotate(3deg); }
  75% { transform: scale(1.06) rotate(-2deg); }
}

@keyframes juKidsShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px) rotate(-2deg); }
  40% { transform: translateX(8px) rotate(2deg); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}

@keyframes juBubblePop {
  0% { transform: scale(0.9); opacity: 0.7; }
  60% { transform: scale(1.04); box-shadow: 0 0 18px rgba(0, 212, 255, 0.35); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes juArenaGlow {
  0%, 100% { filter: none; }
  50% { filter: drop-shadow(0 0 16px rgba(0, 255, 136, 0.45)); }
}

.edu-faixas .faixa-grid {
  display: grid;
  gap: 12px;
}

.edu-faixas .faixa-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(0, 212, 255, 0.2);
  background: rgba(0, 8, 28, 0.75);
  color: #fff;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.edu-faixas .faixa-card:hover {
  border-color: var(--fx-nb);
  background: rgba(0, 212, 255, 0.08);
  transform: translateX(4px);
}

.edu-faixas .faixa-card--kids:hover {
  border-color: var(--fx-green);
}

.edu-faixas .faixa-card--medio:hover {
  border-color: var(--fx-nv);
}

.edu-faixas .faixa-card--teen:hover {
  border-color: var(--fx-ng);
}

.edu-faixas .faixa-icon {
  font-size: 28px;
  line-height: 1;
}

.edu-faixas .faixa-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.edu-faixas .faixa-age {
  font-size: 11px;
  color: rgba(180, 200, 255, 0.65);
  margin-top: 2px;
}

.edu-faixas .faixa-arrow {
  font-size: 18px;
  color: var(--fx-nb);
  opacity: 0.7;
}

/* ── Back button ── */
.edu-faixas .back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0, 212, 255, 0.25);
  background: rgba(0, 8, 28, 0.7);
  color: rgba(200, 220, 255, 0.85);
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s;
}

.edu-faixas .back-btn:hover {
  border-color: var(--fx-nb);
  color: var(--fx-nb);
  background: rgba(0, 212, 255, 0.08);
}

/* ── Quiz panels ── */
.edu-faixas .fx-quiz {
  background: var(--fx-card);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 18px;
  padding: clamp(16px, 3vw, 24px);
  margin-top: 16px;
}

.edu-faixas .fx-quiz-badge {
  display: inline-block;
  font-family: 'Orbitron', sans-serif;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--fx-ng);
  border: 1px solid rgba(255, 215, 0, 0.35);
  background: rgba(255, 215, 0, 0.08);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.edu-faixas .fx-quiz-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.edu-faixas .fx-quiz-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(15px, 3vw, 18px);
  font-weight: 700;
}

.edu-faixas .fx-quiz-title--section {
  margin: 0 0 6px;
}

.edu-faixas .fx-quiz-prog {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  color: var(--fx-nb);
  white-space: nowrap;
}

.edu-faixas .fx-prog {
  height: 6px;
  background: rgba(0, 212, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 16px;
}

.edu-faixas .fx-prog-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--fx-nb), var(--fx-nv));
  border-radius: 999px;
  transition: width 0.35s ease;
}

.edu-faixas .fx-quiz-stage {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  gap: clamp(12px, 2.5vw, 20px);
  align-items: start;
  margin-bottom: 14px;
}

.edu-faixas .fx-scenario {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
  color: rgba(230, 240, 255, 0.95);
  padding: 14px 16px;
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.22);
  border-radius: 14px;
}

.edu-faixas .fx-scenario--with-emoji {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.edu-faixas .fx-scenario-emoji {
  flex: 0 0 auto;
  font-size: 1.85rem;
  line-height: 1.15;
}

.edu-faixas .fx-scenario-text {
  flex: 1;
  min-width: 0;
}

.edu-faixas .fx-visual-tip,
.edu-faixas .fx-context-tip {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  color: rgba(255, 215, 0, 0.95);
  background: rgba(255, 215, 0, 0.08);
  border: 1px dashed rgba(255, 215, 0, 0.35);
  border-radius: 10px;
  padding: 8px 12px;
  margin: 8px 0 12px;
}

.edu-faixas .fx-stars {
  font-size: 30px;
  letter-spacing: 5px;
  margin: 6px 0 14px;
}

.edu-faixas .fx-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.edu-faixas .fx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  text-decoration: none;
}

.edu-faixas .fx-btn:active {
  transform: scale(0.98);
}

.edu-faixas .fx-btn--yes {
  background: rgba(255, 45, 155, 0.18);
  border-color: rgba(255, 45, 155, 0.45);
  color: #ffb8da;
}

.edu-faixas .fx-btn--yes:hover {
  background: rgba(255, 45, 155, 0.28);
}

.edu-faixas .fx-btn--no {
  background: rgba(0, 212, 255, 0.12);
  border-color: rgba(0, 212, 255, 0.4);
  color: #a8ecff;
}

.edu-faixas .fx-btn--no:hover {
  background: rgba(0, 212, 255, 0.2);
}

.edu-faixas .fx-btn--next,
.edu-faixas .fx-btn--restart {
  background: rgba(0, 255, 136, 0.12);
  border-color: rgba(0, 255, 136, 0.4);
  color: var(--fx-green);
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  letter-spacing: 0.5px;
  margin-top: 12px;
  width: 100%;
}

.edu-faixas .fx-btn--next:hover,
.edu-faixas .fx-btn--restart:hover {
  background: rgba(0, 255, 136, 0.2);
}

.edu-faixas .fx-btn--ouvidoria {
  background: rgba(180, 90, 255, 0.15);
  border-color: rgba(180, 90, 255, 0.45);
  color: #e9d5ff;
  margin-top: 10px;
  width: 100%;
}

.edu-faixas .fx-btn--ouvidoria:hover {
  background: rgba(180, 90, 255, 0.25);
}

.edu-faixas .fx-btn.hidden,
.edu-faixas .fx-feedback.hidden,
.edu-faixas .fx-finish.hidden,
.edu-faixas .fx-quiz-stage.hidden,
.edu-faixas .fx-quiz-head.hidden,
.edu-faixas .fx-prog.hidden {
  display: none !important;
}

.edu-faixas .fx-feedback {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border-left: 4px solid var(--fx-green);
  background: rgba(255, 255, 255, 0.95);
  color: #111827;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 600;
}

.edu-faixas .fx-feedback.is-wrong {
  border-left-color: var(--fx-nv);
  background: #f3e8ff;
}

.edu-faixas .fx-finish {
  text-align: center;
  padding: 20px 12px 8px;
}

.edu-faixas .fx-finish h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--fx-ng);
}

.edu-faixas .fx-finish p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(200, 220, 255, 0.85);
  margin-bottom: 12px;
}

.edu-faixas .fx-finish .ju-img {
  margin: 0 auto 12px;
  max-width: var(--ju-finish-max-w);
  max-height: clamp(160px, 32svh, 280px);
}

/* ── Medio flip section ── */
.edu-faixas .fx-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.25), transparent);
  margin: 28px 0;
}

.edu-faixas .fx-section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

.edu-faixas .fx-section-desc {
  font-size: 13px;
  color: rgba(180, 200, 255, 0.7);
  margin-bottom: 16px;
  line-height: 1.5;
}

.edu-faixas .fx-sticker-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(0, 8, 28, 0.65);
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: 12px;
  margin-bottom: 16px;
}

.edu-faixas .fx-sticker-label {
  font-size: 13px;
  font-weight: 700;
}

.edu-faixas .fx-stickers {
  display: flex;
  gap: 8px;
}

.edu-faixas .fx-sticker {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  font-size: 18px;
  opacity: 0.35;
  filter: grayscale(1);
  transition: all 0.25s;
}

.edu-faixas .fx-sticker.is-unlocked {
  opacity: 1;
  filter: none;
  border-style: solid;
  border-color: var(--fx-ng);
  background: rgba(255, 215, 0, 0.12);
  transform: scale(1.05);
}

.edu-faixas .fx-sticker-count {
  margin-left: auto;
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  color: var(--fx-ng);
}

.edu-faixas .fx-flip-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 3vw, 22px);
  width: 100%;
  max-width: min(820px, 100%);
  margin-inline: auto;
}

.edu-faixas .fx-flip-card {
  position: relative;
  perspective: 1000px;
  aspect-ratio: 16 / 9;
  width: 100%;
  min-height: 0;
  cursor: pointer;
}

.edu-faixas .fx-flip-card:has(.fx-flip-front--cover) {
  max-width: 100%;
}

.edu-faixas .fx-flip-inner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.55s ease;
  transform-style: preserve-3d;
}

.edu-faixas .fx-flip-card.is-flipped .fx-flip-inner {
  transform: rotateY(180deg);
}

.edu-faixas .fx-flip-front,
.edu-faixas .fx-flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 14px;
  padding: 16px;
  border: 1px solid rgba(0, 212, 255, 0.22);
  background: var(--fx-card);
}

.edu-faixas .fx-flip-back {
  transform: rotateY(180deg);
  overflow-y: auto;
}

.edu-faixas .fx-flip-card--fisico .fx-flip-front:not(.fx-flip-front--cover) {
  border-color: rgba(255, 45, 155, 0.35);
  background: linear-gradient(145deg, rgba(255, 45, 155, 0.12), var(--fx-card));
}

.edu-faixas .fx-flip-card--verbal .fx-flip-front:not(.fx-flip-front--cover) {
  border-color: rgba(0, 212, 255, 0.35);
  background: linear-gradient(145deg, rgba(0, 212, 255, 0.1), var(--fx-card));
}

.edu-faixas .fx-flip-card--social .fx-flip-front:not(.fx-flip-front--cover) {
  border-color: rgba(180, 90, 255, 0.35);
  background: linear-gradient(145deg, rgba(180, 90, 255, 0.12), var(--fx-card));
}

.edu-faixas .fx-flip-card--cyber .fx-flip-front:not(.fx-flip-front--cover) {
  border-color: rgba(255, 215, 0, 0.35);
  background: linear-gradient(145deg, rgba(255, 215, 0, 0.1), var(--fx-card));
}

/* ── Capas nos cards (frente) ── */
.edu-faixas .fx-flip-front--cover,
.edu-flip-front--cover {
  padding: 5px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 30%, rgba(0, 212, 255, 0.08), #07102b 70%);
}

.edu-faixas .fx-flip-card--fisico .fx-flip-front--cover {
  border-color: rgba(255, 45, 155, 0.5);
  background: radial-gradient(ellipse at 50% 20%, rgba(255, 45, 155, 0.12), #0a0618 72%);
}

.edu-faixas .fx-flip-card--verbal .fx-flip-front--cover {
  border-color: rgba(0, 212, 255, 0.5);
  background: radial-gradient(ellipse at 50% 20%, rgba(0, 212, 255, 0.1), #061018 72%);
}

.edu-faixas .fx-flip-card--social .fx-flip-front--cover {
  border-color: rgba(255, 193, 70, 0.5);
  background: radial-gradient(ellipse at 50% 20%, rgba(255, 193, 70, 0.1), #120c06 72%);
}

.edu-faixas .fx-flip-card--cyber .fx-flip-front--cover {
  border-color: rgba(255, 80, 60, 0.5);
  background: radial-gradient(ellipse at 50% 20%, rgba(255, 60, 40, 0.12), #120608 72%);
}

.edu-flip-card--fisico .edu-flip-front--cover {
  border-color: rgba(255, 45, 155, 0.5);
  background: radial-gradient(ellipse at 50% 20%, rgba(255, 45, 155, 0.12), #0a0618 72%);
}

.edu-flip-card--verbal .edu-flip-front--cover {
  border-color: rgba(0, 212, 255, 0.5);
  background: radial-gradient(ellipse at 50% 20%, rgba(0, 212, 255, 0.1), #061018 72%);
}

.edu-flip-card--social .edu-flip-front--cover {
  border-color: rgba(255, 193, 70, 0.5);
  background: radial-gradient(ellipse at 50% 20%, rgba(255, 193, 70, 0.1), #120c06 72%);
}

.edu-flip-card--cyber .edu-flip-front--cover {
  border-color: rgba(255, 80, 60, 0.5);
  background: radial-gradient(ellipse at 50% 20%, rgba(255, 60, 40, 0.12), #120608 72%);
}

.fx-flip-cover,
.edu-flip-cover {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 160px;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  border-radius: 10px;
  transition: transform 0.28s ease, filter 0.28s ease;
  background: rgba(8, 18, 42, 0.45);
}

.fx-flip-card:not(.is-flipped):hover .fx-flip-cover,
.edu-flip-card:not(.is-flipped):hover .edu-flip-cover {
  transform: scale(1.015);
  filter: brightness(1.06);
}

.fx-flip-hint--cover,
.edu-flip-hint--cover {
  position: absolute;
  top: 8px;
  left: 50%;
  right: auto;
  bottom: auto;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 20px);
  margin: 0;
  padding: 5px 12px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  color: rgba(240, 248, 255, 0.96);
  background: rgba(4, 8, 20, 0.82);
  border: 1px solid rgba(0, 212, 255, 0.35);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: 2;
}

.edu-faixas .fx-flip-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.edu-faixas .fx-flip-front h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  margin-bottom: 6px;
}

.edu-faixas .fx-flip-hint {
  font-size: 11px;
  color: rgba(180, 200, 255, 0.6);
}

.edu-faixas .fx-flip-back h4 {
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  color: var(--fx-nb);
  margin: 10px 0 4px;
}

.edu-faixas .fx-flip-back h4:first-child {
  margin-top: 0;
}

.edu-faixas .fx-flip-back p,
.edu-faixas .fx-flip-back ul {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(210, 225, 255, 0.9);
}

.edu-faixas .fx-flip-back ul {
  padding-left: 16px;
  margin: 4px 0;
}

.edu-faixas .fx-flip-close {
  margin-top: 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--fx-nb);
  cursor: pointer;
}

.edu-faixas .fx-screen--medio #fxMedioMa {
  margin-top: 8px;
  position: relative;
  z-index: 2;
}

.edu-faixas .fx-screen--medio .missao-hero-figure {
  cursor: pointer;
}

.edu-faixas .fx-screen--medio .edu-ma {
  margin-top: 0;
}

.edu-faixas .fx-screen--medio .edu-ma .missao-intro {
  margin-bottom: 18px;
}

/* ── Confetti ── */

.fx-kids-image-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 24px);
}

.fx-kids-image-modal.hidden {
  display: none;
}

.fx-kids-image-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 20, 0.88);
  backdrop-filter: blur(4px);
}

.fx-kids-image-dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: min(92vh, 900px);
  padding: clamp(10px, 2vw, 16px);
  border-radius: 18px;
  border: 2px solid rgba(0, 212, 255, 0.45);
  background: rgba(8, 18, 42, 0.96);
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.25), 0 20px 50px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.fx-kids-image-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.fx-kids-image-view {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(85dvh, 900px);
  object-fit: contain;
  object-position: center top;
  border-radius: 12px;
  touch-action: pan-x pan-y pinch-zoom;
}

/* Mobile — imagem em tela cheia para leitura */
.fx-kids-image-modal--mobile {
  padding: 0;
  align-items: stretch;
}

.fx-kids-image-modal--mobile .fx-kids-image-dialog {
  width: 100%;
  max-width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  border-radius: 0;
  border: none;
  padding: calc(6px + env(safe-area-inset-top, 0px)) 0 calc(10px + env(safe-area-inset-bottom, 0px));
  box-shadow: none;
}

.fx-kids-image-modal--mobile .fx-kids-image-scroll {
  padding: 0 6px;
}

.fx-kids-image-modal--mobile .fx-kids-image-view {
  width: 100%;
  max-width: 100%;
  max-height: none;
  min-width: 0;
  border-radius: 8px;
}

.fx-kids-image-modal--mobile .fx-kids-image-close {
  position: fixed;
  top: calc(10px + env(safe-area-inset-top, 0px));
  right: calc(10px + env(safe-area-inset-right, 0px));
  width: 48px;
  height: 48px;
  font-size: 1.25rem;
  background: rgba(4, 8, 20, 0.88);
  border: 2px solid rgba(0, 212, 255, 0.45);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* ── Vídeo “Sinto muito” (crianças) — acima do botão da ouvidoria ── */
.fx-kids-sinto-block {
  position: relative;
  width: 100%;
  max-width: var(--ju-help-video-max-w, min(96vw, 400px));
  margin: clamp(16px, 3vw, 24px) auto 0;
  padding: 0;
  line-height: 0;
}

.fx-kids-sinto-block--main {
  margin-top: clamp(20px, 4vw, 28px);
}

.fx-kids-sinto-video,
video.ju-sinto-video {
  display: block;
  width: 100%;
  max-width: var(--ju-help-video-max-w, min(96vw, 400px));
  max-height: var(--ju-help-video-max-h, min(80svh, 560px));
  height: auto;
  margin-inline: auto;
  object-fit: contain;
  object-position: center bottom;
  background: rgba(8, 18, 42, 0.35);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
}

.missao-hero-figure {
  position: relative;
}

.fx-kids-sinto-block:not(.is-playing)::after,
.missao-hero-figure:not(.is-playing)::after {
  content: '▶';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.85);
  color: #08122a;
  font-size: 1.35rem;
  font-weight: 900;
  pointer-events: none;
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.45);
}

video.ju-sinto-video:focus-visible {
  outline: 2px solid var(--fx-nb, #00d4ff);
  outline-offset: 4px;
}

.fx-screen--kids .fx-kids-sinto-block + .fx-btn--ouvidoria {
  display: flex;
  width: 100%;
  max-width: min(100%, 520px);
  margin-inline: auto;
  justify-content: center;
  text-align: center;
}

/* ── Botão ouvidoria pulsante (denúncias) ── */
.btn-ouvidoria-pulse {
  text-align: center;
  line-height: 1.35;
  font-weight: 800;
  animation: btnOuvidoriaPulse 1.8s ease-in-out infinite;
}

.btn-ouvidoria-pulse strong {
  display: block;
  margin-top: 4px;
  font-size: 1.05em;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.55);
}

@keyframes btnOuvidoriaPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(180, 90, 255, 0.45), 0 0 18px rgba(0, 212, 255, 0.25);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 0 0 8px rgba(180, 90, 255, 0), 0 0 32px rgba(0, 212, 255, 0.45), 0 0 48px rgba(255, 45, 155, 0.25);
  }
}

.btn-ouvidoria-pulse:hover {
  animation-play-state: paused;
  transform: scale(1.04);
}

@media (prefers-reduced-motion: reduce) {
  .btn-ouvidoria-pulse {
    animation: none;
  }
}

.fx-kids-image-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: rgba(0, 212, 255, 0.18);
  color: #e0f2fe;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
}

.fx-kids-image-close:hover {
  background: rgba(0, 212, 255, 0.32);
}

body.fx-kids-image-open {
  overflow: hidden;
}

/* ── Confetti ── */
.edu-faixas .fx-confetti,
#fx-confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.edu-faixas .fx-confetti-piece {
  position: absolute;
  top: -16px;
  border-radius: 2px;
  animation: fxConfettiFall linear forwards;
}

@keyframes fxConfettiFall {
  to {
    transform: translateY(110vh) rotate(720deg);
    opacity: 0;
  }
}

/* ── Body modes ── */
body.edu-faixa-active:not(.edu-faixa-in-quiz):not(.edu-faixa-teen) .fx-faixa-top-wrap {
  display: none;
}

body.edu-faixa-active:not(.edu-faixa-in-quiz):not(.edu-faixa-teen) .game-hero--start {
  --ju-hero-max-w: clamp(200px, min(32vw, 30svh), 340px);
  --ju-hero-max-h: clamp(230px, min(44svh, 48vh), 480px);
  padding-bottom: clamp(4px, 1vw, 10px);
}

body.edu-faixa-active:not(.edu-faixa-in-quiz):not(.edu-faixa-teen) .edu-faixas .faixa-grid {
  max-width: min(520px, 100%);
  margin-inline: auto;
}

body.edu-faixa-active:not(.edu-faixa-in-quiz):not(.edu-faixa-teen) .edu-faixas .ju-arena--selector,
body.edu-faixa-active:not(.edu-faixa-in-quiz):not(.edu-faixa-teen) .edu-faixas .fx-screen--selector .fx-header {
  display: none;
}

body.edu-faixa-active:not(.edu-faixa-in-quiz):not(.edu-faixa-teen) .edu-faixas .selector-layout {
  grid-template-columns: 1fr;
  background: transparent;
  border: none;
  padding: clamp(8px, 2vw, 16px) 0 0;
}

body.edu-faixa-active:not(.edu-faixa-in-quiz):not(.edu-faixa-teen) .edu-main.game-main {
  padding-top: 0;
}

body.edu-faixa-active .edu-main.game-main {
  padding-top: clamp(6px, 1.5vw, 12px);
}

body.edu-faixa-active .edu-faixas {
  padding-top: 0;
}

body.edu-faixa-in-quiz .game-hero--start,
body.edu-faixa-teen .game-hero--start {
  display: none;
}

body.edu-faixa-active:not(.edu-faixa-teen) #eduTeenGame {
  display: none !important;
}

body.edu-faixa-teen .edu-faixas {
  display: none;
}

body.edu-faixa-teen #eduTeenGame {
  display: block !important;
}

body.edu-faixa-teen #eduTeenGame[hidden] {
  display: none !important;
}

body.edu-faixa-teen .game-hero--start {
  padding-top: 0;
}

/* ── Mobile / tablet ── */
@media (max-width: 768px) {
  .edu-faixas .fx-quiz-stage {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .edu-faixas .fx-quiz-stage .ju-arena,
  .edu-faixas .fx-quiz-stage .ju-arena--with-speech {
    width: 100%;
    max-width: min(var(--ju-quiz-max-w), 88vw);
    margin-inline: auto;
  }
}

@media (max-width: 520px) {
  .edu-faixas {
    padding-bottom: 32px;
  }

  .edu-faixas .selector-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .edu-faixas .fx-actions {
    grid-template-columns: 1fr;
  }

  .edu-faixas .fx-flip-grid {
    grid-template-columns: 1fr;
  }

  .edu-faixas .faixa-card {
    grid-template-columns: auto 1fr;
  }

  .edu-faixas .faixa-arrow {
    display: none;
  }

  .edu-faixas .fx-sticker-bar {
    justify-content: center;
  }

  .edu-faixas .fx-sticker-count {
    margin-left: 0;
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .edu-faixas .fx-screen {
    animation: none;
  }

  .edu-faixas .fx-flip-inner {
    transition: none;
  }

  .fx-flip-card:not(.is-flipped):hover .fx-flip-cover,
  .edu-flip-card:not(.is-flipped):hover .edu-flip-cover {
    transform: none;
    filter: none;
  }

  .edu-faixas .fx-confetti-piece {
    animation: none;
    display: none;
  }

  .edu-faixas .game-start-aura {
    animation: none;
    opacity: 0.85;
  }
}
