:root {
  color-scheme: dark;
  --bg: #071016;
  --bg-deep: #04080d;
  --panel: rgba(10, 18, 26, 0.82);
  --panel-strong: rgba(14, 23, 32, 0.94);
  --panel-soft: rgba(20, 32, 44, 0.78);
  --line: rgba(171, 203, 225, 0.14);
  --line-strong: rgba(171, 203, 225, 0.26);
  --text: #edf5fb;
  --muted: #9db2c1;
  --accent: #d7b877;
  --accent-soft: rgba(215, 184, 119, 0.18);
  --allies: #4d90ff;
  --axis: #df5348;
  --garri: #f2c14e;
  --outpost: #67d8c1;
  --ok: #69d6a6;
  --warn: #f3d07d;
  --danger: #ff8f8f;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Bahnschrift", "DIN Alternate", "IBM Plex Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 18%, rgba(77, 144, 255, 0.22), transparent 25%),
    radial-gradient(circle at 88% 10%, rgba(223, 83, 72, 0.16), transparent 22%),
    radial-gradient(circle at 50% 100%, rgba(215, 184, 119, 0.08), transparent 30%),
    linear-gradient(145deg, #091118 0%, #0b1720 38%, #05080d 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, black 55%, transparent 100%);
}

.app-shell {
  position: relative;
  z-index: 1;
  max-width: 1520px;
  margin: 0 auto;
  padding: 22px;
}

.hero,
.command-card,
.stat-card,
.map-panel,
.intel-card,
.error-box {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 22%),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 420px);
  gap: 18px;
  align-items: stretch;
}

.hero-copy-wrap,
.command-card {
  border-radius: 28px;
  padding: 28px;
}

.eyebrow,
.panel-title,
.stat-label,
.overlay-label {
  margin: 0 0 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--accent);
}

.hero h1 {
  margin: 0;
  max-width: 780px;
  font-family: "Aptos Display", "Bahnschrift", sans-serif;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  line-height: 0.92;
  text-transform: uppercase;
}

.hero-copy {
  margin: 16px 0 0;
  max-width: 840px;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.55;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 22px;
}

.status-pill,
.frame-badge,
.live-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
}

.status-meta {
  color: var(--muted);
}

.command-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background:
    radial-gradient(circle at top right, rgba(215, 184, 119, 0.14), transparent 38%),
    var(--panel-strong);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field span,
.mini-meta span,
.intel-row span,
.legend-row span:last-child {
  color: var(--muted);
  font-size: 0.84rem;
}

select,
button {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 13px 14px;
  font: inherit;
  color: var(--text);
  background: rgba(5, 10, 15, 0.66);
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

select:hover,
button:hover {
  border-color: rgba(215, 184, 119, 0.48);
}

button {
  cursor: pointer;
}

button:active {
  transform: translateY(1px);
}

.secondary {
  background:
    linear-gradient(180deg, rgba(215, 184, 119, 0.14), rgba(215, 184, 119, 0.08)),
    rgba(5, 10, 15, 0.66);
}

.command-row {
  display: flex;
  gap: 12px;
}

.layer-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.layer-toggle {
  width: auto;
  min-height: 40px;
  padding: 9px 13px;
  font-size: 0.84rem;
  border-radius: 999px;
}

.layer-toggle.is-active {
  border-color: rgba(215, 184, 119, 0.52);
  background:
    linear-gradient(180deg, rgba(215, 184, 119, 0.16), rgba(215, 184, 119, 0.08)),
    rgba(5, 10, 15, 0.7);
}

.browser-auth {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.auth-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.primary-action,
.ghost-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 14px;
  border-radius: 16px;
  text-decoration: none;
  font: inherit;
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

.primary-action {
  flex: 1 1 auto;
  color: #0b1117;
  background: linear-gradient(135deg, #f0d49b, #d7b877);
  border: 1px solid rgba(240, 212, 155, 0.68);
}

.ghost-action {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
}

.primary-action:hover,
.ghost-action:hover {
  transform: translateY(-1px);
}

.live-stack {
  display: grid;
  gap: 12px;
}

.live-chip {
  color: var(--text);
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--warn);
  box-shadow: 0 0 0 0 rgba(243, 208, 125, 0.5);
}

.live-dot.live {
  background: var(--ok);
  animation: pulse-dot 1.6s infinite;
}

.live-dot.offline {
  background: var(--danger);
  box-shadow: none;
}

.mini-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.overview-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  min-height: 132px;
  padding: 18px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 26%),
    var(--panel-soft);
}

.stat-card strong {
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  line-height: 1.1;
}

.stat-card small {
  color: var(--muted);
}

.stat-card.spotlight {
  background:
    radial-gradient(circle at top right, rgba(215, 184, 119, 0.18), transparent 46%),
    var(--panel-soft);
}

.stat-card.allies {
  border-color: rgba(77, 144, 255, 0.28);
}

.stat-card.axis {
  border-color: rgba(223, 83, 72, 0.26);
}

.battle-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 340px);
  gap: 18px;
  margin-top: 18px;
}

.map-panel {
  padding: 18px;
  border-radius: 28px;
}

.map-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.map-title-block {
  max-width: 560px;
}

.panel-copy {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.map-toolbar-shell {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  min-width: min(100%, 540px);
}

.header-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  width: 100%;
}

.map-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  width: 100%;
}

.observer-filterbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) auto minmax(160px, 0.7fr) auto;
  gap: 10px;
  width: 100%;
}

.observer-search,
.role-filter {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
  color: var(--text);
  background: rgba(5, 10, 15, 0.66);
}

.observer-search::placeholder {
  color: rgba(157, 178, 193, 0.82);
}

.team-filter-group {
  display: inline-flex;
  gap: 8px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.team-filter,
.ghost-filter {
  width: auto;
  min-height: 40px;
  padding: 9px 13px;
  border-radius: 999px;
}

.team-filter.is-active {
  border-color: rgba(215, 184, 119, 0.52);
  background:
    linear-gradient(180deg, rgba(215, 184, 119, 0.16), rgba(215, 184, 119, 0.08)),
    rgba(5, 10, 15, 0.7);
}

.ghost-filter {
  background: rgba(255, 255, 255, 0.03);
}

.score-bar {
  position: relative;
  width: 220px;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.score-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  transition: width 240ms ease;
}

.allies-fill {
  left: 0;
  background: linear-gradient(90deg, rgba(77, 144, 255, 0.95), rgba(77, 144, 255, 0.55));
}

.axis-fill {
  right: 0;
  background: linear-gradient(90deg, rgba(223, 83, 72, 0.55), rgba(223, 83, 72, 0.95));
}

.map-stage {
  position: relative;
  min-height: 66vh;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 28%),
    radial-gradient(circle at center, rgba(215, 184, 119, 0.1), transparent 50%),
    var(--bg-deep);
  cursor: grab;
}

.map-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  background-size: 100% 8px;
}

.map-stage.dragging {
  cursor: grabbing;
}

.map-controls {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 4;
  display: flex;
  gap: 8px;
}

.map-control {
  width: auto;
  min-width: 54px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(4, 8, 13, 0.82);
}

.map-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.map-scene {
  position: absolute;
  inset: 0;
  transform-origin: top left;
  will-change: transform;
  --observer-symbol-scale: 1;
  --observer-label-scale: 1;
}

#map-frame {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition:
    opacity 220ms ease,
    transform 220ms ease,
    filter 220ms ease;
  transform: scale(1.01);
  filter: saturate(0.94) contrast(1.02);
}

#map-frame.ready {
  opacity: 1;
  transform: scale(1);
  filter: saturate(1) contrast(1);
}

.player-overlay {
  position: absolute;
  inset: 0;
}

.sector-overlay,
.objective-overlay,
.spawn-overlay,
.grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sector-overlay {
  z-index: 1;
}

.spawn-overlay {
  z-index: 2;
}

.grid-overlay {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 10% 10%;
  opacity: 0.42;
}

.objective-marker {
  position: absolute;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  margin-top: -9px;
  border-radius: 999px;
  border: 2px solid rgba(8, 12, 18, 0.9);
  background: rgba(215, 184, 119, 0.95);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.28);
  transform: scale(var(--observer-symbol-scale));
  transform-origin: center center;
}

.objective-label {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%) scale(var(--observer-label-scale));
  transform-origin: center top;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(4, 8, 13, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.7rem;
  white-space: nowrap;
}

.sector-band {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
}

.sector-band:nth-child(odd) {
  background: linear-gradient(180deg, rgba(215, 184, 119, 0.055), rgba(255, 255, 255, 0.012));
}

.sector-band.allies-band {
  background: linear-gradient(180deg, rgba(77, 144, 255, 0.07), rgba(255, 255, 255, 0.01));
}

.sector-band.axis-band {
  background: linear-gradient(180deg, rgba(223, 83, 72, 0.07), rgba(255, 255, 255, 0.01));
}

.sector-label {
  position: absolute;
  left: 14px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(4, 8, 13, 0.58);
  color: rgba(237, 245, 251, 0.9);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.spawn-marker {
  position: absolute;
  z-index: 2;
  width: 22px;
  height: 22px;
  margin-left: -11px;
  margin-top: -11px;
  border: 2px solid rgba(8, 12, 18, 0.95);
  background: rgba(4, 8, 13, 0.82);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.32);
  pointer-events: auto;
  cursor: pointer;
  transform: scale(var(--observer-symbol-scale));
  transform-origin: center center;
}

.spawn-marker.garrison {
  border-radius: 6px;
  color: var(--garri);
}

.spawn-marker.outpost {
  border-radius: 999px;
  color: var(--outpost);
}

.spawn-marker::before,
.spawn-marker::after {
  content: "";
  position: absolute;
}

.spawn-marker.garrison::before {
  inset: 3px;
  border-radius: 3px;
  border: 2px solid currentColor;
  background: rgba(242, 193, 78, 0.16);
}

.spawn-marker.outpost::before {
  inset: 2px;
  border-radius: 999px;
  border: 2px solid currentColor;
  background: rgba(103, 216, 193, 0.12);
}

.spawn-marker.outpost::after {
  inset: 7px;
  border-radius: 999px;
  background: currentColor;
}

.spawn-marker.selected {
  box-shadow: 0 0 0 4px rgba(215, 184, 119, 0.22), 0 8px 18px rgba(0, 0, 0, 0.34);
}

.spawn-label {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%) scale(var(--observer-label-scale));
  transform-origin: center top;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 180px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(4, 8, 13, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.72rem;
  white-space: nowrap;
}

.spawn-label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
}

.player-marker {
  position: absolute;
  z-index: 3;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid rgba(8, 12, 18, 0.95);
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transform: translateZ(0) scale(var(--observer-symbol-scale));
  transform-origin: center center;
  cursor: pointer;
}

.player-marker::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.92);
}

.player-marker.allies {
  background: var(--allies);
}

.player-marker.axis {
  background: var(--axis);
}

.player-marker.selected {
  width: 20px;
  height: 20px;
  margin-left: -10px;
  margin-top: -10px;
  box-shadow: 0 0 0 4px rgba(215, 184, 119, 0.2), 0 8px 18px rgba(0, 0, 0, 0.34);
}

.player-label {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) scale(var(--observer-label-scale));
  transform-origin: center bottom;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 190px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(4, 8, 13, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.72rem;
  line-height: 1;
  white-space: nowrap;
}

.sector-overlay.hidden,
.player-overlay.players-hidden,
.spawn-overlay.hidden,
.objective-overlay.hidden,
.grid-overlay.hidden {
  display: none;
}

.player-overlay.labels-hidden .player-marker:not(.selected) .player-label,
.spawn-overlay.labels-hidden .spawn-marker:not(.selected) .spawn-label {
  display: none;
}

.player-label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.9;
}

.map-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  text-align: center;
  color: var(--muted);
  font-size: 1rem;
}

.selection-panel {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 4;
  display: grid;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 32%),
    rgba(4, 8, 13, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

.selection-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.selection-head strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.2;
}

.selection-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 18px;
}

.map-overlay {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 4px;
  min-width: 160px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 8, 13, 0.6);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.map-overlay strong {
  font-size: 0.96rem;
}

.top-left {
  top: 16px;
  left: 16px;
}

.top-right {
  top: 16px;
  right: 16px;
}

.bottom-left {
  left: 16px;
  bottom: 16px;
}

.tactical-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  min-width: min(100%, 440px);
  padding: 10px 12px;
}

.strip-item {
  display: grid;
  gap: 4px;
}

.strip-item strong {
  font-size: 1rem;
}

.intel-rail {
  display: grid;
  gap: 14px;
}

.intel-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 22%),
    var(--panel-soft);
}

.intel-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.intel-row strong {
  text-align: right;
}

.occupancy-track {
  width: 100%;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.occupancy-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(105, 214, 166, 0.94), rgba(215, 184, 119, 0.94));
  transition: width 240ms ease;
}

.legend-card {
  gap: 12px;
}

.roster-card {
  gap: 12px;
}

.roster-list {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.roster-item {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  text-align: left;
}

.roster-item.active {
  border-color: rgba(215, 184, 119, 0.42);
  background:
    linear-gradient(180deg, rgba(215, 184, 119, 0.14), rgba(215, 184, 119, 0.06)),
    rgba(255, 255, 255, 0.04);
}

.roster-headline {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.roster-name {
  font-size: 0.94rem;
  font-weight: 700;
}

.roster-meta {
  color: var(--muted);
  font-size: 0.78rem;
}

.roster-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.roster-tag.allies {
  color: #d6e8ff;
  background: rgba(77, 144, 255, 0.16);
}

.roster-tag.axis {
  color: #ffe0de;
  background: rgba(223, 83, 72, 0.16);
}

.roster-empty {
  padding: 12px;
  border-radius: 16px;
  color: var(--muted);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  text-align: center;
}

.legend-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.player-subline {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
}

.player-team-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.82rem;
}

.player-team-badge.allies {
  color: #d6e8ff;
  background: rgba(77, 144, 255, 0.18);
}

.player-team-badge.axis {
  color: #ffe0de;
  background: rgba(223, 83, 72, 0.18);
}

.legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 999px;
}

.allies-swatch {
  background: var(--allies);
}

.axis-swatch {
  background: var(--axis);
}

.neutral-swatch {
  background: var(--accent);
}

.garri-swatch {
  border-radius: 4px;
  background: var(--garri);
}

.op-swatch {
  background: var(--outpost);
}

.error-box {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  border-color: rgba(223, 83, 72, 0.34);
  color: #ffd7d7;
  background: rgba(77, 14, 14, 0.72);
}

.hidden {
  display: none;
}

@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(105, 214, 166, 0.46);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(105, 214, 166, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(105, 214, 166, 0);
  }
}

@media (max-width: 1220px) {
  .overview-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .battle-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .app-shell {
    padding: 14px;
  }

  .hero-copy-wrap,
  .command-card,
  .map-panel,
  .intel-card,
  .stat-card {
    padding: 16px;
  }

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

  .map-header {
    flex-direction: column;
    align-items: stretch;
  }

  .map-toolbar-shell,
  .header-badges,
  .map-toolbar {
    align-items: stretch;
    justify-content: flex-start;
    min-width: 0;
  }

  .observer-filterbar {
    grid-template-columns: 1fr;
  }

  .score-bar {
    width: 100%;
  }

  .map-stage,
  .map-viewport {
    min-height: 44vh;
  }

  .map-overlay {
    position: static;
    margin: 12px;
  }

  .tactical-strip {
    grid-template-columns: 1fr;
  }

  .map-controls {
    right: 12px;
    bottom: 12px;
  }

  .selection-head {
    flex-direction: column;
  }

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