:root{--ink:#263d32;--muted:#81877c;--line:#dfe3d8;--paper:#f7f8f2;--green:#3b5b3d;--lime:#d5e6aa;--brown:#bc8d60;--blue:#729fa5}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}button,select,input{font:inherit}button,select{cursor:pointer}button{border:0;color:inherit;background:none}button:disabled{cursor:not-allowed;opacity:.45}button:focus-visible,select:focus-visible,input:focus-visible,a:focus-visible{outline:3px solid #b7ca7c;outline-offset:3px}button{transition:background .16s,transform .16s}button:hover:not(:disabled){background:#e8eddf}button:active:not(:disabled){transform:translateY(1px)}.header{height:91px;margin:0 3.8%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;color:var(--ink);text-decoration:none;font-size:19px;letter-spacing:-.5px;font-weight:600}.brandmark{font:54px Georgia;line-height:1;color:#60734b}.brand small{display:block;font-size:8px;letter-spacing:2.2px;font-weight:500;margin-top:1px}.location,.header-actions{display:flex;align-items:center;gap:16px;font-size:12px}.live-dot,.status-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#789457}.header-actions{gap:18px}.quiet{font-size:12px}.round{border:1px solid var(--line);border-radius:50%;width:30px;height:30px;font-size:17px}.version{font:10px monospace;color:var(--muted)}.muted{color:#bac2b4}main{max-width:1580px;margin:0 auto;padding:33px 3.8% 0}.page-title{display:flex;justify-content:space-between;align-items:end;margin-bottom:26px}.eyebrow{font-size:9px;letter-spacing:1.65px;font-weight:600;color:var(--muted)}h1{font:normal 36px/1.15 Georgia,"Times New Roman",serif;letter-spacing:-.7px;margin:8px 0 0}h2{font:normal 30px/1.16 Georgia,"Times New Roman",serif;margin:10px 0}h3{font-size:16px;font-weight:500;margin:5px 0}.page-title>p{font-size:12px;color:var(--muted);margin:0 0 4px}.game-shell{border:1px solid #d8dfce;border-radius:12px;overflow:hidden;background:#fafbf6;box-shadow:0 8px 36px #263d3205}.world-toolbar{height:65px;display:flex;align-items:center;justify-content:space-between;padding:0 23px;border-bottom:1px solid var(--line)}.time-info{display:flex;align-items:center;gap:13px;min-width:200px}.season-icon{font-size:30px;color:#8c9d5f}.time-info strong{display:block;font-size:12px;font-weight:550}.time-info small{display:block;font-size:10px;color:var(--muted);margin-top:2px}.seasons{display:flex;gap:4px}.seasons span{font-size:9px;letter-spacing:1px;padding:5px 13px;color:#8b9287;border-bottom:2px solid #e5e8de}.seasons span.active{border-color:#708650;color:#4a6542}.playback{display:flex;align-items:center;gap:4px}.playback button{font-size:11px;width:34px;height:30px;border-radius:5px}.playback .selected{background:#e8eedf;color:#416237}.playback .pause{font-size:14px;border-right:1px solid var(--line);border-radius:0;margin-right:10px}.game-body{display:grid;grid-template-columns:minmax(0,1fr) 255px}.world{height:490px;position:relative;overflow:hidden;background:#e9efdf}canvas{display:block;width:100%;height:100%;touch-action:manipulation}.scene-label{position:absolute;left:23px;top:20px;font-size:8px;font-weight:600;letter-spacing:1.8px;display:flex;align-items:center;gap:8px;pointer-events:none}.scene-label>span:last-child{font:9px monospace;letter-spacing:0;color:#98a48e;margin-left:8px}.world-tools{position:absolute;top:16px;right:18px;display:flex;gap:5px}.world-tools button{background:#f7f9efb3;border:1px solid #d6deca;border-radius:5px;height:29px;min-width:29px;padding:0 9px;font-size:12px}.world-tools button[aria-pressed=true]{background:#c3dce0}.world-tools span{font-size:10px}.scene-footer{position:absolute;bottom:15px;left:22px;right:22px;display:flex;gap:18px;color:#d7d4bb;font-size:9px}.scene-footer>span{display:flex;align-items:center;gap:7px}.legend-line{display:inline-block;height:2px;width:15px;background:#d6b56e}.legend-line.neighbor{background:#8f9276}.scene-footer .soil-note{margin-left:auto;letter-spacing:1px;text-transform:uppercase;font-size:8px;color:#a9ac91}.seed-hint{position:absolute;top:46%;left:50%;transform:translate(-50%,-100%);font-size:10px;letter-spacing:.5px;color:#587048;text-align:center;pointer-events:none;background:#f7f8eeaa;padding:5px 12px;border-radius:5px}.seed-hint span{display:block;font-size:18px}.status-panel{padding:22px 21px;border-left:1px solid var(--line);background:#fbfcf7}.panel-heading{display:flex;justify-content:space-between;align-items:center}.status-panel h2{font-size:27px;margin-top:12px;margin-bottom:3px}.age{font-size:11px;color:var(--muted);margin:0 0 18px}.health-row{display:flex;justify-content:space-between;font-size:10px}.health-row b{font-weight:500}.health-track{height:3px;border-radius:5px;background:#e3e8da;margin:7px 0 21px}.health-track i{display:block;width:100%;height:100%;background:#8ba36a;transition:width .5s}.resource{display:grid;grid-template-columns:25px 1fr auto;align-items:center;margin-bottom:16px;gap:7px}.resource-icon{font-size:17px;color:var(--accent)}.resource-name{font-size:11px}.resource-sub{font-size:9px;color:#8a9184;margin-top:1px}.resource-value{font-size:12px;font-variant-numeric:tabular-nums}.resource-bar{height:2px;margin-top:5px;background:#e5e9de}.resource-bar i{display:block;background:var(--accent);height:100%;transition:width .4s}.stress-box{border-top:1px solid var(--line);padding-top:12px;display:flex;justify-content:space-between;font-size:10px}.stress-box b{font-weight:500}.diagnosis{font-size:10px;line-height:1.65;color:#818a78;min-height:34px;margin:8px 0 13px}.primary{background:var(--green);color:#fff;border-radius:5px;padding:12px 18px;font-size:12px;display:flex;justify-content:space-between;align-items:center;gap:12px}.primary:hover:not(:disabled){background:#294a2f}.development-btn{width:100%;font-size:11px;padding:11px 13px}.seed-button{margin-top:12px;font-size:10px;text-align:left;width:100%;padding:0;display:flex;gap:7px;align-items:center}.allocation{display:flex;padding:22px 25px;gap:30px;border-top:1px solid var(--line);background:#f9faf4}.allocation-title{min-width:192px;border-right:1px solid var(--line);padding-right:25px}.allocation-title select{margin-top:5px;font-size:10px;color:#7b8671;border:0;background:none;width:174px;padding:0}select{background:#f6f8ef;border:1px solid var(--line);border-radius:5px;color:var(--ink);padding:10px;max-width:100%}.sliders{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:23px;flex:1;align-items:center}.slider-label{display:flex;justify-content:space-between;font-size:10px;gap:5px}.slider-label output{font:11px monospace;color:#617850}input[type=range]{display:block;width:100%;height:4px;accent-color:#6e8255;margin:13px 0 9px;cursor:pointer}.slider small{font-size:8px;line-height:1.4;color:#9ba28f;display:block}.below{display:grid;grid-template-columns:1fr 1fr;gap:60px;margin:28px 0 25px}.field-note{display:flex;align-items:start;gap:16px}.note-icon{font-size:29px;color:#8c9a71;line-height:1.1}.field-note p{font-size:12px;line-height:1.8;margin:6px 0 0;max-width:430px;color:#76816b}.journal>.eyebrow{display:block;margin-bottom:8px}.journal-entry{font-size:10px;margin:5px 0;display:flex;gap:12px;color:#798472}.journal-entry time{font:9px monospace;min-width:43px;color:#a3ab98}.journal-entry.good{color:#506f40}.journal-entry.bad{color:#a1744c}footer{border-top:1px solid var(--line);padding:17px 0 21px;display:flex;justify-content:space-between;font-size:9px;color:#a1a795}footer i{font-style:normal;padding:0 8px}dialog{border:1px solid #d8dfce;border-radius:12px;padding:32px;background:#fafbf5;color:var(--ink);box-shadow:0 24px 100px #16371f22;max-width:calc(100vw - 32px);max-height:88vh;width:580px}dialog::backdrop{background:#273b2845;backdrop-filter:blur(5px)}dialog .modal-top{display:flex;justify-content:space-between;align-items:center}.modal-symbol{font-size:35px;color:#81965e}dialog h2{font-size:38px;margin:15px 0}dialog p{color:#7b8573;font-size:12px;line-height:1.8}.intro-steps{display:grid;gap:15px;margin:26px 0}.intro-steps>div{display:flex;gap:15px}.intro-steps b{font:11px monospace;color:#8d9d71;padding-top:3px}.intro-steps span{font-size:12px}.intro-steps small{display:block;font-size:10px;color:#8c9583;margin-top:2px}.climate-label{display:block;font-size:10px;color:#87917b;margin-bottom:6px}#climate-select{width:100%;font-size:12px}.start-button{width:100%;margin-top:18px;padding:14px 18px}.intro-foot{font-size:.875rem;display:block;text-align:center;color:#5f6858;line-height:1.65;margin-top:18px}#development{width:850px}#development h2{font-size:31px}.trait-section{margin-top:21px}.trait-section h3{display:flex;justify-content:space-between;font-size:13px}.trait-section h3 small{font-size:10px;font-weight:400;color:#919b85}.trait-options{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:10px}.trait-options.habit{grid-template-columns:repeat(2,1fr)}.trait-card{border:1px solid var(--line);border-radius:6px;padding:13px;text-align:left;position:relative}.trait-card.active{border-color:#7c9161;background:#edf2e2}.trait-card strong{font-size:12px;font-weight:550;display:block;margin-bottom:7px}.trait-card span{font-size:10px;color:#687f57;display:block;line-height:1.7}.trait-card .con{color:#9b8d6c}.trait-card .check{position:absolute;right:9px;top:8px;font-size:10px;color:#627e44}.modal-foot{border-top:1px solid var(--line);margin-top:25px;padding-top:14px}.result-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:24px 0}.result-stat{padding:15px;background:#eef2e6;border-radius:6px}.result-stat strong{font:25px Georgia;display:block}.result-stat small{font-size:9px;display:block;color:#7c896d;margin-top:4px}.result-actions{display:flex;gap:12px;margin-top:20px}.secondary{border:1px solid #b9c5ac;border-radius:5px;padding:11px 17px;font-size:12px}.history-item{border-top:1px solid var(--line);padding:15px 0}.history-item strong{font-size:13px}.history-item p{margin:5px 0}.help-list{padding-left:20px;font-size:12px;line-height:1.9;color:#7a8572}.help-list li{margin-bottom:9px}.tree-tooltip{position:absolute;pointer-events:none;z-index:4;background:#f8faeff2;box-shadow:0 4px 20px #1e381f15;border:1px solid #d4ddc9;border-radius:6px;padding:12px 15px;max-width:230px;font-size:10px;line-height:1.8}.tree-tooltip strong{display:block;font-size:12px}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);z-index:20;background:#314d34;color:white;padding:12px 24px;border-radius:8px;font-size:12px;max-width:90vw}.status-dot{background:#8ca46b}@media(min-width:1450px){.world{height:560px}.game-body{grid-template-columns:minmax(0,1fr) 280px}.status-panel{padding:26px}.resource{margin-bottom:24px}.diagnosis{margin:15px 0 24px}}@media(max-width:1050px){.header{margin:0 24px}.location{display:none}main{padding:25px 24px 0}.page-title>p{display:none}.game-body{grid-template-columns:minmax(0,1fr) 225px}.status-panel{padding:18px 16px}.allocation{gap:20px;padding:20px}.allocation-title{min-width:160px;padding-right:16px}.allocation-title select{width:145px}.sliders{gap:12px}.slider-label{font-size:9px}.world{height:490px}.scene-label>span:last-child{display:none}}@media(max-width:750px){.header{height:75px;margin:0 16px}.brand{font-size:16px;gap:8px}.brandmark{font-size:44px}.header-actions{gap:10px}.quiet{font-size:10px}.version{display:none}main{padding:23px 14px 0}h1{font-size:29px}.page-title{margin-bottom:20px}.game-body{grid-template-columns:1fr}.world{height:400px}.status-panel{border-left:0;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr;column-gap:20px;padding:18px}.panel-heading,.status-panel h2,.age,.health-row,.health-track,.stress-box,.diagnosis{grid-column:1}.panel-heading{grid-row:1}.status-panel h2{grid-row:2;font-size:23px}.age{grid-row:3;margin-bottom:12px}.health-row{grid-row:4}.health-track{grid-row:5;margin-bottom:12px}.resources{grid-column:2;grid-row:1/8}.resource{margin-bottom:13px}.stress-box{grid-row:6}.diagnosis{grid-row:7;font-size:9px;min-height:0}.development-btn{grid-column:1;grid-row:8;font-size:10px}.seed-button{grid-column:2;grid-row:8;margin:0;font-size:10px}.allocation{display:block}.allocation-title{border:0;display:flex;align-items:center;justify-content:space-between;padding:0;margin-bottom:19px}.allocation-title .eyebrow{max-width:100px;font-size:8px}.allocation-title h3{display:none}.allocation-title select{width:180px}.sliders{grid-template-columns:repeat(3,1fr);gap:20px 24px}.slider-label{font-size:11px}.world-toolbar{padding:0 15px;height:60px}.time-info{min-width:0}.seasons{display:none}.below{grid-template-columns:1fr;gap:20px;margin:23px 5px}.journal{border-top:1px solid var(--line);padding-top:15px}footer{display:block;font-size:8px}footer>span{display:block;margin-bottom:7px}.scene-label{left:15px;top:18px;font-size:7px}.scene-footer{left:15px;right:15px;gap:12px;font-size:8px}.scene-footer .soil-note{display:none}dialog{padding:23px}dialog h2{font-size:31px}.trait-options{grid-template-columns:1fr}.trait-options.habit{grid-template-columns:1fr}.trait-card{padding:10px 13px}.trait-section h3 small{max-width:150px;text-align:right}.result-grid{gap:8px}.result-stat{padding:12px}.result-stat strong{font-size:22px}.result-actions{flex-direction:column}#development h2{font-size:28px}.help-list{font-size:11px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

/* Stretch the ecological cross-section to match the status column. */
@media(min-width:751px){.world{height:auto;min-height:490px}.world canvas{position:absolute;inset:0}}
@media(min-width:1450px){.world{min-height:560px}}
@media(max-width:400px){.world-toolbar{padding:0 10px}.time-info{gap:7px;min-width:135px}.time-info strong{font-size:10px}.time-info small{font-size:9px;white-space:nowrap}.season-icon{font-size:24px}.playback{gap:0}.playback button{width:28px}.playback .pause{margin-right:3px}}

/* Independent sound controls, including keyboard and touch targets. */
.audio-toggle{display:flex;align-items:center;gap:10px;margin:24px 0;font-size:14px}
.audio-toggle input{accent-color:#6e8255;width:18px;height:18px}
.audio-slider{display:block;margin:24px 0;font-size:13px}
.audio-slider>span{display:flex;justify-content:space-between;gap:15px}
.audio-slider output{font:12px monospace;color:#617850}
.audio-slider input[type=range]{height:24px;margin-top:8px}
#audio-storage-warning{color:#93613d}
@media(max-width:400px){.header-actions{gap:7px}.header-actions .quiet{font-size:9px}.brand{font-size:14px;gap:5px}.brandmark{font-size:36px}}

/* Keep confirmation reachable while browsing the development choices. */
.decision-footer{position:sticky;bottom:-32px;background:#fafbf5;border-top:1px solid var(--line);margin:22px -32px -32px;padding:14px 32px 22px;display:flex;align-items:center;justify-content:space-between;gap:18px}
.decision-footer p{margin:0;max-width:420px}
.decision-footer .primary{flex-shrink:0;min-height:44px}
.decision-reproduction{padding:16px;background:#edf2e2;border:1px solid #cbd8ba;border-radius:6px}
#development-title:focus{outline:none}
@media(max-width:750px){.decision-footer{bottom:-23px;margin:20px -23px -23px;padding:12px 23px 18px;flex-direction:column;align-items:stretch;gap:10px}.decision-footer .primary{justify-content:center}}

/* Restart is available beside time controls, with a reversible confirmation. */
[hidden]{display:none!important}
.world-toolbar{height:auto;min-height:65px;gap:12px;padding-top:10px;padding-bottom:10px}
.toolbar-actions{display:flex;align-items:center;gap:16px}
.restart-button{white-space:nowrap;min-height:40px;padding:8px 12px}
.cancel-restart{width:100%;margin-top:10px;min-height:44px}
@media(max-width:1050px){.world-toolbar .seasons{display:none}}
@media(max-width:750px){.world-toolbar{flex-wrap:wrap}.toolbar-actions{width:100%;justify-content:space-between;gap:8px}.restart-button{min-height:44px}.playback button{height:44px;width:36px}}

/* Spatial reproduction stays beside the same forest, without a new modal. */
.tree-status{display:contents}
.succession-banner{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:20px 24px;background:#e9efdf;border-bottom:1px solid var(--line)}
.succession-banner strong{font:24px Georgia,serif}.succession-banner p{font-size:13px;line-height:1.6;margin:8px 0 0;max-width:650px}
.succession-banner .primary{flex-shrink:0;min-height:48px;font-size:13px}
.tree-status.is-dead .health-row,.tree-status.is-dead .health-track,.tree-status.is-dead .resources,.tree-status.is-dead .stress-box,.tree-status.is-dead .development-btn{display:none}
.seed-button.succession-cta{background:#3b5c3e;color:#fff;border-radius:6px;padding:14px 12px;min-height:48px;text-align:center;font-size:13px;line-height:1.5;width:100%}
.offspring-card.is-selected{border:2px solid #618347;background:#e8efdc}
.succession-actions{flex-wrap:wrap;margin:18px 0 24px}.succession-actions button{min-height:48px;flex:1}
@media(max-width:750px){.succession-banner{flex-direction:column;align-items:stretch;gap:15px;padding:18px}.succession-banner .primary{justify-content:center}.tree-status.is-dead>*{grid-column:1/-1!important;grid-row:auto!important}.succession-actions{flex-direction:column}}
.reproduction-panel{grid-column:1/-1;max-height:680px;overflow-y:auto;scrollbar-width:thin;padding-right:2px}
.reproduction-panel h2{font-size:25px;margin:15px 0 8px}
.reproduction-panel h2:focus{outline:none}
.reproduction-caption,.seed-note{font-size:10px;line-height:1.65;color:#748269;margin:9px 0}
.reproduction-tabs{display:flex;border-bottom:1px solid var(--line);margin:16px 0;gap:6px}
.reproduction-tabs button{padding:9px 5px;flex:1;font-size:11px;border-bottom:2px solid transparent}
.reproduction-tabs [aria-pressed=true]{border-color:#6c8753;color:#365d3e}
.reproduction-panel fieldset{padding:0;border:0;margin:14px 0 8px;min-width:0}
.reproduction-panel legend,.seed-field{font-size:11px;color:#4a6346}
.seed-options{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin-top:8px}
.seed-options button{font-size:10px;border:1px solid #d4dec9;border-radius:5px;padding:10px 2px;min-height:40px}
.seed-options [aria-pressed=true]{background:#e5edd9;border-color:#7b925f;font-weight:600}
.seed-field{display:block;margin:14px 0}
.seed-field select{display:block;width:100%;margin-top:6px;font-size:10px;padding:9px 6px}
.seed-field>span{display:flex;justify-content:space-between}
.seed-field input{height:14px}
.seed-cost{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:10px 0;margin:12px 0;display:grid;gap:7px}
.seed-cost span{display:flex;justify-content:space-between;gap:5px;font-size:10px}
.seed-cost b{font-weight:550;white-space:nowrap}
.seed-notice{font-size:10px;line-height:1.6;color:#8b6c46;min-height:32px}
.reproduction-panel .primary,.reproduction-panel .secondary{width:100%;justify-content:center;margin-top:10px;min-height:42px;font-size:11px;padding:10px 8px}
.seed-reset-aim,.seed-later{font-size:10px;text-decoration:underline;text-underline-offset:3px;padding:6px 0}
.seed-later{width:100%;margin-top:10px;min-height:36px}
#offspring-summary{font-size:11px;line-height:1.7;color:#5d774e}
.offspring-card{padding:13px 10px;border:1px solid var(--line);border-radius:7px;margin:12px 0;background:#f3f6eb}
.offspring-card strong{font-size:12px;font-weight:550}
.offspring-card p{white-space:pre-line;font-size:10px;line-height:1.7;color:#748269}
@media(min-width:751px){.status-panel:has(.reproduction-panel:not([hidden])){padding:18px 15px}.game-body:has(.reproduction-panel:not([hidden])){grid-template-columns:minmax(0,1fr) 290px}}
@media(max-width:750px){.reproduction-panel{max-height:none;overflow:visible}.seed-options button,.reproduction-panel .secondary,.reproduction-panel .primary{min-height:44px}.seed-note,.reproduction-caption{font-size:11px}.seed-field select{font-size:12px}.seed-cost span{font-size:12px}}
.hazard-banner{display:flex;gap:16px;align-items:center;padding:12px 22px;background:#f4e8d6;border-bottom:1px solid #dcc6a7;color:#6d4c28;font-size:11px}
.hazard-banner strong{white-space:nowrap;font-size:13px}.hazard-banner span{line-height:1.6}
.succession-message{background:#e5eed4;border-left:3px solid #749654;padding:12px;font-size:12px;line-height:1.7;color:#395333}
.forest-bank{font-size:10px;color:#627c59;line-height:1.8;margin:0 0 10px}
@media(max-width:750px){.hazard-banner{align-items:start;flex-direction:column;gap:4px;padding:12px 15px}}

/* Narrative summaries share the same readable layout in results and history. */
.life-facts{list-style:none;padding:0;margin:20px 0;font-size:13px;line-height:1.75;color:var(--ink)}
.life-facts li{padding:10px 0;border-bottom:1px solid var(--line)}
.life-facts li:last-child{border-bottom:0}
.history-item .life-facts{margin:10px 0;font-size:12px}
.history-item .life-facts li{padding:5px 0;border:0}

.generation-comparison{border-top:1px solid var(--line);margin-top:22px;padding-top:18px}
.generation-comparison h3{font-size:15px;line-height:1.5;font-weight:550;margin:0}
.generation-comparison .life-facts{font-size:12px;margin:10px 0}
dialog .history-caption{font-size:11px;line-height:1.65;color:#7b8573}
.ring-reader{border:1px solid var(--line);border-radius:8px;padding:14px 16px;margin:18px 0;background:#f1f3e9}
.ring-reader summary{font-size:13px;cursor:pointer;min-height:24px;line-height:24px;color:#36583b}
.ring-reader summary:focus-visible,.ring-controls button:focus-visible{outline:2px solid #36583b;outline-offset:4px}
.ring-layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);align-items:center;gap:20px;margin:14px 0}
.ring-drawing{min-width:0}.ring-drawing svg{display:block;width:100%;aspect-ratio:1;cursor:pointer;touch-action:manipulation}
.ring-controls{display:flex;gap:6px;justify-content:center;margin-top:8px}
.ring-controls button{padding:9px 8px;font-size:10px;min-height:44px}
.ring-note h4{font:22px/1.25 Georgia,serif;margin:10px 0;color:#36513a}
.ring-note p{font-size:12px}.ring-note .eyebrow{font-size:8px}
.history-item .generation-comparison{margin-top:14px;padding-top:12px}
@media(max-width:600px){.ring-layout{grid-template-columns:1fr;gap:20px}.ring-drawing{max-width:280px;width:100%;margin:0 auto}.ring-note{min-height:100px}.ring-reader{padding:12px}.ring-controls button{font-size:11px}.generation-comparison h3{font-size:14px}}

.immigration-status{font-size:11px;color:#627c59;line-height:1.7;margin:0 0 10px}

/* Trait cards share the scene's actual skeleton, including branch architecture. */
.trait-preview{display:block;width:100%;height:100px;margin:0 auto 8px}.trait-card:disabled{opacity:.65}.trait-card.active:disabled{opacity:1;border-color:#66834f;background:#e8efdd}.trait-card strong{display:block}.mutation-options{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}.mutation-options .trait-card{padding:10px;min-width:0}.mutation-options .trait-card strong{font-size:12px}.mutation-options .trait-card span{font-size:11px}.mutation-options .trait-preview{height:70px}.batch-symbol{color:#8e9f62;font-size:27px;letter-spacing:12px;text-align:center}.reproduction-panel fieldset{min-width:0}.seed-field select{max-width:100%}.trait-options{align-items:stretch}.trait-card{overflow-wrap:anywhere}#mutation-clear[aria-pressed="true"]{background:#e8efdd;border-color:#66834f}@media(max-width:500px){.trait-options{grid-template-columns:repeat(2,minmax(0,1fr))}.trait-preview{height:80px}}

.climate-description{font-size:13px;line-height:1.6;color:#75816b;margin:12px 0 0}#scene-biome{color:inherit;font:inherit;letter-spacing:inherit}.scene-label{max-width:calc(100% - 130px)}@media(max-width:500px){.scene-label{font-size:9px;letter-spacing:1px}.scene-label>span:last-child{display:none}.climate-description{font-size:12px}}

.world[data-environment="semidesert"] .legend-line{background:#625038}.world[data-environment="semidesert"] .legend-line.neighbor{background:#686b50}

.offspring-plan-overview{padding:16px;border:1px solid var(--line);background:#f1f4e9;border-radius:8px;margin:18px 0}.batch-reserve-line{display:flex;justify-content:space-between;gap:12px;font-size:13px}.batch-reserve-line span{font-variant-numeric:tabular-nums;white-space:nowrap}.batch-gene-summary{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}.batch-gene-summary>span{padding:6px 9px;border:1px solid #dde4d2;border-radius:6px;background:#fafbf5;font-size:11px}.batch-gene-summary small{display:block;font-size:9px;color:#7b8573}.batch-gene-summary .changed{background:#e0ebd1;border-color:#7b995d}.batch-plan-actions{display:flex;flex-wrap:wrap;gap:8px}.batch-plan-actions .secondary{font-size:11px;padding:8px 12px}.batch-plan-actions [aria-pressed="true"]{background:#dfe9d3;border-color:#7b995d}.batch-categories{display:flex;flex-wrap:wrap;gap:6px;margin:18px 0 12px}.batch-categories button{padding:8px 11px;border:1px solid var(--line);border-radius:6px;color:#556a47;background:#f7f9f1;font-size:12px}.batch-categories button[aria-pressed="true"]{background:#3e6141;color:#fff;border-color:#3e6141}.parent-trait{display:block;color:#7d896f;font-size:10px;margin:4px 0}#development .decision-reproduction{padding:12px 16px}#development .decision-reproduction h3{font-size:14px;margin:0}#development .decision-reproduction p{margin:6px 0}#development .decision-reproduction .secondary{padding:8px 12px;font-size:11px}.resource-sub{overflow-wrap:anywhere}@media(max-width:500px){.batch-reserve-line{flex-direction:column;gap:4px}.batch-gene-summary>span{flex:1 1 43%}.batch-categories button{font-size:11px;padding:8px}.offspring-plan-overview{padding:12px}}

/* Soil fields stay below the roots; controls and scale remain readable on phones. */
.soil-scale{position:absolute;left:22px;bottom:41px;display:flex;align-items:center;gap:7px;padding:5px 9px;border-radius:5px;background:#f6f6eceb;color:#3b4d40;font-size:9px;pointer-events:none}
.soil-scale{max-width:calc(100% - 30px)}.soil-scale[hidden]{display:none}.soil-scale strong{font-weight:600}.soil-scale i{width:70px;height:5px;border-radius:3px;background:linear-gradient(90deg,#71776d,#c28944)}
.soil-scale small{font-size:8px;color:#68725f}
@media(max-width:750px){.world-tools{right:12px}.soil-scale{left:15px;bottom:38px;gap:5px}.soil-scale small{max-width:123px;line-height:1.3}}

/* Compact desktop controls adapt to the available viewport. */
@media(min-width:751px){
 .header{height:52px;margin:0 24px}
 .brand{font-size:17px;gap:9px}.brandmark{font-size:38px}.brand small{font-size:7px}
 main{max-width:1800px;padding:10px 24px 0}
 .page-title{height:46px;margin:0 0 10px;align-items:center}
 .page-title h1{font-size:27px;line-height:1.15;margin:3px 0 0}
 .page-title .eyebrow{font-size:8px}.page-title>p{font-size:11px}
 .game-shell{height:calc(100vh - 128px);height:calc(100dvh - 128px);display:flex;flex-direction:column;min-height:360px}
 .world-toolbar{flex:none;min-height:50px;padding:5px 16px}
 .restart-button{min-height:34px;padding:6px 10px;font-size:11px}
 .season-icon{font-size:26px}
 .game-body{flex:1 1 0;min-height:0;grid-template-columns:minmax(0,1fr) 290px}
 .world{height:100%;min-height:0}.world canvas{position:absolute;inset:0}
 .status-panel{min-height:0;overflow-y:auto;padding:14px 16px;scrollbar-width:thin;overscroll-behavior:contain}
 .status-panel h2{font-size:24px;line-height:1.15;margin:7px 0 3px}
 .age{margin-bottom:10px}.health-track{margin:5px 0 12px}
 .resource{margin-bottom:10px}.stress-box{padding-top:8px}
 .diagnosis{margin:6px 0 9px;min-height:0}
 .development-btn{padding:9px 11px}.seed-button{margin-top:9px}
 .allocation{flex:none;gap:20px;padding:11px 18px}
 .allocation-title{min-width:176px;padding-right:18px}.allocation-title select{width:160px}
 .allocation-title h3{font-size:14px;margin:2px 0}
 .sliders{gap:16px}.slider input[type=range]{margin:10px 0 7px}
 .reproduction-panel{max-height:none;overflow:visible}
 .hazard-banner,.succession-banner{flex:none}
 .hazard-banner{padding:7px 16px}
 .succession-banner{padding:10px 16px;gap:16px}
 .succession-banner strong{font-size:18px}.succession-banner p{font-size:11px;margin:4px 0 0}
 .succession-banner .primary{min-height:38px;font-size:11px}
 .below{margin-top:20px}
}
@media(min-width:751px) and (max-height:850px){
 .page-title{display:none}
 .game-shell{height:calc(100vh - 72px);height:calc(100dvh - 72px)}
 .game-body{grid-template-columns:minmax(0,1fr) 330px}
 .status-panel{padding:12px 14px}
 .tree-status{display:grid;grid-template-columns:1fr 1fr;column-gap:12px}
 .tree-status>.panel-heading,.tree-status>h2,.tree-status>.age,.tree-status>.health-row,.tree-status>.health-track,.tree-status>.resources,.tree-status>.stress-box,.tree-status>.diagnosis{grid-column:1/-1}
 .tree-status>.resources{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:9px 12px;margin:2px 0 12px}
 .tree-status .resource{grid-template-columns:17px minmax(0,1fr) auto;gap:4px;margin:0;align-items:start}
 .tree-status .resource:last-child{grid-column:1/-1}
 .tree-status .resource-icon{font-size:15px}.tree-status .resource-value{font-size:11px}
 .tree-status .resource-name{font-size:10px}.tree-status .resource-sub{font-size:9px;line-height:1.35}
 .tree-status .resource-bar{margin-top:4px}
 .tree-status>.development-btn,.tree-status>.seed-button{align-self:stretch;min-height:38px;margin:0;font-size:10px;line-height:1.45}
 .tree-status>.seed-button{padding:6px 0}
 .tree-status.is-dead>*{grid-column:1/-1}
}
@media(min-width:751px) and (max-width:1100px){
 .header{margin:0 16px}main{padding-left:16px;padding-right:16px}
 .allocation-title{min-width:148px;padding-right:12px}.allocation-title select{width:140px}
 .allocation{gap:14px;padding:10px 14px}.sliders{gap:12px}
 .slider-label{font-size:9px}.slider small{font-size:8px}
 .game-body{grid-template-columns:minmax(0,1fr) 300px}
}
@media(min-width:751px) and (max-height:620px){
 .header{height:44px}.brandmark{font-size:32px}.brand small{display:none}
 main{padding-top:6px}.game-shell{height:calc(100vh - 58px);height:calc(100dvh - 58px)}
 .status-panel{padding:10px 14px}
 .status-panel h2{font-size:21px;margin:4px 0 2px}.age{margin-bottom:6px}
 .tree-status>.resources{gap:7px 10px;margin-bottom:8px}.health-track{margin-bottom:8px}
 .allocation{padding-top:8px;padding-bottom:8px}
}


/* Keep the latest forest event in view; the full journal opens above the scene. */
.header-identity{flex:none;min-width:0}
.header-identity .location{display:flex;gap:7px;font-size:10px;line-height:1.4;margin:3px 0 0 47px;white-space:nowrap}
.header-identity .brand small{display:none}
.header{gap:24px;border-bottom:0}
.header-actions{flex:none;gap:14px;white-space:nowrap}
.header-journal{display:flex;flex-direction:column;justify-content:flex-start;flex:1;min-width:0;max-width:720px;text-align:left;padding:7px 12px;border:1px solid var(--line);border-radius:7px;background:#f0f3e8}
.journal-caption{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;color:#758465;line-height:1.2}
.journal-caption .eyebrow{font-size:8px;letter-spacing:1.3px}
#latest-events{width:100%;display:grid;gap:6px;margin-top:8px;font-size:11px;line-height:1.5;min-width:0}
.event-preview{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.event-preview.good{color:#506f40}.event-preview.bad{color:#956740}
.header-side{flex:none}.header-side .header-actions{justify-content:flex-end}
.header-motto{font-size:11px;color:var(--muted);margin:18px 0 0;text-align:right}
.events-popover{position:fixed;inset:120px auto auto 50%;transform:translateX(-50%);margin:0;width:580px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 144px);overflow-y:auto;overscroll-behavior:contain;padding:22px;border:1px solid #ccd7bf;border-radius:12px;background:#fafbf5;color:var(--ink);box-shadow:0 18px 60px #263d3230}
.events-popover::backdrop{background:#263d3210}
.events-popover h2{font-size:25px;margin:0}
.events-popover .panel-heading{margin-bottom:14px;gap:16px}
.events-popover .round{flex:none}
.journal-list .journal-entry{font-size:12px;line-height:1.6;padding:9px 0;margin:0;border-bottom:1px solid var(--line)}
.journal-list time{font-size:10px;padding-top:3px;flex:none}
.forest-summary{margin:18px 0}
.events-popover .field-note{padding-top:14px;border-top:1px solid var(--line)}
.events-popover footer{display:block;margin-top:18px;padding-bottom:0}
.events-popover footer>span{display:block;margin-bottom:6px}
@media(min-width:751px){
 body{height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden}
 .header{height:128px;min-height:128px;flex:none}
 .header-journal{height:106px;padding:10px 12px;align-self:flex-start;margin-top:12px}
 .header-identity .page-title{height:auto;margin:12px 0 0}
 .header-identity .page-title h1{font-size:25px;white-space:nowrap;margin:0}
 main{width:100%;flex:1;min-height:0;display:flex;flex-direction:column;padding-top:8px;padding-bottom:10px}
 .page-title{flex:none}
 .game-shell{height:auto;min-height:0;flex:1}
 .game-body{overflow:hidden}
}
@media(min-width:751px) and (max-width:1100px){
 .header{gap:12px}.header-motto{display:none}.header-actions{gap:9px}.header-actions .quiet{font-size:10px}.header-actions .version{display:none}
 .header-identity .brand{font-size:15px}.header-identity .location{font-size:9px;margin-left:0}
}
@media(min-width:751px) and (max-height:620px){
 .header{height:112px;min-height:112px}.header-journal{height:92px;margin-top:10px;padding:7px 12px}.events-popover{top:104px;max-height:calc(100dvh - 120px)}
}
@media(max-width:750px){
 .header{display:grid;grid-template-columns:minmax(0,1fr) auto;height:auto;gap:10px 8px;padding:12px 0}
 .header-identity .location{font-size:9px;gap:5px;margin-left:0;white-space:normal;flex-wrap:wrap}
 .header-actions{gap:8px}.header-actions .quiet{font-size:10px}
 .header-journal{grid-column:1/-1;grid-row:2;width:100%;max-width:none}
 .header-identity .brandmark{font-size:32px}.header-motto{display:none}
 .events-popover{top:16px;max-height:calc(100dvh - 32px);padding:18px}
 main{padding-top:12px}.page-title{display:none}
}
/* The collection follows the quiet field-journal visual language. */
#achievements{width:850px;max-width:calc(100vw - 24px);padding:28px}
.achievement-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:12px}
.achievement-heading h2{margin:0}.achievement-heading>strong{font-size:15px;color:#637653;white-space:nowrap}
.achievement-intro{font-size:14px;line-height:1.6}.achievement-storage-note{font-size:11px!important;color:#737b6b;line-height:1.6}
.achievement-group h3{font-size:13px;letter-spacing:1px;margin:26px 0 12px;color:#637653}
.achievement-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.achievement-card{display:flex;flex-direction:column;min-width:0;border:1px solid #e0e4d7;border-radius:12px;padding:18px;background:#fafbf6}
.achievement-card.is-earned{background:#edf2e5;border-color:#cbd8bd}
.achievement-card-top{display:flex;align-items:center;gap:9px;color:#738465}.achievement-card-top .eyebrow{font-size:9px}
.achievement-symbol{font-size:22px;line-height:1}.achievement-card h4{font-size:19px;margin:12px 0 8px;font-weight:500}
.achievement-card .achievement-condition{font-size:12px;line-height:1.65;margin:0 0 16px;color:#626c59}
.achievement-proof{font-size:12px!important;line-height:1.6;color:#45613a;border-top:1px solid #d1ddc4;padding-top:12px;margin-top:auto!important}
.achievement-place{font-size:10px;color:#77816d}.achievement-empty{font-size:13px;color:#737d68}
.achievement-life{margin-top:28px;padding-top:20px;border-top:1px solid #dce1d2}.achievement-life h3{font-size:18px}.achievement-life>p{font-size:12px}
.life-mark-list{display:flex;flex-wrap:wrap;gap:7px}.life-mark{font-size:11px;background:#edf0e5;color:#536a45;border:1px solid #d8dfca;border-radius:20px;padding:6px 10px}
.life-marks{margin:16px 0 24px}.life-marks h3{font-size:15px}
.achievement-notice{position:fixed;bottom:20px;left:20px;z-index:25;display:flex;align-items:flex-start;width:330px;max-width:calc(100vw - 40px);padding:13px 14px;background:#f4f7ed;border:1px solid #cad7b9;border-radius:10px;box-shadow:0 5px 25px #334c3520}
.achievement-notice button{background:none;border:0;text-align:left;padding:0}.achievement-notice .eyebrow{display:block;font-size:8px;color:#708260;margin-bottom:6px}
#achievement-notice-open{flex:1}#achievement-notice-text{display:block;font-size:13px;line-height:1.5}#achievement-notice-close{font-size:20px;padding-left:12px;color:#748267}
#achievement-count{font-size:10px;background:#e9eedf;border-radius:10px;padding:2px 5px;color:#61734f}
#achievement-save-warning{font-size:12px;color:#925a33}
@media(max-width:750px){#achievements{padding:20px 16px}.achievement-grid{grid-template-columns:1fr}.achievement-card{padding:16px}.header-side{max-width:180px}.header-side .header-actions{flex-wrap:wrap;white-space:normal;justify-content:flex-end}.achievement-heading h2{font-size:30px}.achievement-notice{bottom:12px;left:12px;max-width:calc(100vw - 24px)}}

.achievement-undiscovered{text-align:center;padding:34px 24px;margin:24px 0;background:#f0f3e9;border:1px solid #dce3d2;border-radius:12px}
.achievement-empty-symbol{display:block;font:48px Georgia,serif;color:#81956d;margin-bottom:12px}
.achievement-undiscovered h3{font:normal 24px/1.3 Georgia,serif}.achievement-undiscovered p{max-width:410px;margin:12px auto 0;color:#6a785e;font-size:13px;line-height:1.7}

/* Three ways to reproduce share one energy reserve. */
.reproduction-method-section h3{display:flex;justify-content:space-between;gap:12px;font-size:17px}
.reproduction-method-section h3 small{font-size:11px;color:#79816e;font-weight:400}
.reproduction-methods{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0 22px}
.reproduction-method{display:flex;flex-direction:column;gap:8px;min-width:0;text-align:left;padding:16px;border:1px solid #d8dfcd;border-radius:10px;background:#fafbf6;color:#46533d}
.reproduction-method.active{background:#edf3e4;border-color:#758e5e;box-shadow:inset 0 0 0 1px #758e5e}
.reproduction-method .method-symbol{font-size:23px;color:#829565;min-height:30px}.reproduction-method strong{font-size:16px}.reproduction-method b{font-size:12px}.reproduction-method span:not(.method-symbol){font-size:11px;line-height:1.6}.reproduction-method .con{color:#83745e}
.rooting-card{border-left:3px solid #9cab78}
@media(max-width:600px){.reproduction-methods{grid-template-columns:1fr}.reproduction-method{gap:5px;padding:12px}.reproduction-method .method-symbol{display:none}.reproduction-method-section h3{display:block}.reproduction-method-section h3 small{display:block;margin-top:6px}}

.seed-type-unavailable .trait-card:disabled,.seed-type-unavailable .trait-card.active:disabled{opacity:.45;border-color:var(--line);background:transparent}

.architecture-description{display:block;color:var(--ink,#353b30)}.architecture-habitat{display:block;color:#58654b}.trait-card strong{overflow-wrap:anywhere}

/* Six inherited bark strategies. */
#development .trait-options.bark-options{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:600px){#development .trait-options.bark-options{grid-template-columns:repeat(2,minmax(0,1fr))}}
.bark-note{font-size:14px!important;line-height:1.5!important}.bark-preview{height:100px}
@media(max-width:360px){#development .trait-options.bark-options{grid-template-columns:1fr}}

/* Tree field notes stay within the scene; clicking also works on touch screens. */
.tree-tooltip{box-sizing:border-box;width:max-content;overflow:auto;font-size:12px;line-height:1.5;overscroll-behavior:contain}
.tree-tooltip.is-pinned{pointer-events:auto}
.tree-type{border-bottom:1px solid #c6cebd;padding:8px 0 10px;margin-bottom:9px;color:#334331}
.tree-type .tree-type-name{font-size:20px;line-height:1.3}.tree-type-name small{font:12px sans-serif;color:#52614c;margin-left:6px}
.tree-type p{font-size:14px;line-height:1.45;margin:7px 0}.tree-type .tree-type-evidence{font-size:12px;color:#4e5c47}
.tree-type small,.tree-tooltip-hint{font-size:12px;line-height:1.4;display:block;color:#5d6757}.tree-type-name small{display:inline}
.tree-type a{color:#345d35;text-decoration:underline}.tree-tooltip-hint{margin-top:8px;border-top:1px solid #d4ddc9;padding-top:7px}

.soil-ph-note{font-size:1rem;line-height:1.5;padding:.65rem .8rem;border-left:3px solid #7a9a6d;background:#7a9a6d12;}
#soil-name{text-transform:none;}

/* Species ecology: shared by the field card, journal and trait planner. */
.species-ecology{margin:12px 0;padding:12px 0;border-top:1px solid var(--line);font-size:1rem;line-height:1.5;overflow-wrap:anywhere}
.species-ecology p{margin:8px 0;font-size:1rem;line-height:1.5}
.species-ecology small{display:block;font-size:.875rem;line-height:1.5}
.species-ecology .ecology-sources{font-size:.875rem}
.species-ecology a{color:var(--green);text-decoration:underline}
.ecology-observation{padding:10px 12px;border-left:3px solid #7a8f83;background:#7a8f830d;font-size:.875rem;line-height:1.5;overflow-wrap:anywhere}

#death-pause{width:36rem;max-width:calc(100vw - 32px)}#death-pause p,#death-pause .primary{font-size:1rem}#death-pause .eyebrow{font-size:.875rem}#death-pause .death-successor{margin:1.25rem 0;padding:1rem 1.25rem;border:1px solid #c7d0bb;border-radius:12px;background:#eef1e7}#death-pause .death-successor p{margin:0}#death-pause .primary{width:100%;white-space:normal}#death-title:focus{outline:none}
