/* ==========================================================================
   Публичная /queue, v4: 3D-рендеры в списках, шапка чата с выходом, карточка «Открыть чат» после выхода,
   узкая плашка Discord. Подключается ПОСЛЕДНИМ в queue.html. Цвет режима — --g2 (класс tone-* на .q-detail).
   ========================================================================== */

/* ---------- Списки тестеров / игроков с 3D-рендерами ---------- */
html body.mc-page:not(.x) .q-detail .q-row { gap: 11px; padding: 6px 8px; min-height: 60px; }
html body.mc-page:not(.x) .q-detail .q-row .pos { width: 28px; text-align: center; flex: none; }
html body.mc-page:not(.x) .q-detail .q-row .nick { min-width: 0; }
html body.mc-page:not(.x) .q-detail .q-row.mine {
  background: color-mix(in srgb, var(--g2, #f5c518) 12%, transparent);
  box-shadow: inset 4px 0 0 var(--g2, #f5c518);
}
html body.mc-page:not(.x) .q-detail .q-online-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; box-shadow: 0 0 0 3px rgba(63,191,63,.18); }

/* ---------- Шапка чата ---------- */
html body.mc-page:not(.x) .session-head.sh { justify-content: flex-start; gap: 12px; padding-bottom: 14px; margin-bottom: 12px; }
html body.mc-page:not(.x) .sh-back {
  display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; cursor: pointer; color: #e9eaec;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); transition: background .15s, transform .15s;
}
html body.mc-page:not(.x) .sh-back:hover { background: rgba(255,255,255,.17); transform: translateX(-2px); }
html body.mc-page:not(.x) .sh-back:focus-visible, html body.mc-page:not(.x) .sr-open:focus-visible { outline: 2px solid var(--g2, #f5c518); outline-offset: 2px; }
html body.mc-page:not(.x) .sh-who { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
html body.mc-page:not(.x) .sh-who b { font-family: var(--pl-body, 'Onest', sans-serif); font-size: 18px; font-weight: 800; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html body.mc-page:not(.x) .sh-who span { font-family: var(--pl-body, 'Onest', sans-serif); font-size: 12.5px; color: #9aa0a5; }

/* Discord-синхронизация — узкая полоска вместо большого блока */
html body.mc-page:not(.x) .comm-strip {
  display: flex; align-items: center; gap: 9px; margin: 0 0 10px; padding: 8px 12px; border-radius: 10px;
  font-family: var(--pl-body, 'Onest', sans-serif); font-size: 12.5px; color: #c4cbff;
  background: rgba(88,101,242,.1); border: 1px solid rgba(88,101,242,.34);
}
html body.mc-page:not(.x) .comm-strip svg { flex: none; }
html body.mc-page:not(.x) .comm-strip a { margin-left: auto; font-weight: 800; color: #aab4ff; text-decoration: none; white-space: nowrap; }
html body.mc-page:not(.x) .comm-strip a:hover { color: #fff; text-decoration: underline; }

/* ---------- Свёрнутый чат ---------- */
html body.mc-page:not(.x) .sess-resume {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 40px 20px; text-align: center;
  font-family: var(--pl-body, 'Onest', sans-serif);
}
html body.mc-page:not(.x) .sess-resume .q3d-lg { margin-bottom: 4px; }
html body.mc-page:not(.x) .sr-title { font-size: 22px; font-weight: 800; color: #fff; }
html body.mc-page:not(.x) .sr-sub { font-size: 13.5px; color: #9aa0a5; }
html body.mc-page:not(.x) .sr-sub b { color: #fff; }
html body.mc-page:not(.x) .sr-open {
  position: relative; display: inline-flex; align-items: center; gap: 9px; height: 48px; margin-top: 6px; padding: 0 26px; border: 0; border-radius: 12px; cursor: pointer;
  font: 800 15px/1 var(--pl-body, 'Onest', sans-serif); color: #151515; background: var(--g2, #f5c518);
  box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--g2, #f5c518) 70%, #000); transition: transform .15s, filter .15s;
}
html body.mc-page:not(.x) .sr-open:hover { transform: translateY(-2px); filter: brightness(1.08); }
html body.mc-page:not(.x) .sr-unread {
  position: absolute; top: -9px; right: -8px; min-width: 24px; padding: 3px 7px; border-radius: 999px; font-style: normal; font-size: 11.5px; font-weight: 800; line-height: 1.3; text-align: center;
  color: #151515; background: #ff6b6b; box-shadow: 0 0 0 3px #2b2b2b; animation: q4-pop .3s ease-out;
}
html body.mc-page:not(.x) .sr-unread[hidden] { display: none; }
html body.mc-page:not(.x) .sess-resume small { font-size: 12px; color: #7d8286; }
@keyframes q4-pop { from { transform: scale(.4); } to { transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  html body.mc-page:not(.x) .sh-back, html body.mc-page:not(.x) .sr-open { transition: none; }
  html body.mc-page:not(.x) .sr-unread { animation: none; }
}

/* ---------- Пустые состояния панели чата: спокойная линейная иконка вместо эмодзи ---------- */
html body.mc-page:not(.x) .session-panel .session-empty { gap: 8px; font-family: var(--pl-body, 'Onest', sans-serif); }
html body.mc-page:not(.x) .session-panel .session-empty-icon {
  display: grid; place-items: center; width: 60px; height: 60px; margin: 0 0 6px; border-radius: 50%; font-size: 0; opacity: 1; filter: none;
  color: #8d9296; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09);
}
html body.mc-page:not(.x) .session-panel .session-empty-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
html body.mc-page:not(.x) .session-panel .se-title { font-size: 16px; font-weight: 700; color: #e9eaec; }
html body.mc-page:not(.x) .session-panel .se-sub { max-width: 260px; font-size: 13px; line-height: 1.5; color: #7d8286; }
html body.mc-page:not(.x) .session-panel .se-chip { margin-top: 8px; padding: 5px 12px; border-radius: 999px; font-size: 12px; color: #9aa0a5; background: rgba(255,255,255,.05); }
html body.mc-page:not(.x) .session-panel .se-chip b { color: #fff; }
