:root {
  --bg: #0b0f14; --panel: #111823; --panel2: #162131; --line: #223149; --text: #d6e0ee; --dim: #7f93ab;
  --accent: #4cc2ff; --ok: #3fb950; --warn: #e3b341; --bad: #f85149; --gold: #ffb454;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text);
  font: 15px/1.5 "Cascadia Mono", Consolas, "DejaVu Sans Mono", monospace; }
a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; }
header.top { display: flex; align-items: center; gap: 18px; padding: 12px 20px; background: var(--panel);
  border-bottom: 1px solid var(--line); flex-wrap: wrap; }
header.top .brand { color: var(--gold); font-weight: 700; letter-spacing: .5px; }
header.top nav { display: flex; gap: 16px; flex-wrap: wrap; margin-left: auto; align-items: center; }
header.top nav .who { color: var(--dim); }
main { max-width: 980px; margin: 28px auto; padding: 0 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 22px; margin-bottom: 20px; }
h1, h2 { margin: 0 0 12px; font-weight: 600; } h1 { color: var(--accent); font-size: 22px; } h2 { font-size: 17px; color: var(--gold); }
label { display: block; margin: 12px 0 4px; color: var(--dim); font-size: 13px; }
input[type=text], input[type=password], input[type=email] { width: 100%; padding: 10px 12px; background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: 6px; font: inherit; }
input:focus { outline: 2px solid var(--accent); border-color: transparent; }
button, .btn { display: inline-block; margin-top: 16px; padding: 10px 18px; background: #1f6feb; color: #fff; border: 0; border-radius: 6px;
  font: inherit; cursor: pointer; text-decoration: none; }
button:hover, .btn:hover { filter: brightness(1.12); text-decoration: none; }
button.secondary, .btn.secondary { background: var(--panel2); border: 1px solid var(--line); color: var(--text); }
button.danger { background: #b62324; }
button:disabled { opacity: .5; cursor: wait; }
.msg { margin-top: 12px; padding: 10px 12px; border-radius: 6px; display: none; font-size: 14px; }
.msg.show { display: block; } .msg.err { background: #3a1517; border: 1px solid #7a2325; color: #ffb3b0; }
.msg.ok { background: #12301c; border: 1px solid #25633a; color: #a8f0bb; } .msg.info { background: #11283b; border: 1px solid #1f4d73; color: #a9d8ff; }
.tabs { display: flex; gap: 6px; margin-bottom: 14px; } .tabs button { margin: 0; background: var(--panel2); color: var(--dim); border: 1px solid var(--line); }
.tabs button.active { background: #1f6feb; color: #fff; border-color: #1f6feb; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; } @media (max-width: 760px) { .grid2 { grid-template-columns: 1fr; } }
table { width: 100%; border-collapse: collapse; } th, td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--dim); font-weight: 600; font-size: 13px; } tr.top1 td { color: var(--gold); font-weight: 700; }
.dim { color: var(--dim); } .small { font-size: 13px; }
.hero-banner { white-space: pre; color: var(--accent); font-size: 11px; line-height: 1.15; overflow-x: auto; margin: 0 0 14px; }
/* terminal */
body.play { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
#bar { display: flex; gap: 12px; align-items: center; padding: 8px 14px; background: var(--panel); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
#bar .status { margin-left: auto; font-size: 13px; color: var(--dim); }
#bar .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--bad); margin-right: 6px; }
#bar .dot.on { background: var(--ok); }
#bar button, #bar .btn { margin: 0; padding: 5px 12px; font-size: 13px; }
#term-wrap { flex: 1; min-height: 0; padding: 8px; background: #000; position: relative; }
#term { height: 100%; }
#overlay { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,.82); z-index: 5; text-align: center; padding: 20px; }
#overlay.show { display: flex; } #overlay .box { max-width: 460px; }
#size-warn { display: none; background: #3a2d0c; color: #ffd98a; padding: 6px 14px; font-size: 13px; border-bottom: 1px solid #6b5420; }
#size-warn.show { display: block; }
