/* Свои стили поверх Tailwind: полосы прокрутки, значки ролей, ползунки, значки статуса в голосовом, анимации */
/* Стили пришли — страницу можно показывать (до этого она скрыта стилем в index.html) */
body { visibility: visible; }
::-webkit-scrollbar { width: 8px; } ::-webkit-scrollbar-track { background: #2b2d31; } ::-webkit-scrollbar-thumb { background: #1a1b1e; border-radius: 4px; } ::-webkit-scrollbar-thumb:hover { background: #111214; }
.admin-crown { color: #facc15; font-size: 0.8rem; margin-left: 4px; }
.mod-shield { color: #a855f7; font-size: 0.8rem; margin-left: 4px; }
/* Статус микрофона и наушников в голосовом канале; перечёркнутые наушники рисуем сами (в Font Awesome free такого значка нет) */
.voice-status { color: #f23f43; font-size: 11px; margin-left: 5px; position: relative; display: inline-flex; line-height: 1; }
.voice-status.slashed::after { content: ''; position: absolute; left: 50%; top: -2px; width: 2px; height: calc(100% + 4px); background: #f23f43; border-radius: 1px; transform: translateX(-50%) rotate(45deg); box-shadow: 0 0 0 1.5px #2b2d31; }
.status-pop { animation: statusPop .32s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes statusPop { 0% { transform: scale(0); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.slash-self { position: relative; }
.slash-self::after { content: ''; position: absolute; left: 50%; top: 4px; bottom: 4px; width: 2px; background: #ef4444; border-radius: 1px; transform: translateX(-50%) rotate(45deg); box-shadow: 0 0 0 1.5px #232428; }
.btn-pop { animation: btnPop .25s ease-out; }
@keyframes btnPop { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: scale(1); } }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 14px; height: 14px; background: #5865f2; border-radius: 50%; cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 14px; height: 14px; background: #5865f2; border-radius: 50%; cursor: pointer; border: none; }

/* «печатает…»: точки по очереди (typing.js) */
.typing-dots span { animation: typing-dot 1.2s infinite; opacity: .2; }
.typing-dots span:nth-child(2) { animation-delay: .2s; }
.typing-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes typing-dot { 0%, 60%, 100% { opacity: .2; } 30% { opacity: 1; } }

/* Сенсорный экран: кнопки «при наведении» видны всегда, кнопки голоса крупнее; долгое нажатие на сообщение — наше меню, а не выделение */
@media (hover: none) {
    .touch-show { display: flex !important; }
    .touch-big { padding: .5rem !important; font-size: 1.05rem; }
    #chat-messages [data-msg-id] { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
}
/* iPhone приближает страницу, если шрифт в поле мельче 16px */
@media (max-width: 767px) { input, textarea, select { font-size: 16px !important; } }

/* Звонки (calls.js): своя камера — зеркально, аватар во время вызова «дышит» */
.call-mirror { transform: scaleX(-1); }
.call-pulse { animation: call-pulse 1.6s ease-in-out infinite; }
@keyframes call-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(88, 101, 242, .6); } 50% { box-shadow: 0 0 0 14px rgba(88, 101, 242, 0); } }
