:root { color-scheme: dark; font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; --phosphor: #39ff88; --dim: #168f50; --black: #020705; --panel: #071a10; --amber: #ffb000; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 50% 0%, #0b2818 0, var(--black) 48%); color: #b7ffd2; display: grid; place-items: center; }
body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 10; background: repeating-linear-gradient(0deg, #0000 0, #0000 3px, #0003 4px); opacity: .32; }
button, input, textarea { font: inherit; }
.card { width: min(820px, calc(100% - 32px)); height: min(760px, calc(100vh - 32px)); background: #020705ed; border: 1px solid var(--dim); border-radius: 2px; box-shadow: 0 0 0 1px #071a10, 0 0 45px #00ff6624, inset 0 0 45px #00ff6608; overflow: hidden; }
.join { height: 100%; display: grid; place-content: center; gap: 18px; padding: 28px; text-align: center; }
h1 { margin: 0; color: var(--phosphor); font-size: clamp(1.7rem, 6vw, 3rem); letter-spacing: .08em; text-shadow: 0 0 16px #39ff8877; }
h1::before { content: "> "; }
p { margin: 0; color: var(--dim); }
form { display: flex; gap: 10px; width: min(440px, 100%); }
input, textarea { min-width: 0; flex: 1; padding: 13px 15px; border-radius: 0; border: 1px solid var(--dim); background: var(--black); color: var(--phosphor); caret-color: var(--phosphor); outline: none; }
input::placeholder, textarea::placeholder { color: #126c3e; }
input:focus, textarea:focus { border-color: var(--phosphor); box-shadow: 0 0 0 2px #39ff8822, inset 0 0 18px #39ff880c; }
textarea { resize: none; line-height: 1.4; }
button { border: 1px solid var(--phosphor); border-radius: 0; padding: 13px 18px; background: var(--panel); color: var(--phosphor); font-weight: 700; text-transform: uppercase; cursor: pointer; }
button:hover { background: var(--phosphor); color: var(--black); box-shadow: 0 0 18px #39ff8855; }
button:disabled { opacity: .55; cursor: default; }
.chat { height: 100%; display: none; grid-template-rows: auto 1fr auto; }
header { padding: 16px 20px; border-bottom: 1px solid var(--dim); background: var(--panel); display: flex; justify-content: space-between; align-items: center; }
header strong { color: var(--phosphor); font-size: 1.05rem; letter-spacing: .08em; }
header strong::before { content: "[ "; } header strong::after { content: " // LIVE ]"; }
#status { font-size: .8rem; color: var(--phosphor); }
#messages { overflow-y: auto; padding: 18px 22px; display: flex; flex-direction: column; gap: 12px; }
.message { align-self: flex-start; max-width: min(78%, 540px); padding: 10px 13px; border-left: 3px solid var(--dim); background: #041009; color: #b7ffd2; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-wrap; }
.message b { display: block; color: var(--phosphor); margin-bottom: 4px; font-size: .8rem; }
.message b::before { content: "> "; }
.message.own { align-self: flex-start; border: 0; border-left: 3px solid var(--phosphor); background: var(--panel); color: var(--phosphor); }
.message.own b { color: var(--phosphor); text-align: left; }
.message.mentioned { border: 1px solid var(--amber); border-left: 3px solid var(--amber); background: #241a00; box-shadow: 0 0 14px #ffb00022; }
.message.mentioned::after { content: "[ DIRECT MENTION ]"; display: block; margin-top: 6px; color: var(--amber); font-size: .72rem; font-weight: 700; }
.message.own.mentioned { background: var(--panel); }
.notice { align-self: center; color: var(--dim); font-size: .82rem; }
.notice::before { content: ":: "; }
.send { position: relative; width: 100%; padding: 16px; border-top: 1px solid var(--dim); background: #030b07; }
.send::before { content: "$"; align-self: center; color: var(--phosphor); font-weight: 700; }
.mentions { display: none; position: absolute; left: 16px; right: 16px; bottom: calc(100% - 10px); max-height: 190px; overflow-y: auto; padding: 6px; background: var(--black); border: 1px solid var(--dim); border-radius: 0; box-shadow: 0 0 25px #39ff8822; }
.mentions.open { display: block; }
.mention-option { display: block; width: 100%; padding: 9px 11px; background: transparent; border: 0; color: #9dffbd; text-align: left; font-weight: 500; text-transform: none; }
.mention-option:hover, .mention-option.active { background: var(--phosphor); color: var(--black); box-shadow: none; }
.error { min-height: 1.3em; color: #ff8f9b; font-size: .9rem; }
@media (max-width: 520px) { .join form { flex-direction: column; } .card { width: 100%; height: 100vh; border: 0; border-radius: 0; } }
