:root { color-scheme: dark; font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #161e1b; color: #e7ecdc; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 340px; }
button, input { font: inherit; }
select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 2px solid #badd8e; outline-offset: 3px; }
.shell { min-height: 100vh; max-width: 1800px; margin: auto; }
.topbar { min-height: 81px; border-bottom: 1px solid #35423b; display: flex; justify-content: space-between; align-items: center; padding: 13px 28px; background: #1b2520; }
.brand { display: flex; gap: 13px; align-items: center; }
.brand h1 { font-size: 18px; margin: 0; font-weight: 740; letter-spacing: .02em; }
.brand p { font-size: 10px; letter-spacing: .18em; color: #8ba58e; margin: 3px 0 0; font-weight: 650; }
.brand-icon { width: 32px; height: 32px; display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); gap: 2px; transform: rotate(-8deg); }
.brand-icon i:nth-child(1) { background: #a3c781; }.brand-icon i:nth-child(2) { background: #668c6b; }.brand-icon i:nth-child(3) { background: #4e8c9b; }.brand-icon i:nth-child(4) { background: #c8ac77; }
.top-note { color: #a2b3a5; font-size: 12px; display: flex; align-items: center; gap: 9px; }
.status-dot { width: 7px; height: 7px; background: #add18e; box-shadow: 0 0 0 3px #344a38; }
.workspace { display: grid; grid-template-columns: 296px minmax(0, 1fr); }
.controls { border-right: 1px solid #35423b; padding: 24px 22px 36px; background: #202a24; min-height: calc(100vh - 81px); }
.section-label { font-size: 10px; color: #8eaa92; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.section-label.spaced { margin-top: 31px; margin-bottom: 17px; }
.preset-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-top: 14px; }
.preset { text-align: left; border: 1px solid #3b493f; background: #26332a; color: #e3e8d9; border-radius: 8px; padding: 12px 11px 10px; min-height: 90px; transition: background .15s, border-color .15s; }
.preset:hover { background: #334334; }.preset.active { border-color: #a9c989; background: #354938; box-shadow: inset 0 0 0 1px #8caf77; }
.preset strong { display: block; font-size: 14px; margin-top: 6px; }.preset small { display: block; font-size: 11px; color: #aac0a7; margin-top: 2px; }
.preset-mark { display: block; width: 23px; height: 12px; background: #8cbd85; box-shadow: 6px 0 #4a8998; }.preset-mark.island { background: #d1c08a; box-shadow: -4px 0 #4b96a3, 4px 0 #4b96a3; }.preset-mark.coast { background: #4e93a0; box-shadow: 8px 0 #c7b27e; }.preset-mark.highland { background: #92a097; box-shadow: -4px 3px #647c70; }
.field-label, .slider-heading { font-size: 12px; font-weight: 660; display: flex; justify-content: space-between; align-items: center; }
.field-hint { color: #8a9c8c; font-size: 10px; font-weight: 450; }
.seed-row { display: flex; margin-top: 9px; gap: 7px; }.seed-row input { background: #17221c; border: 1px solid #435647; color: #e7eddd; height: 38px; border-radius: 6px; padding: 0 10px; width: 100%; outline: none; letter-spacing: .05em; font-size: 12px; }
.seed-row button { border: 1px solid #435647; border-radius: 6px; background: #2c3b30; color: #d5e6cf; width: 38px; flex: none; font-size: 20px; }
.slider-heading { margin-top: 20px; }.slider-heading output { font-size: 12px; font-weight: 600; color: #c6d9ad; }
input[type="range"] { width: 100%; accent-color: #aacc8b; margin: 14px 0 3px; height: 4px; cursor: pointer; }
.control-select { width: 100%; height: 36px; margin: 10px 0 1px; padding: 0 9px; border: 1px solid #435647; border-radius: 6px; background: #17221c; color: #dfe9d8; font-size: 11px; outline: none; }
.control-select:focus-visible { outline: 2px solid #badd8e; outline-offset: 2px; }
.generate { margin-top: 24px; width: 100%; background: #badb8d; color: #1d3022; border: 0; border-radius: 7px; height: 43px; display: flex; justify-content: space-between; align-items: center; padding: 0 15px; font-weight: 760; font-size: 13px; }.generate:hover { background: #d0e8a4; }.generate span:last-child { font-size: 19px; font-weight: 400; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #344037; min-height: 41px; font-size: 12px; color: #d8e1d1; }.toggle-row input { accent-color: #accd8b; width: 16px; height: 16px; cursor: pointer; }
.legend { border-top: 1px solid #435247; margin-top: 29px; padding-top: 23px; }.legend > div:last-child { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px 5px; margin-top: 15px; }.legend-item { font-size: 11px; color: #c4d2bf; display: flex; gap: 8px; align-items: center; }.legend-item i { width: 12px; height: 12px; border: 1px solid #ffffff16; }
.asset-preview { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; padding: 11px 12px; border: 1px solid #46644e; border-radius: 6px; color: #dbeacb; background: #2b4031; font-size: 11px; text-decoration: none; }.asset-preview:hover { background: #38543d; }
.main { min-width: 0; padding: 20px 23px 34px; background: #17211c; }
.map-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; min-height: 40px; }
.map-toolbar strong { font-size: 15px; font-weight: 700; display: block; }.map-subtitle { display: block; margin-top: 4px; font-size: 11px; color: #879f8b; }
.map-actions, .bottom-bar > div { display: flex; gap: 6px; align-items: center; }.map-actions button, .bottom-bar button { background: #27372d; border: 1px solid #405547; color: #d5e5d1; border-radius: 5px; min-height: 31px; padding: 0 11px; font-size: 11px; }.map-actions button:hover, .bottom-bar button:hover { background: #3b513e; }.map-actions button[aria-label] { width: 31px; padding: 0; font-size: 16px; }.map-actions span { min-width: 43px; text-align: center; color: #aec5ae; font-size: 11px; }
.stage { height: min(66vh, 790px); min-height: 420px; position: relative; overflow: auto; background: #101b19; border: 1px solid #41584d; scrollbar-color: #4b6552 #17241c; }
.canvas-holder { width: max-content; min-width: 100%; min-height: 100%; display: flex; align-items: flex-start; justify-content: center; }
#map { display: block; image-rendering: pixelated; image-rendering: crisp-edges; background: #557b72; }
.render-busy { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border: 1px solid #64806a; background: #25362c; color: #d8e8c7; padding: 12px 20px; font-size: 12px; z-index: 2; pointer-events: none; }
.bottom-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; font-size: 11px; color: #9fb5a0; }.bottom-bar button { height: 29px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-top: 12px; }.stats > div { padding: 13px 15px; background: #223127; border: 1px solid #3a5040; border-radius: 6px; }.stats small { color: #9cb49d; display: block; font-size: 11px; }.stats strong { font-size: 17px; font-weight: 700; margin-top: 6px; display: block; color: #e0e9d4; }
.footnote { margin: 17px 0 0; font-size: 11px; line-height: 1.6; color: #839986; }
@media (max-width: 960px) { .workspace { grid-template-columns: 248px minmax(0, 1fr); }.controls { padding-inline: 15px; }.main { padding-inline: 14px; }.topbar { padding-inline: 16px; }.stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 690px) { .top-note { display: none; }.workspace { display: flex; flex-direction: column; }.controls { min-height: 0; border-right: 0; border-bottom: 1px solid #35423b; }.preset-grid { grid-template-columns: repeat(4, 1fr); }.preset { min-height: 76px; padding: 8px; }.preset small { display: none; }.section-label.spaced { margin-top: 20px; }.legend { display: none; }.main { padding: 14px 12px 30px; }.map-toolbar { flex-wrap: wrap; }.stage { min-height: 350px; height: 55vh; }.bottom-bar { flex-wrap: wrap; padding: 10px 0; }.stats > div { padding: 10px; } }
/* v17: keep the map visible while tweaking an environment control. */
[hidden] {display:none !important;}
.topbar {min-height:72px;}
.workspace {grid-template-columns:308px minmax(0,1fr);}
.controls {height:calc(100vh - 72px); min-height:0; overflow:auto; position:sticky; top:0; scrollbar-width:thin; scrollbar-color:#4c6655 #202a24; padding:16px 20px 26px;}
.panel-tabs {display:grid;grid-template-columns:1fr .7fr 1.15fr;gap:4px;padding:4px;background:#15231c;border:1px solid #394d40;border-radius:9px;margin:0 0 22px;}
.panel-tabs button {padding:9px 2px;border:0;background:transparent;color:#94ad9a;font-size:11px;border-radius:5px;}
.panel-tabs button.active {background:#36543d;color:#e5f1d7;}
.control-panel>.section-label {margin-top:8px;}
.clock-card {display:flex;justify-content:space-between;align-items:center;margin:12px 0 4px;padding:16px;border:1px solid #48624d;border-radius:10px;background:#283e2f;}
.clock-card small {display:block;font-size:10px;color:#a0b59b;}
.clock-card strong {font-size:36px;line-height:1.3;font-weight:550;letter-spacing:.035em;font-variant-numeric:tabular-nums;}
.clock-card>div:last-child {text-align:right;}.clock-card span {font-size:14px;display:block;margin-bottom:6px;}
.time-scale {display:flex;justify-content:space-between;font-size:9px;color:#78927f;margin-top:9px;}
.moment-grid {display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:18px 0 8px;}
.moment-grid button,.subtle-button {border:1px solid #46614c;color:#d4e6cd;background:#2a3c2e;border-radius:5px;font-size:11px;padding:8px 6px;}
.moment-grid button:hover,.subtle-button:hover {background:#415b42;}
.pause-button {width:100%;background:#b9d597;color:#223827;border:0;border-radius:6px;padding:11px 8px;margin-top:18px;font-size:12px;font-weight:700;}
.pause-button[aria-pressed="true"] {background:#dec89d;}
.panel-note {font-size:10px;line-height:1.8;color:#91aa97;margin:13px 0;}
.subtle-button {width:100%;}
.advanced {margin:24px 0 18px;border-top:1px solid #3b5141;padding-top:16px;}
.advanced summary {font-size:11px;color:#c7dabb;cursor:pointer;}
.light-readout {display:flex;flex-direction:column;gap:8px;border:1px solid #354c3e;border-radius:6px;padding:13px;font-size:10px;color:#8fa998;}
.light-readout>span {display:flex;justify-content:space-between;gap:8px;}.light-readout strong {color:#c9dbc2;font-weight:500;font-variant-numeric:tabular-nums;}
.main {padding-top:18px;}
.stage {height:calc(100vh - 314px);max-height:900px;min-height:400px;}
.render-strip {display:flex;justify-content:space-between;flex-wrap:wrap;gap:6px;color:#839e8b;font-size:10px;margin-top:14px;}
.notice {padding:10px 14px;background:#28422e;color:#d7eaca;border:1px solid #55745a;font-size:12px;}.notice.error {color:#f7d5bd;background:#5c362c;border-color:#b27965;}
.stats {margin-top:5px;}.footnote {font-size:10px;}
@media (max-width:1100px) and (min-width:691px) {.workspace{grid-template-columns:270px minmax(0,1fr)}.controls{padding-inline:13px}.top-note{font-size:10px}}
@media (max-width:690px) {.workspace{display:flex;flex-direction:column}.controls{position:static;height:auto;max-height:58vh;padding:12px 16px;order:2}.main{order:1}.stage{height:48vh;min-height:280px}.stats,.footnote,.render-strip{display:none}.clock-card{padding:8px 14px}.topbar{min-height:62px}.brand h1{font-size:15px}.map-toolbar strong{font-size:13px}}
