/* CARGESIA 5.7 – editorial design system, no decorative gradients / fake metrics. */
:root{--cg57-bg:#0b111b;--cg57-bg2:#111b29;--cg57-line:#283440;--cg57-text:#f4f6f8;--cg57-muted:#a7b4c2;--cg57-accent:#ff8b50;--cg57-wide:1240px}
.cg57-home{background:var(--cg57-bg)!important;color:var(--cg57-text);font-family:Inter,"Segoe UI",system-ui,sans-serif;overflow:hidden}.cg57-home *{box-sizing:border-box}.cg57-home a{color:inherit;text-decoration:none}.cg57-home [id]{scroll-margin-top:100px}.cg57-container{width:min(var(--cg57-wide),calc(100% - 72px));margin-inline:auto}.cg57-home h1,.cg57-home h2,.cg57-home h3,.cg57-home p{margin-top:0}.cg57-home h1,.cg57-home h2,.cg57-home h3{font-weight:700}.cg57-home h1{font-size:clamp(52px,5.9vw,87px);line-height:1.06;letter-spacing:-.068em}.cg57-home h2{font-size:clamp(36px,3.7vw,57px);line-height:1.12;letter-spacing:-.058em}.cg57-home h1 span,.cg57-home h2 span{color:var(--cg57-accent)}.cg57-home a:focus-visible,.cg57-home button:focus-visible{outline:3px solid var(--cg57-accent);outline-offset:4px}.cg57-overline{display:flex;align-items:center;gap:10px;color:#b9c4d0;font-size:11px;font-weight:700;letter-spacing:.16em;line-height:1.5;margin-bottom:22px}.cg57-overline-marker{display:inline-block;width:18px;height:2px;background:var(--cg57-accent)}.cg57-btn{display:inline-flex;justify-content:space-between;align-items:center;gap:36px;padding:15px 19px;font-size:13px;font-weight:700;line-height:1.25;transition:background .18s,color .18s}.cg57-btn-primary{background:var(--cg57-accent);color:#14100d!important;border:1px solid var(--cg57-accent)}.cg57-btn-primary:hover{background:#ffa476;border-color:#ffa476}.cg57-btn-quiet{color:#eaf1f7;border:1px solid #405263}.cg57-btn-quiet:hover{background:#1b2939}.cg57-underlink{display:inline-flex;gap:28px;align-items:center;padding-bottom:8px;border-bottom:1px solid var(--cg57-accent);color:#f2f5f9!important;font-size:13px;font-weight:750}.cg57-underlink:hover{color:var(--cg57-accent)!important}.cg57-hero{background:#0c1421}.cg57-hero-layout{display:grid;grid-template-columns:1fr 1.05fr;gap:clamp(48px,6vw,90px);align-items:center;min-height:680px;padding-block:95px 110px}.cg57-hero-copy h1{max-width:630px;margin:0 0 28px}.cg57-lead{font-size:18px;line-height:1.78;color:#b8c4d0;max-width:540px;margin-bottom:35px}.cg57-actions{display:flex;gap:12px;flex-wrap:wrap}.cg57-hero-aside{margin-top:76px;display:flex;gap:20px;flex-wrap:wrap;color:#718295;font-size:10px;font-weight:700;letter-spacing:.13em}.cg57-hero-composition{min-width:0;position:relative;padding:15px 0 0 25px}.cg57-console{position:relative;background:#111e2d;border:1px solid #344454;box-shadow:18px 25px 0 #060b12;overflow:hidden}.cg57-console-top{display:flex;justify-content:space-between;gap:12px;align-items:center;border-bottom:1px solid #334556;padding:15px 18px;color:#b6c6d2;font-size:10px;font-weight:700;letter-spacing:.1em}.cg57-console-top .cg57-mono{display:inline-grid;place-items:center;background:var(--cg57-accent);color:#161310;width:22px;height:22px;margin-right:6px}.cg57-console-top i{font-style:normal;color:#657c91;padding-inline:4px}.cg57-console-mode{font-size:9px;color:#8297a9}.cg57-console-body{padding:38px 31px 26px}.cg57-console-label{font-size:10px;letter-spacing:.17em;color:var(--cg57-accent);font-weight:800}.cg57-console-body h2{margin:12px 0 5px;font-size:clamp(23px,2.4vw,34px);letter-spacing:-.045em}.cg57-console-body p{font-size:13px;color:#a9bbca;margin-bottom:27px}.cg57-flow{display:flex;align-items:stretch;gap:7px;margin-bottom:34px}.cg57-flow>div{flex:1;min-width:0;border:1px solid #364d61;padding:13px 10px;background:#182b40}.cg57-flow>div:nth-of-type(2){border-color:#ff8b506b}.cg57-flow>div span,.cg57-flow>div strong,.cg57-flow>div small{display:block}.cg57-flow>div span{font-size:10px;font-weight:800;color:var(--cg57-accent);margin-bottom:19px}.cg57-flow>div strong{font-size:13px;color:#edf4f7}.cg57-flow>div small{font-size:10px;margin-top:3px;color:#a9bccb}.cg57-flow i{width:9px;height:1px;background:var(--cg57-accent);align-self:center;flex:none}.cg57-console-bottom{display:flex;justify-content:space-between;align-items:center;gap:10px;border-top:1px solid #304355;padding-top:19px;font-size:10px;color:#8498aa}.cg57-console-bottom a{color:var(--cg57-accent);font-weight:750;font-size:12px}.cg57-hero-game{display:flex;align-items:flex-end;position:relative;overflow:hidden;isolation:isolate;min-height:170px;width:78%;margin:-17px 0 0 auto;background:#142131;border:1px solid #526070;box-shadow:0 15px 36px #0006}.cg57-hero-game img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:brightness(.51) saturate(.75);z-index:-1}.cg57-hero-game>span{display:block;padding:15px 20px;width:100%}.cg57-hero-game small,.cg57-hero-game strong,.cg57-hero-game em{display:block}.cg57-hero-game small{font-size:9px;letter-spacing:.16em;color:#d1d5dc;font-weight:700}.cg57-hero-game strong{font-size:24px;letter-spacing:-.04em;margin:4px 0}.cg57-hero-game strong span{color:var(--cg57-accent)}.cg57-hero-game em{font-style:normal;color:#d6e0e8;font-size:11px}.cg57-hero-divider{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #263543;min-height:56px;gap:15px;font-size:10px;letter-spacing:.11em;color:#8295a9}.cg57-hero-divider a{font-size:12px;color:#bdc6d1;letter-spacing:0}.cg57-work{padding-block:122px 95px}.cg57-section-head{display:flex;align-items:end;justify-content:space-between;gap:42px;margin-bottom:48px}.cg57-section-head h2{margin-bottom:0}.cg57-section-head>p{max-width:320px;font-size:15px;color:#a7b7c6;line-height:1.8;margin:0 0 8px}.cg57-feature-list{display:grid;gap:18px}.cg57-feature{display:grid;grid-template-columns:.9fr 1.1fr;min-height:385px;background:#131f2d;border:1px solid #2f3e4e}.cg57-feature-text{display:flex;flex-direction:column;padding:40px 45px}.cg57-feature-meta{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;font-size:10px;font-weight:800;letter-spacing:.12em;color:#9eafbf;margin-bottom:auto}.cg57-feature-meta span:last-child{color:#ffab7c}.cg57-feature h3{font-size:clamp(38px,4.2vw,62px);line-height:1;letter-spacing:-.055em;margin:30px 0 16px}.cg57-feature p{font-size:15px;line-height:1.75;color:#b7c4d0;max-width:460px;margin-bottom:25px}.cg57-feature-text>a,.cg57-feature-links{margin-top:auto}.cg57-feature-links{display:flex;align-items:center;gap:24px;flex-wrap:wrap}.cg57-secondary-link{border-color:#546171}.cg57-feature-image{min-height:350px;position:relative;overflow:hidden;background:#151f2a}.cg57-feature-image img{width:100%;height:100%;object-fit:cover;filter:saturate(.83);transition:transform .4s}.cg57-feature:hover .cg57-feature-image img{transform:scale(1.02)}.cg57-feature-image>span{position:absolute;bottom:0;right:0;padding:9px 12px;background:#0b111bd9;color:#f3e8df;font-size:9px;letter-spacing:.08em}.cg57-feature-game{background:#151b25}.cg57-directory{padding-block:38px 130px}.cg57-directory-title{display:flex;justify-content:space-between;gap:24px;align-items:end;margin-bottom:34px}.cg57-directory h2{font-size:clamp(30px,3.2vw,43px);margin:0}.cg57-directory-table{border-top:1px solid #34424f}.cg57-directory-row{display:grid;grid-template-columns:120px minmax(0,1fr) 180px 26px;gap:15px;align-items:center;padding:26px 7px;border-bottom:1px solid #2c3b48;transition:background .18s}.cg57-directory-row:hover{background:#162331}.cg57-list-category{color:var(--cg57-accent);font-size:10px;letter-spacing:.12em;font-weight:750}.cg57-list-name strong{font-size:19px;font-weight:650;letter-spacing:-.025em;display:block}.cg57-list-name small{font-size:13px;color:#a0b0bd;margin-top:5px;display:block}.cg57-list-status{font-size:12px;color:#b0bdc8}.cg57-list-arrow{font-size:19px;color:#f4f5f7}.cg57-lab{border-block:1px solid #33414d;background:#151f2d}.cg57-lab-layout{display:grid;grid-template-columns:1fr .88fr;gap:85px;align-items:center;padding-block:95px}.cg57-lab h2{margin-bottom:22px}.cg57-lab p:not(.cg57-overline){font-size:16px;color:#b7c4d0;line-height:1.75;max-width:515px;margin-bottom:30px}.cg57-lab-layout>div>small{display:block;color:#8ea1b3;font-size:12px;margin-top:16px}.cg57-lab-art{border:1px solid #56657a;background:#0e1725;display:block;padding:21px;transition:border-color .15s}.cg57-lab-art:hover{border-color:var(--cg57-accent)}.cg57-lab-top,.cg57-lab-bottom{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:11px;letter-spacing:.09em;color:#abbac6}.cg57-lab-top em{font-style:normal;color:var(--cg57-accent)}.cg57-lab-bottom{border-top:1px solid #344455;padding-top:15px;margin-top:14px}.cg57-lab-bottom b{color:#e2e7eb;font-size:10px}.cg57-lab-bottom span{color:var(--cg57-accent);font-weight:750}.cg57-lab-board{display:grid;grid-template-columns:repeat(6,1fr);gap:5px;margin-top:20px;min-height:285px}.cg57-lab-cell{display:block;background:#213b35;position:relative;border:1px solid #3d5950}.cg57-lab-cell:after{position:absolute;content:'';inset:28% 34%;background:#50735d}.cg57-lab-f:after{background:#3c8163;clip-path:polygon(50% 0,100% 85%,0 85%)}.cg57-lab-n{background:#213941}.cg57-lab-n:after{background:#405964;clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%)}.cg57-lab-p:after{background:#415e51;width:0;height:0}.cg57-lab-l:after,.cg57-lab-k:after,.cg57-lab-h:after,.cg57-lab-s:after,.cg57-lab-r:after,.cg57-lab-m:after{inset:23%;background:#d98a55;border:3px solid #ffb887}.cg57-lab-h:after{border-radius:50%;background:#fca76f}.cg57-lab-r:after{border-radius:100%;background:#ffb15a}.cg57-lab-m:after{background:#9fb2aa}.cg57-approach{display:grid;grid-template-columns:.85fr 1fr;gap:95px;padding-block:120px 135px}.cg57-approach-lead h2{margin:0}.cg57-approach-items{border-top:1px solid #344350}.cg57-approach-items article{border-bottom:1px solid #344350;padding:24px 4px;display:grid;grid-template-columns:44px 1fr;gap:17px}.cg57-approach-items article>span{font-size:12px;color:var(--cg57-accent)}.cg57-approach-items h3{font-size:20px;margin-bottom:7px;letter-spacing:-.03em}.cg57-approach-items p{color:#aab9c7;font-size:14px;line-height:1.65;max-width:500px;margin:0}.cg57-en-cta{padding:75px 0}.cg57-home .cg-contact{background:#101b29;padding:95px 0;border-top:1px solid #2c3947}.cg57-home .cg-contact-intro h2{font-size:clamp(38px,4.2vw,62px);line-height:1.1;letter-spacing:-.055em}.cg57-home .cg-contact-intro h2 em{color:var(--cg57-accent);font-style:normal}.cg57-home .cg-contact-box{background:#182737;border:1px solid #344555;border-radius:0;box-shadow:none}.cg57-home .cg-contact-form input:not([type=checkbox]),.cg57-home .cg-contact-form select,.cg57-home .cg-contact-form textarea{border-radius:2px}.cg57-home .cg-contact-form .cg-button{border-radius:2px;background:var(--cg57-accent)}
/* Global studio-wide coherence: flat surfaces, consistent rhythm & navigation. */
.cg57-header.cg-portal-header{position:relative;background:#0b111b;border-bottom:1px solid #293644}.cg57-header.cg-portal-header .nav-wrap{height:74px;width:min(var(--cg57-wide),calc(100% - 72px))}.cg57-header .brand-mark{border-radius:4px!important;background:#ff8b50!important}.cg57-header .brand-copy strong{letter-spacing:.06em}.cg57-header .brand-copy small{font-size:9px;letter-spacing:.12em}.cg57-header .header-actions .btn{border-radius:3px!important}.cg57-header .nav-list>li>a,.cg57-header .cg-submenu-toggle{font-size:13px}.cg57-header .cg-submenu{border-radius:3px;box-shadow:0 18px 40px #0006}.cg57-header .menu-toggle{border-radius:3px}.cg57-header .cg-portal-mobile-contact{display:none}
.cg57-project-rail{background:#0c1724;border-bottom:1px solid #2d3a48;color:#bac6d2}.cg57-project-rail .cg57-rail-inner{width:min(var(--cg57-wide),calc(100% - 72px));margin:auto;min-height:45px;display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:11px}.cg57-project-rail a{color:#c3d1db;text-decoration:none}.cg57-project-rail a:hover{color:#ff935c}.cg57-project-rail strong{color:#fff;font-weight:750}.cg57-project-rail .cg57-rail-links{display:flex;align-items:center;gap:22px}.cg57-project-rail .cg57-rail-label{color:#ff9c67;text-transform:uppercase;letter-spacing:.08em;font-weight:700}.cg-product-page,.ff-page,.cg-game{--portal-orange:#ff8b50}.cg-product-page .cg39-hero,.cg-product-page .cg-premium-hero{background:#0d1725}.cg-product-page .cg39-hero h1,.cg-product-page .cg-premium-hero h1{letter-spacing:-.055em;line-height:1.12}.cg-product-page .cg39-hero em,.cg-product-page .cg-premium-hero em{color:#ff8b50}.cg-product-page .cg39-feature,.cg-product-page .cg-premium-cards article{border-radius:4px;box-shadow:none}.cg-product-page .cg39-art,.cg-product-page .cg-premium-art{border-radius:6px}.cg-product-page .cg-button,.cg-product-page .cg39-cta .cg-button{border-radius:3px}.cg-product-page .cg39-section,.cg-product-page .cg-premium-section{scroll-margin-top:80px}.cg-product-page .cg39-feature span{font-weight:750;color:#db713f}.cg-product-page .cg-portfolio-grid .cg-port-card{border-radius:5px;box-shadow:none}.cg-product-page .cg-port-card .cg-port-media{overflow:hidden}.cg-product-page .cg-port-cta{border-radius:4px}.ff56-page .ff56-hero{background:#0d1725}.ff56-page .ff56-art{border-radius:3px;box-shadow:none}.ff56-page .ff56-resources>div,.ff56-page .ff56-tools,.ff56-page .ff56-map-wrap,.ff56-page .ff56-inspector,.ff56-page .ff56-goal,.ff56-page .ff56-energy{border-radius:3px;box-shadow:none}.ff56-page .ff56-build-menu button,.ff56-page .ff56-reset{border-radius:2px}.ff56-page .ff56-hero h1{letter-spacing:-.055em}
@media(max-width:1100px){.cg57-hero-layout{gap:35px;grid-template-columns:1fr 1fr}.cg57-hero-copy h1{font-size:clamp(47px,5.5vw,75px)}.cg57-hero-aside{margin-top:38px}.cg57-lab-layout{gap:45px}.cg57-approach{gap:50px}}@media(max-width:780px){.cg57-container,.cg57-header.cg-portal-header .nav-wrap,.cg57-project-rail .cg57-rail-inner{width:calc(100% - 36px)}.cg57-hero-layout{display:flex;flex-direction:column;align-items:stretch;padding-block:65px 70px;min-height:0}.cg57-hero-copy h1{font-size:clamp(46px,8vw,65px)}.cg57-lead{font-size:16px}.cg57-hero-composition{padding:0 14px 0 0}.cg57-hero-game{width:84%}.cg57-section-head{align-items:start;flex-direction:column;gap:16px}.cg57-section-head>p{max-width:600px}.cg57-work{padding-block:85px 55px}.cg57-feature{grid-template-columns:1fr;min-height:unset}.cg57-feature-text{padding:28px}.cg57-feature-image{min-height:290px;max-height:320px}.cg57-feature h3{margin-top:30px}.cg57-directory{padding-bottom:90px}.cg57-directory-row{grid-template-columns:90px minmax(0,1fr) 18px;gap:10px}.cg57-list-status{grid-column:2;grid-row:2}.cg57-list-arrow{grid-column:3;grid-row:1}.cg57-lab-layout{grid-template-columns:1fr;gap:45px;padding-block:70px}.cg57-approach{grid-template-columns:1fr;gap:35px;padding-block:85px}.cg57-project-rail .cg57-rail-links{gap:13px}.cg57-header .cg-portal-mobile-contact{display:list-item}.cg57-home .cg-contact{padding:65px 0}}@media(max-width:480px){.cg57-hero-copy h1{font-size:clamp(42px,11vw,56px)}.cg57-hero-aside{gap:8px 16px}.cg57-console-body{padding:25px 16px}.cg57-console-top{padding:12px 10px}.cg57-console-top .cg57-console-mode{display:none}.cg57-flow>div{padding:9px 5px}.cg57-flow>div strong{font-size:11px}.cg57-hero-game{min-height:145px}.cg57-hero-game strong{font-size:21px}.cg57-directory-title{flex-direction:column;align-items:start}.cg57-directory-row{grid-template-columns:70px 1fr 18px}.cg57-list-category{font-size:9px}.cg57-list-name strong{font-size:17px}.cg57-lab-board{min-height:210px}.cg57-feature-links{gap:15px}.cg57-home h2{font-size:38px}.cg57-hero-divider{font-size:9px}.cg57-hero-divider span{max-width:200px}.cg57-project-rail .cg57-rail-label{display:none}}
@media(prefers-reduced-motion:reduce){.cg57-home *{transition:none!important;scroll-behavior:auto!important}}
/* Economy Lab 0.2: sober operational UI + actual simulation controls. */
.ff57-tutorial{display:flex;justify-content:space-between;align-items:center;gap:20px;background:#182a3a;border-left:3px solid #ff9056;padding:17px 22px;margin-bottom:14px}.ff57-tutorial strong{display:block;color:#f3f5f7;font-size:15px;font-weight:650;margin-top:7px;line-height:1.45}.ff57-tutorial-count{color:#ff9e64;font-weight:750;white-space:nowrap;font-size:13px}.ff57-time-controls{display:flex;gap:3px;margin-left:auto;padding:3px;border:1px solid #455468;background:#0c1725}.ff57-time-controls button{color:#aebdcb;background:transparent;border:0;cursor:pointer;padding:7px 9px;min-height:32px;font-size:11px;white-space:nowrap}.ff57-time-controls button[aria-pressed=true]{background:#ff8b50;color:#170f0d;font-weight:800}.ff57-time-controls button:hover:not([aria-pressed=true]){background:#304151;color:#fff}.ff56-page .ff56-map-top{flex-wrap:wrap}.ff57-history{margin-top:20px;padding-top:16px;border-top:1px solid #354657}.ff57-history h4{color:#fff;margin:0 0 11px;font-size:14px}.ff57-history ol{padding-left:19px;margin:0;display:grid;gap:7px}.ff57-history li{font-size:11px;color:#a9bac8;line-height:1.55}.ff56-page .ff56-inspector-main>button[data-ff57-remove]{border-color:#65778a;color:#c7d4db;background:transparent}.ff56-page .ff56-inspector-main>button[data-ff57-remove]:hover{border-color:#ff8b50;color:#ffb28b}.ff56-page .ff56-resources>div{background:#182635}.ff56-page .ff56-grid-frame{background:#15262b;border-radius:2px}.ff56-page .ff56-grid button{background:#32483e;border:1px solid #4a6556;border-radius:1px;box-shadow:inset 0 0 0 1px #14271c55}.ff56-page .ff56-grid .ff56-forest{background:#2a4937}.ff56-page .ff56-grid .ff56-ore{background:#40505a}.ff56-page .ff56-grid .ff56-building{background:#63716e}.ff56-page .ff56-grid .ff56-hq{background:#bd7c4b}.ff56-page .ff56-grid .ff57-kind-radar{background:#c17a44}.ff56-page .ff56-grid .ff57-kind-plant{background:#86674e}.ff56-page .ff56-grid .ff57-kind-mine{background:#5b6362}.ff56-page .ff56-grid button>span{font-family:system-ui,sans-serif;font-size:clamp(16px,2vw,25px);font-weight:700;text-shadow:none;color:#e8eadc}.ff56-page .ff56-build-menu button>span{font-size:22px;font-family:system-ui,sans-serif;font-weight:800;color:#f5a976}.ff56-page .ff56-art img{filter:saturate(.75)}.ff56-page .ff56-grid button.ff56-selected{outline:3px solid #ff9959;outline-offset:-2px}.ff56-page .ff56-grid button:hover{filter:brightness(1.12)}
@media(max-width:680px){.ff57-tutorial{padding:14px}.ff57-time-controls{margin-left:0;order:3;flex:1;width:100%;justify-content:space-evenly}.ff57-time-controls button{flex:1}.ff56-page .ff56-grid button>span{font-size:clamp(14px,4vw,24px)}}
