:root {
  --bg: #0e1726;
  --panel: #151f33;
  --panel2: #1d2a44;
  --text: #f4f7fb;
  --muted: #aab6cc;
  --accent: #4da3ff;
  --danger: #ff5d5d;
  --ok: #4ade80;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

.landing {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
  background:
    radial-gradient(circle at top left, rgba(77,163,255,.25), transparent 35%),
    linear-gradient(135deg, #0e1726, #111827);
}

.hero {
  max-width: 780px;
  padding: 3rem;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(21,31,51,.85);
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.4rem, 7vw, 5rem);
  line-height: .95;
  margin: .5rem 0 1rem;
}

.intro {
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.6;
}

.btn,
button {
  display: inline-block;
  background: var(--accent);
  color: #06101f;
  border: 0;
  border-radius: 12px;
  padding: .85rem 1.1rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

button {
  width: 100%;
  margin-bottom: .65rem;
}

.game-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
  grid-template-rows: 64px 1fr;
}

.topbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0a1020;
  border-bottom: 1px solid rgba(255,255,255,.1);
  padding: 0 1rem;
}

.topbar span {
  color: var(--muted);
  margin-left: .75rem;
}

.side-panel {
  background: var(--panel);
  padding: 1rem;
  border-right: 1px solid rgba(255,255,255,.1);
}

.side-panel h2 {
  font-size: .95rem;
  margin-top: 1.5rem;
  color: var(--muted);
}

#unitInfo {
  background: var(--panel2);
  border-radius: 14px;
  padding: 1rem;
  min-height: 120px;
  color: var(--muted);
}

.battlefield-wrap {
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 1rem;
}

canvas {
  background: #182235;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  max-width: 100%;
  height: auto;
}
