:root{font-family:Inter,"PingFang SC","Microsoft YaHei",sans-serif;color:#edf4f6;background:#081017;color-scheme:dark;--cyan:#66e3e9;--muted:#8395a1;--line:#20323d}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 72% 40%,#142730 0,transparent 53%),#081017}button,a,input{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}button:disabled{cursor:wait;opacity:.45}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,#scene:focus-visible{outline:2px solid var(--cyan);outline-offset:5px}header{height:90px;padding:0 5vw;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{font-size:13px;letter-spacing:2px;display:flex;align-items:center;gap:15px}.brand-mark{color:#081017;background:var(--cyan);padding:9px 7px;font-weight:850;letter-spacing:-1px}.edition,.eyebrow,.spec,.view-top,.view-bottom,footer{font:11px/1.5 ui-monospace,SFMono-Regular,monospace;letter-spacing:1.5px}.edition{color:var(--muted)}main{max-width:1560px;margin:auto;padding:25px 5vw 20px;display:grid;grid-template-columns:30% 70%;align-items:center}.intro{align-self:center;padding:25px 20px 30px 0}.eyebrow{color:var(--cyan);margin-bottom:26px}h1{font-size:clamp(34px,4vw,64px);font-weight:650;letter-spacing:-2px;line-height:1.22;margin:0 0 22px}h1 span{color:var(--cyan)}.lede{color:#a9b8c0;font-size:14px;line-height:1.9}.rule{height:1px;background:var(--line);max-width:240px;margin:34px 0 17px}.spec{display:flex;max-width:240px;justify-content:space-between;color:var(--muted)}.spec span{color:var(--cyan)}.chapter{display:flex;gap:16px;max-width:295px;margin-top:40px}.chapter>span{font:30px ui-monospace,monospace;color:var(--cyan);opacity:.6}h2{font-size:16px;font-weight:550;margin:0 0 10px}.chapter p{color:var(--muted);font-size:12px;line-height:1.9;margin:0;min-height:69px}.note{font-size:10px;line-height:1.8;color:#788b96;max-width:270px;margin-top:35px}.viewer{position:relative;height:min(72vh,790px);min-height:470px;overflow:hidden;border-left:1px solid var(--line)}#scene{position:absolute;inset:0;touch-action:none}canvas{display:block;width:100%;height:100%}#loading{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);font-size:13px;color:var(--cyan);pointer-events:none;background:#081017d9;padding:16px 24px;max-width:85%;text-align:center}.view-top,.view-bottom{position:absolute;left:25px;right:0;display:flex;justify-content:space-between;align-items:center;pointer-events:none;color:var(--muted);font-size:10px}.view-top{top:6px}.view-top button{pointer-events:auto;border:1px solid var(--line);background:#102029;padding:9px 12px;font-size:10px}.view-top i{display:inline-block;width:5px;height:5px;border-radius:50%;background:var(--cyan);margin-right:7px}.view-bottom{bottom:10px}#readout{color:var(--cyan)}#labels{position:absolute;inset:0;pointer-events:none}.label{position:absolute;background:#071017df;border-left:2px solid var(--cyan);padding:5px 8px;font-size:10px;color:#c9e1e6;white-space:nowrap;opacity:0;transition:opacity .2s;box-shadow:0 2px 12px #0005}.transport{grid-column:1/-1;border-top:1px solid var(--line);padding-top:20px;margin-top:16px}.transport-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;font-size:12px}.transport-top button{border:1px solid var(--line);background:#11212b;padding:10px 18px}.transport-top button:first-child{background:var(--cyan);color:#081017;border-color:var(--cyan);font-weight:650}.transport-top label{color:var(--muted)}output{color:var(--cyan);margin-left:14px;font:12px ui-monospace,monospace;display:inline-block;min-width:35px}input[type=range]{appearance:none;width:100%;height:3px;margin:10px 0 22px;background:linear-gradient(to right,var(--cyan) var(--progress,0%),#263944 var(--progress,0%));cursor:ew-resize}input[type=range]::-webkit-slider-thumb{appearance:none;border:3px solid #081017;background:var(--cyan);width:17px;height:17px;box-shadow:0 0 0 1px var(--cyan);border-radius:50%}input[type=range]::-moz-range-thumb{background:var(--cyan);border:3px solid #081017;width:12px;height:12px;border-radius:50%}.stages{display:flex;justify-content:space-between;gap:8px}.stages button{border:0;background:transparent;color:var(--muted);padding:9px 0;font-size:11px;text-align:left}.stages b{font:10px ui-monospace,monospace;margin-right:9px}.stages button.active{color:var(--cyan)}footer{border-top:1px solid var(--line);padding:20px 5vw;display:flex;justify-content:space-between;color:#657c89;font-size:9px;gap:20px}@media(max-width:760px){header{height:66px}.edition{font-size:8px;letter-spacing:.5px}main{padding-top:18px;grid-template-columns:1fr}.intro{padding:0;position:relative;display:flex;gap:20px;align-items:center}.eyebrow{font-size:9px;margin:0;position:absolute;top:0}h1{font-size:27px;letter-spacing:-1px;margin:25px 0 8px;min-width:170px}.lede,.rule,.spec,.note{display:none}.chapter{margin:23px 0 0;gap:10px}.chapter>span{font-size:18px}.chapter h2{font-size:12px}.chapter p{font-size:10px;line-height:1.7;min-height:48px}.viewer{border-left:0;height:57vh;min-height:370px}.view-top,.view-bottom{left:0;font-size:8px}.view-top>span{display:none}.view-top{justify-content:flex-end}.view-top button{font-size:9px}.transport{margin-top:7px;padding-top:12px}.transport-top{margin-bottom:15px;font-size:10px}.transport-top button{padding:9px 11px;font-size:10px}.stages button{font-size:10px}.stages b{margin-right:3px}footer{font-size:8px;letter-spacing:.3px}.label{font-size:9px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}.label{transition:none}}
body.embed header,body.embed .intro,body.embed footer{display:none}body.embed main{display:block;padding:16px 22px;max-width:none}body.embed .viewer{height:calc(100dvh - 170px);min-height:300px;border:0}body.embed .view-top,body.embed .view-bottom{left:0}body.embed .transport{margin-top:8px;padding-top:14px}

.view-top{gap:8px;flex-wrap:wrap}.view-top button[aria-pressed="true"]{color:#91e9ef;border-color:#91e9ef}

/* ===== embed mode (homepage hero): transparent, chrome-free, large model, minimal floating controls ===== */
html.embed,html.embed body{background:transparent!important;color-scheme:normal}
body.embed main{padding:0;display:flex;flex-direction:column;align-items:stretch;height:100dvh}
body.embed .viewer{flex:1;height:auto;min-height:260px;border:0;overflow:visible}
body.embed #scene,body.embed #scene canvas{touch-action:pan-y!important}
body.embed .view-top{top:4px;right:6px;left:auto;justify-content:flex-end}
body.embed .view-top>span{display:none}
body.embed .view-top button{white-space:nowrap;background:rgba(8,16,23,.28);border:1px solid rgba(102,227,233,.22);color:#9fb3be;padding:6px 10px;font-size:10px;backdrop-filter:blur(4px)}
body.embed .view-top button:hover{color:#dff;border-color:rgba(102,227,233,.6)}
body.embed .view-bottom{display:none}
body.embed #loading{background:transparent}
body.embed .label{background:rgba(7,16,23,.6)}
body.embed .transport{flex:none;margin:0 auto 6px;padding:8px 14px 4px;border:0;width:min(640px,100%);display:grid;grid-template-columns:auto 1fr auto auto;grid-template-areas:"play range pct asm" "stg stg stg stg";column-gap:12px;align-items:center;background:linear-gradient(90deg,transparent,rgba(8,16,23,.42) 12%,rgba(8,16,23,.42) 88%,transparent);border-radius:2px}
body.embed .transport-top{display:contents}
body.embed #play{grid-area:play}
body.embed .transport-top label{grid-area:pct;font-size:0;color:var(--muted)}
body.embed .transport-top label output{font-size:11px;margin:0;min-width:32px}
body.embed #assemble{grid-area:asm}
body.embed .transport-top button,body.embed .transport-top button:first-child{background:transparent;border:1px solid rgba(102,227,233,.3);color:var(--cyan);padding:5px 10px;font-size:11px;font-weight:500}
body.embed .transport-top button:first-child{background:rgba(102,227,233,.12)}
body.embed input[type=range]{grid-area:range;margin:0;height:2px}
body.embed .stages{grid-area:stg;justify-content:center;gap:18px}
body.embed .stages button{padding:4px 0;font-size:10.5px}
@media(max-width:760px){body.embed .transport{grid-template-columns:auto 1fr auto;grid-template-areas:"play range pct" "stg stg asm";column-gap:10px;padding:6px 6px 2px}body.embed .stages{justify-content:flex-start;gap:10px}body.embed .stages b{display:none}body.embed .view-top button{padding:5px 8px;font-size:9px}}
