.civic-panel{border:1px solid #53665b;background:linear-gradient(140deg,#172923,#142031);border-radius:16px;padding:18px;margin-bottom:20px}.civic-panel>p{font-size:14px;line-height:1.6;color:var(--muted);margin:10px 0}.civic-totals{display:flex;gap:8px;flex-wrap:wrap;font-size:14px;color:#dcdaa9}.civic-totals span{background:#0c1824;padding:8px;border-radius:8px}.civic-route>h3{font-size:16px;color:#e3c590;margin:22px 0 10px}.civic-card{padding:14px;background:#0d1825;border:1px solid #354555;border-radius:12px;margin:8px 0}.civic-card.ready{border-color:#b9af75}.civic-card.owned{border-color:#477660}.civic-title{display:flex;align-items:center;gap:10px}.civic-title>span{font-size:24px;color:#d9c28e}.civic-title h4{flex:1;font-size:16px}.civic-title>b{font-size:13px;text-align:right}.civic-card p{font-size:14px;color:var(--muted);line-height:1.5;margin:8px 0}.civic-card small{font-size:13px;color:#c8dbc8}.civic-requires{font-size:14px;line-height:1.5;margin:8px 0;color:#e1c7a4}.civic-requires em{display:block;font-size:13px;color:#93c8a8;font-style:normal}.civic-card button{width:100%;min-height:44px;font-size:14px}.civic-panel .civic-link-guide{font-size:13px}

.civilization-legacy{margin:0 0 20px;padding:20px;border:1px solid #9e9a71;border-radius:17px;background:radial-gradient(circle at 88% 8%,#7e704133,transparent 32%),linear-gradient(145deg,#243937,#172530);box-shadow:inset 0 1px #e6d49a22}.legacy-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.legacy-heading h2{margin:7px 0 0;font-size:24px;color:#f0dcaa}.legacy-heading>b{padding:7px 10px;border-radius:999px;background:#cfb9761c;color:#f1d99a;white-space:nowrap}.civilization-legacy>p{font-size:15px;line-height:1.6;color:#cfddd1}.legacy-counts,.legacy-bonuses{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:14px 0}.legacy-counts span,.legacy-bonuses span{padding:10px 7px;border:1px solid #697568;border-radius:9px;background:#12262b;text-align:center;font-size:13px}.legacy-counts b{color:#f0d69b}.legacy-bonuses{grid-template-columns:repeat(3,minmax(0,1fr))}.legacy-bonuses b{display:block;color:#b9e1ae;font-size:18px}.civilization-legacy>small{display:block;line-height:1.55;color:#b8c9bd}.civilization-legacy>button{width:100%;min-height:46px;margin-top:14px;background:#4d6354;border-color:#aabe94}.civilization-legacy.compact{padding:14px}.civilization-legacy.compact .legacy-heading h2{font-size:19px}.civilization-legacy.compact .legacy-heading>b{font-size:12px}.civilization-legacy.compact .legacy-counts{margin:10px 0}.civilization-legacy.compact .legacy-bonuses{margin:0}@media(max-width:520px){.civilization-legacy{padding:14px}.legacy-heading{align-items:center}.legacy-counts{grid-template-columns:repeat(2,minmax(0,1fr))}.legacy-counts span,.legacy-bonuses span{padding:8px 4px;font-size:12px}.legacy-bonuses b{font-size:16px}}

:root{color-scheme:dark;--bg:#090d16;--panel:#111925;--line:#283243;--muted:#a1adbd;--text:#eff2f6;--accent:#ffa469}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:Arial,sans-serif;font-size:16px}button,a,input{font:inherit}button{color:inherit;cursor:pointer;border:1px solid var(--line);background:#162131;border-radius:9px;padding:10px 14px}button:disabled{cursor:default;opacity:.45}button:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:4px}button:hover:not(:disabled){border-color:var(--accent);background:#202c3c}h1,h2,h3,p{margin:0}h1,h2,h3,.number{font-family:Arial,sans-serif}small,.small{font-size:13px;color:var(--muted)}.eyebrow{font-size:12px;letter-spacing:.17em;text-transform:uppercase;color:var(--muted)}.app{max-width:1500px;margin:auto;padding:0 32px}.topbar{height:82px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:20px}.brand{font-size:23px;letter-spacing:-1px;display:flex;align-items:center;gap:12px}.brand i{font-style:normal;color:var(--accent);font-size:29px}.topright{display:flex;align-items:center;gap:16px}.version{color:var(--muted);font-size:12px}.era-strip{display:flex;gap:4px;overflow:auto;padding:20px 0}.era-step{white-space:nowrap;padding:8px 10px;color:#8390a4;border-radius:5px;font-size:13px}.era-step.current{color:var(--accent);background:#ffa46912}.era-step.past{color:#a9d7ca}.era-step span{margin-right:8px;font-size:12px}.game-layout{display:grid;grid-template-columns:minmax(340px,1fr) minmax(370px,.85fr);gap:34px}.world{min-width:0}.world-heading h1{font-size:33px;letter-spacing:-1.3px;margin:8px 0;line-height:1.15}.world-heading p{color:var(--muted);line-height:1.6;max-width:490px;font-size:14px}.scene-button{display:block;position:relative;width:100%;height:350px;border:0;background:transparent!important;overflow:hidden;padding:0;touch-action:manipulation;user-select:none;-webkit-tap-highlight-color:transparent}.scene-button canvas{width:100%;height:100%;display:block}.scene-hint{position:absolute;bottom:10px;left:0;right:0;color:#d0d7e0;font-size:13px;pointer-events:none}.float{position:absolute;left:50%;top:36%;font-weight:700;color:var(--accent);pointer-events:none;animation:rise .8s ease-out forwards}.resource{text-align:center}.resource .number{font-size:46px;font-weight:500;letter-spacing:-2px;font-variant-numeric:tabular-nums}.resource .unit{font-size:14px;color:var(--muted);margin-left:8px}.rates{display:flex;justify-content:center;gap:24px;color:var(--muted);font-size:14px;margin:9px 0 20px}.rates b{color:var(--text);font-weight:500}.goal{padding:20px;background:linear-gradient(120deg,#1c2330,#111924);border:1px solid var(--line);border-radius:12px}.goal-title{display:flex;justify-content:space-between;gap:12px;font-size:14px;margin:10px 0}.goal-title b{color:var(--accent)}.bar{height:5px;background:#283142;border-radius:10px;overflow:hidden}.bar i{display:block;height:100%;background:var(--accent);transition:width .2s}.goal small{display:block;margin-top:10px;line-height:1.5}.goal button{width:100%;margin-top:14px;background:var(--accent);color:#17131a;font-weight:700;border:0}.elements{display:flex;gap:8px;margin:16px 0;flex-wrap:wrap;align-items:center}.element{padding:8px 12px;background:#111a27;border:1px solid var(--line);border-radius:7px;font-size:13px}.element b{color:var(--accent);margin-right:10px}.tabbar{display:flex;gap:24px;border-bottom:1px solid var(--line);margin-bottom:18px;background:var(--bg)}.tabbar button{border:0;border-radius:0;padding:13px 0;background:none;color:var(--muted);font-size:14px}.tabbar button.active{color:var(--accent);border-bottom:2px solid var(--accent)}.section-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px;gap:10px}.section-top h2,.tech-head h2{font-size:18px}.cards{display:grid;gap:10px}.purchase{display:flex;align-items:center;text-align:left;gap:14px;background:var(--panel);padding:15px;border:1px solid var(--line);width:100%;border-radius:11px;min-height:88px}.purchase .icon{width:42px;height:42px;border:1px solid #39404b;display:grid;place-items:center;border-radius:9px;font-size:22px;flex-shrink:0;color:var(--accent);background:#ffa46908}.purchase .details{flex:1;min-width:0}.purchase h3{font-size:15px;margin-bottom:5px;font-weight:500}.purchase p{font-size:13px;line-height:1.45;color:var(--muted)}.purchase .price{text-align:right;white-space:nowrap;font-size:17px;color:var(--accent)}.purchase small{display:block;font-size:12px;margin-top:5px}.purchase.affordable{border-color:#a8784b80}.tech-head{margin-top:25px;margin-bottom:13px;display:flex;align-items:center;justify-content:space-between}.notice-slot{height:52px;flex:0 0 52px;min-width:0;padding:4px 0}.notice{display:flex;align-items:center;gap:8px;height:44px;min-width:0;border:1px solid transparent;border-radius:9px;padding:0 4px 0 12px;font-size:14px;line-height:20px}.has-notice .notice{border-color:#8b6b47;background:#211e22}.notice-text{flex:1;min-width:0;max-height:40px;overflow-y:auto;overflow-wrap:anywhere;overscroll-behavior:contain}.notice-dismiss{flex:0 0 44px;min-width:44px;min-height:44px;border:0;background:transparent;padding:0;font-size:23px;line-height:1}.foot{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding:20px 0;margin-top:28px;color:var(--muted);font-size:12px}.journal{display:grid;gap:14px}.journal article{padding:17px;border:1px solid var(--line);border-radius:10px}.journal p{color:var(--muted);font-size:14px;line-height:1.65;margin-top:7px}.empty{padding:26px 0;color:var(--muted);font-size:14px;line-height:1.8}.loading{position:fixed;inset:0;background:#090d16f8;display:grid;place-items:center;z-index:20;text-align:center;padding:30px}.loading p{margin:14px 0;color:var(--muted)}a{color:var(--accent)}.tree-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.tree-node{min-height:135px;display:flex;flex-direction:column;text-align:left;gap:9px;padding:16px;background:var(--panel)}.tree-node span{color:var(--muted);font-size:12px;line-height:1.5}.tree-node b{font-size:14px;font-weight:500}.tree-node.done{border-color:#46755d;color:#9bdab5;opacity:.8}.tree-node.ready{border-color:var(--accent)}.tree-node small{color:var(--accent);margin-top:auto}.milestone{color:var(--accent);font-size:13px;padding:12px 0;line-height:1.6}.modal-backdrop{position:fixed;inset:0;background:#000b;z-index:30;display:grid;place-items:center;padding:24px}.modal{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:30px;max-width:620px;width:100%;max-height:90vh;overflow:auto}.modal p{margin:15px 0;color:var(--muted);line-height:1.6}.modal .actions{display:flex;gap:10px;flex-wrap:wrap}.surge{border-color:#6bc8bb!important;color:#a7eee1!important;margin-bottom:12px}.streak{height:24px;text-align:center;color:var(--accent);font-size:13px}.buy-modes{display:flex;gap:5px}.buy-modes button{font-size:12px;padding:6px 8px}.buy-modes .active{color:var(--accent);border-color:var(--accent)}@keyframes rise{from{opacity:1;transform:translate(-50%,0)}to{opacity:0;transform:translate(-50%,-80px)}}@media(min-width:1100px){.game-layout{gap:60px}.world{position:sticky;top:20px;align-self:start}.scene-button{height:375px}}@media(max-width:850px){.app{padding:0 18px}.game-layout{grid-template-columns:1fr;gap:25px}.topbar{height:70px}.scene-button{height:280px}.era-strip{padding:15px 0}.world-heading h1{font-size:28px}.topright .version{display:none}.resource .number{font-size:40px}.foot{gap:20px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}


.system-panel{padding:20px;margin-bottom:16px;background:#0f1b29;border:1px solid var(--line);border-radius:12px}.system-heading{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px}.system-heading h2{font-size:16px}.system-heading span{color:var(--accent);font-size:14px}.system-panel p{font-size:14px;color:var(--muted);line-height:1.6;margin:10px 0 14px}.focus-modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:12px}.focus-modes button{text-align:left;padding:12px 10px;min-width:0}.focus-modes b{font-size:14px;font-weight:500;display:block}.focus-modes small{display:block;line-height:1.6;margin-top:6px}.focus-modes .selected{border-color:var(--accent);background:#273145}.tree-node span{font-size:14px}.purchase p,.purchase small{font-size:14px}.scene-hint,.streak,.buy-modes button,.tabbar button{font-size:14px}.world-heading p{font-size:16px}.tree-node{position:relative;border-left:3px solid var(--line)}.tree-node.ready{border-left-color:var(--accent)}.tree-node.done{border-left-color:#9bdab5}.world{position:static!important}@media(max-width:460px){.focus-modes{grid-template-columns:1fr}.tree-grid{grid-template-columns:1fr}.purchase{gap:9px;padding:12px}.purchase .icon{width:30px;height:34px}.purchase .price{font-size:15px}.app{padding:0 12px}.resource .number{font-size:36px}}

/* Cinematic world and touch-first controls. */
:root{--bg:#060b14;--panel:#101b2b;--line:#29394d;--muted:#a7b6c9}
body{background:radial-gradient(ellipse at 30% 0%,#12243b 0%,#060b14 58%)}
.app{max-width:1440px}.brand{font-weight:600;letter-spacing:-.05em}.topbar{height:72px}.topright button{min-width:48px;min-height:48px;font-size:23px}
.scene-button{height:420px;border:1px solid #334456;border-radius:24px;background:#050a13!important;box-shadow:0 18px 70px #0005;isolation:isolate;transition:border-color .2s}
.scene-button:active{border-color:var(--accent)}.scene-button canvas{height:100%;width:100%}.scene-hint{bottom:24px;color:#fff;font-size:16px;font-weight:600;letter-spacing:.02em;text-shadow:0 2px 16px #000;left:20px;right:20px}.float{top:40%;font-size:26px;text-shadow:0 2px 20px #000;z-index:2}
.world-heading{margin-bottom:18px}.world-heading h1{font-size:32px}.world-heading p{font-size:15px}.streak{margin-top:12px;font-size:14px;height:auto;min-height:22px}.resource .number{font-size:46px;font-weight:600}.resource{margin-top:8px}.rates{margin-bottom:16px}.world-next{border:1px solid var(--line);background:#0f1d2b;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px;border-radius:14px;margin-top:16px;font-size:14px}.world-next button{min-height:46px;white-space:nowrap;background:var(--accent);color:#111725;border:0;font-weight:600}
.era-step{background:transparent;border:0;min-height:44px}.purchase{border-radius:14px;min-height:108px}.purchase h3{font-size:16px;font-weight:600}.purchase p{line-height:1.55}.purchase.affordable{border-color:color-mix(in srgb,var(--accent) 55%,#29394d)}.purchase:disabled{opacity:.65}.tree-node:disabled{opacity:.68}.tree-node.done{opacity:1}.tree-node b{font-size:16px}.tree-node small{font-size:14px}.tree-node span{line-height:1.6}.tree-chapters{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0 18px;font-size:14px}.tree-chapters select{color:var(--text);background:var(--panel);border:1px solid var(--line);border-radius:10px;font:inherit;min-height:48px;padding:10px;max-width:65%}.buy-modes button{min-width:44px;min-height:44px}.tabbar{gap:24px}.tabbar button{min-height:48px}.modal .actions button{min-height:48px}.system-panel,.goal{margin-top:0;margin-bottom:18px}.system-panel small{font-size:14px;line-height:1.6}.focus-modes{grid-template-columns:1fr}.focus-modes button{min-height:68px;padding:16px}.focus-modes b{font-size:16px}.system-panel h2{font-size:18px}.modal{box-shadow:0 24px 80px #0008}
.mobile-counter,.mobile-controls{display:none}
@media(min-width:851px){.world{align-self:start;position:sticky;top:22px}.game-layout{grid-template-columns:minmax(340px,1fr) minmax(380px,.95fr);gap:40px}.scene-button{height:440px}.tabbar button{font-size:15px}}
@media(max-width:850px){
 html{scroll-padding-top:80px}body{overscroll-behavior-y:none}.app{padding:0 14px;padding-bottom:calc(100px + env(safe-area-inset-bottom))}.app:not(.tab-world){padding-bottom:calc(160px + env(safe-area-inset-bottom))}
 .topbar{height:auto;min-height:66px;position:sticky;top:0;z-index:10;background:#080f1ef2;backdrop-filter:blur(18px);margin:0 -14px;padding:8px 14px;padding-top:max(8px,env(safe-area-inset-top));gap:8px}.brand{font-size:20px;gap:7px;white-space:nowrap}.brand i{font-size:23px}.topright{gap:0}.topright button{padding:8px;width:44px;min-width:44px;min-height:44px}.mobile-counter{display:flex;flex:1;flex-direction:column;align-items:flex-end;gap:3px;min-width:0}.mobile-counter b{font-size:17px;font-variant-numeric:tabular-nums;line-height:1.2}.mobile-counter small{font-weight:400;font-size:12px}.mobile-counter span{font-size:12px;color:var(--muted)}
 .era-strip{display:none}.game-layout{display:block;padding-top:16px}.world-heading{margin-bottom:12px}.world-heading .eyebrow{font-size:12px}.world-heading h1{font-size:24px;line-height:1.2;letter-spacing:-.7px;margin:6px 0 0}.world-heading p{display:none}
 .scene-button{height:clamp(230px,44svh,390px);border-radius:20px;max-width:580px;margin:auto}.scene-hint{bottom:20px;font-size:16px}.resource .number{font-size:38px}.resource .unit{font-size:14px}.rates{gap:20px;margin:6px 0 10px}.streak{margin-top:9px;font-size:13px;min-height:18px}.elements{gap:6px;margin:10px 0}.elements .element{flex:1;font-size:13px;display:flex;align-items:center;justify-content:space-between;padding:8px}.elements small{display:none}.world-next{padding:12px;margin-top:10px;gap:10px}.world-next span{font-size:14px;line-height:1.5}.world-next button{font-size:14px;padding:10px;min-height:44px}
 .tab-world .workbench{display:none}.app:not(.tab-world) .world{display:none}.workbench{min-width:0}.tabbar{display:none}.section-top{gap:10px;align-items:center}.section-top h2,.tech-head h2{font-size:18px}.cards{gap:10px}.purchase{padding:15px 12px;gap:12px;min-height:102px}.purchase .icon{width:34px;height:40px;font-size:23px;border:0;background:transparent}.purchase h3{font-size:16px}.purchase p{font-size:14px}.purchase small{font-size:13px;line-height:1.5}.purchase .price{font-size:17px}.purchase .price small{font-size:12px}.tree-grid{grid-template-columns:1fr}.tree-node{min-height:144px;padding:18px}.tree-chapters{margin-top:0}.tree-chapters select{max-width:72%;min-width:0}.section-top small{max-width:110px;text-align:right;font-size:12px}.focus-modes{grid-template-columns:1fr}.focus-modes button{min-height:74px}.goal{padding:18px}.goal button{min-height:50px}.foot{padding:16px 0;font-size:12px}.foot>span:last-child{display:none}
 .mobile-controls{display:block;position:fixed;bottom:0;left:0;right:0;z-index:15;max-width:850px;margin:auto;background:#080f1ef5;backdrop-filter:blur(18px);border-top:1px solid #2b3c52;padding:8px 10px;padding-bottom:max(8px,env(safe-area-inset-bottom));box-shadow:0 -8px 35px #0004}.thumb-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px}.thumb-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:56px;padding:7px 2px;border:0;border-radius:12px;background:transparent;color:var(--muted);font-size:12px;line-height:1.2}.thumb-nav button>span{font-size:22px;line-height:1}.thumb-nav .active{background:color-mix(in srgb,var(--accent) 14%,#0c1523);color:var(--accent)}.quick-impact{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:48px;padding:10px 16px;margin-bottom:8px;background:var(--accent);color:#101827;border:0;font-size:15px;font-weight:600}.quick-impact b{font-variant-numeric:tabular-nums}.quick-impact:active{transform:scale(.985)}.quick-impact:hover:not(:disabled){background:var(--accent);filter:brightness(1.1)}
.modal-backdrop{align-items:end;padding:12px}.modal{border-radius:22px;padding:24px;max-height:86svh;padding-bottom:max(24px,env(safe-area-inset-bottom))}.modal .actions{display:grid;grid-template-columns:1fr 1fr}.modal .actions button{font-size:14px}.surge{width:100%;font-size:14px;min-height:46px;margin-top:10px}.loading{padding:20px}.loading a{display:inline-block;min-height:48px;line-height:48px}.loading button{min-height:48px}
}
@media(max-width:360px){.app{padding-left:10px;padding-right:10px}.brand{font-size:17px}.mobile-counter b{font-size:15px}.mobile-counter small{font-size:11px}.purchase .icon{display:none}.purchase .price{font-size:15px}.scene-button{height:39svh}.thumb-nav button{font-size:11px}.world-next button{white-space:normal;max-width:130px}}
@media(max-height:540px) and (max-width:850px){.scene-button{height:210px}.mobile-controls{padding-top:4px}.thumb-nav button{min-height:44px}.world-heading h1{font-size:22px}}
.guest-signin{display:block;text-align:center;font-size:13px;line-height:1.6;padding:12px;margin-top:8px;color:var(--muted);text-underline-offset:4px}.guest-warning{background:#253348;padding:16px;border-radius:12px;color:#f0e5cb!important}.guest-warning a{display:block;margin-top:10px;min-height:44px;line-height:44px}@media(max-width:360px){.mobile-counter small,.thumb-nav button{font-size:12px}}
.journey-progress{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--muted);font-size:13px;line-height:1.6;margin:0 2px 6px}.world-progress{height:3px;margin-bottom:14px}.quick-impact{touch-action:manipulation}.thumb-nav button,.purchase,.focus-modes button{touch-action:manipulation}
.living-scene{position:absolute;inset:0;overflow:hidden}.living-scene canvas{position:absolute;inset:0;width:100%;height:100%;touch-action:pan-y}.living-scene canvas:last-child{z-index:1}.scene-hint{z-index:2;pointer-events:none}.scene-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;color:var(--muted);margin-top:10px}.scene-toolbar>div{display:flex;gap:6px}.scene-toolbar button{min-width:44px;min-height:44px;padding:6px;font-size:21px}.world-readings{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px}.world-readings>div{display:flex;flex-direction:column;align-items:center;gap:5px;padding:10px;background:#0b1828;border:1px solid #24374b;border-radius:10px}.world-readings b{font-size:16px;font-weight:500;color:var(--accent)}.world-readings span{font-size:12px;color:var(--muted);text-align:center;line-height:1.4}@media(max-width:850px){.scene-toolbar{margin-top:6px}.world-readings{margin-top:6px}.world-readings>div{padding:8px 4px}.scene-button{height:clamp(230px,39svh,350px)}}
.world-focus{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:10px}.world-focus button{font-size:13px;line-height:1.4;min-height:48px;padding:8px 5px;background:#0c1827;border-radius:10px}.world-focus .selected{border-color:var(--accent);color:var(--accent);background:#203047}.scene-button .living-scene canvas{object-fit:contain}.scene-button canvas{pointer-events:auto}
/* The phone play screen is a single viewport: world above, purchases below. */
.phone-build{display:none}.restart-button{width:100%;margin:14px 0 20px;min-height:48px}.danger{border-color:#e98989;color:#ffc6c6}
.chapter-event-callout{width:100%;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;margin:10px 0;border-color:var(--accent);background:color-mix(in srgb,var(--accent) 13%,#0c1726);text-align:left}.chapter-event-callout>span{font-size:11px;letter-spacing:.08em;color:var(--accent)}.chapter-event-callout b{font-size:14px}.chapter-event-callout small{font-size:12px}.scene-event-active{position:absolute;z-index:3;top:14px;left:50%;transform:translateX(-50%);padding:7px 12px;border:1px solid color-mix(in srgb,var(--accent) 65%,transparent);border-radius:999px;background:#07111bd9;color:#fff;font-size:12px;white-space:nowrap;pointer-events:none;box-shadow:0 0 24px color-mix(in srgb,var(--accent) 35%,transparent)}.event-modal h2{margin-top:8px}.event-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}.event-options button{display:grid;grid-template-columns:32px 1fr;gap:5px 10px;text-align:left;align-items:start;padding:16px;background:#0c1928;border-radius:14px}.event-options button>span{grid-row:1/4;color:var(--accent);font-size:24px}.event-options b{font-size:15px}.event-options small{font-size:13px;line-height:1.5}.event-options em{font-style:normal;color:var(--accent);font-size:12px}.event-later{width:100%;margin-top:12px;background:transparent}.phone-discovery.event-ready{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent);background:color-mix(in srgb,var(--accent) 15%,#132338)}
@media(max-width:850px){.chapter-event-callout{display:none}.scene-event-active{top:7px;padding:5px 9px;font-size:11px}.event-options{grid-template-columns:1fr}.event-options button{min-height:96px}.event-modal{max-height:92svh}}
.event-history-panel{padding:16px;margin:0 0 18px;border:1px solid #35465e;border-radius:14px;background:radial-gradient(circle at 85% 10%,color-mix(in srgb,var(--accent) 10%,transparent),#0e1928 64%)}.event-history-panel>p{font-size:13px;line-height:1.55;color:var(--muted);margin:8px 0 12px}.event-history-paths{display:grid;grid-template-columns:1fr 1fr;gap:8px}.event-history-paths>div{display:flex;gap:10px;align-items:center;padding:11px;border:1px solid #29384c;border-radius:10px;background:#0b1725}.event-history-paths>div.shaped{border-color:color-mix(in srgb,var(--accent) 35%,#29384c)}.event-history-paths>div.legacy-unlocked{border-color:var(--accent);box-shadow:inset 0 0 22px color-mix(in srgb,var(--accent) 10%,transparent)}.event-history-paths>div>span{font-size:20px;color:var(--accent)}.event-history-paths b,.event-history-paths small,.event-history-paths em{display:block}.event-history-paths b{font-size:13px}.event-history-paths small{font-size:12px;line-height:1.4;margin-top:4px}.event-history-paths em{font-size:11px;line-height:1.4;color:var(--muted);font-style:normal;margin-top:5px}@media(max-width:480px){.event-history-paths{grid-template-columns:1fr}}
@media(max-width:850px){
 .app.tab-world{height:100svh;height:100dvh;display:flex;flex-direction:column;padding-bottom:calc(76px + env(safe-area-inset-bottom));overflow:hidden}
 .tab-world .topbar{position:relative;flex:0 0 auto;min-height:58px;padding-top:max(4px,env(safe-area-inset-top));padding-bottom:4px}
 .tab-world .game-layout{flex:1;min-height:0;padding-top:6px}
 .tab-world .world{height:100%;display:flex;flex-direction:column;min-height:0}
 .tab-world .world-heading{margin:0 0 4px;display:flex;justify-content:space-between;align-items:center;gap:8px}
 .tab-world .world-heading .eyebrow{font-size:11px;letter-spacing:.02em;white-space:nowrap}
 .tab-world .world-heading h1{font-size:16px;margin:0;text-align:right}
 .tab-world .journey-progress{font-size:11px;margin-bottom:3px;line-height:1.3}
 .tab-world .world-progress{margin-bottom:6px;flex-shrink:0}
 .tab-world .scene-button{height:auto;min-height:110px;max-height:none;flex:1;width:100%;max-width:none;border-radius:16px}
 .tab-world .scene-hint{bottom:12px;font-size:14px}.tab-world .float{font-size:21px}
 .tab-world .scene-toolbar,.tab-world .world-readings,.tab-world .world-focus,.tab-world .streak,.tab-world .resource,.tab-world .rates,.tab-world .elements,.tab-world .world-next,.tab-world .milestone,.tab-world .guest-signin,.tab-world .foot{display:none}
 .tab-world .phone-build{display:block;flex:0 0 auto;padding-top:6px}
 .phone-build-heading{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--muted);margin-bottom:4px;min-height:22px}
 .phone-build-heading button{border:0;background:transparent;padding:2px 5px;font-size:12px;color:var(--accent)}
 .phone-producers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
 .phone-producers button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:100px;padding:7px 4px;border-radius:12px;background:#112237;min-width:0}
 .phone-producers button:disabled{opacity:.6}.phone-producers button:not(:disabled){border-color:var(--accent)}
 .producer-symbol{font-size:23px;line-height:1;color:var(--accent)}.phone-producers b{font-size:12px;line-height:1.2;text-align:center;font-weight:600;overflow-wrap:anywhere}.phone-producers button>span:not(.producer-symbol){font-size:12px;color:var(--accent)}.phone-producers small{font-size:10px;line-height:1.2}
 .phone-discovery{width:100%;min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:6px;padding:8px 10px;font-size:13px;border-radius:10px;color:var(--accent)}.phone-discovery span{font-size:12px;white-space:nowrap}
 .tab-world .surge{position:absolute;top:118px;left:24px;right:24px;width:auto;z-index:3;min-height:44px;margin:0;font-size:12px;background:#133733eb}
 .tab-world .mobile-controls{padding-top:4px;padding-bottom:max(4px,env(safe-area-inset-bottom))}.tab-world .thumb-nav button{min-height:56px}
}
@media(max-width:850px) and (max-height:650px){.tab-world .world-heading h1{font-size:14px}.phone-producers button{min-height:82px}.phone-producers small{display:none}.phone-build-heading{margin:0}.tab-world .topbar{min-height:52px}.tab-world .scene-button{min-height:70px}.tab-world .thumb-nav button{min-height:48px}.app.tab-world{padding-bottom:calc(66px + env(safe-area-inset-bottom))}}
@media(max-width:850px) and (orientation:landscape) and (max-height:500px){.tab-world .world{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:20px 4px 1fr;column-gap:12px}.tab-world .world-heading{grid-column:1}.tab-world .journey-progress{display:none}.tab-world .world-progress{grid-column:1}.tab-world .scene-button{grid-column:1;grid-row:3}.tab-world .phone-build{grid-column:2;grid-row:1 / 4;align-self:center;padding:0}.phone-producers button{min-height:76px}.phone-build-heading{display:none}}
.orbit-legend{position:absolute;top:10px;left:10px;right:10px;z-index:3;display:flex;flex-wrap:wrap;gap:6px;pointer-events:none}.orbit-legend>span{padding:4px 7px;font-size:11px;color:#e8dcc7;background:#0a1226b8;border:1px solid #65748255;border-radius:6px;backdrop-filter:blur(5px)}
.scale-badge{position:absolute;top:10px;right:10px;z-index:4;display:grid;justify-items:end;gap:2px;padding:7px 9px;pointer-events:none;text-align:right;color:#f4f7fb;background:#071220c9;border:1px solid #7892aa55;border-radius:9px;box-shadow:0 5px 22px #0006;backdrop-filter:blur(7px)}.scale-badge b{font-size:12px;line-height:1.1;letter-spacing:.025em}.scale-badge small{font-size:10px;color:#a9c0d4;line-height:1.1}.orbit-legend{right:128px}
.world-reveal{position:absolute;z-index:6;width:0;height:0;pointer-events:none;color:#fff;animation:world-reveal 3.2s ease-in-out both}.world-reveal>i{position:absolute;left:-9px;top:-9px;width:18px;height:18px;border:2px solid var(--accent);border-radius:50%;box-shadow:0 0 0 1px #07111b,0 0 24px var(--accent)}.world-reveal>i:after{content:"";position:absolute;inset:-15px;border:1px solid color-mix(in srgb,var(--accent) 65%,transparent);border-radius:50%;animation:reveal-ring 1.1s ease-out 2}.world-reveal>span{position:absolute;left:0;width:190px;display:grid;gap:4px;padding:9px 11px;text-align:left;background:#07111be8;border:1px solid color-mix(in srgb,var(--accent) 55%,#314154);border-radius:9px;box-shadow:0 8px 30px #0009;backdrop-filter:blur(6px);transform:translateX(-50%)}.world-reveal.above>span{bottom:20px}.world-reveal.below>span{top:20px}.world-reveal b{font-size:12px;line-height:1.25;color:var(--accent)}.world-reveal small{font-size:11px;line-height:1.35;color:#dae2ec}.world-reveal.automator>i{border-style:dashed}@keyframes world-reveal{0%{opacity:0}10%,73%{opacity:1}100%{opacity:0}}@keyframes reveal-ring{from{opacity:.9;transform:scale(.35)}to{opacity:0;transform:scale(1.35)}}
@media(max-width:420px){.scale-badge{top:8px;right:8px;padding:6px 7px}.scale-badge b{font-size:11px}.orbit-legend{top:42px;right:8px}}
/* Connected research map with inspectable nodes and a focused requirements panel. */
.research-legend{display:flex;flex-wrap:wrap;gap:8px 16px;font-size:12px;color:var(--muted);margin:8px 0 16px}.research-legend span:first-child{color:#a3dab4}.research-legend span:nth-child(2){color:var(--accent)}.research-map{position:relative;width:100%;min-width:0;background:radial-gradient(ellipse,#19273966,#09132044);border:1px solid var(--line);border-radius:16px;overflow:hidden}.research-map>svg{position:absolute;inset:0;width:100%;height:100%}.research-map path{fill:none;stroke:#3d4d64;stroke-width:2;vector-effect:non-scaling-stroke}.research-map path.completed{stroke:#71a18c}.research-map path.highlighted{stroke:var(--accent);stroke-width:2.5}.research-node{position:absolute;transform:translate(-50%,-50%);width:28%;max-width:144px;min-height:70px;display:flex;align-items:center;flex-direction:column;justify-content:center;gap:4px;padding:6px 5px;border-radius:10px;background:#111e30;font-size:12px;line-height:1.2}.research-node>span{color:var(--accent);font-size:16px;line-height:1}.research-node b{font-size:12px;font-weight:600;overflow-wrap:anywhere}.research-node small{font-size:10px}.research-node.done{border-color:#689881;color:#b4dec4}.research-node.ready{border-color:var(--accent);background:#29313e}.research-node.locked{color:#bac5d5;background:#101a29}.research-node.selected{box-shadow:0 0 0 2px var(--accent),0 5px 20px #0007}.research-detail{padding:20px;margin-top:16px;border:1px solid var(--line);border-radius:14px;background:#101d2c}.research-detail h3{font-size:21px;margin:10px 0}.research-detail p{font-size:14px;color:var(--muted);line-height:1.6;margin:10px 0}.research-effect{color:var(--accent);font-size:14px;margin:12px 0}.prerequisite-chips{display:flex;flex-wrap:wrap;gap:6px}.prerequisite-chips button{font-size:12px;padding:8px 10px;min-height:44px}.prerequisite-chips button.done{color:#b2dec4;border-color:#598c73}.prerequisite-chips button:disabled{opacity:.8}.research-checklist{list-style:none;padding:0;margin:14px 0;display:grid;gap:8px;font-size:14px;line-height:1.5}.research-checklist li{color:#edcaa0}.research-checklist li.met{color:#9cdbb5}.research-action{display:block;width:100%;min-height:48px;margin-top:12px;background:var(--accent);color:#0c1728;font-weight:600}.research-success{color:#9cdbb5!important}.purchase .need{color:#eac29b}.phone-producers .recommended{box-shadow:inset 0 0 0 1px var(--accent);border-color:var(--accent);background:#1b2e43}.phone-build-heading span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px}.phone-build-heading button{white-space:nowrap}.phone-discovery>span{max-width:48%;white-space:normal;text-align:right;font-size:11px;line-height:1.3}.phone-discovery{font-size:12px}.ingredient-tip{padding:12px;background:#1d3044;border-radius:9px}
.synthesis-card{padding:18px;margin-top:12px;border:1px solid #3d4960;border-radius:14px;background:radial-gradient(circle at 85% 10%,#313b5d55,#0e1928 62%)}.synthesis-card.active{border-color:var(--accent);box-shadow:inset 0 0 28px color-mix(in srgb,var(--accent) 9%,transparent)}.synthesis-card h3{font-size:18px;margin:9px 0}.synthesis-card>p{font-size:14px;color:var(--muted);line-height:1.55;margin:9px 0}
@media(max-width:360px){.research-node b{font-size:11px}.research-node{width:29%;padding:6px 3px}.research-detail,.synthesis-card{padding:16px}}
/* Regular purchase labels stay legible while the scene uses the remaining height. */
.research-node{min-height:86px}.research-node b{font-size:14px;line-height:1.25}.research-node small{font-size:12px}.research-legend{font-size:13px}.orbit-legend>span{font-size:12px}
@media(max-width:850px){.phone-producers b{font-size:14px;line-height:1.2}.phone-producers small{font-size:12px}.phone-producers button>span:not(.producer-symbol){font-size:12px}.phone-producers button{min-height:110px}.phone-build-heading span{font-size:12px}.phone-discovery{font-size:14px}.phone-discovery>span{font-size:12px}.app.tab-world{overflow-x:hidden;overflow-y:auto}.tab-world .scene-button{min-height:90px}}
@media(max-width:360px){.research-node b{font-size:13px}.phone-producers b{font-size:13px}.tab-world .brand{font-size:17px}}
@media(max-width:850px) and (max-height:650px){.phone-producers button{min-height:92px}.tab-world .scene-button{min-height:70px}}
.chain-bonus{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:12px;margin:12px 0;background:#17283a;border:1px solid #31506a;border-radius:10px}.chain-bonus b{color:var(--accent);font-size:15px}.chain-bonus span{font-size:13px;color:var(--muted);text-align:right}
@media(max-width:420px){.chain-bonus,.synthesis-status{align-items:flex-start;flex-direction:column}.chain-bonus span,.synthesis-status span{text-align:left}}
.focus-link,.focus-story,.focus-burst{display:block;margin-top:6px;font-size:12px;line-height:1.45}.focus-link{color:var(--accent)}.focus-story{color:var(--muted)}.focus-burst{color:#f2dfb0;padding-top:6px;border-top:1px solid #ffffff12}
.synthesis-status{display:flex;justify-content:space-between;gap:12px;padding:11px 12px;margin:0 0 12px;border:1px solid #36465e;border-radius:10px;background:#101b2a}.synthesis-status b{font-size:14px}.synthesis-status span{font-size:12px;color:var(--muted);text-align:right}.synthesis-status.active{border-color:var(--accent);box-shadow:inset 0 0 22px color-mix(in srgb,var(--accent) 8%,transparent)}.synthesis-status.active b{color:var(--accent)}
.doctrine-panel{padding:15px;margin:0 0 13px;border:1px solid #4b435f;border-radius:12px;background:linear-gradient(145deg,#211d31,#111a28)}.doctrine-panel h3{font-size:16px;margin:8px 0 12px}.doctrine-panel>p{font-size:13px!important;margin:8px 0!important}.doctrine-panel.chosen{border-color:#8b75ad}.doctrine-panel.chosen>b{display:block;color:#e8d5ff;font-size:13px;margin-top:10px}.doctrine-options{display:grid;grid-template-columns:1fr 1fr;gap:8px}.doctrine-options button{text-align:left;min-height:118px;padding:12px;background:#151d2d}.doctrine-options b,.doctrine-options span,.doctrine-options small{display:block}.doctrine-options b{font-size:14px;color:#f0e6ff}.doctrine-options span{font-size:12px;line-height:1.45;color:var(--muted);margin:7px 0}.doctrine-options small{font-size:12px;color:var(--accent)}@media(max-width:420px){.doctrine-options{grid-template-columns:1fr}.doctrine-options button{min-height:100px}}
.formation-panel{padding:20px;margin-bottom:18px;background:linear-gradient(145deg,#142232,#0d1826);border:1px solid #334b62;border-radius:14px}.formation-panel>p{font-size:14px;color:var(--muted);line-height:1.6;margin:10px 0 14px}.formation-grid{display:grid;gap:8px}.formation-grid button{display:flex;align-items:center;gap:12px;width:100%;min-height:70px;text-align:left;padding:11px 13px;background:#101d2c}.formation-grid button.affordable{border-color:var(--accent)}.formation-grid button>span:last-child{display:flex;flex-direction:column;gap:4px;min-width:0}.formation-grid b{font-size:14px}.formation-grid small{font-size:12px;color:var(--muted);line-height:1.35}.formation-icon{display:grid;place-items:center;width:43px;height:43px;flex:0 0 43px;border-radius:50%;border:1px solid color-mix(in srgb,var(--accent) 55%,#334b62);color:var(--accent);font-weight:700;font-size:13px;background:#0a1522}@media(max-width:850px){.formation-panel{padding:16px}.formation-grid button{min-height:76px}.formation-grid b{font-size:15px}.formation-grid small{font-size:13px}}
.memory-panel{padding:20px;margin-bottom:18px;background:radial-gradient(circle at 90% 0%,#35294e66,#111c2c 52%);border:1px solid #51456c;border-radius:14px}.memory-panel>p{font-size:14px;color:var(--muted);line-height:1.6;margin:10px 0 14px}.memory-track{display:grid;gap:7px}.memory-track>div{display:flex;align-items:center;gap:11px;padding:10px;border:1px solid #29384b;border-radius:10px;opacity:.55}.memory-track>div>span{display:grid;place-items:center;width:30px;height:30px;flex:0 0 30px;border-radius:50%;border:1px solid #526177;color:#92a0b4;font-size:13px}.memory-track b{display:block;font-size:14px}.memory-track small{display:block;margin-top:3px;font-size:12px;line-height:1.4;color:var(--muted)}.memory-track .unlocked{opacity:1;border-color:#77649d;background:#241e3855}.memory-track .unlocked>span{color:#f4dca9;border-color:#ad8dd6;box-shadow:0 0 16px #b592ef55}.memory-track .next{opacity:1;border-color:var(--accent)}.memory-track .next>span{color:var(--accent);border-color:var(--accent)}.memory-stats{display:flex;justify-content:space-between;gap:10px;margin-top:12px;color:#e1d3ef;font-size:13px}.memory-unlock{padding:14px;background:#2c2540;border:1px solid #6f5d91;border-radius:10px;color:#e8def3!important}@media(max-width:850px){.memory-panel{padding:16px}.memory-track small{font-size:13px}.memory-stats{flex-direction:column}}

.audio-settings{margin:18px 0;padding:18px;border:1px solid #3a4b64;border-radius:14px;background:linear-gradient(140deg,#192b40,#101b2b)}.audio-settings h3{font-size:18px}.audio-setting-row{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:48px}.audio-setting-row label{font-size:15px}.audio-settings .audio-status{font-size:13px;line-height:1.5;margin:6px 0 14px}.audio-volume{margin:10px 0 14px}.audio-volume>div:first-child{display:flex;justify-content:space-between;gap:12px;margin-bottom:4px;font-size:14px}.audio-volume output{color:var(--accent);font-variant-numeric:tabular-nums}.audio-settings [data-slot=switch]{width:44px;height:26px;padding:0;border-radius:30px;border:1px solid #53657e;background:#35445a}.audio-settings [data-slot=switch][data-state=checked]{background:var(--accent);border-color:var(--accent)}.audio-settings [data-slot=switch-thumb]{display:block;width:20px;height:20px;margin:2px;background:#fff;border-radius:50%;transform:translateX(0);transition:transform .18s}.audio-settings [data-slot=switch-thumb][data-state=checked]{transform:translateX(18px)}.audio-settings [data-slot=slider]{position:relative;display:flex;width:100%;height:38px;align-items:center;touch-action:none;user-select:none;cursor:pointer}.audio-settings [data-slot=slider-track]{position:relative;flex:1;height:6px;background:#34455d;border-radius:10px;overflow:hidden}.audio-settings [data-slot=slider-range]{position:absolute;height:100%;background:var(--accent)}.audio-settings [data-slot=slider-thumb]{display:block;width:24px;height:24px;border-radius:50%;border:2px solid #fff;background:var(--accent);box-shadow:0 0 0 5px #ffffff10}.audio-settings [data-disabled]{opacity:.45;cursor:default}.audio-settings [data-slot=slider-thumb]:focus-visible{outline:2px solid #fff;outline-offset:5px}.audio-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0}.audio-footer>span{font-size:13px;line-height:1.5;color:var(--muted)}.audio-footer button{flex-shrink:0;min-height:44px;font-size:14px}.audio-settings>small{display:block;font-size:12px;line-height:1.5}.audio-quick-toggle{position:relative}.audio-quick-toggle>span{position:absolute;right:7px;bottom:4px;font-size:15px}.topright .audio-quick-toggle{min-width:44px;width:44px;padding:8px}.topright{gap:8px}
@media(max-width:850px){.audio-settings{padding:14px}.topright{gap:2px}.topright .audio-quick-toggle{min-width:38px;width:38px}.tab-world .brand{font-size:18px;gap:4px}.mobile-counter b{font-size:16px}.mobile-counter span{font-size:11px;white-space:nowrap}.audio-footer{align-items:flex-start}}

/* Final phone cascade: one non-scrolling play surface with the world and all
   three immediate purchases visible together. Detailed panels remain tabs. */
@media(max-width:850px){
 .app.tab-world{height:100svh;height:100dvh;max-height:100dvh;overflow:hidden;padding-bottom:calc(66px + env(safe-area-inset-bottom))}
 .tab-world .game-layout,.tab-world .world{min-height:0;overflow:hidden}
 .tab-world .topbar{min-height:54px}
 .tab-world .scene-button{flex:1 1 auto;min-height:clamp(120px,24svh,220px)}
 .tab-world .phone-build{flex:0 0 auto;padding-top:4px}
 .phone-producers button{min-height:clamp(78px,11.5svh,102px);padding:6px 3px;gap:3px}
 .phone-producers b{font-size:clamp(12px,3.5vw,14px)}
 .phone-producers small{font-size:11px}
 .phone-discovery{min-height:42px;margin-top:4px;padding-block:6px}
 .phone-build-heading{min-height:19px;margin-bottom:3px}
 .tab-world .mobile-controls{padding-top:3px}
 .tab-world .thumb-nav button{min-height:52px}
}
@media(max-width:850px) and (max-height:700px){
 .tab-world .world-heading{margin-bottom:2px}.tab-world .world-heading h1{font-size:14px}
 .tab-world .journey-progress{margin-bottom:1px}.tab-world .world-progress{margin-bottom:3px}
 .phone-producers button{min-height:76px}.phone-producers small{display:none}
 .tab-world .scene-button{min-height:105px}.phone-build-heading{min-height:17px}
 .tab-world .thumb-nav button{min-height:48px}
}
/* Turning-point details stay in Strategy and the existing event dialog. */
.living-scene canvas{touch-action:none}
.structure-feedback{position:absolute;z-index:4;width:176px;max-width:calc(100% - 20px);transform:translate(-50%,-100%);padding:7px 9px;border:1px solid #d7c39288;border-radius:9px;background:#0b172ce8;text-align:center;pointer-events:none;box-shadow:0 3px 16px #050a1855}.structure-feedback b,.structure-feedback small{display:block}.structure-feedback b{font-size:12px;line-height:1.35;color:#ffe2b3}.structure-feedback small{font-size:11px;line-height:1.35;color:#d3dfdf;margin-top:2px}.living-scene.responding .scale-badge{opacity:0}
.scene-shell{position:relative;min-width:0}.camera-view{position:absolute;right:9px;top:9px;z-index:6;min-height:44px;min-width:76px;padding:7px 10px;font-size:12px;display:flex;align-items:center;justify-content:center;gap:6px;background:#0b172cdf!important;box-shadow:0 3px 12px #0004}.camera-view span{font-size:20px}.living-scene{background:radial-gradient(ellipse at 50% 40%,#183344,#060c1b 78%)}.scene-hint small{display:block;margin-top:4px;font-size:11px;font-weight:400;color:#c7d7e1;letter-spacing:0}.scene-shell .scale-badge{max-width:calc(100% - 100px)}
@media(max-width:850px){.tab-world .scene-shell{flex:1 1 auto;min-height:clamp(120px,24svh,220px);position:relative;display:flex;min-width:0}.tab-world .scene-shell .scene-button{height:100%;min-height:0;position:absolute;inset:0}.tab-world .scene-hint{bottom:9px;font-size:13px}.tab-world .scene-hint small{font-size:10px}.camera-view{top:6px;right:6px;min-width:70px}}
@media(max-width:850px) and (max-height:700px){.tab-world .scene-shell{min-height:105px}}
@media(max-width:850px) and (orientation:landscape) and (max-height:500px){.tab-world .scene-shell{grid-column:1;grid-row:3;min-height:0;height:100%}.tab-world .scene-shell .scene-button{min-height:0}.tab-world .scene-hint small{display:none}}
.wonder-panel{margin:22px 0;padding:20px;border:1px solid #4b5370;border-radius:15px;background:linear-gradient(140deg,#20283d,#101925)}.wonder-panel>p,.turning-reward{font-size:14px;line-height:1.55;color:var(--muted)}.wonder-panel .system-heading{gap:14px;flex-wrap:wrap}.wonder-panel .system-heading>span{font-size:12px}.wonder-list{display:grid;gap:12px;margin-top:16px}.wonder-list>div{display:flex;gap:12px;padding:14px;border:1px solid #354256;border-radius:10px;opacity:.7}.wonder-list>div.built{border-color:var(--accent);opacity:1}.wonder-list>div>span{font-size:25px;color:var(--accent)}.wonder-list b,.wonder-list small{display:block}.wonder-list b{font-size:16px;line-height:1.4}.wonder-list small{font-size:13px;margin-top:5px;color:var(--accent)}.wonder-list p{font-size:14px;line-height:1.5;margin:8px 0 0;color:var(--muted)}.wonder-panel>button{margin-top:14px;min-height:44px}.turning-reward{border-left:2px solid var(--accent);padding-left:12px}
.specimen-control{position:absolute;left:10px;bottom:54px;z-index:6;display:flex;align-items:center;gap:8px;max-width:calc(100% - 20px);padding:4px 7px;background:#092033e8;border:1px solid #5b8590;border-radius:10px;font-size:12px;box-shadow:0 3px 10px #0004}.specimen-control select{min-width:0;max-width:185px;min-height:40px;padding:5px 6px;color:#e0eeea;background:#173746;border:0;border-radius:7px;font:inherit;font-size:13px}.specimen-control span{color:#b7d6ce;white-space:nowrap}@media(max-width:850px) and (max-height:600px){.specimen-control{bottom:45px}.specimen-control span{display:none}.specimen-control select{min-height:36px}}
.test-preview-controls{display:grid;gap:12px;margin:12px 0}.test-preview-controls label{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;font-size:14px;line-height:1.5}.test-preview-controls select{max-width:100%;min-height:44px;padding:7px;background:#372736;color:#e8dae6;border:1px solid #806374;border-radius:8px;font:inherit}.test-preview-controls input{width:20px;height:20px;accent-color:#e3adcd}.test-preview-controls button{min-height:44px;font-size:14px}
/* Discovery console uses the existing action slot; it adds no phone play row. */
.discovery-backdrop{z-index:100;backdrop-filter:blur(5px)}.discovery-console{width:min(620px,100%);max-height:88dvh;overflow-y:auto;padding:22px;background:linear-gradient(150deg,#162d3c,#0b1728);border-color:#5b8291}.discovery-console-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.discovery-console-heading h2{margin:7px 0 0;font-size:26px}.discovery-console-heading>button{min-width:44px;min-height:44px;font-size:24px}.discovery-console>p{font-size:14px;color:var(--muted);line-height:1.6}.frontier-options{display:grid;gap:12px;margin:18px 0}.frontier-options article{padding:16px;border:1px solid #385666;border-radius:14px;background:#0d1d2c}.frontier-options article.ready{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 8%,#102331)}.frontier-title{display:flex;align-items:center;gap:12px}.frontier-title>span{font-size:29px;color:var(--accent);width:32px;flex-shrink:0}.frontier-title>div{flex:1;min-width:0}.frontier-title h3{font-size:17px;line-height:1.3;margin:4px 0}.frontier-title small{font-size:12px;color:var(--muted)}.frontier-title>b{font-size:17px;color:var(--accent);text-align:right}.frontier-title>b small{display:block;font-weight:400;margin-top:4px}.frontier-options article>p{font-size:14px;line-height:1.5;color:var(--muted)}.world-consequence{padding:11px 13px;border-left:2px solid var(--accent);background:#243f464a;border-radius:0 9px 9px 0;color:#d1e6df!important}.world-consequence b{display:block;font-size:12px;margin-bottom:4px;color:var(--accent)}.frontier-benefits{display:flex;justify-content:space-between;flex-wrap:wrap;gap:6px;font-size:13px;color:var(--accent);line-height:1.5}.frontier-deficit{display:block;color:#e5bc9c;font-size:12px;margin-top:5px}.frontier-options article>button{width:100%;min-height:46px;font-size:14px;margin-top:12px;background:var(--accent);color:#10212a;font-weight:600}.frontier-options article>button:disabled{background:#213544;color:#a0b8c4;opacity:1}.atlas-link{width:100%;min-height:46px;font-size:14px}.atlas-summary{display:flex;justify-content:space-between;gap:12px;color:var(--muted);font-size:14px;line-height:1.5;margin:12px 0}.atlas-summary b{color:var(--accent);font-size:22px}.research-families{display:flex;gap:7px;overflow-x:auto;padding:5px 0 8px}.research-families button{white-space:nowrap;min-height:44px;padding:8px 12px;font-size:13px}.atlas-inspector{margin-top:12px;scroll-margin-top:75px;border-color:#547181;background:linear-gradient(140deg,#193040,#101d2c)}.science-note{font-size:14px;margin:12px 0;border:1px solid #385363;border-radius:9px;padding:11px}.science-note summary{cursor:pointer;line-height:1.5;min-height:24px}.research-map-viewport{max-height:58dvh;overflow-y:auto;overscroll-behavior:contain;border:1px solid #476474;border-radius:14px}.research-map-viewport .research-map{border:0;border-radius:0}.research-frontier-button>b{font-weight:600}.research-frontier-button>span{color:#d2dfdc}.research-node b{font-size:13px}.research-node small{font-size:12px}.research-node{min-height:78px}.research-map-viewport:focus-visible{outline:2px solid var(--accent);outline-offset:3px}@media(max-width:850px){.discovery-backdrop{padding:8px;align-items:end}.discovery-console{padding:16px;max-height:88dvh;padding-bottom:max(16px,env(safe-area-inset-bottom))}.frontier-options article{padding:13px}.frontier-title{gap:9px}.frontier-title h3{font-size:16px}.frontier-title>b{font-size:15px}.atlas-summary{font-size:13px}.atlas-summary>span:last-child{text-align:right}.research-detail{padding:16px}.research-map-viewport{max-height:48dvh}}
/* Discovery depth belongs to detail tabs, preserving the phone World viewport. */
.journey-panel,.origin-panel{padding:20px;border:1px solid #465969;border-radius:14px;background:#10202c;margin-bottom:18px;min-width:0}.journey-panel>p,.origin-panel>p{color:var(--muted);font-size:14px;line-height:1.6;margin:12px 0}.journey-chapter{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;font-size:14px;margin-bottom:14px}.journey-chapter select{background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:9px;padding:10px;min-height:44px;max-width:100%;font:inherit}.journey-missions{display:grid;gap:9px}.journey-missions article{padding:14px!important;border-radius:12px;background:#0e1927}.mission-title,.mission-actions{display:flex;align-items:center;justify-content:space-between;gap:10px}.mission-title b{font-size:15px}.mission-title>span{font-size:12px;white-space:nowrap;color:var(--accent)}.journey-missions p{font-size:13px;line-height:1.5;margin:8px 0;color:var(--muted)}.journey-missions progress{width:100%;height:6px;accent-color:var(--accent);display:block;margin:12px 0}.journey-missions .ready{border-color:var(--accent)}.journey-missions .recorded{border-color:#437665}.mission-actions button{min-height:44px;font-size:13px;padding:9px 12px}.archive-upgrades{display:grid;gap:8px;margin:18px 0}.archive-upgrades>button{display:flex;align-items:center;text-align:left;gap:12px;min-height:90px}.archive-upgrades>button>span{font-size:24px;color:var(--accent)}.archive-upgrades>button>div{flex:1;min-width:0}.archive-upgrades b,.archive-upgrades small,.archive-upgrades em{display:block;line-height:1.5}.archive-upgrades b{font-size:14px}.archive-upgrades small{font-size:12px;margin:5px 0}.archive-upgrades em{font-size:12px;font-style:normal;color:var(--accent)}.archive-upgrades strong{font-size:12px;white-space:nowrap;color:var(--accent)}.origin-options{display:grid;gap:9px;margin:12px 0}.origin-options button{display:grid;grid-template-columns:32px 1fr;gap:6px 10px;text-align:left;padding:16px}.origin-options button>span{grid-row:1/4;font-size:24px;color:var(--accent)}.origin-options small,.origin-options em{font-size:13px;line-height:1.5}.origin-options em{font-style:normal;color:#acd2d8}.origin-options .selected{border-color:var(--accent);background:#183342}.thumb-nav button{position:relative}.nav-rewards{position:absolute;top:3px;right:10px;border-radius:12px;background:var(--accent);color:#142130;min-width:18px;height:18px;line-height:18px;font-size:10px}.scene-test-active{position:absolute;top:9px;left:9px;max-width:65%;z-index:4;font-size:10px;background:#4a2835ec;border:1px solid #d7979e;border-radius:7px;padding:5px 7px;pointer-events:none}.test-lab-panel{border:1px solid #765563;border-radius:12px;background:#251c2b;padding:14px;margin:16px 0}.test-lab-panel h3{font-size:16px}.test-speed{display:flex;gap:8px;margin:12px 0}.test-speed button{min-width:58px;min-height:44px}.test-speed [aria-pressed=true]{border-color:#f0b6c9;background:#503044}.test-lab-panel>button{width:100%;min-height:44px}.test-exit{font-size:11px;padding:6px;min-height:44px;color:#fac5cc}.topright:has(.test-exit){gap:5px}@media(max-width:850px){.journey-panel,.origin-panel{padding:14px}.mission-actions{flex-wrap:wrap}.mission-actions button{flex:1}.topright:has(.test-exit) .audio-quick-toggle{display:none}.archive-upgrades>button{padding:12px;gap:9px}.archive-upgrades strong{white-space:normal;max-width:55px}}
.opening-intro{position:absolute;inset:0;z-index:5;pointer-events:none;color:#fff4df;text-shadow:0 2px 10px #000}.opening-copy{position:absolute;top:12px;left:20px;right:95px;animation:opening-arrival .65s ease-out}.opening-copy>span{font-size:10px;letter-spacing:.16em;color:#ffc886}.opening-copy h2{font-size:32px;line-height:1.08;font-weight:500;margin:7px 0}.opening-copy p{font-size:13px;line-height:1.45;max-width:330px;margin:0;color:#e9ddd1}.opening-skip{position:absolute;left:10px;bottom:8px;pointer-events:auto;min-height:44px;background:#0b172ccc!important;font-size:11px}.opening-objective{border-color:#f1b47b;background:#322a24}.opening-objective>b{min-width:0;overflow:hidden;text-overflow:ellipsis}.preview-opening{width:100%;min-height:48px;margin:8px 0;color:#ffd5a6}.opening-intro~.camera-view{z-index:6}@keyframes opening-arrival{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}@media(max-width:850px){.opening-copy{left:12px;top:8px;right:84px}.opening-copy h2{font-size:24px;max-width:240px;margin:4px 0}.opening-copy>span{font-size:8px}.opening-copy p{font-size:11px;max-width:250px}.opening-objective>b{font-size:12px}.opening-objective>span{font-size:10px;max-width:35%}.opening-skip{left:6px;bottom:6px;font-size:10px;min-height:44px}}@media(max-height:700px) and (max-width:850px){.opening-copy h2{font-size:19px}.opening-copy p{display:none}}@media(prefers-reduced-motion:reduce){.opening-copy{animation:none}}
/* The reserved update strip doubles as the habitat entrance, without covering gameplay. */
.notice-slot:not(.has-notice) .notice{padding:0}.notice-slot:not(.has-notice) .notice-text{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.atlas-launch{width:100%;height:44px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 12px;background:#0f2030;border:1px solid #385060;border-radius:9px;text-align:left;font-size:14px}.atlas-launch>span{color:#dceee9;font-weight:600;white-space:nowrap}.atlas-launch small{font-size:12px;text-align:right;color:#bdd2d2;line-height:1.25}.atlas-launch small b{font-size:17px;margin-left:5px;color:var(--accent)}
.atlas-backdrop{z-index:90;padding:20px;background:#030914e8;backdrop-filter:blur(8px)}.habitat-atlas{width:min(1180px,100%);max-height:94dvh;overflow:auto;overscroll-behavior:contain;border:1px solid #496476;border-radius:22px;background:linear-gradient(145deg,#162a37,#0a1423 58%);box-shadow:0 35px 100px #0009;color:#edf4f3}.atlas-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:24px 26px 18px}.atlas-header h2{font-size:29px;letter-spacing:-.04em;margin-top:7px}.atlas-header>button{min-width:44px;min-height:44px;font-size:25px;border-color:#4c6172;background:#122637}.atlas-header .eyebrow{font-size:11px;color:#afc8c9}.habitat-rail{display:flex;gap:8px;overflow-x:auto;padding:0 26px 18px;scroll-snap-type:x proximity}.habitat-rail>button{display:flex;align-items:center;gap:9px;min-width:164px;min-height:70px;padding:10px 12px;border-color:#304957;background:#10202f;text-align:left;scroll-snap-align:start}.habitat-rail>button>span:first-child{font-size:25px;color:#a6c6c6}.habitat-rail b,.habitat-rail small{display:block}.habitat-rail b{font-size:14px;white-space:nowrap}.habitat-rail small{font-size:12px;line-height:1.4;margin-top:5px}.habitat-rail em{font-style:normal;font-size:12px;color:#91b2b6;margin-left:auto}.habitat-rail .selected{background:color-mix(in srgb,var(--habitat-color) 12%,#102334);border-color:var(--habitat-color)}.habitat-rail .selected>span:first-child{color:var(--habitat-color)}.habitat-rail button:disabled{opacity:.4}
.atlas-columns{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:26px;padding:0 26px 24px}.habitat-view,.atlas-research{min-width:0}.habitat-caption{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:72px}.habitat-caption h3{font-size:23px;line-height:1.2;letter-spacing:-.035em;margin:6px 0 14px}.habitat-caption .eyebrow{color:var(--habitat-color);font-size:11px}.habitat-live{font-size:10px;letter-spacing:.08em;border:1px solid #4e6e77;padding:6px 8px;border-radius:6px;color:#bad2cd}.atlas-scene{position:relative;height:340px;isolation:isolate;overflow:hidden;border:1px solid #3d5b68;border-radius:17px;background:#081723;touch-action:none}.atlas-scene .living-scene{background:radial-gradient(ellipse at 45% 30%,#214458,#07101d 75%)}.atlas-scene .scale-badge{max-width:65%;right:10px}.atlas-gesture{position:absolute;bottom:13px;left:12px;right:12px;text-align:center;color:#d6e8e9;font-size:12px;pointer-events:none;text-shadow:0 2px 5px #000;z-index:6}.habitat-description{color:#b3c8ce;font-size:14px;line-height:1.65;margin-top:14px}.habitat-tally{display:flex;flex-wrap:wrap;gap:10px 24px;padding:15px 0;border-bottom:1px solid #2e4654;font-size:12px;color:#a7c0c6}.habitat-tally b{font-size:17px;color:var(--habitat-color);margin-right:3px;font-variant-numeric:tabular-nums}.atlas-specimens{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;margin-top:10px}.atlas-specimens select{min-height:44px;max-width:60%;color:#deece7;background:#153443;border:1px solid #547782;border-radius:8px;padding:6px;font:inherit}.field-benefits{margin-top:18px;padding:16px;background:#112831;border:1px solid #355861;border-radius:13px}.field-benefits>b{font-size:14px;color:#d5e9df}.field-benefits>div{display:flex;justify-content:space-between;gap:10px;margin-top:14px}.field-benefits span{display:grid;gap:4px;font-size:11px;color:#acc4c9}.field-benefits strong{font-size:24px;letter-spacing:-.04em;color:#b5e6d0}.field-benefits p{font-size:12px;color:#a6c3c6;line-height:1.55;margin-top:13px}.atlas-mode{display:flex;gap:5px;padding:4px;background:#07131f;border:1px solid #2c4755;border-radius:11px;margin-bottom:16px}.atlas-mode button{flex:1;border:0;font-size:14px;min-height:44px;background:transparent;color:#acc2cc}.atlas-mode button[aria-pressed=true]{color:#edf6f0;background:#29464f}.field-path{display:grid;gap:6px;margin-bottom:18px}.field-path button{display:grid;grid-template-columns:28px 1fr;column-gap:10px;row-gap:3px;text-align:left;align-items:center;background:#112433;border-color:#2a4758;padding:11px 13px;min-height:62px}.field-path button>span{grid-row:1/3;border:1px solid #4c6a74;border-radius:50%;width:27px;height:27px;display:grid;place-items:center;font-size:13px;color:var(--habitat-color)}.field-path b{font-size:14px;font-weight:600}.field-path small{font-size:12px}.field-path button[aria-pressed=true]{border-color:var(--habitat-color);background:color-mix(in srgb,var(--habitat-color) 9%,#102536)}.field-project{border:1px solid #496375;border-radius:15px;padding:21px;background:linear-gradient(150deg,#1c3544,#112131)}.field-project h3{font-size:25px;letter-spacing:-.035em;line-height:1.15;margin:10px 0}.field-project .eyebrow{font-size:10px;line-height:1.5;color:#a6c5c9}.field-question{font-size:16px;line-height:1.5;color:#dae9e8;margin-bottom:18px}.field-explainer,.field-lock{font-size:14px;line-height:1.6;color:#adc7d0}.field-methods{display:grid;gap:10px;margin-top:16px}.field-methods button{display:grid;gap:7px;padding:15px;text-align:left;background:#0b1d2b;border-color:#456879;min-width:0}.field-methods button>span{font-size:10px;letter-spacing:.06em;color:#afc6d2}.field-methods b{font-size:16px;color:#edf2eb}.field-methods small{font-size:13px}.field-methods strong{font-size:13px;font-weight:500;color:var(--habitat-color)}.field-methods em{font-style:normal;font-size:13px;color:#e6efe9;border-top:1px solid #385563;padding-top:9px}.field-methods button:disabled{opacity:.6}.field-progress-label{display:flex;justify-content:space-between;gap:10px;font-size:13px;line-height:1.5}.field-progress-label span{color:var(--habitat-color);text-align:right}.field-running progress{display:block;width:100%;height:8px;accent-color:var(--habitat-color);margin:15px 0}.field-running p{font-size:14px;line-height:1.6;color:#b2ccd1}.field-primary{display:block;width:100%;min-height:48px;margin-top:17px;font-size:14px;line-height:1.5;background:var(--habitat-color);border:0;color:#112332;font-weight:600}.field-primary small{color:inherit}.field-primary:hover:not(:disabled){background:var(--habitat-color);filter:brightness(1.07)}.field-result{padding:17px;border:1px solid #598373;background:#143733;border-radius:12px}.field-result>span{font-size:11px;letter-spacing:.06em;color:#b1e1c1}.field-result p{font-size:15px;line-height:1.7;margin:12px 0;color:#e2ece5}.field-result strong{display:block;font-size:14px;color:#d6e9b0}.field-result small{display:block;margin-top:9px;font-size:12px;color:#abd0be}.field-active-link{width:100%;margin-top:12px;font-size:13px;line-height:1.5;min-height:48px}.atlas-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid #2a4352;padding:17px 26px;background:#0d1c2c}.atlas-footer span{font-size:13px;color:#a6c5c9}.atlas-footer button{min-height:44px;font-size:14px;white-space:nowrap}.field-guide h3{font-size:22px;margin:12px 0 18px}.field-guide>p{font-size:15px;line-height:1.6;color:#bdd2d6}.field-guide article{padding:18px;border:1px solid #3d5a64;background:#112a33;border-radius:12px;margin-bottom:12px}.field-guide small{font-size:11px;color:#a6c2cb}.field-guide h4{font-size:18px;margin:9px 0}.field-guide p{font-size:14px;line-height:1.7;color:#c3d7db}.field-guide b{display:block;font-size:13px;color:var(--habitat-color);margin-top:10px}
@media(max-width:760px){.atlas-backdrop{padding:6px;align-items:center}.habitat-atlas{max-height:calc(100dvh - 12px);border-radius:16px}.atlas-header{padding:18px 16px 15px}.atlas-header h2{font-size:24px}.atlas-header .eyebrow{font-size:9px;letter-spacing:.08em}.habitat-rail{padding:0 16px 14px}.habitat-rail>button{min-width:154px;min-height:62px}.atlas-columns{grid-template-columns:1fr;gap:22px;padding:0 16px 18px}.habitat-caption{min-height:68px}.habitat-caption h3{font-size:22px}.atlas-scene{height:clamp(220px,34dvh,340px)}.field-benefits{padding:14px}.field-project{padding:18px}.atlas-footer{padding:15px 16px;align-items:flex-start;flex-direction:column;gap:12px}.atlas-footer button{width:100%}.atlas-mode{margin-top:0}.atlas-research{scroll-margin-top:12px}.field-benefits>div{justify-content:flex-start;gap:30px}.habitat-atlas .eyebrow{letter-spacing:.08em}}
@media(max-width:360px){.atlas-launch{padding:5px 8px;font-size:13px}.atlas-launch small{font-size:11px}.atlas-launch small b{display:none}.atlas-header h2{font-size:22px}.habitat-tally{gap:8px 14px}.field-benefits>div{gap:20px}}

.atlas-jump{display:none}@media(max-width:760px){.atlas-jump{display:block;width:100%;min-height:44px;margin-top:10px;font-size:13px;color:var(--habitat-color);background:#19313f;border-color:#537382}.atlas-research{scroll-margin-top:14px}}
.field-focus-button{width:100%;min-height:44px;font-size:13px;line-height:1.4;margin-top:10px;border-color:#678b8d;color:var(--habitat-color);background:#1d3942}.field-hypothesis{margin-top:20px;padding-top:16px;border-top:1px solid #3a5668}.field-hypothesis h4{font-size:16px;margin:0 0 8px}.field-hypothesis>small{font-size:12px;line-height:1.5;display:block;margin-bottom:13px}.field-hypothesis button{display:block;width:100%;min-height:48px;text-align:left;font-size:14px;line-height:1.5;margin-top:8px;padding:12px;border-color:#496c7d;background:#0d2130}.field-hypothesis .field-feedback{font-size:13px;padding:12px;background:#293b46;border-radius:8px;color:#e2d6bb;margin-top:12px}.field-hypothesis .field-supported{font-size:14px;color:#bce4c8}

.planet-explorer{position:absolute;z-index:7;bottom:8px;left:8px;right:8px;display:flex;gap:8px;align-items:center;pointer-events:none}.planet-explorer>div{display:flex;gap:4px;flex:1;max-width:285px;background:#071421d9;border:1px solid #58717d;border-radius:13px;padding:3px;pointer-events:auto}.planet-explorer button{display:flex;align-items:center;justify-content:center;gap:6px;flex:1;min-height:44px;font-size:14px;padding:6px 8px;border-color:transparent;background:transparent}.planet-explorer [aria-pressed=true]{color:#fff1d1;background:#354844;border-color:#9ab3a0}.planet-explorer button>span{font-size:20px}.planet-explorer .shape-earth{pointer-events:auto;flex:0 0 78px;border:1px solid #a9b697;background:#243b32;color:#edf2d8;min-height:50px}.planet-chapter .scene-hint{bottom:70px;font-size:12px}.planet-chapter .scene-hint small{display:none}.planet-chapter .opening-skip{bottom:69px}.forge-backdrop{z-index:101;backdrop-filter:blur(5px)}.planet-workshop{width:min(740px,100%);max-height:90dvh;padding:22px;background:linear-gradient(155deg,#213c41,#10222d 55%,#111b25);border-color:#86a4a1}.forge-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}.forge-heading h2{font-size:27px;margin:8px 0}.forge-heading>button{min-width:44px;min-height:44px;font-size:24px}.region-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin:15px 0}.region-tabs button{min-height:72px;display:flex;flex-direction:column;gap:6px;align-items:center;font-size:14px;padding:7px}.region-tabs button>span{font-size:24px;color:#dfc195}.region-tabs [aria-pressed=true]{border-color:#d1d9b1;background:#355146}.planet-workshop>p{font-size:16px;line-height:1.5;color:#cedcd8;margin:13px 0}.forge-readings{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}.forge-readings>div{display:grid;grid-template-columns:1fr auto;align-items:center;gap:5px;font-size:14px}.forge-readings progress{grid-row:2;grid-column:1/3;width:100%;height:7px;accent-color:#b4d8bb}.forge-readings b{color:#bce3cf;font-size:14px}.local-cycle{display:flex;flex-direction:column;gap:8px;border:1px solid #557579;padding:14px;border-radius:12px;background:#122631}.local-cycle span{font-size:14px;line-height:1.5;color:#d0dedb}.local-cycle.active{border-color:#b8d59b;background:#2c4534}.impact-trial{margin:15px 0;padding:15px;border:1px solid #66898b;border-radius:14px;background:linear-gradient(135deg,#182f35,#10232d);display:grid;gap:12px}.impact-trial h3{margin:5px 0 0}.impact-trial p{font-size:14px;line-height:1.45;margin:6px 0 0;color:#d3dfdb}.impact-trial.complete{border-color:#afca8d;background:linear-gradient(135deg,#294535,#142a2c)}.trial-sequence{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.trial-sequence>span{display:flex;align-items:center;justify-content:center;gap:7px;min-height:42px;border:1px solid #526b70;border-radius:9px;color:#aebfbe}.trial-sequence b{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#263e43;font-size:12px}.trial-sequence .recorded{border-color:#85aa85;color:#e4efd2;background:#294338}.trial-sequence .next{border-color:#e0c083;color:#fff0c7;box-shadow:0 0 0 1px #e0c08344}.impact-trial>button{min-height:52px;padding:8px 12px;background:#a7c9ad;color:#10251f;display:grid;gap:3px;text-align:left}.impact-trial>button small{font-size:12px;color:#29483c}.impact-trial>small{color:#d7eab8;font-size:13px}.planet-workshop h3{font-size:18px;margin:23px 0 12px}.impact-modes{display:flex;gap:7px}.impact-modes button{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;font-size:14px;min-height:74px;padding:8px}.impact-modes button>span{font-size:25px;color:#b8e0de}.impact-modes [aria-pressed=true]{border-color:#c9d8a4;background:#344844}.local-deposits{display:flex;gap:12px;flex-wrap:wrap;color:#c8dcd8;font-size:12px;margin:12px 0}.local-deposits b{font-size:14px;color:#fff2d6}.geology-projects{display:grid;grid-template-columns:1fr 1fr;gap:12px}.geology-projects article,.field-studies article{padding:15px;border:1px solid #4c686b;border-radius:14px;background:#11262c}.geology-projects article>div{display:flex;gap:12px;align-items:center}.geology-projects article>div>span{font-size:28px;color:#eac394}.geology-projects h4{font-size:17px;line-height:1.3;margin:0}.geology-projects h4 small{display:block;font-size:12px;margin-top:5px;color:#c0d4cc;font-weight:400}.geology-projects p,.field-studies p{font-size:14px;line-height:1.5;color:#d1ddda;margin:12px 0}.geology-projects em{display:block;font-style:normal;font-size:14px;line-height:1.45;color:#ead2ab;border-left:2px solid #b3c598;padding-left:10px;margin-bottom:12px}.geology-projects article>small{display:block;font-size:12px;line-height:1.45;margin:8px 0;color:#c0d0cf}.geology-projects .forge-deficit{color:#e3b493}.geology-projects button,.field-studies button{width:100%;min-height:46px;font-size:14px;padding:9px;background:#9dc2a9;color:#092522}.geology-projects button:disabled,.field-studies button:disabled{opacity:.75;background:#2c3f45;color:#bacdca}.field-studies{display:grid;gap:10px}.field-studies b{font-size:16px}.planet-workshop .forge-science{font-size:13px;color:#b8ceca}.return-landscape{width:100%;min-height:48px;font-size:15px}@media(max-width:850px){.planet-explorer{left:6px;right:6px;bottom:6px;gap:5px}.planet-explorer>div{max-width:none}.planet-explorer button{font-size:13px;padding:6px 4px;gap:4px}.planet-explorer .shape-earth{flex-basis:71px;font-size:14px}.planet-chapter .scene-hint{bottom:67px;font-size:11px}.planet-workshop{padding:16px}.region-tabs{grid-template-columns:1fr 1fr}.region-tabs button{min-height:58px;flex-direction:row;text-align:left}.geology-projects{grid-template-columns:1fr}.geology-projects article{padding:15px}.impact-modes button{font-size:14px}.planet-chapter .opening-copy h2{font-size:21px}}@media(max-height:700px) and (max-width:850px){.planet-chapter .scene-hint{display:none}.planet-chapter .opening-copy{top:35px}.planet-chapter .opening-copy>span{display:none}.planet-chapter .opening-copy h2{font-size:17px}.planet-chapter .opening-skip{bottom:62px;min-height:44px}}
.world-atlas-entry{margin-top:12px;width:100%;min-height:46px;color:#d4e6c8}.world-explorer{width:min(740px,100%);padding:20px;max-height:94dvh;background:#142b35}.world-explorer>label{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0;font-size:14px}.world-explorer select{min-height:44px;max-width:70%;font-size:14px;background:#18343d;color:#e5efdc;border:1px solid #79908b;border-radius:8px;padding:8px}.atlas-views{display:flex;gap:8px;margin:12px 0}.atlas-views button{flex:1;min-height:44px;font-size:14px}.atlas-views [aria-pressed=true]{background:#405945;border-color:#b9cc9c}.world-atlas .atlas-scene{height:clamp(230px,48dvh,420px);position:relative;border:1px solid #637e87;border-radius:18px;overflow:hidden;background:radial-gradient(ellipse at 50% 40%,#193848,#050d19)}.atlas-scene .living-scene{height:100%}.atlas-scene canvas{position:absolute;inset:0;width:100%;height:100%}.world-explorer>p{font-size:14px;line-height:1.5;color:#c7dcd7;margin:14px 0}
@media(max-width:420px){.planet-explorer>div button{min-width:0;font-size:14px}.planet-explorer>div button>span{display:none}}
.atlas-planet-controls{margin:0 0 12px;display:grid;gap:10px}.atlas-planet-controls label{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px;color:#b7ced2}.atlas-planet-controls select{max-width:65%;min-height:44px;background:#153443;color:#e1ece7;border:1px solid #537382;border-radius:8px;padding:6px;font:inherit}.atlas-planet-controls>div{display:flex;gap:6px}.atlas-planet-controls button{flex:1;min-height:44px;font-size:14px;background:#102536}.atlas-planet-controls button[aria-pressed=true]{border-color:var(--habitat-color);color:var(--habitat-color);background:#273e49}
.reaction-lab{margin:24px 0;padding-top:20px;border-top:1px solid #668a85}.reaction-title{display:flex;gap:18px;justify-content:space-between;align-items:center}.reaction-title h3{margin:7px 0!important;font-size:22px}.reaction-title>div:last-child{text-align:right;flex:0 0 90px}.reaction-title strong{display:block;color:#e2e9b0;font-size:30px}.reaction-title>div>span:last-child{display:block;font-size:12px;color:#bcd3ce}.reaction-lab>p,.nursery-section>p{font-size:16px;line-height:1.55;color:#ceddd9}.reaction-running{margin:16px 0;padding:15px;border:1px solid #8dbdab;background:#1b3937;border-radius:12px}.reaction-running>div{display:flex;justify-content:space-between;gap:10px;font-size:14px}.reaction-running progress{width:100%;height:10px;margin:14px 0 0;accent-color:#b3e5b8}.reaction-running p{font-size:14px!important;margin:9px 0!important}.reaction-running small{font-size:12px;line-height:1.5;display:block}.reaction-routes{display:grid;gap:12px;margin-top:18px}.reaction-routes article{padding:16px;border:1px solid #597770;border-left:3px solid var(--reaction-color);border-radius:12px;background:#10272c}.reaction-name{display:flex;gap:12px;align-items:center}.reaction-name>span{font-size:30px;color:var(--reaction-color)}.reaction-name h4{font-size:18px;margin:0}.reaction-routes p{font-size:14px;line-height:1.55;margin:10px 0}.reaction-conditions{display:grid;gap:7px;margin:15px 0}.reaction-conditions>div{display:grid;grid-template-columns:130px 1fr 38px;align-items:center;gap:9px;font-size:14px}.reaction-conditions meter{width:100%;height:9px}.reaction-conditions b{font-size:12px;color:#c4d9cd;text-align:right}.reaction-recipe{font-size:14px;color:#cdd9ca;line-height:1.7}.reaction-recipe strong{display:block;color:var(--reaction-color);font-weight:500}.reaction-deficit{color:#edc4a3!important}.reaction-routes button,.nursery-options button{width:100%;min-height:46px;margin-top:12px;font-size:14px;background:#365850;border-color:#82aa9b}.reaction-routes button:disabled,.nursery-options button:disabled{opacity:.65}.nursery-options{display:grid;gap:12px}.nursery-options article{padding:15px;border:1px solid #607676;border-radius:12px;background:#142b31}.nursery-options h4{font-size:17px;margin:0}.nursery-options h4>span{font-size:23px;color:#cfdeb4}.nursery-options h4 small{float:right;font-size:14px}.nursery-options p{font-size:14px;line-height:1.5}.nursery-options>article>small{display:block;font-size:13px;color:#c8dbb7}.reaction-lab .reaction-science{font-size:13px;line-height:1.55;margin-top:18px}.chemistry-explorer{justify-content:flex-end}.chemistry-explorer .shape-earth{flex:0 1 auto;font-size:14px;padding:8px 14px}.scene-shell:has(.chemistry-explorer) .scene-hint{bottom:68px}.scene-shell:has(.chemistry-explorer) .scene-hint small{display:none}@media(min-width:700px){.nursery-options{grid-template-columns:repeat(3,1fr)}}@media(max-width:380px){.reaction-conditions>div{grid-template-columns:110px 1fr 33px;gap:6px}.reaction-title{gap:8px}.reaction-title h3{font-size:19px}}

.watershed-panel{margin:25px 0;padding-top:20px;border-top:1px solid #4e808a}.watershed-panel>p{font-size:15px;line-height:1.6;color:#c1d5d7}.watershed-panel>small{display:block;font-size:12px;line-height:1.5;color:#a4bdc2}.water-pools{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:14px 0}.water-pools>div{padding:12px;background:#102d39;border:1px solid #4e7382;border-radius:12px;display:grid;gap:7px}.water-pools span{font-size:13px;color:#b8d5da}.water-pools b{font-size:22px;color:#b4e5ed}.water-pools progress{width:100%;height:6px;accent-color:#89ccd9}.water-modes{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:18px 0}.water-modes button{display:grid;gap:9px;text-align:left;align-content:start;min-height:112px;padding:13px}.water-modes button[aria-pressed=true]{background:#21424b;border-color:#92d5df}.water-modes b{font-size:14px}.water-modes span{font-size:12px;color:#bfd0d0;line-height:1.5}.water-channel,.water-contact{padding:16px;border:1px solid #4c7780;border-radius:12px;background:#102831;margin:12px 0}.water-channel p{font-size:14px;line-height:1.5}.water-channel small{display:block;color:#d4ccb4;line-height:1.5}.water-channel button{min-height:46px;margin-top:12px;width:100%}.water-contact{display:grid;gap:8px}.water-contact span,.water-contact small{font-size:13px;line-height:1.5;color:#b8d6d7}@media(max-width:600px){.water-modes{grid-template-columns:1fr}.water-modes button{min-height:74px}.water-pools{gap:6px}.water-pools>div{padding:9px}.water-pools span{font-size:12px}}
/* v0.41 · an ecosystem is a playable network, not a painted backdrop. */
.planet-chapter .float{width:max-content;max-width:92%;text-align:center;font-size:14px;line-height:1.4}
.ecology-lab{max-width:900px;padding:24px}.ecology-lab>h3{margin:24px 0 10px;font-size:16px}.ecology-summary{display:grid;grid-template-columns:1fr 1fr;gap:10px}.ecosystem-gauge{display:grid;grid-template-columns:1fr auto;gap:7px 12px;padding:14px;border:1px solid #385247;border-radius:12px;background:linear-gradient(135deg,#162a27,#111b20)}.ecosystem-gauge strong{color:#a3da80}.ecosystem-gauge progress{grid-column:1/-1;width:100%;accent-color:#8fc87d}.ecosystem-gauge small{grid-column:1/-1}.ecology-pools{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:12px 0}.ecology-pools>div{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:3px 8px;padding:11px;border:1px solid var(--line);border-radius:10px;background:#101d23}.ecology-pools>div>span{grid-row:1/3;color:#a3da80;font-size:22px}.ecology-pools>div b{font-size:17px}.ecology-pools>div small{font-size:11px}.ecology-pools progress{grid-column:1/-1;width:100%;height:4px;accent-color:#88c97d}.ecology-pools .limiting{border-color:#d5ac6d}.ecology-pools .limiting small{color:#e4bf83}.ecology-focus{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.ecology-focus button{min-height:118px;display:grid;grid-template-columns:auto 1fr;text-align:left;gap:5px 10px;align-content:start}.ecology-focus button>span{grid-row:1/3;color:#a3da80;font-size:25px}.ecology-focus button b,.ecology-focus button small{display:block}.ecology-focus button.selected{border-color:#8ecf8b;background:#193026}.ecology-focus button.selected b{color:#b3e3a1}.ecology-roles{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.ecology-roles>div{display:grid;grid-template-columns:auto 1fr;gap:3px 8px;padding:10px;border:1px solid var(--line);border-radius:10px;opacity:.5}.ecology-roles>div.active{opacity:1;border-color:#456552;background:#12251f}.ecology-roles span{grid-row:1/3;font-size:22px;color:#8fc980}.ecology-roles small{line-height:1.25}.ecology-projects{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.ecology-projects article{display:flex;flex-direction:column;padding:14px;border:1px solid var(--line);border-radius:12px;background:#101a22}.ecology-projects header{display:flex;align-items:center;gap:10px}.ecology-projects header>span{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#203b31;color:#b5e09e;font-size:21px}.ecology-projects header small,.ecology-projects header b{display:block}.ecology-projects p{font-size:13px;margin:10px 0}.ecology-projects em{font-style:normal;color:#a9d8a0;font-size:12px;line-height:1.4;min-height:34px}.ecology-project-actions{display:grid;grid-template-columns:.8fr 1.2fr;gap:6px;margin-top:auto;padding-top:12px}.ecology-project-actions button{padding:9px 7px;font-size:12px}.ecology-studies{display:grid;gap:7px}.ecology-studies article{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:11px 13px;border:1px solid var(--line);border-radius:10px}.ecology-studies p{margin:4px 0;font-size:13px}.ecology-studies button{flex:0 0 auto}.ecology-explorer .shape-earth{border-color:#6b9e78;background:#12291e;color:#c6e8b7}
@media(max-width:650px){.ecology-lab{padding:16px;max-height:94dvh}.ecology-summary{grid-template-columns:1fr 1fr}.ecology-pools{grid-template-columns:1fr 1fr}.ecology-focus{grid-template-columns:1fr}.ecology-focus button{min-height:72px}.ecology-roles{grid-template-columns:1fr 1fr}.ecology-projects{grid-template-columns:1fr}.ecology-projects em{min-height:0}.ecology-studies article{align-items:stretch;flex-direction:column}.ecology-studies button{width:100%}}
/* v0.43: each world has a distinct atmospheric palette, shared by close-up views. */
.living-scene.era-1{background:radial-gradient(ellipse at 38% 15%,#214650,#06131e 78%)}
.living-scene.era-2{background:radial-gradient(ellipse at 38% 12%,#234b4a,#081d2b 78%)}
.living-scene.era-3{background:radial-gradient(ellipse at 32% 15%,#364f48,#101e2b 80%)}
.living-scene.era-4{background:radial-gradient(ellipse at 35% 12%,#3a4f55,#101d2d 80%)}
.living-scene.era-5{background:radial-gradient(ellipse at 35% 12%,#2d4859,#0c1729 80%)}
.living-scene.era-6{background:radial-gradient(ellipse at 45% 35%,#103c46,#050d1d 78%)}
.living-scene.era-7{background:radial-gradient(ellipse at 48% 30%,#342b52,#0a1024 78%)}
.living-scene.era-8{background:radial-gradient(ellipse at 50% 45%,#24283e,#040914 75%)}
.specimen-observation{margin-top:13px;padding:15px;border:1px solid #3e6b68;border-radius:12px;background:#122c34}.specimen-observation span{font-size:11px;letter-spacing:.1em;color:#a3d7bd}.specimen-observation h4{font-size:17px;line-height:1.3;color:#dfede0;margin:8px 0}.specimen-observation p{font-size:14px;line-height:1.6;color:#bfd4d1;margin:0 0 13px}.specimen-observation button{min-height:44px;padding:9px 13px;font-size:14px;background:#254d53;border-color:#60938b;color:#e3f0df}.specimen-observation button[aria-pressed=true]{background:#b9dec4;color:#14323b}.specimen-observation small{display:block;margin-top:11px;font-size:12px;line-height:1.5;color:#9fbabf}
/* Living regional food webs remain inside existing sheets, leaving World height intact. */
.community-panel{margin:20px 0;padding:16px;border:1px solid #416659;border-radius:16px;background:linear-gradient(140deg,#172d2b,#111d27);text-align:left}
.community-panel h3{margin:6px 0 10px;font-size:21px}.community-panel p{line-height:1.55;color:#b9cfc9}.community-panel button{min-height:44px;padding:9px 12px;border:1px solid #496b65;border-radius:10px;background:#233e3a;color:#e4f3eb;font-size:14px}.community-panel button:disabled{opacity:.5}.community-panel .region-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:16px 0}.community-panel .region-tabs button[aria-pressed=true]{background:#456b58;border-color:#9dcfac}.community-title{display:flex;align-items:center;justify-content:space-between;gap:10px}.community-title b,.community-title small{display:block}.community-title small{margin-top:4px;color:#c6ce9f}.community-pools{display:grid;gap:9px;margin:18px 0}.community-pools>div{display:grid;grid-template-columns:1fr auto;gap:5px;font-size:14px}.community-pools progress{grid-column:1/-1;width:100%;height:6px;accent-color:#8dcbb2}.community-inheritance{display:grid;gap:7px;border-top:1px solid #355048;padding-top:12px}.community-inheritance span{font-size:14px;line-height:1.6}.community-inheritance small,.community-corridor small{display:block;color:#b3c3bb;line-height:1.5}.community-flows{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:16px 0;font-size:12px}.community-flows span{padding:9px 5px;background:#152724;border-radius:8px}.community-flows b{display:block;margin-top:5px;font-size:17px;color:#d2e9b7}.community-corridor{padding:13px;background:#172b30;border-radius:12px}.community-corridor small{margin-top:8px}.community-panel .ecology-studies{margin-top:16px}.community-panel .ecology-studies article{align-items:flex-start}.community-panel .ecology-studies button{flex-shrink:0}
@media(max-width:480px){.community-panel{padding:12px}.community-title{align-items:stretch;flex-direction:column}.community-panel .ecology-studies article{flex-direction:column}.community-panel .ecology-studies button{width:100%}}
/* Ingredient planning occupies the existing workshop, never another phone World row. */
.landscape-plan{padding:16px;margin:20px 0;background:linear-gradient(135deg,#293746,#172933);border:1px solid #697778;border-radius:15px}.landscape-plan h3{font-size:22px;margin:7px 0 12px}.landscape-plan p{line-height:1.55;margin:12px 0}.landscape-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.landscape-choices button{display:flex;align-items:center;gap:10px;min-height:48px;padding:10px;font-size:14px;text-align:left}.landscape-choices button span{font-size:23px;color:#f0c49a}.landscape-choices button[aria-pressed=true]{border-color:#e2bd92;background:#584337}.landscape-materials{display:grid;gap:9px;margin:16px 0}.landscape-materials>div{display:grid;grid-template-columns:45px 1fr;column-gap:10px;row-gap:3px}.landscape-materials b{grid-row:1/4;font-size:21px;color:#eed4ae}.landscape-materials span{font-size:15px}.landscape-materials progress{grid-column:2;height:6px;width:100%;accent-color:#dcb58d}.landscape-plan .plan-action{width:100%;min-height:48px;background:#4b6658;border-color:#a4c9ab;font-size:16px}.plan-destination{display:block;line-height:1.6;margin-top:12px}.impact-receipt{display:flex;gap:12px;border-top:1px solid #5c686a;padding-top:15px;margin-top:18px}.impact-receipt>span{font-size:25px;min-width:42px}.impact-receipt b{font-size:15px}.impact-receipt p{margin:6px 0;font-size:14px}.phone-build-heading .impact-aim-button{padding:2px 0;background:transparent;border:0;min-width:0;max-width:70%;font-size:14px;text-align:left;color:#e8c29b;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.phone-build-heading .impact-aim-button:hover{color:#fff1d7}
/* A settlement is a working household, with visible capacities and constraints. */
.village-panel{padding:20px;background:linear-gradient(145deg,#1b3435,#13212c);border:1px solid #6c8175;border-radius:18px;margin-bottom:24px}.village-title{display:flex;justify-content:space-between;gap:16px;align-items:center}.village-title h2{font-size:24px;margin:8px 0}.village-title>b{font-size:24px;text-align:right;color:#edcf9c}.village-title small{display:block;font-size:12px;font-weight:400}.village-panel p{font-size:16px;line-height:1.55;color:#d2dfd6}.village-panel small{display:block;font-size:14px;line-height:1.5;color:#b8cec3}.village-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:20px 0}.village-stats>div{padding:12px 6px;text-align:center;background:#091e26;border-radius:8px}.village-stats b{display:block;font-size:20px;color:#f0d29e}.village-stats span{font-size:14px}.village-condition{padding:12px;border-left:3px solid #d6b982;background:#263d3c}.village-panel h3{font-size:19px;margin:28px 0 14px}.village-jobs{display:grid;gap:8px}.village-jobs>div{display:grid;grid-template-columns:minmax(0,1fr) 44px 25px 44px;gap:6px;align-items:center;padding:10px;background:#10252c;border-radius:10px}.village-jobs b{font-size:15px}.village-jobs small{font-size:12px}.village-jobs button{min-height:44px;font-size:20px}.village-jobs strong{text-align:center}.village-assist{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:18px 0;font-size:15px}.village-panel select,.village-quick select{min-height:44px;background:#10232d;color:#e7eadd;border:1px solid #7b9184;border-radius:8px;max-width:65%;padding:8px;font-size:14px}.village-help{width:100%;min-height:48px;background:#3c6757!important}.village-projects{display:grid;gap:12px}.village-projects article{padding:16px;border:1px solid #617b70;border-radius:12px;background:#10282d}.village-projects h4{font-size:18px;margin:0}.village-projects p{margin:10px 0;font-size:14px}.village-projects button{width:100%;min-height:46px;margin-top:12px;font-size:14px}.village-projects button:disabled{opacity:.55}.village-needs{color:#efc698!important}.village-complete{display:flex;justify-content:space-between;gap:12px;font-size:14px;color:#acdbb9}.village-complete span{font-size:12px}.village-growing{margin:16px 0;padding:15px;background:#2c4139;border:1px solid #799981;border-radius:10px}.village-growing progress{width:100%;accent-color:#c6d6a5;height:10px;margin:12px 0}.village-note{font-size:13px!important}.village-quick>div{display:flex;justify-content:space-between;font-size:14px}.village-quick label{display:flex;align-items:center;justify-content:space-between;font-size:14px;margin:6px 0}.village-quick>button{min-height:44px;width:100%;margin:3px 0}.village-quick>button:first-of-type{background:#34594b}.village-quick select{padding:5px;min-height:38px}@media(min-width:1100px){.village-projects{grid-template-columns:1fr 1fr}}@media(max-width:380px){.village-panel{padding:12px}.village-title h2{font-size:20px}.village-assist{display:block}.village-assist select{max-width:100%;width:100%;margin-top:8px}}
.village-choice>button{width:100%}.village-choice-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:8px;background:#112a28}.village-choice-actions>span{margin-right:auto;font-size:13px}.village-choice-actions button,.village-route button{min-height:44px;padding:7px 10px;font-size:13px}.village-choice-actions button[aria-pressed=true]{background:#456346}.village-route{padding:15px;border:1px solid #87945d;border-radius:12px}.village-route p{margin:8px 0}.village-route small{display:block;line-height:1.5}.village-route>button{margin-top:8px}.village-branch h3{margin:24px 0 12px}.village-choice i{font-style:normal;color:#dbe6a5}.fertility-panel{padding:20px;background:linear-gradient(145deg,#203b32,#132630);border:1px solid #6b8976;border-radius:16px;margin-bottom:20px}.fertility-panel h2{margin:8px 0;font-size:25px}.fertility-panel>p{font-size:16px;line-height:1.55;color:#d6e3d7}.fertility-counts{display:flex;flex-wrap:wrap;gap:8px 20px;font-size:14px;margin:12px 0}.fertility-counts b{color:#dbdfa5}.fertility-total{padding:15px;background:#112a28;border-radius:10px;display:grid;gap:6px;margin:18px 0}.fertility-total>b{font-size:26px;color:#d5eaa4}.fertility-total>span{font-size:14px;color:#b9d3bd}.fertility-purchases{display:grid;gap:10px}.fertility-purchases>.village-choice>button{text-align:left;padding:15px;background:#18332f;border:1px solid #648571;min-width:0}.fertility-purchases>.village-choice>button.ready{background:#305743;border-color:#afd288}.fertility-purchases>.village-choice>button:disabled{opacity:.72}.fertility-purchases>.village-choice>button>div{display:flex;justify-content:space-between;gap:12px;align-items:center}.fertility-purchases b{font-size:17px}.fertility-purchases strong{font-size:14px;white-space:nowrap;color:#e3d399}.fertility-purchases>.village-choice>button>span{display:block;font-size:14px;color:#b9e69e;margin-top:6px}.fertility-purchases p{font-size:14px;line-height:1.5;margin:8px 0}.fertility-purchases small{display:block;font-size:13px;line-height:1.45;margin-top:8px;color:#d5c49b}.fertility-foundation{padding:15px;margin-top:18px;border:1px solid #698774;border-radius:10px}.fertility-foundation p{font-size:14px;line-height:1.5}.fertility-foundation small{font-size:13px}.fertility-panel.compact{padding:0;border:0;background:none;margin:0}.compact .fertility-counts{font-size:12px;margin:4px 0 7px;justify-content:space-between;gap:5px}.compact .fertility-purchases{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.compact .fertility-purchases>.village-choice>button{padding:8px 5px;min-height:106px;text-align:center}.compact .fertility-purchases>.village-choice>button>div{display:grid;gap:5px;justify-content:stretch}.compact .fertility-purchases b{font-size:13px}.compact .fertility-purchases strong{font-size:12px;white-space:normal}.compact .fertility-purchases>.village-choice>button>span{font-size:12px}.compact .fertility-purchases small{font-size:12px;margin-top:5px}.fertility-nav{display:flex;gap:6px;margin-top:7px}.fertility-nav button{flex:1;min-height:44px;font-size:13px}.village-quick>section{display:block}.village-quick>.fertility-nav{display:flex}@media(max-width:380px){.fertility-panel{padding:12px}.fertility-purchases>.village-choice>button>div{align-items:flex-start}.fertility-purchases b{font-size:16px}}

/* One persistent simulation, with an independently scrolling action drawer. */
.simulation-shell{max-width:1600px;padding:0 24px;height:100dvh;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.simulation-shell .topbar{flex:0 0 64px;height:64px;min-height:64px}
.simulation-shell .mobile-counter{display:flex;flex-direction:column;gap:4px;text-align:right;margin-left:auto}
.simulation-shell .mobile-counter b{font-size:22px;color:var(--accent);font-variant-numeric:tabular-nums}
.simulation-shell .mobile-counter small{font-size:14px}.simulation-shell .mobile-counter span{font-size:14px;color:#c3d2df}
.simulation-shell .notice-slot{flex:0 0 52px;height:52px}
.simulation-shell .era-strip{display:none}
.simulation-shell .game-layout{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(360px,.85fr);gap:20px;padding:8px 0 16px;overflow:hidden}
.simulation-shell .world{display:flex!important;flex-direction:column;min-height:0;min-width:0;overflow:hidden;height:auto}
.simulation-shell .world-heading{flex:0 0 auto;margin:0 0 7px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.simulation-shell .world-heading h1{font-size:18px;margin:0;letter-spacing:-.3px}.simulation-shell .world-heading p{display:none}
.simulation-shell .world-heading .eyebrow{font-size:12px;letter-spacing:.02em}
.world-view-nav{display:flex;gap:6px;flex:0 0 auto;margin-bottom:8px}
.world-view-nav button{min-height:44px;flex:1;font-size:14px;padding:8px;white-space:nowrap;background:#122331;border-color:#355368}
.world-view-nav button:last-child{flex:0 0 44px}.world-view-nav button[aria-pressed=true]{color:var(--accent);border-color:var(--accent);background:color-mix(in srgb,var(--accent) 15%,#122331)}
.simulation-shell .journey-progress{font-size:13px;margin:0 2px 4px}
.simulation-shell .world-progress{flex:0 0 3px;margin:0 0 8px}
.simulation-shell .scene-shell{flex:1 1 auto;min-height:0;display:flex;position:relative;border:1px solid #355267;border-radius:16px;overflow:hidden;background:#091724}
.simulation-shell .scene-shell .scene-button{position:absolute;inset:0;height:100%;min-height:0;width:100%;max-width:none;margin:0;border:0;border-radius:0}
.simulation-shell .scene-hint{font-size:14px;bottom:12px}.simulation-shell .scene-hint small{font-size:12px}
.simulation-shell .scene-toolbar,.simulation-shell .world-readings,.simulation-shell .world-focus,.simulation-shell .streak,.simulation-shell .resource,.simulation-shell .rates,.simulation-shell .elements,.simulation-shell .world-next,.simulation-shell .milestone,.simulation-shell .guest-signin,.simulation-shell .foot,.simulation-shell .chapter-event-callout{display:none}
.simulation-shell .phone-build{display:none}
.simulation-shell .workbench{display:block;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;border:1px solid #355267;border-radius:16px;background:linear-gradient(150deg,#142636,#0b1725 40%);padding:0 18px 24px}
.simulation-shell .tabbar{display:flex;gap:12px;margin:0 0 16px;position:sticky;top:45px;z-index:4;background:#112232}.simulation-shell .tabbar button{min-height:44px;font-size:14px;flex:1}
.drawer-handle{display:flex;justify-content:space-between;align-items:center;gap:8px;position:sticky;top:0;z-index:5;background:#112232;min-height:48px;border-bottom:1px solid #385264;margin:0 -2px 12px;padding:4px 0}
.drawer-handle>span{font-size:14px;color:#d7e3e9}.drawer-handle button{min-height:40px;padding:7px 10px;font-size:14px}
.drawer-section-title{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:14px 0}.drawer-section-title h2{font-size:19px}.drawer-section-title>b{color:var(--accent);font-size:16px}
.production-list{display:grid;gap:9px}.production-list article{display:grid;grid-template-columns:minmax(0,1fr) minmax(136px,.6fr);gap:6px;border:1px solid #3e566c;border-radius:12px;background:#101f2c;padding:5px}
.production-list article.selected{border-color:var(--accent)}.production-select{display:flex;align-items:center;gap:10px;border:0;background:transparent!important;text-align:left;padding:7px 4px;min-width:0}.production-select>span:last-child{flex:1;min-width:0}.production-select b{display:block;font-size:16px;line-height:1.3}.production-select small{display:block;font-size:13px;margin-top:6px;color:#bacdd9}
.producer-medallion{flex:0 0 46px;height:46px;display:grid;place-items:center;font-size:27px;color:var(--accent);border:1px solid #587183;border-radius:50%;background:radial-gradient(circle at 25% 20%,#456071,#102435)}
.production-share{height:4px;display:block;background:#263b4d;border-radius:8px;margin-top:9px;overflow:hidden}.production-share i{display:block;height:100%;background:var(--accent)}
.production-buy{display:flex;flex-direction:column;gap:5px;align-items:flex-end;justify-content:center;padding:10px;border:1px solid #3d6174;background:#1b3645;min-width:0;font-size:14px}.production-buy.ready{background:color-mix(in srgb,var(--accent) 18%,#14372f);border-color:var(--accent)}.production-buy b{font-size:17px;color:var(--accent)}.production-buy span{font-size:14px;overflow-wrap:anywhere}.production-buy small{font-size:12px}.production-buy:disabled{opacity:.7}
.production-inspector{margin:16px 0;padding:16px;border:1px solid #456379;border-radius:12px;background:#0c1c2b}.production-inspector>div:first-child{display:flex;justify-content:space-between;gap:8px}.production-inspector h3{font-size:18px}.production-inspector>div>span{font-size:13px;color:var(--accent)}.production-inspector p{font-size:15px;line-height:1.5;color:#c2d3df;margin:10px 0}.production-inspector>small{display:block;font-size:12px;line-height:1.5}.production-inspector>button{min-height:44px;margin-top:12px;width:100%;font-size:14px}
.production-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0}.production-facts span{font-size:12px;color:#c5d4dc}.production-facts b{display:block;font-size:16px;color:#edf4f7;margin-bottom:5px}
.simulation-shell .buy-modes{flex-wrap:wrap;justify-content:flex-end}.simulation-shell .buy-modes button{min-height:38px;min-width:38px;font-size:14px}
.simulation-shell .research-map-viewport{max-height:none;flex:1;min-height:0;overflow:auto;touch-action:pan-x pan-y;border:0;border-radius:0}.simulation-shell .research-map{min-height:100%;background:radial-gradient(ellipse at 50% 30%,#1b3e5266,#071623)}
.tree-stage>.research-map{width:100%}.tree-stage .research-map-controls{display:flex;justify-content:center;gap:8px;margin:3px 0}.research-map-controls button{min-height:38px;font-size:14px}.tree-stage .research-map-controls button:first-child,.tree-stage .research-map-controls button:last-child{min-width:42px;font-size:22px}
.research-map-controls{display:flex;gap:8px;margin:12px 0}.tree-stage>.research-explorer{width:100%;height:100%;display:flex;flex-direction:column;min-height:0}.tree-stage .atlas-summary{flex:0 0 auto;margin:8px 12px;font-size:13px}.tree-stage .atlas-summary b{font-size:18px}.tree-stage .research-families{display:none}.tree-stage .research-legend{font-size:12px;padding:0 12px;gap:8px;margin:4px 0 8px}.tree-stage .research-legend span:last-child{display:none}
.simulation-shell .research-node{width:140px;max-width:140px;min-height:76px;padding:7px;border-radius:12px;box-shadow:0 4px 15px #0005}.simulation-shell .research-node b{font-size:14px;line-height:1.25}.simulation-shell .research-node small{font-size:12px}.simulation-shell .research-node>span{font-size:20px}
.simulation-shell .research-detail{margin-top:0;padding:16px}.simulation-shell .research-detail h3{font-size:22px}.simulation-shell .research-detail p{font-size:15px;line-height:1.5}.simulation-shell .tree-chapters{margin-top:6px}.simulation-shell .research-action{min-height:48px;font-size:15px}
.drawer-subtabs{display:flex;gap:4px;overflow:auto;border-bottom:1px solid #365065;margin:12px 0}.drawer-subtabs button{min-height:44px;padding:8px 10px;white-space:nowrap;border:0;border-radius:0;background:transparent;font-size:14px;color:#afc5d4}.drawer-subtabs button[aria-pressed=true]{border-bottom:3px solid var(--accent);color:var(--accent)}
.archive-progress{display:grid;gap:8px;margin:16px 0;font-size:14px}.archive-progress progress,.achievement-detail progress{width:100%;height:8px;accent-color:var(--accent)}
.archive-filters{display:flex;gap:10px;margin:16px 0}.archive-filters label{display:flex;flex-direction:column;gap:6px;flex:1;min-width:0;font-size:13px;color:#bed0dc}.archive-filters select{max-width:100%;width:100%;min-height:44px;font-size:14px;color:#e9f3f5;background:#142b3a;border:1px solid #50718a;border-radius:8px;padding:8px}
.achievement-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.achievement-grid>button{display:flex;flex-direction:column;gap:8px;align-items:center;justify-content:space-between;text-align:center;padding:12px 8px;border-radius:12px;background:#122635;min-height:140px;min-width:0}.achievement-grid>button>span{font-size:27px;border:1px solid #5b7182;width:46px;height:46px;border-radius:50%;display:grid;place-items:center}.achievement-grid b{font-size:14px;line-height:1.3}.achievement-grid small{font-size:12px}.achievement-grid progress{width:100%;height:5px;accent-color:var(--accent)}.achievement-grid .recorded{border-color:#6baa93;background:#193b35}.achievement-grid .ready{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 15%,#162c36)}.achievement-grid .locked{opacity:.85}.achievement-grid [aria-pressed=true]{outline:2px solid var(--accent);outline-offset:1px}
.achievement-detail{margin-top:16px;padding:18px;border:1px solid var(--accent);border-radius:12px;display:flex;flex-direction:column;gap:12px;background:#173143}.achievement-detail h3{font-size:21px}.achievement-detail p{font-size:15px;line-height:1.5;color:#cbdbe4}.achievement-detail>b{font-size:14px;color:var(--accent)}.achievement-detail button{min-height:44px;font-size:15px}
.archive-note{font-size:14px;color:#bdcfdc;line-height:1.55;margin:16px 0}.archive-gallery .archive-upgrades button{min-height:130px}.archive-gallery .archive-upgrades b{font-size:17px}.archive-gallery .archive-upgrades small{font-size:14px}.archive-gallery .archive-upgrades em{font-size:13px}
.collection-summary,.log-summary{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:14px;padding:14px;background:#15313c;border-radius:10px;margin:14px 0}.collection-atlas{width:100%;min-height:48px;margin-bottom:16px;font-size:15px}.collection-chapters{display:grid;gap:12px}.collection-chapters article{padding:15px;border:1px solid #3c5367;border-radius:12px}.collection-chapters h3{font-size:18px;margin-bottom:12px}.collection-chapters h3 small{float:right}.collection-chapters article>div{display:flex;flex-wrap:wrap;gap:7px}.collection-chapters button{min-height:44px;font-size:14px;padding:8px 10px}.archive-log{display:grid;gap:10px}.archive-log article{padding:14px;border-left:2px solid var(--accent);background:#132839;display:grid;gap:8px}.archive-log b{font-size:15px;line-height:1.5;font-weight:500}.archive-log time{font-size:12px;color:#b5c8d7}
.boost-panel>p{font-size:15px;line-height:1.55;color:#c3d5e0;margin:10px 0 18px}.boost-options{display:grid;gap:12px}.boost-options article{display:grid;grid-template-columns:42px minmax(0,1fr);gap:12px;padding:16px;border:1px solid #4c6c7f;border-radius:12px;background:#132c3d}.boost-options .active{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 14%,#142a36)}.boost-icon{color:var(--accent);font-size:32px}.boost-options h3{font-size:19px}.boost-options p{font-size:14px;line-height:1.5;color:#c5d5de;margin:8px 0}.boost-options small{font-size:14px;color:var(--accent)}.boost-options button{grid-column:1/-1;min-height:44px;font-size:15px;background:#234d59}.boost-rhythm{border:1px solid #385369;border-radius:12px;padding:16px;margin-top:14px}.boost-rhythm b{font-size:17px}.boost-rhythm p{font-size:14px;line-height:1.6;color:#c5d5de;margin:10px 0}.boost-rhythm button{min-height:44px;width:100%;font-size:14px}.strategy-advanced{margin-top:20px}.strategy-advanced>summary{padding:14px;font-size:15px;cursor:pointer;background:#173346;border:1px solid #49657a;border-radius:12px;margin-bottom:16px}
.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:15px}.dialog-heading h2{font-size:24px;line-height:1.2;margin-top:6px}.dialog-heading>button{min-height:44px;min-width:44px;flex:0 0 44px;padding:4px;font-size:26px}
.chapter-navigator{max-width:780px}.navigator-worlds{display:grid;gap:12px}.navigator-worlds article,.navigator-parallel article{display:flex;gap:14px;padding:16px;border:1px solid #42647a;border-radius:14px;background:linear-gradient(110deg,color-mix(in srgb,var(--habitat-color) 12%,#12303d),#12222e)}.navigator-worlds .current{border-color:var(--habitat-color);box-shadow:inset 0 0 0 1px var(--habitat-color)}.habitat-medallion{flex:0 0 52px;width:52px;height:52px;display:grid;place-items:center;border:1px solid var(--habitat-color);border-radius:50%;color:var(--habitat-color);font-size:28px;background:#0a1723}.navigator-worlds article>div,.navigator-parallel article>div{flex:1;min-width:0}.navigator-worlds h3,.navigator-parallel h3{font-size:20px;margin:6px 0}.navigator-worlds small{font-size:12px;color:var(--habitat-color)}.navigator-worlds article>div>span{font-size:14px;color:#c2d5df}.navigator-worlds progress{display:block;width:100%;height:6px;accent-color:var(--habitat-color);margin:10px 0}.navigator-actions{display:flex;gap:7px;flex-wrap:wrap}.navigator-actions button{min-height:44px;font-size:14px;padding:8px 10px}.parallel-heading{font-size:22px;margin-top:26px}.navigator-parallel{display:grid;gap:12px}.navigator-parallel p{font-size:15px}.navigator-parallel small{font-size:14px;line-height:1.5;display:block;margin:8px 0}.navigator-parallel button{min-height:44px;font-size:15px;width:100%}
.transition-modal{max-width:680px}.transition-preview{position:relative;height:260px;border:1px solid #4b6a7d;border-radius:16px;overflow:hidden;background:#07121d}.transition-preview>span{position:absolute;bottom:10px;left:10px;right:10px;text-align:center;font-size:12px;background:#07121dbe;border-radius:8px;padding:8px;pointer-events:none}.transition-receipt{display:grid;gap:9px}.transition-receipt>div{padding:12px;border:1px solid #3a5c70;background:#132d3c;border-radius:10px;display:grid;gap:7px}.transition-receipt b{font-size:15px;color:var(--accent)}.transition-receipt span{font-size:14px;line-height:1.5;color:#cbdae3}.transition-checklist{padding:0;list-style:none;display:grid;gap:9px;margin:16px 0;font-size:15px}.transition-checklist .met{color:#a3e0bb}.primary-action{background:var(--accent)!important;color:#10212e!important;font-weight:600;border-color:var(--accent)}.transition-modal .actions button{min-height:48px;flex:1;font-size:15px}
.parallel-world{max-width:820px;width:100%;max-height:94dvh;display:flex;flex-direction:column;min-height:0}.parallel-world>.dialog-heading{flex:0 0 auto}.parallel-counter{display:flex;justify-content:space-between;gap:12px;font-size:15px;margin:4px 0 12px}.parallel-counter b{font-size:22px;color:var(--accent)}.parallel-counter span{align-self:center;color:#bdd4de}.parallel-scene{position:relative;height:280px;flex:0 0 280px;overflow:hidden;padding:0;background:#06151f;border:1px solid #52798d;border-radius:16px}.parallel-scene>span{position:absolute;bottom:10px;left:5px;right:5px;pointer-events:none;font-size:14px;text-shadow:0 2px 5px #000}.parallel-objective{display:grid;grid-template-columns:1fr auto;gap:9px;margin:14px 0;font-size:14px}.parallel-objective progress{width:100%;height:6px;accent-color:var(--accent);grid-column:1/-1}.parallel-objective button{min-height:44px;font-size:14px}.parallel-purchases{display:grid;gap:8px}.parallel-purchases article{display:flex;gap:10px;align-items:center;justify-content:space-between;padding:12px;border:1px solid #42667c;border-radius:10px;background:#142e40}.parallel-purchases h3{font-size:17px}.parallel-purchases small{display:block;font-size:13px;line-height:1.5;margin-top:5px}.parallel-purchases button{min-height:48px;font-size:14px;min-width:110px;color:var(--accent)}
@media(max-width:850px){
 .app.simulation-shell,.app.simulation-shell.tab-world,.app.simulation-shell:not(.tab-world){height:100dvh;max-height:100dvh;overflow:hidden;padding:0 10px calc(64px + env(safe-area-inset-bottom));display:flex;flex-direction:column}
 .simulation-shell .topbar,.simulation-shell.tab-world .topbar{flex:0 0 auto;height:auto;min-height:58px;padding:4px 10px;padding-top:max(4px,env(safe-area-inset-top));margin:0 -10px;position:static;gap:6px}
 .simulation-shell .brand{font-size:17px;gap:4px}.simulation-shell .brand i{font-size:23px}.simulation-shell .mobile-counter b{font-size:18px}.simulation-shell .mobile-counter small{font-size:12px}.simulation-shell .mobile-counter span{font-size:12px;white-space:normal}.simulation-shell .topright{gap:2px}.simulation-shell .topright button{min-width:38px;width:38px;min-height:44px;padding:4px}.simulation-shell .topright .audio-quick-toggle{min-width:34px;width:34px}.simulation-shell .topright .test-exit{width:auto;max-width:52px;font-size:12px}
 .simulation-shell .game-layout,.simulation-shell.tab-world .game-layout{display:flex;flex-direction:column;gap:9px;padding:4px 0 0;flex:1;min-height:0;overflow:hidden}
 .simulation-shell .world,.simulation-shell:not(.tab-world) .world,.simulation-shell.tab-world .world{display:flex;flex-direction:column;flex:1 1 45%;height:auto;min-height:170px;overflow:hidden}
 .simulation-shell .world-heading,.simulation-shell.tab-world .world-heading{margin:0 0 4px}.simulation-shell .world-heading h1{display:none}.simulation-shell .world-heading .eyebrow{font-size:12px;line-height:1.2}
 .world-view-nav{gap:4px;margin:0 0 4px}.world-view-nav button{min-height:40px;font-size:14px;padding:6px 3px}.world-view-nav button:last-child{flex-basis:40px}
 .simulation-shell .journey-progress,.simulation-shell.tab-world .journey-progress{font-size:12px;line-height:1.3;margin:0 0 3px}.simulation-shell .world-progress,.simulation-shell.tab-world .world-progress{margin:0 0 4px;flex:0 0 3px}
 .simulation-shell .scene-shell,.simulation-shell.tab-world .scene-shell{flex:1 1 auto;min-height:0;height:auto;display:flex}.simulation-shell .scene-shell .scene-button{height:100%;min-height:0}.simulation-shell .scene-hint{bottom:8px;font-size:13px}.simulation-shell .scene-hint small{display:none}
 .simulation-shell .workbench,.simulation-shell.tab-world .workbench{flex:1 1 55%;min-height:0;max-height:none;display:block;padding:0 12px 20px;border-radius:15px 15px 0 0;scrollbar-gutter:auto}
 .simulation-shell.tab-world .world{flex:1 1 auto;min-height:0}.simulation-shell.tab-world .workbench{display:none}.simulation-shell.tab-world.drawer-expanded .workbench{display:block;flex:1 1 55%}.simulation-shell.tab-world.drawer-expanded .world{flex:0 0 30%;min-height:120px}
 .simulation-shell.tab-world .phone-build{display:block;flex:0 0 auto;padding-top:5px}.simulation-shell:not(.tab-world) .phone-build,.simulation-shell.drawer-expanded .phone-build{display:none}.simulation-shell .phone-build-heading{min-height:30px}.simulation-shell .phone-build-heading button{font-size:13px;min-height:30px}.simulation-shell .phone-producers button{min-height:100px}.simulation-shell .phone-producers small{font-size:12px}.simulation-shell .phone-discovery{min-height:44px}
 .simulation-shell .tabbar{display:none}.drawer-handle{min-height:42px;margin-bottom:8px}.drawer-handle button{min-height:36px}.drawer-section-title{margin:10px 0}.drawer-section-title h2{font-size:17px}.simulation-shell .buy-modes button{font-size:13px;min-height:36px;min-width:34px;padding:6px}
 .simulation-shell.drawer-expanded:not(.tab-world) .world{flex:0 0 150px;min-height:150px}.simulation-shell.drawer-expanded .workbench{flex:1}.simulation-shell.drawer-expanded .journey-progress{display:none}
 .simulation-shell .mobile-controls{padding:3px 6px max(3px,env(safe-area-inset-bottom));box-shadow:none}.simulation-shell .thumb-nav button{font-size:13px;min-height:56px;padding:5px 2px;gap:4px}.simulation-shell .quick-impact{display:none}
 .production-list article{grid-template-columns:minmax(0,1fr) 126px;gap:4px}.production-select b{font-size:15px}.producer-medallion{flex-basis:34px;height:34px;font-size:23px}.production-select{gap:7px}.production-buy{padding:8px}.production-buy b{font-size:16px}.production-buy span{font-size:13px}.production-inspector{padding:13px}
 .tree-stage .atlas-summary{display:none}.tree-stage .research-map-controls{margin:3px 0}.tree-stage .research-legend{display:none}.tree-stage .research-map-controls button{min-height:34px;padding:4px 10px}.simulation-shell .research-node{width:130px;max-width:130px;min-height:70px}.simulation-shell .research-node b{font-size:13px}
 .achievement-grid{gap:7px}.achievement-grid>button{min-height:132px;padding:10px 6px}.achievement-grid b{font-size:13px}.achievement-grid>button>span{height:40px;width:40px;font-size:24px}.archive-filters{margin:10px 0}.dialog-heading h2{font-size:22px}.navigator-worlds article,.navigator-parallel article{padding:12px;gap:10px}.habitat-medallion{flex-basis:42px;width:42px;height:42px;font-size:25px}.navigator-worlds h3,.navigator-parallel h3{font-size:18px}
 .transition-preview{height:220px}.parallel-world{padding:16px;max-height:96dvh}.parallel-scene{height:clamp(160px,28dvh,290px);flex-basis:clamp(160px,28dvh,290px)}.parallel-counter b{font-size:18px}.parallel-world>.dialog-heading small{font-size:12px}.parallel-purchases h3{font-size:15px}.parallel-purchases button{min-width:100px;font-size:13px}
}
@media(max-width:850px) and (max-height:700px){.simulation-shell .world,.simulation-shell:not(.tab-world) .world{min-height:155px;flex-basis:40%}.simulation-shell .phone-producers button{min-height:84px}.simulation-shell .phone-producers .producer-symbol{font-size:18px}.simulation-shell .notice-slot{height:44px;flex-basis:44px;padding:0}.simulation-shell .notice{height:44px}.simulation-shell .world-heading{display:none}.simulation-shell .scene-hint{display:none}}
@media(max-width:850px) and (orientation:landscape) and (max-height:500px){.simulation-shell .game-layout,.simulation-shell.tab-world .game-layout{display:grid;grid-template-columns:1fr 1fr;gap:8px}.simulation-shell .world,.simulation-shell.tab-world .world,.simulation-shell:not(.tab-world) .world{display:flex;min-height:0;height:100%}.simulation-shell .workbench,.simulation-shell.tab-world .workbench{display:block;min-height:0;height:100%}.simulation-shell .phone-build,.simulation-shell.tab-world .phone-build{display:none}.simulation-shell .world-heading,.simulation-shell .journey-progress,.simulation-shell .notice-slot{display:none}.simulation-shell .scene-shell{height:auto;min-height:0}.simulation-shell .topbar{min-height:50px}.simulation-shell .world-view-nav{margin:0 0 4px}}
@media(min-width:851px){.simulation-shell.drawer-expanded .game-layout{grid-template-columns:minmax(260px,.65fr) minmax(0,1.35fr)}.simulation-shell .surge{min-height:44px;font-size:14px;margin:8px 0 0}.simulation-shell .scene-shell{min-height:160px}}
@media(min-width:851px) and (max-height:650px){.simulation-shell .world-heading,.simulation-shell .journey-progress{display:none}.simulation-shell .topbar{flex-basis:54px;height:54px;min-height:54px}}

.assistant-panel{border:1px solid #415f73;border-radius:12px;margin:12px 0 18px;background:#132b3a}.assistant-panel summary{min-height:44px;padding:13px;font-size:14px;cursor:pointer;color:#c8e1e5}.assistant-panel>div{display:grid;gap:12px;padding:0 14px 14px}.assistant-panel p{font-size:14px;line-height:1.5;color:#bcd1dd}.assistant-panel label{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:14px}.assistant-panel input[type=number],.assistant-panel select{width:46%;min-height:44px;font-size:14px;color:#e7f4f7;background:#0d2130;border:1px solid #55798e;border-radius:8px;padding:8px}.assistant-panel .assistant-toggle{justify-content:flex-start}.assistant-panel input[type=checkbox]{width:22px;height:22px;accent-color:var(--accent)}.assistant-panel small{font-size:12px;line-height:1.5}

.boost-status-strip{border:1px solid var(--accent);color:var(--accent);font-size:14px;min-height:40px;margin-left:auto;background:#163440}

.simulation-shell .surge{position:static!important;flex:0 0 auto;width:100%;min-height:44px;font-size:14px;margin:5px 0 0;padding:9px;border-radius:10px}
@media(max-width:380px){.simulation-shell .topbar:has(.test-exit) .brand{font-size:0}.simulation-shell .topbar:has(.test-exit) .brand i{font-size:23px}}

/* Portraits are rendered from the same acquired 3D geometry as the world. */
.producer-medallion:has(img){flex-basis:64px;height:49px;border-radius:10px;overflow:hidden}
.producer-medallion img,.civic-title img,.village-choice img{display:block;width:64px;height:49px;object-fit:contain;border-radius:8px;background:#102131}
.civic-title>span:has(img){flex:0 0 64px;display:block}
.village-choice b:has(img){display:flex;align-items:center;gap:9px}
.village-choice b:has(img) i{flex:0 0 64px}
@media(max-width:380px){.producer-medallion:has(img){flex-basis:48px;height:37px}.producer-medallion img{width:48px;height:37px}}

.drawer-next-action{margin:10px 0}.drawer-next-action button{width:100%;min-height:58px;display:grid;gap:6px;text-align:left;padding:12px;border-color:var(--accent);background:#193847}.drawer-next-action b{font-size:15px;color:var(--accent)}.drawer-next-action small{font-size:13px;color:#c5dbe4;line-height:1.4}
.navigator-next{width:100%;min-height:46px;margin-bottom:15px;font-size:15px;border-color:var(--accent)}

/* The canvas, its controls and the action drawer have separate layout space.
   This is the authoritative sizing layer for the main play surface. */
.app.simulation-shell .game-layout{
 display:grid;grid-template-columns:minmax(0,1.3fr) minmax(350px,.8fr);
 grid-template-rows:minmax(0,1fr);align-items:stretch;min-height:0;
}
.app.simulation-shell .game-layout>.world{
 position:static;top:auto;align-self:stretch;display:flex!important;
 flex-direction:column;height:100%;min-height:0;min-width:0;overflow-y:auto;
}
.app.simulation-shell .game-layout>.workbench{height:100%;min-height:0;min-width:0;overflow-y:auto}
.app.simulation-shell .world>.scene-shell{
 position:relative;flex:1 0 280px;min-height:280px;width:100%;height:auto;
 margin:0;grid-column:auto;grid-row:auto;border-radius:16px;
}
.app.simulation-shell .scene-shell>.scene-button{
 position:absolute;inset:0;width:100%;height:100%;max-height:none;min-height:0;
}
.app.simulation-shell .world>.phone-build{display:none}
.app.simulation-shell .world-heading{flex:none}
.app.simulation-shell .world-heading .eyebrow{white-space:normal}
.app.simulation-shell .world-view-nav,.app.simulation-shell .journey-progress{flex:none}
.app.simulation-shell .world-view-nav button{min-width:0;white-space:normal;overflow-wrap:anywhere}
.app.simulation-shell .production-select b,.app.simulation-shell .production-select small{overflow-wrap:anywhere}

/* The opening is a short introduction above the world, never over a button. */
.app.simulation-shell .world>.opening-intro{
 position:static;inset:auto;display:grid;grid-template-columns:minmax(0,1fr) auto;
 align-items:center;gap:12px;flex:none;padding:12px 14px;margin:0 0 10px;
 pointer-events:auto;border:1px solid #6d604b;border-radius:12px;
 background:linear-gradient(110deg,#342a24,#142536);text-shadow:none;
}
.app.simulation-shell .opening-intro .opening-copy{position:static;inset:auto;min-width:0}
.app.simulation-shell .opening-copy>span{display:block;font-size:12px;letter-spacing:.08em}
.app.simulation-shell .opening-copy h2{font-size:22px;line-height:1.2;margin:5px 0;max-width:none}
.app.simulation-shell .opening-copy p{display:block;font-size:14px;line-height:1.4;max-width:none}
.app.simulation-shell .opening-intro .opening-skip{
 position:static;inset:auto;min-height:44px;font-size:14px;white-space:normal;
 width:74px;padding:8px;align-self:center;
}

/* Orbit, surface, specimens and camera controls sit below the canvas. */
.scene-controls{display:flex;flex-wrap:wrap;align-items:center;gap:8px;flex:none;padding:8px 0 0}
.app.simulation-shell .scene-controls .camera-view{
 position:static;inset:auto;flex:0 0 auto;box-shadow:none;min-height:46px;font-size:14px;
}
.app.simulation-shell .scene-controls .planet-explorer{
 position:static;inset:auto;flex:1 1 245px;min-width:0;display:flex;gap:6px;
 pointer-events:auto;align-items:stretch;
}
.app.simulation-shell .scene-controls .planet-explorer>div{
 flex:1;min-width:0;max-width:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
 padding:0;border:0;background:transparent;
}
.app.simulation-shell .scene-controls .planet-explorer button{
 min-height:46px;min-width:0;font-size:14px;padding:7px 6px;white-space:normal;
 border:1px solid #385568;background:#122738;
}
.app.simulation-shell .scene-controls .planet-explorer button[aria-pressed=true]{border-color:var(--accent);color:var(--accent);background:#2a3d3d}
.app.simulation-shell .scene-controls .planet-explorer .shape-earth{flex:0 0 70px;min-height:46px}
.app.simulation-shell .scene-controls .chemistry-explorer .shape-earth{flex:1;min-width:0}
.app.simulation-shell .scene-controls .specimen-control{
 position:static;inset:auto;flex:1 1 220px;max-width:100%;min-width:0;
 display:flex;box-shadow:none;gap:8px;font-size:14px;padding:3px 8px;
}
.app.simulation-shell .scene-controls .specimen-control span{display:block;white-space:normal}
.app.simulation-shell .scene-controls .specimen-control select{flex:1;width:100%;max-width:none;min-height:40px;min-width:0;font-size:14px}
.app.simulation-shell .scene-shell .scene-hint{bottom:12px;font-size:14px;left:12px;right:12px}
.app.simulation-shell .scene-shell .scale-badge{max-width:60%;top:10px;right:10px}
.app.simulation-shell .scene-shell .orbit-legend{right:auto;max-width:35%;font-size:12px;flex-direction:column;align-items:flex-start}
.app.simulation-shell .scene-shell .scale-badge small{font-size:12px;line-height:1.3}

@media(min-width:851px){
 .app.simulation-shell.drawer-expanded .game-layout{grid-template-columns:minmax(0,1fr) minmax(360px,1fr)}
 .app.simulation-shell .workbench .tabbar{gap:6px}
}
@media(max-width:850px){
 .app.simulation-shell,.app.simulation-shell.tab-world,.app.simulation-shell:not(.tab-world){
  display:flex;flex-direction:column;height:100dvh;max-height:100dvh;
  padding:0 8px;overflow:hidden;
 }
 .app.simulation-shell .topbar{margin:0 -8px;padding:6px 8px;min-height:60px;flex:none}
 .app.simulation-shell .topbar .brand{flex:0 0 auto;font-size:0;gap:0}
 .app.simulation-shell .topbar .brand i{font-size:27px}
 .app.simulation-shell .topbar .mobile-counter{flex:1;min-width:0;text-align:center;margin:0}
 .app.simulation-shell .mobile-counter b{font-size:20px;overflow-wrap:anywhere}
 .app.simulation-shell .mobile-counter span{font-size:12px}
 .app.simulation-shell .topright{flex:none}
 .app.simulation-shell .notice-slot{flex:0 0 48px;height:48px;padding:2px 0}
 .app.simulation-shell .game-layout,.app.simulation-shell.tab-world .game-layout{
  display:grid;grid-template-columns:minmax(0,1fr);
  grid-template-rows:auto minmax(220px,1fr);
  flex:1;gap:8px;min-height:0;padding:4px 0 0;overflow-y:auto;overflow-x:hidden;
  align-items:stretch;overscroll-behavior:contain;
 }
 .app.simulation-shell .game-layout>.world,.app.simulation-shell.tab-world .game-layout>.world,
 .app.simulation-shell:not(.tab-world) .game-layout>.world{
  position:static;align-self:stretch;flex:none;min-height:0;height:auto;overflow:visible;
 }
 .app.simulation-shell .world>.scene-shell,.app.simulation-shell.tab-world .world>.scene-shell{
  flex:0 0 auto;min-height:240px;height:clamp(240px,34dvh,440px);grid-column:auto;grid-row:auto;
 }
 .app.simulation-shell .game-layout>.workbench,.app.simulation-shell.tab-world .game-layout>.workbench{
  display:block;flex:none;min-height:0;height:100%;padding:0 12px 20px;
  overflow-y:auto;overscroll-behavior:contain;
 }
 .app.simulation-shell .world-heading,.app.simulation-shell .journey-progress{display:none}
 .app.simulation-shell .world-progress{display:block;flex:0 0 3px;margin:0 0 6px}
 .app.simulation-shell .world-view-nav{margin-bottom:6px;gap:5px}
 .app.simulation-shell .world>.phone-build,.app.simulation-shell.tab-world .world>.phone-build{display:none}
 .app.simulation-shell .world>.opening-intro{padding:8px 10px;margin-bottom:8px;gap:8px}
 .app.simulation-shell .opening-copy h2{font-size:18px}
 .app.simulation-shell .opening-copy>span{font-size:12px}
 .app.simulation-shell .opening-copy p{font-size:14px;line-height:1.3}
 .app.simulation-shell .opening-intro .opening-skip{width:62px;font-size:14px}
 .app.simulation-shell .scene-controls{gap:5px;padding-top:6px}
 .app.simulation-shell .scene-controls .camera-view{flex-basis:68px;min-width:68px;padding:6px;font-size:14px}
 .app.simulation-shell .scene-controls .camera-view span{display:none}
 .app.simulation-shell .scene-controls .planet-explorer{flex-basis:220px}
 .app.simulation-shell .scene-controls .planet-explorer button>span{display:none}
 .app.simulation-shell .scene-controls .planet-explorer .shape-earth{flex-basis:58px}
 .app.simulation-shell .scene-controls .specimen-control{flex-basis:210px}
 .app.simulation-shell .mobile-controls{
  position:static;inset:auto;flex:0 0 auto;display:block;max-width:none;width:auto;
  margin:0 -8px;padding:3px 6px max(3px,env(safe-area-inset-bottom));box-shadow:none;
 }
 .app.simulation-shell .thumb-nav button{min-height:54px;font-size:13px}
 .app.simulation-shell .drawer-handle{top:0;min-height:44px;margin-bottom:8px}
 .app.simulation-shell .drawer-next-action small{font-size:13px}
 .app.simulation-shell.drawer-expanded .game-layout,
 .app.simulation-shell.tab-world.drawer-expanded .game-layout{
  grid-template-rows:auto minmax(300px,1fr);
 }
 .app.simulation-shell.drawer-expanded .world>.scene-shell{height:240px}
}
/* Short windows scroll the play area rather than crushing the canvas. */
@media(min-width:851px) and (max-height:620px){
 .app.simulation-shell .game-layout{overflow-y:auto;grid-template-rows:minmax(470px,1fr)}
 .app.simulation-shell .game-layout:has(.opening-intro){grid-template-rows:minmax(570px,1fr)}
}
@media(max-width:850px) and (orientation:landscape) and (max-height:500px){
 .app.simulation-shell .game-layout,.app.simulation-shell.tab-world .game-layout,
 .app.simulation-shell.drawer-expanded .game-layout,.app.simulation-shell.tab-world.drawer-expanded .game-layout{
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:minmax(max-content,1fr);gap:8px;
 }
 .app.simulation-shell .notice-slot{display:none}
 .app.simulation-shell .scene-controls .planet-explorer{flex-basis:100%}
}

/* One consistent illustrated identity across the entire discovery catalog. */
.catalog-picture{display:inline-block;position:relative;flex:0 0 64px;width:64px;height:64px;min-width:0;overflow:hidden;border:1px solid #597485;border-radius:12px;background:#0c1926;box-shadow:0 3px 9px #0004;vertical-align:middle}
.catalog-picture>span{display:block;width:100%;height:100%;background-repeat:no-repeat}
.production-select>.catalog-picture{flex:0 0 64px}
.production-list article{grid-template-columns:minmax(0,1fr) 128px;padding:7px;background:linear-gradient(115deg,#172d3b,#10222f);border-radius:14px}
.production-select{gap:12px}.production-select b{font-size:16px}.production-select small{font-size:12px;line-height:1.45}
.boost-options article{grid-template-columns:64px minmax(0,1fr)}
.production-buy{border-radius:9px}.production-buy small{font-size:11px}
.purchase{display:grid;grid-template-columns:64px minmax(0,1fr) auto;column-gap:12px}
.purchase .details{min-width:0}.purchase h3,.purchase p,.purchase small{overflow-wrap:anywhere}
.purchase .price{white-space:normal;min-width:0;max-width:100px;overflow-wrap:anywhere}
.research-detail-heading{display:flex;align-items:center;gap:16px;margin:14px 0}
.research-detail-heading .catalog-picture{flex-basis:88px;width:88px;height:88px;border-radius:15px}
.research-detail-heading h3{margin:0;line-height:1.25;overflow-wrap:anywhere}
.research-node{min-height:142px;gap:7px;padding:9px 7px;background:linear-gradient(#1c3244,#101e2d)}
.research-node>.catalog-picture{width:62px;height:62px;flex:0 0 62px;border-radius:9px}
.research-node .node-check{position:absolute;right:6px;top:6px;width:22px;height:22px;display:grid;place-items:center;border-radius:50%;background:#86d7b6;color:#0b2a25;border:2px solid #10242c;font-size:13px}
.research-node.locked .catalog-picture{filter:saturate(.65);opacity:.85}
.research-node b{line-height:1.25}.research-node small{color:#b8cfdc}
.frontier-title{display:grid;grid-template-columns:64px minmax(0,1fr) auto;gap:12px;align-items:center}
.frontier-title>div{min-width:0}.frontier-title h3{overflow-wrap:anywhere}.frontier-title>b{max-width:90px;overflow-wrap:anywhere}
.frontier-title>.catalog-picture{width:64px;height:64px}
.village-choice>button>div>b{display:flex;align-items:center;gap:12px;min-width:0;line-height:1.35}
.fertility-purchases>.village-choice>button>div{align-items:center;gap:10px}
.village-choice>button>div>strong{white-space:normal;overflow-wrap:anywhere;min-width:0;max-width:105px}
.civic-title>span{flex-shrink:0}.civic-title h4{min-width:0;overflow-wrap:anywhere}
.achievement-grid>button>.catalog-picture{width:72px;height:72px;flex:0 0 72px;border-radius:12px}
.archive-upgrades button>.catalog-picture{width:60px;height:60px;flex:0 0 60px;border-radius:10px}
.collection-chapters article>div{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:7px}
.collection-chapters article button{display:flex;align-items:center;gap:9px;text-align:left;padding:6px;min-width:0;line-height:1.35}
.collection-chapters button .catalog-picture{width:40px;height:40px;flex-basis:40px;border-radius:7px}
.chapter-picture{width:84px;height:84px;flex:0 0 84px;object-fit:cover;border:1px solid #597485;border-radius:14px}
.navigator-worlds article,.navigator-parallel article{align-items:flex-start}
.parallel-purchases article{display:grid;grid-template-columns:56px minmax(0,1fr) auto;gap:10px}
.parallel-purchases article>.catalog-picture{width:56px;height:56px;flex-basis:56px}
.parallel-purchases article>div{min-width:0}.parallel-purchases h3{overflow-wrap:anywhere}
.geology-projects article>div,.reaction-name,.nursery-options h4,.ecology-projects header{display:flex;align-items:center;gap:12px}
.impact-modes button{display:flex;align-items:center;gap:10px;text-align:left}
.impact-modes .catalog-picture{width:44px;height:44px;flex-basis:44px}
.field-studies article>.catalog-picture{float:left;margin:0 12px 8px 0}.field-studies article{display:flow-root}
.ecology-studies article{flex-wrap:wrap}.ecology-studies article>div{flex:1;min-width:150px}
.research-catalog{margin-top:24px;border-top:1px solid #355368;padding-top:18px}
.research-catalog-heading{display:flex;gap:10px;align-items:center;justify-content:space-between}.research-catalog h3{margin:0;font-size:19px}.research-catalog-heading>span{font-size:12px;color:#b7ccda}
.research-catalog label{display:block;margin-top:12px;font-size:12px;color:#c4d7e2}
.research-catalog input{display:block;width:100%;min-width:0;min-height:44px;padding:10px 12px;margin-top:6px;background:#0b1d2a;border:1px solid #49677d;border-radius:9px;color:#f0f5f8;font-size:15px}
.research-catalog-filters{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}.research-catalog-filters button{font-size:12px;padding:7px 10px;min-height:38px}.research-catalog-filters [aria-pressed=true]{background:#254941;border-color:#80cdb0;color:#c1f4d7}
.research-catalog-list{display:grid;gap:7px}
.research-catalog-row{display:grid;grid-template-columns:54px minmax(0,1fr) 76px;align-items:center;gap:10px;padding:8px;text-align:left;background:#132936;border:1px solid #395668;border-radius:11px;min-width:0;width:100%}
.research-catalog-row[aria-pressed=true]{border-color:var(--accent);background:#233e46}
.research-catalog-row .catalog-picture{width:54px;height:54px;border-radius:9px}
.research-catalog-row>span:not(.catalog-picture){min-width:0}.research-catalog-row b{display:block;font-size:14px;line-height:1.3;overflow-wrap:anywhere}.research-catalog-row small{display:block;font-size:11px;line-height:1.4;color:#b8cdd9;margin-top:4px;overflow-wrap:anywhere}
.research-catalog-row .catalog-status{text-align:right;font-size:12px;color:#bfd7e4;overflow-wrap:anywhere}.research-catalog-row .catalog-status.ready{color:#a1e5be}
@media(max-width:600px){
 .production-list article{grid-template-columns:minmax(0,1fr) 104px;padding:5px;gap:4px}.production-select{gap:8px;padding:4px 2px}.production-select>.catalog-picture{flex-basis:52px;width:52px;height:52px}.production-select b{font-size:14px}.production-select small{font-size:11px}.production-buy{padding:7px}.production-buy b{font-size:15px}.production-buy span{font-size:12px}
 .purchase{grid-template-columns:52px minmax(0,1fr);gap:10px}.purchase>.catalog-picture{width:52px;height:52px;flex-basis:52px;grid-row:1/3}.purchase>.price{grid-column:2;text-align:left;max-width:none;display:flex;align-items:baseline;gap:6px}.purchase>.price small{display:inline}
 .frontier-title{grid-template-columns:56px minmax(0,1fr);gap:10px}.frontier-title>.catalog-picture{width:56px;height:56px}.frontier-title>b{grid-column:2;max-width:none;text-align:left}.frontier-title>b small{display:inline;margin-left:6px}
 .chapter-picture{width:64px;height:64px;flex-basis:64px}
 .parallel-purchases article{grid-template-columns:52px minmax(0,1fr)}.parallel-purchases article>button{grid-column:2;width:100%;min-width:0}.parallel-purchases article>.catalog-picture{width:52px;height:52px}
 .fertility-purchases>.village-choice>button>div{display:grid;grid-template-columns:minmax(0,1fr)}.village-choice>button>div>strong{max-width:none;margin-left:76px}
 .impact-modes{grid-template-columns:1fr}.boost-options article{grid-template-columns:56px minmax(0,1fr)}.boost-options article>.catalog-picture{width:56px;height:56px}.boost-options article>button{grid-column:2;width:100%}
}
@media(prefers-reduced-motion:no-preference){.catalog-picture{transition:border-color .18s,box-shadow .18s}button:hover>.catalog-picture{border-color:#acc9d5;box-shadow:0 3px 12px #0006}}

.production-inspector>summary{font-size:14px;cursor:pointer;min-height:24px;line-height:24px;color:#cbdce5}.production-inspector[open]>summary{margin-bottom:14px}

.nursery-options h4{flex-wrap:wrap;line-height:1.4}.nursery-options h4 small{margin-left:auto}.reaction-name h4,.geology-projects h4{min-width:0;overflow-wrap:anywhere}

.landscape-choices .catalog-picture{width:44px;height:44px;flex:0 0 44px}.landscape-choices button{min-width:0;overflow-wrap:anywhere}
.habitat-thumbnail{width:48px;height:48px;flex:0 0 48px;object-fit:cover;border-radius:9px;border:1px solid #557383}
.field-path>button>.catalog-picture{width:54px;height:54px;flex:0 0 54px;border-radius:9px;background:#0c1926}
.field-project-heading{display:flex;align-items:center;gap:14px;margin:14px 0}.field-project-heading h3{min-width:0;margin:0;line-height:1.3}
.field-guide article>.catalog-picture{float:left;margin:0 12px 8px 0}.field-guide article{display:flow-root}
@media(max-width:400px){.landscape-choices{grid-template-columns:1fr}}
/* Unaffordable research stays legible; the disabled action and deficit explain the lock. */
.purchase:disabled{opacity:1;background:#111f2c;border-color:#344b5c}
.purchase:disabled .price{color:#adc1cf}
.purchase:disabled .catalog-picture{filter:saturate(.78)}

.field-path button{grid-template-columns:54px minmax(0,1fr)}.field-path>button>.catalog-picture{display:block}.field-path b{overflow-wrap:anywhere}

/* A read-only decision area stays in the drawer's normal flow. */
.action-advisor{margin:12px 0 16px;padding:16px;border:1px solid #49787866;border-radius:18px;background:linear-gradient(135deg,#15313b,#101d2b);min-width:0;color:#e7f0ed}
.advisor-heading{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:12px;font-size:10px;letter-spacing:.13em;color:#a0d9cb}.advisor-heading small{letter-spacing:0;color:#afbbc8}
.advisor-feature{display:flex;gap:13px;align-items:center;min-width:0}.advisor-feature>div{min-width:0;flex:1}.advisor-feature h2{font-size:19px;line-height:1.2;margin:0 0 6px}.advisor-feature p{font-size:12px;line-height:1.55;margin:0;color:#c2ced5}
.advisor-metrics{display:flex;gap:6px 12px;flex-wrap:wrap;margin-top:9px;font-size:11px;color:#bdeacb}.advisor-reasoning{margin-top:13px;border-top:1px solid #ffffff13;padding-top:10px}.advisor-reasoning summary{font-size:12px;cursor:pointer;color:#b7dace}.advisor-reasoning p,.advisor-reasoning>small{font-size:11px;line-height:1.55;color:#acbac6;display:block}.advisor-assumptions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:13px}.advisor-assumptions label{font-size:11px;display:grid;gap:5px}.advisor-assumptions select{width:100%;min-width:0;background:#101e2c;color:#e7f0ed;border:1px solid #405360;border-radius:8px;padding:8px;font:inherit}.advisor-comparison>div{display:flex;justify-content:space-between;gap:10px;font-size:11px;padding:9px 0;border-bottom:1px solid #ffffff12}.advisor-comparison small{display:block;color:#aabac5;margin-top:3px}.advisor-comparison>div>span:last-child{flex-shrink:0}.advisor-shortcuts{display:flex;gap:8px}.simulation-shell .advisor-shortcuts button{width:auto;flex:1;padding:10px;font-size:12px}.producer-requirement{color:#d9be90!important;white-space:normal!important}.formation-grid>div{padding:12px;border:1px solid #ffffff18;border-radius:10px}.formation-grid>div small{display:block;margin-top:5px}
@media(max-width:600px){.action-advisor{padding:13px;margin:8px 0 12px}.advisor-feature h2{font-size:17px}.advisor-feature{gap:10px;align-items:flex-start}.advisor-feature .item-picture{width:56px;height:56px;flex:0 0 56px}.advisor-comparison>div>span:last-child{max-width:40%;overflow-wrap:anywhere;text-align:right}}
.life-chapter-panel{margin:12px 0;padding:16px;border:1px solid color-mix(in srgb,var(--accent) 28%,transparent);border-radius:18px;background:linear-gradient(130deg,color-mix(in srgb,var(--accent) 10%,#14202a),#111a24)}
.life-chapter-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.life-chapter-heading b{font-size:18px}.life-steps{display:flex;gap:6px;margin:14px 0}.life-steps>span{flex:1;text-align:center;padding:5px 0;border-radius:6px;background:#263442;color:#899cab;font-size:13px}.life-steps>.current{background:var(--accent);color:#102329;font-weight:800}.life-steps>.done{color:var(--accent);background:#24433f}.life-chapter-panel p{font-size:14px;line-height:1.55;color:#c1d0d5;margin:10px 0}.life-requirements>b{font-size:14px}.life-requirements>div{display:flex;align-items:center;gap:10px;margin:9px 0;font-size:14px}.life-requirements .catalog-picture{width:48px;height:42px;flex:0 0 48px}.life-requirements span{flex:1;min-width:0}.life-requirements strong{white-space:nowrap;color:#94a7b2}.life-requirements .met strong{color:#9bd5a4}.life-chapter-panel summary{font-size:14px;color:var(--accent);cursor:pointer}.life-archive-scene{height:clamp(260px,48vh,480px);position:relative}.life-archive-scene canvas{width:100%;height:100%}.life-archive-scene .scene-wrap{height:100%}.chapter-navigator .navigator-worlds{max-height:58vh;overflow:auto}.chapter-navigator .chapter-picture{object-fit:cover;border-radius:12px}
.test-cheats{padding:12px;border:1px solid #b4996266;border-radius:12px;background:#282a26}.test-cheat-controls{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.test-cheat-controls label{display:flex;align-items:center;gap:8px;font-size:14px;white-space:nowrap}.test-cheat-controls select,.test-cheat-controls button{min-height:40px;font-size:14px;padding:6px 9px}.test-cheats p,.test-cheats small{font-size:14px;line-height:1.5;color:#ccd6d8}.test-cheat-code label{display:block;font-size:14px;margin:12px 0 6px}.test-cheat-code>div{display:flex;gap:8px}.test-cheat-code input{min-width:0;flex:1;padding:10px;font-size:16px}.test-cheats.compact{border:0;padding:4px 0;background:none;width:100%}.test-cheats.compact .test-cheat-controls{flex-wrap:nowrap;justify-content:center}.test-cheats.compact .test-cheat-controls button{min-width:0}.test-cheats.compact select{max-width:96px}.notice-slot:has(.test-cheats){display:flex;align-items:center}@media(max-width:400px){.test-cheats.compact .test-cheat-controls{gap:4px}.test-cheats.compact .test-cheat-controls button{font-size:12px;padding:5px}.test-cheats.compact label{font-size:12px;gap:4px}}

/* Settlement purchases share the same row, image and buy-button sizing as every chapter. */
.village-build-group>h3{font-size:12px;font-weight:500;color:#b3cbd3;margin:16px 0 8px}
.village-detail-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.village-detail-actions button{min-height:44px;font-size:12px;padding:8px 12px}
.simulation-shell .topright .test-enter{width:auto;max-width:60px;font-size:11px;min-height:44px;padding:4px 6px}
@media(max-width:600px){.simulation-shell .topbar:has(.test-enter) .brand{font-size:0}.simulation-shell .topbar:has(.test-enter) .brand i{font-size:23px}}

.life-chapter-summary{padding:10px 12px;margin:8px 0}.life-chapter-summary>summary{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:28px;font-size:14px;list-style:none}.life-chapter-summary>summary::after{content:"＋"}.life-chapter-summary[open]>summary::after{content:"−"}.life-chapter-summary>summary small{font-size:12px;margin-left:auto;color:#afc6d2;white-space:nowrap}.life-chapter-summary[open]>summary{margin-bottom:12px}

.future-game{--accent:#9bcff3;min-height:100svh;background:#080f1b;color:#e6eef4;font-family:Arial,sans-serif}.future-game *{box-sizing:border-box}.future-game button,.future-game input,.future-game select{font:inherit}.future-game button{cursor:pointer;min-height:42px;color:#dce9f0;border:1px solid #385366;border-radius:9px;background:#172b3b;padding:8px 12px}.future-game button:disabled{cursor:default;opacity:.55}.future-game button:focus-visible,.future-game summary:focus-visible,.future-canvas:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.future-game button[aria-pressed=true]{border-color:var(--accent);background:#294454}.future-game input,.future-game select{min-height:42px;max-width:100%;border:1px solid #496377;border-radius:8px;background:#102333;color:#e7f1f6;padding:8px;min-width:0}.future-game input[type=checkbox]{min-height:18px;width:18px}.future-game a{color:var(--accent)}.future-game small{font-size:12px;line-height:1.45}.future-game p{font-size:16px;line-height:1.55}.future-game h2{font-size:20px;margin:16px 0}.future-game h3{font-size:17px}.future-top{display:flex;align-items:center;gap:10px;padding:12px 24px;border-bottom:1px solid #35516666;background:#0c1928;min-height:74px}.future-brand{text-decoration:none;white-space:nowrap;font-size:22px;color:#e2d8bf!important}.future-balance{margin-right:auto;margin-left:auto;display:grid;gap:3px;text-align:center}.future-balance>b{font-size:23px}.future-balance>b small{font-weight:400;font-size:14px}.future-balance>span{font-size:12px;color:#a9c3d2}.future-status{height:52px;display:flex;align-items:center;justify-content:center;padding:0 18px;color:#bbcfdc;font-size:14px;border-bottom:1px solid #344c5e55}.future-status>span{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.future-status:has([role=alert]){height:auto;min-height:52px}.future-status [role=alert]{white-space:normal;color:#edb8a9}.future-main{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(360px,.85fr);max-width:1800px;margin:auto;align-items:start}.future-world{position:sticky;top:0;min-width:0;padding:22px 22px 16px}.future-world-heading{display:flex;gap:12px;justify-content:space-between;align-items:center;margin-bottom:14px}.future-world-heading>div{min-width:0}.future-world-heading small{color:#a6bcca;letter-spacing:.07em}.future-world-heading h1{font-size:clamp(21px,2.6vw,34px);font-weight:500;line-height:1.2;margin:5px 0 0}.future-world-heading>button{flex-shrink:0}.future-view{height:clamp(330px,54svh,720px);border:1px solid #395366;border-radius:22px;position:relative;overflow:hidden;background:radial-gradient(ellipse at 40% 30%,#223952,#07121f)}.future-canvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab}.future-canvas:active{cursor:grabbing}.future-scene-label{position:absolute;bottom:14px;left:16px;max-width:80%;font-size:14px;pointer-events:none;text-shadow:0 1px 6px #000;background:#091424bb;padding:6px 10px;border-radius:8px}.future-scene-label small{display:block;color:#b5c9d6;margin-top:2px}.future-inspect-back{position:absolute;top:12px;left:12px}.future-view-controls{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin:12px 0}.future-view-controls button{font-size:12px;flex:0 1 auto;padding:7px 10px}.future-view-controls .future-tap{margin-left:auto;color:#081f2b;background:var(--accent);border:0;font-weight:600;font-size:14px}.future-capacity{display:flex;flex-wrap:wrap;gap:10px 24px;margin:14px 0;font-size:12px;color:#a8bfcc}.future-capacity b{color:#d9e7ee;font-size:14px}.future-supplies{border-top:1px solid #3d576955;padding:12px 0}.future-supplies summary{cursor:pointer;font-size:14px;line-height:1.5}.future-supplies summary span{font-size:12px;color:#9fbacb;margin-left:10px}.future-stock-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:16px 0}.future-stock-grid>div{display:grid;gap:5px;font-size:12px}.future-stock-grid b{font-size:14px}.future-game progress{width:100%;height:5px;accent-color:var(--accent)}.future-drawer{min-width:0;padding:0 20px 28px;border-left:1px solid #38536566;background:#0d1b29}.future-tabs{display:flex;gap:3px;background:#0d1b29;position:sticky;top:0;z-index:4;padding:12px 0}.future-tabs button{flex:1;border:0;background:none;border-radius:0;color:#a6bccb;border-bottom:2px solid transparent;padding:10px 5px;font-size:14px}.future-tabs button[aria-pressed=true]{background:none;border-bottom-color:var(--accent);color:var(--accent)}.future-objectives{border:1px solid #456379;border-radius:10px;margin:6px 0 14px;padding:10px 12px}.future-objectives>summary{cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:14px}.future-objectives>summary::after{content:'＋'}.future-objectives[open]>summary::after{content:'−'}.future-objectives>summary small{margin-left:auto;color:#b4cad6}.future-objectives>div{display:flex;justify-content:space-between;gap:18px;padding:10px 0;border-bottom:1px solid #3c546655;font-size:14px}.future-objectives>div b{white-space:nowrap}.future-objectives .met{color:#9dd9b9}.future-objectives>button{width:100%;margin-top:12px}.future-advisor{border-left:2px solid var(--accent);background:#172e3b;padding:10px 14px;margin-bottom:14px}.future-advisor small{color:var(--accent);letter-spacing:.08em}.future-advisor p{font-size:14px;margin:5px 0;line-height:1.5}.future-build-tools{display:flex;gap:8px;align-items:center;margin:10px 0}.future-build-tools label{min-width:0;flex:1}.future-build-tools input{width:100%;font-size:14px}.future-build-tools select{font-size:14px}.future-build-tools>small{white-space:nowrap}.future-game .production-list article{grid-template-columns:minmax(0,1fr) 122px;padding:6px}.future-game .production-select{padding:4px 2px;border:0;gap:10px}.future-game .production-select b{font-size:15px;overflow-wrap:anywhere}.future-game .production-select small{font-size:12px;line-height:1.4;margin-top:4px}.future-game .production-buy{padding:8px;align-items:flex-end}.future-game .production-buy b{font-size:14px}.future-game .production-buy span{font-size:12px;text-align:right}.future-game .production-buy small{font-size:12px}.future-game .production-select .catalog-picture{flex-basis:56px;width:56px;height:56px;min-width:56px}.future-game .production-inspector{margin:12px 0;background:#142736;padding:12px;border:1px solid #365366;border-radius:10px}.future-game .production-inspector summary{font-size:14px;cursor:pointer}.future-game .production-inspector p,.future-game li{font-size:14px;line-height:1.5}.future-game .production-inspector ul{padding-left:22px}.future-detail-actions{display:flex;flex-wrap:wrap;gap:8px}.future-detail-actions button{font-size:14px}.future-upgrades{margin-top:18px}.future-upgrades summary{cursor:pointer;font-size:14px;min-height:40px}.future-upgrades>div{display:flex;align-items:center;gap:10px;margin-bottom:8px;padding:8px;border:1px solid #365467;border-radius:10px}.future-upgrades .catalog-picture{width:48px;height:48px;flex-basis:48px}.future-upgrades>div>span:not(.catalog-picture){flex:1;min-width:0}.future-upgrades b,.future-upgrades small{display:block}.future-upgrades b{font-size:14px}.future-upgrades button{max-width:95px;font-size:14px}.future-section-title{display:flex;align-items:center;justify-content:space-between;gap:10px}.future-section-title span{font-size:12px}.future-secondary{color:#a7c0cf;font-size:14px!important}.future-research-map{position:relative;height:830px;margin-top:15px;border:1px solid #385568;border-radius:15px;background:radial-gradient(ellipse,#233747,#0c1929)}.future-research-map>svg{position:absolute;inset:0;width:100%;height:100%}.future-research-map line{stroke:#385061;stroke-width:.5}.future-research-map line.complete{stroke:var(--accent)}.future-game .future-research-node{position:absolute;transform:translate(-50%,-50%);width:42%;max-width:185px;min-height:119px;display:flex;flex-direction:column;align-items:center;gap:5px;padding:7px;background:#122637;line-height:1.25;font-size:13px;white-space:normal;overflow-wrap:anywhere}.future-research-node .catalog-picture{width:42px;height:42px;flex-basis:42px;border-radius:8px}.future-game .future-research-node.done{background:#183e3b;border-color:#6cbca3}.future-game .future-research-node.ready{border-color:var(--accent)}.future-game .future-research-node.selected{box-shadow:0 0 0 2px var(--accent)}.future-research-detail{border:1px solid #416276;background:#142d3c;padding:16px;border-radius:14px;margin-top:14px}.future-research-detail p{font-size:14px}.future-research-detail>button{width:100%;margin-top:10px}.future-route-form{display:grid;gap:12px;padding:14px;border:1px solid #38576b;border-radius:12px}.future-route-form label{display:grid;gap:5px;font-size:14px}.future-route-form p{margin:0;font-size:14px}.future-route-list article,.future-world-list article{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #38556966}.future-route-list article>div,.future-world-list article>div{min-width:0;flex:1}.future-route-list b,.future-world-list b{display:block;font-size:15px;overflow-wrap:anywhere}.future-world-list span,.future-route-list span{font-size:12px;display:block}.future-route-list small,.future-world-list small{display:block;color:#aec4d1;margin:4px 0}.future-world-list .catalog-picture,.future-route-list .catalog-picture{width:56px;height:56px;flex-basis:56px}.future-world-list article>img{object-fit:cover;border-radius:10px}.future-world-list button{font-size:14px;max-width:100px}.future-game .future-dialog{max-width:660px;max-height:88svh;overflow-y:auto;background:#102230;color:#e6eef4;padding:22px}.future-dialog .dialog-heading{position:sticky;top:-22px;z-index:5;background:#102230;padding:10px 0}.future-dialog .dialog-heading h2{margin:4px 0}.future-dialog .test-lab-panel label{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:12px 0;font-size:14px}.future-dialog .test-lab-panel select{width:100%}.future-dialog .test-lab-panel label:has(input){flex-wrap:nowrap}.future-legacy-scene{height:400px;position:relative}.future-legacy-scene .living-scene{height:100%}.future-completion{padding:18px;border:1px solid var(--accent);border-radius:14px}.future-game .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media(min-width:1450px){.future-main{grid-template-columns:minmax(0,1.35fr) minmax(420px,.65fr)}.future-view{height:clamp(450px,65svh,780px)}}
@media(max-width:850px){.future-top{padding:9px 12px;gap:6px;min-height:64px}.future-brand{font-size:23px}.future-brand span{display:none}.future-top>button{font-size:13px;padding:6px 9px}.future-balance>b{font-size:20px}.future-main{display:block}.future-world{position:relative;padding:12px}.future-world-heading{margin-bottom:10px}.future-world-heading h1{font-size:22px}.future-world-heading small{font-size:12px;letter-spacing:0}.future-world-heading button{font-size:13px}.future-view{height:clamp(270px,42svh,480px);border-radius:16px}.future-view-controls{margin:8px 0;gap:4px}.future-view-controls button{padding:6px 8px;min-height:40px}.future-view-controls .future-tap{font-size:13px}.future-capacity{gap:8px 18px;margin:9px 0}.future-supplies{padding:8px 0 0}.future-supplies summary span{font-size:12px}.future-drawer{padding:0 12px calc(25px + env(safe-area-inset-bottom));border-left:0;border-top:1px solid #365466}.future-tabs{top:0}.future-game .production-list article{grid-template-columns:minmax(0,1fr) 108px;padding:5px}.future-game .production-select{gap:8px}.future-game .production-select b{font-size:14px}.future-game .production-select .catalog-picture{width:52px;height:52px;flex-basis:52px;min-width:52px}.future-game .production-buy{padding:7px}.future-status{padding:0 8px}.future-game .future-dialog{padding:16px;max-height:90svh}.future-dialog .dialog-heading{top:-16px}.future-stock-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.future-research-map{height:860px}}
@media(max-width:360px){.future-view-controls .future-tap{flex:1}.future-supplies summary span{display:block;margin:4px 0 0}.future-capacity{gap:8px}.future-game .production-list article{grid-template-columns:minmax(0,1fr) 96px}.future-build-tools{flex-wrap:wrap}.future-build-tools label{flex-basis:55%}.future-world-heading h1{font-size:20px}}
/* One world and one panel: primary controls stay in one row. */
.research-ready-label{display:inline-block;margin-left:6px;font-size:11px;background:#a5e9c1;color:#103628;padding:2px 5px;border-radius:5px;font-weight:600}.future-game button.research-ready,.compact-panel-tabs button.research-ready{border-color:#9ee2b8;color:#bdeccc}.future-status.quiet{display:none}.future-main{height:calc(100dvh - 74px);grid-template-rows:minmax(0,1fr)}.future-status:not(.quiet)+.future-main{height:calc(100dvh - 126px)}.future-world{position:relative;padding:0;min-height:0;height:100%;overflow:hidden}.future-world-heading{position:absolute;z-index:2;top:18px;left:20px;right:20px;pointer-events:none}.future-world-heading h1{font-size:24px;text-shadow:0 2px 8px #000}.future-view{height:100%;min-height:0;border:0;border-radius:0}.future-drawer{height:100%;overflow:auto;overscroll-behavior:contain}.future-world .future-scene-label{bottom:18px}.future-filter{margin:0 0 10px;font-size:12px}.future-filter>summary{cursor:pointer;color:#afc3cf;padding:7px 0}.future-more-menu,.compact-more-menu{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}.future-more-menu button,.compact-more-menu button{font-size:14px;min-height:44px}.compact-panel-tabs{display:flex;position:sticky;top:0;z-index:6;background:#102333;margin:0 -2px 10px;padding:8px 0;gap:6px}.compact-panel-tabs button{flex:1;min-height:44px;font-size:14px;border:0;border-radius:0;border-bottom:2px solid transparent;background:none}.compact-panel-tabs button[aria-pressed=true]{border-bottom-color:var(--accent);color:var(--accent)}.app.simulation-shell .mobile-controls,.app.simulation-shell .world-view-nav{display:none}.app.simulation-shell .notice-slot:not(.has-notice):not(:has(.test-cheats)){display:none}.app.simulation-shell .world>.world-progress{display:none}.app.simulation-shell .world>.opening-intro{display:none}.app.simulation-shell .world-heading{display:none}.app.simulation-shell .scene-shell .scale-badge{display:none}.app.simulation-shell .scene-hint{font-size:12px!important}.app.simulation-shell .scene-hint small{display:none}.app.simulation-shell .workbench .scene-controls{margin:14px 0}.app.simulation-shell .workbench .scene-controls .specimen-control{position:static;display:flex;max-width:100%}.app.simulation-shell .workbench .scene-controls .planet-explorer{position:static;display:flex}.app.simulation-shell .workbench .scene-controls .camera-view{position:static}.app.simulation-shell .drawer-section-title{margin:8px 0}.app.simulation-shell .drawer-section-title h2{font-size:15px}.app.simulation-shell .research-explorer.research-full{display:flex;flex-direction:column}.app.simulation-shell .research-full .atlas-inspector{order:5}.app.simulation-shell .research-full .atlas-summary,.app.simulation-shell .research-full .research-families,.app.simulation-shell .research-full .research-legend,.app.simulation-shell .research-full .synthesis-card,.app.simulation-shell .tree-chapters,.app.simulation-shell .section-top{display:none}.app.simulation-shell .research-full .research-map-viewport{max-height:460px;min-height:330px}.app.simulation-shell .research-catalog{margin-top:16px}.app.simulation-shell .world>.scene-shell{border:0}
@media(max-width:850px){
 .future-game{height:100dvh;min-height:0;overflow:hidden}.future-top{height:64px;min-height:64px}.future-main{height:calc(100dvh - 64px);display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,46fr) minmax(0,54fr);background:#081724}.future-status:not(.quiet)+.future-main{height:calc(100dvh - 116px)}.future-world{height:100%;min-height:0;padding:0}.future-world-heading{top:12px;left:16px;right:16px;margin:0}.future-world-heading small{font-size:11px}.future-world-heading h1{font-size:20px}.future-view{height:100%;min-height:0;border-radius:0}.future-drawer{position:relative;z-index:3;margin:0 6px;border:1px solid #50708466;border-radius:20px 20px 0 0;background:linear-gradient(145deg,#142b3cf2,#0d1b29fa);box-shadow:0 -8px 30px #0004;padding:0 10px max(18px,env(safe-area-inset-bottom));height:100%;min-height:0;overflow-y:auto}.future-tabs{margin:0 -3px;padding:6px 0;background:#142a3b;gap:4px}.future-tabs button{min-height:44px;padding:7px 4px}.future-world .future-scene-label{bottom:9px;font-size:12px;background:#09142480;left:12px;padding:4px 8px}.future-world .future-scene-label small{display:none}.future-filter>summary{padding:3px 0}.future-game .production-list{gap:7px}.future-game .future-view-controls{padding:8px 0;flex-wrap:wrap}.future-game .future-objectives{margin-top:12px}
 .app.simulation-shell,.app.simulation-shell.tab-world,.app.simulation-shell:not(.tab-world){padding:0;height:100dvh;max-height:100dvh;overflow:hidden}.app.simulation-shell .topbar{margin:0;padding:6px 10px;min-height:64px;height:64px;flex:0 0 64px}.app.simulation-shell .game-layout,.app.simulation-shell.tab-world .game-layout,.app.simulation-shell.drawer-expanded .game-layout,.app.simulation-shell.tab-world.drawer-expanded .game-layout{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,46fr) minmax(0,54fr);gap:0;padding:0;overflow:hidden;flex:1;min-height:0}.app.simulation-shell .game-layout>.world,.app.simulation-shell.tab-world .game-layout>.world,.app.simulation-shell:not(.tab-world) .game-layout>.world{position:relative;height:100%;min-height:0;overflow:hidden;padding:0}.app.simulation-shell .world>.scene-shell,.app.simulation-shell.tab-world .world>.scene-shell,.app.simulation-shell.drawer-expanded .world>.scene-shell{flex:1 1 0;min-height:0;height:100%;margin:0;border-radius:0;background:transparent}.app.simulation-shell .game-layout>.workbench,.app.simulation-shell.tab-world .game-layout>.workbench{height:100%;min-height:0;margin:0 6px;max-width:calc(100% - 12px);padding:0 10px 24px;border-radius:20px 20px 0 0;box-shadow:0 -8px 30px #0005;background:linear-gradient(145deg,#142b3cf2,#0d1b29fa);overflow-y:auto;scrollbar-gutter:auto}.app.simulation-shell .notice-slot{margin:0 8px}.app.simulation-shell .scene-controls{flex-wrap:wrap}.app.simulation-shell .mobile-counter span{font-size:11px;white-space:normal}.app.simulation-shell .topbar .brand{display:none}.app.simulation-shell .topright .audio-quick-toggle{display:none}.app.simulation-shell .research-map-controls{margin:6px 0}.app.simulation-shell .production-list article{padding:5px;gap:5px}.app.simulation-shell .production-select>.catalog-picture{height:48px;width:48px;flex-basis:48px}.app.simulation-shell .production-select b{font-size:14px}.app.simulation-shell .production-share{display:none}.app.simulation-shell .production-select small{margin-top:4px}.app.simulation-shell .production-buy b{font-size:14px}.app.simulation-shell .production-buy span{font-size:12px}.app.simulation-shell .production-panel>.drawer-section-title>h2{font-size:14px;margin:0}.app.simulation-shell .fertility-counts{font-size:12px;margin:6px 0}.app.simulation-shell .village-build-group>h3{margin:8px 0;font-size:12px}
}
@media(max-width:850px) and (orientation:landscape) and (max-height:500px){.future-main,.app.simulation-shell .game-layout,.app.simulation-shell.tab-world .game-layout{grid-template-columns:1fr 1fr;grid-template-rows:minmax(0,1fr)}.future-world-heading h1{font-size:16px}}

/* Separate GPU and fallback canvases share the same world and input bounds. */
.future-scene-stage > .future-canvas{position:absolute;inset:0;width:100%;height:100%}.future-canvas-base{pointer-events:none}

/* The world owns every primary control; the drawer starts directly with content. */
.app.simulation-shell,.future-game{height:100dvh;min-height:0;max-height:100dvh;overflow:hidden;padding:0}
.app.simulation-shell .game-layout,.future-main{height:100%;min-height:0;margin:0;gap:0}
.app.simulation-shell .game-layout>.world,.future-world{position:relative!important;overflow:hidden;padding:0;min-height:0}
.app.simulation-shell .world>.scene-shell{height:100%;min-height:0;flex:1 1 0;margin:0;border:0;border-radius:0}
.app.simulation-shell .world>.world-heading,.app.simulation-shell .world>.world-view-nav,.app.simulation-shell .world>.journey-progress,.app.simulation-shell .world>.bar,.app.simulation-shell .world>.opening-intro,.app.simulation-shell .world>.scene-toolbar,.app.simulation-shell .world>.world-readings,.app.simulation-shell .world>.streak,.app.simulation-shell .world>.resource,.app.simulation-shell .world>.rates,.app.simulation-shell .world>.elements,.app.simulation-shell .world>.guest-signin,.future-world-heading{display:none!important}
.world-hud{position:absolute;z-index:8;top:max(10px,env(safe-area-inset-top));left:12px;right:12px;display:flex;align-items:flex-start;justify-content:space-between;gap:8px;pointer-events:none}
.world-hud-resource{padding:6px 9px;border-radius:12px;background:#07131dba;backdrop-filter:blur(8px);max-width:calc(100% - 98px);min-width:0}
.world-hud-resource>b{display:block;color:var(--accent);font-size:23px;font-weight:600;line-height:1.1;white-space:nowrap}
.world-hud-resource>b>span{font-size:14px;font-weight:400;color:#c5d5df}
.world-hud-resource>small{display:block;font-size:12px;color:#b6cbd8;margin-top:4px;white-space:nowrap;line-height:1.25}
.world-hud-actions{display:flex;gap:6px;pointer-events:auto}
.world-hud-actions button,.world-panel-dock button{display:grid;place-items:center;width:44px;height:44px;min-height:44px;padding:0;border:1px solid #58768870;border-radius:12px;background:#102534d9;color:#d7e6ee;backdrop-filter:blur(8px)}
.world-hud-actions svg,.world-panel-dock svg{width:21px;height:21px;stroke-width:1.7}
.world-hud-actions button.boost-active{color:#ffd695;border-color:#d5aa6d}
.world-panel-dock{position:absolute;z-index:8;right:12px;bottom:12px;display:flex;gap:6px;pointer-events:auto}
.world-panel-dock button{position:relative}
.world-panel-dock button[aria-pressed=true]{color:var(--accent);border-color:var(--accent);background:#223847ee}
.world-panel-dock .panel-ready{color:#b2edc9;border-color:#87caa3}
.world-panel-dock i{position:absolute;right:5px;top:5px;width:6px;height:6px;border-radius:50%;background:#adeac4;box-shadow:0 0 7px #9decc599}
.world-toast{position:absolute;z-index:9;left:12px;top:78px;max-width:calc(100% - 24px);padding:7px 10px;border-radius:9px;background:#102c3be8;border:1px solid #496e7f;font-size:12px;line-height:1.4;text-align:left}
.world-error{position:absolute;inset:78px 12px auto;z-index:10;background:#281e22ed;border:1px solid #ab7070;border-radius:12px;padding:12px;font-size:14px}
.world-error button{display:block;margin-top:8px}
.app.simulation-shell .scene-shell .scene-hint{left:12px;right:168px;bottom:14px;text-align:left;font-size:12px!important;line-height:1.3;max-width:210px}
.app.simulation-shell .scene-shell .orbit-legend{top:76px;left:12px;right:auto;max-width:135px;gap:4px}
.app.simulation-shell .scene-shell .orbit-legend>span{font-size:11px;padding:3px 6px}
.app.simulation-shell .scene-event-active,.app.simulation-shell .scene-test-active{top:auto;bottom:65px;left:12px;right:auto;font-size:11px;max-width:calc(100% - 24px)}
.future-world .future-scene-label{left:12px;bottom:14px;max-width:calc(100% - 180px);padding:0;background:none;font-size:12px}
.future-world .future-inspect-back{top:80px;font-size:12px;min-height:34px;padding:6px 9px}
.app.simulation-shell .workbench,.future-drawer{padding:8px 10px max(16px,env(safe-area-inset-bottom));border-radius:18px 18px 0 0}
.world-more-overview h2{font-size:18px;margin:6px 0}.world-more-overview p{font-size:14px;color:#b6cbd8;margin:8px 0;line-height:1.4}
.quantity-setting{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:14px;margin:14px 0}.quantity-setting select{min-height:42px;max-width:58%;font-size:14px;background:#102333;color:#dfebf2;border:1px solid #425f72;border-radius:8px;padding:6px}
.app.simulation-shell .production-list,.future-game .production-list{gap:6px}
.app.simulation-shell .production-list article,.future-game .production-list article{grid-template-columns:minmax(0,1fr) 104px;gap:6px;padding:5px;min-height:64px;border-radius:12px}
.app.simulation-shell .production-select,.future-game .production-select{padding:2px 0;gap:8px;min-height:52px}
.app.simulation-shell .production-select>.catalog-picture,.future-game .production-select>.catalog-picture{width:44px;height:44px;min-width:44px;flex:0 0 44px;border-radius:10px}
.app.simulation-shell .production-select b,.future-game .production-select b{font-size:14px;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;overflow-wrap:normal}
.app.simulation-shell .production-select small,.future-game .production-select small{font-size:12px;line-height:1.3;margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;overflow-wrap:normal}
.app.simulation-shell .production-share{display:none}
.app.simulation-shell .production-buy,.future-game .production-buy{padding:6px;gap:4px;min-height:52px;border-radius:8px;justify-content:center}
.app.simulation-shell .production-buy b,.future-game .production-buy b{font-size:14px;line-height:1.3;white-space:nowrap}
.app.simulation-shell .production-buy span,.future-game .production-buy span{font-size:12px;line-height:1.3;white-space:nowrap;overflow-wrap:normal}
.app.simulation-shell .production-inspector,.future-game .production-inspector{margin:10px 0;padding:10px;font-size:14px}.production-inspector summary{cursor:pointer}
.app.simulation-shell .village-production .drawer-section-title,.app.simulation-shell .village-production .village-build-group>h3{display:none}
.app.simulation-shell .village-build-group{margin:0 0 6px}.app.simulation-shell .fertility-counts{font-size:12px;margin:0 0 7px}
@media(max-width:850px){
 .app.simulation-shell .game-layout,.app.simulation-shell.tab-world .game-layout,.app.simulation-shell.drawer-expanded .game-layout,.app.simulation-shell.tab-world.drawer-expanded .game-layout,.future-main{height:100dvh;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,52fr) minmax(0,48fr);flex:1;overflow:hidden}
 .app.simulation-shell .game-layout>.world,.app.simulation-shell.tab-world .game-layout>.world{height:100%;padding:0}
 .app.simulation-shell .game-layout>.workbench,.app.simulation-shell.tab-world .game-layout>.workbench,.future-drawer{height:100%;min-height:0;margin:0 5px;max-width:calc(100% - 10px);padding:8px 9px max(16px,env(safe-area-inset-bottom));overflow-y:auto}
 .future-view{height:100%;border-radius:0}.future-main{background:#081724}
}
@media(max-width:360px){.app.simulation-shell .production-list article,.future-game .production-list article{grid-template-columns:minmax(0,1fr) 96px;gap:4px}.world-hud-resource>b{font-size:21px}}
@media(max-width:850px) and (orientation:landscape) and (max-height:500px){.app.simulation-shell .game-layout,.app.simulation-shell.tab-world .game-layout,.app.simulation-shell.drawer-expanded .game-layout,.app.simulation-shell.tab-world.drawer-expanded .game-layout,.future-main{grid-template-columns:1fr 1fr;grid-template-rows:minmax(0,1fr)}}

.world-readings-details{margin:10px 0;font-size:14px}.world-readings-details summary{cursor:pointer;padding:8px 0}.world-readings-details p{font-size:14px}.world-readings-details .elements{margin-top:10px}

/* Research uses the same density as the build list; prose opens on demand. */
.compact-research-tools{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:0 0 5px;min-height:38px}
.compact-research-tools>small{font-size:12px;color:#b8cdd8;min-width:0}
.compact-research-tools>div{display:flex;gap:4px}
.compact-research-tools button{display:grid;place-items:center;width:38px;min-height:38px;padding:0;border-radius:8px}
.compact-research-tools svg{width:18px;height:18px}
.compact-research-tools button[aria-pressed=true]{color:var(--accent);border-color:var(--accent)}
.compact-research-list{display:grid;gap:5px}
.compact-research-row{display:grid;grid-template-columns:minmax(0,1fr) 86px;gap:4px;padding:4px;border:1px solid #3d5b6d;border-radius:10px;background:#142b3a;min-height:54px}
.compact-research-row.ready{border-color:var(--accent)}
.compact-research-row.done{border-color:#4b7866}
.compact-research-select{display:flex;align-items:center;gap:7px;padding:2px 0;min-height:44px;border:0;background:transparent!important;text-align:left;min-width:0}
.compact-research-select>.catalog-picture{width:38px;height:38px;min-width:38px;flex:0 0 38px;border-radius:8px}
.compact-research-select>span:not(.catalog-picture){min-width:0;flex:1}
.compact-research-select b,.compact-research-select small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.3}
.compact-research-select b{font-size:14px}.compact-research-select small{font-size:12px;color:#b9cdd8;margin-top:3px}
.compact-research-select>svg{width:12px;height:12px;flex:none;color:#adc6d4}
.compact-research-select[aria-expanded=true]>svg{transform:rotate(180deg)}
.compact-research-buy{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;padding:4px;min-height:44px;border-radius:7px;background:#1b3546}
.compact-research-buy b{font-size:14px;line-height:1.3}.compact-research-buy small{font-size:12px;line-height:1.3;color:inherit;font-weight:600}
.compact-research-row.ready .compact-research-buy{background:var(--accent);color:#0d2430;border-color:var(--accent)}
.compact-research-row.ready .compact-research-buy b,.compact-research-row.ready .compact-research-buy small{color:#0d2430}
.app.simulation-shell .compact-research-buy:disabled,.future-game .compact-research-buy:disabled{opacity:1;color:#b8cdd8}
/* Keep secondary text legible on other solid accent action buttons too. */
.primary-action small,.research-action small,.quick-impact small,.world-next button small,.goal button small,.frontier-options article>button small,.future-tap small{color:inherit}
.compact-research-info{grid-column:1/-1;padding:5px 7px 7px;border-top:1px solid #466476;min-width:0}
.compact-research-info p,.future-game .compact-research-info p{font-size:14px;line-height:1.4;margin:5px 0;color:#c0d3de}
.compact-research-info .research-missing{color:#edc491}
.compact-research-info details{font-size:14px;padding:5px 0}.compact-research-info summary{cursor:pointer}
.compact-prerequisites{display:flex;gap:5px;flex-wrap:wrap;margin-top:6px}.compact-prerequisites button{font-size:12px;min-height:38px;padding:5px 8px}
.compact-research-tree{margin-top:6px}.compact-research-tree .atlas-summary,.compact-research-tree .research-families,.compact-research-tree .research-legend{display:none}
.compact-research-tree .research-map-controls{margin:3px 0;gap:4px}.compact-research-tree .research-map-controls button{font-size:12px;min-height:36px;padding:4px 9px}
.compact-research-tree .research-map-viewport{min-height:0;max-height:300px;border-radius:10px}
.compact-research-tree .future-research-map{height:640px;margin:0;border-radius:10px}
.future-game .compact-research-tree .future-research-node{min-height:76px;gap:3px;padding:4px;font-size:12px}
.compact-research-tree .future-research-node .catalog-picture{width:30px;height:30px;flex-basis:30px;border-radius:6px}
.world-hud-resource{padding:5px 7px}.world-hud-resource>b{font-size:21px}.world-hud-resource>small{margin-top:3px}
.world-hud-actions button,.world-panel-dock button{width:42px;height:42px;min-height:42px;border-radius:10px}
.app.simulation-shell .production-list article,.future-game .production-list article{min-height:60px;padding:4px}
.app.simulation-shell .production-select,.future-game .production-select,.app.simulation-shell .production-buy,.future-game .production-buy{min-height:50px}
.app.simulation-shell .production-inspector,.future-game .production-inspector{padding:7px 9px;margin:7px 0}
.app.simulation-shell .production-inspector[open]>summary,.future-game .production-inspector[open]>summary{margin-bottom:5px}
.app.simulation-shell .production-inspector p,.future-game .production-inspector p{margin:6px 0;font-size:14px;line-height:1.4}
.future-more-menu,.compact-more-menu{gap:5px;margin:7px 0}.future-more-menu button,.compact-more-menu button{padding:7px 9px;min-height:42px}
.app.simulation-shell .modal,.future-game .future-dialog{padding:14px}.app.simulation-shell .modal h2,.future-game .future-dialog h2{font-size:20px;margin:6px 0}.app.simulation-shell .modal p,.future-game .future-dialog p{font-size:14px;line-height:1.4;margin:7px 0}

/* Chapter funding and its action stay inside the compact resource display. */
.world-chapter-meter{display:flex;align-items:center;gap:6px;margin-top:4px;pointer-events:auto}
.world-chapter-meter>span{flex:1;min-width:55px}.world-chapter-meter small{display:block;color:#c5d5df;font-size:10px;line-height:1.2;white-space:nowrap}
.world-chapter-meter progress{display:block;width:100%;height:4px;margin-top:3px;accent-color:var(--accent);border:0}
.app.simulation-shell .world-chapter-meter button,.future-game .world-chapter-meter button{display:grid;place-items:center;min-height:32px;min-width:32px;padding:3px;border-radius:6px;background:#172d3b;color:#d7e6ee;font-size:11px;line-height:1.15;border:1px solid #58768870;max-width:95px}
.world-chapter-meter button svg{width:16px;height:16px}
.app.simulation-shell .world-chapter-meter .chapter-ready,.future-game .world-chapter-meter .chapter-ready{background:var(--accent);border-color:var(--accent);color:#0d2430;font-weight:700}
.world-hud-resource{pointer-events:auto}.world-toast{top:106px}.app.simulation-shell .scene-shell .orbit-legend{top:112px}

.world-hud-actions .world-fast-forward{grid-template-rows:18px 14px;align-content:center;gap:0}
.world-hud-actions .world-fast-forward svg{width:17px;height:17px}
.world-hud-actions .world-fast-forward small{font-size:12px;line-height:14px;font-weight:700;white-space:nowrap}

/* Tap feedback is drawn above both WebGL and canvas worlds, never over controls. */
.future-scene-stage{position:relative;width:100%;height:100%}
.world-tap-effects{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:4;--tap-color:var(--accent,#ffd3a1)}
.world-tap-effects.living{--tap-color:#a7f1d1}.world-tap-effects.digital{--tap-color:#b6d9ff}
.world-tap-burst{position:absolute;width:0;height:0;pointer-events:none}
.world-tap-burst i{position:absolute;display:block;pointer-events:none}
.tap-ring{width:18px;height:18px;left:-9px;top:-9px;border:2px solid var(--tap-color);border-radius:50%;box-shadow:0 0 16px var(--tap-color);animation:tap-wave .7s ease-out forwards}
.tap-core{width:24px;height:24px;left:-12px;top:-12px;background:radial-gradient(circle,#fff,var(--tap-color) 35%,transparent 70%);animation:tap-core .35s ease-out forwards}
.tap-spark{width:5px;height:5px;left:-2px;top:-2px;border-radius:50%;background:var(--tap-color);box-shadow:0 0 5px var(--tap-color);animation:tap-spark .65s ease-out forwards}
.tap-reward{position:absolute;top:-28px;transform:translateX(-50%);white-space:nowrap;max-width:260px;overflow:hidden;text-overflow:ellipsis;font-size:16px;line-height:1.3;color:#fff;text-shadow:0 2px 3px #000,0 0 8px #000;font-weight:700;animation:tap-reward .95s ease-out forwards}
@keyframes tap-wave{to{transform:scale(5);opacity:0}}
@keyframes tap-core{to{transform:scale(2.5);opacity:0}}
@keyframes tap-spark{to{transform:rotate(var(--angle)) translateX(54px);opacity:0}}
@keyframes tap-reward{0%{opacity:0;transform:translate(-50%,8px)}15%{opacity:1}75%{opacity:1}100%{opacity:0;transform:translate(-50%,-35px)}}
@media(prefers-reduced-motion:reduce){.tap-spark,.tap-ring{display:none}.tap-core{animation:none;opacity:.5}.tap-reward{animation:none}.world-tap-burst{animation:tap-reduced .55s linear forwards}@keyframes tap-reduced{to{opacity:0}}}

/* One compact quantity control; both row sides remain at most two lines. */
.purchase-quantity{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 5px;min-height:32px}
.purchase-quantity>small{font-size:12px;color:#b8cdd8}
.app.simulation-shell .purchase-quantity select,.future-game .purchase-quantity select{height:32px;min-height:32px;max-width:155px;font-size:12px;padding:3px 8px;background:#102333;color:#dfebf2;border:1px solid #425f72;border-radius:7px}
.app.simulation-shell .production-buy b,.future-game .production-buy b{display:flex;align-items:center;justify-content:space-between;gap:5px;width:100%;font-size:13px}
.production-buy b em{font-size:11px;font-style:normal;font-weight:400;color:inherit}
.app.simulation-shell .production-buy.ready,.future-game .production-buy.ready{background:#244c40;color:#b2edd1;border-color:#5b997d}
.app.simulation-shell .production-buy.ready b,.app.simulation-shell .production-buy.ready span,.future-game .production-buy.ready b,.future-game .production-buy.ready span{color:#d3f8e4}
.compact-research-select small{color:#c5dcd1}

/* Three compact controls share the HUD without covering resource values. */
.world-hud-resource{max-width:calc(100% - 146px)}
.world-hud-resource>small{white-space:normal;overflow-wrap:anywhere}
.world-hud-actions{flex-shrink:0}
.world-hud-actions button:disabled{opacity:.45}

/* Blocked purchases explain themselves on touch; only the selected row expands. */
.future-game .production-buy.blocked b{color:#edc491;justify-content:center;font-size:12px}
.future-build-help{grid-column:1/-1;min-width:0;border-top:1px solid #466476;padding:3px 5px}
.future-build-help>div{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px 0;font-size:12px}
.future-build-help>div>span{min-width:0;overflow-wrap:anywhere;color:#edc491}
.future-build-help small{display:block;color:#b8cdd8;font-size:11px}
.future-game .future-build-help button{flex:0 0 auto;max-width:52%;font-size:12px;min-height:44px;padding:5px 8px;white-space:normal}
.future-game .future-build-help p{font-size:12px;line-height:1.4;margin:5px 0;color:#b8cdd8}

/* The current world is always named, including on a narrow phone. */
.world-hud{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 8px}
.world-chapter-name{grid-column:1/-1;display:flex;align-items:baseline;gap:7px;color:#edf4f9;text-shadow:0 1px 6px #000,0 1px 12px #000;font-size:14px;line-height:1.25;min-width:0}
.world-chapter-name span{color:var(--accent);font-size:12px;font-variant-numeric:tabular-nums}
.world-chapter-name strong{font-weight:600;overflow-wrap:anywhere}
.world-hud-resource{max-width:100%;width:max-content;min-width:0}
.world-toast{top:130px}.app.simulation-shell .scene-shell .orbit-legend{top:137px}
.future-world .future-inspect-back{top:137px}

/* Shared row contract for every chapter, independent of legacy/future button defaults.
   Only deliberately opened requirements use a separate, full-width detail row. */
.app.simulation-shell article.catalog-row,.future-game article.catalog-row{
 display:grid;grid-template-columns:minmax(0,1fr) 96px;grid-auto-rows:auto;
 align-items:start;align-content:start;gap:0 6px;padding:4px;
 min-height:58px;min-width:0;margin:0;border-radius:10px;
}
.app.simulation-shell article.catalog-row>button,.future-game article.catalog-row>button{
 box-sizing:border-box;min-width:0;height:48px;min-height:48px;max-height:48px;
 margin:0;padding:3px 4px;overflow:hidden;line-height:1.25;
}
.app.simulation-shell article.catalog-row>.production-select,.future-game article.catalog-row>.production-select,
.app.simulation-shell article.catalog-row>.compact-research-select,.future-game article.catalog-row>.compact-research-select{
 display:flex;flex-flow:row nowrap;align-items:center;gap:7px;text-align:left;padding-left:0;
}
.app.simulation-shell article.catalog-row>button>.catalog-picture,.future-game article.catalog-row>button>.catalog-picture{
 flex:0 0 40px;width:40px;height:40px;min-width:40px;max-width:40px;border-radius:8px;
}
.app.simulation-shell article.catalog-row>button>span:not(.catalog-picture),.future-game article.catalog-row>button>span:not(.catalog-picture){min-width:0;max-width:100%}
.app.simulation-shell article.catalog-row .production-select>span:last-child,.future-game article.catalog-row .production-select>span:last-child{flex:1}
.app.simulation-shell article.catalog-row b,.future-game article.catalog-row b,
.app.simulation-shell article.catalog-row small,.future-game article.catalog-row small{
 display:block;max-width:100%;margin:0;line-height:18px;font-size:13px;
 white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal;word-break:normal;
}
.app.simulation-shell article.catalog-row small,.future-game article.catalog-row small{font-size:11px;line-height:16px;margin-top:2px}
.app.simulation-shell article.catalog-row .production-buy,.future-game article.catalog-row .production-buy,
.app.simulation-shell article.catalog-row .compact-research-buy,.future-game article.catalog-row .compact-research-buy{
 display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:2px;text-align:center;border-radius:7px;
}
.app.simulation-shell article.catalog-row .production-buy>b,.future-game article.catalog-row .production-buy>b{display:flex;justify-content:space-between;align-items:center;gap:3px;font-size:12px}
.app.simulation-shell article.catalog-row .production-buy>span,.future-game article.catalog-row .production-buy>span{display:block;font-size:11px;line-height:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}
.app.simulation-shell article.catalog-row .production-buy.blocked>b,.future-game article.catalog-row .production-buy.blocked>b{display:block;white-space:nowrap;text-overflow:ellipsis}
.app.simulation-shell .production-list,.future-game .production-list,.compact-research-list{grid-template-columns:minmax(0,1fr);grid-auto-rows:max-content;align-content:start;gap:5px}
/* Detail prose stays readable and is not subject to the two-line row contract. */
.app.simulation-shell article.catalog-row .compact-research-info small,.future-game article.catalog-row .compact-research-info small,
.app.simulation-shell article.catalog-row .future-build-help small,.future-game article.catalog-row .future-build-help small{white-space:normal;overflow:visible}
@media(min-width:851px){
 .app.simulation-shell .game-layout,.future-game .future-main{height:100dvh;grid-template-rows:minmax(0,1fr);align-items:stretch}
 .app.simulation-shell .game-layout>.world,.future-game .future-world{height:100%;min-height:0}
 .app.simulation-shell .game-layout>.workbench,.future-game .future-drawer{height:100%;min-height:0;overflow-y:auto}
}

/* One small Settings panel is shared by all chapters. */
.app.simulation-shell .modal.game-settings,.future-game .modal.game-settings{
 width:min(420px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:12px;
 overflow:auto;overscroll-behavior:contain;border-radius:14px;background:#102230;
}
.game-settings .settings-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 8px}
.app.simulation-shell .game-settings .settings-heading h2,.future-game .game-settings .settings-heading h2{font-size:18px;line-height:1.2;margin:0}
.app.simulation-shell .game-settings .settings-heading button,.future-game .game-settings .settings-heading button{width:40px;min-height:40px;padding:0;font-size:23px}
.game-settings .settings-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.app.simulation-shell .game-settings .settings-actions button,.future-game .game-settings .settings-actions button{min-height:44px;margin:0;padding:7px;font-size:14px;font-weight:600}
.app.simulation-shell .game-settings button.settings-reset,.future-game .game-settings button.settings-reset{background:#572d35;color:#ffe6df;border:1px solid #b87e7c}
.game-settings .settings-save-status{display:block;font-size:11px;line-height:1.3;color:#b7cbd6;padding:6px 1px 8px}
.game-settings .settings-group{margin:0;border-top:1px solid #36515f;font-size:13px}
.game-settings .settings-group>summary{cursor:pointer;min-height:44px;padding:12px 2px;line-height:20px;font-size:14px}
.game-settings .settings-group>summary>span{float:right;font-size:11px;color:#a7cbbd}
.app.simulation-shell .game-settings p,.future-game .game-settings p{font-size:13px;line-height:1.4;margin:7px 0}
.app.simulation-shell .game-settings .audio-settings,.future-game .game-settings .audio-settings{margin:0 0 8px;padding:8px;border-radius:8px}
.game-settings .audio-settings .audio-setting-row{min-height:38px;gap:8px}
.game-settings .audio-settings h3,.game-settings .audio-setting-row label{font-size:13px;margin:0}
.game-settings .audio-settings .audio-volume{display:grid;grid-template-columns:112px minmax(0,1fr);align-items:center;gap:8px;margin:2px 0}
.game-settings .audio-volume>div:first-child{display:block;font-size:12px;line-height:16px;margin:0}
.game-settings .audio-volume output{display:block;font-size:10px}
.game-settings .audio-settings [data-slot=switch]{min-height:26px;height:26px;padding:0;flex-shrink:0}
.game-settings .audio-settings .audio-footer{margin:6px 0;gap:7px;align-items:center}
.game-settings .audio-footer>span,.game-settings .audio-settings>small{font-size:11px;line-height:1.3}
.app.simulation-shell .game-settings .audio-footer button,.future-game .game-settings .audio-footer button{min-height:38px;padding:4px 8px;font-size:12px}
.app.simulation-shell .game-settings .test-lab-panel,.future-game .game-settings .test-lab-panel{margin:0 0 8px;padding:0;border:0}
.game-settings .test-lab-panel label{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:7px 0;font-size:12px}
.app.simulation-shell .game-settings .test-lab-panel select,.future-game .game-settings .test-lab-panel select{min-width:0;width:100%;min-height:38px;padding:5px;font-size:12px}
.app.simulation-shell .game-settings .test-lab-panel button,.future-game .game-settings .test-lab-panel button{min-height:40px;font-size:12px;padding:6px 8px;margin:3px 0}
.game-settings .test-preview-controls{gap:5px}.game-settings .test-lab-panel input[type=checkbox]{min-height:16px;width:16px;height:16px;flex-shrink:0}

/* Keep goal counts readable without adding a third catalog line. */
.world-chapter-meter button strong{display:block;font-size:11px}
.chapter-goals h3{font-size:15px;margin:8px 0 4px}.chapter-goals>p{color:#b9cdd7}
.chapter-goals .transition-checklist{padding:0;margin:8px 0;list-style:none}
.chapter-goals .transition-checklist li{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:5px 0;font-size:13px}
.chapter-goals .transition-checklist strong{white-space:nowrap;font-variant-numeric:tabular-nums}
.chapter-goals details>summary{cursor:pointer;color:#a6c7bc;font-size:13px;padding:7px 0}
.compact-research-list{overflow-anchor:none}

.world-chapter-meter small{white-space:normal;overflow-wrap:anywhere}.world-chapter-meter>button{flex-shrink:0}

.build-row-help{grid-column:1/-1;border-top:1px solid #456276;padding:6px;min-width:0}.build-row-help p{font-size:13px;line-height:1.45;margin:5px 0;color:#bfd2dd}.build-row-help button{min-height:40px;padding:5px 9px;margin:4px 5px 0 0;font-size:13px}.graphics-status{font-size:13px;line-height:1.45}.graphics-status button{min-height:40px;padding:6px 10px}.graphics-status strong{color:#a5e4c2}.graphics-status[data-reduced="true"] strong{color:#ffd294}

.world-chapter-name .graphics-indicator{pointer-events:auto;flex-shrink:0;min-height:28px;padding:3px 6px;border:1px solid #bd9361;border-radius:6px;background:#241e19;color:#ffe0ad;font-size:12px;line-height:1.2;margin-left:auto}

/* Optional depth stays inside the lower panel; default catalogs remain two lines. */
.chapter-workshop{border:1px solid #355b6d;border-radius:10px;margin:6px 0 12px;padding:0 10px;background:#0c2330}
.chapter-workshop>summary{cursor:pointer;min-height:44px;padding:12px 0;font-size:14px;color:#c1ede1}
.chapter-workshop p{font-size:14px;line-height:1.5;margin:8px 0}.chapter-workshop small{font-size:12px;line-height:1.4;color:#adc6d3}
.workshop-options>div{display:flex;align-items:center;gap:10px;padding:9px 0;border-top:1px solid #294653}.workshop-options span{flex:1;min-width:0}.workshop-options b,.workshop-options small{display:block;overflow-wrap:anywhere}.workshop-options b{font-size:14px}.workshop-options button{min-height:44px;flex-shrink:0;padding:6px 10px;font-size:13px}.workshop-options button[aria-pressed=true]{background:#b8e9d9;color:#082b2a}
.operation-flows{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:10px 0}.operation-flows>div{padding:6px;background:#142f3c;border-radius:6px}.operation-flows span,.operation-flows b,.operation-flows small{display:block;font-size:12px;overflow-wrap:anywhere}.operation-flows b{font-size:15px;color:#d3eee4}
.catalog-row,.production-select,.production-select>span{min-width:0}.production-buy span,.production-buy b{font-variant-numeric:tabular-nums}
@media(max-width:360px){.world-hud-actions{gap:3px}.world-hud-actions button{width:40px;min-width:40px}.operation-flows{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.compact-research-row,.catalog-row,.world-panel-dock button{scroll-behavior:auto;transition:none}}
.drawer-notice{display:flex;align-items:center;gap:8px;padding:4px 8px;margin:0 0 6px;background:#12323a;border-left:2px solid #9ed8c6;border-radius:5px;color:#d8eee7;font-size:13px;line-height:1.4}.drawer-notice>span{flex:1;min-width:0;max-height:74px;overflow:auto;overflow-wrap:anywhere}.drawer-notice>button{flex-shrink:0;min-width:40px;min-height:40px;padding:4px;font-size:20px}

@media(max-width:360px){.world-hud-resource{padding:5px 6px}.world-hud-resource>b{font-size:20px;white-space:normal}.world-hud-resource>b>span{font-size:12px}.world-hud-resource>small{white-space:normal}.world-chapter-meter{gap:4px}.world-chapter-meter>button{max-width:62px}}

/* Optional discovery path and finder stay inside the research drawer. */
.research-finder{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.4rem;margin:.25rem 0 .5rem}
.research-finder input,.research-finder select{width:100%;min-width:0;border:1px solid #47606d;background:#13232b;color:#e1ede8;border-radius:.45rem;padding:.4rem;font:inherit;font-size:16px}
.research-route{display:grid;gap:.55rem}.research-route:empty{display:none}
.research-route>div{border-inline-start:2px solid var(--accent,#80cec4);padding:.3rem .55rem;background:#13252b;border-radius:.15rem .45rem .45rem .15rem}
.research-route>div>strong,.research-route>div>small{display:block;line-height:1.4}
.research-route>div>small{color:#bacbc9}.research-route ol{list-style:decimal;margin:.25rem 0;padding-inline-start:1.55rem}
.research-route li{padding:.08rem 0}.research-route li::marker{color:#bad1c8}
.research-route li button{width:100%;display:flex;justify-content:space-between;align-items:center;gap:.5rem;text-align:start}
.research-route button{font:inherit;font-size:.83rem;border:1px solid #42615f;color:#d9eeea;background:#1b3034;border-radius:.4rem;padding:.35rem .45rem;min-height:32px}
.research-route button small{flex:none}.research-route-links{display:flex;gap:.3rem;flex-wrap:wrap;margin-top:.25rem}.research-empty{padding:.6rem}
.build-ledger{border-inline-start:2px solid var(--accent,#80cec4);border-radius:.15rem .5rem .5rem .15rem;padding:.45rem .65rem;background:#13252b;margin:.35rem 0}
.build-ledger>strong{display:flex;justify-content:space-between;gap:.5rem}.build-ledger progress{display:block;width:100%;height:4px;margin:.3rem 0 .5rem;accent-color:var(--accent,#80cec4)}
.build-ledger dl{display:flex;gap:.3rem 1rem;flex-wrap:wrap;margin:0}.build-ledger dl>div{display:block}.build-ledger dt,.build-ledger>small{color:#b6c9c5;font-size:.78rem}.build-ledger dd{margin:0;font-size:.85rem;font-weight:650;color:#e4f2ed}.build-ledger>small{display:block;margin-top:.45rem}
.gpu-curtain{display:none;pointer-events:none}
canvas[data-gpu-state=error]+.gpu-curtain{position:absolute;inset:0;display:grid;place-items:center;background:linear-gradient(#06111c9e,#0a1825d9),var(--chapter-poster) center/cover,#102334;color:#f8fbff;text-shadow:0 2px 5px #000;pointer-events:none}
.gpu-curtain>span{display:grid;gap:4px;text-align:center;padding:8px 12px;background:#081520e8;border-radius:8px}.gpu-curtain small{font-size:12px;color:#dce8f2}

.chapter-atlas{display:grid;gap:5px;color:#e4edf1;text-align:left}
.chapter-atlas .atlas-location{display:flex;align-items:center;gap:10px;padding:12px 14px;margin:6px 0;background:linear-gradient(115deg,#1a3641,#13232e);border:1px solid #3b5965;border-radius:12px}
.atlas-location>svg{color:#a7dfd3;width:25px;height:25px}.atlas-location>div{display:grid;gap:2px;flex:1;min-width:0}.atlas-location small,.atlas-caption,.atlas-summary small{color:#a5bdc9;letter-spacing:.055em;font:600 11px/1.45 system-ui}.atlas-location strong{font-size:18px;color:#eff7f6}
.chapter-atlas .atlas-location button,.chapter-atlas .atlas-actions button,.chapter-atlas .atlas-empty button{min-height:40px;background:#152c38;color:#def0f0;border:1px solid #466575;border-radius:8px;padding:6px 12px}
.atlas-tools{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:6px}
.atlas-query{display:flex;align-items:center;border:1px solid #435967;border-radius:8px;padding:0 9px;background:#0e1b25;gap:5px}.atlas-query>svg{flex:none;color:#b2c9d2}
.chapter-atlas .atlas-tools input,.chapter-atlas .atlas-tools select{box-sizing:border-box;min-width:0;width:100%;font:inherit;font-size:13px;line-height:1.3;color:#eef5f6;min-height:44px;background:#0e1b25}
.chapter-atlas .atlas-tools input{padding:2px;border:0}.atlas-tools input::placeholder{color:#a8bfcc}.atlas-tools select{border:1px solid #435967;border-radius:8px;padding:4px}
.atlas-caption{margin:4px 2px}.chapter-atlas .atlas-card{display:block;margin:0;padding:0;border:1px solid #2a404d;border-radius:9px;background:#101e28;overflow:hidden}
.chapter-atlas .atlas-card.expanded{border-color:var(--world-tint)}.chapter-atlas .atlas-summary{border:0;border-radius:0;display:flex;align-items:center;gap:10px;width:100%;padding:6px 9px;text-align:left;background:transparent;color:#e4ecee;min-height:54px}
.atlas-summary>img,.atlas-summary>.future-picture{width:44px;height:44px;border-radius:8px;flex:none;object-fit:cover}.atlas-summary>span:not(.future-picture){display:grid;flex:1;min-width:0}.atlas-summary small{color:var(--world-tint)}.atlas-summary strong{font-size:15px;line-height:1.3}.atlas-summary em{color:#c0ced4;font-size:12px;font-style:normal}.atlas-summary[aria-expanded=true]>svg{transform:rotate(180deg)}
.atlas-detail{padding:0 12px 10px 64px}.chapter-atlas .atlas-detail p,.atlas-empty p{font-size:13px;line-height:1.5;color:#cfdee3;margin:4px 0 8px}.atlas-stat,.atlas-actions{display:flex;align-items:center;flex-wrap:wrap;gap:6px}.atlas-stat{font-size:12px;color:#b1c9ca;margin:4px 0 8px}.atlas-parallel{margin-top:14px;border-top:1px solid #2a404d}.atlas-parallel>summary{padding:12px 0;cursor:pointer}.chapter-atlas button:focus-visible,.atlas-query:focus-within{outline:2px solid #b9ebe4;outline-offset:-2px}
@media(max-width:430px){.atlas-detail{padding-left:12px}.chapter-atlas .atlas-tools select{font-size:12px}}
/* Keep the existing scene and interaction surface mounted when its drawer is tucked away. */
.app.simulation-shell.world-view-only .game-layout,.future-game.world-view-only .future-main{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important;width:100%;max-width:none;height:100dvh;padding:0}
.app.simulation-shell.world-view-only .game-layout>.world,.future-game.world-view-only .future-world,.app.simulation-shell.world-view-only .world>.scene-shell,.future-game.world-view-only .future-view{width:100%;height:100%;max-width:none;max-height:none;margin:0}
.app.simulation-shell.world-view-only .workbench,.future-game.world-view-only .future-drawer,.world-view-only .world-hud,.world-view-only .world-panel-dock,.world-view-only .scene-hint,.world-view-only .orbit-legend,.world-view-only .scale-badge,.world-view-only .future-scene-label{display:none!important}
.world-view-return{position:absolute;z-index:9;bottom:max(12px,env(safe-area-inset-bottom));left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));display:flex;align-items:center;justify-content:space-between;pointer-events:none;gap:8px}
.world-view-return>span{font-size:13px;color:white;text-shadow:0 1px 5px #000,0 1px 9px #000}.world-view-return>button,.app .world-view-enter,.future-game .world-view-enter{display:inline-flex;align-items:center;justify-content:center;gap:7px}.world-view-return>button{pointer-events:auto;background:#12232dec;border:1px solid #6d8a95;border-radius:10px;color:#f1f7f8;min-height:44px;padding:6px 12px}
.chapter-postcard{margin:10px 0}.chapter-postcard>.postcard-toggle{display:flex;align-items:center;text-align:left;gap:10px;width:100%;border:1px solid #435d68;border-radius:10px;padding:6px 9px;background:#132732;color:#e3eeee}.postcard-toggle img,.postcard-toggle>.catalog-picture{width:46px;height:46px;object-fit:cover;border-radius:6px;flex:none}.postcard-toggle>span:not(.catalog-picture){flex:1;min-width:0;display:grid;gap:2px}.postcard-toggle small{font-size:10px;letter-spacing:.12em;color:#a6c5c7}.postcard-toggle strong{font-size:14px}.chapter-postcard .transition-preview{margin-top:6px}.chapter-postcard .transition-preview>span{pointer-events:none}

/* The mark stays anchored to contact. The single receipt is always inside
   the scene even on an edge hit; rapid taps replace it rather than pile up. */
.tap-imprint{contain:strict;isolation:isolate}
.imprint-hit{position:absolute;width:0;height:0;pointer-events:none}
.imprint-hit svg{position:absolute;left:-30px;top:-30px;width:60px;height:60px;overflow:visible;fill:none;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.imprint-hit .imprint-mark{stroke:var(--ink);stroke-width:1.8;filter:drop-shadow(0 1px 1.5px #071421);animation:imprint-mark .56s ease-out both}
.imprint-hit .imprint-wave{stroke:var(--trail);stroke-width:1.2;stroke-dasharray:35 7 14 7;animation:imprint-wave .63s ease-out both}
.imprint-hit>i{position:absolute;left:-4px;top:-4px;width:8px;height:8px;border-radius:50%;background:var(--ink);box-shadow:0 0 6px var(--trail);animation:imprint-dot .38s ease-out both}
.imprint-rail{position:absolute;width:min(12rem,calc(100% - 8px));display:flex;justify-content:center;pointer-events:none;transform:translateY(calc(-100% - 18px))}
.imprint-receipt{display:block;max-width:100%;min-width:1.7rem;padding:2px 7px;border-radius:9px;background:#101a25ed;color:#fff;border:1px solid color-mix(in srgb,var(--ink) 55%,#233847);font:650 12px/1.4 system-ui,sans-serif;font-variant-numeric:tabular-nums;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;animation:imprint-value .8s ease-out both}
@keyframes imprint-wave{0%{transform:scale(.46);opacity:.95}100%{transform:scale(1.5) rotate(24deg);opacity:0}}
@keyframes imprint-mark{0%{transform:scale(.74);opacity:1}48%{transform:scale(1.04);opacity:1}100%{transform:translateY(-4px) scale(1.05);opacity:0}}
@keyframes imprint-dot{0%{opacity:1}100%{transform:scale(1.65);opacity:0}}
@keyframes imprint-value{0%,68%{opacity:1}100%{transform:translateY(-5px);opacity:0}}
@media(prefers-reduced-motion:reduce){.imprint-hit svg,.imprint-hit>i{display:none}.imprint-receipt{animation:none}}

/* The chapter title doubles as the atlas control, without a second HUD button. */
.app.simulation-shell .world-chapter-name .chapter-atlas-link,
.future-game .world-chapter-name .chapter-atlas-link {
 display:inline-flex;align-items:center;gap:7px;min-width:0;max-width:100%;
 min-height:30px;width:auto;padding:2px 7px;margin:0;border:1px solid #709ba05c;
 border-radius:7px;background:#081821c9;color:#f1f6f7;line-height:1.2;font-size:14px;
 text-align:start;pointer-events:auto;
}
.chapter-atlas-link svg{color:#b0ccca;flex:none}
.chapter-atlas-link:focus-visible{outline:2px solid #bdeee3;outline-offset:2px}
.goal-ledger-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px;border-bottom:1px solid #36545e}
.goal-ledger-heading>span{flex:none;color:#a8c2ca;font-size:12px;font-variant-numeric:tabular-nums}
.chapter-goals.goal-ledger>p{font-size:13px;line-height:1.4;margin:6px 0}
.goal-ledger .transition-checklist li.goal-open{border-bottom:1px solid #30464f;align-items:center}
.goal-ledger .transition-checklist li>span{min-width:0;overflow-wrap:anywhere}
.goal-ledger .transition-checklist li>strong{text-align:right;font-size:13px;max-width:52%}
.goal-ledger .transition-checklist strong>small{display:block;white-space:normal;color:#d7bd91;font-size:11px;font-weight:450;line-height:1.3}
.chapter-goals.goal-ledger>.goal-note{font-size:12px;color:#a9c6cb}
