:root{color-scheme:light;--paper:#f4efe3;--ink:#252c25;--muted:#77786b;--line:#ded7c7;--amber:#a55d12;--dark:#283c34;--green:#567f6b}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:14px/1.45 system-ui,-apple-system,sans-serif}header{height:76px;display:flex;align-items:center;justify-content:space-between;padding:0 24px;border-bottom:1px solid var(--line)}.brand,.header-right{display:flex;align-items:center;gap:14px}.mark{color:#a55d12;font-size:46px;line-height:1}.brand small,.eyebrow,.section-heading span,.metric small{font-size:10px;font-weight:750;letter-spacing:.15em;color:#77786b}.brand h1{font:600 26px/1.2 Georgia,serif;margin:2px 0}.brand h1 span{font-size:16px;font-weight:400;color:#77786b}.live{font-size:11px;letter-spacing:.12em;color:#4c765c;font-weight:700}button,select{font:inherit;color:inherit;background:#f9f5eb;border:1px solid #d4cbbc;border-radius:5px;padding:8px 12px;cursor:pointer}button:hover{background:#e9e1cf}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #a55d12;outline-offset:2px}button.selected{background:#e2c79c;border-color:#c89958}button.primary{background:#344e40;color:#fff;border-color:#344e40;font-weight:700;flex:1}.primary:hover{background:#456650}main{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:12px;padding:12px 20px 0;max-width:1600px;margin:auto}.stage{min-height:500px;height:clamp(500px,62vh,670px);position:relative;overflow:hidden;background:#273b32;border-radius:9px;color:#f8f0dc}.stage canvas{width:100%;height:100%;display:block;touch-action:none}.stage-top,.stage-bottom,.legend,.renderer-label{position:absolute;pointer-events:none}.stage-top{top:22px;left:25px}.stage-top .eyebrow{color:#d2b580}.stage-top h2{font:400 clamp(23px,3vw,39px)/1.04 Georgia,serif;margin:8px 0}.stage-top p{font-size:11px;color:#d9d5c6;margin:10px 0;max-width:220px}.stage-bottom{bottom:18px;left:20px;right:20px;display:flex;justify-content:space-between;align-items:end;gap:10px}.stage-bottom span{color:#c6c8ba;font-size:11px;text-align:right}.view-buttons{display:flex;gap:4px;pointer-events:auto}.view-buttons button{font-size:11px;background:#25372fe0;color:#eee4cf;border:1px solid #788274}.view-buttons button.selected{background:#f1d29d;color:#29362a;border-color:#f1d29d}.legend{right:17px;top:22px;font-size:10px;display:flex;gap:6px;align-items:center;color:#ddd7c7}.legend i{width:8px;height:8px;border-radius:50%;background:#d99529}.legend i:nth-of-type(2){background:#a6b9b9}.legend i:nth-of-type(3){background:#f1d38e}.renderer-label{right:20px;bottom:52px;font-size:9px;color:#b4bfb1;letter-spacing:.1em}aside,.panel,.metrics{border:1px solid var(--line);border-radius:9px;background:#fbf7ed;padding:16px;min-width:0}.section-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.section-heading b{font-variant-numeric:tabular-nums;color:#a55d12}.transport{display:flex;gap:6px}.speed{display:flex;justify-content:space-between;align-items:center;margin:10px 0 14px;font-size:12px}.speed select{padding:4px 8px}.control{margin:0 0 11px}.control label{display:flex;justify-content:space-between;font-size:12px;font-weight:650}.control output{color:#a55d12;font-variant-numeric:tabular-nums}.control input{width:100%;accent-color:#a55d12;margin:7px 0 0;height:16px}.ends{display:flex;justify-content:space-between;font-size:9px;color:#77786b}.switch-row{display:flex;justify-content:space-between;font-size:12px;gap:6px;margin:12px 0}.switch-row input{accent-color:#456650;vertical-align:middle}.presets{display:flex;gap:5px}.presets button{font-size:11px;flex:1;padding:7px 3px}.note{margin-top:12px;padding:10px;background:#f1e6cf;border-left:3px solid #be873e;font-size:12px;min-height:54px}.metrics{grid-column:1/-1;display:grid;grid-template-columns:repeat(5,1fr);gap:10px;padding:14px 0}.metric{padding:0 16px;border-right:1px solid var(--line);min-width:0}.metric:last-child{border:0}.metric strong{display:block;font:400 clamp(23px,3vw,35px)/1.3 Georgia,serif;font-variant-numeric:tabular-nums;white-space:nowrap}.metric strong em{font:normal 13px system-ui;color:#77786b}.metric span{font-size:11px;color:var(--muted)}.track{height:5px;background:#e5ddcc;border-radius:4px;margin-top:7px}.track i{display:block;height:100%;background:#b77d31;border-radius:4px;width:0}.chart-panel canvas{width:100%;height:170px;display:block}.chart-legend{font-size:11px;color:#a55d12;display:flex;gap:14px;flex-wrap:wrap}.chart-legend span:nth-child(2){color:#567f6b}.chart-legend span:last-child{color:var(--muted);margin-left:auto}.panel .section-heading button{padding:3px 8px;font-size:11px}.experiments h3{font:400 23px Georgia,serif;margin:5px 0}.experiments p{font-size:12px;color:#62675b}.challenge-buttons{display:flex;gap:6px;flex-wrap:wrap}.challenge-buttons button{font-size:11px}#challenge-result{margin:10px 0;color:#567f6b;font-size:12px;min-height:30px}details{border-top:1px solid var(--line);padding-top:10px}summary{cursor:pointer;font-weight:650;font-size:12px}a{color:#865117}footer{text-align:center;color:#77786b;font-size:9px;letter-spacing:.15em;padding:15px}body:fullscreen{overflow:auto} @media(max-width:900px){main{grid-template-columns:minmax(0,1fr) 300px;padding:10px}.stage{height:550px}.legend{display:none}.stage-bottom{flex-wrap:wrap}.metrics{grid-template-columns:repeat(3,1fr);row-gap:16px}.metric:nth-child(3){border:0}}@media(max-width:650px){header{height:65px;padding:0 12px}.brand h1{font-size:21px}.brand h1 span{display:none}.brand small{font-size:8px}.mark{font-size:35px}.header-right{gap:7px}.live{font-size:9px}main{grid-template-columns:1fr;gap:10px}.stage{height:440px;min-height:0}.stage-top{top:14px;left:15px}.stage-top h2{font-size:25px}.stage-top p{max-width:180px}.stage-bottom{left:10px;right:10px;bottom:10px}.stage-bottom span{font-size:9px}.view-buttons button{padding:6px}.metrics{grid-template-columns:repeat(2,1fr);grid-column:1}.metric:nth-child(3){border-right:1px solid var(--line)}.metric:nth-child(even){border:0}.metric{padding:0 12px}.metric strong{font-size:28px}.chart-panel canvas{height:160px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}
