/* CDJ-2000NXS2 simulado: carcaça em SVG na grade do painel (972 x 1252); tela e jog por cima, em HTML e canvas. */
.nxs2 { position: relative; width: 100%; aspect-ratio: 972 / 1252; container-type: inline-size; user-select: none; -webkit-user-select: none; }
.nx-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; filter: drop-shadow(0 30px 50px rgba(0,0,0,.55)); }
.nx-svg text { font-family: "Helvetica Neue", Arial, sans-serif; text-anchor: middle; dominant-baseline: middle; }
.nx-txt { fill: #e1e4e8; letter-spacing: .03em; }
.nx-rot { fill: #d8dce1; font-weight: 600; }
.nx-logo { fill: #e6eaee; font-size: 30px; font-weight: 300; letter-spacing: .32em; }
.nx-modelo { fill: #8a9198; }

.nx-ctl { cursor: pointer; }
.nx-ctl:active { filter: brightness(1.2); }
.nx-led { opacity: .25; transition: opacity .1s; }
.nx-anel-luz { stroke-opacity: .3; transition: stroke-opacity .1s, filter .1s; }
.nx-on .nx-led { opacity: 1; filter: drop-shadow(0 0 4px var(--luz)); }
.nx-on .nx-anel-luz { stroke-opacity: 1; filter: drop-shadow(0 0 8px var(--luz)); }
.nx-fader, .nx-knob { cursor: ns-resize; touch-action: none; }
.nx-knob-gira { transition: transform .05s linear; }

/* tela */
.nx-tela {
  position: absolute; background: #03060a; display: flex; flex-direction: column; overflow: hidden;
  padding: .8cqw; gap: .6cqw; color: #d8e2ec; font: 600 2.1cqw/1.1 "Helvetica Neue", Arial, sans-serif;
}
.nx-tela-topo, .nx-tela-pe { display: flex; justify-content: space-between; align-items: baseline; gap: 1.2cqw; }
.nx-faixa { color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-tempo-musica { font: 600 3.4cqw ui-monospace, Menlo, monospace; color: #fff; }
.nx-tela-meio { position: relative; flex: 1; background: #000; border-top: 1px solid #10161c; border-bottom: 1px solid #10161c; }
.nx-onda { position: absolute; inset: 0; width: 100%; height: 100%; }
.nx-tela-pe { font-size: 1.7cqw; color: #8ea0b2; }
.nx-tela-pe b { color: #fff; font: 600 2.7cqw ui-monospace, Menlo, monospace; }
.nx-pct b { color: #ffb020; }
.nx-range { border: 1px solid #3a4652; padding: 0 .5cqw; }
.nx-mt { color: #2a333c; } .nx-mt.on { color: #ff3b3b; }
.nx-fita {
  position: absolute; left: 5%; right: 5%; top: 50%; transform: translateY(-50%) rotate(-2.5deg);
  background: #d9cfb4; color: #3b352a; text-align: center; font-weight: 700; letter-spacing: .3em;
  font-size: 2.6cqw; padding: 1.8cqw 0; box-shadow: 0 2px 6px rgba(0,0,0,.6);
}
.nx-coberto .nx-onda { filter: blur(6px) brightness(.5); }
.nx-coberto .nx-bpm b { filter: blur(5px); }

/* jog */
.nx-jogcaixa { position: absolute; border-radius: 50%; }
.nx-jog { width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; border-radius: 50%; }
.nx-jog:active { cursor: grabbing; }

/* o que a aula ainda não ensinou: apagado, sem serigrafia e sem resposta */
.nx-fechado { pointer-events: none; }
.nx-ctl.nx-fechado { filter: brightness(.42) saturate(0); }
.nx-ctl.nx-fechado .nx-rot { visibility: hidden; }
.nx-txt.nx-fechado, g.nx-fechado { opacity: .12; }
.nx-tela.nx-fechado { filter: brightness(.2); }
.nx-jogcaixa.nx-fechado { filter: brightness(.45) saturate(0); }

/* o que entrou nesta fase: pisca branco 3 vezes */
.nx-novo { animation: nx-novo 2.4s ease-in-out 3; }
@keyframes nx-novo { 50% { filter: brightness(1.6) drop-shadow(0 0 10px #fff); } }

/* deck da pista: o aluno não encosta */
.nx-travado .nx-ctl, .nx-travado .nx-jogcaixa { pointer-events: none; }
