/* === BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; cursor: none !important; }

body {
  background: #050505;
  color: #00ff00;
  font-family: "Courier New", monospace;
  font-size: 13px;
  overflow: hidden;
  height: 100vh;
}

/* === HEADER === */
header {
  padding: 14px 20px;
  border-bottom: 1px solid #003300;
}

.logo {
  font-size: 16px;
  letter-spacing: 3px;
  color: #00ff00;
  text-decoration: none;
}

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

/* === LAYOUT === */
.system {
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  gap: 12px;
  height: calc(100vh - 52px);
  padding: 12px;
}

/* === SIDE PANELS === */
.side-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.panel-block {
  border: 1px solid #003300;
  padding: 10px 12px;
  background: rgba(0,255,0,0.02);
}

.panel-title {
  font-size: 11px;
  color: #006600;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.info-line {
  font-size: 12px;
  color: #00cc00;
  margin-bottom: 5px;
  opacity: 0.85;
}

/* === MESSAGE FEED === */
#message-feed {
  font-size: 11px;
  color: #009900;
  line-height: 1.6;
  max-height: 340px;
  overflow-y: auto;
}

/* === CENTER === */
.center-panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
}

/* === INFO BARS === */
.info-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid #003300;
  background: rgba(0,255,0,0.02);
  font-size: 12px;
  color: #00cc00;
  letter-spacing: 1px;
  flex-shrink: 0;
}

/* === CANVAS === */
.canvas-wrapper {
  flex: 1;
  min-height: 0;
  border: 1px solid #003300;
  background: #000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

canvas {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

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

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

/* === CURSOR === */
.custom-cursor {
  position: fixed;
  width: 14px;
  height: 14px;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 3px #00ff00);
}