:root {
  --bg: #11131a;
  --panel: #1a1d27;
  --border: #2c3140;
  --text: #d7dae3;
  --muted: #858b9c;
  --accent: #f0a020;
}

* { box-sizing: border-box; }

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

header {
  padding: 1.5rem 1.25rem 0;
  max-width: 46rem;
  margin: 0 auto;
}

header h1 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
}

header p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

main {
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.25rem;
}

.bbs-list { list-style: none; margin: 0; padding: 0; }

.bbs-list li { margin-bottom: 0.6rem; }

.bbs-list a {
  display: block;
  padding: 0.9rem 1rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
}

.bbs-list a:hover,
.bbs-list a:focus-visible {
  border-color: var(--accent);
  outline: none;
}

.bbs-list .name { font-weight: 600; }

.bbs-list .desc {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.15rem;
}

.notice {
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel);
  color: var(--muted);
}

/* -- terminal page -- */

body.terminal-page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.85rem;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  flex: none;
}

.bar a { color: var(--muted); text-decoration: none; }
.bar a:hover { color: var(--text); }
.bar .spacer { flex: 1; }

.bar select {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.2rem 0.4rem;
  font: inherit;
}

#status { color: var(--muted); }
#status.live { color: #6fd08c; }
#status.gone { color: #e06c6c; }

#terminal {
  flex: 1;
  min-height: 0;
  padding: 0.4rem;
  background: #000;
  /* The terminal is pinned to 80 columns (see terminal.js); centre it rather
     than leaving it hard against the left edge of a wide window. */
  display: flex;
  justify-content: center;
}
