main.generatedUI{--country-width:270px;--hud-height:76px;--dock-height:92px;--cyan:#4df3eb;--mint:#7ce6cf}
.generatedUI #attackProgress,.generatedUI .regionPanel,.generatedUI #autoHud,.generatedUI #upgrades,.generatedUI .mobileDock,.generatedUI .brand,.generatedUI .leakProgress{display:none!important}
.generatedUI header{position:absolute;left:0;right:var(--country-width);top:0;width:auto;height:var(--hud-height);padding:8px 14px;display:flex;align-items:center;gap:10px;background:linear-gradient(180deg,#061923,#03121c);border:0;border-bottom:1px solid #3c9ba4;z-index:4}
.generatedUI .hudLeak{flex:1;min-width:115px}.generatedUI .hudLeakTitle{font-weight:700;color:#e3f4f3;font-size:16px;white-space:nowrap}.generatedUI .hudLeakTitle>strong{font-size:16px}.generatedUI .hudLeakTitle::first-letter{color:#f37679}.generatedUI .globalTrack{height:8px;border:1px solid #346978;border-radius:6px;background:#14333e;margin:5px 0;overflow:hidden}.generatedUI #globalFill{display:block;height:100%;background:linear-gradient(90deg,#1cbeb9,#9efdeb);box-shadow:0 0 12px #44f0e1}.generatedUI .hudLeakMeta{display:flex;justify-content:space-between;gap:8px;font-size:10px;color:#87b9c2}.generatedUI #hudPressure.danger{color:#ff9b7d}
.generatedUI header #crewSlots,.generatedUI header #aiSlots,.generatedUI header #mobileSpeed,.generatedUI header #pause{display:flex;align-items:center;justify-content:center;gap:6px;min-width:55px;height:46px;padding:7px 10px;border:1px solid #347f8d;border-radius:12px;background:linear-gradient(#13313e,#051722);color:#b8fcf3;font-size:17px;white-space:nowrap;box-shadow:inset 0 1px #98dfe626}
.generatedUI header #crewSlots .gameIcon{width:25px;height:25px}.generatedUI header #crewSlots::before{display:none!important}.generatedUI header #aiSlots{font-size:13px;color:#d5aeff;border-color:#78619d}.generatedUI header #aiSlots[hidden]{display:none!important}.generatedUI header #pause{min-width:46px;width:46px;padding:0;font-size:23px}
.generatedUI footer{position:absolute;left:12px;right:calc(var(--country-width) + 12px);bottom:12px;width:auto;height:calc(var(--dock-height) - 24px);display:flex;gap:0;align-items:center;padding:7px 9px;background:linear-gradient(#12333eeb,#061925f5);border:1px solid #55d6d2;border-radius:16px;box-shadow:0 0 14px #39e9d329,inset 0 0 12px #3ce7d415;z-index:4}
.generatedUI > #newsTicker{position:static;inset:auto;transform:none;width:auto;min-width:70px;flex:1;height:100%;margin:0;padding:6px 10px;border:0;border-radius:9px;display:flex;align-items:center;gap:9px;background:none;font-size:15px;color:#e6f9f6;text-align:left;overflow:hidden}
.generatedUI #newsTicker #tickerLine{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;min-width:0}.generatedUI .tickerBadge{font-size:12px;letter-spacing:.08em;border:1px solid #53aab6;border-radius:16px;padding:7px 10px;background:#124454;color:#d8ffff}.generatedUI .tickerArrow{font-size:30px;color:#88d9d4}
.generatedUI footer .budget{display:flex;align-items:center;justify-content:center;width:auto;padding:0 16px;flex-shrink:0;border-left:1px solid #398994;height:75%}.generatedUI footer .budget>small,.generatedUI footer #bottomDate{display:none}.generatedUI footer #funds{font-size:26px;color:#f4be6d;line-height:1;white-space:nowrap}
.generatedUI footer #mobileSkills{display:flex;align-items:center;justify-content:center;min-width:125px;height:100%;padding:8px 14px;background:linear-gradient(#154749,#073332);border:1px solid #91ffe6;border-radius:12px;font-weight:700;font-size:19px;color:#dcfff7;box-shadow:0 0 12px #4df6da55}
.generatedUI #countryList{position:absolute;inset:0 0 0 auto;width:var(--country-width);padding:0 10px;background:linear-gradient(90deg,#04131cf7,#071c25);border-left:1px solid #3e97a0;z-index:5;max-height:none;display:flex}.generatedUI #countryList>div:first-child{display:none}.generatedUI #countryListRows{padding:0 0 12px;flex:1;min-height:0;scrollbar-color:#4ba9b0 #09212c;overflow:auto;scroll-padding-top:26px}
.generatedUI .countryGroup[hidden]{display:none}.generatedUI .countryGroup h2{position:sticky;top:0;z-index:2;margin:0;padding:9px 4px 7px;background:#071b25f5;font-size:11px;letter-spacing:.12em;color:#89b8c4;display:flex;justify-content:space-between}.generatedUI .countryGroup h2 small{font-size:10px;font-weight:400}
.generatedUI #countryListRows button{position:relative;display:flex;flex-direction:column;align-items:stretch;width:100%;min-height:104px;margin:0 0 9px;padding:12px 13px;border:1px solid #338693;border-radius:12px;background:linear-gradient(135deg,#10323b,#06151f 80%);box-shadow:inset 0 1px #a8ffff12;text-align:left;color:#e0f0f0}.generatedUI #countryListRows button.active{border-color:#a4ffe9;box-shadow:0 0 10px #65f4dd44,inset 0 0 12px #65f4dd18;background:linear-gradient(135deg,#15453f,#071a23)}
.generatedUI #countryListRows strong{font-size:20px;font-weight:700;line-height:1.3;white-space:normal}.generatedUI .countryRegion{font-size:9px;color:#6696a8;letter-spacing:.08em;margin-bottom:4px}.generatedUI #countryListRows small{font-size:11px;line-height:1.5;color:#9bbbc4}.generatedUI #countryListRows .countryStats{font-size:10px;color:#88aab9;margin:4px 0}.generatedUI .countryUnits{font-size:11px;color:#a8dbd4;margin:4px 0}.generatedUI .countryUnits[hidden]{display:none}.generatedUI .countryLeakBar{display:block;height:4px;background:#1b3a47;margin:4px 0 2px;border-radius:4px;overflow:hidden}.generatedUI .countryLeakBar i{display:block;height:100%;background:#6ad9c6}
.generatedUI .countryAttacks{display:flex;flex-direction:column;gap:8px;margin-top:4px}.generatedUI .countryAttack{display:grid;grid-template-columns:1fr auto;gap:4px;font-size:11px;color:#b1e6dc}.generatedUI .countryAttack>span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.generatedUI .countryAttack b{font-size:11px;font-weight:500}.generatedUI .countryAttackTrack{grid-column:1/-1;height:6px;border-radius:5px;background:#173541;overflow:hidden}.generatedUI .countryAttackTrack>i{display:block;height:100%;background:linear-gradient(90deg,#0cc6c4,#9cfce5);border-radius:5px}.generatedUI .countryAttack.aiAttack{color:#d3b1ff}.generatedUI .hasAttacks .countryLeakBar{height:2px;opacity:.6}
.generatedUI #newsDrawer{position:absolute;top:var(--hud-height);right:calc(var(--country-width) + 10px);bottom:var(--dock-height);width:min(370px,calc(100% - var(--country-width) - 20px));background:#081d28f5;border:1px solid #467f8e;border-radius:12px;z-index:8}.generatedUI #newsDrawer #closeNews{min-height:44px}
.generatedUI .node{font-size:12px;min-width:44px;min-height:44px;color:#cbe7e6;text-shadow:0 2px 5px #000,0 0 8px #000}.generatedUI .node::before{width:9px;height:9px;border:2px solid #4fe6de;background:#2ce0db;box-shadow:0 0 0 3px #104453,0 0 14px #40d6de77;margin-bottom:6px}.generatedUI .node.selected::before,.generatedUI .node.attacked::before{background:#ff7c8a;border-color:#ffc2c4;outline:1px solid #ff858c;outline-offset:4px;box-shadow:0 0 20px #ff5876}.generatedUI #pausedTag{top:calc(var(--hud-height) + 9px);left:14px;transform:none;font-size:10px;opacity:.7}
.generatedUI #attackPanel{padding:10px;border:1px solid #66eddb;border-radius:13px;background:#09212df5;box-shadow:0 0 16px #44e5cb38;z-index:7;overscroll-behavior:contain}.generatedUI #attackPanel .attackHeading{position:sticky;top:-10px;z-index:2;background:#09212d;min-height:36px;display:flex;align-items:center;padding:3px 0 8px;margin-bottom:4px}.generatedUI #attackPanel .attackHeading strong{font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.generatedUI #attackPanel .attackHeading>span{font-size:10px;margin-left:auto}.generatedUI #attackPanel #closeAttacks{width:36px;height:36px;font-size:27px;flex-shrink:0}.generatedUI #attackPanel #withdraw{font-size:11px;min-height:34px;padding:5px 8px;border-radius:var(--attack-card-radius,8px)}.generatedUI #attackPopulation{font-size:11px;color:#9ac6c5;margin:0 0 9px}.generatedUI #attackChoices{display:grid;grid-template-columns:1fr 1fr;gap:7px}.generatedUI #attackChoices .attackChoice{min-height:58px;display:grid;grid-template-columns:24px minmax(0,1fr);gap:4px 7px;padding:8px;border:1px solid #379ca5;border-radius:var(--attack-card-radius,8px);background:linear-gradient(#0e3440,#08212e);color:#cbeae9}.generatedUI #attackChoices .attackChoice .gameIcon{width:24px;height:24px;grid-row:span 2;color:#7ce8df}.generatedUI #attackChoices .attackChoice strong{font-size:12px;line-height:1.3;white-space:normal}.generatedUI #attackChoices .attackChoice small{display:block;grid-column:2;font-size:10px;line-height:1.4;white-space:normal}.generatedUI #attackChoices .attackChoice:disabled{opacity:.55}.generatedUI #attackChoices .attackChoice.on{border-color:#aaffdd;box-shadow:inset 0 0 10px #74f2cd22}.generatedUI #attackChoices .attackChoice[data-kind=nuclear]{border-color:#b69476}.generatedUI #attackChoices .attackChoice[data-kind=market]{border-color:#79dc93}
@media(max-width:1100px) and (max-height:600px),(max-width:600px) and (orientation:portrait){main.generatedUI{--country-width:190px;--hud-height:56px;--dock-height:76px}.generatedUI header{padding:5px 9px;gap:6px}.generatedUI .hudLeakTitle,.generatedUI .hudLeakTitle>strong{font-size:12px}.generatedUI .hudLeakMeta{font-size:8px;gap:4px}.generatedUI header #crewSlots,.generatedUI header #aiSlots,.generatedUI header #mobileSpeed,.generatedUI header #pause{height:44px;min-width:44px;font-size:12px;padding:5px 7px;border-radius:9px}.generatedUI header #aiSlots{font-size:10px}.generatedUI header #crewSlots .gameIcon{width:21px;height:21px}.generatedUI header #pause{font-size:22px}.generatedUI footer{left:8px;right:calc(var(--country-width) + 8px);bottom:8px;height:58px;padding:5px 6px;border-radius:12px}.generatedUI > #newsTicker{padding:4px;gap:5px;font-size:12px}.generatedUI .tickerBadge{padding:5px 6px;font-size:9px}.generatedUI .tickerArrow{font-size:22px}.generatedUI footer .budget{padding:0 9px}.generatedUI footer #funds{font-size:20px}.generatedUI footer #mobileSkills{min-width:92px;padding:5px 9px;font-size:14px;border-radius:9px}.generatedUI #countryList{padding:0 6px}.generatedUI #countryListRows button{min-height:84px;margin-bottom:7px;padding:9px 10px;border-radius:9px}.generatedUI #countryListRows strong{font-size:15px}.generatedUI .countryGroup h2{font-size:10px;padding:7px 4px}.generatedUI #countryListRows small,.generatedUI .countryAttack{font-size:10px}.generatedUI .countryUnits{font-size:10px}.generatedUI .countryRegion{font-size:8px}.generatedUI .node{font-size:10px}.generatedUI #newsDrawer{top:62px;bottom:82px}.generatedUI #attackPanel .attackHeading strong{font-size:14px}.generatedUI #attackChoices .attackChoice strong{font-size:11px}.generatedUI #attackChoices .attackChoice small{font-size:9px}.generatedUI #attackChoices .attackChoice{padding:7px;min-height:55px}}

.generatedUI .globalTrack{width:100%;max-width:none}.generatedUI #runTime,.generatedUI #globalPercent{font-size:10px;line-height:1.3;display:inline;position:static;color:#91d5d8}.generatedUI #mobileSound{display:none!important}
@media(max-width:1100px) and (max-height:600px),(max-width:600px) and (orientation:portrait){.generatedUI #runTime,.generatedUI #globalPercent{font-size:8px}}
.generatedUI #mapViewport{clip-path:inset(var(--hud-height) var(--country-width) var(--dock-height) 0)}
.generatedUI > #newsTicker #tickerLine{position:static;display:block;transform:none;animation:none;line-height:1.4;margin:0;font-size:inherit}.generatedUI > #newsTicker::before{display:none}
.generatedUI #attackPanel #withdraw{display:block!important}

.glossaryButton{min-height:44px;padding:8px 12px;border:1px solid #467f8e;border-radius:8px;background:#102d39;color:#cbe7e6;white-space:nowrap}.hudGlossary{font-size:11px}#hackerName{min-height:44px;max-width:210px;padding:8px 12px;border:1px solid #467f8e;border-radius:8px;background:#102d39;color:#d8eeee;font:inherit}#hackerNameHint{display:block;color:#91aeb7;font-size:11px;margin:4px 0 10px}#introGlossary{margin:0 10px 10px 0}@media(max-width:1100px){.hudGlossary{padding:5px;font-size:10px}}

.intro .scenario[hidden]{display:none!important}

.introContent>.basePicker{display:grid;grid-template-columns:100px minmax(0,330px);align-items:center;gap:12px;width:442px;max-width:100%;margin:12px 0 0;font-size:12px}.introContent>.basePicker .choiceTrigger,.introContent>.basePicker #hackerName{box-sizing:border-box;width:100%;max-width:none;min-height:44px;height:44px;margin:0;padding:8px 12px;border:1px solid #467f8e;border-radius:8px;background:#102d39;color:#d8eeee;font:inherit;text-align:left}.newsStack{position:absolute;z-index:25;left:50%;top:50%;transform:translate(-50%,-50%);width:min(520px,80%);pointer-events:none}
.retreatNotice{position:absolute;bottom:calc(100% + 7px);left:50%;transform:translateX(-50%);width:max-content;max-width:100%;box-sizing:border-box;padding:6px 12px;border:1px solid #ff6271;border-radius:7px;background:#561c28;color:#ffdbe0;font-size:11px;text-align:center}
.majorNews{display:flex;align-items:center;gap:16px;width:100%;box-sizing:border-box;padding:18px;border:1px solid #69ded6;border-radius:12px;background:#0a2331f5;box-shadow:0 12px 45px #0009,0 0 18px #4de2d52a;pointer-events:none}.majorNews[hidden]{display:none}.majorNews>span{display:grid;place-items:center;align-self:stretch;min-width:72px;border:1px solid #4bafb9;border-radius:8px;background:linear-gradient(135deg,#195968,#0b283a);color:#a7fff0;font-weight:800;letter-spacing:.08em}.majorNews strong{display:block;white-space:pre-line;color:#effffb;font-size:18px;line-height:1.5;overflow-wrap:anywhere}.majorNews p{color:#a8c7cd;font-size:12px;line-height:1.6;margin:6px 0 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.majorNews.arrive{animation:majorArrival .25s ease-out}@keyframes majorArrival{from{opacity:0;translate:0 8px}to{opacity:1;translate:0 0}}@media(max-width:1100px){.newsStack{width:min(450px,75%)}.majorNews{padding:12px;gap:10px}.majorNews strong{font-size:14px}.majorNews p{font-size:10px}.majorNews>span{min-width:54px;font-size:12px}}@media(prefers-reduced-motion:reduce){.majorNews.arrive{animation:none}}

.generatedUI .countryUnits{display:none!important}.generatedUI #countryListRows button:not(.hasAttacks) .countryAttacks{display:none}.generatedUI #countryListRows .countryStats{display:flex;align-items:baseline;justify-content:space-between;gap:8px;order:2;font-size:11px;white-space:nowrap}.generatedUI .countryNumbers{min-width:0}.generatedUI .countryPercent{margin-left:auto;font-weight:700;color:#b6ece2}.generatedUI .countryLeakBar{order:3}.generatedUI .countryCounter{order:4;color:var(--counter-ink);font-size:11px;margin-top:5px}.generatedUI .countryCounter[hidden]{display:none}.generatedUI .countryAttacks{order:5;max-height:94px;overflow:auto;gap:5px;padding-top:3px}.generatedUI #attackChoices .attackChoice.countered{border-color:var(--counter-border);background:var(--counter-bg)}.generatedUI #attackChoices .attackChoice.countered strong,.generatedUI #attackChoices .attackChoice.countered .gameIcon{color:var(--counter-ink)}.generatedUI #attackChoices .attackChoice.countered small{color:var(--counter-ink);white-space:nowrap}

.glossarySectionTitle{font-size:21px;color:#a2f2e4;border-bottom:1px solid #376b77;padding:0 0 10px;margin:24px 0 20px}.glossarySection:first-child .glossarySectionTitle{margin-top:0}.glossaryTerm{font-size:16px;color:#edbc76;margin:22px 0 10px}.glossarySection p{font-size:14px;line-height:1.8}

.userPaused *, .userPaused *::before, .userPaused *::after{animation-play-state:paused!important}

.generatedUI #attackChoices .attackChoice.mysteryAttack{display:flex;align-items:center;justify-content:center}.generatedUI #attackChoices .attackChoice.mysteryAttack strong{margin:0;text-align:center}

.generatedUI #pausedTag{display:none!important}

.intro .start,.intro #introGlossary{box-sizing:border-box;height:44px;min-height:44px;margin-top:12px;padding:8px 14px;border-radius:8px;font-size:13px;letter-spacing:.06em;vertical-align:middle}.intro .start{min-width:150px}

.intro .introActions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:12px}.intro .introActions :is(#introGlossary,#introRules,#start){display:flex;align-items:center;justify-content:center;margin:0;height:44px;min-height:44px;flex-shrink:0}

main.generatedUI{--hud-height:58px}.generatedUI .hudLeak{display:grid;grid-template-columns:minmax(0,1fr) auto auto auto;align-items:center;column-gap:10px;row-gap:5px}.generatedUI .hudLeakMeta{display:contents}.generatedUI .hudLeakTitle{grid-column:1;grid-row:1}.generatedUI #runTime{grid-column:2;grid-row:1;font-size:10px;color:#87b9c2}.generatedUI #hudPressure{grid-column:3;grid-row:1;font-size:9px;color:#87b9c2}.generatedUI #globalPercent{grid-column:4;grid-row:1;font-size:11px;color:#b8fcf3}.generatedUI .globalTrack{grid-column:1/-1;grid-row:2;margin:0;height:7px}.generatedUI header #crewSlots,.generatedUI header #aiSlots,.generatedUI header #mobileSpeed,.generatedUI header #pause{height:38px;min-width:40px;padding:5px 8px;font-size:14px}.generatedUI header #pause{width:40px;font-size:21px}.generatedUI header #crewSlots .gameIcon{width:21px;height:21px}.generatedUI #attackPanel{padding:8px}.generatedUI #attackPanel .attackHeading{top:-8px;min-height:30px;padding:0 0 4px;margin-bottom:3px}.generatedUI #attackPanel .attackHeading strong{font-size:14px}.generatedUI #attackPanel #closeAttacks{width:30px;height:30px;font-size:23px}.generatedUI #attackPopulation{font-size:10px;margin-bottom:6px}.generatedUI #attackChoices{gap:5px}.generatedUI #attackChoices .attackChoice{min-height:46px;padding:6px;grid-template-columns:20px minmax(0,1fr);gap:3px 5px}.generatedUI #attackChoices .attackChoice .gameIcon{width:20px;height:20px}.generatedUI #attackChoices .attackChoice strong{font-size:11px}.generatedUI #attackChoices .attackChoice small{font-size:9px}
@media(max-width:1100px) and (max-height:600px){main.generatedUI{--hud-height:44px}.generatedUI header{padding:4px 7px;gap:5px}.generatedUI .hudLeak{column-gap:6px;row-gap:4px}.generatedUI .hudLeakTitle,.generatedUI .hudLeakTitle>strong{font-size:11px}.generatedUI #runTime{font-size:9px}.generatedUI #hudPressure{font-size:8px}.generatedUI #globalPercent{font-size:10px}.generatedUI header #crewSlots,.generatedUI header #aiSlots,.generatedUI header #mobileSpeed,.generatedUI header #pause{height:34px;min-width:36px;padding:4px 6px;font-size:11px}.generatedUI header #pause{width:36px;font-size:20px}.generatedUI #attackChoices .attackChoice{min-height:44px}.generatedUI #attackChoices .attackChoice strong{font-size:10px}.generatedUI #attackChoices .attackChoice small{font-size:8px}}

#pauseMenu{width:min(340px,calc(100vw - 32px));padding:24px;border:1px solid #66eddb;border-radius:16px;background:#09212df5;color:#e3f4f3;box-shadow:0 0 24px #44e5cb30}#pauseMenu::backdrop{background:#021019e6}#pauseTitle{margin:0 0 22px;font-size:23px;text-align:center}.pauseActions{display:grid;gap:10px}.pauseActions button{min-height:44px;padding:10px 16px;border:1px solid #347f8d;border-radius:10px;background:#12313e;color:#dff8f4;font-size:15px}#resumeGame{background:#7ce6cf;color:#09212d;border-color:#7ce6cf;font-weight:700}

#funds{font-variant-numeric:tabular-nums}#funds .fundsDigit{display:inline-block;overflow:hidden;position:relative;vertical-align:top;width:1ch;height:1em}#funds .fundsDigit>span{display:block}#funds .fundsDigit>span:last-child{position:absolute;inset:0}

#funds span{font:inherit;color:inherit}#funds .fundsValue{display:inline-flex;align-items:baseline;white-space:nowrap}#funds .fundsDigit{vertical-align:baseline;background:none;border:0}
#mapLayer .patrolMarker{position:absolute;width:31px;height:31px;padding:0;border:0;background:none;z-index:4;transform:scale(var(--markerScale,1)) translate(-50%,-92%);transform-origin:top left}
#mapLayer .patrolMarker[hidden]{display:none}
.patrolMarker img{display:block;width:100%;height:100%;pointer-events:none}
.patrolMarker.patrolWarning img{filter:drop-shadow(0 0 4px #ff6767)}
.generatedUI #countryListRows button.fallenCountry{background:#171b21;border-color:#515963;color:#bec5ce}
.generatedUI #countryListRows button.fallenCountry :is(strong,small,b){color:#bec5ce}

.generatedUI{--counter-bg:#331c28;--counter-border:var(--attack-signal);--counter-ink:var(--attack-signal)}
.generatedUI #countryListRows button.hasCounter:not(.fallenCountry){background:var(--counter-bg);border-color:var(--counter-border)}

:root{--attack-leak:#56d7ff;--attack-cash:#f5c15c;--attack-signal:#ff5577;--attack-disruption:#ffe078}
[data-attack-kind]{--attack-track-color:var(--attack-signal)}
[data-attack-kind="data"]{--attack-track-color:var(--attack-leak)}
[data-attack-kind="money"],[data-attack-kind="market"]{--attack-track-color:var(--attack-cash)}
.generatedUI .countryAttackTrack{height:3px}
.generatedUI [data-attack-kind] :is(.countryAttackTrack,.progressTrack)>i{background:var(--attack-track-color)}


.patrolArrestTrack{display:none;position:absolute;bottom:100%;left:50%;width:38px;height:5px;transform:translateX(-50%);border:1px solid #d65a66;border-radius:5px;background:#381522;overflow:hidden;pointer-events:none}
.patrolWarning .patrolArrestTrack{display:block}
.patrolArrestTrack i{display:block;width:var(--arrest-progress,0%);height:100%;background:#ff5577}

.generatedUI > #newsTicker{position:absolute;left:12px;right:calc(var(--country-width) + 332px);bottom:12px;width:auto;height:calc(var(--dock-height) - 24px);background:#0b2330;border:1px solid #398994}
.generatedUI footer .budget{width:154px;padding:0 8px}
#funds .fundsValue{font-size:calc(1em * var(--funds-fit,1))}
@media(max-width:1100px) and (max-height:600px),(max-width:600px) and (orientation:portrait){.generatedUI footer .budget{width:96px;padding:0 4px}}

#mapLayer .node{padding-top:19px}
#mapLayer .node::before{position:absolute;left:50%;top:calc(50% - 12px);transform:translate(-50%,-50%);margin:0}

#funds .fundsCompact{display:none}

.generatedUI .countryPatrol{order:4;display:grid;grid-template-columns:1fr auto;gap:3px;margin-top:5px;color:#ff8b9c;font-size:11px}
.generatedUI .countryPatrol[hidden]{display:none}
.generatedUI .countryPatrolTrack{grid-column:1/-1;display:block;height:4px;overflow:hidden;border-radius:5px;background:#381522}
.generatedUI .countryPatrolTrack i{display:block;height:100%;background:#ff5577}

.generatedUI #attackPanel .attackActions{
  display:flex;
  align-items:center;
  gap:5px;
  flex-shrink:0;
}
.generatedUI #attackPanel #crewSlots{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  height:32px;
  min-width:48px;
  padding:3px 6px;
  border:1px solid #347f8d;
  border-radius:var(--attack-card-radius,8px);
  background:#102c39;
  color:#b8fcf3;
  font-size:12px;
  white-space:nowrap;
}
.generatedUI #attackPanel #crewSlots::before{display:none}
.generatedUI #attackPanel #crewSlots .gameIcon{width:18px;height:18px}

.generatedUI #attackPanel #crewCount{display:inline;color:inherit;font-size:inherit}

.generatedUI .countryPatrolBar{display:block;order:4;height:4px;background:#482937;margin:4px 0 2px;border-radius:4px;overflow:hidden}
.generatedUI .countryPatrolBar i{display:block;height:100%;background:#ff5577}

.generatedUI #countryListRows button.attackedCountry:not(.clearedCountry):not(.fallenCountry){
 border-color:#aaffdd;
 background:linear-gradient(#15504c,#0a2b36);
 box-shadow:0 0 10px #74f2cd88,inset 0 0 14px #74f2cd55;
}
.generatedUI #countryListRows button.clearedCountry{
 background:linear-gradient(135deg,#123c60,#0a213b);
 border-color:#6eb9ff;
 box-shadow:0 0 10px #58abff66,inset 0 0 12px #58abff30;
}
.generatedUI #countryListRows button.clearedCountry small{color:#addaff}
.generatedUI #countryListRows button.clearedCountry .countryLeakBar i{background:#70bdff}

.nuclearPreparation{grid-column:1/-1;width:100%;height:5px;accent-color:#ffad69}

.generatedUI .countryConditions{display:grid;gap:4px;order:4}
.generatedUI .countryConditions:not(:has(.countryCondition:not([hidden]))){display:none}
.generatedUI .countryCondition{display:grid;gap:3px;font-size:10px;color:var(--condition-color)}
.generatedUI .countryCondition[hidden]{display:none}
.generatedUI .countryCondition[data-condition=recovery]{--condition-color:#79ccff}
.generatedUI :is([data-condition=isolation],[data-blocked=isolation]){--condition-color:#ff8896}
.generatedUI :is([data-condition=shortage],[data-blocked=shortage]){--condition-color:#ffc36e}
.generatedUI .countryCondition progress{width:100%;height:4px;border:0;background:#173541;color:var(--condition-color);accent-color:var(--condition-color);border-radius:4px;overflow:hidden}
.generatedUI .countryCondition progress::-webkit-progress-bar{background:#173541}
.generatedUI .countryCondition progress::-webkit-progress-value{background:var(--condition-color)}
.generatedUI .countryCondition progress::-moz-progress-bar{background:var(--condition-color)}
.generatedUI #attackChoices .attackChoice[data-blocked]:disabled{
  opacity:1;border-color:var(--condition-color);background:#202c39;box-shadow:none;
}
.generatedUI #attackChoices .attackChoice[data-blocked]:disabled small{color:var(--condition-color);font-weight:700}

.introContent>.basePicker #baseCityChoice{height:auto;line-height:1.4}

.generatedUI #countryListRows button.icpoCountry:not(.fallenCountry):not(.clearedCountry){
  border-color:#86caff;
  background:linear-gradient(#17466c,#10283f);
  box-shadow:0 0 10px #73baff88,inset 0 0 14px #73baff55;
}

.majorNews[data-icpo-arrival="true"]{border-color:#ff6271;background:#561c28;box-shadow:0 12px 45px #0009,0 0 20px #ff62714d}.majorNews[data-icpo-arrival="true"]>span{border-color:#ff6271;background:linear-gradient(135deg,#632b38,#301d2a);color:#ffd4d9}

@media (pointer:coarse), (max-width:1100px){.hexTile.canUpgrade:not(.undiscovered) polygon{animation:skillReadyGlow .9s ease-out both;fill:#326258}.rewardPickup i{animation:none}}

.generatedUI #attackChoices .attackChoice.on.aiAttackActive{border-color:#d2a8ff;background:linear-gradient(145deg,#392551,#17182d);box-shadow:0 0 12px #b783f75c,inset 0 0 12px #b783f735}
.generatedUI #attackChoices .attackChoice.on.aiAttackActive :is(small,.gameIcon){color:#e0c3ff}

.generatedUI #attackPanel #aiSlots{display:flex;align-items:center;justify-content:center;box-sizing:border-box;height:32px;min-width:54px;padding:3px 6px;border:1px solid #9274bb;border-radius:var(--attack-card-radius,8px);background:#241b37;color:#dec2ff;font-size:11px;font-variant-numeric:tabular-nums}
.generatedUI #attackPanel .attackRetreat{display:flex;justify-content:flex-end;margin-top:8px}
.generatedUI #attackPanel .attackRetreat #withdraw{display:block;min-width:64px;border:1px solid #86614e;background:#231c20;color:var(--amber)}

.majorNews[data-collapse="true"]{border-color:#68b9ff;background:#123c70;box-shadow:0 12px 45px #0009,0 0 20px #68b9ff4d}
.majorNews[data-collapse="true"]>span{border-color:#68b9ff;background:#23588d;color:#e0f2ff}

.generatedUI .countryAttack.pausedAttack b{color:#ff8d9d}


.generatedUI #countryListRows button[data-country].isolatedCountry:not(.fallenCountry){
  background:var(--counter-bg);
  border-color:#ff8896;
  box-shadow:0 0 8px #ff557744;
}

[data-accent="disruption"]{--news-accent:var(--attack-disruption);--news-surface:#352b16}
[data-accent="isolation"]{--news-accent:#ff8896;--news-surface:#461e28}
.majorNews[data-accent]:not([data-accent=""]){
  border-color:var(--news-accent);
  background:var(--news-surface);
}
.majorNews[data-accent]:not([data-accent=""])>span{
  border-color:var(--news-accent);
  background:var(--news-surface);
  color:var(--news-accent);
}
.generatedUI :is(.news,#newsTicker)[data-accent]:not([data-accent=""]) :is(strong,.newsBadge,#tickerLine){
  color:var(--news-accent);
}

.generatedUI #newsDrawer{
  width:min(600px,calc(100% - var(--country-width) - 20px));
  z-index:26;
}
.generatedUI:has(#newsDrawer.open) .newsStack{visibility:hidden}
.generatedUI #newsDrawer .news strong{font-size:16px}
.generatedUI #newsDrawer .news p{font-size:13px}
@media(max-width:1100px) and (max-height:600px),(max-width:699px) and (orientation:portrait){
  .generatedUI #newsDrawer{
    inset:28px 12px 10px;
    width:auto;
    max-width:none;
  }
  .generatedUI #newsDrawer .news strong{font-size:14px}
  .generatedUI #newsDrawer .news p{font-size:11px}
}

.generatedUI #attackChoices .attackChoice.ultimateAttack:not([data-blocked]){
 border-color:#ff667c;
 background:#421e2a;
 color:#ffd9df;
}
.generatedUI #attackChoices .attackChoice.ultimateAttack:not([data-blocked]) :is(small,.gameIcon){color:#ffadb9}
.generatedUI #attackChoices .attackChoice.ultimateAttack.on:not([data-blocked]){
 border-color:#ff97a7;
 background:#5a2334;
 box-shadow:0 0 12px #ff607c70,inset 0 0 12px #ff607c40;
}

.generatedUI #countryListRows button.hasCounter:not(.isolatedCountry){
  --counter-bg:#352c19;
  --counter-border:var(--attack-disruption);
  --counter-ink:#ffe8a5;
}
.generatedUI #countryListRows button.hasCounter:not(.isolatedCountry,.fallenCountry,.clearedCountry){
  box-shadow:0 0 8px #ffe07840;
}
.generatedUI #countryListRows :is(button.hasCounter,.countryCard:has(>button.hasCounter)) .pausedAttack b{color:#ffe8a5}


[data-attack-kind="network"]{--attack-track-color:#5585ff}
[data-attack-kind="infra"]{--attack-track-color:#ff9b55}
[data-attack-kind="war"]{--attack-track-color:#bb8cff}
[data-attack-kind="nuclear"]{--attack-track-color:#ff5566}
[data-attack-kind="extinction"]{--attack-track-color:#dc304c}

.generatedUI #attackChoices .attackChoice:is([data-kind="network"],[data-kind="infra"]):not([data-blocked]){
  border-color:var(--attack-disruption);
  color:#fff0b8;
}
.generatedUI #attackChoices .attackChoice:is([data-kind="network"],[data-kind="infra"]):not([data-blocked]) :is(strong,small,.gameIcon){
  color:#fff0b8;
}
.generatedUI #attackChoices .attackChoice:is([data-kind="network"],[data-kind="infra"]):not(.on,[data-blocked],.countered){
  border-color:#88794e;
}
.generatedUI #attackChoices .attackChoice:is([data-kind="network"],[data-kind="infra"]):not(.on,[data-blocked],.countered) :is(strong,small,.gameIcon){
  color:#c9bd96;
}
.generatedUI .countryAttack[data-attack-kind]{--attack-track-color:var(--attack-signal)}
.generatedUI .countryAttack[data-attack-kind="data"]{--attack-track-color:var(--attack-leak)}
.generatedUI .countryAttack:is([data-attack-kind="money"],[data-attack-kind="market"]){--attack-track-color:#f5d061}
.generatedUI .countryAttack:is([data-attack-kind="network"],[data-attack-kind="infra"]):not(.pausedAttack):not(.aiAttack) .countryAttackTrack>i{background:var(--attack-disruption)}
.generatedUI .countryAttack.aiAttack .countryAttackTrack>i{background:#b884ff}
.generatedUI .countryAttack.pausedAttack .countryAttackTrack>i{background:#ff617d}
.generatedUI #countryListRows :is(button.hasCounter,.countryCard:has(>button.hasCounter)) .pausedAttack .countryAttackTrack>i{background:var(--attack-disruption)}

.generatedUI #attackChoices .attackChoice[data-kind="market"]{--accent:#79dc93}
.generatedUI #attackChoices .attackChoice[data-kind="war"]{--accent:#bb8cff}
.generatedUI #attackChoices .attackChoice:is([data-kind="market"],[data-kind="war"]):not([data-blocked],.countered):has(.attackLockOverlay){border-color:var(--accent)}
.generatedUI #attackChoices .attackChoice[data-kind="war"]:not([data-blocked],.countered):not(:has(.attackLockOverlay)){
 border-color:#bb8cff;color:#e1c7ff
}
.generatedUI #attackChoices .attackChoice[data-kind="war"]:not([data-blocked],.countered):not(:has(.attackLockOverlay)) :is(.gameIcon,small){color:#e1c7ff}
.generatedUI #attackChoices .attackChoice.on:is([data-kind="network"],[data-kind="infra"],[data-kind="market"],[data-kind="war"],[data-kind="nuclear"]):not([data-blocked],.countered){
  border-color:var(--attack-glow);
  background:linear-gradient(color-mix(in srgb,var(--attack-glow) 24%,#10222d),color-mix(in srgb,var(--attack-glow) 10%,#0a1e29));
  box-shadow:0 0 14px color-mix(in srgb,var(--attack-glow) 55%,transparent),inset 0 0 12px color-mix(in srgb,var(--attack-glow) 32%,transparent);
}
.attackChoice:is([data-kind="network"],[data-kind="infra"]){--attack-glow:var(--attack-disruption)}
.attackChoice[data-kind="market"]{--attack-glow:#79dc93}
.attackChoice[data-kind="war"]{--attack-glow:#bb8cff}
.attackChoice[data-kind="nuclear"]{--attack-glow:#f58b86}
#mapViewport.icpoInvestigation::after{content:"";position:absolute;inset:0;background:#d9183638;box-shadow:inset 0 0 42px #f02d4a80;pointer-events:none}
.patrolMarker.patrolWarning .patrolArrestTrack{height:7px;width:48px}
@media(min-width:1101px) and (pointer:fine){.generatedUI .newsStack{top:24%}}

@media(hover:hover) and (pointer:fine){
 .generatedUI > #attackPanel:not(.hidden) ~ .newsStack{
  --news-width:min(520px,80%);
  left:clamp(8px,calc(var(--attack-news-left) + (var(--attack-news-width) - var(--news-width)) / 2),calc(100% - var(--news-width) - 8px));
  top:calc(var(--attack-news-top) - 12px);
  width:var(--news-width);
  transform:translateY(-100%);
 }
}
