html,body{width:100%;height:100%;overflow:hidden;overscroll-behavior:none}main.generatedUI{position:fixed;left:calc(var(--screen-left,0px) + env(safe-area-inset-left,0px));top:calc(var(--screen-top,0px) + env(safe-area-inset-top,0px));width:calc(var(--screen-width,100vw) - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px));height:calc(var(--screen-height,100dvh) - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));transform:none!important}main.generatedUI,main.generatedUI *{user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}main.generatedUI input,main.generatedUI textarea{user-select:text;-webkit-user-select:text;-webkit-touch-callout:default}main.generatedUI img,main.generatedUI svg,main.generatedUI canvas{-webkit-user-drag:none}#skills.hexSkills{box-sizing:border-box;width:min(1100px,calc(var(--screen-width,100vw) - 24px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px)));height:min(760px,calc(var(--screen-height,100dvh) - 24px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px)));max-width:calc(var(--screen-width,100vw) - 24px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px));max-height:calc(var(--screen-height,100dvh) - 24px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));transform:translate(-50%,-50%)!important}dialog{position:fixed;left:calc(var(--screen-left,0px) + (var(--screen-width,100vw) + env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px))/2);top:calc(var(--screen-top,0px) + (var(--screen-height,100dvh) + env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))/2);right:auto;bottom:auto;margin:0;box-sizing:border-box;transform:translate(-50%,-50%)!important;max-width:calc(var(--screen-width,100vw) - 24px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px));max-height:calc(var(--screen-height,100dvh) - 24px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))}#result.resultScreen{max-height:calc(var(--screen-height,100dvh) - 24px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))}.choiceCard{max-height:100%}.generatedUI #rotate{display:none}.generatedUI #attackPanel{overscroll-behavior:contain}.generatedUI .hudLeakTitle,.generatedUI .countryStats{font-variant-numeric:tabular-nums}.generatedUI .countryStats{gap:8px}.generatedUI .countryNumbers{min-width:0;overflow-wrap:anywhere}.generatedUI .countryPercent{flex-shrink:0}
@media(max-width:740px) and (orientation:landscape){main.generatedUI{--country-width:155px;--hud-height:44px;--dock-height:68px}.generatedUI header{gap:4px;padding:4px 6px}.generatedUI header #crewSlots,.generatedUI header #aiSlots,.generatedUI header #mobileSpeed{font-size:12px;min-width:40px;padding:4px 6px;height:34px}.generatedUI header #pause{width:40px;min-width:40px;height:34px}.generatedUI .hudLeak{min-width:100px}.generatedUI .hudLeakTitle,.generatedUI .hudLeakTitle>strong{font-size:11px}.generatedUI #countryListRows button{padding:9px;min-height:88px}.generatedUI #countryListRows strong{font-size:14px}.generatedUI footer{left:6px;right:calc(var(--country-width) + 6px);bottom:6px;padding:5px;gap:0}.generatedUI footer #mobileSkills{font-size:13px;min-width:78px;padding:5px 8px}.generatedUI .tickerBadge{padding:5px;font-size:10px}.generatedUI > #newsTicker{padding:4px;font-size:11px}.generatedUI footer #funds{font-size:17px;padding:0 6px}.hexSkills .evoDetail{width:174px;padding:8px;gap:4px}.hexSkills .evoTabs{min-height:46px}.hexSkills .evoTabs button{font-size:12px;min-height:44px}.hexSkills .evoDetail h3{font-size:15px}.hexSkills .evoDetail p{font-size:11px}.hexSkills .evoNeeds button{min-height:32px;font-size:10px}.hexSkills .evoFunds{font-size:14px}.hexSkills .evoDetail .evoPurchase{min-height:34px;font-size:12px}}
@media(min-width:700px) and (orientation:portrait){main.generatedUI{--country-width:230px;--hud-height:58px;--dock-height:84px}.generatedUI header{padding:6px;gap:5px}.generatedUI .hudLeakTitle,.generatedUI .hudLeakTitle>strong{font-size:12px}.generatedUI header #crewSlots,.generatedUI header #aiSlots,.generatedUI header #mobileSpeed{font-size:13px;min-width:42px;padding:5px 7px}.generatedUI header #pause{min-width:42px;width:42px}}
@media(max-width:699px) and (orientation:portrait){.generatedUI #rotate{display:flex;z-index:125;padding:32px;line-height:1.8}.generatedUI #rotate p{margin:0;max-width:300px;font-size:14px;color:#a9ced1}.choiceCard{max-height:100%}}

@media(max-height:600px){.hexName{font-size:12px}.hexState{font-size:9px}}

.hexSkills .evoNeeds button.progressGoal:disabled{opacity:1;color:#b5ced2;border-color:#42636c}.hexSkills .evoNeeds button.progressGoal.met:disabled{color:#97ead1;border-color:#588c80}

.hexTile>.hexIcon{display:inline}@media(max-width:1400px){#skills.hexSkills{width:calc(var(--screen-width,100vw) - 8px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px));height:calc(var(--screen-height,100dvh) - 8px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));max-width:calc(var(--screen-width,100vw) - 8px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px));max-height:calc(var(--screen-height,100dvh) - 8px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))}}@media(max-height:600px){.hexSkills .evoBadge{display:block;height:34px}.hexSkills .evoBadge .skillArt{width:42px;height:34px}}

@media(max-width:1100px) and (max-height:600px){.generatedUI #countryListRows button{min-height:54px;margin-bottom:4px;padding:6px 8px;border-radius:8px}.generatedUI #countryListRows strong{font-size:13px;line-height:1.2}.generatedUI #countryListRows small:empty{display:none}.generatedUI #countryListRows small{font-size:9px;line-height:1.2}.generatedUI #countryListRows .countryStats{font-size:10px;margin:3px 0 1px;gap:4px}.generatedUI .countryLeakBar{height:3px;margin:3px 0 0}.generatedUI .countryGroup h2{padding:5px 4px;font-size:9px}.generatedUI .countryGroup h2 small{font-size:9px}.generatedUI .countryAttacks:empty{display:none}.generatedUI .countryCounter{font-size:9px;margin-top:3px}.generatedUI .countryAttacks{font-size:9px;margin-top:3px;gap:3px}.generatedUI .countryAttack{font-size:9px}.generatedUI .countryAttack b{font-size:9px}}

@media(max-width:699px) and (orientation:portrait){main.generatedUI{left:calc(var(--screen-left,0px) + var(--screen-width,100vw) - env(safe-area-inset-right,0px));top:calc(var(--screen-top,0px) + env(safe-area-inset-top,0px));width:calc(var(--screen-height,100dvh) - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));height:calc(var(--screen-width,100vw) - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px));transform-origin:0 0;transform:rotate(90deg)!important;--country-width:155px;--hud-height:44px;--dock-height:68px}.generatedUI #rotate{display:none!important}.generatedUI header{padding:4px 6px;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 footer{left:6px;right:calc(var(--country-width) + 6px);bottom:6px;height:58px;padding:5px}.generatedUI footer #mobileSkills{min-width:78px;font-size:13px;padding:5px 8px}.generatedUI > #newsTicker{font-size:11px;padding:4px}.generatedUI .tickerBadge{font-size:10px;padding:5px}.generatedUI footer #funds{font-size:17px;padding:0 6px}.generatedUI .node{font-size:10px}.generatedUI #countryList{padding:0 6px}.generatedUI #attackChoices .attackChoice{min-height:44px}.generatedUI #attackChoices .attackChoice strong{font-size:10px}.generatedUI #attackChoices .attackChoice small{font-size:8px}dialog,#skills.hexSkills{width:min(1100px,calc(var(--screen-height,100dvh) - 16px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px)));max-width:calc(var(--screen-height,100dvh) - 16px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));max-height:calc(var(--screen-width,100vw) - 16px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px));transform:translate(-50%,-50%) rotate(90deg)!important}#skills.hexSkills{height:calc(var(--screen-width,100vw) - 8px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px))}#pauseMenu{width:300px}#result.resultScreen{max-height:calc(var(--screen-width,100vw) - 24px)}.hexSkills .evoDetail{width:174px;padding:8px;gap:4px}.hexSkills .evoDetail h3{font-size:15px}.hexSkills .evoDetail p{font-size:11px}.hexSkills .evoFunds{font-size:14px}.hexSkills .evoDetail .evoPurchase{min-height:40px;font-size:12px}}
@media(max-width:699px) and (orientation:portrait){.generatedUI #countryListRows button{min-height:54px;margin-bottom:4px;padding:6px 8px;border-radius:8px}.generatedUI #countryListRows strong{font-size:13px;line-height:1.2}.generatedUI #countryListRows small:empty{display:none}.generatedUI #countryListRows small{font-size:9px;line-height:1.2}.generatedUI #countryListRows .countryStats{font-size:10px;margin:3px 0 1px;gap:4px}.generatedUI .countryLeakBar{height:3px;margin:3px 0 0}.generatedUI .countryGroup h2{padding:5px 4px;font-size:9px}.generatedUI .countryGroup h2 small{font-size:9px}.generatedUI .countryAttacks:empty{display:none}.generatedUI .countryCounter{font-size:9px;margin-top:3px}.generatedUI .countryAttacks{font-size:9px;margin-top:3px;gap:3px}.generatedUI .countryAttack{font-size:9px}.generatedUI .countryAttack b{font-size:9px}}

main.generatedUI button,main.generatedUI [role=button],main.generatedUI [role=tab]{touch-action:manipulation;-webkit-tap-highlight-color:transparent}.hexTile>text,.hexTile>.hexIcon{pointer-events:none}

.hexTile.undiscovered>g,.hexTile.undiscovered>text{display:none}.hexTile.undiscovered>polygon{fill:#172a33;stroke:#506570;opacity:.55}.hexTile.undiscovered{cursor:default}

@media(max-width:1100px) and (max-height:600px),(max-width:699px) and (orientation:portrait){.generatedUI #attackPanel{--attack-card-radius:6px;height:var(--attack-fit-height,210px);padding:6px;overflow:visible;display:flex;flex-direction:column}.generatedUI #attackPanel.hidden{display:none}.generatedUI #attackPanel .attackHeading{position:static;min-height:25px;flex-shrink:0;padding:0;margin:0 0 3px}.generatedUI #attackPanel .attackHeading strong{font-size:12px}.generatedUI #attackPanel #closeAttacks{width:28px;height:25px;font-size:22px}.generatedUI #attackPopulation{font-size:9px;line-height:1.2;flex-shrink:0;margin:0 0 5px}.generatedUI #attackChoices{flex:1;min-height:0;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(4,minmax(0,1fr));gap:4px}.generatedUI #attackChoices .attackChoice{min-height:0;min-width:0;padding:4px;grid-template-columns:15px minmax(0,1fr);gap:1px 3px;align-content:center;overflow:hidden}.generatedUI #attackChoices .attackChoice .gameIcon{width:15px;height:15px}.generatedUI #attackChoices .attackChoice strong{font-size:9px;line-height:1.1}.generatedUI #attackChoices .attackChoice small{font-size:8px;line-height:1.15;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.generatedUI #attackChoices .attackChoice:nth-child(1){grid-column:1;grid-row:1}.generatedUI #attackChoices .attackChoice:nth-child(2){grid-column:2;grid-row:1}.generatedUI #attackChoices .attackChoice:nth-child(3){grid-column:1;grid-row:2}.generatedUI #attackChoices .attackChoice:nth-child(4){grid-column:2;grid-row:2}.generatedUI #attackChoices .attackChoice:nth-child(5){grid-column:1;grid-row:3}.generatedUI #attackChoices .attackChoice:nth-child(6){grid-column:2;grid-row:3}.generatedUI #attackChoices .attackChoice:nth-child(7){grid-column:1;grid-row:4}.generatedUI #attackChoices .attackChoice:nth-child(8){grid-column:2;grid-row:4}.generatedUI #attackChoices .attackChoice:nth-child(9){grid-column:3;grid-row:1}.generatedUI #attackChoices .attackChoice:nth-child(10){grid-column:3;grid-row:2}.generatedUI #attackChoices .mysteryAttack{display:flex;align-items:center;justify-content:center}}

.generatedUI footer:has(> #attackPanel){height:122px;bottom:4px;padding:5px;gap:4px}.generatedUI footer #attackPanel,.generatedUI footer #attackPanel.hidden{--attack-card-radius:5px;position:static!important;inset:auto!important;transform:none!important;display:flex!important;flex-direction:column;flex:1;min-width:0;width:auto!important;height:100%;max-height:none!important;padding:0;border:0;border-radius:0;background:none;box-shadow:none;overflow:visible}.generatedUI footer #attackPanel .attackHeading{display:none}.generatedUI footer #attackPanel .attackHeading strong{font-size:10px}.generatedUI footer #attackPanel .attackHeading>span,.generatedUI footer #attackPopulation,.generatedUI footer #closeAttacks{display:none}.generatedUI footer #attackChoices{display:grid;flex:1;min-height:0;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:3px}.generatedUI footer #attackChoices .attackChoice{grid-column:auto!important;grid-row:auto!important;min-height:0;min-width:0;padding:3px;grid-template-columns:12px minmax(0,1fr);gap:1px 3px;align-content:center;overflow:hidden}.generatedUI footer #attackChoices .attackChoice .gameIcon{width:12px;height:12px}.generatedUI footer #attackChoices .attackChoice strong{font-size:12px;line-height:1.1}.generatedUI footer #attackChoices .attackChoice small{font-size:9px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;display:block;line-height:1.1}.generatedUI footer:has(> #attackPanel) .budget{padding:0 6px}.generatedUI footer:has(> #attackPanel) #funds{font-size:18px}.generatedUI footer:has(> #attackPanel) #mobileSkills{min-width:68px;font-size:12px;padding:4px 6px}.generatedUI footer:has(> #attackPanel) .budget{height:80%}


.generatedUI footer:not(:has(> #attackPanel)){left:auto;width:max-content}

.aiModePicker {
  position: absolute;
  right: calc(var(--country-width, 230px) + 10px);
  bottom: 100px;
  width: 156px;
  height: 110px;
  z-index: 3;
  pointer-events: none;
}
main:has(#intro:not(.hidden)) .aiModePicker { display: none; }
.aiModeLinks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #6598a6;
  stroke-width: 1.25;
}
.aiModeButton {
  position: absolute;
  top: 55px;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 78px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #e4f3f7;
  font: 600 10px/1.2 system-ui, sans-serif;
  white-space: nowrap;
  pointer-events: auto;
  touch-action: manipulation;
}
.aiModeButton.leak { top: 0; left: 39px; --mode-color: var(--attack-leak); }
.aiModeButton.cash { --mode-color: #bb8cff; }
.aiModeButton.signal { left: 78px; --mode-color: var(--attack-disruption); }
.aiModeCircle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--mode-color);
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 32% 12%, #ffffff70, transparent 34%),
    radial-gradient(circle at 70% 84%, color-mix(in srgb, var(--mode-color) 40%, #071018), #071018 65%);
  color: #f4fbff;
  box-shadow: inset 0 0 5px color-mix(in srgb, var(--mode-color) 40%, transparent), 0 0 3px color-mix(in srgb, var(--mode-color) 25%, transparent);
}
.aiModeCircle .gameIcon { width: 22px; height: 22px; color: inherit; }
.aiModeButton[aria-pressed="false"]:not(:disabled) {
  opacity: .55;
}
.aiModeButton[aria-pressed="false"] .aiModeCircle {
  box-shadow: none;
}
.aiModeButton[aria-pressed="true"] .aiModeCircle {
  outline: 1px solid var(--mode-color);
  outline-offset: 2px;
  box-shadow: inset 0 0 10px var(--mode-color), 0 0 14px var(--mode-color);
}

.aiModeTitle {
  position: absolute;
  bottom: calc(100% + 5px);
  width: 100%;
  color: #d5adff;
  text-align: center;
  font: 700 12px/1.2 system-ui, sans-serif;
}
.aiModePicker:has(.aiModeButton:disabled) .aiModeLinks,
.aiModeButton:disabled {
  filter: grayscale(1);
  opacity: .5;
}
.aiModeButton:disabled { pointer-events: none; }
.aiModeButton:disabled .aiModeCircle {
  outline: none;
  box-shadow: none;
}

@media(max-width:1100px) and (max-height:600px),(max-width:699px) and (orientation:portrait){
.generatedUI > #newsTicker{display:none!important}
.generatedUI footer #attackPanel .attackHeading{display:contents}
.generatedUI footer #attackPanel .attackHeading strong{display:none}
.generatedUI footer #attackPanel .attackActions{position:absolute;bottom:100%;left:10px;z-index:5}
.generatedUI footer #attackPanel #withdraw{min-height:30px;background:#2e2320}
}

.generatedUI footer #attackChoices .attackChoice:disabled:not(.on){opacity:.72}
main:has(footer > #attackPanel) .aiModePicker{right:auto;bottom:auto;width:108px;height:76px}
main:has(footer > #attackPanel) .aiModeButton{top:38px;width:54px;font-size:9px}
main:has(footer > #attackPanel) .aiModeButton.leak{top:0;left:27px}
main:has(footer > #attackPanel) .aiModeButton.signal{left:54px}
main:has(footer > #attackPanel) .aiModeCircle{width:31px;height:31px}
main:has(footer > #attackPanel) .aiModeCircle .gameIcon{width:17px;height:17px}
main:has(footer > #attackPanel) .aiModeTitle{font-size:10px}

@media(max-width:1100px) and (max-height:600px),(max-width:699px) and (orientation:portrait){
.generatedUI footer:has(> #attackPanel){
  display:grid;
  grid-template-columns:minmax(0,1fr) clamp(68px,13%,92px);
  grid-template-rows:repeat(2,minmax(0,1fr));
  height:84px;
  gap:3px 5px;
}
.generatedUI footer #attackPanel,
.generatedUI footer #attackPanel.hidden{grid-area:1 / 1 / 3 / 2}
.generatedUI footer #attackChoices{
  grid-template-columns:repeat(5,minmax(0,1fr));
  grid-template-rows:repeat(2,minmax(0,1fr));
  grid-auto-flow:column;
}
.generatedUI footer #attackChoices .attackChoice{
  grid-template-columns:12px minmax(0,1fr);
  grid-template-rows:auto auto;
  text-align:left;
}
.generatedUI footer #attackChoices .attackChoice .gameIcon{grid-area:1 / 1;align-self:center}
.generatedUI footer #attackChoices .attackChoice strong{grid-area:1 / 2;font-size:11px;overflow-wrap:anywhere}
.generatedUI footer #attackChoices .attackChoice small{grid-area:2 / 1 / 3 / -1;font-size:8px}
.generatedUI footer:has(> #attackPanel) .budget{
  grid-area:1 / 2;
  width:100%;
  height:100%;
  padding:0 2px;
  border-left:0;
}
.generatedUI footer:has(> #attackPanel) #funds{font-size:15px;padding:0}
.generatedUI footer:has(> #attackPanel) #mobileSkills{
  grid-area:2 / 2;
  min-width:0;
  border-radius:8px;
}
.generatedUI #toast{top:calc(var(--hud-height) + 8px);left:calc((100% - var(--country-width)) / 2);width:max-content;max-width:calc(100% - var(--country-width) - 16px);box-sizing:border-box;white-space:normal;text-align:center}
}

.hexSkills .evoNotice {
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
}

@media(max-width:1100px) and (max-height:600px),(max-width:699px) and (orientation:portrait){
  .generatedUI #countryListRows{scrollbar-width:none}
  .generatedUI #countryListRows::-webkit-scrollbar{display:none}
  .hexSkills .evoTabs{min-height:38px}
  .hexSkills .evoTabs button{min-height:37px;padding-block:4px}
  .hexSkills .evoHeader>button{top:1px;height:36px;min-height:36px}
  .generatedUI #attackPanel #withdraw:not(:disabled){min-width:64px}
}

@media(max-width:699px){
  .introContent>.basePicker #hackerName{font-size:16px}
}

@media(max-width:699px) and (orientation:portrait){
  main.generatedUI:has(#hackerName:focus){
    left:calc(var(--screen-left,0px) + env(safe-area-inset-left,0px));
    width:calc(var(--screen-width,100vw) - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px));
    height:calc(var(--screen-height,100dvh) - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));
    transform:none!important;
  }

  .generatedUI #intro:has(#hackerName:focus){
    align-items:flex-start;
    box-sizing:border-box;
    padding:12px 16px;
    overflow:auto;
    background:#07151e;
  }

  #intro:has(#hackerName:focus) .introContent>:is(.kicker,h1,p,.basePicker:not([for="hackerName"])){
    display:none;
  }

  #intro:has(#hackerName:focus) label[for="hackerName"]{
    grid-template-columns:minmax(0,1fr);
    gap:6px;
    margin-top:0;
  }
}

@media(max-width:1100px) and (max-height:600px),(max-width:699px) and (orientation:portrait){
  #detail .rulesSection .glossarySectionTitle{font-size:18px}
  #detail .rulesSection .glossaryTerm{font-size:14px}
  #detail .rulesSection p{font-size:12px}
}

.generatedUI #attackChoices .attackChoice.on {
  opacity:1;
  border-color:#aaffdd;
  background:linear-gradient(#15504c,#0a2b36);
  box-shadow:0 0 7px #74f2cd66,inset 0 0 10px #74f2cd40;
}
.generatedUI #attackChoices .attackChoice.on small {
  color:#aaffdd;
  font-weight:700;
}

main.generatedUI{--hud-height:36px}
.generatedUI header{
  box-sizing:border-box;
  padding:2px 6px;
  gap:4px;
  background:none;
  border:0;
  pointer-events:none;
}
.generatedUI #mapViewport{clip-path:inset(0 var(--country-width) var(--dock-height) 0)}
.generatedUI .hudLeak{
  min-width:0;
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:2px 6px;
  text-shadow:0 1px 3px #020c12;
}
.generatedUI .hudLeakTitle{grid-area:1 / 1}
.generatedUI .globalTrack{grid-area:1 / 2 / 2 / 4;height:6px;border:0}
.generatedUI #runTime{grid-area:2 / 1}
.generatedUI #hudPressure{grid-area:2 / 2;white-space:nowrap}
.generatedUI #globalPercent{grid-area:2 / 3}
.generatedUI header :is(#crewSlots,#aiSlots,#mobileSpeed,#pause){pointer-events:auto;height:32px}
.generatedUI header :is(#mobileSpeed,#pause){
  width:34px;
  min-width:34px;
  padding:0;
  background:#071923d9;
  border-color:#347f8d;
  box-shadow:none;
}

.generatedUI #attackChoices .attackChoice:has(.attackLockOverlay){position:relative}
.generatedUI #attackChoices .attackLockOverlay{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  border-radius:inherit;
  background:linear-gradient(to bottom right,transparent calc(50% - .5px),#a0c6ce60 50%,transparent calc(50% + .5px));
  pointer-events:none;
}
.generatedUI #attackChoices .attackLockOverlay .gameIcon{
  grid-area:1 / 1;
  width:16px;
  height:16px;
  padding:2px;
  box-sizing:content-box;
  border-radius:50%;
  background:#09222e;
  color:#d8eff0;
}

@media (max-width:1100px) and (max-height:600px),(max-width:699px) and (orientation:portrait){
.generatedUI footer:has(> #attackPanel){height:96px}
.generatedUI footer #attackPanel .attackRetreat:empty{display:none}
.generatedUI footer #attackPanel .attackActions #withdraw{width:auto;min-width:48px;height:32px;margin:0;border:1px solid #86614e;color:var(--amber)}
.generatedUI footer #attackChoices .attackChoice strong{font-size:10px;line-height:1.15}
.generatedUI footer #attackChoices .attackChoice:disabled:has(.attackLockOverlay){
  background:#19222a;
  border-color:#46515b;
  filter:grayscale(1);
}
.generatedUI footer #attackChoices .attackLockOverlay .gameIcon{width:12px;height:12px}
.generatedUI .node.labelAbove>span{display:inline-block;transform:translateY(-30px)}
}

main.generatedUI.mobileSplit{
  --attack-width:clamp(188px,26%,252px);
  --country-height:clamp(75px,calc(var(--screen-height,100dvh) * .3 - 19px),103px);
}
@media(orientation:landscape){
  main.generatedUI.mobileSplit{
    left:calc(var(--screen-left,0px) + env(safe-area-inset-left,0px));
    width:calc(var(--screen-width,100vw) - env(safe-area-inset-left,0px) - min(24px,env(safe-area-inset-right,0px)));
    height:calc(var(--screen-height,100dvh) - env(safe-area-inset-top,0px) - min(6px,env(safe-area-inset-bottom,0px)));
  }
}
@media(max-width:699px) and (orientation:portrait){
  main.generatedUI.mobileSplit{--country-height:clamp(75px,calc(var(--screen-width,100vw) * .3 - 19px),103px)}
}
.generatedUI header #mobileNews{display:none}
.mobileSplit.generatedUI header #mobileSpeed{display:none}
.mobileSplit.generatedUI header #mobileNews{
  display:block;
  pointer-events:auto;
  height:32px;
  padding:0 7px;
  border:1px solid #347f8d;
  border-radius:9px;
  background:linear-gradient(#13313e,#051722);
  color:#b8fcf3;
  font-size:10px;
  font-weight:700;
}
.mobileSplit.generatedUI header{left:calc(var(--attack-width) + 2px);right:4px;width:auto}
.mobileSplit.generatedUI #mapViewport{
  clip-path:inset(5px 4px calc(var(--country-height) + 2px) calc(var(--attack-width) + 2px) round 9px);
}
.mobileSplit.generatedUI footer:has(> #attackPanel){
  box-sizing:border-box;
  inset:6px auto 2px 2px;
  width:var(--attack-width);
  height:auto;
  padding-inline:2px 3px;
  background:none;
  border:0;
  box-shadow:none;
  grid-template-columns:1fr 1fr;
  grid-template-rows:minmax(0,1fr) 36px;
  gap:5px;
}
.mobileSplit.generatedUI footer:has(> #attackPanel)::before{
  content:"";
  position:absolute;
  top:4px;
  right:1px;
  bottom:0;
  width:1px;
  background:linear-gradient(transparent,var(--mint) 22%,var(--mint) 78%,var(--mint));
  box-shadow:0 0 7px var(--mint);
  pointer-events:none;
}
.mobileSplit.generatedUI footer #attackPanel,
.mobileSplit.generatedUI footer #attackPanel.hidden{grid-area:1 / 1 / 2 / -1;max-width:none}
.mobileSplit.generatedUI footer #attackPanel .attackActions{
  position:static;
  margin-bottom:5px;
  justify-content:center;
}
.mobileSplit.generatedUI footer #attackChoices{
  grid-template-columns:repeat(2,minmax(0,1fr));
  grid-template-rows:repeat(5,minmax(0,1fr));
  grid-auto-flow:row;
}
.mobileSplit.generatedUI footer:has(> #attackPanel) .budget{grid-area:2 / 2}
.mobileSplit.generatedUI footer:has(> #attackPanel) #mobileSkills{
  grid-area:2 / 1;
  background:#c5a3f518;
  border-color:#c5a3f5;
  color:#f1e5ff;
  box-shadow:0 0 10px #c5a3f555;
}
.mobileSplit.generatedUI #countryList{
  inset:auto 4px 0 calc(var(--attack-width) + 2px);
  width:auto;
  height:auto;
  padding:0 1px;
  background:none;
  pointer-events:none;
  border:0;
  border-radius:8px;
}
.mobileSplit.generatedUI #countryListRows{
  display:flex;
  gap:4px;
  padding:0;
  pointer-events:auto;
  touch-action:pan-x pan-y;
  overflow-x:auto;
  overflow-y:hidden;
  overscroll-behavior-x:auto;
  scroll-padding:0;
  scrollbar-width:none;
}
.mobileSplit.generatedUI .countryGroup:not([hidden]){
  display:grid;
  grid-template-columns:20px;
  grid-template-rows:minmax(var(--country-height),auto);
  grid-auto-flow:column;
  align-items:end;
  grid-auto-columns:clamp(94px,15vw,122px);
  gap:3px 4px;
  flex:none;
}
.mobileSplit.generatedUI .countryGroup h2{
  pointer-events:auto;
  grid-row:1;
  grid-column:1;
  height:var(--country-height);
  box-sizing:border-box;
  position:static;
  padding:2px;
  writing-mode:vertical-rl;
  text-orientation:upright;
  text-combine-upright:none;
  align-items:center;
  justify-content:center;
  font-size:6px;
  line-height:1;
  gap:1px;
  letter-spacing:0;
  white-space:nowrap;
}
.mobileSplit.generatedUI .countryGroup h2 small{display:block;font-size:6px;white-space:nowrap;text-orientation:upright;text-combine-upright:none}
html:not(:lang(ja)):not(:lang(zh)):not(:lang(ko)) .mobileSplit.generatedUI .countryGroup h2,
html:not(:lang(ja)):not(:lang(zh)):not(:lang(ko)) .mobileSplit.generatedUI .countryGroup h2 small{text-orientation:mixed}
.mobileSplit.generatedUI #countryListRows button{
  grid-row:1;
  margin:0;
  min-height:0;
  padding:4px 6px;
  overflow:auto;
  scrollbar-width:none;
}
.mobileSplit.generatedUI #countryListRows button>*{flex-shrink:0}
.mobileSplit.generatedUI #countryListRows strong{font-size:11px}
.mobileSplit.generatedUI #countryListRows .countryStats{font-size:9px}

.mobileSplit.generatedUI #intro:not(:has(#hackerName:focus)){
  box-sizing:border-box;
  padding:10px 5%;
  overflow:hidden;
}
.mobileSplit #intro h1{margin:5px 0}
.mobileSplit #intro p{margin:4px 0;line-height:1.4}
.mobileSplit #intro .basePicker{
  width:324px;
  grid-template-columns:84px minmax(0,1fr);
  gap:8px;
  margin-top:6px;
}
.mobileSplit #intro .introActions{margin-top:6px;gap:6px}

@media(max-width:699px) and (orientation:portrait){
  #intro:has(#hackerName:focus) #hackerNameLandscapeHint{
    display:block;
    margin-top:4px;
    color:#a6c5ce;
  }
}

.mobileSplit.generatedUI .newsStack{
  left:calc((100% + var(--attack-width) + 2px) / 2);
  top:calc((100% - var(--country-height)) / 2);
  width:min(350px,calc(100% - var(--attack-width) - 26px));
}
.mobileSplit.generatedUI .majorNews{padding:9px;gap:8px}
.mobileSplit.generatedUI .majorNews>span{min-width:42px;font-size:10px}
.mobileSplit.generatedUI .majorNews strong{font-size:12px;line-height:1.4}

.generatedUI .countryCard{display:contents}
.mobileSplit.generatedUI .countryCard{
  grid-row:1;
  display:grid;
  grid-template-rows:auto var(--country-height);
  min-height:var(--country-height);
  align-self:end;
  min-width:0;
}
.mobileSplit.generatedUI .countryCard:has(button[hidden]){display:none}
.mobileSplit.generatedUI #countryListRows .countryCard button{grid-row:2;pointer-events:auto;box-sizing:border-box;height:100%}
.mobileSplit.generatedUI .countryCard>.countryAttacks{
  grid-row:1;
  order:0;
  margin:0;
  padding:0 3px;
  gap:3px;
  max-height:none;
  overflow:visible;
  scrollbar-width:none;
  pointer-events:auto;
}
.mobileSplit.generatedUI .countryCard>.countryAttacks:not(:empty),
.mobileSplit.generatedUI .countryCard>.countryAttacks[data-status]:not([data-status=""]){
  padding-block:3px;
}
.mobileSplit.generatedUI .countryAttack{gap:1px 3px;flex-shrink:0}
.mobileSplit.generatedUI #countryListRows strong{font-size:10px}
.mobileSplit.generatedUI #countryListRows :is(small,.countryStats,.countryAttack,.countryAttack b,.countryCondition,.countryCounter){font-size:8px}

.mobileSplit.generatedUI #countryListRows .countryCard button>small{display:none}
.mobileSplit.generatedUI .countryCard>.countryAttacks[data-status]:not([data-status=""])::before{
  content:attr(data-status);
  flex-shrink:0;
  color:#b0cbd4;
  font-size:8px;
  line-height:1.15;
}

.mobileSplit.generatedUI footer:has(> #attackPanel){
  grid-template-columns:64px minmax(0,1fr);
}
.mobileSplit.generatedUI #funds:has(.largeFunds) .fundsValue{display:none}
.mobileSplit.generatedUI #funds .largeFunds{display:inline}

.mobileSplit.generatedUI #countryListRows .countryStats{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:1px;
  margin:2px 0;
}
.mobileSplit.generatedUI .countryNumbers{overflow:hidden;text-overflow:ellipsis}
.mobileSplit.generatedUI .countryPercent{justify-self:end}

.countryInlinePopulation{display:none}
.mobileSplit.generatedUI #countryListRows .countryTitleWrapped .countryInlinePopulation{
  display:inline-block;
  margin-left:3px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  vertical-align:baseline;
  color:#88aab9;
  font-size:8px;
  font-weight:400;
}
.mobileSplit.generatedUI .countryTitleWrapped .countryNumbers{
  position:absolute;
  clip-path:inset(50%);
}

.mobileSplit.generatedUI .countryCard>.countryAttacks:is([data-state="collapsed"],[data-state="isolated"]){display:flex}

.mobileSplit.generatedUI .countryCard>.countryAttacks[data-state="collapsed"]{
  align-self:end;
  padding-block:0 1px;
}
.mobileSplit.generatedUI .countryCard>.countryAttacks[data-state="collapsed"]::before{
  color:#70bdff;
  font-weight:700;
}

.mobileSplit.generatedUI .countryCard>.countryAttacks[data-state="isolated"]::before{
  color:#ff8896;
  font-weight:700;
}

.mobileSplit.generatedUI #countryListRows :is(button,.countryAttacks){touch-action:pan-x pan-y}

#countryNativeScroll{display:contents}

@media(max-width:699px) and (orientation:portrait){
  .mobileSplit.generatedUI #countryList{
    height:var(--country-rail-height,var(--country-height));
    container-type:inline-size;
  }
  .mobileSplit.generatedUI #countryNativeScroll{
    display:block;
    position:absolute;
    top:100%;
    left:1px;
    width:var(--country-rail-height,var(--country-height));
    height:100cqw;
    transform-origin:top left;
    transform:rotate(-90deg);
    overflow:hidden auto;
    overscroll-behavior-y:auto;
    pointer-events:auto;
    scrollbar-width:none;
  }
  .mobileSplit.generatedUI #countryListRows{
    width:max-content;
    overflow:visible;
    transform-origin:top left;
    transform:translateX(var(--country-rail-height,var(--country-height))) rotate(90deg);
  }
}

.hexSkills .evoDetail{grid-template-rows:minmax(0,1fr) auto}
.hexSkills .evoDetailScroll{min-height:0;overflow:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:7px;padding-right:3px;touch-action:pan-y}
.hexSkills .evoDetailScroll h3{font-size:15px;line-height:1.35}
.hexSkills .evoDetailScroll p{font-size:11px;line-height:1.45;max-height:none;overflow:visible}
.hexSkills .evoDetailScroll .evoLevel{font-size:11px}
.hexSkills .evoDetailScroll .evoNeeds{overflow:visible;display:flex;flex-direction:column;flex-shrink:0}
.hexSkills .evoDetailScroll .evoNeeds button,.hexSkills .evoDetailScroll .evoNeeds span{font-size:10px;line-height:1.4;padding:6px;min-height:32px;flex-shrink:0}
.hexSkills .evoDetailScroll .evoBadge{flex-shrink:0}
.hexSkills .evoDetail>.evoFunds{grid-row:2}
.hexSkills .evoDetail>.evoPurchase{grid-row:3}

.hexSkills .evoDetailActions{display:flex;align-items:center;gap:7px;min-width:0;grid-row:2}
.hexSkills .evoDetailActions .evoFunds{font-size:12px;line-height:1.35;flex:1;min-width:0;overflow-wrap:anywhere}
.hexSkills .evoDetailActions .evoPurchase{font-size:11px;min-height:40px;min-width:74px;max-width:58%;margin:0;padding:6px;flex:0 1 auto}
