/* =========================
   BASE
========================= */
body {
  margin: 0;
  background: #050505;
  color: #00ff00;
  font-family: "Courier New", monospace;
  overflow: hidden;
}

/* =========================
   HEADER
========================= */
header {
  padding: 12px 20px;
  border-bottom: 1px solid #00ff00;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 18px;
  letter-spacing: 2px;
}

.logo,
.logo:visited,
.logo:hover,
.logo:active {
  color: #00ff00;
  text-decoration: none;
}

.logo:hover {
  text-shadow: 0 0 10px #00ff00;
}

/* =========================
   LAYOUT
========================= */
.system {
  display: grid;
  grid-template-columns: 200px 1fr 200px;
  grid-template-rows: auto 1fr auto;
  height: calc(100vh - 48px);
  gap: 0;
}

/* =========================
   CANVAS
========================= */
.canvas-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #020202;
  grid-column: 2;
  grid-row: 1 / 3;
  overflow: hidden;
}

canvas {
  border: 1px solid #00ff00;
  box-shadow: 0 0 10px #00ff00, inset 0 0 10px rgba(0,255,0,0.08);
  image-rendering: pixelated;
  display: block;
}

/* =========================
   LEFT PANEL
========================= */
.left-panel {
  grid-column: 1;
  grid-row: 1 / 3;
  border-right: 1px solid #003300;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

/* =========================
   RIGHT PANEL
========================= */
.right-panel {
  grid-column: 3;
  grid-row: 1 / 3;
  border-left: 1px solid #003300;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

/* =========================
   PANEL BLOCKS
========================= */
.panel-title {
  font-size: 10px;
  letter-spacing: 2px;
  color: #007700;
  border-bottom: 1px solid #003300;
  padding-bottom: 6px;
  margin-bottom: 6px;
}

.panel-block {
  border: 1px solid #003300;
  padding: 8px;
}

.info-line {
  font-size: 11px;
  color: #00cc00;
  line-height: 1.7;
  opacity: 0.8;
}

/* =========================
   HUD BARS
========================= */
.agent-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 6px;
}

.agent-name {
  font-size: 10px;
  letter-spacing: 1px;
}

.hp-wrap {
  width: 100%;
  height: 4px;
  background: #001100;
}

.hp-fill {
  height: 100%;
  transition: width 0.2s;
}

.agent-tags {
  font-size: 9px;
  color: #005500;
  letter-spacing: 0.5px;
  min-height: 10px;
}

/* =========================
   ROUND INFO
========================= */
#round-display {
  font-size: 11px;
  letter-spacing: 2px;
  color: #007700;
  text-align: center;
}

/* =========================
   SCOREBOARD
========================= */
#scoreboard div {
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 1px;
}

/* =========================
   MESSAGE FEED
========================= */
#message-feed {
  font-size: 10px;
  line-height: 1.6;
  color: #007700;
  display: flex;
  flex-direction: column;
  gap: 1px;
  max-height: 200px;
  overflow-y: auto;
}

/* =========================
   POWERUP DROPS
========================= */
.drop-list {
  font-size: 9px;
  color: #005500;
  line-height: 1.8;
}

/* =========================
   SCROLLBAR
========================= */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #050505; }
::-webkit-scrollbar-thumb { background: #003300; border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: #005500; }

/* =========================
   SCANLINES
========================= */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 255, 0, 0.03),
    rgba(0, 255, 0, 0.03) 1px,
    transparent 1px,
    transparent 3px
  );
  z-index: 999;
}

/* =========================
   CURSOR
========================= */
* { cursor: none !important; }

.custom-cursor {
  position: fixed;
  width: 16px;
  height: 16px;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 2px #000) drop-shadow(0 0 4px #00ff00);
}

/* =========================
   DOMAIN OVERLAY
========================= */
#domain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 5;
}