/* ===== Player de vídeo animado ===== */
.vplayer { --accent: #ffffff; border-radius: 16px; overflow: hidden; background: #050505; border: 1px solid #2a2a2a; box-shadow: 0 30px 70px -30px color-mix(in srgb, var(--accent) 60%, #000); outline: none; user-select: none; }
.vplayer:fullscreen { border-radius: 0; display: flex; flex-direction: column; justify-content: center; background: #000; }
.vplayer:fullscreen .vstage { width: min(100vw, calc((100vh - 70px) * 16 / 9)); margin: 0 auto; }
.vstage { position: relative; aspect-ratio: 16 / 9; container-type: inline-size; overflow: hidden; cursor: pointer; background: #070707; font-family: Inter, system-ui, sans-serif; color: #f0f0f0; }
.vbg { position: absolute; inset: 0; background:
  linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 4cqw 4cqw,
  linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 4cqw 4cqw,
  radial-gradient(80% 70% at 50% 40%, #161616, #070707); }
.vbg i { position: absolute; width: 38cqw; height: 38cqw; border-radius: 50%; filter: blur(7cqw); opacity: .09; background: var(--accent); animation: vblob 12s ease-in-out infinite alternate; }
.vbg i:nth-child(1) { left: -8cqw; top: -10cqw; }
.vbg i:nth-child(2) { right: -10cqw; bottom: -14cqw; background: #9a9a9a; opacity: .12; animation-delay: -4s; }
.vbg i:nth-child(3) { left: 40cqw; top: 20cqw; width: 20cqw; height: 20cqw; background: #9a9a9a; opacity: .12; animation-delay: -8s; }
@keyframes vblob { to { transform: translate(6cqw, 4cqw) scale(1.15); } }
.vscene, .vscene-in { position: absolute; inset: 0; }
.vwm { position: absolute; right: 2cqw; top: 1.6cqw; font: 700 1.3cqw 'JetBrains Mono', monospace; color: rgba(255,255,255,.35); letter-spacing: .05em; }
.vcap { position: absolute; left: 50%; bottom: 2.2cqw; transform: translateX(-50%); width: 86%; text-align: center; pointer-events: none; }
.vcap span { display: inline; padding: .25em .6em; line-height: 1.75; font-size: max(11px, 1.75cqw); font-weight: 500; background: rgba(0,0,0,.78); border-radius: .4em; -webkit-box-decoration-break: clone; box-decoration-break: clone; animation: capin .3s ease; }
@keyframes capin { from { opacity: 0; transform: translateY(.4cqw); } }
.vbig { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 9cqw; height: 9cqw; border-radius: 50%; border: 0; background: var(--accent); display: grid; place-items: center; box-shadow: 0 0 0 1.2cqw color-mix(in srgb, var(--accent) 25%, transparent), 0 2cqw 5cqw -1cqw #000; transition: transform .2s, opacity .3s; z-index: 5; }
.vbig svg { width: 4.4cqw; height: 4.4cqw; fill: #fff; margin-left: .5cqw; }
.vbig:hover { transform: translate(-50%, -50%) scale(1.08); }
.vplayer.started .vbig { opacity: 0; pointer-events: none; }
.vplayer.started:not(.playing):not(.ended) .vbig { opacity: .75; pointer-events: auto; transform: translate(-50%, -50%) scale(.75); }
.vend { position: absolute; inset: 0; display: none; place-items: center; background: rgba(6,6,6,.82); backdrop-filter: blur(6px); z-index: 6; cursor: default; }
.vplayer.ended .vend { display: grid; }
.vend-box { text-align: center; animation: pop .5s cubic-bezier(.2,1.4,.4,1); }
.vend-ic { width: 8cqw; height: 8cqw; margin: 0 auto 1.5cqw; border-radius: 50%; display: grid; place-items: center; font-size: 4cqw; background: #e5e5e5; color: #070707; box-shadow: 0 0 0 1.2cqw rgba(255,255,255,.2); }
.vend h3 { font-size: 3cqw; margin: 0 0 2cqw; }
.vend-btns { display: flex; gap: 1.2cqw; justify-content: center; }
.vend .btn { font-size: max(12px, 1.4cqw); }
@keyframes pop { from { transform: scale(.7); opacity: 0; } }

/* controles */
.vctrl { background: #0a0a0a; padding: 0 12px 8px; }
.vprog { position: relative; height: 18px; cursor: pointer; touch-action: none; }
.vprog::before, .vfill { content: ''; position: absolute; left: 0; top: 7px; height: 4px; border-radius: 4px; }
.vprog::before { right: 0; background: #2a2a2a; }
.vfill { background: linear-gradient(90deg, #ffffff, #8a8a8a); width: 0; }
.vprog:hover::before, .vprog:hover .vfill { top: 6px; height: 6px; }
.vknob { position: absolute; top: 3px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 40%, transparent); transform: scale(0); transition: transform .15s; }
.vprog:hover .vknob { transform: scale(1); }
.vmarks i { position: absolute; top: 6px; width: 3px; height: 6px; background: #0a0a0a; }
.vtip { position: absolute; bottom: 20px; transform: translateX(-50%); white-space: nowrap; background: #222222; border: 1px solid #3a3a3a; padding: 3px 9px; border-radius: 6px; font-size: 12px; opacity: 0; pointer-events: none; transition: opacity .15s; max-width: 300px; overflow: hidden; text-overflow: ellipsis; }
.vprog:hover .vtip { opacity: 1; }
.vrow { display: flex; align-items: center; gap: 4px; }
.vb { background: none; border: 0; padding: 6px; border-radius: 8px; display: grid; place-items: center; color: #e6e6e6; }
.vb:hover { background: rgba(255,255,255,.08); }
.vb svg { width: 22px; height: 22px; fill: currentColor; }
.vb.txt { font-size: 13px; font-weight: 700; padding: 6px 10px; }
.vb.off { color: #6b6b6b; text-decoration: line-through; }
.vtime { font: 13px 'JetBrains Mono', monospace; color: #c4c4c4; margin-left: 6px; }
.vchap { font-size: 13px; color: #9a9a9a; margin-left: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40%; }
.vtime, .vb.txt { white-space: nowrap; }
@media (max-width: 640px) {
  .vchap, [data-a="prev"], [data-a="nextsc"] { display: none !important; }
  .vb.txt { padding: 6px 5px; font-size: 12px; }
  .vtime { font-size: 12px; }
  .vcap { width: 96%; bottom: 1.2cqw; }
}

/* ===== Cenas ===== */
.sc { position: absolute; inset: 0; padding: 4cqw 5cqw 10cqw; }
.sc h2 { font-size: 3.4cqw; margin: 0 0 2.4cqw; letter-spacing: -.05cqw; animation: slidein .6s ease both; }

/* abertura */
.sc-title { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding-bottom: 8cqw; }
.st-badge { display: inline-flex; gap: .8cqw; align-items: center; font-size: 1.5cqw; font-weight: 600; padding: .6cqw 1.6cqw; border-radius: 99px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); animation: slidein .6s ease both; }
.st-badge span { width: 1cqw; height: 1cqw; border-radius: 50%; }
.sc-title h1 { font-size: 5.6cqw; line-height: 1.08; margin: 2cqw 0 1.2cqw; font-weight: 900; letter-spacing: -.2cqw; max-width: 80%; background: linear-gradient(90deg, #ffffff, #d4d4d4, #8a8a8a); -webkit-background-clip: text; background-clip: text; color: transparent; animation: zoomin .9s cubic-bezier(.2,1.2,.4,1) .15s both; }
.sc-title p { font-size: 2.1cqw; color: #bdbdbd; margin: 0; animation: slidein .7s ease .5s both; }
.st-bar { width: 22cqw; height: .4cqw; border-radius: 1cqw; background: rgba(255,255,255,.1); margin-top: 3cqw; overflow: hidden; }
.st-bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #ffffff, #8a8a8a); transform-origin: left; animation: grow 1.4s ease .6s both; }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes zoomin { from { opacity: 0; transform: scale(.7); filter: blur(1cqw); } }
@keyframes slidein { from { opacity: 0; transform: translateY(2cqw); } }
.fl { position: absolute; bottom: -5cqw; font-family: 'JetBrains Mono', monospace; font-weight: 700; color: rgba(255,255,255,.08); animation: floatup linear infinite; pointer-events: none; }
@keyframes floatup { to { transform: translateY(-65cqw) rotate(25deg); } }

/* tópicos */
.sc-bullets { display: flex; flex-direction: column; justify-content: center; padding-left: 9cqw; padding-right: 9cqw; }
.sc-bullets ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5cqw; }
.sc-bullets li { display: flex; align-items: center; gap: 1.8cqw; font-size: 2.3cqw; font-weight: 500; padding: 1.3cqw 2cqw; border-radius: 1.2cqw; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); opacity: 0; transform: translateX(-4cqw); transition: all .6s cubic-bezier(.2,1.2,.4,1); }
.sc-bullets li.on { opacity: 1; transform: none; }
.sc-bullets li.on .bn { animation: pulse 1s ease; }
.bn { flex: none; width: 3.6cqw; height: 3.6cqw; border-radius: 1cqw; display: grid; place-items: center; font-weight: 800; font-size: 1.8cqw; background: var(--accent); color: #070707; }
.sc-bullets.recap h2 { font-size: 4cqw; text-align: center; }
.sc-bullets.recap .bn { background: #e5e5e5; border-radius: 50%; }
@keyframes pulse { 40% { transform: scale(1.3); } }

/* código */
.win { background: rgba(14,14,14,.92); border: 1px solid rgba(255,255,255,.12); border-radius: 1.2cqw; overflow: hidden; box-shadow: 0 2cqw 5cqw -2cqw #000; }
.vstage .win-bar { gap: .6cqw; padding: .8cqw 1.2cqw; font-size: 1.1cqw; }
.vstage .win-bar i { width: .9cqw; height: .9cqw; }
.sc-code, .sc-term { display: flex; align-items: center; justify-content: center; gap: 2cqw; padding-top: 3cqw; }
.sc-code .win { width: 84%; animation: zoomin .6s ease both; }
.sc-code.has-out .win { width: 58%; }
.win-code { margin: 0; padding: 1.4cqw 1.2cqw; font-family: 'JetBrains Mono', monospace; line-height: 1.55; white-space: pre; overflow: hidden; }
.win-code .ln { display: flex; border-radius: .3cqw; transition: background .4s; }
.win-code .ln b { flex: none; width: 2.6em; text-align: right; padding-right: 1em; color: #4a4a4a; font-weight: 400; user-select: none; }
.win-code .ln.mark { background: color-mix(in srgb, var(--accent) 22%, transparent); box-shadow: inset .3cqw 0 0 var(--accent); }
.win-code .ln.act { background: rgba(255,255,255,.16); box-shadow: inset .3cqw 0 0 #ffffff; }
.win-code .ln.act b { color: #ffffff; }
.sc-out { width: 30%; align-self: center; background: #050505; border: 1px solid rgba(255,255,255,.35); border-radius: 1.2cqw; overflow: hidden; opacity: 0; transform: translateX(3cqw); transition: all .5s ease; }
.sc-out.on { opacity: 1; transform: none; }
.sc-out .win-bar span { color: #e5e5e5; margin: 0; font-weight: 700; }
.sc-out pre { margin: 0; padding: 1.2cqw; font: 1.35cqw/1.6 'JetBrains Mono', monospace; color: #e6e6e6; min-height: 6cqw; white-space: pre-wrap; }

/* comparação lado a lado */
.sc-split { display: flex; align-items: center; justify-content: center; gap: 1.5cqw; padding-top: 3cqw; }
.sc-split .win { width: 43%; animation: zoomin .6s ease both; }
.sc-split .win:last-child { animation-delay: .3s; }
.sc-arrow { font-size: 3cqw; color: var(--accent); animation: pulse 1.6s ease infinite; }

/* terminal */
.sc-term .win { width: 80%; background: rgba(4,4,4,.95); animation: zoomin .6s ease both; }
.term-body { margin: 0; padding: 1.6cqw; font: 1.55cqw/1.6 'JetBrains Mono', monospace; min-height: 20cqw; white-space: pre-wrap; color: #e6e6e6; }
.t-prompt { color: #e5e5e5; font-weight: 700; } .t-path { color: #bdbdbd; font-weight: 700; }

/* diagrama */
.sc-diagram { padding: 0; }
.sc-diagram h2 { position: absolute; left: 3cqw; top: 1.6cqw; font-size: 2cqw; padding: .5cqw 1.4cqw; border-radius: 99px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); margin: 0; z-index: 2; }
.sc-diagram svg { position: absolute; inset: 0; width: 100%; height: 100%; color: #9a9a9a; }
.sc-diagram line { stroke: currentColor; stroke-width: .5; transition: opacity .3s; }
.node { position: absolute; transform: translate(-50%, -50%) scale(.6); opacity: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: .6cqw .8cqw; border-radius: 1.1cqw; border: .15cqw solid; transition: all .55s cubic-bezier(.2,1.4,.4,1); background: rgba(14,14,14,.9); }
.node.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.node b { font-size: 1.75cqw; font-family: 'JetBrains Mono', monospace; line-height: 1.2; }
.node small { font-size: 1.15cqw; color: #c4c4c4; margin-top: .3cqw; line-height: 1.2; }
.node.c-blue { border-color: #8fa3c7; box-shadow: 0 0 3cqw -1cqw #8fa3c7; } .node.c-blue b { color: #d4d4d4; }
.node.c-purple { border-color: #a99bc9; box-shadow: 0 0 3cqw -1cqw #a99bc9; } .node.c-purple b { color: #d6cde6; }
.node.c-green { border-color: #e5e5e5; box-shadow: 0 0 3cqw -1cqw #e5e5e5; } .node.c-green b { color: #d7e6dc; }
.node.c-orange { border-color: #cfae8a; box-shadow: 0 0 3cqw -1cqw #cfae8a; } .node.c-orange b { color: #e6d6c4; }
.node.c-red { border-color: #cf8f98; box-shadow: 0 0 3cqw -1cqw #cf8f98; } .node.c-red b { color: #e6c8cc; }
.node.c-yellow { border-color: #d4c58a; box-shadow: 0 0 3cqw -1cqw #d4c58a; } .node.c-yellow b { color: #e6dfc2; }
.node.c-gray { border-color: #5a5a5a; } .node.c-gray b { color: #d4d4d4; }
.edge-lbl { position: absolute; transform: translate(-50%, -50%) scale(.5); opacity: 0; font-size: 1.15cqw; font-weight: 700; font-family: 'JetBrains Mono', monospace; padding: .2cqw .7cqw; border-radius: .6cqw; background: #222222; border: 1px solid #3a3a3a; color: #ffffff; transition: all .4s ease; z-index: 1; white-space: nowrap; }
.edge-lbl.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* passo a passo */
.sc-trace { display: grid; grid-template-columns: 1.55fr 1fr; grid-template-rows: 1fr auto; gap: 1.6cqw 2cqw; padding: 5cqw 4cqw 11cqw; }
.sc-trace .win { align-self: center; animation: zoomin .6s ease both; }
.step-n { margin-left: auto; font-style: normal; color: #ffffff; font-weight: 700; }
.state { align-self: center; background: rgba(14,14,14,.92); border: 1px solid rgba(255,255,255,.12); border-radius: 1.2cqw; padding: 1.2cqw; animation: slidein .6s ease .2s both; }
.state-h { font-size: 1.2cqw; text-transform: uppercase; letter-spacing: .15cqw; color: #9a9a9a; font-weight: 800; margin-bottom: .8cqw; }
.var { display: flex; justify-content: space-between; align-items: center; gap: 1cqw; padding: .7cqw 1cqw; border-radius: .7cqw; margin-top: .6cqw; background: rgba(255,255,255,.04); font-family: 'JetBrains Mono', monospace; font-size: 1.6cqw; transition: background .3s; }
.var span { color: #d4d4d4; }
.var b { color: #fff; min-width: 3cqw; text-align: right; }
.var.chg { background: rgba(255,255,255,.18); animation: flash .7s ease; }
.var.chg b { color: #ffffff; }
@keyframes flash { 30% { transform: scale(1.06); background: rgba(255,255,255,.4); } }
.note { grid-column: 1 / -1; justify-self: center; font-size: 1.7cqw; font-weight: 600; padding: .8cqw 1.8cqw; border-radius: 99px; background: color-mix(in srgb, var(--accent) 22%, #111111); border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent); opacity: 0; transition: opacity .3s; }
.note.on { opacity: 1; animation: slidein .4s ease; }

/* cores genéricas das cenas (--lc) */
.vstage .c-blue { --lc: #8fa3c7; } .vstage .c-purple { --lc: #a99bc9; } .vstage .c-green { --lc: #e5e5e5; }
.vstage .c-orange { --lc: #cfae8a; } .vstage .c-red { --lc: #cf8f98; } .vstage .c-yellow { --lc: #d4c58a; }
.vstage .c-gray { --lc: #8a8a8a; } .vstage .c-cyan { --lc: #8fc3c9; } .vstage .c-pink { --lc: #c99bb5; }

/* muitos itens → letras menores */
.sc-bullets.many ul { gap: .9cqw; }
.sc-bullets.many li { font-size: 1.85cqw; padding: .85cqw 1.6cqw; }
.sc-bullets.many .bn { width: 2.9cqw; height: 2.9cqw; font-size: 1.4cqw; }
.state.many .var { font-size: 1.3cqw; padding: .45cqw .9cqw; margin-top: .4cqw; }

/* camadas / mapa de memória */
.sc-layers { display: flex; flex-direction: column; padding: 3cqw 5cqw 10.5cqw; }
.sc-layers h2 { font-size: 2.5cqw; margin: 0 0 1.4cqw; }
.ly-wrap { flex: 1; display: grid; grid-template-columns: 1.2fr 1fr; gap: 3cqw; min-height: 0; }
.sc-layers.solo .ly-wrap { grid-template-columns: 1fr; padding: 0 14cqw; }
.ly-col { position: relative; display: flex; flex-direction: column; gap: .6cqw; min-height: 0; }
.ly { position: relative; display: flex; flex-direction: column; justify-content: center; padding: .3cqw 9cqw .3cqw 4cqw; min-height: 2.6cqw; border-radius: 1cqw; border: .15cqw solid var(--lc); background: rgba(14,14,14,.92); opacity: 0; transform: translateX(-3cqw); transition: opacity .5s, transform .5s cubic-bezier(.2,1.2,.4,1), background .35s, box-shadow .35s; }
.ly.on { opacity: 1; transform: none; }
.ly b { font: 700 1.5cqw 'JetBrains Mono', monospace; color: color-mix(in srgb, var(--lc) 55%, #fff); line-height: 1.2; }
.ly small { font-size: 1.05cqw; color: #c4c4c4; line-height: 1.25; }
.ly em { position: absolute; right: 1.2cqw; top: 50%; transform: translateY(-50%); font: 1.05cqw 'JetBrains Mono', monospace; color: #9a9a9a; font-style: normal; }
.ly.hit { background: color-mix(in srgb, var(--lc) 26%, #111111); box-shadow: 0 0 3cqw -.4cqw var(--lc); }
.ly-line { display: flex; align-items: center; gap: 1cqw; color: #ffffff; font: 700 1.05cqw 'JetBrains Mono', monospace; letter-spacing: .1cqw; text-transform: uppercase; opacity: 0; transition: opacity .4s; }
.ly-line::before, .ly-line::after { content: ''; flex: 1; border-top: .2cqw dashed #ffffff; opacity: .7; }
.ly-line.on { opacity: 1; }
.ly-tok { position: absolute; left: 1cqw; top: 0; width: 2cqw; height: 2cqw; margin-top: -1cqw; border-radius: 50%; background: #ffffff; box-shadow: 0 0 0 .5cqw rgba(255,255,255,.25), 0 0 2cqw #ffffff; opacity: 0; transition: top .75s cubic-bezier(.5,0,.3,1), opacity .3s; z-index: 3; pointer-events: none; }
.ly-tok.on { opacity: 1; animation: tokpulse 1.2s ease infinite; }
.ly-tok span { position: absolute; left: 50%; bottom: 120%; transform: translateX(-50%); white-space: nowrap; font: 700 .95cqw 'JetBrains Mono', monospace; padding: .1cqw .6cqw; border-radius: .5cqw; background: #ffffff; color: #070707; }
.ly-tok span:empty { display: none; }
@keyframes tokpulse { 50% { box-shadow: 0 0 0 1cqw rgba(255,255,255,.1), 0 0 3cqw #ffffff; } }
.ly-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; justify-content: center; gap: .7cqw; counter-reset: st; min-height: 0; }
.ly-steps li { counter-increment: st; display: flex; gap: 1cqw; align-items: flex-start; font-size: 1.4cqw; line-height: 1.35; padding: .7cqw 1.1cqw; border-radius: .9cqw; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); opacity: 0; transform: translateX(3cqw); transition: all .45s ease; }
.ly-steps li::before { content: counter(st); flex: none; width: 2.1cqw; height: 2.1cqw; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.05cqw; background: #2a2a2a; }
.ly-steps li.on { opacity: .5; transform: none; }
.ly-steps li.cur { opacity: 1; border-color: #ffffff; background: rgba(255,255,255,.1); }
.ly-steps li.cur::before { background: #ffffff; color: #070707; }
.ly-steps:has(li:nth-child(7)) li { font-size: 1.2cqw; padding: .45cqw 1cqw; }

/* diagrama de sequência */
.sc-seq { padding: 3cqw 3cqw 10cqw; }
.sc-seq h2 { font-size: 2.4cqw; margin: 0 0 1.2cqw; }
.sq-area { position: relative; height: calc(100% - 4.2cqw); }
.sq-act { position: absolute; top: 0; transform: translateX(-50%) scale(.7); opacity: 0; width: max-content; max-width: 19cqw; text-align: center; padding: .6cqw 1.2cqw; border-radius: 1cqw; border: .15cqw solid var(--lc); background: rgba(14,14,14,.96); transition: all .5s cubic-bezier(.2,1.3,.4,1); z-index: 2; box-shadow: 0 0 2.5cqw -1cqw var(--lc); }
.sq-act.on { opacity: 1; transform: translateX(-50%); }
.sq-act b { display: block; font: 700 1.4cqw 'JetBrains Mono', monospace; color: color-mix(in srgb, var(--lc) 55%, #fff); }
.sq-act small { display: block; font-size: 1cqw; color: #c4c4c4; }
.sq-life { position: absolute; top: 4.5cqw; bottom: 0; border-left: .15cqw dashed rgba(255,255,255,.2); opacity: 0; transition: opacity .5s; }
.sq-life.on { opacity: 1; }
.sq-msg { position: absolute; height: var(--rh); opacity: 0; transition: opacity .35s; color: #9a9a9a; }
.sq-msg.on { opacity: .55; }
.sq-msg.cur { opacity: 1; color: #ffffff; }
.sq-msg i { position: absolute; left: 0; right: 0; top: 58%; height: .2cqw; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .55s ease; }
.sq-msg.left i { transform-origin: right; }
.sq-msg.on i { transform: scaleX(1); }
.sq-msg i::after { content: ''; position: absolute; top: 50%; transform: translateY(-50%); border: .65cqw solid transparent; }
.sq-msg.right i::after { right: -.3cqw; border-left: 1cqw solid currentColor; border-right: 0; }
.sq-msg.left i::after { left: -.3cqw; border-right: 1cqw solid currentColor; border-left: 0; }
.sq-msg span { position: absolute; left: 50%; bottom: 44%; transform: translateX(-50%); white-space: nowrap; font: 600 1.2cqw 'JetBrains Mono', monospace; padding: .05cqw .6cqw; border-radius: .5cqw; background: #0e0e0e; color: #e6e6e6; }
.sq-msg.cur span { color: #ffffff; box-shadow: 0 0 0 1px rgba(255,255,255,.5); }
.sq-msg small { position: absolute; left: 50%; top: 70%; transform: translateX(-50%); white-space: nowrap; font-size: .95cqw; color: #9a9a9a; }
.sq-msg.self { transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.sq-msg.self span { position: static; transform: none; border: 1px dashed currentColor; background: #171717; }
.sq-msg.self small { position: static; transform: none; }

/* campos de bits */
.sc-bits { display: flex; flex-direction: column; justify-content: center; padding: 3cqw 4cqw 10cqw; gap: 1.5cqw; }
.sc-bits h2 { font-size: 2.5cqw; margin: 0; text-align: center; }
.bf-val { text-align: center; font: 700 2cqw 'JetBrains Mono', monospace; color: #ffffff; }
.bf-row { display: flex; gap: .4cqw; }
.bf { min-width: 0; text-align: center; border: .15cqw solid var(--lc); border-radius: .8cqw; padding: .6cqw .3cqw; background: rgba(14,14,14,.92); opacity: 0; transform: translateY(1.5cqw); transition: all .45s ease; }
.bf.on { opacity: 1; transform: none; }
.bf.cur { background: color-mix(in srgb, var(--lc) 30%, #111111); box-shadow: 0 0 2.4cqw -.4cqw var(--lc); transform: translateY(-.6cqw); }
.bf-bits { font: 1.15cqw 'JetBrains Mono', monospace; color: #e6e6e6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bf b { display: block; font: 700 1.25cqw 'JetBrains Mono', monospace; color: color-mix(in srgb, var(--lc) 55%, #fff); margin-top: .3cqw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bf small { display: block; font-size: .9cqw; color: #9a9a9a; white-space: nowrap; overflow: hidden; }
.bf-desc { list-style: none; margin: .6cqw 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .6cqw 2.4cqw; }
.bf-desc li { display: flex; gap: 1cqw; align-items: baseline; font-size: 1.3cqw; line-height: 1.35; opacity: 0; transition: opacity .4s; }
.bf-desc li.on { opacity: .55; }
.bf-desc li.cur { opacity: 1; }
.bf-desc li b { flex: none; font-family: 'JetBrains Mono', monospace; color: color-mix(in srgb, var(--lc) 60%, #fff); }

/* dump hexadecimal */
.sc-hex { display: grid; grid-template-columns: 1.55fr 1fr; grid-template-rows: auto 1fr; gap: 1.4cqw 2cqw; padding: 3cqw 3.4cqw 10.5cqw; align-items: center; }
.sc-hex h2 { grid-column: 1 / -1; font-size: 2.4cqw; margin: 0; }
.sc-hex .win { animation: zoomin .6s ease both; }
.hx { padding: 1cqw 1.2cqw; font: 1.08cqw/1.75 'JetBrains Mono', monospace; white-space: pre; }
.hx-r { display: flex; gap: 1.3cqw; }
.hx-r b { color: #4a4a4a; font-weight: 400; }
.hx i { font-style: normal; border-radius: .25cqw; transition: background .3s, color .3s; }
.hx .hm.on { background: color-mix(in srgb, var(--lc) 30%, transparent); color: #fff; }
.hx .hm.cur { background: var(--lc); color: #070707; }
.hx-a { color: #9a9a9a; }
.hx-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .7cqw; }
.hx-legend li { padding: .6cqw 1.1cqw; border-left: .4cqw solid var(--lc); background: rgba(255,255,255,.04); border-radius: .6cqw; opacity: 0; transform: translateX(2cqw); transition: all .4s; }
.hx-legend li.on { opacity: .55; transform: none; }
.hx-legend li.cur { opacity: 1; background: color-mix(in srgb, var(--lc) 16%, transparent); }
.hx-legend b { display: block; font: 700 1.3cqw 'JetBrains Mono', monospace; color: color-mix(in srgb, var(--lc) 60%, #fff); }
.hx-legend span { font-size: 1.15cqw; color: #bdbdbd; line-height: 1.3; display: block; }

/* tabela comparativa */
.sc-table { display: flex; flex-direction: column; justify-content: center; padding: 3cqw 5.5cqw 10cqw; }
.sc-table h2 { font-size: 2.5cqw; margin: 0 0 1.4cqw; text-align: center; }
.sc-table table { width: 100%; border-collapse: separate; border-spacing: 0 .5cqw; font-size: 1.45cqw; }
.sc-table th { text-align: left; padding: .4cqw 1.4cqw; font-size: 1.2cqw; text-transform: uppercase; letter-spacing: .1cqw; color: color-mix(in srgb, var(--accent) 70%, #fff); }
.sc-table td { padding: .75cqw 1.4cqw; background: rgba(255,255,255,.045); border-top: 1px solid rgba(255,255,255,.07); border-bottom: 1px solid rgba(255,255,255,.07); line-height: 1.3; transition: background .3s; }
.sc-table td:first-child { font-weight: 700; color: #d4d4d4; border-radius: .8cqw 0 0 .8cqw; border-left: 1px solid rgba(255,255,255,.07); }
.sc-table td:last-child { border-radius: 0 .8cqw .8cqw 0; border-right: 1px solid rgba(255,255,255,.07); }
.sc-table tbody tr { opacity: 0; transform: translateY(1cqw); transition: all .45s ease; }
.sc-table tbody tr.on { opacity: 1; transform: none; }
.sc-table tbody tr.cur td { background: color-mix(in srgb, var(--accent) 17%, transparent); }
.sc-table table:has(tbody tr:nth-child(7)) { font-size: 1.22cqw; }
.sc-table table:has(tbody tr:nth-child(7)) td { padding: .5cqw 1.2cqw; }

/* ImGui: código + janela */
.sc-imgui { display: grid; grid-template-columns: 1.12fr 1fr; grid-template-rows: 1fr auto; gap: 1.2cqw 2cqw; padding: 3.4cqw 3cqw 11cqw; align-items: center; }
.sc-imgui .win { animation: zoomin .6s ease both; }
.ig-viewport { position: relative; align-self: stretch; display: flex; align-items: center; justify-content: center; border-radius: 1cqw; border: 1px solid rgba(255,255,255,.12); background: radial-gradient(circle at 30% 20%, #3a4e6e, #1b2436 55%, #121826); overflow: hidden; padding: 3cqw 1.6cqw 1.6cqw; font-size: 1.36cqw; animation: slidein .6s ease .2s both; }
.ig-viewport .igw { min-width: 18em; }
.ig-vp-lbl { position: absolute; left: 1.2cqw; top: .8cqw; font: .95cqw 'JetBrains Mono', monospace; color: rgba(255,255,255,.5); }
.ig-viewport .igw { max-width: 100%; }
.ig-cursor { position: absolute; left: 80%; top: 80%; width: 2.2cqw; height: 2.2cqw; opacity: 0; transition: left .6s cubic-bezier(.4,0,.2,1), top .6s cubic-bezier(.4,0,.2,1), opacity .3s; z-index: 5; pointer-events: none; }
.ig-cursor::before { content: ''; position: absolute; inset: 0; background: #fff; clip-path: polygon(0 0, 0 80%, 22% 62%, 38% 100%, 50% 94%, 35% 58%, 62% 58%); filter: drop-shadow(0 0 .2cqw #000); }
.ig-cursor.on { opacity: 1; }
.ig-cursor.click::after { content: ''; position: absolute; left: -1cqw; top: -1cqw; width: 2cqw; height: 2cqw; border-radius: 50%; border: .2cqw solid #ffffff; animation: igclick .7s ease-out .55s both; }
@keyframes igclick { from { transform: scale(.2); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

/* menu de vozes */
.vvoice { position: relative; display: flex; }
.vmenu { position: absolute; right: 0; bottom: calc(100% + 10px); min-width: 270px; background: #161616; border: 1px solid #333; border-radius: 12px; padding: 6px; box-shadow: 0 20px 50px -10px #000; z-index: 20; }
.vmenu[hidden] { display: none; }
.vm-h { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: #9a9a9a; padding: 7px 9px 4px; font-weight: 800; }
.vmenu button { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; text-align: left; background: none; border: 0; padding: 7px 9px; border-radius: 8px; font-size: 13px; color: #e6e6e6; }
.vmenu button:hover { background: rgba(255,255,255,.07); }
.vmenu button.on { background: color-mix(in srgb, var(--accent) 28%, transparent); }
.vmenu em { font-style: normal; font-size: 11px; color: #e5e5e5; white-space: nowrap; }
.vmenu em.robo { color: #cfae8a; }
.vm-note { font-size: 12px; color: #c4c4c4; padding: 6px 9px; }

/* cores da sintaxe no vídeo */
.vstage .t-kw { color: #ffffff; font-weight: 600; } .vstage .t-str { color: #a8a8a8; } .vstage .t-num { color: #d6d6d6; } .vstage .t-com { color: #5c5c5c; font-style: italic; }
.vstage .t-fn { color: #e8e8e8; } .vstage .t-type { color: #cfcfcf; font-style: italic; } .vstage .t-pre { color: #bdbdbd; } .vstage .t-reg { color: #ffffff; }
.vstage .t-tag { color: #ffffff; font-weight: 600; } .vstage .t-attr { color: #9d9d9d; } .vstage .t-prop { color: #e0e0e0; } .vstage .t-sel { color: #ffffff; font-weight: 600; }
