
:root {
  color-scheme: dark;
  --bg: #050806;
  --panel: #101810;
  --accent: #6CFF6C;
  --border: #294229;
  --alpha: #F3D36B;
  --muted: #8BA38B;
  --text: #C7FFC7;
  --danger: #FF5C5C;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #050806;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 64px 32px;
}

h1 {
  margin: 0 0 16px;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.15;
}

h2, h3 {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
}

p, ul, ol, table { margin-top: 0; }

a:focus-visible, button:focus-visible, .command:focus-visible {
  outline: 2px solid #6CFF6C;
  outline-offset: 4px;
}

.hero, .panel, .stat-strip {
  border: 1px solid #294229;
  background: #101810;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 32px;
  margin-bottom: 48px;
  padding: 32px;
}

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

.panel { padding: 24px; }

.alpha {
  color: #F3D36B;
  font-size: 14px;
}

.muted, .stat-label {
  color: #8BA38B;
  font-size: 14px;
}

.command {
  display: block;
  min-height: 44px;
  margin: 16px 0;
  padding: 16px;
  border: 1px solid #6CFF6C;
  background: #050806;
  color: #6CFF6C;
  font-size: 20px;
  overflow-wrap: anywhere;
  user-select: all;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 32px;
  padding: 16px;
}

.stat-value {
  display: block;
  color: #6CFF6C;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.15;
}

.dense-list { padding-left: 24px; }

.roster {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.roster th, .roster td {
  border-bottom: 1px solid #294229;
  padding: 8px;
  text-align: left;
}

.world-map {
  display: block;
  width: 100%;
  min-height: 160px;
  border: 1px solid #294229;
  background: #000000;
  image-rendering: pixelated;
}

.empty-map {
  display: grid;
  place-items: center;
  color: #8BA38B;
}

.legend {
  display: grid;
  gap: 8px;
  padding-left: 0;
  list-style: none;
}

.legend-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  border: 1px solid #294229;
  background: #6CFF6C;
}

.error { color: #FF5C5C; }

@media (max-width: 720px) {
  main { padding: 32px 16px; }
  .hero, .terminal-grid, .stat-strip { grid-template-columns: 1fr; }
  .hero, .panel { padding: 16px; }
  .roster thead { display: none; }
  .roster tr, .roster td { display: block; width: 100%; }
  .roster td::before { content: attr(data-label) ": "; color: #8BA38B; }
}
