#btnMakeProbe {
    margin-bottom: 2px;
}

#btnAddProc {
    width: 70px;
    margin-bottom: 1px;
}

#btnAddMem {
    width: 70px;
}

#btnEntertainSwarm {
    margin-top: 4px;
    margin-bottom: 4px;
}

#btnSynchSwarm {
    margin-top: 4px;
    margin-bottom: 4px;
}


#qCompDisplay {
    margin-left: 3px;
    
}

#swarmSliderDiv {
    position: relative;
    display: inline-block;
    margin-bottom: 10px;  
}

#sliderLabelWork {
    position: relative;
    display: inline-block;
}

#swarmSlider {
    position: absolute;
    display: inline-block;
    width: 180px;
    top: 0px;
    margin-left: 2px;
    margin-right: 4px;

}

#sliderLabelThink {
    position: relative;
    display: inline-block;
    left: 190px;
}

.slider {
    width: 100%;
    
}

h2 {
    line-height: 70%;
}

.toolTip {
    position: relative;
    display: inline-block;
}

.toolTip .toolTipText {
    visibility: hidden;
    width: 160px;
    background-color: #c8c8c8;
    color: #000;
    text-align: center;
    padding: 5px 0;
    border-radius: 3px;
    
    position: absolute;
    z-index: 1;
    bottom: 75%;
    left: 50%;
    margin-left: -19px;
    
    opacity: 0;
    transition: opacity 1s;
}

.toolTip:hover .toolTipText {
    visibility: visible;
    opacity: 1;
}

.toolTip2 {
    margin-left: 2px;
    position: relative;
    display: inline-block;
    height: 20px;
    margin-top: 5px;

}

.toolTip2 .toolTipText2 {
    visibility: hidden;
    width: 200px;
    background-color: #c8c8c8;
    color: #000;
    text-align: center;
    padding: 5px 0;
    border-radius: 3px;
    
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 11;
    
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -15px;
    
    opacity: 0;
    transition: opacity 1s;
}

.toolTip2:hover .toolTipText2 {
    visibility: visible;
    opacity: 1;
}

.toolTip3 {
    position: relative;
    display: inline-block;
    margin-bottom: 5px;
}

.toolTip3 .toolTipText3 {
    visibility: hidden;
    width: 180px;
    background-color: #c8c8c8;
    color: #000;
    text-align: center;
    padding: 5px 0;
    border-radius: 3px;
    
    position: absolute;
    z-index: 1;
    bottom: 27px;
    left: 80px;
    margin-left: 0px;
    
    opacity: 0;
    transition: opacity 1s;
}

.toolTip3:hover .toolTipText3 {
    visibility: visible;
    opacity: 1;
}


#cover {
    position:fixed;
    background-color: white;
    top:0;
    left:0;
    height:100%;
    width:100%;
    z-index: 10;
}

#tournamentStuff {
    height: 58px;

}

#tournamentLabel {
    margin-bottom: 5px;
}

#wireBuyerDiv {
    margin-bottom: 3px;
}

#processorDisplay {
    display: inline-block;
    vertical-align: baseline;
    height: 22px;
}

#memoryDisplay {
    display: inline-block;
    vertical-align: baseline;
    height: 22px;
}

#harvesterMultiButtons {
    margin-bottom: 2; 
}

#wireDroneMultiButtons {
    margin-bottom: 2;
}

#farmMultiButtons {
    margin-bottom: 2;
}

#batteryMultiButtons {
    margin-bottom: 2;
}

#autoTourneyStatusDiv {
    float: left;
    width: 30px;
}

#tourneyButton {
    float: left;
    width: 120px;
}

#autoTourneyControl {
    float: left;
    width: 78px;
}

#victoryDiv {
    margin-top: 10px;
    width: 289px;
    text-align: center;
}

#increaseProbeTrustDiv {
  float: left;
  width: 130px;  
  margin-left: 5;
  border: 0;
}

#increaseMaxTrustDiv {
  float: left;    
  width: 150px;  
  margin: 0;
  border: 0;    
}

#combatButtonDiv {
  margin-top: 0;    
}

#battleCanvasDiv {
  position: relative;
}

#battleInterfaceDiv {
  position: absolute;
  left: 15px;
  top: 8px;
}

canvas {
  display: block;
  margin-top: 0;
  margin-bottom: 10;    
  width: 310px;
  height: 150px;
  margin-left: auto;
  margin-right: auto;
  background-color: #808080;
}

#hypnoDroneEventDiv {
  
  float: left;
  background: black;    
  width: 100%;

}

#prestigeDiv {
  background-color: lightgrey;
}

#consoleDiv {
  
  float: left;
  background: black;    
  width: 100%;
}
#topDIv {
  float: left;
  width: 100%;
}
#leftColumn {
  float: left ;
  width: 275px;
}
#middleColumn {
  float: left;
  width: 275px;
  margin-left: 10px;
}
#rightColumn {
  float: left;
  width: 320px;
  margin-left: 10px;    
}

#investmentDiv1 {
  float: left;
  width: 64px; 
  line-height: 20%;    
}

#investmentDiv2 {
  float: left;
  width: 65%; 
  text-align: top;
  margin-top: 0; 
  margin-left: 5px;    
}

#stratDiv1 {
  float: left;
  width: 95px; 
  line-height: 20%; 
}

#stratDiv2 {
  float: left;
  width: 60%; 
  text-align: top;
  margin-top: 0; 
  margin-left: 5px;   
}

#vertPad {
  float: left;
  width: 35%;    
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 11;     
}

#vertStrat {
  float: right;
  text-align: center;
  width: 65%;    
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 11;     

}

#horizStrat {
  float: left; 

  display: flex;    
  align-items: center;

  justify-content: center;    
  width: 25%;  
  height: 56px;    
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 11;     
}

#investmentEngineUpgrade {
    margin: 5px;
    margin-bottom: 10px;
}

#tournamentManagement {
    margin: 5px;
    margin-bottom: 10px;
}

#feedButtonDiv {
    margin-top: 5;
}




.engine {
    margin: 5;
    border: 1px solid grey;
    padding: 5; 
}

.engine2 {
    margin: 5;
    border: 1px solid grey;
    padding: 5; 
}

.swarmEngine {
    margin-bottom: 5;
    border: 1px solid grey;
    padding: 5; 
}

.qEngine {
    margin-bottom: 10;
    border: 1px solid grey;
    padding: 5; 
    height: 70px;
    
}

.qChip {
    width: 22px;
    height: 22px;
    margin-left: 2;
    margin-right: 2;
    margin-top: 2;
    margin-bottom: 7;
    background-color: black;
    float: left;
    
}

.engineText {
    margin-bottom: 0;
    margin-top: 0;
    line-height: 150%;
}

.engineText1 {
    margin-left: 5;
    margin-bottom: 0;
    margin-top: 0;
}

.engineText2 {
    margin-bottom: 0;
    margin-top: 0;
    line-height: 150%;
}

.engineText3 {
    margin-left: 5;
    margin-top: 10;
    line-height: 150%;
}

.engineText4 {
    margin-left: 5;
    margin-top: 10;
    margin-bottom: 0;
    
}

.engineText5 {
    margin-left: 0;
    margin-top: 0;
    margin-bottom: 3;
}

.engineText6 {
    margin-left: 0;
    margin-top: 0;
    margin-bottom: 0;
    vertical-align: bottom;
}

.engineText7 {
    margin-left: 0;
    margin-top: 0;
    margin-bottom: 0;
    vertical-align: bottom;
}

.engineText8 {
    margin-left: 0;
    margin-top: 3px;
    margin-bottom: 0;
}

.engineText9 {
    display: inline-block;
    margin-top: 1px;

}

.engineText10 {
    display: inline-block;
    line-height: 18px;
    vertical-align: bottom;
}

hr {
    display: block;
    margin-top: .05em;
    margin-bottom: 0.2em;
    margin-left: auto;
    margin-right: auto;
    border-style: inset;
    border-width: 1px;
    
}

hr.short {
    
    width: 225px;
    margin-left: 0;
}


table.table1 {
    table-layout: fixed;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 11;
    margin-bottom: 0;
    margin-top: 0;
    width: 100%;
    border: none;
}

table.table1 tr:nth-child(even) {
    background-color: #dddddd;
}

table.table2 {
    border-collapse: collapse;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 11;
    margin-bottom: 0;
    margin-top: 0;
    margin-right: 0px;
    margin-left: 0px;
    width: 70%;

}

table.table3 {
    border-collapse: collapse;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 11;
    margin-bottom: 0;
    margin-top: 0;
    margin-right: 0px;
    margin-left: 0px;
    width: 100%;

}

table.table2 td:nth-child(1) {
    width: 45px;
    text-align: right;
    padding-right: 4px;
    border-left: none;
    border-top: none;
    border-bottom:none;
    font-weight: bold;
}

table.table2 td:nth-child(n>1) {
    table-layout: fixed;
    
}

table.table2 td{
    border: 1px solid black;
    text-align: center;
}


p.clean {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 11;
    margin-bottom: 0;
    margin-top: 1px;
    
}

p.clean2 {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 11;
    margin-bottom: 0;
    margin-top: 0px;
    
}

p.clean3 {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 11;
    margin-bottom: 5px;
    margin-top: 2px;
    
}


p.console {
    font-family: "Lucida Sans Typewriter", "Lucida Console", Monaco, "Bitstream Vera Sans Mono", monospace;
    font-size: 12;
    color: white;
    margin-top: 0;
}

p.consoleOld {
    font-family: "Lucida Sans Typewriter", "Lucida Console", Monaco, "Bitstream Vera Sans Mono", monospace;
    font-size: 12;
    color: grey;
    margin-bottom: 0;
}

p.hypnoDrone {
    
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 150;
    color: white;
    line-height: 115px;
    margin-bottom: 0px;
    margin-top: 0px;
    
}

.pulsate {
    -webkit-animation: pulsate .5s ease-out;
    -webkit-animation-iteration-count: infinite; 
    opacity: 0.0;
    }

@-webkit-keyframes pulsate {
    0% { 
        opacity: 0.0;
    }
    50% { 
        opacity: 1.0;
    }
    100% { 
        opacity: 0.0;
    }
}


.projectButton {
    display: block;
    height: 60px;
    width: 275px;
    background: #c8c8c8;
    border: 1px solid rgba(0, 0, 0, 1);
    outline: none;
    margin-bottom: 6px;
}

.projectButton:hover {
    display: block;
    height: 60px;
    width: 275px;
    background: #c8c8c8;
    border: 1px solid rgba(0, 0, 0, 0.25);
}

.projectButton:active {
    display: block;
    height: 60px;
    width: 275px;
    background: #d1d1d1;
    border: 1px solid rgba(0, 0, 0, 1);
    
}

.projectButton:disabled {
    border: none;
}

.button {
   border: 1px solid #1a1a1a;
   background: #666666;
  
   background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#cccccc));
   background: -webkit-linear-gradient(top, #ffffff, #888888);
   background: -moz-linear-gradient(top, #ffffff, #888888);
   background: -ms-linear-gradient(top, #ffffff, #888888);
   background: -o-linear-gradient(top, #ffffff, #888888);
   background-image: -ms-linear-gradient(top, #ffffff 0%, #888888 100%);
    
   padding: 12.5px 25px;
   -webkit-border-radius: 3px;
   -moz-border-radius: 3px;
   border-radius: 3px;
   -webkit-box-shadow: rgba(255,255,255,0.4) 0 1px 0, inset rgba(255,255,255,0.4) 0 1px 0;
   -moz-box-shadow: rgba(255,255,255,0.4) 0 1px 0, inset rgba(255,255,255,0.4) 0 1px 0;
   box-shadow: rgba(255,255,255,0.4) 0 1px 0, inset rgba(255,255,255,0.4) 0 1px 0;
   text-shadow: #cccccc 0 1px 0;
   color: #000000;
   font-size: 16px;
   font-family: helvetica, serif;
   text-decoration: none;
   vertical-align: middle;
   outline: none;
   }

.button:hover {
   border: 1px solid #898989;
   text-shadow: #d4d4d4 0 1px 0;
   background: #666666;
   background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#666666));
   background: -webkit-linear-gradient(top, #ffffff, #666666);
   background: -moz-linear-gradient(top, #ffffff, #666666);
   background: -ms-linear-gradient(top, #ffffff, #666666);
   background: -o-linear-gradient(top, #ffffff, #666666);
   background-image: -ms-linear-gradient(top, #ffffff 0%, #666666 100%);
   color: #000000;
   }

.button:active {
   text-shadow: #bfbfbf 0 1px 0;
   border: 1px solid #2e2e2e;

   background: #d9d9d9;
   background: -webkit-gradient(linear, left top, left bottom, from(#595959), to(#616161));
   background: -webkit-linear-gradient(top, #595959, #d9d9d9);
   background: -moz-linear-gradient(top, #595959, #d9d9d9);
   background: -ms-linear-gradient(top, #595959, #d9d9d9);
   background: -o-linear-gradient(top, #595959, #d9d9d9);
   background-image: -ms-linear-gradient(top, #595959 0%, #d9d9d9 100%);

   color: #000000;
   }

.button:disabled{
   opacity: 0.6;
   border: 1px solid #ffffff;
}

.button2 {
   border: 1px solid #1a1a1a;
   background: #666666;
    
   background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#cccccc));
   background: -webkit-linear-gradient(top, #ffffff, #888888);
   background: -moz-linear-gradient(top, #ffffff, #888888);
   background: -ms-linear-gradient(top, #ffffff, #888888);
   background: -o-linear-gradient(top, #ffffff, #888888);
   background-image: -ms-linear-gradient(top, #ffffff 0%, #888888 100%);
    
   padding: 2px 4px;
   -webkit-border-radius: 2px;
   -moz-border-radius: 2px;
   border-radius: 2px;
   -webkit-box-shadow: rgba(255,255,255,0.4) 0 0px 0, inset rgba(255,255,255,0.4) 0 1px 0;
   -moz-box-shadow: rgba(255,255,255,0.4) 0 0px 0, inset rgba(255,255,255,0.4) 0 1px 0;
   box-shadow: rgba(255,255,255,0.4) 0 0px 0, inset rgba(255,255,255,0.4) 0 1px 0;
   text-shadow: #cccccc 0 1px 0;
   color: #000000;
   font-size: 11px;
   font-family: helvetica, serif;
   text-decoration: none;
   vertical-align: middle;
   outline: none;
   }

.button2:hover {
   border: 1px solid #898989;
   text-shadow: #d4d4d4 0 1px 0;
   background: #616161;
    
   background: -webkit-gradient(linear, left top, left bottom, from(#f7f7f7), to(#888888));
   background: -webkit-linear-gradient(top, #f7f7f7, #888888);
   background: -moz-linear-gradient(top, #f7f7f7, #888888);
   background: -ms-linear-gradient(top, #f7f7f7, #888888);
   background: -o-linear-gradient(top, #f7f7f7, #888888);
   background-image: -ms-linear-gradient(top, #f7f7f7 0%, #888888 100%);
    
   color: #000000;
   }

.button2:active {
   text-shadow: #bfbfbf 0 1px 0;
   border: 1px solid #2e2e2e;
    
   background: #d9d9d9;
   background: -webkit-gradient(linear, left top, left bottom, from(#595959), to(#616161));
   background: -webkit-linear-gradient(top, #595959, #d9d9d9);
   background: -moz-linear-gradient(top, #595959, #d9d9d9);
   background: -ms-linear-gradient(top, #595959, #d9d9d9);
   background: -o-linear-gradient(top, #595959, #d9d9d9);
   background-image: -ms-linear-gradient(top, #595959 0%, #d9d9d9 100%);
   
   color: #444444;
   }

.button2:disabled {
   opacity: 0.6;
   border: 1px solid #ffffff;
}

:root {
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color: #171918;
  background: #fbfcfa;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --paper: #fbfcfa;
  --ink: #171918;
  --muted: #696e6b;
  --line: #b9bebb;
  --soft-line: #d7dad7;
  --panel: #f0f1ee;
  --button: #eceeeb;
  --focus: #4e8179;
  --danger: #874b47;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  color-scheme: light;
  background: var(--paper);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  font-size: 14px;
  line-height: 1.48;
}

button,
select,
input {
  font: inherit;
}

button:focus-visible,
select:focus-visible,
input:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 3px solid var(--focus) !important;
  outline-offset: 2px;
}

#app,
.legacy-game-host {
  min-height: 100vh;
}

#page {
  width: 100%;
  min-height: 100vh;
  padding: 14px 18px 48px;
}

#page::after,
#topDiv::after {
  display: block;
  clear: both;
  content: "";
}

#cover {
  background: var(--paper);
}

#consoleDiv {
  min-height: 118px;
  padding: 11px 14px 9px;
  border-top: 2px solid #747a77;
  background: #080a09;
}

#consoleDiv p.console,
#consoleDiv p.consoleOld {
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.45;
}

#consoleDiv p.consoleOld {
  color: #858c88;
}

#consoleDiv p.console {
  margin-bottom: 0;
  color: #e1e5e2;
}

#cursor {
  color: #aeb6b1;
}

#hypnoDroneEventDiv {
  position: fixed;
  inset: 0;
  z-index: 11;
  display: flex;
  align-items: center;
  justify-content: center;
}

#hypnoDroneEventDiv p.hypnoDrone {
  font-family: inherit;
  font-size: clamp(3rem, 13vw, 9rem);
  line-height: 0.95;
  text-align: center;
}

#topDiv {
  float: left;
  width: 100%;
  padding: 11px 0 8px;
}

#prestigeDiv {
  padding: 3px 6px;
  background: var(--panel);
  color: var(--muted);
  font-size: 11px;
}

#topDiv h2 {
  margin: 0.6rem 0 0.3rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: -0.025em;
}

#leftColumn,
#middleColumn,
#rightColumn {
  min-width: 0;
  padding-bottom: 24px;
}

#leftColumn {
  width: 275px;
}

#middleColumn {
  width: 275px;
  margin-left: 10px;
}

#rightColumn {
  width: 320px;
  margin-left: 10px;
}

#leftColumn > div > b:first-child,
#middleColumn > div > b:first-child,
#rightColumn > div > b:first-child {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
}

hr {
  height: 1px;
  margin: 0.12rem 0 0.35rem;
  border: 0;
  background: var(--line);
}

hr.short {
  width: 100%;
}

.button,
.button2,
.projectButton,
.developer-tools button {
  border: 1px solid #a8ada9;
  border-radius: 2px;
  background: linear-gradient(#fff, var(--button));
  box-shadow: none;
  color: var(--ink);
  font-family: inherit;
  text-shadow: none;
  cursor: pointer;
}

.button {
  min-height: 2.35rem;
  padding: 0.55rem 0.9rem;
  font-size: 0.95rem;
}

.button2,
.developer-tools button {
  min-height: 1.45rem;
  padding: 0.08rem 0.38rem;
  font-size: 0.78rem;
  line-height: 1.15;
}

#processorDisplay,
#memoryDisplay {
  height: 22px;
  line-height: 22px;
  white-space: nowrap;
}

#btnAddProc,
#btnAddMem {
  width: 82px;
  min-height: 1.3rem;
  padding: 1px 6px;
  font-size: 11px;
  line-height: 1.15;
  white-space: nowrap;
}

.button:hover:not(:disabled),
.button2:hover:not(:disabled),
.projectButton:hover:not(:disabled),
.developer-tools button:hover:not(:disabled) {
  border-color: #4b504d;
  background: #fff;
  color: var(--ink);
  text-shadow: none;
}

.button:active:not(:disabled),
.button2:active:not(:disabled),
.projectButton:active:not(:disabled),
.developer-tools button:active:not(:disabled) {
  border-color: #292d2b;
  background: #dfe2df;
  color: var(--ink);
  transform: translateY(1px);
}

.button:disabled,
.button2:disabled,
.projectButton:disabled,
.developer-tools button:disabled {
  border: 1px solid #d8dbd8;
  background: #eff0ee;
  color: #979c98;
  opacity: 1;
  cursor: not-allowed;
}

.projectButton {
  display: block;
  width: 100%;
  height: auto;
  min-height: 60px;
  margin-bottom: 6px;
  padding: 7px 8px;
  background: var(--panel);
  line-height: 1.32;
  overflow: visible;
  overflow-wrap: anywhere;
  white-space: normal;
  text-align: center;
}

.projectButton:hover,
.projectButton:active,
.projectButton:disabled,
.projectButton:disabled:hover,
.projectButton:disabled:active {
  display: block;
  width: 100%;
  height: auto;
  min-height: 60px;
}

.projectButton:hover:not(:disabled) {
  background: #f7f8f5;
}

.projectButton:active:not(:disabled) {
  background: #dfe2df;
}

.engine,
.engine2,
.swarmEngine,
.qEngine {
  border-color: #949a96;
  background: rgba(240, 241, 238, 0.58);
}

#investmentEngine {
  position: relative;
  padding: 5px;
}

#investStrat {
  position: absolute;
  top: 5px;
  right: 5px;
  min-height: 22px;
  vertical-align: middle;
}

#investmentDiv1 {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 146px;
  line-height: normal;
}

#investmentDiv1 > br {
  display: none;
}

#investmentDiv1 .button2,
#btnImproveInvestments {
  height: 22px;
  min-height: 22px;
  padding: 1px 6px;
  line-height: 18px;
  white-space: nowrap;
}

#investmentDiv1 .button2 {
  width: 100%;
}

#investmentDiv2 {
  width: calc(100% - 154px);
  margin-left: 8px;
}

#investmentDiv2 p.clean {
  line-height: 1.45;
}

#investmentEngine table.table1 {
  clear: both;
}

#investmentEngineUpgrade .engineText7 {
  vertical-align: middle;
}

#strategyEngine {
  padding: 5px;
  overflow: visible;
}

#qComputing {
  height: auto;
  min-height: 80px;
  padding: 5px;
}

#swarmEngine {
  padding: 5px;
}

#probeDesignDiv {
  padding: 5px;
}

#strategyEngine > .engineText {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 8px;
  align-items: center;
}

#strategyEngine > .engineText > b {
  min-width: 0;
}

#strategyEngine > .engineText > #stratPicker {
  min-width: 0;
  max-width: 100%;
  justify-self: end;
}

#strategyEngine > .engineText > #btnRunTournament {
  grid-column: 1 / -1;
  justify-self: start;
  white-space: nowrap;
}

#strategyEngine > .engineText > br {
  display: none;
}

#tournamentLabel {
  min-height: 0;
  margin: 2px 0 7px;
}

#tournamentLabel .clean2 {
  line-height: 1.35;
}

#tournamentStuff {
  height: auto;
  min-height: 76px;
}

#tournamentTable {
  display: grid;
  grid-template-columns: minmax(74px, 25%) minmax(0, 75%);
  grid-template-areas:
    "pad vertical"
    "horizontal matrix";
  align-items: stretch;
  width: 100%;
}

#vertPad,
#vertStrat,
#horizStrat {
  float: none;
  width: auto;
  min-width: 0;
}

#vertPad {
  grid-area: pad;
}

#vertStrat {
  grid-area: vertical;
  padding-bottom: 2px;
  text-align: center;
  overflow-wrap: anywhere;
}

#horizStrat {
  grid-area: horizontal;
  left: auto;
  height: auto;
  min-height: 54px;
  padding-right: 6px;
  overflow-wrap: anywhere;
}

#tournamentTable .table2 {
  grid-area: matrix;
  width: 100%;
}

#tournamentTable .table2 th,
#tournamentTable .table2 td {
  height: auto;
  padding: 2px 3px;
  overflow-wrap: anywhere;
}

#tournamentTable .table2 th,
#tournamentTable .table2 td:first-child {
  padding-inline: 1px;
}

#tournamentTable .table2 td:first-child {
  width: auto;
  padding-right: 4px;
}

#tournamentResultsTable,
#tournamentResultsTable .table3 {
  width: 100%;
}

#tournamentResultsTable .table3 td {
  padding: 1px 3px;
  overflow-wrap: anywhere;
}

#strategyEngine > .engineText4 {
  clear: both;
  margin-top: 7px;
}

#tournamentManagement {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 4px 6px;
}

#tournamentManagement > br {
  display: none;
}

#tourneyButton,
#autoTourneyControl,
#autoTourneyStatusDiv {
  float: none;
  width: auto;
  min-width: 0;
}

#tourneyButton .button2,
#autoTourneyControl .button2 {
  width: auto;
  white-space: nowrap;
}

#tournamentManagement > .engineText8 {
  flex: 0 0 100%;
}

.qChip {
  background: var(--ink);
}

p.clean,
p.clean2,
p.clean3,
table.table1,
table.table2,
table.table3,
#vertPad,
#vertStrat,
#horizStrat {
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
}

table.table1 tr:nth-child(even) {
  background: #e2e4e1;
}

table.table2 td,
table.table3 td {
  border-color: #8f9591;
}

.toolTip .toolTipText,
.toolTip2 .toolTipText2,
.toolTip3 .toolTipText3 {
  border: 1px solid #a6aba7;
  background: #e7e9e6;
  color: var(--ink);
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.68rem;
  line-height: 1.35;
  box-shadow: 0 3px 12px rgba(18, 21, 19, 0.12);
}

.toolTip:focus-within .toolTipText,
.toolTip2:focus-within .toolTipText2,
.toolTip3:focus-within .toolTipText3 {
  visibility: visible;
  opacity: 1;
}

#battleCanvasDiv {
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: 100%;
  min-height: 0;
  margin-top: 18px;
}

#battleInterfaceDiv {
  position: static;
  order: -1;
  width: 100%;
  margin-bottom: 9px;
}

#battleInterfaceDiv > br {
  display: none;
}

#battleInterfaceDiv > b {
  display: block;
  margin: 0 0 6px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--line);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1;
}

#battleInterfaceDiv > p.clean2 {
  line-height: 1.35;
}

#battleInterfaceDiv > p.clean2:last-child {
  margin-top: 4px;
}

#victoryDiv {
  position: absolute;
  right: 0;
  bottom: 12px;
  left: 0;
  z-index: 1;
  width: min(100%, 310px);
  margin: 0 auto;
  text-align: center;
  pointer-events: none;
}

#powerDiv {
  margin-top: 18px;
}

canvas {
  width: min(100%, 310px);
  max-width: 100%;
  height: auto;
  aspect-ratio: 31 / 15;
  background: #777d79;
}

.boot-error {
  position: fixed;
  inset: 16px 16px auto;
  z-index: 20;
  max-width: 720px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--danger);
  background: #fff3f1;
  color: #612d29;
}

.developer-tools {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 30;
  width: min(280px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  border: 1px solid #686e6a;
  background: rgba(251, 252, 250, 0.98);
  box-shadow: 0 8px 28px rgba(15, 18, 16, 0.18);
  font-size: 12px;
}

.developer-tools summary {
  padding: 8px 10px;
  background: #1c201e;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.developer-tools__notice {
  margin: 8px 10px 5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.developer-tools__group {
  padding: 5px 10px 9px;
  border-top: 1px solid var(--soft-line);
}

.developer-tools__group h2 {
  margin: 0 0 5px;
  font: 700 12px/1.35 inherit;
}

.developer-tools__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.developer-tools__preview label,
.developer-tools__preview select {
  display: block;
  width: 100%;
}

.developer-tools__preview select {
  min-height: 1.85rem;
  margin-top: 3px;
  padding: 2px 5px;
  border: 1px solid #a8ada9;
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
}

.developer-tools__preview p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.35;
}

.developer-tools__preview .developer-tools__preview-active {
  color: var(--danger);
  font-weight: 700;
}

.developer-tools button {
  min-height: 1.85rem;
}

.developer-tools button.developer-tools__danger {
  color: var(--danger);
}

/*
 * Debug interface previews are CSS-only visibility overrides. The legacy host
 * is inert while any preview is active, so none of these controls can dispatch
 * a gameplay action. Removing the class immediately restores the visibility
 * last written by the original game loop.
 */
.legacy-game-host.ui-preview #creationDiv,
.legacy-game-host.ui-preview #wireProductionDiv,
.legacy-game-host.ui-preview #spaceDiv,
.legacy-game-host.ui-preview #businessDiv,
.legacy-game-host.ui-preview #manufacturingDiv,
.legacy-game-host.ui-preview #compDiv,
.legacy-game-host.ui-preview #projectsDiv,
.legacy-game-host.ui-preview #investmentEngine,
.legacy-game-host.ui-preview #investmentEngineUpgrade,
.legacy-game-host.ui-preview #strategyEngine,
.legacy-game-host.ui-preview #tournamentManagement,
.legacy-game-host.ui-preview #battleCanvasDiv,
.legacy-game-host.ui-preview #powerDiv,
.legacy-game-host.ui-preview #probeDesignDiv,
.legacy-game-host.ui-preview #increaseProbeTrustDiv,
.legacy-game-host.ui-preview #increaseMaxTrustDiv {
  display: none !important;
}

.legacy-game-host.ui-preview #prestigeDiv,
.legacy-game-host.ui-preview--act1 #businessDiv,
.legacy-game-host.ui-preview--act1 #manufacturingDiv,
.legacy-game-host.ui-preview--act1 #compDiv,
.legacy-game-host.ui-preview--act1 #projectsDiv,
.legacy-game-host.ui-preview--act1 #investmentEngine,
.legacy-game-host.ui-preview--act1 #investmentEngineUpgrade,
.legacy-game-host.ui-preview--act1 #strategyEngine,
.legacy-game-host.ui-preview--act1 #tournamentManagement,
.legacy-game-host.ui-preview--act2 #creationDiv,
.legacy-game-host.ui-preview--act2 #wireProductionDiv,
.legacy-game-host.ui-preview--act2 #compDiv,
.legacy-game-host.ui-preview--act2 #projectsDiv,
.legacy-game-host.ui-preview--act2 #strategyEngine,
.legacy-game-host.ui-preview--act2 #tournamentManagement,
.legacy-game-host.ui-preview--act2 #powerDiv,
.legacy-game-host.ui-preview--act3 #creationDiv,
.legacy-game-host.ui-preview--act3 #wireProductionDiv,
.legacy-game-host.ui-preview--act3 #spaceDiv,
.legacy-game-host.ui-preview--act3 #compDiv,
.legacy-game-host.ui-preview--act3 #projectsDiv,
.legacy-game-host.ui-preview--act3 #strategyEngine,
.legacy-game-host.ui-preview--act3 #tournamentManagement,
.legacy-game-host.ui-preview--act3 #battleCanvasDiv,
.legacy-game-host.ui-preview--act3 #powerDiv,
.legacy-game-host.ui-preview--act3 #probeDesignDiv,
.legacy-game-host.ui-preview--act3 #increaseProbeTrustDiv,
.legacy-game-host.ui-preview--act3 #increaseMaxTrustDiv {
  display: block !important;
}

.legacy-game-host.ui-preview--act1 #revPerSecDiv,
.legacy-game-host.ui-preview--act1 #wireBuyerDiv,
.legacy-game-host.ui-preview--act1 #autoClipperDiv,
.legacy-game-host.ui-preview--act1 #megaClipperDiv,
.legacy-game-host.ui-preview--act1 #trustDiv,
.legacy-game-host.ui-preview--act1 #creativityDiv,
.legacy-game-host.ui-preview--act1 #qComputing,
.legacy-game-host.ui-preview--act1 #autoTourneyControl,
.legacy-game-host.ui-preview--act1 #autoTourneyStatusDiv,
.legacy-game-host.ui-preview--act2 #factoryUpgradeDisplay,
.legacy-game-host.ui-preview--act2 #clipsPerSecDiv,
.legacy-game-host.ui-preview--act2 #tothDiv,
.legacy-game-host.ui-preview--act2 #factoryDiv,
.legacy-game-host.ui-preview--act2 #wireTransDiv,
.legacy-game-host.ui-preview--act2 #droneUpgradeDisplay,
.legacy-game-host.ui-preview--act2 #mdpsDiv,
.legacy-game-host.ui-preview--act2 #harvesterDiv,
.legacy-game-host.ui-preview--act2 #wireDroneDiv,
.legacy-game-host.ui-preview--act2 #creativityDiv,
.legacy-game-host.ui-preview--act2 #swarmGiftDiv,
.legacy-game-host.ui-preview--act2 #swarmEngine,
.legacy-game-host.ui-preview--act2 #giftTimer,
.legacy-game-host.ui-preview--act2 #feedButtonDiv,
.legacy-game-host.ui-preview--act2 #teachButtonDiv,
.legacy-game-host.ui-preview--act2 #entertainButtonDiv,
.legacy-game-host.ui-preview--act2 #cladButtonDiv,
.legacy-game-host.ui-preview--act2 #synchButtonDiv,
.legacy-game-host.ui-preview--act2 #swarmStatusDiv,
.legacy-game-host.ui-preview--act2 #qComputing,
.legacy-game-host.ui-preview--act2 #autoTourneyControl,
.legacy-game-host.ui-preview--act2 #autoTourneyStatusDiv,
.legacy-game-host.ui-preview--act3 #clipsPerSecDiv,
.legacy-game-host.ui-preview--act3 #tothDiv,
.legacy-game-host.ui-preview--act3 #factoryDivSpace,
.legacy-game-host.ui-preview--act3 #droneUpgradeDisplay,
.legacy-game-host.ui-preview--act3 #mdpsDiv,
.legacy-game-host.ui-preview--act3 #droneDivSpace,
.legacy-game-host.ui-preview--act3 #hazardBodyCount,
.legacy-game-host.ui-preview--act3 #driftBodyCount,
.legacy-game-host.ui-preview--act3 #combatBodyCount,
.legacy-game-host.ui-preview--act3 #drifterDiv,
.legacy-game-host.ui-preview--act3 #creativityDiv,
.legacy-game-host.ui-preview--act3 #swarmGiftDiv,
.legacy-game-host.ui-preview--act3 #swarmEngine,
.legacy-game-host.ui-preview--act3 #giftTimer,
.legacy-game-host.ui-preview--act3 #feedButtonDiv,
.legacy-game-host.ui-preview--act3 #teachButtonDiv,
.legacy-game-host.ui-preview--act3 #entertainButtonDiv,
.legacy-game-host.ui-preview--act3 #cladButtonDiv,
.legacy-game-host.ui-preview--act3 #synchButtonDiv,
.legacy-game-host.ui-preview--act3 #swarmStatusDiv,
.legacy-game-host.ui-preview--act3 #qComputing,
.legacy-game-host.ui-preview--act3 #autoTourneyControl,
.legacy-game-host.ui-preview--act3 #autoTourneyStatusDiv,
.legacy-game-host.ui-preview--act3 #combatButtonDiv,
.legacy-game-host.ui-preview--act3 #honorDiv {
  display: block !important;
}

.legacy-game-host.ui-preview--act1 #processorDisplay,
.legacy-game-host.ui-preview--act1 #memoryDisplay,
.legacy-game-host.ui-preview--act2 #processorDisplay,
.legacy-game-host.ui-preview--act2 #memoryDisplay,
.legacy-game-host.ui-preview--act3 #processorDisplay,
.legacy-game-host.ui-preview--act3 #memoryDisplay,
.legacy-game-host.ui-preview--act2 #swarmSliderDiv,
.legacy-game-host.ui-preview--act3 #swarmSliderDiv {
  display: inline-block !important;
}

.legacy-game-host.ui-preview .qChip {
  display: block !important;
}

.legacy-game-host.ui-preview #tournamentManagement {
  display: flex !important;
}

.legacy-game-host.ui-preview #battleCanvasDiv {
  display: flex !important;
}

.legacy-game-host.ui-preview #tournamentResultsTable {
  display: none !important;
}

.legacy-game-host.ui-preview #projectListTop > .projectButton:not(.ui-preview__project) {
  display: none !important;
}

.legacy-game-host .ui-preview__project-title {
  font-weight: 700;
}

@media (max-width: 760px) {
  body {
    font-size: 15px;
  }

  #page {
    width: 100%;
    padding: 8px 12px 40px;
  }

  #consoleDiv {
    min-height: 112px;
    padding-inline: 10px;
  }

  #leftColumn,
  #middleColumn,
  #rightColumn {
    float: none;
    width: min(100%, 360px);
    margin-left: 0;
  }

  .projectButton {
    width: 100%;
    max-width: 360px;
  }

  .toolTip .toolTipText,
  .toolTip2 .toolTipText2,
  .toolTip3 .toolTipText3 {
    right: auto;
    left: 0;
    max-width: min(240px, calc(100vw - 32px));
    margin-left: 0;
  }

  .developer-tools {
    position: relative;
    inset: auto;
    width: min(100% - 24px, 360px);
    max-height: none;
    margin: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
