/* ---------- чат в духе SA-MP ---------- */
.chat{position:fixed;z-index:20;display:flex;flex-direction:column;gap:6px;pointer-events:none}
.chat-log{overflow-y:auto;display:flex;flex-direction:column;gap:2px;padding:6px 8px;scrollbar-width:thin;pointer-events:none}
.chat.open .chat-log{pointer-events:auto}
.chat-log::-webkit-scrollbar{width:4px}
.chat-log::-webkit-scrollbar-thumb{background:var(--edge)}
.chat-line{font-size:13.5px;line-height:1.4;color:#fff;text-shadow:1px 1px 0 #000,0 0 3px #000;word-wrap:break-word;transition:opacity .8s}
.chat-line .cl-sc{color:var(--dim);font-size:11.5px;margin-right:4px}
.chat-line .cl-n{font-weight:700;margin-right:4px}
.chat-line.sys{color:#ffe9a3}
.chat-line.me .cl-n{color:var(--yellow)}
.chat-line.gone{opacity:0}
.chat.open .chat-line.gone{opacity:1}
.chat.open .chat-log{background:rgba(13,11,18,.78);box-shadow:inset 0 0 0 2px var(--edge)}
.chat-form{display:none;gap:6px;pointer-events:auto}
.chat.open .chat-form{display:flex}
.chat-form input{flex:1;min-width:0;height:42px;padding:0 12px;font-size:15px;background:rgba(13,11,18,.95);border:0;box-shadow:inset 0 0 0 2px var(--yellow);color:var(--text)}
.chat-form .pbtn{min-height:42px}
.chat-notice{padding:10px 12px;font-size:13px;line-height:1.45;color:#ffe9a3;background:rgba(42,31,5,.95);box-shadow:inset 0 0 0 2px #6b5210;pointer-events:auto}
.chat-notice button{margin-top:8px}
