.render-preference {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: #87a6bc;
  line-height: 1.5;
}
.render-preference select {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 10px;
  border: 1px solid #34546b;
  background: #081624;
  color: #c8dfef;
  font: inherit;
  font-size: 11px;
}
.render-preference span {
  display: block;
  margin-top: 6px;
  font-size: 9px;
  letter-spacing: 0;
}
.render-preference.compact {
  min-width: 105px;
  margin: 0;
}
.render-preference.compact select {
  padding: 7px;
  margin-top: 3px;
}
body[data-render-mode="classic"] {
  --blue: #9bc07e;
  --gold: #cab86d;
  --line: #50584a;
  font-family: Tahoma, Arial, sans-serif;
}
body[data-render-mode="classic"] .panel,
body[data-render-mode="classic"] .game-hud,
body[data-render-mode="classic"] dialog {
  background: #141813;
  border-color: #626853;
  box-shadow:
    inset 2px 2px #30362a,
    inset -2px -2px #030803;
}
body[data-render-mode="classic"] .auth-art,
body[data-render-mode="classic"] .lobby-art {
  opacity: 0.3;
  filter: grayscale(0.6);
}
body[data-render-mode="classic"] .scanlines {
  display: none;
}
body[data-render-mode="classic"] button {
  background: #20281d;
  border-color: #626b54;
  box-shadow:
    inset 1px 1px #778065,
    inset -1px -1px #080e06;
  text-shadow: none;
  transition: none;
}
body[data-render-mode="classic"] .primary {
  color: #c8d0a5;
  background: #283125;
}
body[data-render-mode="classic"] .quiet {
  background: none;
  box-shadow: none;
  border-color: transparent;
}
body[data-render-mode="classic"] .game-top,
body[data-render-mode="classic"] .lobby-header,
body[data-render-mode="classic"] .panel-heading {
  background: #10170e;
  border-color: #68705c;
}
body[data-render-mode="classic"] .race-card {
  box-shadow: none;
  background: #10160e;
}
body[data-render-mode="classic"] .terran-marine {
  background-image: url("/assets/classic/terran-units.webp");
}
body[data-render-mode="classic"] .protoss-zealot {
  background-image: url("/assets/classic/protoss-units.webp");
}
body[data-render-mode="classic"] .zerg-queen {
  background-image: url("/assets/classic/zerg-units.webp");
}
body[data-render-mode="classic"] .race-unit,
body[data-render-mode="classic"] .portrait,
body[data-render-mode="classic"] #battlefield {
  image-rendering: pixelated;
  filter: none;
}
body[data-render-mode="classic"] .wordmark {
  filter: none;
}
:root {
  color-scheme: dark;
  --bg: #050b13;
  --panel: #091521ed;
  --line: #284662;
  --blue: #79c9ff;
  --muted: #849bb0;
  --gold: #e0b975;
  --red: #eb7f80;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  color: #dce8f4;
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
  border: 1px solid var(--line);
  background: linear-gradient(#182e44, #0c1927);
  padding: 11px 15px;
  letter-spacing: 0.07em;
  font-weight: 700;
  transition:
    border-color 0.15s,
    filter 0.15s;
}
button:hover:not(:disabled) {
  border-color: var(--blue);
  filter: brightness(1.18);
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}
button:focus-visible,
input:focus-visible,
canvas:focus-visible {
  outline: 2px solid #a7e2ff;
  outline-offset: 3px;
}
button.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}
[hidden] {
  display: none !important;
}
.screen {
  min-height: 100dvh;
  position: relative;
  overflow: hidden;
}
.panel {
  background: linear-gradient(145deg, #122335ed, #060f19f2);
  border: 1px solid #35516c;
  box-shadow:
    0 10px 40px #0009,
    inset 0 0 0 3px #0b1722;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  padding: 13px 17px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: #97bbd9;
  background: #102339aa;
}
.status-dot:before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #78cbdb;
  box-shadow: 0 0 8px #88defb;
  margin-right: 6px;
}
.primary {
  background: linear-gradient(#235783, #123154);
  border: 1px solid #568bbb;
  color: #eaf7ff;
  text-shadow: 0 1px 3px #000;
  box-shadow:
    inset 0 0 16px #2d81bb30,
    0 0 14px #258cc418;
  min-height: 48px;
}
.wide {
  width: 100%;
}
.quiet {
  background: none;
  border-color: transparent;
  color: #b2c5d7;
  font-size: 11px;
}
.danger {
  background: linear-gradient(#542729, #29161a);
  border-color: #8b454a;
  color: #ffbec0;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 11px;
  line-height: 1.6;
}
.eyebrow {
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 0.22em;
  font-weight: bold;
}
.error {
  color: var(--red);
  min-height: 1.2em;
  font-size: 12px;
  line-height: 1.5;
}
h1 {
  font-size: clamp(28px, 3.2vw, 46px);
  font-weight: 400;
  letter-spacing: -0.035em;
  margin: 12px 0;
}
h2 {
  font-weight: 400;
  font-size: 24px;
}
p {
  line-height: 1.6;
}
#notice {
  position: fixed;
  z-index: 100;
  top: 65px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  background: #0a1829f7;
  border: 1px solid #618eaf;
  box-shadow: 0 5px 30px #000a;
  max-width: min(90vw, 700px);
  text-align: center;
  pointer-events: none;
}
.auth-screen {
  display: flex;
  align-items: center;
  padding: 40px 8vw 75px;
  background: #02070d;
}
.auth-art,
.lobby-art {
  position: absolute;
  inset: 0;
  background: center/cover no-repeat url("/assets/login.webp");
  pointer-events: none;
}
.auth-art:after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #02070d77, transparent 70%),
    linear-gradient(0deg, #03070de8, transparent 35%);
}
.scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.13;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    #0b2e45 4px
  );
}
.auth-panel {
  position: relative;
  width: 430px;
  max-width: 100%;
  margin-top: -20px;
}
.wordmark {
  width: 490px;
  max-width: 115%;
  margin-left: -30px;
  height: 180px;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: drop-shadow(0 3px 16px #00498577);
}
.login-panel {
  padding-bottom: 16px;
}
.quick-entry {
  padding: 20px 24px 0;
}
.quick-entry .small,
.quick-entry .error {
  padding: 0;
}
.auth-tabs {
  display: flex;
  margin: 20px 24px 16px;
  border-bottom: 1px solid var(--line);
}
.auth-tabs button {
  flex: 1;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  font-size: 11px;
}
.auth-tabs button.active {
  border-bottom-color: var(--blue);
}
#auth-form {
  padding: 0 24px;
}
label {
  display: block;
  color: #97b0c8;
  font-size: 10px;
  letter-spacing: 0.1em;
  margin: 16px 0;
}
input {
  display: block;
  width: 100%;
  height: 44px;
  margin-top: 8px;
  padding: 0 12px;
  border: 1px solid #2d485f;
  background: #020a12;
  color: #eaf4ff;
  font-size: 14px;
  letter-spacing: normal;
  box-shadow: inset 0 2px 9px #0008;
}
input::placeholder {
  color: #486179;
}
#google-login {
  margin: 14px 24px;
}
.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #6c879d;
  font-size: 9px;
  letter-spacing: 0.15em;
  margin: 16px 0;
}
.divider:before,
.divider:after {
  content: "";
  flex: 1;
  height: 1px;
  background: #20374a;
}
#google-button {
  display: flex;
  justify-content: center;
}
.login-panel > p {
  padding: 0 24px;
  margin-bottom: 0;
}
.auth-caption {
  text-align: center;
  color: #6e879c;
  font-size: 9px;
  letter-spacing: 0.17em;
  margin-top: 24px;
}
.legal {
  position: absolute;
  bottom: 24px;
  left: 35px;
  right: 35px;
  display: flex;
  gap: 30px;
  color: #708398;
  font-size: 10px;
  letter-spacing: 0.04em;
}
.legal span:last-child {
  margin-left: auto;
}
.lobby-screen {
  background: #040a12;
}
.lobby-art {
  opacity: 0.2;
  background-position: right top;
  filter: saturate(0.5);
}
.lobby-art:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #040a12 15%, #040a1200);
}
.lobby-header {
  position: relative;
  height: 86px;
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 0 4vw;
  border-bottom: 1px solid #284158;
  background: #030b15da;
}
.small-logo {
  width: 175px;
  height: 75px;
  object-fit: contain;
  mix-blend-mode: screen;
}
.lobby-header nav {
  display: flex;
  align-self: stretch;
  gap: 5px;
}
.lobby-header nav button {
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  font-size: 11px;
  padding: 0 17px;
}
.lobby-header nav .active {
  border-bottom-color: var(--blue);
}
.commander {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: right;
}
.commander strong {
  color: #d7e9f9;
  font-size: 13px;
}
.commander span {
  font-size: 10px;
  color: var(--gold);
}
.lobby-page {
  position: relative;
  max-width: 1400px;
  padding: 35px 4vw 45px;
  margin: auto;
}
.lobby-intro p {
  color: #a1b5c7;
  margin-top: 0;
}
.races {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 27px;
}
.race-card {
  min-height: 295px;
  position: relative;
  overflow: hidden;
  text-align: left;
  padding: 23px;
  background: linear-gradient(145deg, #0e2032d0, #040b13e0);
  border: 1px solid #294357;
}
.race-card:after {
  content: "";
  position: absolute;
  inset: 0;
  border: 3px solid transparent;
  pointer-events: none;
}
.race-card.selected {
  border-color: #71b8e0;
  box-shadow: 0 0 30px #4596d025;
}
.race-card.selected:after {
  border-color: #25415c;
}
.race-card.protoss.selected {
  border-color: #d9b76e;
  box-shadow: 0 0 25px #bf953920;
}
.race-card.zerg.selected {
  border-color: #b088d6;
  box-shadow: 0 0 25px #913ddd22;
}
.race-number {
  display: block;
  color: #718da6;
  font-size: 9px;
  letter-spacing: 0.16em;
}
.race-unit {
  display: block;
  position: absolute;
  right: 0;
  bottom: 40px;
  width: 230px;
  height: 230px;
  background-size: 400% 400%;
  background-repeat: no-repeat;
  opacity: 0.85;
  filter: drop-shadow(0 0 15px #155e9760);
}
.terran-marine {
  background-image: url("/assets/terran-units.webp");
  background-position: 33.3333% 0;
}
.protoss-zealot {
  background-image: url("/assets/protoss-units.webp");
  background-position: 33.3333% 0;
}
.zerg-queen {
  background-image: url("/assets/zerg-units.webp");
  background-position: 33.3333% 33.3333%;
}
.race-card > strong {
  position: relative;
  display: block;
  color: #dceeff;
  font-size: 28px;
  letter-spacing: 0.15em;
  margin-top: 105px;
  text-shadow: 0 2px 12px #000;
}
.race-card.protoss > strong {
  color: #efdeae;
}
.race-card.zerg > strong {
  color: #cda9e5;
}
.race-desc {
  position: relative;
  display: block;
  font-weight: 400;
  font-size: 11px;
  line-height: 1.6;
  color: #9baec1;
  text-shadow: 0 1px 5px black;
  letter-spacing: 0.02em;
}
.race-select {
  position: relative;
  display: block;
  margin-top: 16px;
  border-top: 1px solid #244054;
  padding-top: 13px;
  font-size: 9px;
  color: #7491a7;
  letter-spacing: 0.14em;
}
.selected .race-select {
  color: var(--blue);
}
.lobby-bottom {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 20px;
  margin-top: 24px;
}
.map-pool {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 14px;
}
.map-card {
  padding: 5px 5px 8px;
  font-size: 9px;
  letter-spacing: 0;
  font-weight: 400;
  text-align: center;
  position: relative;
  min-width: 0;
  background: #07121e;
}
.map-card img {
  display: block;
  width: 100%;
  height: 65px;
  object-fit: contain;
  image-rendering: auto;
  margin-bottom: 5px;
}
.map-card.vetoed {
  border-color: #b65c5c;
  opacity: 0.55;
}
.map-card.vetoed:after {
  content: "VETOED";
  position: absolute;
  top: 25px;
  left: 0;
  right: 0;
  color: #ffafaf;
  font-size: 10px;
  letter-spacing: 0.1em;
  background: #1d070aa9;
  padding: 5px;
}
.map-panel > p {
  padding: 0 16px;
  margin-top: 0;
}
.queue-panel {
  padding: 23px;
}
#match-mode {
  width: 100%;
  margin: 7px 0 16px;
  padding: 10px;
  color: inherit;
  background: var(--bg);
  border: 1px solid var(--line);
  font: inherit;
}
#match-mode:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
#match-mode:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.queue-panel h2 {
  margin: 16px 0 8px;
}
.queue-panel p {
  font-size: 12px;
  color: #94a9bc;
}
.queue-panel .primary {
  margin-top: 12px;
}
#queue-time {
  display: block;
  color: #a6d9f7;
  font-size: 26px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  margin: 15px 0;
}
.table-page {
  max-width: 1200px;
}
.table-page .panel {
  margin-top: 28px;
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #7894ab;
  padding: 17px;
  background: #0c1c2b;
}
td {
  font-size: 13px;
  padding: 17px;
  border-top: 1px solid #1c3346;
}
.empty {
  padding: 30px;
  text-align: center;
  color: var(--muted);
}
.game-screen {
  height: 100dvh;
  min-height: 0;
  background: #02060c;
  user-select: none;
}
#battlefield {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  outline: none;
  cursor: crosshair;
  touch-action: none;
}
#battlefield-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.game-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(#0b192bef, #071020d9);
  border-bottom: 1px solid #355572;
  box-shadow: 0 3px 14px #0007;
  font-size: 11px;
  padding: 0 20px;
  pointer-events: auto;
}
kbd {
  font-size: 9px;
  margin-left: 6px;
  color: #52738c;
}
#map-title {
  color: #93adc4;
}
#match-clock {
  font-variant-numeric: tabular-nums;
  color: #bbd8ee;
}
.resources {
  display: flex;
  margin-left: auto;
  gap: 28px;
}
.resources > span {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #7e9db5;
  font-size: 10px;
}
.resources b {
  color: #d8eeff;
  font-size: 14px;
  font-weight: 400;
}
.resource-gem,
.resource-gas {
  display: inline-block;
  width: 22px;
  height: 22px;
  background: url("/assets/effects.webp") 0 0/400% 400%;
}
.resource-gas {
  background-position: 33.3333% 0;
}
#fps {
  color: #689772;
  font-size: 9px;
  min-width: 49px;
  text-align: right;
}
.game-hud {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 222px;
  display: grid;
  grid-template-columns: 250px minmax(220px, 1fr) 390px;
  gap: 8px;
  padding: 10px 10px 5px;
  background: linear-gradient(#0d1926d9, #07101bf9);
  border-top: 2px solid #55758e;
  box-shadow: 0 -5px 22px #000b;
}
.minimap-shell {
  padding: 6px;
  border: 1px solid #345570;
  background: #030a10;
  box-shadow: inset 0 0 0 3px #0a1928;
  position: relative;
}
#minimap {
  width: 100%;
  height: 170px;
  display: block;
  cursor: crosshair;
}
#game-race {
  display: block;
  text-align: center;
  padding: 6px;
  color: #87accc;
  font-size: 9px;
  letter-spacing: 0.16em;
}
.selection-panel {
  padding: 4px 12px;
  min-width: 0;
}
.selection-title {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #2f4c62;
  font-size: 11px;
  letter-spacing: 0.05em;
}
.selection-title strong {
  color: #b9d9ef;
}
#selection-count {
  font-size: 10px;
  color: #66869e;
}
.selection-content {
  display: flex;
  gap: 14px;
  height: 130px;
  padding-top: 8px;
}
.portrait {
  width: 110px;
  height: 110px;
  flex-shrink: 0;
  background-color: #071421;
  background-repeat: no-repeat;
  background-size: 400% 400%;
  border: 1px solid #395369;
  box-shadow: inset 0 0 20px #0008;
}
.selection-details {
  min-width: 0;
  flex: 1;
}
.selection-details .small {
  font-size: 10px;
}
#selection-units {
  display: flex;
  flex-wrap: wrap;
  max-height: 62px;
  overflow: auto;
  gap: 3px;
  margin-top: 4px;
}
.unit-chip {
  width: 29px;
  height: 29px;
  background-size: 400% 400%;
  padding: 0;
  background-color: #071421;
}
#production-queue {
  display: flex;
  gap: 4px;
  overflow: auto;
  margin-top: 5px;
}
.queue-chip {
  font-size: 8px;
  padding: 4px 6px;
  white-space: nowrap;
}
.control-groups {
  display: flex;
  gap: 5px;
  margin-top: 5px;
}
.control-groups button {
  width: 30px;
  height: 25px;
  padding: 0;
  font-size: 10px;
  color: #6d8aa2;
  background: #081624;
}
.control-groups button.populated {
  color: #c2ddf0;
  border-color: #4c7190;
}
.command-panel {
  padding: 0 5px;
  overflow: hidden;
}
.command-tabs {
  display: flex;
  height: 29px;
  gap: 3px;
}
.command-tabs button {
  padding: 5px 6px;
  font-size: 8px;
  flex: 1;
  letter-spacing: 0.02em;
}
.commands {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  grid-auto-rows: 44px;
  max-height: 146px;
  overflow: auto;
  padding: 6px 0;
}
.command-button {
  position: relative;
  text-align: center;
  padding: 3px;
  font-size: 8px;
  letter-spacing: 0;
  font-weight: 400;
  line-height: 1.2;
  overflow: hidden;
  background-color: #102235;
}
.command-button .command-icon {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-size: 400% 400%;
  opacity: 0.5;
  pointer-events: none;
}
.command-button .command-label {
  position: relative;
  text-shadow:
    0 1px 3px #000,
    0 0 4px #000;
}
.command-button .cost {
  position: relative;
  display: block;
  color: #96b5cd;
  font-size: 7px;
  margin-top: 2px;
}
.command-help {
  font-size: 8px;
  white-space: normal;
  line-height: 1.3;
  padding-top: 4px;
  border-top: 1px solid #223a4c;
}
.game-screen dialog {
  position: fixed;
  z-index: 50;
  background: linear-gradient(#122b43, #07131f);
  color: #c6dfef;
  border: 1px solid #648ba8;
  width: 380px;
  max-width: 90vw;
  padding: 30px;
  box-shadow: 0 10px 100px #000b;
  text-align: center;
}
.game-screen dialog::backdrop {
  background: #0009;
}
.game-screen dialog button {
  margin-top: 14px;
}
.game-screen dialog p {
  font-size: 12px;
  color: #92b0c5;
}
#target-prompt,
#connection {
  position: absolute;
  top: 65px;
  left: 50%;
  transform: translateX(-50%);
  background: #071829e8;
  border: 1px solid #4e7f9e;
  padding: 11px 25px;
  color: #bbdfff;
  font-size: 12px;
  pointer-events: none;
  z-index: 4;
}
#connection {
  top: 115px;
  border-color: #bba260;
  color: #eacf98;
}
#selection-box {
  position: absolute;
  border: 1px solid #b1efbc;
  background: #69eb7820;
  pointer-events: none;
  z-index: 5;
}
.loading-overlay {
  position: absolute;
  z-index: 40;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #020914ef;
}
.loading-mark {
  font-family: Georgia, serif;
  font-size: 110px;
  color: #acd7eb;
  text-shadow: 0 0 35px #2d89ff;
}
.loading-overlay p {
  color: #8ca7bd;
}
#result-title {
  color: #b1def5;
}
.win {
  color: #93cdb0;
}
.loss {
  color: #d49091;
}
@media (max-width: 1050px) {
  .lobby-header {
    gap: 12px;
    padding: 0 20px;
  }
  .small-logo {
    width: 125px;
  }
  .lobby-header nav button {
    padding: 0 10px;
    font-size: 9px;
  }
  .races {
    gap: 10px;
  }
  .race-card {
    padding: 17px;
    min-height: 270px;
  }
  .race-unit {
    width: 185px;
    height: 185px;
    right: -10px;
    bottom: 70px;
  }
  .race-card > strong {
    font-size: 24px;
  }
  .lobby-bottom {
    grid-template-columns: 1fr 270px;
  }
  .game-hud {
    grid-template-columns: 210px minmax(170px, 1fr) 335px;
  }
  .portrait {
    width: 82px;
    height: 95px;
  }
  .selection-content {
    gap: 8px;
  }
  .game-top {
    gap: 10px;
  }
  .resources {
    gap: 14px;
  }
}
@media (max-width: 760px) {
  .auth-screen {
    padding: 20px 6vw 85px;
    justify-content: center;
  }
  .auth-art {
    opacity: 0.5;
  }
  .wordmark {
    max-width: 100%;
    margin-left: 0;
    height: 130px;
  }
  .auth-panel {
    margin-top: 0;
  }
  .legal {
    left: 20px;
    right: 20px;
    font-size: 8px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .lobby-header {
    height: auto;
    min-height: 80px;
    flex-wrap: wrap;
    padding: 10px 15px;
    gap: 5px;
  }
  .lobby-header nav {
    order: 3;
    flex-basis: 100%;
    height: 35px;
  }
  .commander {
    font-size: 11px;
  }
  .lobby-page {
    padding: 25px 16px;
  }
  .races {
    gap: 6px;
  }
  .race-card {
    min-height: 245px;
    padding: 10px;
  }
  .race-card > strong {
    font-size: 16px;
  }
  .race-unit {
    width: 135px;
    height: 135px;
    bottom: 90px;
    right: -22px;
  }
  .race-number {
    font-size: 7px;
  }
  .race-desc {
    font-size: 9px;
  }
  .race-select {
    font-size: 8px;
  }
  .lobby-bottom {
    grid-template-columns: 1fr;
  }
  .map-pool {
    gap: 4px;
    padding: 8px;
  }
  .map-card {
    font-size: 8px;
  }
  .map-card img {
    height: 45px;
  }
  .game-hud {
    height: 195px;
    grid-template-columns: 155px minmax(110px, 1fr) 250px;
    gap: 3px;
    padding: 6px;
  }
  .minimap-shell {
    padding: 2px;
  }
  #minimap {
    height: 145px;
  }
  .selection-panel {
    padding: 0 4px;
  }
  .portrait {
    display: none;
  }
  .selection-title {
    font-size: 9px;
  }
  .command-tabs button {
    font-size: 7px;
    padding: 3px;
  }
  .commands {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 39px;
    max-height: 126px;
  }
  .command-help {
    font-size: 7px;
  }
  .game-top {
    font-size: 9px;
    padding: 0 8px;
  }
  .resources {
    gap: 8px;
  }
  .resources b {
    font-size: 11px;
  }
  .resources > span {
    font-size: 8px;
  }
  #map-title {
    max-width: 100px;
    overflow: hidden;
    white-space: nowrap;
  }
  #fps {
    display: none;
  }
  .control-groups {
    gap: 2px;
  }
  .control-groups button {
    width: 17px;
    height: 22px;
    font-size: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
