:root {
  --bg: #06090d;
  --bg-deep: #030507;
  --panel: #0d141a;
  --panel-2: #121b22;
  --panel-3: #18232c;
  --line: #27353f;
  --line-bright: #405563;
  --text: #dbe5ed;
  --muted: #7c8b96;
  --dim: #4e5d68;
  --cyan: #5fe1ff;
  --cyan-dim: #2b7d90;
  --red: #f04b46;
  --red-dim: #722a27;
  --amber: #f0b548;
  --green: #6dffb0;
  --violet: #b166ff;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
  --font-mono: "Consolas", "Courier New", monospace;
  --font-display: "Impact", "Haettenschweiler", "Arial Narrow Bold", sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
}

body {
  overflow-x: hidden;
}

body.in-game {
  overflow: hidden;
}

body.in-game .brandbar {
  display: none;
}

body.in-game .global-scanlines {
  opacity: 0.35;
}

.sidebar.spectator .production-tabs,
.sidebar.spectator .production-head,
.sidebar.spectator .queue-strip,
.sidebar.spectator .ready-banner,
.sidebar.spectator .cameo-grid,
.sidebar.spectator .super-panel {
  display: none;
}

.sidebar.spectator::after {
  content: "OBSERVER FEED // PRODUCTION CONTROLS DISABLED";
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 18px;
  color: #7e929e;
  font-size: 8px;
  letter-spacing: 0.12em;
  text-align: center;
  border-top: 1px solid #24333b;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,0.015) 0 3px, transparent 3px 8px);
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

canvas {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

::selection {
  background: rgba(95, 225, 255, 0.25);
  color: #ffffff;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #070b0f;
}

::-webkit-scrollbar-thumb {
  background: #293840;
  border: 1px solid #111a20;
}

::-webkit-scrollbar-thumb:hover {
  background: #3e5560;
}

#app {
  position: relative;
  min-height: 100vh;
}

#menu-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.9;
  pointer-events: none;
}

.global-scanlines {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0) 3px, rgba(0, 0, 0, 0.16) 4px);
  mix-blend-mode: multiply;
}

.global-scanlines::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 48%, rgba(0, 0, 0, 0.42) 100%);
}

.brandbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  height: 54px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 26px;
  background: linear-gradient(180deg, rgba(19, 28, 35, 0.96), rgba(8, 12, 16, 0.9));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
}

.brandbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan-dim) 26%, var(--red-dim) 74%, transparent);
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 18px;
  font-weight: 900;
  color: var(--cyan);
  text-shadow: 0 0 8px rgba(95, 225, 255, 0.3);
}

.brand-bracket {
  color: var(--red);
}

.brand-glyph {
  font-family: var(--font-display);
  letter-spacing: 0.06em;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.12em;
  color: #eaf2f7;
}

.brand-text span {
  font-size: 8px;
  color: var(--muted);
  letter-spacing: 0.25em;
}

.brand-status {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.version-chip {
  border: 1px solid var(--line);
  padding: 2px 7px;
  color: var(--dim);
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--dim);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5);
  transition: background 0.2s, box-shadow 0.2s;
}

.status-dot.online {
  background: var(--green);
  box-shadow: 0 0 8px rgba(109, 255, 176, 0.5);
}

.status-dot.offline {
  background: var(--red);
  box-shadow: 0 0 8px rgba(240, 75, 70, 0.5);
}

.status-dot.pending {
  background: var(--amber);
  animation: blink 1.2s infinite;
}

@keyframes blink {
  0%, 45% { opacity: 1; }
  46%, 100% { opacity: 0.2; }
}

.screen {
  display: none;
  position: relative;
  z-index: 10;
  min-height: 100vh;
  padding: 82px 42px 34px;
}

.screen.active {
  display: block;
  animation: screenIn 0.28s ease-out;
}

@keyframes screenIn {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

#screen-menu {
  padding: 92px 48px 30px;
}

#screen-menu .menu-layout,
.setup-layout,
.mp-layout,
.lobby-layout,
.manual-layout,
.options-layout,
.setup-brief-strip,
.screen-head {
  max-width: 1480px;
  margin-left: auto;
  margin-right: auto;
}

.screen-head {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 26px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.screen-head > div:nth-child(2) {
  flex: 1;
}

.screen-kicker {
  display: block;
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--cyan);
  margin-bottom: 5px;
}

.screen-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: 0.08em;
  font-weight: 400;
  color: #edf4f8;
}

.screen-head-meta {
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.back-button {
  border: 1px solid var(--line);
  background: rgba(17, 25, 31, 0.8);
  color: var(--muted);
  padding: 10px 14px;
  font-size: 9px;
  letter-spacing: 0.12em;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.back-button:hover {
  border-color: var(--cyan-dim);
  color: var(--cyan);
  background: rgba(20, 35, 42, 0.9);
}

.menu-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(370px, 0.75fr);
  gap: 48px;
  align-items: stretch;
  min-height: calc(100vh - 190px);
}

.menu-main {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.menu-eyebrow {
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--muted);
  margin-bottom: 18px;
}

.menu-eyebrow span {
  color: var(--red);
  border: 1px solid var(--red-dim);
  padding: 2px 7px;
  background: rgba(240, 75, 70, 0.08);
}

.mega-title {
  margin: 0 0 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.18em;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(64px, 11vw, 136px);
  line-height: 0.82;
  letter-spacing: 0.02em;
  color: #eef5f8;
  text-shadow: 1px 0 0 #18252d, -1px 0 0 #18252d, 0 0 38px rgba(95, 225, 255, 0.06);
}

.mega-title span:first-child {
  color: #eaf1f5;
}

.mega-title span:last-child {
  color: var(--red);
  text-shadow: 2px 2px 0 #3b1514, 0 0 36px rgba(240, 75, 70, 0.18);
}

.mega-title em {
  font-family: var(--font-display);
  font-style: normal;
  color: var(--cyan);
  font-size: 0.55em;
  transform: translateY(-0.06em);
  text-shadow: 0 0 18px rgba(95, 225, 255, 0.4);
}

.menu-tagline {
  max-width: 670px;
  color: #a8b7c2;
  font-size: 13px;
  line-height: 1.65;
  margin: 0 0 30px;
  border-left: 2px solid var(--red);
  padding-left: 16px;
}

.menu-nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-width: 760px;
}

.nav-button {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 15px 18px;
  text-align: left;
  background: linear-gradient(90deg, rgba(15, 24, 30, 0.85), rgba(9, 14, 18, 0.45));
  border: 1px solid var(--line);
  color: var(--text);
  transition: border-color 0.15s, transform 0.15s, background 0.15s;
  overflow: hidden;
}

.nav-button::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--cyan);
  opacity: 0.4;
  transition: opacity 0.15s, background 0.15s;
}

.nav-button::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 130px;
  height: 130px;
  background: radial-gradient(circle, rgba(95, 225, 255, 0.06), transparent 70%);
  pointer-events: none;
}

.nav-button:hover {
  border-color: var(--cyan-dim);
  background: linear-gradient(90deg, rgba(17, 35, 43, 0.95), rgba(10, 16, 21, 0.6));
  transform: translateX(3px);
}

.nav-button:hover::before {
  opacity: 1;
  background: var(--cyan);
}

.nav-button.hero {
  border-color: rgba(240, 75, 70, 0.35);
  background: linear-gradient(90deg, rgba(48, 21, 20, 0.55), rgba(12, 18, 22, 0.7));
}

.nav-button.hero::before {
  background: var(--red);
  opacity: 0.8;
}

.nav-button.hero:hover {
  border-color: var(--red);
}

.nav-index {
  font-size: 10px;
  color: var(--dim);
  letter-spacing: 0.16em;
}

.nav-label {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: 0.12em;
  font-weight: 400;
}

.nav-desc {
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-align: right;
}

.menu-footer-line {
  margin-top: auto;
  padding-top: 30px;
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 9px;
  color: var(--dim);
  letter-spacing: 0.15em;
}

.menu-footer-line .blinking {
  color: var(--red);
  animation: blink 1.6s infinite;
}

.menu-aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.panel {
  position: relative;
  background: linear-gradient(160deg, rgba(17, 26, 33, 0.94), rgba(7, 11, 14, 0.93));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.panel::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 22px;
  height: 2px;
  background: var(--cyan);
  opacity: 0.65;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.018);
}

.panel-code {
  color: var(--dim);
  font-size: 8px;
}

.dossier-panel {
  padding-bottom: 0;
}

.faction-dossier-grid {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.dossier-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  padding: 15px 16px;
  border-bottom: 1px solid rgba(39, 53, 63, 0.6);
  background: rgba(255, 255, 255, 0.012);
  position: relative;
}

.dossier-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: var(--faction-color, var(--cyan));
  opacity: 0.8;
}

.dossier-card.alliance { --faction-color: var(--cyan); }
.dossier-card.soviet { --faction-color: var(--red); }
.dossier-card.yuri { --faction-color: var(--violet); }

.dossier-card:hover {
  background: rgba(95, 225, 255, 0.025);
}

.dossier-emblem {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.dossier-card h3 {
  margin: 1px 0 5px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--faction-color);
}

.dossier-card p {
  margin: 0 0 7px;
  font-size: 10px;
  line-height: 1.45;
  color: #9baab4;
}

.dossier-meta {
  font-size: 8px;
  color: var(--dim);
  letter-spacing: 0.13em;
}

.intel-feed {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: #060a0d;
}

.intel-label {
  color: var(--red);
  font-size: 8px;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

#intel-ticker {
  color: var(--dim);
  font-size: 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.system-panel .system-list {
  margin: 0;
  padding: 8px 16px;
}

.system-list > div {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px dotted #24313a;
  font-size: 9px;
}

.system-list dt {
  color: var(--dim);
  letter-spacing: 0.12em;
}

.system-list dd {
  margin: 0;
  color: #b2c0ca;
}

.system-note {
  margin: 0;
  padding: 10px 16px 14px;
  font-size: 9px;
  line-height: 1.5;
  color: var(--dim);
  border-top: 1px solid #19242b;
}

.menu-disclaimer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  max-width: 1480px;
  margin: 28px auto 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  font-size: 8px;
  line-height: 1.5;
  color: #53616a;
  letter-spacing: 0.04em;
}

.menu-disclaimer span:last-child {
  color: var(--red-dim);
  white-space: nowrap;
}

.setup-layout {
  display: grid;
  grid-template-columns: minmax(330px, 0.82fr) minmax(500px, 1.18fr);
  gap: 24px;
  align-items: start;
}

.setup-panel {
  position: relative;
  background: linear-gradient(155deg, rgba(15, 23, 30, 0.95), rgba(7, 11, 15, 0.94));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.setup-panel::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 34px;
  width: 2px;
  height: 54px;
  background: linear-gradient(var(--cyan), transparent);
}

.commander-panel {
  padding-bottom: 16px;
}

.field-label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 15px 16px 0;
  font-size: 8px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.field-input,
.field-select {
  width: 100%;
  height: 38px;
  border: 1px solid #2c3b45;
  background: #070c10;
  color: #d5e1e8;
  padding: 0 11px;
  outline: none;
  font-size: 11px;
  letter-spacing: 0.08em;
  transition: border-color 0.15s, box-shadow 0.15s;
  border-radius: 0;
}

.field-input:focus,
.field-select:focus {
  border-color: var(--cyan-dim);
  box-shadow: 0 0 0 1px rgba(95, 225, 255, 0.12);
}

.field-select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #6b7d88 50%), linear-gradient(135deg, #6b7d88 50%, transparent 50%);
  background-position: calc(100% - 15px) 16px, calc(100% - 10px) 16px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 28px;
}

.field-select option {
  background: #0b1318;
  color: #d5e1e8;
}

.faction-select {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 1px;
}

.faction-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 5px 8px;
  border: 1px solid #293741;
  background: rgba(7, 12, 15, 0.7);
  color: var(--muted);
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}

.faction-option canvas {
  width: 48px;
  height: 48px;
}

.faction-option strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.12em;
  color: #c6d4dd;
}

.faction-option span {
  font-size: 7px;
  letter-spacing: 0.12em;
  color: var(--dim);
}

.faction-option:hover {
  border-color: #445a65;
  background: rgba(20, 35, 42, 0.8);
  transform: translateY(-1px);
}

.faction-option.selected {
  border-color: var(--faction-color, var(--cyan));
  background: rgba(95, 225, 255, 0.04);
  box-shadow: inset 0 0 24px rgba(95, 225, 255, 0.035);
}

.faction-option.alliance { --faction-color: var(--cyan); }
.faction-option.soviet { --faction-color: var(--red); }
.faction-option.yuri { --faction-color: var(--violet); }

.faction-option.alliance.selected strong { color: var(--cyan); }
.faction-option.soviet.selected strong { color: var(--red); }
.faction-option.yuri.selected strong { color: var(--violet); }

.faction-brief {
  margin: 16px 16px 0;
  border: 1px solid #26333c;
  background: #080d11;
  padding: 12px;
  min-height: 92px;
}

.brief-title {
  display: block;
  font-size: 9px;
  color: var(--cyan);
  letter-spacing: 0.14em;
  margin-bottom: 6px;
}

.faction-brief p {
  margin: 0 0 8px;
  font-size: 10px;
  line-height: 1.45;
  color: #9eacb5;
}

.brief-meta {
  font-size: 8px;
  color: var(--dim);
  letter-spacing: 0.1em;
}

.battle-panel {
  padding-bottom: 18px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding-bottom: 4px;
}

.settings-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-grid.compact .field-label {
  padding-left: 12px;
  padding-right: 12px;
}

.toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 16px 16px 0;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 8px;
  letter-spacing: 0.11em;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-box {
  width: 14px;
  height: 14px;
  border: 1px solid #3a4d58;
  background: #080d11;
  position: relative;
  flex: none;
}

.toggle input:checked + .toggle-box {
  border-color: var(--cyan);
  background: rgba(95, 225, 255, 0.1);
}

.toggle input:checked + .toggle-box::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 2px;
  width: 6px;
  height: 7px;
  border-right: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: rotate(35deg);
}

.toggle:hover .toggle-box {
  border-color: var(--cyan-dim);
}

.setup-message {
  margin: 16px 16px 0;
  padding: 10px 12px;
  border-left: 2px solid var(--cyan-dim);
  background: rgba(95, 225, 255, 0.035);
  font-size: 9px;
  color: #93b7c4;
  letter-spacing: 0.05em;
  line-height: 1.4;
  min-height: 34px;
}

.setup-message.error {
  border-color: var(--red);
  background: rgba(240, 75, 70, 0.05);
  color: #ffb0a9;
}

.primary-button,
.secondary-button,
.danger-button,
.mini-button {
  position: relative;
  border: 1px solid transparent;
  background: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: filter 0.15s, border-color 0.15s, background 0.15s, color 0.15s;
}

.primary-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 46px;
  padding: 0 20px;
  background: linear-gradient(100deg, #1d4552, #10222c);
  border: 1px solid #386571;
  color: #dffbff;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  font-size: 10px;
  font-weight: 700;
}

.primary-button::before {
  content: "";
  position: absolute;
  inset: 1px;
  border: 1px solid rgba(163, 244, 255, 0.1);
  pointer-events: none;
}

.primary-button:hover:not(:disabled) {
  background: linear-gradient(100deg, #296778, #15313d);
  border-color: var(--cyan);
  filter: drop-shadow(0 0 12px rgba(95, 225, 255, 0.16));
}

.primary-button:active:not(:disabled) {
  transform: translateY(1px);
}

.primary-button .button-arrow {
  font-size: 16px;
  color: var(--cyan);
}

.secondary-button {
  min-height: 38px;
  padding: 0 15px;
  border-color: #344952;
  background: #0b1217;
  color: #aebfc9;
  font-size: 9px;
}

.secondary-button:hover:not(:disabled) {
  border-color: var(--cyan-dim);
  color: var(--cyan);
  background: #101d24;
}

.danger-button {
  min-height: 38px;
  padding: 0 15px;
  border-color: #5b2724;
  background: rgba(50, 14, 13, 0.6);
  color: #ff9d95;
  font-size: 9px;
}

.danger-button:hover:not(:disabled) {
  border-color: var(--red);
  color: #ffd8d5;
}

.mini-button {
  font-size: 8px;
  padding: 4px 8px;
  border-color: #334650;
  background: rgba(12, 20, 25, 0.8);
  color: var(--muted);
}

.mini-button:hover {
  border-color: var(--cyan-dim);
  color: var(--cyan);
}

.launch-button {
  margin: 18px 16px 0;
  width: calc(100% - 32px);
  min-height: 50px;
}

.setup-brief-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 22px;
  background: var(--line);
  border: 1px solid var(--line);
}

.setup-brief-strip > div {
  background: #090f13;
  padding: 12px 15px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.setup-brief-strip span {
  font-size: 7px;
  color: var(--dim);
  letter-spacing: 0.14em;
}

.setup-brief-strip strong {
  font-size: 9px;
  color: #a9b8c2;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.mp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(380px, 0.68fr);
  gap: 24px;
}

.rooms-panel {
  min-height: 420px;
  display: flex;
  flex-direction: column;
}

.room-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  overflow-y: auto;
  max-height: calc(100vh - 290px);
  flex: 1;
}

.room-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 13px 15px;
  border: 1px solid #22313a;
  background: linear-gradient(90deg, #0a1116, #0c151b);
  position: relative;
  transition: border-color 0.15s, background 0.15s;
}

.room-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--room-state-color, var(--cyan));
}

.room-card:hover {
  border-color: #3c5561;
}

.room-card.state-playing { --room-state-color: var(--amber); }
.room-card.state-ended { --room-state-color: var(--dim); }
.room-card.state-lobby { --room-state-color: var(--green); }

.room-card-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
}

.room-card-head h3 {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #dbe8ef;
  font-weight: 400;
}

.room-state {
  font-size: 7px;
  padding: 2px 5px;
  border: 1px solid var(--room-state-color);
  color: var(--room-state-color);
  letter-spacing: 0.12em;
}

.room-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
  font-size: 8px;
  color: var(--dim);
  letter-spacing: 0.05em;
}

.room-card-meta b {
  color: #8496a2;
  font-weight: 400;
}

.room-card-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  justify-content: center;
}

.room-count-badge {
  font-size: 9px;
  color: #9eb0ba;
  letter-spacing: 0.08em;
}

.room-join {
  min-height: 31px;
  padding: 0 13px;
  border: 1px solid #365662;
  background: rgba(17, 38, 47, 0.7);
  color: var(--cyan);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.room-join:hover {
  background: rgba(29, 65, 76, 0.8);
  border-color: var(--cyan);
}

.room-join.watch {
  color: var(--amber);
  border-color: #665028;
  background: rgba(43, 32, 13, 0.6);
}

.room-join:disabled {
  color: var(--dim);
  border-color: #26333a;
  background: #090f13;
}

.empty-state {
  padding: 44px 20px;
  text-align: center;
  color: var(--dim);
  font-size: 10px;
  letter-spacing: 0.15em;
  border: 1px dashed #223039;
}

.rooms-footer {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  font-size: 8px;
  color: var(--dim);
  letter-spacing: 0.08em;
}

.create-panel {
  padding-bottom: 16px;
}

.create-panel .primary-button {
  margin: 18px 16px 0;
  width: calc(100% - 32px);
}

.mp-help {
  margin: 16px;
  border-top: 1px solid #1e2a31;
  padding-top: 13px;
  font-size: 9px;
  line-height: 1.6;
  color: #778994;
}

.mp-help p {
  margin: 0 0 9px;
}

.mono-dim {
  color: var(--dim) !important;
  font-size: 8px !important;
  letter-spacing: 0.08em !important;
}

.lobby-code {
  display: flex;
  align-items: center;
  gap: 8px;
  border-left: 1px solid var(--line);
  padding-left: 18px;
}

.lobby-code span {
  font-size: 8px;
  color: var(--dim);
  letter-spacing: 0.13em;
}

.lobby-code strong {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.13em;
  color: var(--cyan);
}

.lobby-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.36fr) minmax(360px, 0.64fr);
  gap: 24px;
  align-items: stretch;
}

.lobby-slots-panel {
  background: linear-gradient(155deg, rgba(15, 23, 30, 0.95), rgba(7, 11, 15, 0.94));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
}

.slot-card {
  position: relative;
  min-height: 110px;
  border: 1px solid #26343d;
  background: #090f13;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.15s, background 0.15s;
}

.slot-card.empty {
  border-style: dashed;
  align-items: center;
  justify-content: center;
  color: var(--dim);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.slot-card.human {
  border-left: 3px solid var(--slot-color, var(--cyan));
}

.slot-card.bot {
  border-left: 3px solid #45535b;
  background: linear-gradient(160deg, #0c1419, #080d11);
}

.slot-card.you {
  border-color: var(--slot-color, var(--cyan));
  box-shadow: inset 0 0 30px rgba(95, 225, 255, 0.025);
}

.slot-card.disconnected {
  opacity: 0.55;
}

.slot-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 22px;
}

.slot-name {
  flex: 1;
  color: #d2e0e8;
  font-size: 11px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.slot-tag {
  font-size: 7px;
  padding: 2px 4px;
  border: 1px solid #344650;
  color: var(--dim);
  letter-spacing: 0.1em;
}

.slot-tag.host {
  border-color: var(--amber);
  color: var(--amber);
}

.slot-tag.ready {
  border-color: var(--green);
  color: var(--green);
}

.slot-tag.bot {
  border-color: #4a5a63;
  color: #8d9ca6;
}

.slot-tag.live {
  border-color: var(--red);
  color: #ff9c92;
}

.slot-faction {
  display: flex;
  gap: 5px;
  align-items: center;
}

.slot-faction canvas {
  width: 32px;
  height: 32px;
}

.slot-faction strong {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.09em;
  font-weight: 400;
  color: var(--slot-color, #c4d1d9);
}

.slot-faction span {
  font-size: 8px;
  color: var(--dim);
  display: block;
}

.slot-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.slot-select {
  height: 25px;
  padding: 0 22px 0 6px;
  font-size: 8px;
  background-color: #070c10;
  border: 1px solid #273843;
  color: #9aabb5;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #6a7d88 50%), linear-gradient(135deg, #6a7d88 50%, transparent 50%);
  background-position: calc(100% - 11px) 10px, calc(100% - 7px) 10px;
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
}

.slot-input {
  width: 100%;
  height: 24px;
  background: #070c10;
  border: 1px solid #273843;
  color: #a9bbc5;
  padding: 0 6px;
  font-size: 8px;
}

.slot-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  font-size: 8px;
  color: var(--dim);
}

.slot-remove {
  border: 1px solid #4f2a28;
  background: rgba(60, 18, 16, 0.5);
  color: #d5847f;
  padding: 3px 6px;
  font-size: 7px;
}

.slot-remove:hover {
  border-color: var(--red);
  color: #ffc0bb;
}

.slot-add-bot {
  border: 1px solid #344a56;
  background: #0c151a;
  color: #9cb2be;
  padding: 8px 13px;
  font-size: 8px;
  letter-spacing: 0.1em;
}

.slot-add-bot:hover {
  border-color: var(--cyan-dim);
  color: var(--cyan);
}

.lobby-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 12px 12px;
}

.lobby-team-hint {
  font-size: 8px;
  color: var(--dim);
}

.host-settings {
  border-top: 1px solid var(--line);
  margin-top: 2px;
}

.host-settings.hidden {
  display: none;
}

.lobby-chat-panel {
  display: flex;
  flex-direction: column;
  min-height: 520px;
  background: linear-gradient(155deg, rgba(15, 23, 30, 0.95), rgba(7, 11, 15, 0.94));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 180px;
  background: #070b0e;
}

.chat-message {
  font-size: 9px;
  line-height: 1.5;
  color: #aab9c2;
  padding-left: 9px;
  border-left: 1px solid #26343c;
}

.chat-message .chat-from {
  color: var(--msg-color, var(--cyan));
  margin-right: 6px;
  letter-spacing: 0.05em;
}

.chat-message .chat-time {
  color: #4d5c65;
  font-size: 7px;
  margin-left: 6px;
}

.chat-message.system {
  color: #758791;
  font-style: italic;
  border-left-color: #3a4a53;
  font-size: 8px;
}

.chat-message.system .chat-from {
  color: var(--amber);
}

.chat-form {
  display: flex;
  gap: 6px;
  padding: 9px;
  border-top: 1px solid var(--line);
  background: #0a1116;
}

.chat-form .field-input {
  height: 31px;
  font-size: 9px;
}

.chat-form .mini-button {
  min-width: 48px;
}

.lobby-actions {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid var(--line);
}

.lobby-actions .primary-button {
  flex: 1;
  min-height: 38px;
}

.lobby-actions .secondary-button {
  min-width: 94px;
}

.lobby-info {
  padding: 0 12px 13px;
  font-size: 8px;
  color: var(--dim);
  line-height: 1.5;
}

.lobby-info p {
  margin: 0;
}

.game-screen {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 30;
  background: #030507;
  padding: 0;
  height: 100vh;
  overflow: hidden;
}

.game-screen.active {
  display: flex;
  flex-direction: column;
}

.game-header {
  height: 46px;
  flex: none;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 14px;
  background: linear-gradient(180deg, #151f27, #0a0f13);
  border-bottom: 1px solid #2a3942;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.45);
  z-index: 5;
}

.game-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 20px;
  border-right: 1px solid #27343d;
}

.game-brand .brand-glyph {
  font-size: 20px;
  color: var(--cyan);
  text-shadow: 0 0 8px rgba(95, 225, 255, 0.25);
}

.game-brand div {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.game-brand strong {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.1em;
  font-size: 12px;
  color: #dce7ee;
}

.game-brand span {
  font-size: 6px;
  letter-spacing: 0.18em;
  color: var(--dim);
  margin-top: 4px;
}

.match-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 8px;
  color: var(--dim);
  letter-spacing: 0.1em;
}

.match-meta strong {
  color: #bbc9d1;
  font-weight: 400;
}

#game-mode-label {
  border-left: 1px solid #2c3a43;
  padding-left: 9px;
  color: var(--amber);
}

.game-clock {
  margin-left: auto;
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 8px;
  color: var(--dim);
  letter-spacing: 0.11em;
}

.game-clock strong {
  font-size: 15px;
  font-weight: 400;
  color: var(--cyan);
  letter-spacing: 0.06em;
}

.game-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sync-status {
  font-size: 7px;
  color: var(--green);
  border: 1px solid #275a41;
  padding: 2px 5px;
  letter-spacing: 0.1em;
  margin-right: 5px;
}

.sync-status.stale {
  color: var(--amber);
  border-color: #6d5529;
}

.sync-status.lost {
  color: var(--red);
  border-color: #5c2724;
}

.icon-button {
  min-height: 27px;
  padding: 0 8px;
  border: 1px solid #30434d;
  background: #0b1217;
  color: #93a5b0;
  font-size: 8px;
  letter-spacing: 0.1em;
}

.icon-button:hover {
  border-color: var(--cyan-dim);
  color: var(--cyan);
}

.icon-button.danger {
  border-color: #57312d;
  color: #d18d87;
}

.icon-button.danger:hover {
  border-color: var(--red);
  color: #ffd2ce;
}

.game-shell {
  display: flex;
  flex: 1;
  min-height: 0;
}

.battlefield {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  background: #030608;
}

#game-canvas {
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
}

.battlefield-hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.battlefield-hud > * {
  pointer-events: none;
}

.chat-panel,
.chat-panel * {
  pointer-events: auto;
}

.mission-ticker {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 260px;
  max-width: 70%;
  padding: 7px 13px;
  border: 1px solid rgba(66, 91, 102, 0.45);
  background: rgba(6, 11, 15, 0.68);
  backdrop-filter: blur(3px);
  color: #bacad3;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-align: center;
  opacity: 0;
  transition: opacity 0.25s;
}

.mission-ticker.visible {
  opacity: 1;
}

.mission-ticker .accent {
  color: var(--cyan);
}

.alert-banner {
  position: absolute;
  top: 56px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 20px;
  background: rgba(74, 18, 15, 0.78);
  border: 1px solid #7c302b;
  color: #ffd2cc;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-align: center;
  box-shadow: 0 0 24px rgba(240, 75, 70, 0.12);
  animation: alertPulse 1.4s infinite;
}

@keyframes alertPulse {
  0%, 100% { border-color: #7c302b; }
  50% { border-color: var(--red); }
}

.battlefield-banner {
  position: absolute;
  left: 50%;
  top: 34%;
  transform: translate(-50%, -50%);
  padding: 14px 28px;
  min-width: 320px;
  max-width: 540px;
  background: linear-gradient(100deg, rgba(16, 27, 34, 0.92), rgba(7, 11, 14, 0.9));
  border: 1px solid #3a5662;
  color: #dfeef5;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.12em;
  box-shadow: 0 12px 50px rgba(0, 0, 0, 0.5);
}

.battlefield-banner strong {
  display: block;
  color: var(--cyan);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: 0.09em;
  margin-bottom: 3px;
}

.battlefield-banner small {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.hover-tooltip {
  position: absolute;
  z-index: 12;
  min-width: 190px;
  max-width: 280px;
  padding: 9px 11px;
  background: rgba(5, 9, 12, 0.94);
  border: 1px solid #3c535f;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.hover-tooltip h4 {
  margin: 0 0 4px;
  color: #e0edf4;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.hover-tooltip .tt-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 8px;
  color: var(--muted);
  margin-bottom: 5px;
}

.hover-tooltip p {
  margin: 0 0 4px;
  font-size: 8px;
  line-height: 1.5;
  color: #84949f;
}

.hover-tooltip .tt-hint {
  border-top: 1px solid #25343c;
  padding-top: 5px;
  color: var(--cyan);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.selection-card {
  position: absolute;
  right: 12px;
  bottom: 12px;
  min-width: 220px;
  max-width: 360px;
  background: rgba(6, 10, 13, 0.82);
  border: 1px solid #33424b;
  padding: 9px 11px;
  pointer-events: none;
}

.selection-card .sc-title {
  font-size: 9px;
  color: #cddbe3;
  letter-spacing: 0.09em;
  margin-bottom: 5px;
}

.selection-card .sc-row {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  color: var(--muted);
  margin: 2px 0;
}

.selection-card .sc-hp {
  color: var(--green);
}

.placement-status {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 7px 12px;
  border-left: 2px solid var(--cyan);
  background: rgba(6, 12, 16, 0.82);
  font-size: 8px;
  letter-spacing: 0.08em;
  color: #b3c8d2;
}

.chat-panel {
  position: absolute;
  left: 12px;
  bottom: 42px;
  width: 360px;
  max-height: 330px;
  display: flex;
  flex-direction: column;
  background: rgba(6, 10, 14, 0.94);
  border: 1px solid #334751;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  pointer-events: auto;
}

.chat-panel .chat-log {
  max-height: 210px;
  min-height: 120px;
}

.spectator-label {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 9px;
  border: 1px solid #44555e;
  background: rgba(7, 12, 15, 0.8);
  color: var(--amber);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.sidebar {
  width: 332px;
  flex: none;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: linear-gradient(180deg, #111a21 0, #0a1116 130px, #070b0e 100%);
  border-left: 1px solid #2b3a43;
  box-shadow: -12px 0 30px rgba(0, 0, 0, 0.35);
  position: relative;
  z-index: 2;
}

.sidebar::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan-dim), transparent);
}

.sidebar-top {
  flex: none;
  padding: 9px 10px 0;
  border-bottom: 1px solid #27353d;
}

.commander-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 2px 8px;
}

.sidebar-emblem {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.commander-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

#sidebar-player-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0.09em;
  color: #e1edf3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#sidebar-faction {
  font-size: 7px;
  color: var(--muted);
  letter-spacing: 0.12em;
}

.team-chip {
  font-size: 8px;
  border: 1px solid #3c515b;
  padding: 3px 5px;
  color: #8ea3ae;
  letter-spacing: 0.08em;
}

.resource-strip {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 6px;
  margin-bottom: 7px;
}

.credits-block,
.power-block {
  border: 1px solid #2d3e47;
  background: linear-gradient(160deg, rgba(24, 37, 45, 0.8), rgba(7, 11, 14, 0.85));
  padding: 6px 8px;
  min-width: 0;
}

.resource-label {
  display: block;
  font-size: 7px;
  color: var(--dim);
  letter-spacing: 0.16em;
  margin-bottom: 3px;
}

#sidebar-credits {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--amber);
  text-shadow: 0 0 14px rgba(240, 181, 72, 0.12);
  font-variant-numeric: tabular-nums;
}

.power-meter {
  position: relative;
  height: 11px;
  background: #060a0d;
  border: 1px solid #26363e;
  overflow: hidden;
}

.power-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #498b53, var(--green));
  transition: width 0.25s;
}

.power-fill.low {
  background: linear-gradient(90deg, #a05c32, var(--amber));
}

.power-fill.empty {
  background: var(--red);
}

.power-grid {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 11px, rgba(3, 6, 8, 0.7) 11px 12px);
}

#sidebar-power-text {
  display: block;
  margin-top: 3px;
  font-size: 7px;
  color: #7a8d97;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.radar-shell {
  position: relative;
  border: 1px solid #384b56;
  background: #04090c;
  padding: 3px;
  box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.6);
}

#radar-canvas {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 300 / 190;
}

.radar-frame {
  position: absolute;
  inset: 3px;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, transparent 0 3px, rgba(0, 0, 0, 0.18) 4px);
  box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.5);
}

.radar-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, transparent 45%, rgba(0, 0, 0, 0.35));
}

.radar-offline {
  position: absolute;
  inset: 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: repeating-linear-gradient(0deg, rgba(4, 9, 12, 0.94) 0 2px, rgba(10, 18, 22, 0.94) 2px 4px);
  color: var(--red);
  letter-spacing: 0.15em;
  font-size: 10px;
}

.radar-offline small {
  font-size: 7px;
  color: var(--dim);
  letter-spacing: 0.1em;
}

.radar-offline.hidden {
  display: none;
}

.radar-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 2px 5px;
  font-size: 7px;
  color: var(--dim);
  letter-spacing: 0.08em;
}

.low-power {
  color: var(--red);
  animation: blink 1.3s infinite;
}

.production-tabs {
  flex: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding: 4px 6px 0;
  background: #080d11;
  border-bottom: 1px solid #25333b;
}

.tab-button {
  height: 31px;
  border: 1px solid #293942;
  border-bottom: none;
  background: #0c1419;
  color: #657780;
  font-size: 8px;
  letter-spacing: 0.09em;
  position: relative;
}

.tab-button:hover {
  color: #a9bec8;
  border-color: #3b525d;
}

.tab-button.active {
  background: linear-gradient(180deg, #20343e, #121e24);
  border-color: #466470;
  color: var(--cyan);
}

.tab-button.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(95, 225, 255, 0.35);
}

.production-head {
  flex: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  font-size: 8px;
  letter-spacing: 0.11em;
  color: #80939c;
  border-bottom: 1px solid #1e2b32;
}

#production-status {
  font-size: 7px;
  color: var(--dim);
}

.queue-strip {
  flex: none;
  display: flex;
  gap: 3px;
  padding: 5px 8px;
  min-height: 33px;
  border-bottom: 1px solid #1d2a31;
  background: #060a0d;
  overflow: hidden;
}

.queue-item {
  position: relative;
  width: 39px;
  height: 26px;
  border: 1px solid #31444e;
  background: #0a1216;
  overflow: hidden;
  cursor: pointer;
}

.queue-item img,
.queue-item canvas {
  width: 100%;
  height: 100%;
  opacity: 0.7;
}

.queue-item .queue-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  background: var(--cyan);
}

.queue-item.ready {
  border-color: var(--green);
}

.queue-item.ready::after {
  content: "READY";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6px;
  color: var(--green);
  background: rgba(5, 12, 9, 0.72);
}

.queue-empty {
  font-size: 7px;
  color: #3d4b54;
  display: flex;
  align-items: center;
  letter-spacing: 0.11em;
}

.ready-banner {
  flex: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 10px;
  background: rgba(42, 82, 58, 0.28);
  border-bottom: 1px solid #2b6d4a;
  color: var(--green);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.cameo-grid {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 6px 8px;
  align-content: start;
}

.cameo-card {
  position: relative;
  height: 108px;
  min-height: 108px;
  border: 1px solid #2a3a43;
  background: #0a1115;
  padding: 0;
  overflow: hidden;
  text-align: left;
  transition: border-color 0.12s, background 0.12s;
}

.cameo-card:hover {
  border-color: #4d6a77;
  background: #0e181d;
}

.cameo-card canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.cameo-card .cameo-name {
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 13px;
  z-index: 2;
  font-size: 8px;
  font-weight: 700;
  color: #eef8fd;
  letter-spacing: 0.02em;
  text-shadow: 1px 1px 0 #000, 0 0 4px rgba(0, 0, 0, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cameo-card .cameo-cost {
  position: absolute;
  left: 4px;
  bottom: 3px;
  z-index: 2;
  font-size: 8px;
  color: #ffd56c;
  text-shadow: 1px 1px 0 #000, 0 0 4px rgba(0, 0, 0, 0.9);
}

.cameo-card .cameo-time {
  position: absolute;
  right: 4px;
  bottom: 3px;
  z-index: 2;
  font-size: 7px;
  color: #b5c5cf;
  text-shadow: 1px 1px 0 #000;
}

.cameo-card.locked {
  filter: grayscale(0.7);
}

.cameo-card.locked::after {
  content: "LOCKED";
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 8, 10, 0.66);
  color: #9aabb4;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.cameo-card.nofunds::after {
  content: "NO FUNDS";
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(44, 12, 10, 0.5);
  color: #ff9d94;
  font-size: 7px;
  letter-spacing: 0.1em;
}

.cameo-card.ready {
  border-color: var(--green);
  animation: readyGlow 1.6s infinite;
}

@keyframes readyGlow {
  0%, 100% { box-shadow: inset 0 0 0 rgba(109, 255, 176, 0); }
  50% { box-shadow: inset 0 0 18px rgba(109, 255, 176, 0.16); }
}

.cameo-card .cameo-ready {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 3;
  padding: 2px 4px;
  background: rgba(29, 68, 46, 0.9);
  border: 1px solid #3d8a5c;
  color: var(--green);
  font-size: 6px;
  letter-spacing: 0.09em;
}

.super-panel {
  flex: none;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 4px 8px;
  padding: 7px 9px;
  border-top: 1px solid #26343c;
  background: linear-gradient(180deg, #0b1217, #070b0e);
}

.super-copy {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.super-copy span {
  font-size: 7px;
  color: var(--dim);
  letter-spacing: 0.13em;
}

.super-copy strong {
  font-size: 9px;
  font-weight: 400;
  color: var(--violet);
  letter-spacing: 0.06em;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.super-meter {
  grid-column: 1;
  height: 5px;
  background: #05090b;
  border: 1px solid #27363e;
  overflow: hidden;
}

.super-meter i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #6d3c98, var(--violet));
  transition: width 0.3s;
}

.super-meter i.ready {
  background: linear-gradient(90deg, var(--violet), var(--green));
  animation: superReadyPulse 1.4s infinite;
}

@keyframes superReadyPulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.5); }
}

.super-button {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-width: 64px;
  border: 1px solid #4c3962;
  background: rgba(33, 20, 48, 0.8);
  color: #c8a4ee;
  font-size: 8px;
  letter-spacing: 0.09em;
}

.super-button:hover:not(:disabled) {
  border-color: var(--violet);
  color: #f0dfff;
  box-shadow: 0 0 12px rgba(177, 102, 255, 0.2);
}

.super-button.ready {
  border-color: var(--green);
  color: var(--green);
  background: rgba(18, 46, 34, 0.7);
}

.sidebar-footer {
  flex: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 9px 5px;
  border-top: 1px solid #1d2a31;
  font-size: 6px;
  color: #53646e;
  letter-spacing: 0.07em;
}

.sidebar-footer .icon-button {
  min-height: 20px;
  padding: 0 5px;
  font-size: 6px;
}

.command-bar {
  flex: none;
  height: 54px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 12px;
  background: linear-gradient(180deg, #121b22, #080d11);
  border-top: 1px solid #2b3a43;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
  z-index: 3;
}

.command-selection {
  width: 300px;
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid #25343c;
  padding-right: 16px;
}

#selection-label {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.08em;
  color: #d6e4eb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#selection-detail {
  font-size: 7px;
  color: var(--dim);
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.command-buttons {
  display: flex;
  gap: 4px;
  align-items: center;
}

.command-button {
  height: 35px;
  min-width: 66px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2px;
  border: 1px solid #30434c;
  background: #0b1217;
  color: #758993;
  font-size: 6px;
  letter-spacing: 0.08em;
  transition: all 0.12s;
}

.command-button .cmd-icon {
  color: #9fb2bc;
  font-size: 12px;
  line-height: 1;
}

.command-button:hover {
  border-color: #4d6a75;
  background: #101d23;
  color: var(--cyan);
}

.command-button:hover .cmd-icon {
  color: var(--cyan);
}

.command-button.active {
  border-color: var(--cyan);
  background: rgba(31, 65, 75, 0.65);
  color: var(--cyan);
}

.command-button.attention {
  border-color: var(--amber);
  color: var(--amber);
  background: rgba(56, 39, 12, 0.65);
  animation: deployAttention 1.3s infinite;
}

.command-button.attention .cmd-icon {
  color: var(--amber);
}

@keyframes deployAttention {
  0%, 100% { box-shadow: 0 0 0 rgba(240, 181, 72, 0); }
  50% { box-shadow: 0 0 16px rgba(240, 181, 72, 0.35); }
}

.hint-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 45;
  pointer-events: none;
}

.command-help {
  margin-left: auto;
  display: flex;
  gap: 12px;
  font-size: 6px;
  color: #516169;
  letter-spacing: 0.04em;
}

.command-help b {
  color: #8fa3ad;
  font-weight: 400;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 4, 6, 0.72);
  backdrop-filter: blur(4px);
}

.modal-panel {
  width: min(560px, calc(100vw - 32px));
  background: linear-gradient(155deg, #101a21, #070c10);
  border: 1px solid #334852;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.7);
  position: relative;
}

.modal-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(95, 225, 255, 0.04);
  pointer-events: none;
}

.modal-body {
  padding: 18px;
}

.modal-body h3 {
  margin: 0 0 7px;
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.08em;
  font-weight: 400;
  color: #e1eef5;
}

.modal-body p {
  margin: 0 0 15px;
  font-size: 10px;
  color: #91a3ae;
  line-height: 1.55;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 12px 18px 16px;
  border-top: 1px solid #26353d;
}

.modal-actions button {
  flex: 1;
  min-width: 130px;
}

.modal-audio {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  padding: 12px 18px;
  border-top: 1px solid #1f2c33;
}

.inline-volume {
  flex-direction: row !important;
  align-items: center;
  padding: 0 !important;
  gap: 12px !important;
}

.inline-volume input[type=range] {
  width: 140px;
}

input[type=range] {
  appearance: none;
  height: 4px;
  background: #223039;
  outline: none;
}

input[type=range]::-webkit-slider-thumb {
  appearance: none;
  width: 10px;
  height: 14px;
  background: var(--cyan);
  border: 1px solid #10323a;
  cursor: pointer;
}

.gameover-panel {
  width: min(720px, calc(100vw - 24px));
}

.gameover-head {
  padding: 24px 22px 12px;
  text-align: center;
}

#gameover-kicker {
  display: block;
  font-size: 8px;
  color: var(--muted);
  letter-spacing: 0.18em;
  margin-bottom: 8px;
}

#gameover-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--amber);
}

#gameover-title.defeat {
  color: var(--red);
}

#gameover-subtitle {
  margin: 7px 0 0;
  font-size: 10px;
  color: #91a3ae;
}

.scoreboard {
  margin: 8px 18px 4px;
  border: 1px solid #283841;
}

.scoreboard-row {
  display: grid;
  grid-template-columns: 26px 1.4fr 0.7fr 0.7fr 0.8fr;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid #202d34;
  font-size: 9px;
  color: #97a9b3;
}

.scoreboard-row.header {
  color: #60737d;
  background: #090f13;
  font-size: 7px;
  letter-spacing: 0.1em;
}

.scoreboard-row.winner {
  background: rgba(66, 54, 20, 0.3);
  color: #f0dfab;
}

.scoreboard-row:last-child {
  border-bottom: none;
}

.scoreboard-row .sb-pos {
  color: var(--dim);
}

.scoreboard-row .sb-name {
  font-weight: 400;
  color: #d1dee5;
}

.scoreboard-row.winner .sb-name {
  color: var(--amber);
}

.scoreboard-row .sb-bound {
  color: var(--dim);
}

.reconnect-dots {
  display: flex;
  gap: 6px;
  padding: 4px 18px 16px;
}

.reconnect-dots span {
  width: 8px;
  height: 8px;
  background: var(--amber);
  animation: blink 1s infinite;
}

.reconnect-dots span:nth-child(2) { animation-delay: 0.25s; }
.reconnect-dots span:nth-child(3) { animation-delay: 0.5s; }

.toast-container {
  position: fixed;
  right: 18px;
  bottom: 70px;
  z-index: 110;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
  max-width: 340px;
}

.toast {
  padding: 9px 12px;
  background: rgba(7, 12, 16, 0.94);
  border: 1px solid #334952;
  border-left: 2px solid var(--cyan);
  color: #b7c7d0;
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
  animation: toastIn 0.2s ease-out;
}

.toast.error {
  border-left-color: var(--red);
  color: #ffb5ad;
}

.toast.warn {
  border-left-color: var(--amber);
  color: #ffe3a4;
}

.toast.success {
  border-left-color: var(--green);
  color: #b0ffd2;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, #0a1116, #030506 70%);
}

.loading-screen.active {
  display: flex;
}

.loader-mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  color: var(--dim);
  letter-spacing: 0.16em;
}

.loader-mark span {
  color: var(--red);
  font-size: 22px;
}

.loader-mark strong {
  font-family: var(--font-display);
  font-size: 38px;
  letter-spacing: 0.1em;
  color: var(--cyan);
  font-weight: 400;
  margin-top: -38px;
}

.loader-bar {
  width: 210px;
  height: 3px;
  background: #1b262d;
  overflow: hidden;
  margin-top: 10px;
}

.loader-bar i {
  display: block;
  width: 38%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  animation: loaderScan 1.1s infinite;
}

@keyframes loaderScan {
  from { transform: translateX(-100%); }
  to { transform: translateX(320%); }
}

.loader-mark small {
  color: #596c76;
  font-size: 8px;
  letter-spacing: 0.14em;
}

.manual-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.manual-panel {
  padding-bottom: 16px;
}

.manual-panel h3 {
  margin: 15px 16px 5px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: #d4e4ec;
}

.manual-panel h3:first-of-type {
  margin-top: 16px;
}

.manual-panel p {
  margin: 0 16px 8px;
  font-size: 10px;
  line-height: 1.65;
  color: #91a3ae;
}

.control-table {
  padding: 5px 16px 4px;
}

.control-table > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dotted #25343b;
  font-size: 9px;
  color: #81949f;
}

.control-table kbd {
  font: inherit;
  font-size: 8px;
  color: var(--cyan);
  letter-spacing: 0.06em;
}

.manual-faction {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #233139;
}

.manual-faction canvas {
  width: 52px;
  height: 52px;
}

.manual-faction h3 {
  margin: 0 0 5px;
  font-size: 14px;
}

.manual-faction p {
  margin: 0;
  font-size: 9px;
}

.manual-faction.alliance canvas { filter: drop-shadow(0 0 6px rgba(95, 225, 255, 0.2)); }
.manual-faction.soviet canvas { filter: drop-shadow(0 0 6px rgba(240, 75, 70, 0.2)); }
.manual-faction.yuri canvas { filter: drop-shadow(0 0 6px rgba(177, 102, 255, 0.2)); }

.manual-note {
  margin: 14px 16px 0;
  padding: 12px;
  border-left: 2px solid var(--amber);
  background: rgba(240, 181, 72, 0.04);
}

.manual-note span {
  display: block;
  font-size: 8px;
  color: var(--amber);
  letter-spacing: 0.12em;
  margin-bottom: 5px;
}

.manual-note p {
  margin: 0;
  color: #aab7bd;
  font-size: 10px;
}

.options-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.options-layout .setup-panel {
  padding-bottom: 16px;
}

.options-layout .field-label {
  padding-top: 16px;
}

.options-layout input[type=range] {
  width: 100%;
  margin-top: 8px;
}

.options-readout {
  padding: 7px 16px;
}

.options-readout > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 0;
  border-bottom: 1px dotted #24313a;
  font-size: 8px;
}

.options-readout span {
  color: var(--dim);
}

.options-readout strong {
  color: #aab9c2;
  font-weight: 400;
  text-align: right;
}

.options-connection {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 15px 16px 0;
  padding: 10px;
  border: 1px solid #2a3b45;
  background: #080e12;
}

.options-connection > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.options-connection strong {
  font-size: 8px;
  color: #b3c4cd;
  font-weight: 400;
  letter-spacing: 0.1em;
}

.options-connection span {
  font-size: 7px;
  color: var(--dim);
}

.soundtrack-readout {
  margin: 16px;
  padding: 11px 12px;
  border: 1px solid #2b3a43;
  background: linear-gradient(160deg, rgba(28, 37, 46, 0.8), rgba(7, 11, 14, 0.9));
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.soundtrack-readout span {
  font-size: 7px;
  color: var(--dim);
  letter-spacing: 0.16em;
}

.soundtrack-readout strong {
  font-size: 9px;
  color: var(--amber);
  font-weight: 400;
  letter-spacing: 0.08em;
}

.soundtrack-readout small {
  margin-top: 3px;
  font-size: 7px;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.options-credits {
  margin: 18px 16px 0;
  padding-top: 15px;
  border-top: 1px solid #233139;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.options-credits span {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--cyan);
  letter-spacing: 0.1em;
}

.options-credits small {
  font-size: 7px;
  color: var(--dim);
  letter-spacing: 0.08em;
}

.hidden {
  display: none !important;
}

@media (max-width: 1250px) {
  .screen { padding: 78px 24px 26px; }
  #screen-menu { padding: 82px 28px 24px; }
  .menu-layout { gap: 30px; grid-template-columns: minmax(0, 1fr) minmax(330px, 0.72fr); }
  .mega-title { font-size: clamp(58px, 9vw, 104px); }
  .menu-disclaimer { max-width: 100%; }
  .sidebar { width: 302px; }
  .command-help { display: none; }
  .settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1000px) {
  .menu-layout { grid-template-columns: 1fr; min-height: auto; }
  .menu-aside { display: grid; grid-template-columns: 1fr 1fr; }
  .menu-disclaimer { flex-direction: column; gap: 8px; }
  .setup-layout { grid-template-columns: 1fr; }
  .mp-layout { grid-template-columns: 1fr; }
  .lobby-layout { grid-template-columns: 1fr; }
  .manual-layout { grid-template-columns: 1fr; }
  .options-layout { grid-template-columns: 1fr; }
  .setup-brief-strip { grid-template-columns: repeat(2, 1fr); }
  .sidebar { width: 280px; }
  .command-selection { width: 220px; }
  .game-header { gap: 12px; }
  .match-meta #game-mode-label { display: none; }
}

@media (max-width: 760px) {
  .screen { padding: 72px 14px 20px; }
  #screen-menu { padding: 76px 16px 20px; }
  .brandbar { padding: 0 14px; }
  .brand-text span { display: none; }
  .brand-status { font-size: 7px; }
  .mega-title { font-size: 54px; gap: 0.1em; }
  .nav-button { grid-template-columns: 34px 1fr; padding: 12px; }
  .nav-desc { display: none; }
  .menu-aside { grid-template-columns: 1fr; }
  .menu-disclaimer { font-size: 7px; }
  .screen-head { flex-wrap: wrap; gap: 12px; align-items: center; }
  .screen-head h2 { font-size: 26px; }
  .screen-head-meta { border-left: none; padding-left: 0; }
  .faction-select { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .settings-grid { grid-template-columns: 1fr; }
  .setup-brief-strip { grid-template-columns: 1fr; }
  .slot-grid { grid-template-columns: 1fr; }
  .game-header { height: 40px; gap: 8px; padding: 0 6px; }
  .game-brand { padding-right: 8px; }
  .game-brand div { display: none; }
  .game-clock { font-size: 6px; }
  .game-clock strong { font-size: 11px; }
  .match-meta span:first-child { display: none; }
  .match-meta strong { max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .game-header-actions .sync-status { display: none; }
  .sidebar { width: 250px; }
  .command-bar { height: 44px; gap: 6px; padding: 0 5px; }
  .command-selection { width: 150px; padding-right: 6px; }
  #selection-label { font-size: 12px; }
  .command-button { min-width: 40px; height: 31px; font-size: 0; }
  .command-button .cmd-icon { font-size: 11px; }
  .command-buttons { gap: 2px; }
  .game-shell { min-height: 0; }
  .sidebar-top { padding: 5px 6px 0; }
  #sidebar-player-name { font-size: 13px; }
  .radar-shell { display: none; }
  .sidebar-footer { display: none; }
  .cameo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 4px; gap: 3px; }
  .cameo-card { height: 68px; min-height: 68px; }
  .super-panel { padding: 4px 5px; }
  .super-copy strong { font-size: 7px; }
  .super-button { min-width: 45px; font-size: 6px; }
  .queue-strip { padding: 3px 4px; min-height: 26px; }
  .queue-item { width: 31px; height: 21px; }
  .production-head { padding: 4px 6px; }
  .tab-button { height: 27px; font-size: 6px; }
  .chat-panel { left: 5px; bottom: 5px; width: calc(100% - 10px); max-height: 260px; }
  .command-help { display: none; }
  .mission-ticker { max-width: 90%; font-size: 8px; }
  .alert-banner { top: 44px; font-size: 8px; }
}

@media (max-width: 560px) {
  .game-shell { flex-direction: column; }
  .battlefield { flex: 1; }
  .sidebar { width: 100%; height: 220px; flex-direction: row; border-left: none; border-top: 1px solid #2b3a43; }
  .sidebar-top { width: 160px; overflow: hidden; }
  .commander-strip { display: none; }
  .radar-footer { display: none; }
  .production-tabs { position: absolute; width: 100%; left: 0; }
  .sidebar > .production-tabs { display: none; }
  .cameo-grid { flex: 1; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cameo-card { height: 58px; min-height: 58px; }
  .queue-strip { display: none; }
  .super-panel { width: 100%; position: absolute; }
  .sidebar-footer { display: none; }
  .production-head { width: 100%; }
  .command-selection { width: 120px; }
  .game-header .icon-button { font-size: 6px; min-height: 22px; padding: 0 4px; }
  .command-buttons { flex-wrap: wrap; }
  .command-bar { height: auto; min-height: 50px; }
}
