
:root{color-scheme:light;font-family:Inter,Segoe UI,Arial,sans-serif;color:#403b3b;background:#ede8e2;font-size:16px}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #403b3b;outline-offset:4px}button{border:0}header{height:88px;background:#ffffff;display:flex;align-items:center;justify-content:space-between;padding:0 32px;border-bottom:1px solid #cfc4ba}.brand{display:flex;gap:13px;align-items:center}.brand-icon{background:#f5f0eb;color:#403b3b;font-size:30px;display:grid;place-items:center;width:45px;height:45px;border-radius:12px}.brand strong{font-size:14px;letter-spacing:1.5px;display:block}.brand span:not(.brand-icon){display:block;font-size:13px;color:#403b3b;margin-top:5px}.head-right{display:flex;align-items:center;gap:22px}.badge{font-size:12px;font-weight:700;letter-spacing:1px;color:#403b3b}.quiet{background:transparent;color:inherit;border:1px solid #cfc4ba;border-radius:7px;padding:9px 13px;font-size:14px}main{display:grid;grid-template-columns:minmax(0,1fr) 365px;min-height:740px}.workspace{position:relative;background:radial-gradient(ellipse at 43% 58%,#f5f0eb 0%,#f5f0eb 55%,#f5f0eb 100%);color:#403b3b;overflow:hidden;min-height:740px}.scene-title{position:absolute;top:29px;left:32px;z-index:2;pointer-events:none}.eyebrow{font-size:12px;font-weight:700;letter-spacing:1.7px;color:#403b3b}.scene-title .eyebrow{color:#403b3b}h1{font-size:clamp(25px,2.3vw,36px);font-weight:500;letter-spacing:-1px;line-height:1.2;margin:12px 0}.scene-title p{color:#403b3b;font-size:14px;margin:0}#viewport{position:absolute;inset:0}canvas{display:block;width:100%;height:100%;touch-action:none}#loading{position:absolute;top:50%;left:15%;right:15%;text-align:center;color:#403b3b;z-index:4}#labels{position:absolute;inset:0;pointer-events:none;overflow:hidden}.label{position:absolute;font-size:12px;white-space:nowrap;background:#f5f0eb;color:#403b3b;padding:5px 8px;border:1px solid #cfc4ba;border-radius:4px;transform:translate(-50%,-110%)}.label:after{content:'';position:absolute;bottom:-12px;left:50%;width:1px;height:11px;background:#ede8e2}.views{position:absolute;top:195px;left:32px;right:24px;display:flex;gap:7px;flex-wrap:wrap;z-index:3}.views button{font-size:13px;background:#f5f0eb;color:#403b3b;padding:9px 12px;border:1px solid #cfc4ba;border-radius:6px}.views button.active{background:#ede8e2;color:#403b3b;border-color:#cfc4ba}.scene-bottom{position:absolute;bottom:22px;left:30px;right:25px;display:flex;justify-content:space-between;align-items:center;color:#403b3b;font-size:12px}.legend{position:absolute;bottom:72px;left:30px;display:flex;gap:18px;font-size:12px;color:#403b3b}.legend span{display:flex;gap:7px;align-items:center}.legend i{width:16px;height:3px;border-radius:2px;display:inline-block}.orange{background:#ede8e2}.mint{background:#ede8e2}.silver{background:#ede8e2}aside{background:#ffffff;padding:28px 26px}.panel-heading h2{font-size:25px;letter-spacing:-.7px;font-weight:600;margin:9px 0 26px}.control-block{margin-bottom:26px}.control-title{display:flex;gap:12px;align-items:center;margin-bottom:12px}.number{font-size:13px;font-weight:700;width:30px;height:30px;border-radius:7px;background:#ede8e2;display:grid;place-items:center}.orange-text{color:#403b3b}.mint-text{color:#403b3b}h3{font-size:15px;margin:0;font-weight:600}.control-title p{font-size:13px;color:#403b3b;margin:3px 0 0}.gears{display:grid;gap:5px}.front{grid-template-columns:repeat(3,1fr)}.rear{grid-template-columns:repeat(7,1fr)}.gears button{background:#ede8e2;border:1px solid #cfc4ba;border-radius:6px;min-height:43px;color:#403b3b;font-weight:600}.front button[aria-pressed=true]{background:#ede8e2;border-color:#cfc4ba;color:#403b3b}.rear button[aria-pressed=true]{background:#ede8e2;border-color:#cfc4ba;color:#403b3b}.scale{display:flex;justify-content:space-between;font-size:11px;color:#403b3b;margin-top:8px}.ratio-card{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #cfc4ba;border-bottom:1px solid #cfc4ba;padding:16px 0}.ratio-card span{font-size:12px;color:#403b3b;display:block}.ratio-card strong{font-size:27px;font-weight:500;letter-spacing:-1px;display:block;margin-top:3px}.ratio-detail{display:flex;gap:9px;align-items:center}.ratio-detail b{font-size:25px;font-weight:500;color:#403b3b}.ratio-detail span{line-height:1.5;font-size:11px}.footnote{font-size:12px;color:#403b3b;line-height:1.5;margin:12px 0 21px}.crossing{font-size:13px;line-height:1.4;color:#403b3b;background:#ede8e2;padding:10px;border-radius:6px}.play-row{display:flex;gap:8px}.primary{background:#f5f0eb;color:#403b3b;padding:12px;border-radius:7px;flex:1;font-size:14px;font-weight:600}.primary:hover{background:#f5f0eb}.step{background:#ede8e2;color:#403b3b;padding:10px 13px;border-radius:7px}.speed-label{display:flex;justify-content:space-between;font-size:13px;margin:18px 0 8px}.speed-label b{font-weight:500;color:#403b3b}input[type=range]{width:100%;accent-color:#6c5f5f;height:18px}.toggles{display:flex;flex-direction:column;gap:11px;margin-top:17px}.toggles label{font-size:13px;display:flex;align-items:center;gap:8px;cursor:pointer}.toggles input{accent-color:#6c5f5f;width:16px;height:16px;margin:0}.live-status{display:flex;gap:10px;align-items:flex-start;margin-top:18px;padding:13px;background:#ede8e2;border-radius:7px}.status-dot{flex-shrink:0;width:6px;height:6px;background:#f5f0eb;border-radius:50%;margin-top:6px}.live-status p{font-size:13px;line-height:1.5;margin:0;color:#403b3b}.explanation{display:grid;grid-template-columns:1fr 1.2fr 1.2fr 1.2fr;gap:24px;padding:30px 32px;background:#ede8e2;border-top:1px solid #cfc4ba}.explain-intro h2{font-size:22px;letter-spacing:-.5px;margin:9px 0}.small{font-size:12px;color:#403b3b}.explain-step{display:flex;text-align:left;align-items:flex-start;gap:12px;background:transparent;padding:0;color:#403b3b}.explain-step>span{width:26px;height:26px;flex-shrink:0;border:1px solid #cfc4ba;border-radius:50%;display:grid;place-items:center;font-size:12px}.explain-step h3{font-size:14px;line-height:1.4}.explain-step p{font-size:13px;line-height:1.6;color:#403b3b;margin:6px 0 0}.explain-step:hover h3{color:#403b3b}footer{padding:18px 32px;display:flex;justify-content:space-between;gap:20px;font-size:11px;color:#403b3b;line-height:1.5}footer a{color:#403b3b;white-space:nowrap}
@media(min-width:1600px){main{min-height:820px}.workspace{min-height:820px}aside{padding:35px}main{grid-template-columns:minmax(0,1fr) 400px}}
@media(max-width:1050px){header{padding:0 20px}.head-right .badge{display:none}main{grid-template-columns:minmax(0,1fr) 330px}aside{padding:25px 20px}.scene-title{left:22px}.views{left:22px;top:190px}.explanation{grid-template-columns:1fr 1fr}.scene-bottom span{max-width:185px;line-height:1.5}.legend{gap:12px;left:22px}.scene-bottom{left:22px}}
@media(max-width:760px){header{height:74px;padding:0 16px}.brand strong{font-size:11px;letter-spacing:1px}.brand span:not(.brand-icon){font-size:11px}.brand-icon{width:35px;height:35px;font-size:25px}.head-right{gap:0}.head-right button{font-size:12px;padding:8px}main{display:flex;flex-direction:column}.workspace{height:620px;min-height:620px}.scene-title{top:23px;left:20px}h1{font-size:28px}.views{top:175px;left:20px;right:16px}.views button{font-size:12px;padding:8px}.scene-bottom{bottom:16px}.legend{bottom:68px;font-size:11px}.scene-bottom span{font-size:11px;max-width:220px}aside{padding:26px 22px}.panel-heading h2{margin-bottom:22px}.explanation{grid-template-columns:1fr;padding:26px 22px;gap:24px}footer{padding:18px 22px;flex-direction:column;gap:9px}.label{font-size:11px}.scale{font-size:12px}.toggles label,.speed-label{font-size:14px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}