:root {
  --bg: #040805;
  --panel: #07110a;
  --line: #1a5a2d;
  --text: #9dff83;
  --dim: #64b36f;
  --accent: #28d04f;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Consolas, 'Courier New', monospace;
  background: radial-gradient(circle at top, #0a1a0d, var(--bg));
  color: var(--text);
}
.scanline {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0,
    rgba(0,0,0,0) 2px,
    rgba(0,255,0,0.03) 3px
  );
}
.app {
  display: grid;
  grid-template-columns: 340px 1fr;
  min-height: 100vh;
}
.sidebar, .chat { padding: 14px; }
.sidebar {
  border-right: 1px solid var(--line);
  background: rgba(7,17,10,0.82);
}
h1 { margin: 0; letter-spacing: 2px; }
.sub { margin-top: 4px; color: var(--dim); }
input, button {
  background: #061008;
  color: var(--text);
  border: 1px solid var(--line);
  padding: 9px;
}
button { cursor: pointer; }
button:hover { border-color: var(--accent); }
.row { display: flex; gap: 8px; margin-top: 8px; }
.row input { flex: 1; }
#roomsList {
  list-style: none;
  padding: 0;
  margin-top: 10px;
  border: 1px solid var(--line);
  max-height: 48vh;
  overflow: auto;
}
#roomsList li {
  padding: 10px;
  border-bottom: 1px solid #0f2b17;
  cursor: pointer;
}
#roomsList li:hover, #roomsList li.active { background: #0f2515; }
.status { color: var(--dim); font-size: 12px; min-height: 14px; }
.chat header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}
.messages {
  height: calc(100vh - 170px);
  overflow: auto;
  white-space: pre-wrap;
  padding: 10px 0;
}
.msg { margin-bottom: 8px; }
.meta { color: var(--dim); font-size: 12px; }
.chat footer {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 8px;
}
@media (max-width: 920px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
  .messages { height: 45vh; }
}
