/* P4 School · Produção. Mesma cabine escura do curso de DJ, com a bancada no lugar do CDJ. */
:root {
  --fundo: #060709; --metal: #16191d; --metal2: #0e1013; --linha: #262a30;
  --texto: #e8ecf0; --apagado: #7d8792; --azul: #2f6bff; --vermelho: #ff3b3b; --verde: #38e07b; --ambar: #ffb020;
  --c-intro: #4f8cff; --c-groove: #38c9a0; --c-break: #b07cff; --c-drop: #ff5d5d; --c-outro: #ffb020;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--fundo); color: var(--texto);
  font: 16px/1.55 ui-sans-serif, -apple-system, "SF Pro Text", system-ui, sans-serif; overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(700px 420px at 12% -8%, rgba(47,107,255,.2), transparent 70%), radial-gradient(700px 420px at 88% -8%, rgba(255,59,59,.16), transparent 70%);
}
button { font: inherit; color: inherit; cursor: pointer; }
kbd { font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; padding: 2px 6px; border-radius: 5px; background: #23272e; border: 1px solid #343a43; border-bottom-width: 2px; color: #cfd6dd; }

.topo { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 12px 24px; background: rgba(6,7,9,.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--linha); }
.marca { letter-spacing: .28em; font-size: 11px; color: var(--apagado); }
.marca span { color: var(--vermelho); }
.etapas { display: flex; gap: 6px; list-style: none; margin: 0 auto; padding: 0; flex-wrap: wrap; }
.etapas li { font-size: 12px; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--linha); color: var(--apagado); }
.etapas li.feita { color: var(--verde); border-color: rgba(56,224,123,.35); }
.etapas li.agora { color: #fff; border-color: #fff; }
.selo { font-size: 10px; letter-spacing: .2em; color: var(--ambar); border: 1px solid rgba(255,176,32,.4); padding: 3px 8px; border-radius: 4px; }

main { position: relative; z-index: 1; max-width: 920px; margin: 0 auto; padding: 8px 20px 140px; }
.capa { padding: 56px 0 28px; }
.capa-fase { margin: 0; letter-spacing: .3em; font-size: 11px; color: var(--ambar); }
.capa h1 { margin: 10px 0 12px; font-weight: 300; letter-spacing: .04em; font-size: clamp(36px, 7vw, 68px); line-height: 1.05; }
.capa-frase { margin: 0; max-width: 620px; color: #b8c0c9; font-size: 18px; }

.passo { margin: 22px 0; padding: 26px 28px; border-radius: 18px; background: linear-gradient(180deg, var(--metal), var(--metal2)); border: 1px solid var(--linha); animation: entra .5s ease both; scroll-margin-top: 70px; }
@keyframes entra { from { opacity: 0; transform: translateY(14px); } }
.passo h2 { margin: 0 0 12px; font-weight: 500; font-size: 22px; display: flex; align-items: center; gap: 12px; }
.passo h2 i { font-style: normal; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; color: var(--ambar); border: 1px solid rgba(255,176,32,.5); }
.passo p { margin: 0 0 12px; color: #c6ced6; max-width: 680px; }
.passo b { color: #fff; font-weight: 600; }
.nota { font-size: 14px; color: var(--apagado) !important; }

.antes-depois { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 18px; }
.antes-depois span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--apagado); }
.antes-depois small { color: var(--apagado); font-size: 13px; }
.mini { display: flex; gap: 2px; height: 34px; margin: 6px 0; }
.mini i { border-radius: 3px; }

.c-intro { background: var(--c-intro); } .c-groove { background: var(--c-groove); } .c-break { background: var(--c-break); } .c-drop { background: var(--c-drop); } .c-outro { background: var(--c-outro); }

.atalhos { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 10px; margin: 14px 0; }
.atalhos div { padding: 12px 14px; border-radius: 12px; background: #0b0d10; border: 1px solid var(--linha); }
.atalhos kbd { margin-right: 4px; }
.atalhos b { display: block; margin-top: 8px; }
.atalhos span { font-size: 14px; color: var(--apagado); }
.outra-daw { margin-top: 6px; border-top: 1px solid var(--linha); padding-top: 12px; }
.outra-daw summary { cursor: pointer; color: var(--apagado); font-size: 14px; }
.outra-daw p { font-size: 14px; margin: 10px 0 0; }

.metas { list-style: none; padding: 0; margin: 14px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 8px; }
.metas li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--linha); background: #0b0d10; font-size: 15px; }
.metas li i { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1px solid #454c56; display: grid; place-items: center; font-style: normal; font-size: 12px; color: #04130a; }
.metas li.ok { border-color: rgba(56,224,123,.4); }
.metas li.ok i { background: var(--verde); border-color: var(--verde); }
.metas small { margin-left: auto; color: var(--apagado); font-size: 12px; white-space: nowrap; }

/* bancada: a tela do Arrangement, simplificada */
.lab { border-radius: 10px; overflow: hidden; border: 1px solid #3a3f47; background: #2a2d32; margin: 16px 0 8px; }
.lab-barra { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px; background: #3b3f46; border-bottom: 1px solid #1f2226; }
.lab-bt { padding: 6px 11px; border-radius: 6px; border: 1px solid #555b65; background: #4a4f58; font-size: 13px; }
.lab-bt:hover { background: #5a606a; }
.lab-bt kbd { margin-left: 4px; background: #33373d; }
.lab-play { width: 40px; font-size: 15px; background: var(--ambar); color: #1b1300; border-color: var(--ambar); }
.lab-play:hover { background: #ffc24d; }
.lab-info { font: 12px ui-monospace, Menlo, monospace; color: #c3c9d0; padding: 5px 8px; background: #26292e; border-radius: 5px; }
.lab-info b { color: #fff; }
.lab-esp { flex: 1; }
.lab-rolo { overflow-x: auto; }
.lab-pista { position: relative; padding-bottom: 12px; }
.lab-regua, .lab-marcas, .lab-clipes { display: flex; }
.lab-regua { height: 24px; background: #1f2226; cursor: pointer; }
.lab-regua span { flex: none; border-left: 1px solid #50565f; padding: 4px 0 0 5px; font: 11px ui-monospace, Menlo, monospace; color: #9aa2ab; }
.lab-marcas { height: 22px; background: #26292e; }
.lab-marcas span { flex: none; overflow: visible; white-space: nowrap; }
.lab-marcas b { font-size: 11px; font-weight: 600; letter-spacing: .06em; padding-left: 4px; line-height: 22px; }
.m-intro { color: var(--c-intro) !important; } .m-groove { color: var(--c-groove) !important; } .m-break { color: var(--c-break) !important; } .m-drop { color: var(--c-drop) !important; } .m-outro { color: var(--c-outro) !important; }
.lab-clipes { padding: 10px 0 0; }
.lab-clipe { flex: none; height: 84px; padding: 0; border: 0; border-left: 1px solid #1a1c1f; border-radius: 3px; position: relative; overflow: hidden; }
.lab-clipe i { position: absolute; inset: 14px 0 0; background: repeating-linear-gradient(90deg, rgba(0,0,0,.34) 0 2px, transparent 2px 5px); -webkit-mask: linear-gradient(#000 0 0) center / 100% 62% no-repeat; mask: linear-gradient(#000 0 0) center / 100% 62% no-repeat; }
.lab-clipe.c-break i { -webkit-mask-size: 100% 26%; mask-size: 100% 26%; }
.lab-clipe.c-intro i, .lab-clipe.c-outro i { -webkit-mask-size: 100% 44%; mask-size: 100% 44%; }
.lab-clipe.sel { outline: 2px solid #fff; outline-offset: -2px; filter: brightness(1.25); }
.lab-clipe:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.lab-agulha { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; pointer-events: none; box-shadow: 0 0 6px rgba(255,255,255,.7); }
.lab-dica { margin: 0 !important; padding: 9px 12px; font-size: 13px; color: #9aa2ab !important; background: #1f2226; max-width: none !important; }
.lab-dica.lab-alerta { color: var(--ambar) !important; }
.lab-ok { color: var(--verde) !important; font-weight: 500; }

.regras { padding-left: 22px; margin: 0 0 14px; max-width: 680px; }
.regras li { margin: 0 0 10px; color: #c6ced6; }
.lista-prova { padding-left: 22px; margin: 0 0 18px; max-width: 680px; color: #c6ced6; }
.lista-prova li { margin: 0 0 8px; }

.solta { display: block; text-align: center; padding: 30px 20px; border-radius: 14px; border: 2px dashed #4a515b; background: #0b0d10; cursor: pointer; transition: border-color .2s, background .2s; }
.solta:hover, .solta.sobre { border-color: var(--ambar); background: rgba(255,176,32,.06); }
.solta b { display: block; font-size: 18px; }
.solta span { font-size: 14px; color: var(--apagado); }
.lendo, .erro { margin: 16px 0 0 !important; }
.erro { color: #ff8f8f !important; }
.laudo { margin-top: 18px; border-radius: 14px; border: 1px solid var(--linha); background: #0b0d10; padding: 18px 20px; }
.laudo.passou { border-color: rgba(56,224,123,.5); }
.laudo.falta { border-color: rgba(255,176,32,.45); }
.laudo-topo { margin: 0 !important; font-size: 24px; font-weight: 500; color: #fff !important; }
.laudo.passou .laudo-topo { color: var(--verde) !important; }
.laudo-dados { font: 12px ui-monospace, Menlo, monospace; color: var(--apagado) !important; margin: 4px 0 14px !important; max-width: none !important; overflow-wrap: anywhere; }
.laudo ul { list-style: none; margin: 0; padding: 0; }
.laudo li { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--linha); }
.laudo li i { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; margin-top: 2px; }
.laudo li.ok i { background: var(--verde); color: #04130a; }
.laudo li.nao i { background: var(--ambar); color: #1b1300; }
.laudo li b { display: block; }
.laudo li span { font-size: 14px; color: #aab2bb; }
.laudo li.ok span { color: var(--apagado); }
.laudo-pe { margin: 12px 0 0 !important; font-size: 14px; color: var(--apagado) !important; }

.fim { text-align: center; border-color: rgba(56,224,123,.5); }
.fim p { margin-left: auto; margin-right: auto; }
.fim h2 { justify-content: center; font-size: 28px; font-weight: 300; }
.fim-topo { letter-spacing: .3em; font-size: 11px; color: var(--verde) !important; }

.avanca { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: flex; justify-content: center; padding: 14px 20px 18px; background: linear-gradient(transparent, rgba(6,7,9,.95) 45%); pointer-events: none; }
.avanca button { pointer-events: auto; padding: 13px 34px; border-radius: 999px; border: 1px solid #fff; background: #fff; color: #000; font-weight: 600; letter-spacing: .04em; }
.avanca button:disabled { background: transparent; color: var(--apagado); border-color: var(--linha); cursor: default; }
.avanca button[hidden] { display: none; }

@media (max-width: 600px) {
  .passo { padding: 20px 16px; }
  main { padding: 8px 16px 130px; }
  .etapas { margin: 0; }
  .lab-bt kbd { display: none; }
}

/* ---------- fase 4: mashup ---------- */
a.marca { text-decoration: none; }
a.marca:hover { color: #fff; }
.pilha { display: grid; gap: 4px; margin: 16px 0; max-width: 520px; }
.pilha > div { display: grid; grid-template-columns: 84px 1fr; align-items: center; gap: 10px; }
.pilha span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--apagado); }
.pilha .mini { height: 26px; margin: 0; }
.calc { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 16px 0; padding: 16px 18px; border-radius: 12px; background: #0b0d10; border: 1px solid var(--linha); }
.calc label { font-size: 14px; color: var(--apagado); display: flex; align-items: center; gap: 8px; }
.calc select { font: 600 16px ui-monospace, Menlo, monospace; color: #fff; background: #23272e; border: 1px solid #454c56; border-radius: 8px; padding: 7px 10px; }
.calc-res { flex: 1 1 260px; margin: 0 !important; color: #c6ced6; }
.calc-res b { font: 600 22px ui-monospace, Menlo, monospace; color: var(--ambar); margin-right: 6px; }

.mash-ouvir { display: flex; }
.mash-ouvir .lab-bt { border-radius: 0; margin-left: -1px; }
.mash-ouvir .lab-bt:first-child { border-radius: 6px 0 0 6px; margin-left: 0; }
.mash-ouvir .lab-bt:last-child { border-radius: 0 6px 6px 0; }
.lab-bt.ligado { background: #d7dce2; color: #15181c; border-color: #d7dce2; }
.mash-pista { --nome: 132px; position: relative; padding: 0 0 10px; }
.mash-regua { display: grid; grid-template-columns: repeat(4, 1fr); margin-left: var(--nome); height: 22px; background: #1f2226; }
.mash-regua span { border-left: 1px solid #50565f; padding: 3px 0 0 5px; font: 11px ui-monospace, Menlo, monospace; color: #9aa2ab; }
.mash-trilha { display: grid; grid-template-columns: var(--nome) 1fr; align-items: stretch; margin-top: 6px; }
.mash-nome { font: 600 11px ui-monospace, Menlo, monospace; color: #dfe4e9; padding: 8px 8px 0 10px; letter-spacing: .02em; }
.mash-faixa { position: relative; height: 62px; overflow: hidden; background:
  repeating-linear-gradient(90deg, #50565f 0 1px, transparent 1px 25%),
  repeating-linear-gradient(90deg, #363b42 0 1px, transparent 1px 6.25%), #24272b; }
.mash-clipe { position: absolute; top: 0; bottom: 0; left: 0; width: 100%; border-radius: 3px; opacity: .92; transition: left .15s ease; }
.mash-clipe i { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(0,0,0,.34) 0 2px, transparent 2px 5px); -webkit-mask: linear-gradient(#000 0 0) center / 100% 56% no-repeat; mask: linear-gradient(#000 0 0) center / 100% 56% no-repeat; }
.mash-voz { border-left: 3px solid #fff; }
.mash-controles { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 22px; padding: 14px 14px 16px; background: #33363c; border-top: 1px solid #1f2226; }
.mash-ctl { display: grid; gap: 4px; }
.mash-ctl > span { font-size: 12px; color: #c3c9d0; }
.mash-ctl > div { display: flex; align-items: center; gap: 6px; }
.mash-ctl small { font-size: 11px; color: #8d959e; }
.mash-ctl .lab-bt { width: 38px; height: 36px; padding: 0; font-size: 16px; }
.mash-val { min-width: 54px; text-align: center; font: 600 20px ui-monospace, Menlo, monospace; color: #fff; background: #1b1d20; border-radius: 6px; padding: 5px 0; }
.mash-conferir { margin-left: auto; padding: 11px 26px; border-radius: 999px; border: 1px solid var(--ambar); background: var(--ambar); color: #1b1300; font-weight: 600; }
.mash-conferir:disabled { background: transparent; color: var(--verde); border-color: rgba(56,224,123,.5); cursor: default; }
.lab-dica.mash-ok { color: var(--verde) !important; }
.lab-dica.mash-nao { color: var(--ambar) !important; }

/* ---------- mapa ---------- */
.mapa { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.mapa li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(255,176,32,.45); background: linear-gradient(180deg, var(--metal), var(--metal2)); }
.mapa li > i { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-style: normal; color: var(--ambar); border: 1px solid rgba(255,176,32,.5); }
.mapa li a, .mapa li div { color: inherit; text-decoration: none; display: grid; }
.mapa li a:hover b { text-decoration: underline; }
.mapa b { font-weight: 600; }
.mapa span { font-size: 13px; color: var(--apagado); }
.mapa li.fechada { border-color: var(--linha); opacity: .5; }
.mapa li.fechada > i { color: var(--apagado); border-color: var(--linha); }
@media (max-width: 600px) { .mash-pista { --nome: 96px; } .mash-conferir { margin-left: 0; width: 100%; } }

/* ---------- fase 1 ---------- */
.de-para { display: grid; gap: 2px; margin: 16px 0; max-width: 560px; border-radius: 12px; overflow: hidden; border: 1px solid var(--linha); }
.de-para > div { display: grid; grid-template-columns: 1fr 1fr; background: #0b0d10; }
.de-para > div > * { padding: 10px 14px; }
.de-para span { color: var(--apagado); }
.de-para b { border-left: 1px solid var(--linha); }
.de-para .cab { background: #16191d; }
.de-para .cab span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.de-para .cab span + span { border-left: 1px solid var(--linha); color: var(--ambar); }
.tela { display: grid; grid-template-columns: 18% 1fr 14%; grid-template-rows: 34px 30px 150px 70px; gap: 3px; margin: 16px 0 10px; padding: 3px; border-radius: 10px; background: #1b1d20; border: 1px solid #3a3f47; font-size: 13px; color: #dfe4e9; }
.tela > div { position: relative; background: #3b3f46; padding: 7px 9px; border-radius: 3px; display: flex; gap: 8px; align-items: flex-start; }
.tela i { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--ambar); color: #1b1300; font-style: normal; font-size: 12px; font-weight: 600; display: grid; place-items: center; }
.t-transporte { grid-column: 1 / -1; background: #4a4f58 !important; }
.t-browser { grid-row: 2 / 4; background: #33363c !important; }
.t-regua { background: #26292e !important; }
.t-trilhas { background: #2a2d32 !important; }
.t-mixer { grid-column: 3; grid-row: 2 / 4; }
.t-detalhe { grid-column: 1 / -1; background: #33363c !important; }
.t-clipe { position: absolute; left: 12%; right: 8%; top: 44px; height: 30px; border-radius: 3px; background: var(--c-intro); opacity: .8; }
.t-clipe2 { left: 30%; right: 30%; top: 82px; background: var(--c-break); }
.legenda-tela { columns: 2; column-gap: 28px; max-width: none; font-size: 15px; }
.legenda-tela li { break-inside: avoid; }

.marcar .lab-clipe { background: #8d949d; }
.lab-clipe.o-break i { -webkit-mask-size: 100% 22%; mask-size: 100% 22%; }
.lab-clipe.o-intro i, .lab-clipe.o-outro i { -webkit-mask-size: 100% 42%; mask-size: 100% 42%; }
.lab-clipe.o-drop i { -webkit-mask-size: 100% 80%; mask-size: 100% 80%; }
.marcar-regua button { flex: none; height: 24px; background: #1f2226; border: 0; border-left: 1px solid #50565f; padding: 0 0 0 5px; text-align: left; font: 11px ui-monospace, Menlo, monospace; color: #9aa2ab; }
.marcar-regua button:hover { background: #3a3f47; color: #fff; }
.marcar-fichas { display: flex; gap: 6px; flex-wrap: wrap; }
.marcar-ficha { font-weight: 600; background: #26292e; }
.marcar-ficha.ligado { background: #15181c; border-color: #fff; color: inherit; }
.marcar-ficha.posto { opacity: .55; }
.marcar-pe { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: #1f2226; padding-right: 12px; }
.marcar-pe .lab-dica { flex: 1 1 320px; background: none; }
.marcar-pe .mash-conferir { margin: 8px 0 8px auto; }

/* ---------- fase 2 ---------- */
.grade-mini { position: relative; display: grid; grid-template-columns: repeat(8, 1fr); height: 46px; margin: 6px 0; background: repeating-linear-gradient(90deg, #5a616b 0 1px, transparent 1px 12.5%), #1b1d20; border-radius: 4px; overflow: hidden; }
.grade-mini i { justify-self: start; width: 7px; margin-top: 8px; height: 30px; border-radius: 2px 2px 0 0; background: var(--c-groove); }
.grade-mini.fora i:nth-child(1) { margin-left: 22%; } .grade-mini.fora i:nth-child(2) { margin-left: 30%; } .grade-mini.fora i:nth-child(3) { margin-left: 38%; } .grade-mini.fora i:nth-child(4) { margin-left: 46%; }
.grade-mini.fora i:nth-child(5) { margin-left: 54%; } .grade-mini.fora i:nth-child(6) { margin-left: 62%; } .grade-mini.fora i:nth-child(7) { margin-left: 70%; } .grade-mini.fora i:nth-child(8) { margin-left: 78%; }
.grade-mini.fora i { background: var(--c-drop); }
.warp-bpm { display: flex; align-items: center; gap: 6px; }
.warp-bpm > span { font-size: 12px; color: #c3c9d0; margin-right: 4px; }
.warp-bpm .mash-val { font-size: 18px; min-width: 58px; }
.warp-janela { border-top: 1px solid #1f2226; }
.warp-topo { display: flex; align-items: center; justify-content: space-between; padding: 7px 10px; background: #33363c; font-size: 13px; }
.warp-onda { position: relative; height: 104px; background: #24272b; overflow: hidden; }
.warp-linha { position: absolute; top: 0; bottom: 0; width: 1px; background: #5a616b; }
.warp-linha.forte { background: #d7dce2; }
.warp-linha b { position: absolute; top: 2px; left: 4px; font: 11px ui-monospace, Menlo, monospace; color: #d7dce2; font-weight: 400; }
.warp-pico { position: absolute; bottom: 0; width: 22px; margin-left: -2px; padding: 0; border: 0; background: none; height: 100%; cursor: pointer; }
.warp-janela[data-j=b] .warp-pico { cursor: default; }
.warp-pico::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; clip-path: polygon(0 0, 14% 0, 100% 100%, 0 100%); }
.p-kick::after { height: 74%; background: var(--c-groove); }
.p-hat::after { height: 22%; width: 60%; background: #7f8791; }
.p-entrada::after { height: 40%; width: 80%; background: var(--c-break); }
.warp-janela[data-j=a] .warp-pico:hover::after { filter: brightness(1.4); }
.warp-um { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--ambar); pointer-events: none; }
.warp-um b { position: absolute; bottom: 4px; left: 5px; font: 600 11px ui-monospace, Menlo, monospace; color: var(--ambar); white-space: nowrap; }
@media (max-width: 600px) { .legenda-tela { columns: 1; } .tela { font-size: 11px; grid-template-columns: 24% 1fr 18%; } }

/* ---------- fase 5: groove ---------- */
.pecas { display: grid; gap: 12px; margin: 16px 0; }
.pecas > div { display: grid; grid-template-columns: 56px minmax(140px, 300px) 1fr; align-items: center; gap: 14px; }
.pecas span { font-size: 14px; color: var(--apagado); }
.mini16 { display: grid; grid-template-columns: repeat(16, 1fr); gap: 2px; height: 22px; }
.mini16 i { background: #23272e; border-radius: 2px; }
.mini16 i:nth-child(4n+1) { background: #343a43; }
.mini16 i.on { background: var(--ambar); }
.groove-swing { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #c3c9d0; }
.groove-swing input { width: 130px; accent-color: var(--ambar); }
.groove-swing output { font: 600 13px ui-monospace, Menlo, monospace; color: #fff; min-width: 22px; }
.groove-grade { padding: 10px 10px 12px; min-width: 620px; }
.groove-linha { display: grid; grid-template-columns: 86px repeat(16, 1fr); gap: 3px; margin-bottom: 3px; align-items: center; }
.groove-linha > b { font: 600 11px ui-monospace, Menlo, monospace; color: #dfe4e9; }
.groove-conta span { text-align: center; font: 11px ui-monospace, Menlo, monospace; color: #6f7780; }
.groove-conta span.tempo { color: #d7dce2; }
.groove-casa { height: 38px; padding: 0; border-radius: 4px; border: 1px solid #1a1c1f; background: #3a3e45; }
.groove-casa.tempo { background: #4d525b; }
.groove-casa:hover { border-color: #9aa2ab; }
.groove-casa.forte { background: var(--ambar); border-color: var(--ambar); }
.groove-casa.fraco { background: rgba(255,176,32,.38); border-color: rgba(255,176,32,.6); }
.groove-casa.tocando { box-shadow: inset 0 0 0 2px #fff; }
.groove-conta span.tocando { color: var(--ambar); }
@media (max-width: 600px) { .pecas > div { grid-template-columns: 48px 1fr; } .pecas span { grid-column: 1 / -1; } }

/* ---------- fase 7: baixo ---------- */
.lab-baixo [data-swing] { display: none; }
.ab { padding: 14px; background: #33363c; border-top: 1px solid #1f2226; }
.ab-topo { display: flex; justify-content: space-between; align-items: baseline; }
.ab-topo span { font: 12px ui-monospace, Menlo, monospace; color: #c3c9d0; }
.ab p { margin: 4px 0 10px !important; font-size: 14px; color: #c3c9d0 !important; max-width: none !important; }
.ab-botoes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ab-botoes span { font-size: 13px; color: #dfe4e9; margin-left: 10px; }
.ab-msg { min-height: 1.4em; margin: 10px 0 0 !important; }
.ab-msg.mash-ok { color: var(--verde) !important; }
.ab-msg.mash-nao { color: var(--ambar) !important; }

/* ---------- fase 8: hook ---------- */
.lab-baixo [data-swing], .lab-hook [data-swing] { display: none; }
.lab-hook .groove-casa { height: 23px; border-radius: 3px; }
.lab-hook .groove-linha { margin-bottom: 2px; grid-template-columns: 62px repeat(16, 1fr); }
.lab-hook .groove-linha.fora > b { color: #6f7780; font-weight: 400; }
.lab-hook .groove-linha.fora .groove-casa { background: #2b2e33; }
.lab-hook .groove-linha.fora .groove-casa.tempo { background: #32363c; }
.lab-hook .groove-linha.fora .groove-casa.forte, .lab-hook .groove-linha.fora .groove-casa.fraco { background: var(--c-drop); border-color: var(--c-drop); }
.lab-hook .groove-linha.forte-da-escala > b { color: var(--ambar); }
.teclado { display: flex; align-items: flex-start; height: 120px; margin: 16px 0; max-width: 520px; }
.teclado .t-b { flex: 1; height: 100%; background: #e8ecf0; color: #15181c; border: 1px solid #15181c; border-radius: 0 0 5px 5px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px; font-size: 13px; font-weight: 600; }
.teclado .t-b.forte { background: var(--ambar); }
.teclado .t-p { flex: none; width: 24px; height: 62%; margin: 0 -12px; background: #15181c; border-radius: 0 0 4px 4px; z-index: 1; }

/* ---------- capturas reais do Ableton ---------- */
.foto { margin: 16px 0; }
.foto-rolo { overflow-x: auto; border-radius: 8px; border: 1px solid #3a3f47; background: #1b1d20; }
.foto-quadro { position: relative; min-width: 560px; margin: 0 auto; }
.foto-quadro img { display: block; width: 100%; height: auto; }
.pino { position: absolute; transform: translate(-50%, -50%); width: 19px; height: 19px; border-radius: 50%; background: var(--ambar); color: #1b1300; font: 600 11px/19px ui-sans-serif, system-ui, sans-serif; text-align: center; font-style: normal; box-shadow: 0 0 0 2px rgba(0,0,0,.55); }
.foto figcaption { margin-top: 6px; font-size: 13px; color: var(--apagado); }

/* ---------- fase 9: arranjo ---------- */
.mapa-faixa { display: flex; gap: 2px; margin: 16px 0; border-radius: 6px; overflow: hidden; }
.mapa-faixa > div { padding: 10px 6px; text-align: center; min-width: 0; color: #0b0d10; }
.mapa-faixa b { display: block; font-size: 13px; color: #0b0d10 !important; overflow: hidden; text-overflow: ellipsis; }
.mapa-faixa span { font: 12px ui-monospace, Menlo, monospace; }
.arr-pista { --nome: 84px; position: relative; padding: 8px 8px 10px 0; min-width: 760px; }
.arr-linha { display: grid; grid-template-columns: var(--nome) repeat(22, 1fr); gap: 2px; margin-bottom: 2px; align-items: center; }
.arr-linha > b { font: 600 11px ui-monospace, Menlo, monospace; color: #dfe4e9; padding-left: 10px; }
.arr-regua button { height: 22px; padding: 0 0 0 3px; border: 0; border-left: 1px solid #50565f; background: #1f2226; text-align: left; font: 10px ui-monospace, Menlo, monospace; color: #9aa2ab; }
.arr-regua button:nth-of-type(4n+1) { color: #fff; border-left-color: #d7dce2; }
.arr-regua button:hover { background: #3a3f47; }
.arr-casa { height: 34px; padding: 0; border: 1px solid #1a1c1f; border-radius: 3px; }
.arr-casa:not(.ligada) { background: #2b2e33; }
.arr-casa:hover { border-color: #9aa2ab; }
.arr-casa.ligada { border-color: rgba(0,0,0,.35); }
.arr-pista .lab-agulha { top: 0; bottom: 0; }
@media (max-width: 600px) { .mapa-faixa b { font-size: 11px; } }

/* ---------- fase 10: mesa ---------- */
.sub { margin: 22px 0 8px; font-size: 16px; font-weight: 600; color: var(--ambar); }
.mesa { display: grid; grid-template-columns: repeat(6, minmax(92px, 1fr)); gap: 3px; padding: 10px; overflow-x: auto; }
.mesa-canal { display: grid; justify-items: center; gap: 6px; padding: 10px 6px 12px; background: #3b3f46; border-radius: 4px; }
.mesa-canal > b { font: 600 12px ui-monospace, Menlo, monospace; color: #fff; }
.mesa-medidor { position: relative; width: 16px; height: 130px; background: #17191c; border-radius: 3px; overflow: hidden; }
.mesa-medidor i { position: absolute; left: 0; right: 0; bottom: 0; background: var(--verde); transition: height .12s; }
.mesa-medidor[data-cor=amarelo] i { background: var(--ambar); }
.mesa-medidor[data-cor=vermelho] i { background: var(--vermelho); }
.mesa-gr i { top: 0; bottom: auto; }
.mesa-pico { font: 600 12px ui-monospace, Menlo, monospace; color: #fff; }
.mesa-fader, .mesa-rotulo { font: 11px ui-monospace, Menlo, monospace; color: #c3c9d0; text-align: center; }
.mesa-canal input[type=range] { width: 100%; accent-color: var(--ambar); }
.mesa-main, .mesa-lim { background: #4a4f58; }
.conquistas { list-style: none; padding: 0; margin: 16px auto; max-width: 420px; display: grid; gap: 6px; text-align: left; }
.conquistas li { display: flex; justify-content: space-between; padding: 10px 14px; border-radius: 10px; border: 1px solid rgba(56,224,123,.35); background: #0b0d10; }
.conquistas span { color: var(--apagado); font-size: 13px; }

/* ---------- porta do curso e mapa ligado ao Portal ---------- */
.porta { padding-top: 90px; text-align: left; }
.porta h1 { font-size: clamp(30px, 5vw, 52px); }
.porta-botoes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.porta-bt { display: inline-block; padding: 12px 22px; border-radius: 999px; border: 1px solid var(--linha); background: none; color: var(--texto); text-decoration: none; font: inherit; cursor: pointer; }
.porta-bt.forte { background: #fff; color: #000; border-color: #fff; font-weight: 600; }
.salvo-portal { font-size: 13px; color: var(--apagado) !important; margin-top: 14px !important; }
.mapa li.feita { border-color: rgba(56,224,123,.45); }
.mapa li.feita > i { color: var(--verde); border-color: rgba(56,224,123,.5); }
.mapa li.trancada { border-color: var(--linha); opacity: .55; }
.mapa li.trancada > i { color: var(--apagado); border-color: var(--linha); }
.mapa li.trancada a { cursor: default; }
