:root{color-scheme:dark;--canvas:#140c12;--panel:rgba(15,14,19,.9);--paper:#f7e8d7;--muted:#b3a59d;--line:rgba(244,199,166,.2);--copper:#f8b980;--hazel:#b87b5c}
*{box-sizing:border-box}html,body{height:100%;margin:0;overflow:hidden;background:var(--canvas);font-family:Inter,'Segoe UI',Arial,sans-serif;color:var(--paper)}
#scene,#fallback{position:fixed;inset:0}#scene canvas{width:100%;height:100%;display:block;outline:none}#fallback{z-index:0;pointer-events:none;background:radial-gradient(ellipse at 46% 32%,#643023,#140c12 85%)}#fallback img{width:100%;height:100%;object-fit:cover;opacity:.83;filter:saturate(.7)}#loadstate{position:absolute;bottom:102px;left:50%;transform:translateX(-50%);color:#f8cbaa;letter-spacing:.16em;text-align:center;font-size:12px;background:#201016b8;border:1px solid #633827;padding:14px 22px;max-width:84vw}#fallback.loaded{display:none}
.brand{position:fixed;z-index:4;top:30px;left:38px;pointer-events:none;text-shadow:0 2px 23px #000b}.microline,.page-marker{letter-spacing:.2em;font-size:10px;font-weight:700;color:#e5ae87}.microline{display:flex;align-items:center;gap:11px}.beacon{background:#d9ba88;width:6px;height:6px;display:inline-block;border-radius:100%;box-shadow:0 0 17px #eeb58e}.brand h1{margin:10px 0 0;font-size:clamp(32px,3.5vw,56px);letter-spacing:.20em;font-weight:800}.gold{color:#e7a46b}.brand p{margin:1px 0 19px;font-size:10px;letter-spacing:.42em;font-weight:700}.brand em{font-style:normal;color:#edbf92}.page-marker{display:inline-block;border-top:1px solid #a08064;padding-top:14px;color:#c6a896}.page-marker b{color:#e1a16c;margin:0 8px}
.explain{position:fixed;z-index:4;left:38px;top:232px;width:252px;border-top:1px solid #b18669a6;border-bottom:1px solid #b1866961;padding:15px 0 13px;background:linear-gradient(90deg,rgba(20,12,18,.65),transparent);pointer-events:none}.section-label{display:flex;justify-content:space-between;color:#efb184;font-size:10px;letter-spacing:.15em;font-weight:800;margin-bottom:16px}.section-label span{color:#967e71}.fact-row{display:flex;justify-content:space-between;gap:10px;margin:11px 0;font-size:10px;letter-spacing:.05em}.fact-row span{color:#ad9b8d}.fact-row b{font-size:11px;font-weight:600}.explain p{font-size:11px;line-height:1.55;color:#b7a79c;margin:13px 0 0}.explain strong{color:#f1c59c}
.controls{position:fixed;z-index:5;right:24px;top:24px;bottom:24px;width:333px;padding:25px 26px;background:var(--panel);border:1px solid var(--line);box-shadow:0 18px 72px #000a;backdrop-filter:blur(22px);overflow-y:auto;scrollbar-color:#805644 #1b1418;scrollbar-width:thin}.topline{display:flex;justify-content:space-between;align-items:center;font-size:10px;letter-spacing:.18em;color:var(--copper);font-weight:800}.number{color:#78655a}.controls h2{font-family:Georgia,serif;font-size:33px;font-weight:400;margin:18px 0 5px;line-height:1.05}.lead{font-size:12px;line-height:1.65;color:#bcaea5;margin:0 0 27px}.lead strong{color:#f8d9ba}.r-label{display:flex;justify-content:space-between;font-size:12px;margin:0 0 11px}.r-label span{color:#c8b5a6}.r-label output{color:var(--copper);font-variant-numeric:tabular-nums;font-weight:700}.controls input[type=range]{appearance:none;width:100%;height:4px;border-radius:4px;background:#604338;cursor:pointer;accent-color:var(--copper);margin:0 0 27px}.controls input[type=range]::-webkit-slider-thumb{appearance:none;width:14px;height:14px;border-radius:50%;background:var(--copper);box-shadow:0 0 0 3px #a55b3940}.impact-est{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:-7px}.impact-est>div{background:#3c292b91;border:1px solid #88543b55;padding:13px 10px}.impact-est small,.hud-unit span{display:block;color:#bb9f92;font-size:9px;letter-spacing:.12em}.impact-est strong{display:block;margin-top:7px;color:#ffe0bc;font-size:18px}.primary-actions{display:grid;grid-template-columns:1.35fr 1fr;gap:8px;margin-top:15px}.primary-actions button{background:transparent;color:#e5c2a8;min-height:43px;border:1px solid #8b6658;cursor:pointer;font-size:10px;letter-spacing:.07em;font-weight:800}.primary-actions .primary{background:#cf8d60;color:#191015;border-color:#cf8d60}.primary-actions button:hover{filter:brightness(1.17)}.separator{height:1px;background:var(--line);margin:23px 0}.field{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:16px 0}.field label{color:#c9b2a5;font-size:12px}.field select{width:165px;appearance:none;border:1px solid #775144;border-radius:0;padding:8px 9px;background:#261d22;color:#f3d8c0;cursor:pointer;font-size:11px}.check-line{display:flex;flex-direction:column;gap:12px;margin:16px 0 20px;font-size:12px;color:#cab0a0}.check-line input{accent-color:#f4af76;vertical-align:middle}.caution{border-left:2px solid #b47b54;padding:0 0 0 12px;color:#a9998f;font-size:11px;line-height:1.55}
.hud{position:fixed;z-index:4;left:38px;right:390px;bottom:24px;min-height:72px;display:flex;align-items:center;gap:22px;flex-wrap:wrap;padding:14px 18px;background:#151319bf;border:1px solid #9f725540;backdrop-filter:blur(12px)}.hud-unit{min-width:132px;padding-right:22px;border-right:1px solid #674f4d66}.hud-unit strong{color:#efc6a5;display:block;font-size:13px;letter-spacing:.08em;margin-top:7px}.hud-unit:last-of-type{border:0}.gesture{margin-left:auto;color:#aa9991;letter-spacing:.12em;font-size:9px}.gesture i{color:#eeac77;font-style:normal;padding:0 4px}
@media(max-width:1000px){.explain{display:none}.controls{width:300px;padding:20px;right:12px}.brand{left:18px}.hud{left:18px;right:326px}.gesture{display:none}}
@media(max-width:690px){.brand{top:14px;left:17px}.brand h1{font-size:29px;margin:4px 0 0}.brand p{font-size:8px;margin-bottom:7px}.microline{font-size:8px}.page-marker{display:none}.controls{top:auto;left:9px;right:9px;bottom:9px;width:auto;height:min(50vh,440px);padding:14px 16px 30px;border-radius:8px}.controls h2{font-size:22px;margin:10px 0 4px}.lead{margin:0 0 15px}.controls input[type=range]{margin-bottom:15px}.impact-est strong{font-size:15px}.separator{margin:14px 0}.topline{font-size:8px}.hud{left:12px;right:12px;bottom:calc(min(50vh,440px) + 18px);padding:7px 11px;min-height:44px;gap:7px}.hud-unit{min-width:0;flex:1;padding:0 4px;border-right:1px solid #674f4d66}.hud-unit span{font-size:8px}.hud-unit strong{font-size:10px;margin-top:2px}#loadstate{bottom:55vh;font-size:10px}}
