:root{color-scheme:dark;--ink:#edf1db;--muted:#9aafa4;--dim:#7e998e;--lime:#d9e9ab;--green:#a4d69b;--panel:rgba(22,48,43,.86);--line:rgba(199,225,188,.13);font-family:Inter,"Segoe UI",system-ui,-apple-system,sans-serif;font-synthesis:none}
*{box-sizing:border-box}html,body{margin:0;overflow:hidden;width:100%;height:100%;background:#102e2e}button,a,input{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;color:inherit;border:0;background:none}button:focus-visible,a:focus-visible{outline:2px solid var(--lime);outline-offset:4px}button:hover{color:var(--lime)}button:disabled{opacity:.4;cursor:default}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.icon-definitions{position:absolute;width:0;height:0;overflow:hidden}#game{position:relative;width:100%;height:100dvh;min-height:360px;isolation:isolate}#world{position:absolute;inset:0;width:100%;height:100%;touch-action:none;cursor:grab}#world.using-tool{cursor:crosshair}#world.dragging{cursor:grabbing}.vignette{position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,rgba(12,36,33,.9),transparent 32%,transparent 80%,rgba(12,36,33,.3)),linear-gradient(0deg,rgba(12,35,32,.65),transparent 25%,transparent 75%,rgba(12,35,32,.45));z-index:1}.topbar{position:absolute;top:0;left:0;right:0;height:100px;display:flex;align-items:center;justify-content:space-between;padding:0 35px;z-index:5;pointer-events:none}.topbar>*{pointer-events:auto}.brand{display:flex;align-items:center;gap:14px}.brand>span:last-child{font-size:35px;font-weight:760;letter-spacing:-1.7px;line-height:1}.brand-dot{color:#b6d98d}.brand small{display:block;color:var(--muted);font-size:10px;line-height:2;letter-spacing:1.1px;font-weight:400}.brandmark{width:37px;height:42px;position:relative;display:block;transform:rotate(-3deg)}.brandmark i{position:absolute;width:22px;height:24px;clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);background:linear-gradient(145deg,#d6e8ac 30%,#82b57f 31%,#82b57f 68%,#578a65 69%)}.brandmark i:first-child{top:0;left:8px}.brandmark i:nth-child(2){top:17px;left:0}.brandmark i:nth-child(3){top:17px;left:20px}.glass{background:var(--panel);border:1px solid var(--line);box-shadow:0 12px 40px #071b2226;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}.world-clock{display:flex;align-items:center;gap:13px;border-radius:16px;padding:11px 19px;position:absolute;left:50%;transform:translateX(-50%);font-size:12px}.season-symbol{font-size:28px;color:var(--lime);line-height:1}.world-clock strong{font-size:13px;font-weight:600;white-space:nowrap}.world-clock strong span{color:var(--muted);font-weight:400}.world-clock small{display:block;margin-top:4px;font-size:10px;color:var(--muted)}.clock-line{height:25px;width:1px;background:var(--line);margin:0 2px}#weather{color:#b6c7a9;font-size:11px;white-space:nowrap}.header-actions{display:flex;align-items:center;gap:7px}.icon-button{display:inline-flex;align-items:center;justify-content:center;min-width:36px;min-height:36px;border-radius:10px;color:#bbccc0;transition:background .2s}.icon-button:hover{background:#d5e7b815}.icon-button svg{width:19px;height:19px}.icon-button.small{width:25px;min-width:25px;min-height:25px}.save-state{font-size:10px;letter-spacing:.2px;color:var(--dim);margin-right:12px;white-space:nowrap}.save-state i,.live-label i,.running-dot,.tiny-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--green)}.save-state i{width:4px;height:4px;margin-right:4px}.overview{position:absolute;top:135px;left:36px;width:230px;z-index:3;pointer-events:none}.live-label{display:flex;align-items:center;gap:8px;font-size:9px;color:#c1d8b7;letter-spacing:1.7px;font-weight:600}.live-label i{box-shadow:0 0 12px #9ccc7970}.live-label span{font-size:8px;color:#78998b;letter-spacing:.6px;margin-left:2px}h1{font-weight:530;font-size:35px;letter-spacing:-1.6px;line-height:1.16;margin:23px 0 14px}h1 em{font-weight:450;font-family:Georgia,serif;font-size:36px;color:#cee1ae;letter-spacing:-1.3px}.intro{font-size:11px;line-height:1.8;color:var(--muted);margin:0 0 29px}.population-card{border-radius:17px;padding:18px 17px 13px;pointer-events:auto}.section-label{font-size:9px;letter-spacing:1.5px;font-weight:600;color:#a9bca5;display:flex;align-items:center;justify-content:space-between}.section-label svg{width:15px;height:15px;color:#b5c9a7}.pop-value{display:flex;align-items:center;gap:12px;margin-top:9px}.pop-value>strong{font-size:47px;letter-spacing:-2px;line-height:1.2;font-weight:500}.pop-value>span{font-size:9px;color:#b0ca92;line-height:1.6;max-width:80px}.sparkline{width:100%;height:43px;margin-top:10px;stroke-linejoin:round}.population-footer{display:flex;justify-content:space-between;font-size:9px;color:#9cb196;margin-top:6px}.population-footer b{font-weight:400}.tiny-dot{width:4px;height:4px;margin-right:5px}.ecosystem{padding:22px 5px 0}.metric{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;margin-top:19px;font-size:10px;color:#adbfaa}.metric>span{display:flex;align-items:center;gap:7px}.metric svg{width:13px;height:13px;color:#a8d7a2}.metric b{font-size:10px;font-weight:500;color:#d2dfbf}.metric>div{width:100%;height:3px;background:#d0e0b410;margin-top:9px;border-radius:5px}.metric>div i{display:block;height:100%;width:100%;border-radius:5px;background:#99c793;transition:width .5s}.metric.happiness>div i{background:#d4c78c}.metric.happiness svg{color:#d4c78c}.era{display:flex;align-items:center;gap:10px;border-top:1px solid var(--line);padding-top:19px;margin-top:23px}.era>svg{width:24px;height:24px;color:#d8cb93}.era small{display:block;font-size:8px;letter-spacing:1.6px;color:var(--dim)}.era strong{display:block;font-size:12px;font-weight:500;margin-top:5px;color:#cfdec0}.resources{position:absolute;left:50%;transform:translateX(-50%);top:116px;padding:12px 23px;display:flex;gap:25px;border-radius:13px;z-index:2}.resources>div{display:grid;grid-template-columns:18px auto;column-gap:7px;align-items:center}.resources svg{width:16px;height:16px;grid-row:1/3}.resources strong{font-size:13px;font-weight:600}.resources div>span:last-child{font-size:8px;color:#a4b59d;margin-top:2px}.resources .stone-icon{grid-row:1/3;color:#b1bfc6;font-size:18px}.food-color{color:#e2b783}.wood-color{color:#a9c889}.knowledge-color{color:#c1addd}.inspector{position:absolute;right:30px;top:136px;width:252px;border-radius:18px;padding:16px 18px;z-index:4}.inspector-top{display:flex;align-items:center;justify-content:space-between}.inspector-top .section-label{font-size:8px;letter-spacing:1px}.identity{display:flex;align-items:center;gap:9px;margin:11px 0 14px}.identity canvas{width:65px;height:65px;background:radial-gradient(#8ca37920,transparent);border-radius:50%}.identity h2{font-size:25px;letter-spacing:-.8px;font-weight:500;margin:0 0 5px}.identity span{font-size:9px;color:#bad19e}.identity small{font-size:9px;color:var(--muted);display:block;margin-top:4px}.task{font-size:10px;color:#d5e6bf;background:#b9d6940e;border:1px solid #bad29115;border-radius:7px;padding:9px;display:flex;align-items:center;gap:7px}.task i{width:5px;height:5px;border-radius:50%;background:#bad68e}.agent-needs{margin-top:13px}.need{display:flex;align-items:center;font-size:9px;gap:8px;margin:11px 0;color:#b3c2a8}.need label{width:42px}.need>div{height:4px;background:#bfd3ac15;flex:1;border-radius:5px;overflow:hidden}.need i{display:block;height:100%;background:#b7d597}.need b{width:24px;font-size:9px;text-align:right;font-weight:400;color:#d7e0c5}.genes-title{display:flex;align-items:center;gap:6px;font-size:9px;border-top:1px solid var(--line);padding-top:14px;margin-top:17px;color:#bccdae}.genes-title svg{width:13px;height:13px;color:#cfbcdf}.genes-title span{margin-left:auto;font-size:8px;color:#bca9cd}.genes{margin-top:11px;display:flex;gap:6px;flex-wrap:wrap}.gene{display:flex;align-items:center;gap:5px;font-size:8px;border:1px solid #c0dbb619;border-radius:5px;padding:5px 6px;color:#b7c7a9}.gene b{font-size:9px;color:#e0e9cb;font-weight:500}.family{font-size:9px;color:#91a88e;line-height:1.6;min-height:14px;margin:13px 0}.follow-button{width:100%;font-size:10px;border:1px solid #cfdfa426;padding:9px;border-radius:8px;display:flex;justify-content:center;gap:8px;align-items:center}.follow-button svg{width:14px;height:14px}.follow-button.active{background:#d9e9ab;color:#1e4236}.world-hint{position:absolute;right:44px;top:205px;width:185px;z-index:2;color:#bacba8}.world-hint small{font-size:8px;letter-spacing:2px;color:#91b397}.world-hint h2{font-family:Georgia,serif;font-size:25px;line-height:1.24;font-weight:400;letter-spacing:-.7px;margin:13px 0}.world-hint p{font-size:10px;color:#89a58e;line-height:1.9}.world-hint button{font-size:10px;border-bottom:1px solid #b5cd9829;padding:5px 0 8px;margin-top:7px}.world-hint button span{margin-left:23px;color:#d3dcab}.orbit{display:block;width:77px;height:65px;position:relative;margin-bottom:25px;color:#d9d5a0}.orbit i{position:absolute;border:1px solid #b7d59330;left:5px;right:5px;top:16px;bottom:16px;border-radius:50%;transform:rotate(-35deg)}.orbit i:nth-child(2){transform:rotate(35deg)}.orbit i:nth-child(3){transform:rotate(90deg)}.orbit b{position:absolute;left:29px;top:18px;font-size:22px;font-weight:400}.chronicle{position:absolute;left:39px;bottom:48px;width:225px;z-index:3}.chronicle>.section-label{margin-bottom:15px}.chronicle>.section-label>span{display:flex;align-items:center;gap:9px}.chronicle>.section-label .tiny-dot{background:#a7ba89}.chronicle svg{width:13px;height:13px}.event{border-left:1px solid #b1cb9630;position:relative;padding:0 0 13px 14px;margin-left:5px}.event::before{content:'';width:4px;height:4px;background:#c3d2a2;position:absolute;left:-2.5px;top:3px;border-radius:50%}.event small{font-size:8px;color:#779781}.event p{font-size:10px;line-height:1.6;margin:4px 0 0;color:#b2c3a5}.event:nth-child(3){opacity:.45}.scene-caption{position:absolute;bottom:211px;left:54%;transform:translateX(-50%);display:flex;align-items:center;gap:11px;pointer-events:none;z-index:2;white-space:nowrap;color:#c0d0ad;font-size:8px;letter-spacing:2px}.scene-caption i{height:1px;width:22px;background:#a3c49e60}.scene-caption small{letter-spacing:.6px;font-size:8px;color:#7f9f8e}.timeline{position:absolute;left:50%;bottom:144px;transform:translateX(-50%);display:flex;align-items:center;gap:6px;padding:5px 12px 5px 6px;border-radius:12px;z-index:4}.timeline .icon-button{min-width:31px;min-height:30px}.timeline .icon-button svg{width:15px;height:15px}.timeline-divider{height:15px;width:1px;background:var(--line);margin:0 4px}.speed{font-size:10px;padding:7px 9px;color:#8ea991;border-radius:6px}.speed.active{color:#e6eccb;background:#c1d59918}.running-dot{width:5px;height:5px;margin:0 6px;box-shadow:0 0 10px #b5db9640}.running-dot.paused{background:#d7bc7e;box-shadow:none}.view-controls{position:absolute;right:32px;bottom:44px;display:flex;align-items:center;flex-direction:column;padding:5px;border-radius:12px;z-index:4}.view-controls button{font-size:21px;min-width:30px;min-height:31px}.view-controls>span{font-size:8px;color:#a0b795;padding:4px 0}.view-controls>div{width:17px;height:1px;background:var(--line);margin:4px}.view-controls svg{width:16px;height:16px}.tool-area{position:absolute;left:50%;transform:translateX(-50%);bottom:32px;z-index:4;width:max-content;max-width:calc(100% - 32px)}.tool-heading{display:flex;justify-content:space-between;align-items:center;padding:0 5px 11px;font-size:10px;color:#a4bc9e;gap:20px}.influence{display:flex;align-items:center;gap:5px;white-space:nowrap;color:#d5dfac}.influence svg{width:13px;height:13px}.influence b{font-size:11px;font-weight:500}.influence>span{font-size:9px;color:#8fa987}.toolbar{display:flex;align-items:center;padding:8px;gap:4px;border-radius:17px;overflow-x:auto;scrollbar-width:none}.toolbar::-webkit-scrollbar{display:none}.tool{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;position:relative;min-width:69px;height:66px;color:#a0b8a0;border-radius:11px;transition:all .2s}.tool svg{width:23px;height:23px;stroke-width:1.45}.tool span{font-size:9px;white-space:nowrap}.tool>small{position:absolute;top:4px;right:5px;color:inherit;font-size:7px;opacity:.4}.tool:hover{background:#b9d39210;transform:translateY(-2px)}.tool.active{color:#213e31;background:#d8e5b0;box-shadow:0 4px 20px #061b2420}.tool.active svg{stroke-width:1.7}.tool.destructive{color:#d2a790}.tool.destructive.active{color:#493527;background:#e1bb99}.tool-separator{height:32px;width:1px;min-width:1px;background:var(--line);margin:0 4px}.hover-label{position:fixed;z-index:5;pointer-events:none;padding:6px 9px;background:#15382de8;border:1px solid #b3d69830;color:#e2e8c7;font-size:10px;border-radius:6px;white-space:nowrap}.toast{position:absolute;left:50%;transform:translateX(-50%);top:190px;background:#183e33f2;border:1px solid #b7d59345;border-radius:10px;padding:12px 20px;color:#e3eccb;font-size:12px;z-index:10;max-width:calc(100% - 32px);box-shadow:0 8px 35px #071b2255;pointer-events:none;line-height:1.5}.empty-world{position:absolute;top:42%;left:50%;transform:translate(-50%,-50%);width:320px;padding:25px;text-align:center;border-radius:20px;z-index:3}.empty-world>svg{width:30px;height:30px;color:#d7e9aa}.empty-world h2{font-family:Georgia,serif;font-weight:400;font-size:24px}.empty-world p{font-size:12px;color:#a8bea0;line-height:1.7}.empty-world button{background:#d8e5b0;color:#253b2c;padding:10px 18px;border-radius:7px;font-size:12px}.noscript{position:fixed;inset:30%;z-index:100;background:#193e33;padding:25px}
dialog{color:var(--ink);background:#17382f;border:1px solid #b3c99945;border-radius:24px;width:min(700px,calc(100% - 32px));max-height:85dvh;padding:28px 34px;box-shadow:0 40px 150px #031a2080;overflow:auto}dialog::backdrop{background:#051c22a1;backdrop-filter:blur(7px)}.dialog-header{display:flex;justify-content:space-between;align-items:center}.eyebrow{font-size:9px;color:#abc391;letter-spacing:2px}dialog h2{font-size:32px;font-weight:500;letter-spacing:-1px;margin:16px 0;line-height:1.2}dialog h2 em{font-family:Georgia,serif;font-weight:400;color:#d4e4aa}dialog>p{font-size:12px;line-height:1.9;color:#b4c6aa}.help-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px 32px;margin:25px 0}.help-grid svg{width:23px;height:23px;color:#c8d9a4}.help-grid h3{font-size:12px;font-weight:600;margin:9px 0 6px}.help-grid p{font-size:11px;line-height:1.8;color:#a6bda0;margin:0}.shortcuts{display:flex;gap:14px;flex-wrap:wrap;border-block:1px solid #b8ce9a20;padding:15px 0;font-size:9px;color:#a2b796}.shortcuts span{display:flex;gap:5px;align-items:center}kbd{font:inherit;background:#b0c08f13;border:1px solid #b0c08f20;border-radius:4px;padding:4px 6px;color:#dee4be}.dialog-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:24px;flex-wrap:wrap}.primary,.secondary{font-size:11px;padding:12px 15px;border-radius:9px;display:inline-flex;align-items:center;gap:8px}.primary{background:#d7e5ac;color:#20392c}.primary:hover{color:#20392c;background:#e9f4c5}.primary span{margin-left:8px}.secondary{border:1px solid #b2c39530;color:#bdcfae}.secondary svg{width:14px;height:14px}.secondary.danger{color:#d0b294;border-color:transparent}.privacy{display:block;font-size:9px;color:#7f9e81;line-height:1.6;margin-top:20px}
@media(min-width:1650px){.overview{left:48px;top:155px;width:248px}h1{font-size:40px}h1 em{font-size:40px}.world-hint{right:65px;top:240px}.chronicle{left:50px;bottom:55px}.topbar{padding-inline:47px}.inspector{right:45px;top:155px}}
@media(max-height:850px) and (min-width:901px){.overview{top:118px}.overview h1{font-size:29px;margin:15px 0 10px}.overview h1 em{font-size:30px}.intro{margin-bottom:16px}.population-card{padding:13px}.pop-value>strong{font-size:39px}.sparkline{height:25px}.ecosystem{padding-top:16px}.metric{margin-top:13px}.era{margin-top:15px;padding-top:13px}.chronicle{bottom:35px}.event:nth-child(n+3){display:none}.world-hint{top:190px}.scene-caption{bottom:195px}.tool-area{bottom:24px}.timeline{bottom:132px}.resources{top:105px}.topbar{height:85px}}
@media(max-width:1100px){.overview{width:190px;left:24px}h1{font-size:30px}h1 em{font-size:31px}.chronicle{left:27px;width:185px}.world-hint{right:25px;width:140px}.world-hint h2{font-size:22px}.world-hint p{font-size:9px}.tool{min-width:59px}.tool-area{left:53%}.scene-caption{left:54%}.inspector{right:20px;width:232px}.save-state{display:none}.topbar{padding:0 23px}.brand>span:last-child{font-size:30px}.resources{gap:19px;padding:11px 16px}}
@media(max-width:900px){.topbar{height:81px;padding:0 18px}.brand small{font-size:8px;letter-spacing:.5px}.brand>span:last-child{font-size:28px}.brandmark{transform:scale(.8);margin-right:-6px}.world-clock{padding:9px 12px;gap:8px;left:53%;border-radius:12px}.clock-line,#weather{display:none}.season-symbol{font-size:24px}.world-clock strong{font-size:11px}.world-clock small{font-size:9px}.header-actions{gap:0}.header-actions .icon-button{min-width:31px}.overview{top:94px;left:20px;width:160px}.overview h1{font-size:24px;margin:15px 0 11px}.overview h1 em{font-size:25px}.intro{display:none}.live-label{font-size:7px;letter-spacing:1.1px}.live-label span{display:none}.population-card{padding:12px;border-radius:12px}.pop-value>strong{font-size:35px}.pop-value>span{font-size:8px}.population-card .section-label{font-size:8px}.sparkline{height:26px;margin-top:4px}.population-footer{font-size:8px}.ecosystem{padding-top:17px}.ecosystem>.section-label{font-size:8px;letter-spacing:1px}.metric{font-size:9px;margin-top:15px}.era{padding-top:13px;margin-top:16px}.resources{top:94px;left:57%;padding:10px 14px;gap:15px}.resources strong{font-size:11px}.resources svg{width:14px;height:14px}.resources>div{grid-template-columns:15px auto;column-gap:5px}.resources div>span:last-child{font-size:7px}.world-hint{display:none}.chronicle{left:23px;width:155px;bottom:31px}.chronicle .section-label{font-size:7px;letter-spacing:1px}.event p{font-size:9px}.event:nth-child(n+3){display:none}.tool-area{left:54%;bottom:22px;max-width:calc(100% - 52px)}.tool{min-width:53px;height:60px;gap:6px}.tool svg{width:21px;height:21px}.tool span{font-size:8px}.toolbar{padding:6px;gap:2px;border-radius:14px}.tool-separator{margin:0 2px}.tool-heading{font-size:9px}.timeline{bottom:122px;left:54%}.scene-caption{bottom:180px;left:55%}.view-controls{right:18px;bottom:180px}.inspector{width:225px;right:18px;top:155px}.inspector .identity{margin-top:7px}.inspector .identity h2{font-size:23px}}
@media(max-width:650px){.topbar{height:72px;padding:0 13px}.brand{gap:7px}.brandmark{transform:scale(.7);margin-left:-4px;margin-right:-7px}.brand>span:last-child{font-size:25px}.brand small{font-size:7px;letter-spacing:.3px;margin-top:3px}.world-clock{left:54%;gap:6px;padding:7px 10px}.world-clock strong{font-size:10px}.world-clock small{font-size:8px}.season-symbol{font-size:20px}.header-actions .icon-button{min-width:29px;min-height:32px}.header-actions #sound{display:none}.header-actions .icon-button svg{width:17px;height:17px}.overview{top:85px;left:15px;width:calc(100% - 30px);display:flex;align-items:center;gap:9px}.overview .live-label,.overview h1,.overview .intro,.ecosystem,.sparkline,.population-footer{display:none}.population-card{display:flex;gap:9px;align-items:center;padding:8px 12px;width:117px;height:43px;flex-shrink:0}.population-card .section-label{font-size:0;letter-spacing:0;order:1}.population-card .section-label svg{width:18px;height:18px}.pop-value{margin:0;gap:7px}.pop-value>strong{font-size:23px;letter-spacing:-.6px}.pop-value>span{font-size:7px;max-width:40px;line-height:1.3}.resources{left:auto;transform:none;right:15px;top:85px;height:43px;gap:12px;padding:7px 12px;max-width:calc(100% - 155px);border-radius:12px}.resources>div{gap:2px 5px;grid-template-columns:13px auto}.resources strong{font-size:10px}.resources svg{width:13px;height:13px}.resources div>span:last-child{font-size:6px;margin:0}.resources .stone-icon{font-size:15px}.chronicle{left:17px;bottom:171px;width:190px;pointer-events:none}.chronicle>.section-label{font-size:7px;margin-bottom:8px}.event{padding:0 0 7px 12px}.event p{font-size:8px;line-height:1.5;margin-top:2px}.event small{font-size:7px}.event:nth-child(n+2){display:none}.scene-caption{bottom:232px;font-size:7px;left:50%;letter-spacing:1.5px}.scene-caption small,.scene-caption i{display:none}.tool-area{bottom:max(16px,env(safe-area-inset-bottom));left:12px;right:12px;transform:none;width:auto;max-width:none}.toolbar{justify-content:flex-start;gap:3px;padding:6px;border-radius:14px}.tool{min-width:52px;flex:1;height:57px}.tool span{font-size:8px}.tool svg{width:21px;height:21px}.tool>small{display:none}.tool-heading{font-size:8px;padding-bottom:9px;gap:5px;min-height:24px}.influence b{font-size:10px}.influence>span{font-size:8px}.influence svg{width:11px;height:11px}.timeline{bottom:119px;left:50%;padding:4px 8px 4px 4px;gap:3px}.speed{padding:6px 9px;font-size:10px}.timeline .icon-button{min-height:27px;min-width:27px}.timeline .icon-button svg{width:13px;height:13px}.view-controls{right:14px;bottom:179px;padding:3px;border-radius:9px}.view-controls .icon-button{min-width:28px;min-height:28px}.view-controls>span{font-size:7px}.view-controls>div{margin:1px}.inspector{top:146px;right:14px;width:218px;padding:12px 14px;border-radius:14px;max-height:calc(100dvh - 345px);overflow:auto}.inspector .identity canvas{width:53px;height:53px}.inspector .identity h2{font-size:21px}.identity span,.identity small{font-size:8px}.genes-title{font-size:8px}.family{font-size:8px}.inspector-top .section-label{font-size:7px}.agent-needs{margin-top:8px}.need{margin:9px 0}.task{font-size:9px;padding:8px}.toast{top:143px;font-size:11px;padding:10px 15px;width:max-content;max-width:calc(100% - 30px)}.hover-label{display:none!important}.empty-world{width:270px;top:42%;padding:18px}.empty-world h2{font-size:22px}.empty-world p{font-size:11px}dialog{padding:20px 22px;border-radius:18px;max-height:90dvh}dialog h2{font-size:27px}.help-grid{grid-template-columns:1fr;gap:16px;margin:20px 0}.help-grid article{display:grid;grid-template-columns:25px 1fr;gap:0 12px}.help-grid article>svg{grid-row:1/3;margin-top:4px}.help-grid h3{margin-top:2px}.help-grid p{font-size:11px}.dialog-actions{gap:8px}.primary,.secondary{font-size:10px;padding:10px 12px}.shortcuts{gap:10px;font-size:8px}}
@media(max-width:370px){.brand small{display:none}.world-clock{left:52%;padding:7px 9px}.world-clock strong span{display:none}.resources{gap:9px;padding-inline:8px}.resources div>span:last-child{display:none}.resources>div{display:flex;gap:4px}.population-card{width:102px;padding:8px}.resources{max-width:calc(100% - 135px)}.tool-heading>span:first-child{max-width:230px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.header-actions #save{display:none}}
@media(max-height:580px) and (min-width:651px){.overview{top:86px}.overview h1,.intro,.ecosystem,.world-hint,.chronicle{display:none}.resources{top:86px}.population-card{padding:10px}.sparkline{height:18px}.tool-area{bottom:13px}.timeline{bottom:108px}.scene-caption{display:none}.inspector{top:137px;max-height:calc(100dvh - 255px);overflow:auto}.view-controls{bottom:128px}.topbar{height:75px}}
.event:nth-child(n+3){display:none}
#genesLabel{margin-left:0;font-size:9px;color:#bccdae}.identity h2.creature-name{font-size:18px;line-height:1.15;letter-spacing:-.4px}
.biodiversity{position:absolute;left:50%;transform:translateX(-50%);top:180px;z-index:3;display:flex;gap:6px;align-items:center;padding:7px 11px;border-radius:8px;font-size:9px;color:#bdcfaf;white-space:nowrap}.biodiversity>svg{width:13px;height:13px;color:#c5d5a0}.biodiversity strong{font-weight:600;color:#e5e8c4}.biodiversity>span{font-size:8px;color:#95b091;margin-left:7px}
.bestiary{position:absolute;right:25px;top:134px;width:332px;max-height:calc(100dvh - 277px);overflow:auto;border-radius:18px;padding:17px;z-index:6;scrollbar-width:thin;scrollbar-color:#748d6b #203e35}.bestiary h2{font-family:Georgia,serif;font-size:25px;font-weight:400;letter-spacing:-.6px;margin:13px 0 8px;color:#dce6bd}.bestiary>p{font-size:10px;line-height:1.7;color:#a7bea0;margin:0 0 14px}.realm-filters{display:flex;gap:4px;border-bottom:1px solid var(--line);padding-bottom:11px;margin-bottom:11px}.realm-filters>button{flex:1;font-size:9px;padding:8px 4px;border-radius:7px;color:#a8bc9d}.realm-filters>button>span{font-size:8px;opacity:.6;margin-left:3px}.realm-filters>button.active{color:#d9e7b5;background:#bbcd9820}.species-list{display:grid;grid-template-columns:1fr 1fr;gap:6px}.species-item{border:1px solid #bdd49c18;border-radius:9px;padding:5px 6px 5px 2px;display:flex;align-items:center;text-align:left;gap:2px;min-height:54px;background:#b9c79906}.species-item:hover,.species-item:focus-visible{background:#c4d7a220;border-color:#c5d6a255}.species-item.selected{border-color:#b6d29470}.species-item canvas{width:41px;height:41px;flex-shrink:0}.species-item>span{font-size:9px;line-height:1.4;color:#d5dfc0}.species-item small{display:block;font-size:7px;color:#8faa89;margin-top:4px}.species-description{font-size:10px;line-height:1.7;color:#b3c6a6;min-height:45px;margin-top:13px;padding-top:12px;border-top:1px solid var(--line)}
@media(max-width:900px){.biodiversity{top:151px;left:56%}.bestiary{right:18px;top:144px;width:304px;max-height:calc(100dvh - 290px)}.species-item>span{font-size:8px}.species-item canvas{width:38px;height:38px}}
@media(max-width:650px){.biodiversity{top:139px;left:auto;right:15px;transform:none;padding:6px 9px;font-size:8px}.biodiversity>span{font-size:7px}.bestiary{top:172px;right:13px;width:min(320px,calc(100% - 26px));max-height:calc(100dvh - 348px);padding:13px;border-radius:14px}.bestiary h2{font-size:22px}.bestiary>p{font-size:9px}.realm-filters>button{font-size:9px}.species-item>span{font-size:9px}.identity h2.creature-name{font-size:16px}.inspector .family{font-size:9px;line-height:1.7}.bestiary .species-description{font-size:9px}}
@media(max-height:580px) and (min-width:651px){.biodiversity{top:139px}.bestiary{top:131px;max-height:calc(100dvh - 245px)}}
@media(max-width:370px){.brand{gap:2px}.brand>span:last-child{font-size:22px}.brandmark{transform:scale(.6);margin-left:-7px;margin-right:-9px}.world-clock{left:55%}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
/* Expedition edition: quieter, mineral-toned interface over a natural diorama. */
:root{--ink:#e3e9e6;--muted:#a0b1b4;--dim:#829ba2;--lime:#d2c7a7;--green:#9bbbad;--panel:rgba(18,35,45,.91);--line:rgba(185,210,211,.16)}
html,body{background:#102a40}.vignette{background:linear-gradient(90deg,#0a1c2bb3,transparent 28%,transparent 83%,#0a1c2b26),linear-gradient(0deg,#0b1c2bb3,transparent 24%,transparent 82%,#0b1c2b66)}
h1{font-size:30px}h1 em{font-size:32px;color:#c7ccb5}.overview .intro{color:#a7b5b7}.glass{box-shadow:0 8px 30px #05152140}.toolbar{border-radius:12px}.tool.active{background:#b4c8bc19;color:#d4d2b6}.tool.active:after{background:#bfc7a8}.bestiary h2,.world-hint h2{color:#d6d7bd}.bestiary>p,.species-description{color:#a8b8b8}.species-item>span{color:#c7d3d1}.species-item small{color:#8ba3a7}.world-actions{position:absolute;z-index:4;top:217px;left:50%;transform:translateX(-50%);display:flex;gap:8px}.world-actions button{display:flex;gap:7px;align-items:center;font-size:10px;padding:8px 12px;border-radius:8px;color:#c1cfd1}.world-actions svg{width:14px;height:14px}.world-actions b{font-size:9px;color:#d2c9aa}.world-panel{position:absolute;z-index:8;top:266px;left:50%;transform:translateX(-50%);width:330px;max-height:calc(100dvh - 430px);overflow:auto;padding:17px;border-radius:12px;scrollbar-width:thin}.world-panel h2{font:400 24px Georgia,serif;color:#d7d4bd;margin:12px 0}.world-panel p{font-size:11px;line-height:1.65;color:#a7b7bd}.climate-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.climate-grid button{border:1px solid var(--line);border-radius:7px;font-size:10px;padding:11px 5px;background:#a3bfca08}.climate-grid button:hover{background:#b9d5d51b}.climate-grid span{display:block;font:22px Georgia,serif;margin-bottom:5px;color:#c3d7df}.panel-note{border-top:1px solid var(--line);padding-top:12px;font-size:10px!important;margin-bottom:0}.dispatch-actions{display:flex;gap:6px;margin:14px 0}.dispatch-actions button{flex:1;background:#a3b7ad18;border:1px solid #bed1c332;padding:10px 7px;border-radius:6px;font-size:10px}.fleet-item{display:flex;align-items:center;justify-content:space-between;text-align:left;width:100%;border-top:1px solid var(--line);padding:12px 0;font-size:12px}.fleet-item small{display:block;font-size:9px;line-height:1.5;margin-top:5px;color:#8fa7b1}.fleet-item b{font-size:17px;color:#b9c7b6}#weather{cursor:pointer}.realm-filters>button{padding-inline:2px}.world-hint .orbit{opacity:.55}.family{line-height:1.65}
@media(max-width:1100px){.world-actions{left:56%}.world-panel{left:56%}}
@media(max-width:900px){.world-actions{top:185px}.world-panel{top:229px;max-height:calc(100dvh - 390px)}}
@media(max-width:650px){.world-actions{left:15px;top:139px;transform:none;gap:5px}.world-actions button{font-size:8px;gap:4px;padding:6px 7px}.world-actions svg{width:11px;height:11px}.world-panel{left:13px;right:13px;transform:none;top:180px;width:auto;max-height:calc(100dvh - 345px);padding:14px}.biodiversity>span{display:none}.biodiversity{padding:6px 7px}.world-hint{display:none}.vignette{background:linear-gradient(0deg,#0b1c2b99,transparent 23%,transparent 78%,#0b1c2b80)}.world-panel h2{font-size:22px}.bestiary{z-index:9}}
@media(max-height:580px) and (min-width:651px){.world-actions{top:170px}.world-panel{top:90px;max-height:calc(100dvh - 215px);left:60%}}
/* Archipelago map and physical diplomacy. */
.diplomacy-panel{position:absolute;right:25px;top:130px;width:360px;max-height:calc(100dvh - 275px);overflow:auto;z-index:10;border-radius:13px;padding:17px;scrollbar-width:thin}.diplomacy-panel h2{font:400 26px Georgia,serif;color:#dbd8c1;margin:12px 0 9px}.diplomacy-panel>p{font-size:10px;color:#a6b9c0;line-height:1.65}.tribe-list{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin:15px 0}.tribe-list button{display:grid;grid-template-columns:5px 1fr;gap:3px 7px;text-align:left;padding:8px 6px;border:1px solid var(--line);border-radius:6px;min-width:0}.tribe-list i{width:4px;height:24px;grid-row:1/3;border-radius:2px}.tribe-list span{font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tribe-list small{font-size:8px;color:#91a7ad}.diplomacy-pair{display:grid;grid-template-columns:1fr 1fr;gap:8px}.diplomacy-pair label{font-size:9px;color:#a9b9ba;min-width:0}.diplomacy-panel select,.mini-map select{display:block;width:100%;border:1px solid #9eb6b333;border-radius:6px;background:#183240;color:#d8e2dd;padding:8px 5px;font:inherit;margin:5px 0;min-width:0}.relation-card{padding:13px 10px;margin:10px 0;background:#9fb0a90a;border:1px solid var(--line);border-radius:7px}.relation-card>strong{font-size:15px;font-weight:500}.relation-card>span{float:right;font-size:10px;color:#a7c0be}.relation-card p{font-size:9px;color:#95aeb5;line-height:1.6;margin:8px 0 0}.relation-meter{height:3px;background:#a5b7b022;margin-top:12px}.relation-meter i{display:block;height:100%;transition:width .3s}.diplomacy-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.diplomacy-actions button,.mission-actions button{font-size:9px;padding:10px 4px;border:1px solid #a3c0ad2b;border-radius:6px;background:#bdd8c608}.diplomacy-actions small{display:block;font-size:8px;color:#89a3ad;margin-top:4px}.conflict-action{color:#d8ac98}.mission-actions{display:flex;gap:5px;margin-top:8px}.mission-actions button{flex:1;font-size:8px}.mini-map{position:absolute;right:27px;bottom:205px;width:186px;padding:10px;border-radius:10px;z-index:4}.mini-map>div{display:flex;align-items:center;justify-content:space-between;font-size:8px;letter-spacing:1px;color:#b0c4c6}.mini-map b{font-weight:400;color:#d7d2b8;margin-left:3px}.mini-map button{font-size:17px}.mini-map canvas{display:block;width:100%;height:auto;margin:4px 0;cursor:crosshair;border-radius:4px}.mini-map select{font-size:9px;padding:6px}.mini-map>small{display:block;color:#89a7a9;font-size:7px;margin-top:6px}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.world-hint{display:none}.overview h1{font-size:29px}.overview h1 em{font-size:30px}
@media(max-width:1100px){.mini-map{right:18px;width:150px;bottom:225px}.diplomacy-panel{right:18px;width:330px}.world-actions{left:54%}}
@media(max-width:650px){.world-actions{top:173px;left:15px;right:15px;gap:5px}.world-actions button{justify-content:center;flex:1;font-size:9px;padding:7px 5px}.diplomacy-panel{left:12px;right:12px;top:213px;width:auto;max-height:calc(100dvh - 355px);padding:13px}.diplomacy-panel h2{font-size:23px}.tribe-list{margin-block:10px}.diplomacy-panel .panel-note{font-size:9px!important}.mini-map{display:none;top:216px;bottom:auto;right:15px;width:190px;z-index:9}.mini-map.mobile-open{display:block}.world-panel{top:213px;max-height:calc(100dvh - 355px)}.bestiary{top:212px;max-height:calc(100dvh - 355px)}.inspector{top:211px;max-height:calc(100dvh - 350px)}.toast{top:211px;font-size:10px}.scene-caption{display:none}}
@media(max-height:650px) and (min-width:651px){.mini-map{display:none}.diplomacy-panel{top:85px;max-height:calc(100dvh - 200px)}}

/* Keep direct resident discovery available beside the archipelago controls. */
@media(min-width:651px){.world-hint{display:block;top:202px;right:34px;width:auto}.world-hint>:not(button){display:none}.world-hint button{margin:0;background:#122d3cc9;padding:9px 12px;border:1px solid #bacbb527;border-radius:8px}}
