:root{color-scheme:light;font-family:Inter,Segoe UI,system-ui,sans-serif;color:#26352a;background:#f6f5ed;font-synthesis:none;--ink: #26352a;--muted: #5d685a;--border: #dedfd1;--green: #345b43;--paper: #fffef8;--mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}button,select,textarea{font:inherit}button,select{cursor:pointer}button:disabled{cursor:default;opacity:.42}button:focus-visible,select:focus-visible,summary:focus-visible,textarea:focus-visible{outline:2px solid #497450;outline-offset:3px}h1,h2,p{margin:0}.shell{width:min(1360px,calc(100% - 80px));margin-inline:auto}.top{border-bottom:1px solid #e3e2d7;background:#faf9f1}.top-inner,.top-right,.brand,.edition,.heading,.spec,.workspace-head,.workspace-title,.mode,.tool-group,.toolbar,.instruction,.rail-title,.money-line,.money-caption,footer{display:flex;align-items:center}.top-inner{height:76px;justify-content:space-between}.brand{gap:11px}.brand-mark{width:41px;height:41px;position:relative;background:#365c43;border-radius:10px}.brand-mark:before,.brand-mark:after,.brand-mark i,.brand-mark b{content:"";position:absolute;display:block}.brand-mark:before{width:24px;height:2px;background:#e9dfb3;left:8px;top:25px;box-shadow:0 4px #e9dfb3}.brand-mark:after{width:18px;height:11px;border:2px solid #e9dfb3;border-bottom:0;border-radius:16px 16px 0 0;top:13px;left:10px}.brand-mark i,.brand-mark b{width:2px;height:8px;background:#e9dfb3;top:17px;left:16px}.brand-mark b{left:23px}.wordmark{font-size:24px;line-height:1;font-weight:790;letter-spacing:-.075em}.wordmark span{color:#ad7834}.brand-sub,.edition,.kicker,.spec span,.mode,.view-label,.map-pin,.legend,.rail-title small,footer{font-family:var(--mono);font-size:10px;font-weight:650;letter-spacing:.09em}.brand-sub{color:#697462;font-size:8px;margin-top:5px;letter-spacing:.12em}.top-right{gap:18px}.edition{gap:7px;color:#516251}.status-dot{width:7px;height:7px;border-radius:50%;background:#65845b;display:inline-block;flex:0 0 auto}.edition-select select{padding:8px 12px;border:1px solid #dddccf;background:#fdfcf5;color:#354a37;font-size:12px;border-radius:7px;font-weight:650}.heading{justify-content:space-between;gap:18px;margin:32px 0 23px}.kicker{display:flex;align-items:center;gap:8px;color:#49634b;letter-spacing:.16em}.small-rule{width:20px;height:2px;background:#b58f50}h1{font-family:Georgia,Times New Roman,serif;font-weight:600;font-size:clamp(34px,4.4vw,62px);line-height:1.01;letter-spacing:-.063em;margin:7px 0 9px}.heading p{color:#5e6858;font-size:14px;line-height:1.45}.spec{align-self:end;margin-bottom:1px;border:1px solid var(--border);border-radius:8px;min-width:210px;background:#faf9f1}.spec>div{padding:10px 14px;flex:1}.spec>div+div{border-left:1px solid var(--border)}.spec span{display:block;font-size:9px;color:#676f61;margin-bottom:3px}.spec strong{font-size:13px;white-space:nowrap}.layout{display:grid;grid-template-columns:minmax(0,1fr) 304px;align-items:start;gap:18px}.card{background:var(--paper);border:1px solid var(--border);border-radius:13px;box-shadow:0 2px 3px #334c2c09}.workspace{overflow:hidden}.workspace-head{min-height:53px;padding:0 16px;justify-content:space-between}.workspace-title{gap:9px}.workspace-title h2,.rail-title h2{font-size:15px;font-weight:750;letter-spacing:-.02em}.site-icon{width:17px;height:17px;border:1px solid #6e8b6e;border-radius:4px;position:relative}.site-icon:before,.site-icon:after{content:"";position:absolute;inset:7px 2px auto;border-bottom:1px solid #6e8b6e;transform:rotate(-38deg)}.site-icon:after{transform:rotate(38deg)}.mode{gap:6px;border:1px solid #e0e7d7;background:#edf2e4;padding:5px 8px;border-radius:5px;color:#49634b}.mode.running{background:#fbf0d8;color:#735322;border-color:#ead9ad}.mode.running .status-dot{background:#b18335}.mode.failed{background:#faeae2;border-color:#efd6c9;color:#914934}.mode.failed .status-dot{background:#bd694f}.viewport{position:relative;height:clamp(390px,56vh,680px);background:#b6cfba;overflow:hidden}.viewport canvas{display:block;touch-action:none;-webkit-user-select:none;user-select:none;cursor:crosshair}.viewport[data-tool=move] canvas{cursor:grab}.viewport[data-tool=move].dragging canvas{cursor:grabbing}.viewport[data-tool=delete] canvas{cursor:cell}.viewport.testing canvas{cursor:default}.view-label,.map-pin,.legend,.pointer-info{position:absolute;pointer-events:none}.view-label{left:13px;top:12px;border:1px solid #eef2d994;border-radius:5px;background:#f5f4dfce;color:#405846;padding:6px 8px}.view-label span{width:8px;height:8px;display:inline-block;border:1px solid #6e846f;border-radius:50%;margin-right:3px}.map-pin{transform:translate(-50%,-100%);white-space:nowrap;color:#3b503e;padding:4px 6px;border-radius:4px;background:#f6edcbe8;box-shadow:0 1px 4px #26352a26;font-size:9px}.map-pin span{width:5px;height:5px;background:#a97533;display:inline-block;margin:0 1px 1px 0}.legend{right:12px;top:12px;display:flex;align-items:center;gap:6px;border-radius:5px;background:#fbf7e3e8;color:#405846;padding:8px}.legend span{border-bottom:3px solid;padding-bottom:2px}.legend .stress-low{border-color:#459774}.legend .stress-tension{border-color:#eca431}.legend .stress-compression{border-color:#70a8e4}.legend .stress-bending{border-color:#c87de1}.legend .stress-overload{border-color:#cb3529}.pointer-info{padding:5px 8px;border-radius:4px;background:#253e32;color:#fff6d8;font:11px var(--mono);transform:translate(-50%,-100%);white-space:nowrap}.sim-progress{position:absolute;inset:auto 0 0;height:4px;background:#eef1da8a}.sim-progress div{width:0;height:100%;background:#e7ab48}.viewport-error{position:absolute;inset:40% 12% auto;background:var(--paper);border:1px solid var(--border);padding:18px;border-radius:9px;text-align:center}.toolbar{min-height:55px;justify-content:space-between;flex-wrap:wrap;gap:6px;padding:7px 12px}.tool-group{gap:3px}.tool{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;padding:0 9px;border:1px solid transparent;border-radius:6px;font-size:12px;font-weight:630;background:transparent;color:#566154}.tool:not(:disabled):hover,.tool.active{background:#edf1e4;color:#395b40}.tool.active{border-color:#dce5d4}.toggle{margin-left:3px}.toggle.active{background:#f3f5ec}.divider{height:21px;width:1px;background:#e5e6da;margin:0 3px}.icon-only{font-size:20px;width:34px;padding:0}.tool-icon{position:relative;display:inline-grid;place-items:center;width:13px;height:13px}.tool-build:before,.tool-build:after{content:"";position:absolute}.tool-build:before{width:11px;height:1px;background:currentColor;transform:rotate(-43deg)}.tool-build:after{width:3px;height:3px;border:1px solid currentColor;border-radius:50%;left:0;bottom:0;box-shadow:7px -7px 0 -1px #edf1e4,7px -7px 0 currentColor;background:#edf1e4}.plain-icon{font-size:15px;line-height:1}.tool-delete:before{content:"";width:10px;height:6px;border:1px solid currentColor;transform:rotate(-38deg);border-radius:2px}.grid-icon{border:1px solid currentColor;width:11px;height:11px;background:linear-gradient(to right,transparent 44%,currentColor 46%,currentColor 54%,transparent 56%),linear-gradient(to bottom,transparent 44%,currentColor 46%,currentColor 54%,transparent 56%);opacity:.82}.stress-icon{width:12px;height:9px;background:linear-gradient(90deg,#5f966f 30%,#d6aa54 32% 64%,#c9785f 66%);clip-path:polygon(0 70%,28% 70%,28% 35%,62% 35%,62% 0,100% 0,100% 100%,0 100%)}.instruction{border-top:1px solid #e6e8dc;background:#f7f8ef;min-height:41px;padding:7px 14px;gap:8px;color:#5c6957;font-size:11px}.instruction>span:first-child{color:#608765;font-size:17px;line-height:1}.instruction p{flex:1}#joint-count{font:10px var(--mono);white-space:nowrap}.rail{display:grid;gap:13px}.rail .card{padding:15px}.rail-title{justify-content:space-between;gap:6px}.rail-title small{font-size:9px;color:#687264}.budget-icon{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#edf0e1;color:#6a805e;font:700 14px Georgia,serif}.money-line{align-items:baseline;gap:6px;margin-top:9px}.money-line strong{font-size:31px;font-weight:730;letter-spacing:-.065em;line-height:1.08;color:#294634}.money-line>span{font-size:13px;font-weight:600;color:#667461}.meter{margin:10px 0 7px;height:7px;border-radius:15px;overflow:hidden;background:#e9ecdd}.meter div{height:100%;background:#709264;border-radius:inherit;transition:width .17s;width:0}.over .meter div{background:#b66350}.over .money-line strong,.over #remaining{color:#a64f3b}.money-caption{justify-content:space-between;color:#5c6957;font-size:11px;font-weight:600;gap:4px}.primary{width:100%;margin-top:14px;border:1px solid #3b6046;background:#365b43;color:#fffdf2;min-height:43px;border-radius:7px;display:flex;align-items:center;padding:0 10px;gap:8px;font-size:13px;font-weight:720}.primary:not(:disabled):hover{background:#284e36}.primary span:first-child{color:#e9d6a4;font-size:11px;padding:0 2px}.primary kbd{color:#f2f1d9;margin-left:auto;font:9px var(--mono);border:1px solid #d0debf65;border-radius:4px;padding:3px 4px}.material-list{display:grid;gap:6px;margin-top:11px}.material{display:grid;grid-template-columns:31px minmax(0,1fr) auto;align-items:center;gap:8px;width:100%;text-align:left;padding:6px 8px;min-height:49px;border:1px solid #e5e5d8;border-radius:7px;color:#39463b;background:#fbfaf2}.material.active{border-color:#859b7b;background:#edf1e4}.material:not(:disabled):hover{border-color:#78916f}.material strong,.material small{display:block}.material strong{font-size:12px}.material small{color:#63715f;margin-top:2px;font-size:10px}.material-price{text-align:right;font:700 12px var(--mono)}.material-price small{font:9px var(--mono)}.swatch{display:grid;place-items:center;width:30px;height:30px;border-radius:5px;background:color-mix(in srgb,var(--material) 18%,#f6f2df)}.swatch:before{content:"";width:18px;height:6px;border-radius:2px;transform:rotate(-31deg);background:var(--material);box-shadow:0 2px #26352a25}.material[data-material=road] .swatch:before{background:linear-gradient(#647986 43%,#e8dab6 45% 57%,#647986 59%)}.field-note{padding:9px 12px;border-radius:7px;border:1px dashed #d8dfce;background:#f3f4e8;color:#526a51}.field-note summary{display:flex;align-items:center;gap:8px;list-style:none;cursor:pointer;font-size:12px;font-weight:680}.field-note summary::-webkit-details-marker{display:none}.field-note summary span:first-child{display:grid;place-items:center;width:17px;height:17px;border:1px solid #aab89d;border-radius:50%;font:12px Georgia,serif}.field-note summary:after{content:"+";margin-left:auto;font-size:16px;font-weight:400;line-height:1}.field-note[open] summary:after{content:"−"}.field-note p,.result-card p{margin-top:7px;font-size:12px;line-height:1.45}.result-card{background:#f3f8ed}.result-card.failed{background:#fdf3ea}.share{margin-top:8px;font-size:12px;color:#31563b;background:#fcfff6;font-weight:700;padding:6px 9px;border:1px solid #bdcdb6;border-radius:5px}#share-text{width:100%;margin-top:8px;font-size:11px}footer{justify-content:space-between;margin-block:19px 18px;color:#697564;font-size:9px;gap:8px}footer b{color:#a58245;padding-inline:3px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border-width:0}@media(max-width:985px){.shell{width:calc(100% - 40px)}.layout{grid-template-columns:minmax(0,1fr) 248px;gap:12px}.toolbar,.tool{padding-inline:6px}}@media(max-width:720px){.shell{width:calc(100% - 24px)}.top-inner{height:59px}.top-right{gap:6px}.brand-mark{width:37px;height:37px}.edition,.brand-sub{display:none}.edition-select select{max-width:min(55vw,235px)}.heading{margin:20px 0 14px;align-items:center}.spec{display:none}.layout{grid-template-columns:minmax(0,1fr)}.viewport{height:clamp(250px,78vw,470px)}.rail{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.rail .card{padding:10px}.rail-title h2{font-size:13px}.material{grid-template-columns:23px minmax(0,1fr) auto;padding-inline:4px;gap:4px}.swatch{width:23px;height:23px}.swatch:before{width:14px}.material small{font-size:9px}.money-line strong{font-size:25px}.money-line>span{font-size:11px}.money-caption{font-size:9px}.field-note,.result-card{grid-column:1 / -1}}@media(max-width:400px){.toolbar{justify-content:flex-start}.secondary-tools{margin-left:auto}.toolbar .tool{padding:0 4px;gap:3px}.toolbar .tool-icon,.divider{display:none}.icon-only{width:24px}.instruction{padding-inline:8px}#joint-count,.rail-title small{display:none}}.heading p{font-size:1rem}.workspace-actions,.result-actions{display:flex;align-items:center;gap:8px}.workspace-actions{flex-wrap:wrap;justify-content:end}.quiet-button{color:#34583f;background:#f1f4e8;border:1px solid #d6e0cb;padding:6px 9px;border-radius:6px;font-size:.8125rem;font-weight:680}.quiet-button:hover,.quiet-button[aria-pressed=true]{background:#e4edda;border-color:#9aac92}.lesson-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 15px;border-top:1px solid #e4e8db;background:#f0f3e7;color:#3e5842}.lesson-banner strong{font-size:.8125rem}.lesson-banner p{margin-top:3px;font-size:.875rem;line-height:1.35}.lesson-banner button{flex:0 0 auto;background:#fbfcf4}.report-marker{position:absolute;pointer-events:none;width:27px;height:27px;border:3px solid #ffdf92;background:#dfb96e33;border-radius:50%;box-shadow:0 0 0 2px #305042,0 0 0 6px #edfae34a;transform:translate(-50%,-50%)}.result-card p{font-size:.875rem}.result-card .result-comparison{color:#365840;font-weight:700}.result-card .best-detail{color:#4c604f;font-size:.8125rem}.test-report{margin-top:12px;border-top:1px solid #cbd6c6;padding-top:9px}.test-report summary{cursor:pointer;font-size:.875rem;font-weight:700}.test-report ul{padding-left:17px;margin:8px 0 0}.test-report li{font-size:.8125rem;line-height:1.45;margin-top:5px}.test-report #suggestion{color:#475d4a}.test-report button{margin-top:8px}.result-actions{flex-wrap:wrap;gap:0 7px}.result-actions button{min-height:34px}.primary.mobile-test{display:none}@media(max-width:720px){.heading p{font-size:.9375rem}.viewport{height:clamp(260px,82vw,475px)}.workspace-head{padding-inline:10px;gap:8px}.lesson-banner{padding:8px 10px}.lesson-banner button{font-size:.75rem}.tool{min-height:40px}.material{min-height:46px}.test-report button,.result-actions button{min-height:40px}#simulate,#joint-count{display:none}.primary.mobile-test{display:block;width:auto;min-height:40px;margin:0;flex:0 0 auto;font-size:.8125rem}}@media(max-width:360px){.workspace-title h2,.workspace-actions .quiet-button{font-size:.75rem}.workspace-actions{gap:4px}.workspace-title{gap:5px}.workspace-title .site-icon{width:14px}}#game-home{color:inherit;text-decoration:none}#game-home:focus-visible{outline:2px solid #497450;outline-offset:5px;border-radius:4px}.static-note{padding-top:1rem}
