:root{color-scheme:dark;--bg:#171b20;--panel:#21262c;--border:#3b4149;--muted:#a6adb6;--yellow:#ffd02f;--ink:#15191d;--white:#f6f8fa}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--white);font-family:Arial,Helvetica,sans-serif;font-size:16px;line-height:1.4}.app{max-width:1450px;margin:0 auto;padding:0 40px}button,select,input{font:inherit}button,select{touch-action:manipulation}button,a,select,input{outline-offset:5px}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #7de0ff}button{cursor:pointer}button:disabled,select:disabled,input:disabled{cursor:not-allowed;opacity:.55}.topbar{height:104px;display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{display:flex;align-items:center;gap:22px;min-width:0}.brand img{width:176px;height:56px;object-fit:contain;background:white;padding:5px 7px}.brand-divider{height:34px;width:1px;background:#62686c}.brand-sub{font-size:12px;line-height:1.5;letter-spacing:2px;font-weight:700}.business-link{font-size:14px;color:#d3d8df;text-decoration:none;border-bottom:1px solid #6f747b;padding:5px 0}.business-link span{margin-left:6px}.game-shell{display:grid;grid-template-columns:minmax(0,1fr) 312px;border:1px solid var(--border);background:var(--panel);box-shadow:0 20px 55px #0002}.play-column{min-width:0;border-right:1px solid var(--border)}.scene-top{height:88px;display:flex;align-items:center;justify-content:space-between;padding:15px 25px;gap:10px}.eyebrow{color:var(--muted);font-size:12px;font-weight:700;letter-spacing:1.7px}h1{font-size:24px;line-height:1.25;margin:4px 0 0;letter-spacing:-.7px}.status{font-size:12px;font-weight:700;letter-spacing:1.2px;white-space:nowrap;border:1px solid #58626a;border-radius:2px;padding:7px 9px;color:#ced8dd}.status.running{color:var(--yellow);border-color:#9a811e}.canvas-wrap{position:relative;background:#b6d9df;overflow:hidden}canvas{width:100%;height:auto;display:block;image-rendering:pixelated;aspect-ratio:5/3}.scene-instruction{position:absolute;top:17px;left:0;right:0;text-align:center;font-size:12px;font-weight:700;color:#456372;display:flex;align-items:center;justify-content:center;gap:7px}.keycap{border:1px solid #7397a1;padding:0 4px;border-radius:2px;line-height:1.4}.sep{opacity:.4;padding:0 3px}.scene-bottom{position:absolute;bottom:13px;left:18px;right:18px;display:flex;justify-content:space-between;color:#f5e8c9;font-size:11px;letter-spacing:1.5px;font-family:monospace}.hud{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:0;padding:23px 25px 18px;background:#1d2228}.hud>div{padding:0 22px;border-left:1px solid var(--border)}.hud>div:first-child{border:0;padding-left:0}.hud>div:last-child{padding-right:0}.stat-label{display:block;color:var(--muted);font-size:12px;letter-spacing:1.2px;font-weight:700}.hud strong{display:block;font-size:28px;letter-spacing:-1px;margin-top:5px;line-height:1.15}.hud strong small{font-size:18px;color:var(--muted);font-weight:400;letter-spacing:0;margin-left:3px}.stat-detail{display:block;font-size:12px;color:var(--muted);margin-top:7px}.progress-track{height:5px;background:#45494c;margin-top:14px;width:90%}#progressBar{height:100%;background:var(--yellow);width:0;transition:width .25s}.game-message{min-height:45px;padding:12px 25px;font-size:13px;color:#cbd1d7;border-top:1px solid var(--border);background:#242a31}.controls{padding:26px 23px 20px}.section-title{display:flex;gap:9px;align-items:center;margin-bottom:14px}.section-title h2{font-size:17px;margin:0;letter-spacing:-.3px}.number{font-size:12px;color:var(--yellow);font-family:monospace}.crew-title{margin-top:26px}select{color:var(--white);background-color:#2c333b;width:100%;padding:12px 34px 12px 13px;border:1px solid #56606b;border-radius:3px;font-size:14px;min-height:46px}.mode-tabs{display:grid;grid-template-columns:1.16fr 1fr 1fr;gap:4px;background:#171b20;padding:4px;margin-bottom:12px;border-radius:3px}.mode{border:0;background:transparent;color:#c3c9cf;padding:9px 3px;font-size:12px;min-height:37px;border-radius:2px}.mode.active{background:var(--yellow);color:var(--ink);font-weight:700}.field-label{display:block;font-size:12px;letter-spacing:1px;color:var(--muted);margin:12px 0 6px}.class-note{font-size:12px;color:var(--muted);margin:5px 0 0}.crew-option{display:flex;align-items:center;gap:9px;margin:17px 0 20px;cursor:pointer;font-size:14px;min-height:38px}.crew-option input{accent-color:var(--yellow);width:17px;height:17px;flex-shrink:0}.crew-option small{display:block;font-size:12px;color:var(--muted);margin-top:2px}.crew-plus{margin-left:auto;color:var(--yellow);font-family:monospace;font-size:16px}.estimate{background:#171b20;padding:16px 14px;display:grid;grid-template-columns:1fr 1fr;gap:8px 14px;border-left:3px solid var(--yellow)}.estimate strong{font-size:21px;color:var(--yellow);display:block;margin-top:5px}.estimate .stat-label{font-size:10px;letter-spacing:1px}.estimate p{grid-column:1/-1;font-size:12px;color:var(--muted);margin:3px 0 0}.actions{display:flex;gap:8px;margin-top:21px}.primary{border:0;background:var(--yellow);color:var(--ink);font-weight:800;letter-spacing:.1px;padding:13px 15px;border-radius:3px;min-height:48px}.primary:hover{background:#ffdc61}.primary span{font-size:14px;margin-right:6px}#start{flex:1}.reset{width:48px;border:1px solid #65717d;background:#303841;color:white;font-size:28px;line-height:1;border-radius:3px}.reset:hover{background:#424d58}.keyboard-hint{text-align:center;font-size:11px;color:var(--muted);margin:12px 0 0}.keyboard-hint span{padding:0 4px}footer{display:flex;justify-content:space-between;gap:20px;padding:19px 0 23px;font-size:12px;color:#939ba4}.footer-mark{font-family:monospace;letter-spacing:1px;color:#a5adb4;white-space:nowrap}.result{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:min(340px,87%);padding:23px;background:#171b20f5;text-align:center;border:2px solid var(--yellow);box-shadow:8px 8px 0 #171b2030}.result-icon{font-size:26px;color:var(--yellow);line-height:1.3}.result h2{font-size:30px;letter-spacing:-1px;margin:4px 0}.result p{font-size:14px;color:#cbd1d7;margin:9px 0 17px}.result .primary{width:100%}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0)}[hidden]{display:none!important}
@media(min-width:1450px){.app{padding-top:20px}.topbar{height:115px}}
@media(max-width:1000px){.app{padding:0 22px}.game-shell{grid-template-columns:minmax(0,1fr) 284px}.controls{padding:22px 18px}.scene-top{padding:15px 18px}.hud{padding:20px 18px}.hud>div{padding:0 12px}.hud strong{font-size:24px}.brand img{width:145px}.scene-instruction{font-size:11px;gap:5px}}
@media(max-width:760px){.app{padding:0 12px}.topbar{height:69px}.brand{gap:10px}.brand img{width:114px;height:37px;padding:4px}.brand-divider{height:27px}.brand-sub{font-size:9px;letter-spacing:1.3px}.business-link{font-size:12px;white-space:nowrap}.game-shell{grid-template-columns:1fr}.play-column{border-right:0}.scene-top{height:63px;padding:10px 14px}.eyebrow{font-size:10px;letter-spacing:1.3px}h1{font-size:21px;margin-top:2px}.status{font-size:9px;padding:6px 7px;letter-spacing:.6px}.canvas-wrap{border-top:1px solid #91b7c2}canvas{aspect-ratio:5/3}.scene-instruction{top:10px;font-size:10px;gap:5px}.scene-bottom{bottom:8px;left:11px;right:11px;font-size:8px;letter-spacing:.8px}.hud{padding:13px 14px 12px;grid-template-columns:1.05fr 1.1fr 1fr}.hud>div{padding:0 13px}.stat-label{font-size:9px;letter-spacing:.7px}.hud strong{font-size:24px;margin-top:3px}.hud strong small{font-size:15px}.stat-detail{font-size:10px;margin-top:5px}.progress-track{margin-top:11px;width:100%;height:4px}.game-message{font-size:12px;min-height:37px;padding:9px 14px}.controls{padding:16px 14px 14px;border-top:1px solid var(--border);display:grid;grid-template-columns:1fr 1fr;gap:10px 12px}.section-title{margin:0;gap:6px}.section-title h2{font-size:14px}.number{font-size:10px}.crew-title{margin:0;grid-column:2;grid-row:1}#structure{grid-column:1;grid-row:2}select{font-size:13px;min-height:42px;padding:9px 24px 9px 9px}.mode-tabs{grid-column:2;grid-row:2;margin:0;padding:3px;gap:1px}.mode{font-size:10px;padding:7px 1px;min-height:34px}#model{grid-column:2;grid-row:3}.crew-option{grid-column:1;grid-row:3;font-size:12px;gap:6px;margin:0}.crew-option input{width:15px;height:15px}.crew-option small{font-size:10px}.crew-plus{display:none}#robotClassWrap{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:4px 12px}.field-label{margin:0;font-size:10px}.class-note{margin:0;font-size:10px;grid-column:1/-1}.estimate{grid-column:1;grid-row:4;padding:8px 9px;gap:2px 8px;align-self:stretch}.estimate .stat-label{font-size:8px;letter-spacing:.5px}.estimate strong{font-size:16px;margin-top:2px}.estimate p{display:none}.actions{grid-column:2;grid-row:4;margin:0;gap:5px;align-self:stretch}.primary{min-height:48px;font-size:13px;padding:10px}.reset{width:36px;font-size:26px;flex-shrink:0}.keyboard-hint{display:none}body:has(#robotClassWrap:not([hidden])) .estimate,body:has(#robotClassWrap:not([hidden])) .actions{grid-row:5}.result{padding:14px;max-width:275px}.result h2{font-size:25px}.result p{font-size:12px;margin:5px 0 10px}.result-icon{font-size:19px}footer{font-size:10px;padding:12px 1px 16px}.footer-mark{display:none}}
@media(prefers-reduced-motion:reduce){.progress-track>div{transition:none}}
.brand-lockup{background:#f5f6f2;color:#172e4d;display:flex;align-items:center;padding:5px 10px;gap:8px}.brand-lockup #brandLogo{width:25px;height:44px;padding:0;background:transparent;object-fit:contain}.brand-lockup>span{font-size:24px;font-weight:900;letter-spacing:.3px;line-height:1.05}.brand-lockup small{display:block;font-size:9px;letter-spacing:3px;margin-top:4px}@media(max-width:760px){.brand-lockup{padding:4px 6px;gap:5px}.brand-lockup #brandLogo{width:16px;height:29px}.brand-lockup>span{font-size:16px}.brand-lockup small{font-size:6px;letter-spacing:2px;margin-top:3px}}
/* Compact labels stay legible on small screens. */
.mode,.estimate .stat-label,.keyboard-hint{font-size:12px}.scene-bottom{font-size:12px}@media(max-width:760px){.eyebrow,.status,.stat-label,.stat-detail,.number,.mode,.field-label,.class-note,.crew-option small,.estimate .stat-label,footer{font-size:12px}.status{letter-spacing:0}.scene-instruction{display:none}.scene-bottom{font-size:10px}.mode-tabs{grid-template-columns:1.2fr 1fr 1fr}.mode{font-size:11px}.hud>div{padding-left:10px;padding-right:10px}.stat-label{letter-spacing:0;font-size:10px}.estimate .stat-label{font-size:10px}.scene-top .eyebrow{font-size:10px}}
@media(max-width:760px){.scene-bottom,.mode,.stat-label,.estimate .stat-label,.scene-top .eyebrow{font-size:12px}.scene-bottom{letter-spacing:0}.mode{letter-spacing:-.4px}.estimate .stat-label{line-height:1.15}.stat-label{line-height:1.2}}

/* Weight-first robot choices use the full phone width. */
.controls[data-mode="robot"] #model{font-size:12px}
@media(max-width:760px){.controls[data-mode="robot"] #model{grid-column:1/-1;grid-row:3;font-size:13px}.controls[data-mode="robot"] #robotNote{grid-column:1/-1;grid-row:4;margin:0}.controls[data-mode="robot"] .crew-option{grid-column:1/-1;grid-row:5}.controls[data-mode="robot"] .estimate,.controls[data-mode="robot"] .actions{grid-row:6}}
