:root { --bg-dark: #08090b; --bg-panel: #0d1014; --text-main: #e2e8f0; --accent-cyan: #22d3ee; --accent-orange: #fb923c; --matrix-red: #ef4444; --matrix-red-glow: rgba(239, 68, 68, 0.5); }
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background-color: var(--bg-dark); color: var(--text-main); font-family: 'JetBrains Mono', monospace; font-size: 14px; height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
.scanline { position: fixed; inset: 0; background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%); background-size: 100% 4px; pointer-events: none; z-index: 9999; }
.screen { display: none; height: 100%; width: 100%; }
.screen.active { display: flex; }
.hidden { display: none !important; }
#boot-screen { align-items: center; justify-content: center; }
.boot-container { display: flex; flex-direction: column; align-items: center; }
#ascii-logo { color: var(--matrix-red); text-shadow: 0 0 10px var(--matrix-red-glow); font-size: 12px; line-height: 1.1; margin-bottom: 30px; }
.system-msg { color: #64748b; font-style: italic; }
#login-form { border: 1px solid #1e293b; background: var(--bg-panel); padding: 20px; width: 400px; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5); }
.input-group { margin-bottom: 15px; }
.input-group label { display: block; color: var(--accent-cyan); margin-bottom: 5px; }
input, select { width: 100%; background: var(--bg-dark); border: 1px solid #334155; color: var(--text-main); padding: 8px; font-family: 'JetBrains Mono', monospace; outline: none; }
input:focus, select:focus { border-color: var(--accent-orange); }
.glitch-btn { width: 100%; background: transparent; color: var(--matrix-red); border: 1px solid var(--matrix-red); padding: 10px; cursor: pointer; font-family: 'JetBrains Mono', monospace; font-weight: bold; transition: all 0.2s; }
.glitch-btn:hover { background: var(--matrix-red); color: var(--bg-dark); }
#chat-screen { flex-direction: column; }
header { display: flex; justify-content: space-between; padding: 10px 20px; background: var(--bg-panel); border-bottom: 1px solid #1e293b; border-top: 2px solid var(--matrix-red); }
.brand { color: var(--accent-orange); font-weight: bold; }
.room-info { color: #64748b; }
#current-room { color: var(--accent-cyan); }
.chat-layout { flex: 1; display: flex; overflow: hidden; }
#chat-container { flex: 1; padding: 20px; overflow-y: auto; }
#messages { display: flex; flex-direction: column; gap: 4px; }
.msg-line { word-wrap: break-word; transition: opacity 0.5s; }
.msg-time { color: #475569; }
.msg-nick { color: var(--accent-cyan); font-weight: bold; }
.msg-sys { color: #64748b; font-style: italic; }
.msg-err { color: var(--matrix-red); }
.msg-self .msg-nick { color: var(--accent-orange); }
footer { display: flex; padding: 15px 20px; background: var(--bg-panel); border-top: 1px solid #1e293b; align-items: center; gap: 10px; }
.accent-orange { color: var(--accent-orange); font-weight: bold; }
#msg-form { flex: 1; display: flex; }
#msg-input { border: none; background: transparent; flex: 1; font-size: 14px; outline: none; color: var(--text-main); }
#sidebar { width: 250px; border-left: 1px solid #1e293b; background: #0a0d11; padding: 15px; display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 768px) { #sidebar { display: none; } }
.sidebar-block { border: 1px dashed #334155; padding: 10px; }
.sidebar-title { color: var(--matrix-red); font-size: 10px; margin-bottom: 8px; letter-spacing: 1px; }
.sidebar-content { color: #64748b; font-size: 12px; line-height: 1.5; }

/* Эффект сгорания */
@keyframes burnOut { 0% { opacity: 1; color: #fb923c; text-shadow: 0 0 10px #ef4444; } 80% { opacity: 0.8; color: #ef4444; transform: skewX(-10deg); } 100% { opacity: 0; filter: blur(5px); transform: translateY(-10px); } }
.msg-burn { animation: burnOut 5s forwards; }

/* Эффект Режима Бога */
@keyframes godmode-glitch {
  0% { color: #ef4444; text-shadow: 2px 0 #22d3ee, -2px 0 #22c55e; }
  25% { color: #22d3ee; text-shadow: -2px 0 #ef4444, 2px 0 #ffffff; }
  50% { color: #22c55e; text-shadow: 2px 0 #ffffff, -2px 0 #ef4444; }
  75% { color: #ffffff; text-shadow: -2px 0 #22c55e, 2px 0 #22d3ee; }
  100% { color: #ef4444; text-shadow: 2px 0 #22d3ee, -2px 0 #22c55e; }
}
.msg-godmode { animation: godmode-glitch 0.2s infinite; font-weight: bold; letter-spacing: 1px; }
.nick-godmode { color: #ef4444; font-weight: bold; text-shadow: 0 0 10px #ef4444; }
