/* Terrestrial scene only: independent building surfaces, foundations and ambient life. */
#scene.land-enhanced #spots{position:absolute;inset:0;z-index:2;pointer-events:none}
#scene.land-enhanced .spot{pointer-events:auto;min-width:0;min-height:0;isolation:isolate;touch-action:none;outline:0}
#scene.land-enhanced .spot.resource{min-width:calc(32px / var(--map-scale,1));min-height:calc(32px / var(--map-scale,1))}
#scene.land-enhanced .spot::before{content:'';position:absolute;inset:0;border-radius:0;pointer-events:none;background:transparent;z-index:2;transition:background .16s}
#scene.land-enhanced .spot:hover::before{background:#82dfff0d}
#scene.land-enhanced .spot.active::before,#scene.land-enhanced .spot:focus-visible::before{background:#6bd9ff1c;outline:0}
.land-building-art{position:absolute;inset:0;display:block;background-image:url('cenario_neve.png');background-size:1536px 1024px;pointer-events:none;transition:filter .18s,transform .18s}
#scene.land-enhanced .spot:hover .land-building-art{filter:brightness(1.13) saturate(1.08);transform:translateY(-2px)}
#scene.land-enhanced .spot.active .land-building-art{filter:brightness(1.17) saturate(1.12)}
#scene.land-enhanced .building-labels{z-index:4}
#scene.land-enhanced .world>.player-profile,#scene.land-enhanced .world>.art-status,#scene.land-enhanced .world>.map-nav,#scene.land-enhanced .world>.side-science{z-index:5}
#scene.land-enhanced .building-plaque{transition:border-color .18s,box-shadow .18s;background:linear-gradient(155deg,#163449f5,#04111df5);border-color:#53788e}
#scene.land-enhanced .building-plaque:hover,#scene.land-enhanced .building-plaque.land-selected{border-color:#b4f2ff;box-shadow:0 0 0 2px #65ceef3d,0 6px 16px #0009}
.land-foundations{position:absolute;inset:0;z-index:1;pointer-events:none}
.land-foundations svg{width:100%;height:100%;overflow:visible}
.land-foundation polygon{fill:#7bdaff04;stroke:#8fdefa35;stroke-width:1.2;stroke-linejoin:round;transition:fill .16s,stroke .16s,stroke-width .16s}
.land-foundation.is-hovered polygon{fill:#8adfff12;stroke:#b4edffbb;stroke-width:2.2}
.land-foundation.is-selected polygon{fill:#6dd8ff18;stroke:#a4eeff;stroke-width:3;filter:drop-shadow(0 0 5px #49c7ee88)}
.land-foundation[data-state=building] polygon{stroke:#ffc67c99;stroke-dasharray:10 5}
.land-foundation[data-state=queued] polygon{stroke:#d8b47d88;stroke-dasharray:3 6}
.land-atmosphere{position:absolute;inset:0;z-index:3;pointer-events:none;overflow:hidden}
.land-atmosphere *{pointer-events:none}
.land-hologram{position:absolute;left:1041px;top:139px;width:58px;height:77px;overflow:hidden;mix-blend-mode:screen;background:linear-gradient(transparent,#51bfff0c 75%,#5bdeff33)}
.land-hologram i{position:absolute;left:3px;bottom:0;width:52px;height:20px;border:1px solid #94f4ffb0;border-radius:50%;box-shadow:0 0 8px #26c7f84d;animation:land-hologram 4.8s linear infinite}
.land-hologram i:nth-child(2){animation-delay:-1.6s}.land-hologram i:nth-child(3){animation-delay:-3.2s}
.land-hologram b{position:absolute;inset:0;background:linear-gradient(0deg,transparent,#7adaff30,transparent);animation:land-holo-scan 6s ease-in-out infinite}
.land-fusion-core{position:absolute;left:215px;top:265px;width:64px;height:49px;border-radius:50%;mix-blend-mode:screen}
.land-fusion-core i{position:absolute;inset:5px;border-radius:50%;background:radial-gradient(ellipse,#edf4ff66,#7768f330 40%,transparent 70%);animation:land-reactor 5s ease-in-out infinite}
.land-fusion-core i+ i{inset:11px -5px;border:1px solid #b3afff44;background:none;animation-delay:-2.5s;transform:rotate(-30deg)}
.land-radar{position:absolute;left:462px;top:107px;width:51px;height:40px;mix-blend-mode:screen;opacity:.35;transform:rotate(-16deg)}
.land-radar i{position:absolute;inset:0;border-radius:50%;background:conic-gradient(from 0deg,transparent 75%,#8aeaff55 97%,#b2f2ffa8);animation:land-radar 9s linear infinite}
.land-portal{position:absolute;left:1400px;top:397px;width:76px;height:113px;transform:rotate(8deg);mix-blend-mode:screen}
.land-portal i{position:absolute;inset:3px;border:2px solid #a5c4ff88;border-radius:50%;border-top-color:#f1f9ffc4;border-bottom-color:#4f5bff33;box-shadow:inset 0 0 12px #93b2ff33,0 0 6px #98a8ff44;animation:land-portal 8s ease-in-out infinite}
.land-portal i+ i{inset:10px 8px;animation-delay:-4s;border-color:#d2c8ff55;border-right-color:#fff9}
.land-portal b{position:absolute;inset:16px 8px;background:radial-gradient(ellipse,#a4c5ff44,transparent 72%);border-radius:50%;animation:land-reactor 6.5s ease-in-out infinite}
.land-vortex{position:absolute;inset:8px 7px 12px;border-radius:50%;overflow:hidden;background:radial-gradient(ellipse,#ecfaff 0%,#74ceff 13%,#555eeac9 42%,#20216a99 67%,transparent 75%);box-shadow:inset 0 0 9px #b3d4ffb0,0 0 10px #9fbbff66}
.land-vortex-flow,.land-vortex-inner{position:absolute;inset:-16px -30px;border-radius:50%;background:repeating-conic-gradient(from 25deg,transparent 0deg 33deg,#6384f866 45deg,#d4efffe6 62deg,transparent 82deg 120deg);mask-image:radial-gradient(circle,transparent 10%,#000 24%,#000 57%,transparent 72%);animation:land-vortex-spin 5s linear infinite}
.land-vortex-inner{inset:-4px -20px;opacity:.6;animation-duration:3.4s;animation-direction:reverse;background:repeating-conic-gradient(#e9faffd9 0deg,transparent 42deg 90deg);mask-image:radial-gradient(circle,transparent 8%,#000 22%,transparent 60%)}
.land-factory-glow{position:absolute;left:503px;top:439px;width:55px;height:20px;border-radius:50%;background:radial-gradient(ellipse,#ffb65255,transparent 70%);mix-blend-mode:screen;opacity:.3}
.land-welding{position:absolute;width:24px;height:24px;opacity:0;mix-blend-mode:screen}
.land-welding::before{content:'';position:absolute;left:5px;top:5px;width:12px;height:12px;border-radius:50%;background:radial-gradient(#fff 8%,#bcefff 25%,#43bfff77 45%,transparent 72%);animation:land-weld-core 1.3s ease-out infinite;animation-delay:calc(var(--site)*-.31s)}
.land-welding i{position:absolute;width:2px;height:7px;left:10px;top:9px;background:linear-gradient(#fff6,#fff3ae);border-radius:50%;box-shadow:0 0 4px #ffc565;opacity:0;animation:land-spark 1.3s ease-out infinite;animation-delay:calc(var(--site)*-.31s + var(--n)*-.09s)}
.land-atmosphere[data-factory-work=true] .land-welding{opacity:1}
.land-atmosphere[data-factory-work=false] .land-welding *,.land-atmosphere[data-factory-work=false] .land-welding::before{animation-play-state:paused}
.land-atmosphere[data-factory-work=true] .land-factory-glow{animation:land-factory 4s ease-in-out infinite}
.land-factory-start{position:absolute;left:478px;top:411px;width:206px;height:75px;opacity:0;background:radial-gradient(ellipse,#c2efffaa,#4bbfff44 30%,transparent 70%);mix-blend-mode:screen}
.land-atmosphere[data-factory-work=true][data-factory-cycle=a] .land-factory-start{animation:land-start-a .8s ease-out}
.land-atmosphere[data-factory-work=true][data-factory-cycle=b] .land-factory-start{animation:land-start-b .8s ease-out}
.land-residents{position:absolute;inset:0}
.land-resident{position:absolute;left:0;top:0;width:8px;height:15px;offset-rotate:0deg;offset-anchor:50% 100%;animation:land-resident-walk var(--walk-time) linear infinite alternate;animation-delay:var(--walk-delay)}
.land-resident::after{content:'';position:absolute;left:0;bottom:-1px;width:9px;height:3px;border-radius:50%;background:#12233266;transform:skewX(-30deg)}
.land-resident-person{position:absolute;left:1px;top:0;width:6px;height:12px;animation:land-person-step .65s ease-in-out infinite;animation-delay:var(--walk-delay);filter:drop-shadow(0 0 1px #162437)}
.land-resident-person::before{content:'';position:absolute;left:2px;top:0;width:4px;height:4px;border-radius:50%;background:#f0d1ae;box-shadow:0 -1px 0 #253b4a}
.land-resident-person::after{content:'';position:absolute;left:1px;top:4px;width:6px;height:6px;background:var(--coat);border-radius:3px 3px 1px 1px;box-shadow:-1px 2px 0 #15283c66,1px 2px 0 #15283c66}
.land-resident-person i,.land-resident-person b{position:absolute;left:2px;top:9px;width:2px;height:5px;background:#223348;border-radius:0 0 1px 1px;transform-origin:top;animation:land-person-leg .65s ease-in-out infinite;animation-delay:var(--walk-delay)}
.land-resident-person b{left:5px;animation-direction:reverse}
.land-dock-lights{position:absolute;left:805px;top:494px;width:166px;height:40px;transform:rotate(27deg)}
.land-dock-lights i{position:absolute;left:calc(var(--n)*29px);top:0;width:5px;height:3px;border-radius:2px;background:#83deff;box-shadow:0 0 5px #9de9ff;animation:land-dock 3.6s ease-in-out infinite;animation-delay:calc(var(--n)*-.45s);opacity:.45}
.land-refinery{position:absolute;left:999px;top:578px;width:61px;height:52px;mix-blend-mode:screen}
.land-refinery i{position:absolute;left:9px;top:3px;width:12px;height:39px;background:linear-gradient(transparent,#74ffa138,transparent);border-radius:40%;animation:land-reactor 6.2s ease-in-out infinite}
.land-refinery i+ i{left:40px;top:11px;height:30px;animation-delay:-2s}
.land-steam{position:absolute;width:24px;height:20px;transform:translate(-50%,-70%)}
.land-steam i{position:absolute;inset:0;border-radius:50%;background:radial-gradient(ellipse,#d4e8ee77,transparent 68%);filter:blur(2px);opacity:0;animation:land-steam 8s ease-out infinite;animation-delay:var(--delay)}
.land-steam i+ i{animation-delay:calc(var(--delay) - 4s)}
.land-service-vehicle{position:absolute;left:0;top:0;width:12px;height:6px;background:linear-gradient(#718d9d,#233544);border:1px solid #b6cfda99;border-radius:2px;offset-rotate:auto;box-shadow:0 1px 2px #000a;animation:land-service 36s linear infinite}
.land-service-vehicle::before{content:'';position:absolute;right:-3px;top:0;width:4px;height:3px;background:#dff4ff;box-shadow:3px 0 5px #cce9ff88;border-radius:50%}
.land-service-vehicle i{position:absolute;width:3px;height:3px;left:2px;top:-2px;background:#ffa965;box-shadow:0 0 4px #ffb357}
.route-one{offset-path:path('M 387 340 L 605 438 L 757 374 L 945 451 L 1108 375 L 1232 426 L 1332 383');animation-delay:-12s}
.route-two{offset-path:path('M 479 561 L 626 628 L 770 566 L 1035 697 L 1192 623');animation-duration:43s;animation-delay:-29s}
.land-snow{position:absolute;inset:90px 75px 140px;overflow:hidden;opacity:.4}
.land-snow i{position:absolute;left:calc(var(--n)*8.3%);top:-10%;width:3px;height:3px;border-radius:50%;background:#e1f0f8;animation:land-snow 26s linear infinite;animation-delay:calc(var(--n)*-3.1s);opacity:.6}
.land-snow i:nth-child(3n){width:2px;height:2px;animation-duration:34s}
.land-work-markers{position:absolute;inset:0}
.land-work-markers span{position:absolute;transform:translate(-50%,-50%) scale(clamp(.75,calc(1 / var(--map-scale,1)),2));transform-origin:center;padding:4px 7px;border:1px solid #f6b763;border-radius:5px;background:#241e13f0;color:#ffe3a9;font:600 11px 'Segoe UI',sans-serif;white-space:nowrap;box-shadow:0 2px 8px #0008}
.land-work-markers span[data-state=queued]{border-color:#8a806e;background:#18212be8;color:#cfbea3}
.land-controls{position:absolute;z-index:7;left:12px;bottom:12px;display:flex;gap:6px;max-width:calc(100% - 250px);pointer-events:none}
.land-controls button{pointer-events:auto}
.land-controls button{display:flex;gap:7px;align-items:center;min-height:42px;padding:8px 12px;border:1px solid #456c81;border-radius:8px;background:linear-gradient(145deg,#112e3ef2,#081a28f2);box-shadow:0 3px 10px #0005;color:#d9edf6;font-size:12px;white-space:nowrap}
.land-controls button>span{font-size:22px;color:#a7dfef;line-height:1}.land-controls button b{font-size:11px;font-weight:500}
.land-controls button:hover:enabled{border-color:#9cdfee;background:#173c50}.land-controls [data-land-effects][aria-pressed=false]{color:#a2b4c0}
.land-directory{position:absolute;z-index:30;left:12px;bottom:64px;width:min(360px,calc(100% - 24px));max-height:calc(100% - 80px);padding:14px;border:1px solid #678da2;border-radius:12px;background:linear-gradient(145deg,#122c3df8,#071824fa);box-shadow:0 14px 38px #0009;display:flex;flex-direction:column;cursor:default;touch-action:auto}
.land-directory[hidden]{display:none}
.land-directory header{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:12px}.land-directory header small{font-size:9px;letter-spacing:1.8px;color:#8fbccc}.land-directory h2{font-size:18px;margin:4px 0 0;color:#e7f6ff}
.land-directory header button{width:40px;height:40px;border:1px solid #496477;border-radius:7px;color:#d6eaf3;background:#142e3d;font-size:22px}
.land-directory label{font-size:11px;color:#adc8d7;margin-bottom:5px}
.land-directory input{width:100%;flex-shrink:0;min-height:42px;border:1px solid #486e83;border-radius:7px;background:#061521;color:#eef8ff;padding:10px 12px;font-size:14px}
.land-directory>nav{display:flex;gap:5px;overflow-x:auto;padding:10px 0 5px;flex-shrink:0;scrollbar-width:thin}
.land-directory>nav button{min-height:34px;padding:5px 9px;border:1px solid #344d5f;background:#102636;border-radius:6px;color:#b8d0de;font-size:11px;white-space:nowrap}
.land-directory>nav button[aria-pressed=true]{border-color:#83d2e8;background:#21475b;color:#e0f8ff}
.land-search-count{font-size:11px;color:#91b1c3;margin:7px 0 10px;flex-shrink:0}
.land-directory-list{display:flex;flex-direction:column;gap:5px;overflow:auto;min-height:50px;overscroll-behavior:contain;scrollbar-width:thin}
.land-directory-list>button{display:grid;grid-template-columns:27px minmax(0,1fr) auto 12px;gap:7px;align-items:center;flex-shrink:0;min-height:58px;text-align:left;padding:8px;border:1px solid #2d4b5e;background:#0c2231;border-radius:7px;color:#e2eff7}
.land-directory-list>button:hover{background:#193b4e;border-color:#6eacc2}.land-directory-list strong{font-size:12px;display:block;font-weight:600;overflow-wrap:anywhere}.land-directory-list small{display:block;font-size:10px;color:#8ab7c6;margin-top:4px}.land-directory-list b{font-size:11px;color:#e5c89a;white-space:nowrap}
.land-list-icon{width:27px;height:30px;display:grid;place-items:center;background:#24445777;border:1px solid #496f8266;border-radius:5px;font-size:18px;color:#a8d6ed}.land-list-icon[data-resource=fuel]{color:#e8b578}.land-list-icon[data-resource=money]{color:#e6d99b}.land-find-arrow{color:#83c6db}
.land-directory-help{font-size:10px;color:#89a9ba;line-height:1.4;margin:10px 0 0;flex-shrink:0}.land-no-results{font-size:12px;line-height:1.6;color:#bbccd7;padding:12px}
.land-tooltip{position:absolute;z-index:8;padding:9px 12px;max-width:260px;border:1px solid #638a9e;border-radius:8px;background:#071a29f5;box-shadow:0 5px 14px #0007;pointer-events:none;font-size:12px}
.land-tooltip strong{display:block;color:#e2f3ff;font-size:12px}.land-tooltip span{display:block;color:#adc7d7;font-size:11px;margin-top:4px}
#scene.land-enhanced .world-vapor{display:none}
#scene.land-enhanced .building-plaque[data-plaque="3"]{animation:none}
#scene.land-enhanced .hint{display:none}
#scene.land-enhanced .building-menu{z-index:28;max-height:calc(100% - 24px)}
#scene.land-enhanced .land-building-details{display:block;min-height:40px;width:100%;margin-top:8px;background:#123346;border-color:#446c80;font-size:12px}
#scene.land-enhanced .land-production-detail{padding:8px 10px;border:1px solid #355e6b;border-radius:6px;background:#0a2633;color:#a6cfce;font-size:12px}
#scene.land-enhanced .land-production-detail b{color:#a9ead4}
.land-command-rail{position:absolute;z-index:5;left:0;top:106px;width:77px;height:485px;display:grid;grid-template-rows:repeat(6,1fr);gap:3px;padding:4px;background:linear-gradient(90deg,#061725,#0c2639);border:1px solid #376380;border-radius:0 9px 9px 0}
.land-command-rail button,.land-top-links button{border:1px solid #386984;border-radius:6px;background:linear-gradient(#153d55,#061623);color:#d0e8f4;font:11px 'Segoe UI',sans-serif;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;padding:4px}
.land-command-rail button>span{font-size:26px;color:#a6def5}.land-command-rail button:hover,.land-top-links button:hover{border-color:#ace6ff;background:#21536e}
.land-top-links{position:absolute;z-index:5;left:342px;top:0;width:235px;height:61px;display:grid;grid-template-columns:repeat(4,1fr);gap:5px;padding:3px 4px;background:#061623;border-radius:0 0 10px 10px}
.land-top-links button{font-size:10px;gap:1px}.land-top-links span{font-size:24px;color:#b4e3f7}
.land-operations{position:absolute;z-index:5;left:0;top:811px;width:426px;height:213px;background:linear-gradient(135deg,#102d40,#04131f);border:1px solid #467894;border-radius:10px 10px 0 0;padding:14px 16px 62px;color:#c0d7e4;overflow:hidden}
.land-operations header{display:flex;gap:7px;align-items:center;border-bottom:1px solid #365b70;padding-bottom:10px;font-size:12px;letter-spacing:1px;color:#cbe8f4}.land-operations header b{margin-left:auto;font-size:10px;letter-spacing:0;color:#83adbf;font-weight:400;white-space:nowrap}
.land-online-dot{width:6px;height:6px;background:#83d4ab;border-radius:50%;box-shadow:0 0 8px #58b89766;flex-shrink:0}
.land-operation-line{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-top:12px;font-size:12px}.land-operation-line strong{font-size:11px;color:#d5e8f2;font-weight:500}.land-operations p{font-size:11px;color:#8fbdcf;line-height:1.5;margin:10px 0 0}
.land-clock{position:absolute;z-index:5;left:1237px;top:76px;width:299px;height:33px;display:flex;align-items:center;justify-content:space-between;padding:0 14px;color:#a1cada;background:#071b2bf2;border:1px solid #356581;border-radius:0 0 8px 8px;font-size:11px;letter-spacing:1px}.land-clock b{font-size:14px;letter-spacing:0}
.land-compact-masks{display:none;position:absolute;inset:0;z-index:5;pointer-events:none}
.land-art-profile-mask{position:absolute;left:0;top:0;width:340px;height:96px;display:flex;align-items:center;gap:14px;padding:14px 20px;background:linear-gradient(120deg,#122f43,#061523);border:2px solid #3b677e;border-radius:0 0 12px 0}.land-art-profile-mask>span{font-size:42px;color:#94cbdc}.land-art-profile-mask b{font-size:21px;letter-spacing:1px;color:#d0e7f1}.land-art-profile-mask small{display:block;font-size:12px;letter-spacing:2px;color:#8eb6c8;margin-top:9px}
.land-art-wallet-mask{position:absolute;left:903px;top:0;width:633px;height:75px;display:flex;align-items:center;justify-content:space-between;padding:18px 25px;background:linear-gradient(#102d42,#051624);border:2px solid #3b677e;border-radius:0 0 0 12px;font-size:18px;letter-spacing:1px;color:#91b9cd}.land-art-wallet-mask b{font-size:15px;font-weight:500;color:#c9dce8}
.land-art-nav-mask{position:absolute;left:655px;top:900px;width:881px;height:124px;display:grid;grid-template-columns:repeat(3,1fr);padding:17px 28px;gap:20px;background:linear-gradient(#102b3d,#051624);border-top:2px solid #436b80;border-radius:18px 0 0 0}.land-art-nav-mask div{border-left:1px solid #365164;padding:0 16px;display:flex;flex-direction:column;justify-content:center;gap:4px;font-size:17px;color:#a8c8d9}.land-art-nav-mask b{font-size:23px;color:#8bdbc1;font-weight:500}.land-art-nav-mask small{font-size:11px;color:#6e94a9}
body:has(#scene.land-enhanced:not([hidden])) .instance-dock{display:none}
#scene[data-land-effects=off] .land-atmosphere *,#scene[data-land-paused=true] .land-atmosphere *,#scene[data-land-effects=off] .land-atmosphere *::before,#scene[data-land-paused=true] .land-atmosphere *::before{animation-play-state:paused!important}
#scene[data-land-effects=off] .land-snow,#scene[data-land-effects=off] .land-steam,#scene[data-land-effects=off] .land-welding{opacity:0}
#scene[data-land-effects=off] .land-service-vehicle{visibility:hidden}
#scene[data-land-effects=off] .land-factory-start{display:none}
@keyframes land-vortex-spin{to{transform:rotate(360deg)}}
@keyframes land-spark{0%,12%{opacity:0;transform:translate(0,0) rotate(var(--angle)) scale(.3)}18%{opacity:1}72%{opacity:.8}100%{opacity:0;transform:translate(var(--dx),var(--dy)) rotate(var(--angle)) scale(.2)}}
@keyframes land-weld-core{0%,15%,43%,100%{opacity:.1;transform:scale(.5)}20%,35%{opacity:1;transform:scale(1.3)}}
@keyframes land-start-a{0%{opacity:0;transform:scale(.7)}20%{opacity:.8}100%{opacity:0;transform:scale(1.2)}}
@keyframes land-start-b{0%{opacity:0;transform:scale(.7)}20%{opacity:.8}100%{opacity:0;transform:scale(1.2)}}
@keyframes land-resident-walk{0%,5%{offset-distance:0%}95%,100%{offset-distance:100%}}
@keyframes land-person-step{50%{transform:translateY(-.7px)}}
@keyframes land-person-leg{0%,100%{transform:rotate(-19deg)}50%{transform:rotate(19deg)}}
@keyframes land-hologram{0%{transform:translateY(0) scale(.88);opacity:0}15%{opacity:.6}85%{opacity:.45}100%{transform:translateY(-65px) scale(.65);opacity:0}}
@keyframes land-holo-scan{50%{transform:translateY(-22px);opacity:.4}}
@keyframes land-reactor{0%,100%{opacity:.4}50%{opacity:.85}}
@keyframes land-radar{to{transform:rotate(360deg)}}
@keyframes land-portal{0%,100%{opacity:.4;transform:scale(.92,.97)}50%{opacity:.85;transform:scale(1.03,1.02)}}
@keyframes land-factory{0%,100%{opacity:.4}50%{opacity:.8}}
@keyframes land-dock{0%,100%{opacity:.25}40%,60%{opacity:.9}}
@keyframes land-steam{0%{opacity:0;transform:translate(0,0) scale(.5)}15%{opacity:.25}100%{opacity:0;transform:translate(-22px,-56px) scale(2.4)}}
@keyframes land-service{0%{offset-distance:0%;opacity:0}4%,96%{opacity:1}100%{offset-distance:100%;opacity:0}}
@keyframes land-snow{0%{transform:translate(0,-10px);opacity:0}8%,90%{opacity:.55}100%{transform:translate(-80px,760px);opacity:0}}
@media(max-width:900px){
 .land-controls{top:auto;bottom:72px;left:8px;right:56px;max-width:none;flex-direction:row;align-items:center;gap:5px}
 .land-controls button{min-height:40px;max-width:100%;font-size:11px;padding:6px 9px;gap:5px}
 .land-controls [data-land-find]{flex:1;justify-content:center}
 .land-controls [data-land-effects]{width:40px;justify-content:center;padding:6px;flex-shrink:0}
 .land-controls [data-land-overview]{width:40px;justify-content:center;padding:6px;flex-shrink:0}
 .land-controls [data-land-effects] b{display:none}
 .land-controls button>span{font-size:20px}.land-controls button b{font-size:10px}
 .land-directory{left:8px;top:95px;bottom:120px;width:calc(100% - 16px);max-height:none;padding:12px}
 .land-directory input{font-size:16px}.land-directory>nav button{min-height:40px}
 .land-directory-list>button{min-height:60px}.land-directory header{margin-bottom:9px}
 .land-directory h2{font-size:16px}.land-directory-help{margin-top:8px}
 .land-tooltip{display:none}
 #scene.land-enhanced .building-menu{max-height:calc(100% - 136px)}
 .land-compact-masks{display:block}
}
@media(max-height:530px){
 .land-controls{top:7px;bottom:auto;left:150px;right:auto;flex-direction:row;max-width:calc(100% - 400px)}
 .land-directory{top:52px;bottom:64px;max-height:none;padding:10px}.land-directory>header,.land-directory>label,.land-directory-help,.land-directory>nav{display:none}
 .land-search-count{margin:4px 0 6px}
 #scene.land-enhanced .building-menu{max-height:calc(100% - 80px)}
}
@media(prefers-reduced-motion:reduce){
 #scene.land-enhanced .land-atmosphere *,#scene.land-enhanced .land-atmosphere *::before{animation-play-state:paused!important}
 #scene.land-enhanced .land-building-art,#scene.land-enhanced .land-foundation polygon{transition:none}
 #scene.land-enhanced .spot:hover .land-building-art{transform:none}
 .land-snow,.land-steam,.land-welding,.land-factory-start{display:none}
}

/* Impeccable refinement: live interface above the unchanged colony artwork.
   Opaque surfaces cover the decorative controls printed into the source image. */
#scene.land-enhanced{
 --land-panel:#101e2b;
 --land-raised:#1b3041;
 --land-line:#466072;
 --land-text:#edf4f8;
 --land-muted:#b4c8d5;
 --land-accent:#a9e5f2;
 background:#0b1621;
 color:var(--land-text);
 scrollbar-color:#55768b #101e2b;
}
#scene.land-enhanced ::selection{background:#a9e5f2;color:#0b1621}
.land-ui-icon{display:block;width:24px;height:24px;flex-shrink:0}
#scene.land-enhanced .land-route-icon{display:grid;place-items:center;height:30px;margin-bottom:5px;text-shadow:none}
#scene.land-enhanced .land-route-icon .land-ui-icon{width:25px;height:25px}
#scene.land-enhanced :is(.map-nav,.land-command-rail,.land-top-links,.land-controls,.tools) button{
 background:var(--land-panel);border:1px solid var(--land-line);border-radius:6px;
 color:var(--land-text);box-shadow:none;text-shadow:none;font-weight:500;
 transition:background .15s ease-out,border-color .15s ease-out,color .15s ease-out;
}
#scene.land-enhanced :is(.map-nav,.land-command-rail,.land-top-links,.land-controls,.tools) button:hover:enabled{
 background:#294457;border-color:#a9e5f2;color:#fff;
}
#scene.land-enhanced :is(.map-nav,.land-command-rail,.land-top-links,.land-controls,.tools) button:active:enabled{
 background:#35586b;filter:none;
}
#scene.land-enhanced button:focus-visible,#construction-dialog button:focus-visible,
#scene.land-enhanced input:focus-visible{
 outline:2px solid #f4d39c;outline-offset:3px;
}
#scene.land-enhanced .building-plaque{
 height:50px;border:1px solid #708799;border-radius:4px;background:#101e2b;
 box-shadow:0 4px 10px #06101a66;color:#edf4f8;font-size:13px;font-weight:600;
 gap:3px;transition:background .15s ease-out,border-color .15s ease-out;
}
#scene.land-enhanced .building-plaque b{color:#c5e7ef;font-size:13px;font-weight:500;font-variant-numeric:tabular-nums}
#scene.land-enhanced .resource-plaque{height:56px}
#scene.land-enhanced .land-resource-numbers{position:absolute;inset:0;z-index:4;pointer-events:none}
.land-resource-numbers span{position:absolute;transform:translate(-50%,-50%);min-width:28px;padding:2px 5px;border:1px solid #708799;border-radius:3px;background:#101e2b;color:#edf4f8;box-shadow:0 2px 5px #06101a66;font-size:12px;font-weight:600;line-height:1.2;text-align:center;font-variant-numeric:tabular-nums}
#scene.land-enhanced .resource-plaque small{color:#b4c8d5}
#scene.land-enhanced .building-plaque:hover,#scene.land-enhanced .building-plaque.land-selected{
 background:#203c4d;border-color:#b9eaf4;box-shadow:0 4px 12px #06101a88;
}
#scene.land-enhanced .land-command-rail{
 background:#101e2b;border:0;border-radius:0;width:80px;left:0;top:104px;height:490px;padding:6px;gap:4px;
}
#scene.land-enhanced .land-command-rail button{border-color:transparent;gap:7px;font-size:11px}
#scene.land-enhanced .land-command-rail button>span{color:#c0e3ee;display:grid;place-items:center}
#scene.land-enhanced .land-top-links{
 background:#101e2b;border-radius:0;left:340px;top:0;width:240px;height:64px;padding:5px;gap:4px;
}
#scene.land-enhanced .land-top-links button{border-color:transparent;gap:3px}
#scene.land-enhanced .land-top-links span{display:grid;place-items:center;color:#c0e3ee}
#scene.land-enhanced .land-operations{
 background:#101e2b;border:0;border-radius:0;left:0;top:810px;width:430px;height:214px;padding:18px 20px 55px;
}
#scene.land-enhanced .land-operations header{color:#e2edf4;font-weight:600;letter-spacing:.6px;border-color:#3f576a}
#scene.land-enhanced .land-operations header b{color:#b4c8d5}
#scene.land-enhanced .land-operation-line{margin-top:15px;color:#b4c8d5}
#scene.land-enhanced .land-operation-line strong{color:#e2edf4;font-variant-numeric:tabular-nums}
#scene.land-enhanced .land-operations p{color:#b4c8d5}
#scene.land-enhanced .land-online-dot{box-shadow:none;background:#9bd6b3}
#scene.land-enhanced .land-clock{background:#101e2b;border:0;border-radius:0;color:#b4c8d5;left:1234px;top:74px;width:302px;height:36px}
#scene.land-enhanced .land-clock b{color:#edf4f8;font-variant-numeric:tabular-nums}
#scene.land-enhanced .map-nav{background:#101e2b;border:0;border-radius:0;box-shadow:none;padding:10px;gap:6px}
#scene.land-enhanced .map-nav button{font-size:12px;border-color:transparent}
#scene.land-enhanced .map-nav button span{color:#c0e3ee;text-shadow:none}
#scene.land-enhanced .art-status{background:#101e2b;border:0;border-radius:0;left:902px;top:0;width:634px;height:76px;color:#b4c8d5}
#scene.land-enhanced .art-status b{font-size:19px;color:#edf4f8;font-variant-numeric:tabular-nums}
#scene.land-enhanced .player-profile{background:#101e2b;border:0;border-radius:0;box-shadow:none}
#scene.land-enhanced .player-profile-progress{border-color:#3f576a}
#scene.land-enhanced .player-profile-progress>b{color:#c5e7ef}
#scene.land-enhanced .land-avatar-cover{background:#101e2b;border:0;border-radius:0;box-shadow:none}
#scene.land-enhanced .land-controls{gap:6px}
#scene.land-enhanced .land-controls button{min-height:44px;padding:10px 14px;font-size:12px;box-shadow:0 4px 12px #06101a55}
#scene.land-enhanced .land-controls button>span{display:grid;place-items:center;color:#c0e3ee}
#scene.land-enhanced .land-controls [data-land-effects][aria-pressed=false]{background:#0b1621;border-style:dashed;color:#b4c8d5}
#scene.land-enhanced .tools button{min-height:44px}
#scene.land-enhanced .building-menu{
 background:#101e2b;border:0;border-radius:10px;padding:20px;
 box-shadow:0 12px 36px #020a12aa;color:#edf4f8;
}
#scene.land-enhanced .building-menu h2{color:#edf4f8;line-height:1.3;font-weight:600;font-size:19px}
#scene.land-enhanced .building-menu p{color:#b4c8d5;line-height:1.6}
#scene.land-enhanced .building-menu .level{font-size:15px;color:#c5e7ef;font-weight:500;margin:14px 0;font-variant-numeric:tabular-nums}
#scene.land-enhanced .building-menu button{min-height:44px;background:#1b3041;border-color:#466072;border-radius:6px}
#scene.land-enhanced .building-menu .action{background:#c4e8f0;border-color:#c4e8f0;color:#102431;font-size:13px;font-weight:600}
#scene.land-enhanced .building-menu .action:hover:enabled{background:#e2f6fa;border-color:#e2f6fa}
#scene.land-enhanced .building-menu .action:disabled{background:#233746;border-color:#466072;color:#b4c8d5;opacity:1}
#scene.land-enhanced .building-menu .dismiss{min-width:36px;min-height:36px;background:transparent;border-color:transparent;color:#b4c8d5;font-size:21px}
#scene.land-enhanced .building-menu .land-building-details{background:transparent;color:#d8e9f1;border-color:#466072;font-size:12px}
#scene.land-enhanced .land-production-detail{background:#192f3c;border:0;border-radius:5px;color:#c2d7e1}
#scene.land-enhanced .land-production-detail b{color:#b7e4ce}
#scene.land-enhanced .land-directory{background:#101e2b;border:0;box-shadow:0 12px 36px #020a12aa;border-radius:10px;padding:18px}
#scene.land-enhanced .land-directory header small{display:none}
#scene.land-enhanced .land-directory h2{font-size:20px;font-weight:600;color:#edf4f8}
#scene.land-enhanced .land-directory label,#scene.land-enhanced .land-search-count,
#scene.land-enhanced .land-directory-help{color:#b4c8d5}
#scene.land-enhanced .land-directory input{background:#0b1621;border-color:#557184;color:#edf4f8;caret-color:#a9e5f2}
#scene.land-enhanced .land-directory input::placeholder{color:#acbfcb;opacity:1}
#scene.land-enhanced .land-directory>nav button{background:#1b3041;border-color:transparent;color:#d5e4ed;min-height:40px}
#scene.land-enhanced .land-directory>nav button[aria-pressed=true]{background:#c4e8f0;color:#102431}
#scene.land-enhanced .land-directory-list>button{background:transparent;border:0;border-bottom:1px solid #344c5d;border-radius:0;min-height:64px;padding:10px 4px}
#scene.land-enhanced .land-directory-list>button:hover{background:#1b3041}
#scene.land-enhanced .land-directory-list strong{font-size:13px;color:#edf4f8}
#scene.land-enhanced .land-directory-list small{font-size:11px;color:#b4c8d5}
#scene.land-enhanced .land-directory-list b{color:#c5e7ef;font-variant-numeric:tabular-nums}
#scene.land-enhanced .land-tooltip{background:#101e2b;border:0;border-radius:6px;box-shadow:0 6px 18px #020a1288}
#scene.land-enhanced .land-tooltip span{color:#b4c8d5}
#scene.land-enhanced :is(.land-art-profile-mask,.land-art-wallet-mask,.land-art-nav-mask){background:#101e2b;border:0;border-radius:0}
#scene.land-enhanced .land-art-profile-mask{width:342px;height:100px}
#scene.land-enhanced .land-art-wallet-mask{left:900px;width:636px;height:78px}
#scene.land-enhanced .land-art-nav-mask{left:650px;width:886px;top:898px;height:126px}
body:has(#scene.land-enhanced:not([hidden])) .game-header{background:#101e2b;border-bottom:1px solid #466072}
body:has(#scene.land-enhanced:not([hidden])) .game-header> b small{color:#b4c8d5;font-weight:400}
body:has(#scene.land-enhanced:not([hidden])) .stats>span{background:transparent;border:0;border-radius:0;color:#b4c8d5;font-variant-numeric:tabular-nums}
body:has(#scene.land-enhanced:not([hidden])) .stats b{color:#edf4f8}
body:has(#scene.land-enhanced:not([hidden])) .mobile-nav{background:#101e2b}
body:has(#scene.land-enhanced:not([hidden])) .mobile-nav button{background:#1b3041;border:1px solid #466072;border-radius:6px}
body:has(#scene.land-enhanced:not([hidden])) .mobile-nav .land-route-icon{display:none}
@media(min-width:901px){
 #scene.land-enhanced .world>.map-nav{left:650px;top:898px;width:886px;height:126px}
 #scene.land-enhanced .world>.map-nav button{min-height:80px}
}
@media(max-width:900px){
 #scene.land-enhanced>.map-nav{left:8px;right:8px;bottom:8px;top:auto;width:auto;height:auto;border-radius:8px;padding:5px;gap:4px}
 #scene.land-enhanced>.map-nav button{min-height:50px;flex-basis:72px;font-size:11px}
 #scene.land-enhanced .land-route-icon{height:22px;margin-bottom:3px}
 #scene.land-enhanced .land-route-icon .land-ui-icon{width:21px;height:21px}
 #scene.land-enhanced>.player-profile{left:8px;top:8px;width:160px;border-radius:6px;padding:8px 10px}
 #scene.land-enhanced .land-controls{left:8px;right:58px;bottom:76px;gap:5px}
 #scene.land-enhanced .land-controls button{min-height:44px;padding:8px 10px;font-size:11px}
 #scene.land-enhanced .land-controls [data-land-effects],#scene.land-enhanced .land-controls [data-land-overview]{width:44px;min-width:44px;padding:8px}
 #scene.land-enhanced .land-directory{top:88px;bottom:132px;left:8px;width:calc(100% - 16px);padding:16px}
 #scene.land-enhanced .building-menu{padding:16px;max-height:calc(100% - 150px)}
 #scene.land-enhanced .building-menu h2{font-size:17px}
}
@media(prefers-reduced-motion:reduce){
 #scene.land-enhanced button,#scene.land-enhanced .building-plaque{transition:none}
}
/* Keep account, chat and map controls from covering each other. */
#scene.land-enhanced .side-science{display:none}
#scene.land-enhanced>.player-profile:has([data-edit-player-avatar]){padding-left:56px}
body:has(#scene.land-enhanced:not([hidden])) .account-bar{
 position:static;max-width:none;background:transparent;border:0;padding:0;gap:6px;
}
body:has(#scene.land-enhanced:not([hidden])) .account-bar span{display:none}
body:has(#scene.land-enhanced:not([hidden])) .account-bar button{
 background:#1b3041;border-color:#466072;min-height:40px;
}
body:has(#scene.land-enhanced:not([hidden])) .player-chat{
 width:280px;background:#101e2b;border:0;border-radius:8px;box-shadow:0 8px 24px #020a1266;
 bottom:78px;
}
body:has(#scene.land-enhanced:not([hidden])) .player-chat-toggle{background:#1b3041;color:#d6e9f1;letter-spacing:.4px}
body:has(#scene.land-enhanced:not([hidden])) .player-chat-messages{height:64px}
body:has(#scene.land-enhanced:not([hidden])) .player-chat-status{color:#b4c8d5}
body:has(#scene.land-enhanced:not([hidden])) .player-chat input{background:#0b1621;border-color:#466072}
body:has(#scene.land-enhanced:not([hidden])) .player-chat form button{background:#c4e8f0;color:#102431;border-color:#c4e8f0}
body:has(#scene.land-enhanced:not([hidden])) .map-queue-toggle{background:#101e2b;border-color:#466072;color:#edf4f8;border-radius:6px}
body:has(#scene.land-enhanced:not([hidden])) [data-map-queue-body]{background:#101e2b;border-color:#466072}
body:has(#scene.land-enhanced:not([hidden])) .map-queue-toggle b{color:#c5e7ef}
@media(min-width:901px){
 body:has(#scene.land-enhanced:not([hidden])) .game-header{gap:12px;padding:10px 16px}
 body:has(#scene.land-enhanced:not([hidden])) .game-header>b{font-size:17px}
 body:has(#scene.land-enhanced:not([hidden])) .game-header>b small{display:block;font-size:10px;margin-top:4px;letter-spacing:1px}
 body:has(#scene.land-enhanced:not([hidden])) .game-header .stats{margin-left:auto;gap:14px}
 body:has(#scene.land-enhanced:not([hidden])) .game-header .test-label{display:none}
 body:has(#scene.land-enhanced:not([hidden])) .game-header>[data-alert-sound]{margin:0!important}
}
@media(max-width:900px){
 body:has(#scene.land-enhanced:not([hidden])) .mobile-nav{display:none}
 body:has(#scene.land-enhanced:not([hidden])) .player-chat{bottom:142px;width:260px;max-width:calc(100vw - 16px)}
 body:has(#scene.land-enhanced:not([hidden])) .player-chat-messages{height:42px}
 body:has(#scene.land-enhanced:not([hidden])) .player-chat-toggle{min-height:36px}
 #scene.land-enhanced .tools{bottom:142px}
}
@media(max-height:560px){
 body:has(#scene.land-enhanced:not([hidden])) .player-chat-messages{height:30px}
 body:has(#scene.land-enhanced:not([hidden])) .player-chat{bottom:76px;width:230px}
}
/* Transient tasks take precedence over the floating conversation panel. */
body:has(#scene.land-enhanced:not([hidden]) #building-menu:not([hidden])) .player-chat,
body:has(#scene.land-enhanced:not([hidden]) .land-directory:not([hidden])) .player-chat{visibility:hidden}
@media(min-width:901px){
 body:has(#scene.land-enhanced:not([hidden])) .player-chat{left:auto;right:12px;bottom:142px}
}
body:has(#scene.land-enhanced:not([hidden])) .player-chat:has(#player-chat-body[hidden]){width:170px}

/* Shared terrestrial button style for the orbital base and galaxy. */
.sector-viewport :is(.sector-nav,.sector-controls,.sector-top-actions,.sector-commander-links) button{
 background:#101e2b;border:1px solid #466072;border-radius:6px;color:#edf4f8;
 box-shadow:none;text-shadow:none;font-weight:500;
 transition:background .15s ease-out,border-color .15s ease-out,color .15s ease-out;
}
.sector-viewport :is(.sector-nav,.sector-controls,.sector-top-actions,.sector-commander-links) button:hover:enabled{background:#294457;border-color:#a9e5f2;color:#fff}
.sector-viewport :is(.sector-nav,.sector-controls,.sector-top-actions,.sector-commander-links) button:active:enabled{background:#35586b}
.sector-viewport button:focus-visible{outline:2px solid #f4d39c;outline-offset:3px}
.sector-viewport .sector-nav{background:#101e2b;border:0;border-radius:8px;box-shadow:none;gap:6px;grid-template-columns:repeat(8,minmax(0,1fr));width:886px}
.sector-viewport .sector-nav button{min-width:0;min-height:64px;padding:8px 5px;border-color:transparent;font-size:12px}
.sector-viewport .land-route-icon{display:grid;place-items:center;height:30px;margin-bottom:5px;color:#c0e3ee}
.sector-commander-links{display:flex;flex-shrink:0;gap:6px;background:#101e2b;border-radius:6px}
.sector-commander-links button{display:flex;flex-direction:column;align-items:center;gap:5px;min-width:64px;min-height:60px;padding:7px;font-size:11px}
.sector-commander-links button>span{color:#c0e3ee}
@media(max-width:900px){
 .sector-viewport .sector-nav{width:calc(100% - 16px);max-width:none;bottom:8px;padding:5px;gap:4px;overflow-x:auto;grid-template-columns:repeat(8,minmax(72px,1fr))}
 .sector-viewport .sector-nav button{min-height:50px;font-size:11px}
 .sector-viewport .land-route-icon{height:22px;margin-bottom:3px}
 .sector-viewport .land-route-icon svg{width:21px;height:21px}
 .sector-commander-links button{min-width:44px;min-height:44px;font-size:10px}
}
@media(prefers-reduced-motion:reduce){.sector-viewport button{transition:none}}
