/* =========================================================
   Round 2: 3D scene, voice, welcome, soundtrack, explainers
   ========================================================= */

/* ---------- 3D host ---------- */
.s3d-host { position: absolute; inset-inline-start: 1px; inset-inline-end: 1px; top: 48px; bottom: 1px; overflow: hidden; border-radius: 0 0 11px 11px; background: #0a0a0b}
.s3d-host canvas { display: block; touch-action: none}
.s3d-host.fallback { background: #000000 url(../assets/scene_build.jpg) center / cover no-repeat}
.s3d-fallback { position: absolute; inset-inline-start: 12px; bottom: 12px; padding: 8px 12px; border-radius: 8px; background: rgba(9, 9, 9, 0.9); border: 1px solid #2c2c2e; font-size: 13px; color: #d2d2d7}
.s3d-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden}
.s3d-label {
  position: absolute; inset-inline-start: 0; top: 0; padding: 3px 8px 4px; border-radius: 3px;
  border: 1px solid rgba(0,255,111,0.85); background: rgba(13, 13, 13, 0.86); box-shadow: none;
  font-size: 11.5px; line-height: 1.28; color: #f5f5f7; white-space: nowrap; margin-top: -14px}
.s3d-label::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 12px; background: rgba(0,255,111,0.8)}
.s3d-label span { color: var(--accent)}
.s3d-label.under span { color: var(--orange)}
.s3d-label.plan { border-color: rgba(97,155,248,0.85); box-shadow: none}
.s3d-label.plan::after { background: rgba(97,155,248,0.85)}
.s3d-label.plan span { color: #ADCBFB}
.s3d-label.warn { border-color: rgba(255,92,174,0.9)}
.s3d-label.warn span { color: #F8A1CD}
.s3d-badge { position: absolute; inset-inline-start: 10px; top: 56px; z-index: 6; display: inline-flex; gap: 8px; align-items: center; padding: 6px 12px; border-radius: 999px; background: rgba(9, 9, 9, 0.85); border: 1px solid rgba(97,155,248,0.6); color: #e5e5ea; font-size: 12.5px; pointer-events: none}
.st-view.big, .t-view.big, .s-view.big { inset-inline-start: 13px !important; top: 152px !important; width: 1414px !important; height: 698px !important; z-index: 30; box-shadow: none}

/* build HUD */
.b3d-hud { position: absolute; inset-inline-start: 10px; top: 56px; display: flex; gap: 8px; z-index: 6; pointer-events: none}
.hud-card { width: 148px; padding: 7px 10px 8px; border-radius: 8px; background: rgba(9, 9, 9, 0.84); border: 1px solid #232325; backdrop-filter: blur(6px)}
.hud-card small { display: block; font-size: 11px; color: #aeaeb2; letter-spacing: .02em}
.hud-card b { display: block; font-size: 13.5px; font-weight: 500; margin-top: 1px}
.hud-card .progress { height: 4px; margin-top: 6px}
.b3d-sel { position: absolute; inset-inline-end: 10px; top: 56px; width: 252px; z-index: 7; padding: 12px 14px; border-radius: 10px; background: rgba(9, 9, 9, 0.95); border: 1px solid var(--accent-line); box-shadow: none; animation: riseIn .2s ease both}
.b3d-sel .bs-h { display: flex; align-items: center; gap: 8px}
.b3d-sel .bs-h b { font-size: 15px; font-weight: 500}
.b3d-sel p { margin: 6px 0 8px; font-size: 13px; color: #d2d2d7; line-height: 1.4}
.b3d-sel .bs-k { display: flex; gap: 14px; font-size: 12.5px; color: #e5e5ea}
.b3d-sel .bs-k span { display: inline-flex; gap: 6px; align-items: center}
.b3d-sel .bs-a { display: flex; gap: 8px; margin-top: 10px}
.b3d-sel .bs-a .btn { height: 34px; font-size: 13px; padding: 0 10px; flex: 1}

/* ---------- sidebar logo (fits the 230px rail) ---------- */
.side-brand { gap: 14px; top: 24px}

/* ---------- mini music player ---------- */
.dd-menu.mp-menu { padding: 0}
.mp { padding: 14px}
.mp-h { display: flex; align-items: center; gap: 12px}
.mp-art { width: 46px; height: 46px; border-radius: 10px; background: #00FF6F; display: flex; align-items: flex-end; justify-content: center; gap: 3px; padding-bottom: 12px; flex: none}
.mp-art i { width: 4px; height: 6px; border-radius: 2px; background: var(--accent)}
.mp-art.on i { height: 18px; animation: eq 1s ease-in-out infinite}
.mp-art.on i:nth-child(2) { animation-delay: .15s}
.mp-art.on i:nth-child(3) { animation-delay: .35s}
.mp-art.on i:nth-child(4) { animation-delay: .5s}
.mp-t { flex: 1; min-width: 0}
.mp-t small { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted)}
.mp-t b { display: block; font-size: 16px; font-weight: 600; color: var(--text)}
.mp-t span { display: block; font-size: 12.5px; color: #aeaeb2}
.mp-play { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; flex: none; box-shadow: none}
.mp-play:hover { background: var(--accent-hi)}
.dd-menu .mp-play { width: 44px; height: 44px; padding: 0; justify-content: center; color: var(--accent-ink); flex: none}
.dd-menu .mp-play:hover { background: var(--accent-hi); color: var(--accent-ink)}
.mp-list { display: grid; gap: 4px; margin: 12px 0 10px}
.dd-menu .mp-list button { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 8px}
.mp-list b { display: block; font-size: 14px; font-weight: 500; color: var(--text)}
.mp-list small { display: block; font-size: 12px; color: #a1a1a6}
.mp-dot { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid #636366; flex: none}
.mp-list button.on .mp-dot { border-color: var(--accent); background: var(--accent); box-shadow: none}
.mp-eq { margin-inline-start: auto; display: flex; gap: 2px; align-items: flex-end; height: 12px}
.mp-eq i { width: 3px; background: var(--accent); border-radius: 1px; animation: eq 1s ease-in-out infinite}
.mp-eq i:nth-child(2) { animation-delay: .2s}
.mp-eq i:nth-child(3) { animation-delay: .4s}
.mp-vol { display: flex; align-items: center; gap: 10px; color: var(--text-2); padding: 4px 2px}
.mp-vol input { flex: 1; accent-color: var(--accent)}
.mp-note { font-size: 11.5px; color: var(--faint); margin-top: 6px; line-height: 1.4}

/* ---------- AI speaking state ---------- */
.ai-orb-btn { cursor: pointer; border: 0; transition: transform .2s}
.ai-orb-btn:hover { transform: scale(1.05)}
body.ai-speaking .orb.live { animation: orbTalk .5s ease-in-out infinite alternate}
@keyframes orbTalk { from { transform: scale(1); box-shadow: none} to { transform: scale(1.08); box-shadow: none} }
.say-btn { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid #2c2c2e; font-size: 12.5px; color: #d2d2d7; background: #111112}
.say-btn:hover { border-color: var(--accent-line); color: var(--accent)}
.say-btn.on { border-color: var(--accent-line); color: var(--accent); background: rgba(124, 124, 124, 0.07)}
.st-mentor .online, .t-mentor .online { width: calc(100% - 96px)}
.mt-ask .mt-mic, .mt-input .mt-mic { color: #d2d2d7}
.mt-ask .mt-mic:hover, .mt-input .mt-mic:hover { color: var(--accent)}
.mt-vt { font-size: 13.5px}
.mt-vt.on { color: var(--accent)}

/* ---------- WAHAJ AI welcome ---------- */
.modal.welcome { width: 660px; border: 1px solid rgba(139, 92, 246, 0.35); background: #111112}
.wa { position: relative; padding: 26px 28px 22px; text-align: center}
.wa-top { position: absolute; inset-inline-start: 18px; inset-inline-end: 14px; top: 14px; display: flex; align-items: center; gap: 6px}
.wa-badge { font-size: 12px; letter-spacing: .14em; color: #e5e5ea; font-weight: 600; margin-inline-end: auto}
.wa-badge em { font-style: normal; margin-inline-start: 6px; padding: 2px 8px; border-radius: 999px; border: 1px solid #8b5cf6; font-size: 10.5px; letter-spacing: .08em}
.wa-orb { position: relative; width: 116px; height: 116px; margin: 10px auto 6px; display: grid; place-items: center}
.wa-orb .orb { width: 92px; height: 92px}
.wa-orb i { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(139, 92, 246, 0.45); animation: waRing 2.6s ease-out infinite}
.wa-orb i:nth-child(3) { animation-delay: .85s}
.wa-orb i:nth-child(4) { animation-delay: 1.7s}
@keyframes waRing { from { transform: scale(.75); opacity: .9} to { transform: scale(1.35); opacity: 0} }
.wa-title { margin: 8px 0 4px; font-size: 30px; font-weight: 600; letter-spacing: -.01em}
.wa-sub { margin: 0 0 18px; min-height: 22px; font-size: 16px; color: #d2d2d7}
.wa-list { display: grid; gap: 8px; text-align: start}
.wa-list button { display: grid; grid-template-columns: 44px 1fr 18px; gap: 14px; align-items: center; text-align: start; padding: 12px 14px; border-radius: 12px; border: 1px solid #232325; background: rgba(16, 16, 16, 0.9); transition: border-color .2s, transform .15s; animation: riseIn .4s ease both}
.wa-list button:nth-child(2) { animation-delay: .12s}
.wa-list button:nth-child(3) { animation-delay: .24s}
.wa-list button:hover { border-color: var(--accent-line); transform: translateY(-1px)}
.wa-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(135, 135, 135, 0.16); color: var(--accent)}
.wa-list b { display: block; font-size: 15.5px; font-weight: 500; color: var(--text)}
.wa-list small { display: block; font-size: 13px; color: #aeaeb2; margin-top: 2px; line-height: 1.35}
.wa-foot { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px}
.wa-foot .btn { height: 42px; font-size: 14.5px; padding: 0 14px}
.wa-foot .btn:first-child { margin-inline-end: auto}

/* ---------- voice recorder + voice messages ---------- */
.modal.voice { width: 540px}
.vr { padding: 20px 22px}
.vr-h { display: flex; align-items: center; gap: 14px}
.vr-h small { display: block; font-size: 12px; color: var(--muted)}
.vr-h b { display: block; font-size: 17px; font-weight: 600}
.vr-h .icon-btn { margin-inline-start: auto}
.vr-orb { width: 42px; height: 42px; flex: none}
.vr-body { margin: 16px 0 14px; padding: 16px; border-radius: 14px; background: #0a0a0b; border: 1px solid #232325; text-align: center}
.vr-wave { width: 100%; height: 60px; display: block}
.vr-time { font-size: 22px; font-weight: 500; margin-top: 6px; color: var(--text)}
.vr-text { min-height: 44px; margin-top: 8px; font-size: 15px; line-height: 1.45; color: var(--text)}
.vr-body.nomic .vr-wave { height: 0}
.vr-body.nomic .vr-text { color: var(--text-2)}
.vr-foot { display: flex; justify-content: flex-end; gap: 10px}
.vmsg { display: flex; align-items: center; gap: 12px}
.vplay { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; flex: none}
.vplay.on { animation: pulseRing 1s ease-out infinite}
.vbars { display: flex; align-items: center; gap: 3px; height: 28px}
.vbars i { width: 3px; border-radius: 2px; background: rgba(0,255,111,0.8)}
.vdur { font-size: 13px; color: #d2d2d7}
.vtr { display: flex; gap: 6px; align-items: baseline; margin-top: 8px; font-size: 13.5px; color: #d2d2d7; font-style: italic}
.vtr .ico { flex: none}
.bub { position: relative}
.bub-say { position: absolute; inset-inline-end: -36px; top: 6px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #98989d; opacity: 0; transition: opacity .2s, color .2s}
.msg:hover .bub-say, .bub-say:focus-visible { opacity: 1}
.bub-say:hover { color: var(--accent)}

/* ---------- KNOW · DO · BECOME explainer ---------- */
.modal.kx-modal { width: 900px}
.kx { position: relative; display: grid; grid-template-columns: 292px 1fr; gap: 26px; padding: 22px}
.kx-img img { width: 292px; height: 296px; border-radius: 14px; object-fit: cover; border: 1px solid #2c2c2e}
.kx-img { position: relative; width: 292px; min-height: 296px; align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 24px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--panel-2); text-align: center}
.kx-n { position: absolute; top: 16px; inset-inline-start: 18px; font-size: 15px; font-weight: 600; color: var(--muted)}
.kx-ic { width: 112px; height: 112px; display: grid; place-items: center; margin-bottom: 14px; border-radius: 28px; border: 1px solid var(--line-2); background: var(--tile); color: var(--accent)}
.kx-img.become .kx-ic { color: var(--accent-2-text)}
.kx-img.do .kx-ic { color: var(--text)}
.kx-img b { font-size: 26px; font-weight: 800; letter-spacing: .04em; color: var(--text)}
.kx-img small { max-width: 220px; font-size: 14px; line-height: 1.45; color: var(--text-2)}
.kx-body { padding-inline-end: 18px}
.kx-steps { display: flex; align-items: center; gap: 6px; color: #545458}
.kx-steps button { display: inline-flex; gap: 8px; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid #2c2c2e; font-size: 13px; color: #c7c7cc; letter-spacing: .08em}
.kx-steps button span { color: var(--muted); font-size: 11.5px}
.kx-steps button.on { border-color: var(--accent); color: var(--accent); background: rgba(124, 124, 124, 0.07)}
.kx h2 { margin: 16px 0 0; font-size: 40px; font-weight: 800; letter-spacing: .02em}
.kx h2 em { font-style: normal; color: var(--accent)}
.kx h3 { margin: 2px 0 10px; font-size: 19px; font-weight: 500; color: #e5e5ea}
.kx p { margin: 0; font-size: 15.5px; line-height: 1.55; color: #c7c7cc}
.kx ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px}
.kx li { display: flex; gap: 12px; align-items: center; font-size: 14.5px; color: #e5e5ea}
.kx li span { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: rgba(135, 135, 135, 0.1); color: var(--accent); flex: none}
.kx-where { display: flex; gap: 8px; align-items: center; margin-top: 14px; font-size: 13px; color: var(--muted)}
.kx-foot { display: flex; gap: 8px; margin-top: 18px}
.kx-foot .btn { height: 42px; font-size: 14.5px}
.kx-foot .btn-primary { margin-inline-start: auto}
.kx-x { position: absolute; inset-inline-end: 10px; top: 10px}

/* ---------- intro video ---------- */
.vid { position: relative; background: #000000}
.vid video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000000}
.vid-x { position: absolute; inset-inline-end: 12px; top: 12px; background: rgba(0, 0, 0, 0.55); color: #f5f5f7}
.vid-end { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(5, 5, 5, 0.82); backdrop-filter: blur(4px)}
.vid-end-in { text-align: center; display: grid; justify-items: center; gap: 8px}
.vid-end h3 { margin: 10px 0 0; font-size: 28px}
.vid-end p { margin: 0 0 12px; color: var(--text-2)}
.vid-end-in > div { display: flex; gap: 10px}

/* ---------- simulation report ---------- */
.rep { display: grid; gap: 10px}
.rep-row { display: grid; grid-template-columns: 42px 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: #0a0a0b}
.rep-row b { display: block; color: var(--text); font-weight: 500; font-size: 15px}
.rep-row b small { font-weight: 400; color: var(--muted); margin-inline-start: 6px; font-size: 12.5px}
.rep-row p { margin: 3px 0 0; font-size: 13.5px; line-height: 1.45}
.rep-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center}
.rep-ic.ok { background: rgba(135, 135, 135, 0.16); color: var(--accent)}
.rep-ic.warn { background: rgba(255, 159, 10, 0.14); color: var(--warn)}
.s-prog { width: 470px !important; gap: 18px !important}
.s-prog .progress { width: 270px !important}
.s-phase { inset-inline-start: 500px !important; width: 558px !important}
.s-phase h4 { display: flex; align-items: center; margin-bottom: 8px !important}
.s-phase .ph { align-items: start !important}
.s-phase p { font-size: 13.5px !important; line-height: 1.42 !important}
.s-phase p.flash { animation: flashIn .8s ease}
.s-host { top: 0; border-radius: 11px}
.s3d-host.fallback.sim { background-image: url(../assets/scene_sim.jpg)}
