/* Faculdade da Voz (Academia Estelar): cara de escola dentro da galáxia */
#menu .mb-fac { --mb-bg: linear-gradient(135deg, #7c3aed, #4c1d95); --mb-deep: #2e1065; --mb-glow: rgba(167, 139, 250, .8); }

/* Ícones 3D soltos nos botões do menu, como o foguete (Leonardo, 02/11): sem a bolinha escura por trás */
#menu .menu-buttons .mb-ico { background: none !important; border: 0 !important; box-shadow: none !important; width: 40px; height: 40px; margin: -10px -2px; overflow: visible; }
#menu .menu-buttons .mb-ico img { width: 46px; height: 46px; object-fit: contain; filter: drop-shadow(0 3px 5px rgba(10, 4, 40, .45)); }
#menu .menu-buttons .mb-launch .mb-ico img { width: 54px; height: 54px; }

/* Aulas em cartões: letra maior e mais grossa, o cartão ocupa o espaço da tela */
#lesson-panel { display: flex; flex-direction: column; flex: 1; min-height: 0; }
#lesson-panel .lesson-card { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.lesson-card h3 { font-size: 1.7rem !important; font-weight: 800; }
.lesson-card p { font-size: 1.2rem !important; font-weight: 700; line-height: 1.5 !important; max-width: 36ch !important; }
.lesson-icon { font-size: 3.6rem !important; }

#academy { padding-bottom: 110px; }
.fac-hero { text-align: center; margin: 4px 0 14px; }
.fac-hero h2 { margin: 2px 0 6px; font: 700 1.6rem/1.15 var(--fun, inherit); }
.fac-hero p { margin: 0 auto 10px; max-width: 38ch; line-height: 1.45; }
.fac-hero.small .fac-big { font-size: 3.2rem; line-height: 1; filter: drop-shadow(0 6px 14px color-mix(in srgb, var(--accent) 60%, transparent)); }
.fac-station { width: 180px; height: 108px; display: block; margin: 0 auto; animation: facFloat 5s ease-in-out infinite; }
@keyframes facFloat { 50% { transform: translateY(-6px) rotate(-1.5deg); } }
.fs-ring { fill: none; stroke: rgba(250, 204, 21, .55); stroke-width: 3; }
.fs-body { fill: #6d4ee8; stroke: #c4b5fd; stroke-width: 2; }
.fs-panel { fill: #1e3a8a; stroke: #60a5fa; stroke-width: 2; }
.fs-win { fill: #fde68a; }
.fs-cap { fill: #1b1150; stroke: #facc15; stroke-width: 2; }
.fs-tassel { stroke: #facc15; stroke-width: 3; stroke-linecap: round; }
.fac-bar, .fac-mini { height: 8px; border-radius: 6px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.fac-bar { max-width: 280px; margin: 0 auto; }
.fac-bar i, .fac-mini i { display: block; height: 100%; background: linear-gradient(90deg, #facc15, #f472b6); border-radius: inherit; }

.fac-list { display: grid; gap: 10px; }
.fac-card { display: grid; grid-template-columns: 52px 1fr 24px; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .14); color: #fff; cursor: pointer;
  background: linear-gradient(120deg, color-mix(in srgb, var(--c1) 30%, rgba(28, 16, 80, .9)), rgba(28, 16, 80, .85)); box-shadow: 0 6px 18px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .12); }
.fac-card .fac-ico { width: 52px; height: 52px; display: grid; place-items: center; font-size: 1.7rem; border-radius: 14px; background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 4px 12px color-mix(in srgb, var(--c1) 50%, transparent); }
.fac-txt { display: grid; gap: 2px; min-width: 0; }
.fac-txt small { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; opacity: .75; }
.fac-txt b { font-size: 1.02rem; line-height: 1.2; }
.fac-txt em { font-style: normal; font-size: .82rem; opacity: .8; line-height: 1.3; }
.fac-txt .fac-mini { margin-top: 4px; height: 5px; }
.fac-st { font-size: 1.3rem; font-weight: 800; text-align: center; }
.fac-card.done .fac-st { color: #4ade80; }
.fac-card.locked { opacity: .5; filter: saturate(.4); }
.fac-dip { width: 100%; margin-top: 6px; }

.fac-steps { list-style: none; margin: 0; padding: 0 0 0 4px; display: grid; gap: 8px; position: relative; }
.fac-steps::before { content: ''; position: absolute; left: 25px; top: 20px; bottom: 20px; width: 3px; border-radius: 2px; background: linear-gradient(var(--accent), var(--accent-2)); opacity: .45; }
.fac-step { position: relative; display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px 10px 0; cursor: pointer; border-radius: 16px; }
.fac-step .fs-n { width: 44px; height: 44px; display: grid; place-items: center; font-size: 1.3rem; border-radius: 50%; background: rgba(28, 16, 80, .95); border: 2px solid color-mix(in srgb, var(--accent) 70%, transparent); z-index: 1; }
.fac-step .fs-t { display: grid; }
.fac-step small { font-size: .72rem; opacity: .7; text-transform: uppercase; letter-spacing: .06em; }
.fac-step b { font-size: 1rem; line-height: 1.25; }
.fac-step .fs-stars i { color: rgba(255, 255, 255, .2); font-style: normal; }
.fac-step .fs-stars i.on { color: #facc15; }
.fac-step .fs-stars { color: #4ade80; font-weight: 800; }
.fac-step.current { background: color-mix(in srgb, var(--accent) 18%, transparent); }
.fac-step.current .fs-n { background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent); animation: facPulse 1.6s ease-in-out infinite; }
@keyframes facPulse { 50% { transform: scale(1.08); } }
.fac-step.done .fs-n { border-color: #4ade80; }
.fac-step.locked { opacity: .5; }
.fac-step.exam b::after { content: ' · prova'; font-size: .75rem; color: #facc15; }

/* Prova */
.quiz-opts { display: grid; gap: 8px; margin: 10px 0 4px; }
.quiz-opt { width: 100%; text-align: left; justify-content: flex-start; padding: 12px 14px; font-weight: 700; white-space: normal; line-height: 1.3; }
.quiz-opt.ok { background: linear-gradient(135deg, #16a34a, #22c55e) !important; color: #fff; }
.quiz-opt.bad { background: linear-gradient(135deg, #be123c, #f43f5e) !important; color: #fff; }
.quiz-why { text-align: center; min-height: 1.2em; font-size: .92rem; line-height: 1.4; opacity: .9; margin: 4px 0; }
.quiz-next { margin-top: 4px; }

/* Ritmo */
.rhythm { display: grid; gap: 14px; justify-items: center; padding: 6px 0; }
.rh-pulse { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; font: 700 2rem var(--fun, inherit); background: radial-gradient(circle at 35% 30%, #fff6, transparent 55%), linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); transition: transform .08s, box-shadow .2s; }
.rh-pulse.on { transform: scale(1.12); box-shadow: 0 0 0 14px color-mix(in srgb, var(--accent) 25%, transparent); }
.rh-track { position: relative; width: calc(100% - 30px); height: 64px; border-radius: 14px; background: rgba(255, 255, 255, .07); margin: 0 15px; }
.rh-beat { position: absolute; top: 8px; bottom: 8px; width: 2px; background: rgba(255, 255, 255, .22); }
.rh-dot { position: absolute; top: 50%; transform: translate(-50%, -50%); min-width: 30px; height: 30px; padding: 0 4px; border-radius: 15px; display: grid; place-items: center; font-size: .72rem; font-weight: 800; background: rgba(28, 16, 80, .95); border: 2px solid var(--accent); transition: transform .1s; }
.rh-dot.now { transform: translate(-50%, -50%) scale(1.3); background: var(--accent); color: #1b1150; }
.rh-dot.ok { background: #22c55e; border-color: #22c55e; }
.rh-dot.bad { background: #f43f5e; border-color: #f43f5e; }
.rh-head { position: absolute; top: 2px; bottom: 2px; width: 3px; left: 0; border-radius: 2px; background: #facc15; box-shadow: 0 0 10px #facc15; }

/* Videoaula e diploma */
/* Videoaula em tela cheia: vídeo aberto (sem faixas pretas), só pausar e voltar 10 s */
.fac-video { position: fixed; inset: 0; z-index: 1000; background: #0b0828; overflow: hidden; }
.fac-video video { position: absolute; left: 0; right: 0; top: calc(62px + env(safe-area-inset-top)); width: 100%; height: calc(100% - 166px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); object-fit: contain; background: #0b0828; }
.fac-video .fv-back { position: absolute; top: calc(12px + env(safe-area-inset-top)); left: 12px; z-index: 2; border: 0; border-radius: 999px; padding: 9px 16px; font: 800 1rem var(--fun, inherit); color: #fff; background: rgba(15, 8, 45, .6); backdrop-filter: blur(6px); }
.fac-video .fv-skip { position: absolute; right: 12px; top: calc(12px + env(safe-area-inset-top)); z-index: 2; border: 0; border-radius: 999px; height: 42px; padding: 0 16px; font: 800 1rem var(--fun, inherit); white-space: nowrap; color: #2a1600; background: linear-gradient(180deg, #ffd96a, #f5b82e); box-shadow: 0 4px 14px rgba(245, 184, 46, .35); }
/* Controles da videoaula: embaixo do vídeo, centralizados, sem cobrir nada (03/11, Leonardo) */
.fac-video .fv-ctl { position: absolute; left: 0; right: 0; bottom: 0; height: calc(104px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: 26px; z-index: 2;
  background: linear-gradient(180deg, rgba(11, 8, 40, 0), rgba(11, 8, 40, .9) 30%); }
.fac-video .fv-ctl button { position: relative; border: 1px solid rgba(255, 255, 255, .18); border-radius: 50%; width: 58px; height: 58px; padding: 0; display: grid; place-items: center; color: #fff; cursor: pointer;
  background: linear-gradient(180deg, rgba(124, 92, 255, .45), rgba(60, 34, 160, .55)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 6px 18px rgba(0, 0, 0, .35); backdrop-filter: blur(8px); transition: transform .15s; -webkit-tap-highlight-color: transparent; }
.fac-video .fv-ctl button:active { transform: scale(.9); }
.fac-video .fv-ctl svg { width: 26px; height: 26px; fill: currentColor; }
.fac-video .fv-ctl small { position: absolute; bottom: -18px; left: 50%; translate: -50% 0; font: 800 .72rem var(--fun, inherit); color: rgba(255, 255, 255, .8); }
.fac-video .fv-ctl .fv-play { width: 74px; height: 74px; border: 0; color: #2a1600; background: linear-gradient(180deg, #ffe07a, #f5b82e); box-shadow: 0 0 0 4px rgba(255, 216, 77, .2), 0 8px 24px rgba(245, 184, 46, .45), inset 0 2px 0 rgba(255, 255, 255, .6); }
.fac-video .fv-ctl .fv-play svg { width: 34px; height: 34px; }
.fac-video .fv-play .i-play, .fac-video .fv-play.paused .i-pause { display: none; }
.fac-video .fv-play.paused .i-play { display: block; }
.fac-video.done .fv-ctl, .fac-video.done .fv-skip { display: none; }
.fac-video .fv-end { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; justify-content: center; align-items: stretch; gap: 12px; padding: 24px max(24px, calc(50% - 200px)); background: rgba(11, 8, 40, .82); backdrop-filter: blur(4px); text-align: center; color: #fff; }
.fac-video .fv-end[hidden] { display: none; }
.fac-video .fv-end h2 { margin: 0; }
.fac-video .fv-end p { margin: 0 0 8px; opacity: .85; }
.fac-dip-img { width: 100%; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.fac-video .actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.fac-card .fac-ico img { width: 46px; height: 46px; object-fit: contain; filter: drop-shadow(0 3px 4px rgba(10, 4, 40, .45)); }
.fac-hero .fac-big img { width: 92px; height: 92px; object-fit: contain; }
/* "Como fazer" antes de cada treino */
.how-to .ht-card { width: 100%; max-width: 440px; color: #fff; background: linear-gradient(160deg, rgba(76, 29, 149, .96), rgba(30, 14, 70, .97)); border: 1px solid rgba(255, 255, 255, .16); border-radius: 22px; padding: 18px 16px 16px; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
.how-to small { display: block; text-align: center; letter-spacing: .12em; text-transform: uppercase; color: #facc15; font-weight: 800; }
.how-to h2 { text-align: center; margin: 4px 0 12px !important; }
.how-to ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.how-to li { display: flex; gap: 10px; align-items: flex-start; background: rgba(255, 255, 255, .07); border-radius: 14px; padding: 8px 10px; }
.how-to .ht-i { font-size: 1.6rem; line-height: 1; flex: none; width: 34px; text-align: center; }
.how-to p { margin: 0; font-size: .95rem; line-height: 1.35; font-weight: 600; }
.how-to b { color: #fde68a; }
.how-to .actions { display: flex; justify-content: center; margin-top: 14px; }
.ex-head .ex-how { margin-left: auto; white-space: nowrap; }
