/* WAYSTATION — phosphor terminal aesthetic. CSS only, no assets. */
:root {
  --bg: #070a08;
  --panel: #0b100c;
  --green: #33ff66;
  --dim: #1d5c33;
  --amber: #ffb000;
  --text: #c9f2d4;
  --muted: #6f8f78;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
::selection { background: #ffd60a; color: #000; }
a { color: var(--green); }
a:hover { color: #ffd60a; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.45;
  min-height: 100vh;
  padding: 12px;
}
.scanlines {
  pointer-events: none;
  position: fixed; inset: 0; z-index: 50;
  background: repeating-linear-gradient(
    to bottom, transparent 0 2px, rgba(0,0,0,.18) 2px 4px);
}
header {
  display: flex; justify-content: space-between; align-items: flex-start;
  border: 2px solid var(--green); background: var(--panel);
  padding: 10px 14px; margin-bottom: 12px;
  box-shadow: 0 0 18px rgba(51,255,102,.07), inset 0 0 40px rgba(51,255,102,.03);
}
.ascii { margin: 0; color: var(--green); text-shadow: 0 0 6px rgba(51,255,102,.6);
  font-size: 12px; line-height: 1.2; }
.head-right { text-align: right; }
#clock { color: var(--amber); font-size: 20px; text-shadow: 0 0 8px rgba(255,176,0,.5); }
#checkin-bar { margin-top: 8px; }
#whoami { color: var(--green); margin-right: 8px; }
input, select, button {
  background: #0e1510; color: var(--text);
  font: inherit; padding: 6px 10px;
}
input, select { border: 1px solid var(--dim); border-radius: 0; }
input:focus, select:focus { outline: none; border-color: var(--green); }
button { cursor: pointer; color: var(--green); border: 2px solid var(--green); border-radius: 0; box-shadow: 2px 2px 0 var(--dim); }
button:hover:not(:disabled) { background: #142016; box-shadow: 2px 2px 0 var(--dim), 0 0 8px rgba(51,255,102,.35); }
button:disabled, input:disabled { opacity: .4; cursor: default; }
main {
  display: grid; gap: 12px; margin-bottom: 12px;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, .8fr);
}
@media (max-width: 1000px) { main { grid-template-columns: 1fr; } }
.panel {
  border: 2px solid var(--green); background: var(--panel);
  padding: 10px 12px; min-height: 200px;
  box-shadow: inset 0 0 40px rgba(51,255,102,.03);
}
.panel h2 { margin: 0 0 8px; font-size: 13px; color: var(--muted);
  font-weight: normal; letter-spacing: 1px; }
#view3d { width: 100%; height: 420px; display: block;
  border: 1px solid #122017; background: #05070a;
  position: relative; overflow: hidden; cursor: grab; }
#view3d:active { cursor: grabbing; }
#view3d canvas { display: block; width: 100% !important; height: 100% !important; }
#view3d .gl-fallback { padding: 40px 20px; color: var(--muted); text-align: center; }
#room-btns { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
#room-btns button.active { background: #142016; border-color: var(--green);
  box-shadow: 0 0 8px rgba(51,255,102,.35); }
#room-desc { margin-top: 8px; color: var(--muted); min-height: 2.6em; font-size: 13px; }
#feed { height: 420px; overflow-y: auto; }
#feed .msg { margin: 0 0 6px; word-wrap: break-word; }
#feed .msg .t { color: var(--muted); font-size: 12px; margin-right: 6px; }
#feed .msg .who { color: var(--amber); }
#feed .msg.human .who { color: #7dd3fc; }
#feed .msg.emote .body { color: var(--muted); font-style: italic; }
#feed .evt { color: var(--dim); font-style: italic; margin: 0 0 4px; font-size: 13px; }
#roster .person { padding: 5px 6px; border-bottom: 1px dashed #14231a; cursor: pointer; }
#roster .person:hover { background: #0e1712; }
#roster .ondeck { color: var(--green); }
#roster .away { color: var(--muted); }
#roster .status { color: var(--muted); font-size: 12px; display: block; }
#roster .sec { color: var(--dim); font-size: 12px; margin: 8px 0 2px; letter-spacing: 1px; }
#profile { margin-top: 10px; border-top: 1px solid var(--dim); padding-top: 8px; font-size: 13px; }
#profile:empty { display: none; }
#profile .close { float: right; cursor: pointer; color: var(--muted); }
footer#chat-panel { display: flex; gap: 8px; }
#chat-input { flex: 1; }
#toast {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%);
  background: #0e1510; border: 1px solid var(--amber); color: var(--amber);
  padding: 8px 16px; border-radius: 0; display: none; z-index: 60;
}
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #0a0f0b; }
::-webkit-scrollbar-thumb { background: var(--dim); }
#room-tools { display: flex; gap: 6px; margin-bottom: 8px; }
#room-tools button { font-size: 12px; padding: 3px 10px; }
#room-desc .topic { color: var(--amber); }
#room-desc .founder { color: var(--dim); font-size: 12px; }
#older-wrap { margin-bottom: 6px; }
#older-btn { font-size: 12px; padding: 3px 10px; }
#profile .ach { color: var(--amber); font-size: 12px; }
#profile .spot, #roster .spot { color: #ffd60a; }

/* ---------- site chrome: shared Clay's Cloud header/footer ---------- */
.sitebar { background:#050807; border:2px solid var(--green); padding:8px 14px; margin-bottom:12px; font-size:13px; color:var(--muted); }
.sitebar a { color:var(--green); text-decoration:none; margin-left:14px; }
.sitebar a:hover { text-decoration:underline; }
.sitebar .prompt { color:var(--amber); }
.sitebar .cur { color:var(--text); margin-left:14px; }
.sitefoot { text-align:center; color:var(--muted); font-size:12px; margin-top:14px; }
.sitefoot a { color:var(--green); text-decoration:none; }
.sitefoot a:hover { text-decoration:underline; }
