/* Chat preview, user card and message template modals that previously followed rating rules.
 * Extracted from styles-rating.css; keep import order in styles-rating.css stable. */

/* Превью личного диалога из списка (долгое нажатие) */
.chat-dialog-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 10062;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
  opacity: 0;
  visibility: hidden;
  /* Иначе полноэкранный слой выше профиля/«Друзья» перехватывает клики, пока модалка закрыта. */
  pointer-events: none;
  transition: opacity 0.2s, visibility 0.2s;
}
.chat-dialog-preview-modal.chat-dialog-preview-modal--open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.chat-dialog-preview-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  cursor: pointer;
}
.chat-dialog-preview-modal__inner {
  position: relative;
  max-width: 100%;
  width: 380px;
  max-height: min(88vh, 640px);
  display: flex;
  flex-direction: column;
  background: var(--block-bg-solid, #1e293b);
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.chat-dialog-preview-modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 1;
}
.chat-dialog-preview-modal__close:hover {
  background: rgba(255, 255, 255, 0.2);
}
.chat-dialog-preview-modal__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 48px 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}
.chat-dialog-preview-modal__avatar-wrap {
  flex-shrink: 0;
}
.chat-dialog-preview-modal__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.chat-dialog-preview-modal__avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  background: rgba(148, 163, 184, 0.25);
}
.chat-dialog-preview-modal__titles {
  min-width: 0;
  flex: 1;
}
.chat-dialog-preview-modal__title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  word-break: break-word;
}
.chat-dialog-preview-modal__sub {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--text-muted);
  word-break: break-word;
}
.chat-dialog-preview-modal__sub:empty {
  display: none;
}
.chat-dialog-preview-modal__messages-wrap {
  flex: 1;
  min-height: 0;
  padding: 10px 12px;
  background: var(--block-bg-solid, #1e293b);
}
.chat-dialog-preview-modal__messages {
  min-height: 160px;
  max-height: min(42vh, 360px);
  margin: 0;
}
.chat-dialog-preview-modal__messages .chat-msg__respect-row {
  pointer-events: none;
}
.chat-dialog-preview-modal__messages .chat-msg__id-link {
  pointer-events: none;
}
.chat-dialog-preview__reaction-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  margin: 0 4px 4px 0;
  border-radius: 999px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text);
  vertical-align: middle;
}
.chat-dialog-preview-modal__footer {
  flex-shrink: 0;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--border-subtle);
}
.chat-dialog-preview-modal__footer-row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 10px;
}
.chat-dialog-preview-modal__add-friend-btn {
  flex: 0 0 auto;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  color: var(--text);
  background: rgba(249, 115, 22, 0.16);
  border: 1px solid rgba(251, 146, 60, 0.55);
  white-space: nowrap;
}
.chat-dialog-preview-modal__add-friend-btn:hover {
  filter: brightness(1.08);
}
.chat-dialog-preview-modal__add-friend-btn:active {
  transform: scale(0.99);
}
.chat-dialog-preview-modal__add-friend-btn--pending,
.chat-dialog-preview-modal__add-friend-btn:disabled {
  cursor: default;
  color: rgba(254, 243, 199, 0.88);
  background: rgba(146, 64, 14, 0.18);
  border-color: rgba(251, 191, 36, 0.28);
}
.chat-dialog-preview-modal__add-friend-btn--pending:hover,
.chat-dialog-preview-modal__add-friend-btn:disabled:hover {
  filter: none;
}
.chat-dialog-preview-modal__footer-row .chat-dialog-preview-modal__open-btn {
  flex: 1;
  min-width: 0;
}
.chat-dialog-preview-modal__open-btn {
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  color: #0f172a;
  background: linear-gradient(180deg, #fdba74 0%, #f97316 100%);
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.35);
}
.chat-dialog-preview-modal__open-btn:hover {
  filter: brightness(1.06);
}
.chat-dialog-preview-modal__open-btn:active {
  transform: scale(0.99);
}

/* Модалка карточки пользователя в чате */
.chat-user-modal {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

/* Модалка шаблонов сообщений */
.chat-templates-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
.chat-templates-modal.chat-templates-modal--open {
  opacity: 1;
  visibility: visible;
}
.chat-templates-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  cursor: pointer;
}
.chat-templates-modal__inner {
  position: relative;
  max-width: 100%;
  width: 360px;
  max-height: 85vh;
  overflow: hidden;
  background: var(--block-bg-solid, #1e293b);
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}
.chat-templates-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--border-subtle);
}
.chat-templates-modal__title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}
.chat-templates-modal__header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.chat-templates-modal__icon-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(249, 115, 22, 0.14);
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.chat-templates-modal__icon-btn:hover { background: rgba(249, 115, 22, 0.28); }
.chat-templates-modal__body {
  padding: 10px 12px 12px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.chat-templates-modal__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chat-templates-modal__item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.chat-templates-modal__item-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px;
  border: none;
  background: none;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  min-width: 0;
}
.chat-templates-modal__item-main:hover { background: rgba(255, 255, 255, 0.06); }
.chat-templates-modal__item-title {
  font-weight: 800;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1;
}
.chat-templates-modal__item-arrow {
  flex-shrink: 0;
  opacity: 0.8;
}
.chat-templates-modal__item-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
}
.chat-templates-modal__item-btn:hover { background: rgba(255, 255, 255, 0.14); }
.chat-templates-modal__item-btn--edit { background: rgba(249, 115, 22, 0.22); }
.chat-templates-modal__item-btn--edit:hover { background: rgba(251, 146, 60, 0.35); }
.chat-templates-modal__item-btn--delete { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }
.chat-templates-modal__item-btn--delete:hover { background: rgba(239, 68, 68, 0.35); }
.chat-templates-modal__empty {
  margin: 0;
  padding: 10px 2px;
  color: var(--text-muted);
  font-size: 13px;
}
.chat-templates-modal__form {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-templates-modal__form--hidden { display: none !important; }
.chat-templates-modal__label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}
.chat-templates-modal__input,
.chat-templates-modal__textarea {
  width: 100%;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 10px 10px;
  font-family: inherit;
  font-size: 14px;
}
.chat-templates-modal__textarea { resize: vertical; min-height: 180px; }
.chat-templates-modal__form-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.chat-templates-modal__btn {
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 800;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}
.chat-templates-modal__btn:hover { background: rgba(255, 255, 255, 0.10); }
.chat-templates-modal__btn--primary {
  background: linear-gradient(to top, #ea580c, #fb923c);
  border-color: rgba(251, 146, 60, 0.35);
  color: var(--btn-on-accent, #fff);
}
.chat-templates-modal__btn--primary:hover {
  background: linear-gradient(to top, #c2410c, #ea580c);
  border-color: rgba(251, 146, 60, 0.5);
  filter: brightness(1.02);
}
.chat-templates-modal__btn--ghost {
  background: transparent;
}
.chat-templates-modal__hint {
  margin: 0;
  min-height: 16px;
  font-size: 12px;
  color: var(--text-muted);
}
.chat-user-modal.chat-user-modal--open {
  opacity: 1;
  visibility: visible;
}
.chat-user-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  cursor: pointer;
}
.chat-user-modal__inner {
  position: relative;
  box-sizing: border-box;
  max-width: min(510px, calc(100vw - 24px));
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 14% 18%, rgba(214, 171, 83, 0.1), transparent 34%),
    linear-gradient(135deg, #02060c 0%, #070b12 52%, #03050a 100%);
  border-radius: 20px;
  padding: 26px 16px 16px;
  border: 1px solid rgba(214, 171, 83, 0.32);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.58);
}

.chat-user-modal--profile-loading .chat-user-modal__inner {
  min-height: 220px;
}
.chat-user-modal--profile-loading .chat-user-modal__inner > *:not(.chat-user-modal__close) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.chat-user-modal--profile-loading .chat-user-modal__inner::before {
  content: "Загрузка профиля…";
  position: absolute;
  left: 20px;
  right: 20px;
  top: 126px;
  color: rgba(255, 237, 196, 0.82);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}
.chat-user-modal--profile-loading .chat-user-modal__inner::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 75px;
  width: 30px;
  height: 30px;
  margin-left: -17px;
  border: 3px solid rgba(214, 171, 83, 0.2);
  border-top-color: #eab54f;
  border-radius: 50%;
  animation: chat-user-profile-loading-spin 0.8s linear infinite;
}
@keyframes chat-user-profile-loading-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 640px) {
  .chat-user-modal {
    padding-right: env(safe-area-inset-right, 0px);
    padding-left: env(safe-area-inset-left, 0px);
  }

  .chat-user-modal__inner {
    width: calc(100vw - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
    max-width: none;
  }
}
.chat-user-modal__top {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(150px, 0.82fr);
  gap: 14px;
  justify-content: stretch;
  align-items: start;
  padding-right: 0;
  margin-bottom: 14px;
}
.chat-user-modal__top-actions {
  display: grid;
  gap: 8px;
  width: 100%;
  min-width: 0;
  justify-self: center;
  transform: translateX(-10px);
}
.chat-user-modal__top-actions .chat-user-modal__write-btn,
.chat-user-modal__top-actions .chat-user-modal__friend-btn {
  min-height: 48px;
  padding-top: 10px;
  padding-bottom: 10px;
  box-sizing: border-box;
}
.chat-user-modal__write-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 8px;
}
.chat-user-modal__copy-profile-btn {
  display: grid;
  place-items: center;
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 198, 88, 0.45);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.98), rgba(5, 10, 19, 0.98));
  color: #ffd978;
  cursor: pointer;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
}
.chat-user-modal__copy-profile-btn svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chat-user-modal__copy-profile-btn:active {
  transform: scale(0.96);
}
.chat-user-modal__copy-toast {
  position: fixed;
  left: 50%;
  bottom: max(24px, calc(env(safe-area-inset-bottom, 0px) + 16px));
  z-index: 12000;
  max-width: calc(100vw - 32px);
  padding: 11px 16px;
  border: 1px solid rgba(110, 231, 183, 0.56);
  border-radius: 999px;
  background: rgba(5, 46, 38, 0.97);
  color: #bbf7d0;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.48), 0 0 22px rgba(16, 185, 129, 0.2);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 14px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.chat-user-modal__copy-toast--visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.chat-user-modal--self .chat-user-modal__top {
  grid-template-columns: minmax(0, 1fr);
}
.chat-user-modal--self .chat-user-modal__top-actions {
  display: none;
}
.chat-user-modal__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(150px, 0.82fr);
  gap: 0;
  align-items: stretch;
  margin: 0 0 14px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background:
    url("./assets/chat-profile-hero-bg-21.webp") center 54% / cover no-repeat,
    linear-gradient(115deg, rgba(6, 10, 18, 0.96), rgba(13, 18, 30, 0.96));
  box-shadow: none;
}
.chat-user-modal__hero--art {
  min-height: 204px;
  background:
    radial-gradient(circle at 86% 20%, rgba(214, 171, 83, 0.1), transparent 38%),
    linear-gradient(115deg, rgba(6, 10, 18, 0.98), rgba(4, 7, 14, 0.98) 54%, rgba(3, 5, 10, 0.99));
}
.chat-user-modal__hero-status {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 18px 38px 0;
}
.chat-user-modal__level {
  text-align: left;
  margin-bottom: 12px;
}
.chat-user-modal__level-fish {
  display: block;
  width: 96px;
  height: 96px;
  margin: 0 auto 8px;
  object-fit: contain;
  filter:
    drop-shadow(0 4px 7px rgba(0, 0, 0, 0.5))
    drop-shadow(0 0 12px rgba(34, 211, 238, 0.28));
}
.chat-user-modal__level-fish[hidden] {
  display: none !important;
}
.chat-user-modal__level-text {
  margin: 0;
  color: rgba(246, 238, 221, 0.94);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.1;
}
.chat-user-modal__level-num {
  display: inline-block;
  margin-right: 5px;
  color: #e2a842;
  font-size: 38px;
  font-weight: 1000;
  line-height: 0.92;
  letter-spacing: 0;
}
.chat-user-modal__level-rest {
  color: rgba(246, 238, 221, 0.72);
  font-size: 13px;
  font-weight: 650;
}
.chat-user-modal__respect-control {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}
.chat-user-modal__respect-control--self .chat-user-modal__respect-btn-row {
  display: none;
}
.chat-user-modal__respect {
  display: block;
  width: 100%;
  padding: 0;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  background: transparent;
  font: inherit;
  font-size: 13px;
  text-align: left;
  color: var(--text-muted);
  cursor: pointer;
}
.chat-user-modal__respect:hover .chat-user-modal__respect-val {
  text-decoration: underline;
}
.chat-user-modal__respect:focus-visible {
  outline: 2px solid rgba(250, 204, 21, 0.72);
  outline-offset: 4px;
  border-radius: 4px;
}
.chat-user-modal__respect-val {
  font-weight: 600;
  color: var(--text);
}
.chat-user-modal__status {
  order: -1;
  margin: 0 0 8px;
  padding: 0;
  border-top: 0;
}
.chat-user-modal__status-title {
  position: relative;
  min-height: 34px;
  margin: 0 0 4px;
  padding-left: 42px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(246, 238, 221, 0.7);
}
.chat-user-modal__status-title::before {
  content: "";
  position: absolute;
  left: -2px;
  top: -10px;
  width: 39px;
  height: 39px;
  border: 1px solid rgba(255, 190, 62, 0.62);
  border-radius: 50%;
  background:
    url("./assets/fish-king-home.png") center / 46px 46px no-repeat,
    radial-gradient(circle at 50% 38%, rgba(255, 206, 91, 0.26), transparent 62%),
    rgba(6, 10, 18, 0.86);
  box-shadow:
    0 0 16px rgba(255, 167, 24, 0.22),
    inset 0 1px 0 rgba(255, 239, 184, 0.18);
}
.chat-user-modal__status-xp {
  margin: 0 0 8px 42px;
  color: rgba(255, 224, 164, 0.82);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}
.chat-user-modal__status-xp[hidden] {
  display: none !important;
}
.chat-user-modal__status-scale {
  display: flex;
  align-items: center;
  gap: 8px;
}
.chat-user-modal__status-scale + .chat-user-modal__status-xp {
  margin-top: 8px;
  margin-bottom: 0;
}
.chat-user-modal__status-card {
  display: none;
}
.chat-user-modal__status-track {
  position: relative;
  flex: 1;
  height: 10px;
  background: rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  overflow: hidden;
}
.chat-user-modal__status-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: calc(var(--status-value, 0) * 1%);
  max-width: 100%;
  background: linear-gradient(90deg, #ffd36f, #e0a044);
  border-radius: 999px;
  transition: width 0.35s ease-out;
  z-index: 1;
}
.chat-user-modal__status-fish {
  position: absolute;
  left: calc(var(--status-value, 0) * 1%);
  top: 50%;
  width: 34px;
  height: 34px;
  transform: translate(-50%, -50%);
  font-size: 0;
  line-height: 1;
  transition: left 0.35s ease-out;
  pointer-events: none;
  z-index: 2;
}
.chat-user-modal__status-fish-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45));
}
.chat-user-modal__achievements {
  margin: 14px 0 12px;
  padding-top: 26px;
  border-top: 0;
  position: relative;
}

.chat-user-modal__profile-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 54px 16px 0;
  padding: 4px;
  border: 1px solid rgba(245, 180, 72, 0.26);
  border-radius: 14px;
  background: rgba(6, 11, 20, 0.78);
}

.chat-user-modal__profile-tab {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 241, 211, 0.7);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

#chatUserModal .chat-user-modal__profile-tab--active,
#chatUserModal .chat-user-modal__profile-tab[aria-selected="true"] {
  border-color: #ffd36a !important;
  background: linear-gradient(180deg, #ffcf65 0%, #f59e0b 55%, #c45f08 100%) !important;
  color: #190d02 !important;
  text-shadow: 0 1px 0 rgba(255, 246, 214, 0.65);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), inset 0 -3px 5px rgba(92, 41, 0, 0.28), 0 0 18px rgba(245, 158, 11, 0.62) !important;
}

.chat-user-modal__profile-panel--tab-hidden {
  display: none !important;
}
.chat-user-modal__achievements[hidden] {
  display: none !important;
}
.chat-user-modal__achievements-title {
  position: absolute;
  top: 0;
  left: 50%;
  margin: 0;
  padding: 0 18px;
  transform: translateX(-50%);
  color: #f0a23a;
  font-size: 15px;
  font-weight: 1000;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(240, 128, 26, 0.5);
  white-space: nowrap;
}
.chat-user-modal__achievements-title::before,
.chat-user-modal__achievements-title::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 68px;
  height: 7px;
  transform: translateY(-50%);
  background:
    linear-gradient(90deg, transparent, rgba(227, 145, 38, 0.88), transparent);
}
.chat-user-modal__achievements-title::before {
  right: 100%;
}
.chat-user-modal__achievements-title::after {
  left: 100%;
}
.chat-user-modal__achievements-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-user-modal__achievements-loading {
  min-height: 96px;
  display: grid;
  gap: 10px;
  place-items: center;
  padding: 18px 14px;
  border: 1px solid rgba(246, 154, 39, 0.42);
  border-radius: 6px;
  color: rgba(255, 235, 199, 0.88);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  background:
    radial-gradient(circle at 50% 58%, rgba(237, 139, 30, 0.16), transparent 58%),
    linear-gradient(180deg, rgba(11, 11, 10, 0.96), rgba(18, 17, 14, 0.96));
  box-shadow:
    inset 0 0 0 1px rgba(255, 215, 126, 0.1),
    0 0 12px rgba(239, 117, 22, 0.14);
}
.chat-user-modal__achievements-loading::before {
  content: "";
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255, 213, 128, 0.24);
  border-top-color: #ffbd39;
  border-radius: 50%;
  animation: chat-user-achievement-loading-spin 0.8s linear infinite;
}
.chat-user-modal__achievement-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.chat-user-modal__achievement-group-title {
  position: relative;
  align-self: center;
  margin: 0;
  padding: 0 36px;
  color: #ffb547;
  font-size: 15px;
  font-weight: 1000;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  text-shadow:
    0 2px 0 rgba(75, 34, 4, 0.9),
    0 0 12px rgba(255, 135, 26, 0.52);
}
.chat-user-modal__achievement-group-title::before,
.chat-user-modal__achievement-group-title::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 26px;
  height: 4px;
  transform: translateY(-50%);
  background:
    linear-gradient(90deg, transparent, rgba(255, 173, 55, 0.85), transparent);
}
.chat-user-modal__achievement-group-title::before {
  right: 100%;
}
.chat-user-modal__achievement-group-title::after {
  left: 100%;
}
.chat-user-modal__achievement-group-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.chat-user-modal__achievement {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(78px, 1fr) auto;
  justify-items: center;
  align-items: center;
  gap: 4px;
  min-width: 0;
  min-height: 158px;
  overflow: hidden;
  padding: 10px 8px 8px;
  border: 1px solid rgba(246, 154, 39, 0.6);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(255, 117, 15, 0.52), transparent 10px) top left / 18px 18px no-repeat,
    linear-gradient(225deg, rgba(255, 117, 15, 0.52), transparent 10px) top right / 18px 18px no-repeat,
    linear-gradient(45deg, rgba(255, 117, 15, 0.52), transparent 10px) bottom left / 18px 18px no-repeat,
    linear-gradient(315deg, rgba(255, 117, 15, 0.52), transparent 10px) bottom right / 18px 18px no-repeat,
    radial-gradient(circle at 50% 68%, rgba(237, 139, 30, 0.18), transparent 54%),
    linear-gradient(180deg, rgba(11, 11, 10, 0.98), rgba(18, 17, 14, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(255, 215, 126, 0.13),
    0 0 12px rgba(239, 117, 22, 0.18);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.chat-user-modal__achievement:focus-visible {
  outline: none;
  border-color: rgba(255, 220, 128, 0.95);
  box-shadow:
    inset 0 0 0 1px rgba(255, 242, 194, 0.3),
    0 0 0 2px rgba(255, 141, 20, 0.38),
    0 0 24px rgba(255, 145, 25, 0.32);
}
.chat-user-modal__achievement:not(.chat-user-modal__achievement--locked) {
  border-color: rgba(255, 184, 62, 0.86);
  box-shadow:
    inset 0 0 0 1px rgba(255, 226, 142, 0.24),
    inset 0 0 22px rgba(255, 169, 34, 0.12),
    0 0 18px rgba(255, 145, 25, 0.3),
    0 0 34px rgba(255, 194, 72, 0.14);
}
.chat-user-modal__achievement:not(.chat-user-modal__achievement--locked)::after {
  content: none;
}
.chat-user-modal__achievement-icon {
  display: block;
  width: min(112%, 118px);
  height: 104px;
  color: inherit;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.chat-user-modal__achievement-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter:
    drop-shadow(0 9px 10px rgba(0, 0, 0, 0.48))
    drop-shadow(0 0 10px rgba(255, 176, 55, 0.2));
}
.chat-user-modal__achievement:not(.chat-user-modal__achievement--locked) .chat-user-modal__achievement-icon img {
  filter:
    brightness(1.2)
    contrast(1.08)
    saturate(1.2)
    drop-shadow(0 10px 12px rgba(0, 0, 0, 0.5))
    drop-shadow(0 0 16px rgba(255, 188, 62, 0.52))
    drop-shadow(0 0 30px rgba(255, 129, 20, 0.24));
}
.chat-user-modal__achievement-title {
  display: block;
  min-height: 34px;
  color: #f5dfbd;
  font-size: 13px;
  font-weight: 1000;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 1px 0 #000, 0 0 8px rgba(255, 163, 53, 0.24);
}
.chat-user-modal__achievement--top-win .chat-user-modal__achievement-title {
  min-height: 41px;
  font-size: 12.5px;
  line-height: 1;
}
.chat-user-modal__achievement--big-win-plus:not(.chat-user-modal__achievement--locked) {
  border-color: rgba(255, 231, 139, 0.98);
  background:
    linear-gradient(135deg, rgba(255, 239, 164, 0.78), transparent 13px) top left / 22px 22px no-repeat,
    linear-gradient(225deg, rgba(255, 239, 164, 0.78), transparent 13px) top right / 22px 22px no-repeat,
    linear-gradient(45deg, rgba(255, 188, 54, 0.62), transparent 13px) bottom left / 22px 22px no-repeat,
    linear-gradient(315deg, rgba(255, 188, 54, 0.62), transparent 13px) bottom right / 22px 22px no-repeat,
    radial-gradient(circle at 50% 49%, rgba(255, 233, 150, 0.36), transparent 30%),
    radial-gradient(circle at 50% 70%, rgba(255, 130, 23, 0.24), transparent 60%),
    linear-gradient(180deg, rgba(24, 17, 8, 0.99), rgba(10, 9, 8, 0.99));
  box-shadow:
    inset 0 0 0 1px rgba(255, 248, 201, 0.42),
    inset 0 0 28px rgba(255, 196, 64, 0.22),
    0 0 22px rgba(255, 177, 38, 0.42),
    0 0 48px rgba(255, 222, 116, 0.24);
}
.chat-user-modal__achievement--big-win-plus:not(.chat-user-modal__achievement--locked)::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(255, 235, 155, 0.28);
  border-radius: 4px;
  box-shadow: inset 0 0 18px rgba(255, 215, 104, 0.1);
  pointer-events: none;
}
.chat-user-modal__achievement--big-win-plus .chat-user-modal__achievement-title {
  min-height: 36px;
  color: #fff1bb;
  font-size: 13.5px;
  text-shadow:
    0 1px 0 #000,
    0 0 9px rgba(255, 217, 103, 0.52),
    0 0 18px rgba(255, 139, 23, 0.28);
}
.chat-user-modal__achievement--big-win-plus .chat-user-modal__achievement-icon {
  width: min(126%, 132px);
  height: 112px;
  margin-top: -4px;
}
.chat-user-modal__achievement--big-win-plus:not(.chat-user-modal__achievement--locked) .chat-user-modal__achievement-icon img {
  filter:
    brightness(1.32)
    contrast(1.16)
    saturate(1.34)
    drop-shadow(0 12px 13px rgba(0, 0, 0, 0.58))
    drop-shadow(0 0 18px rgba(255, 231, 131, 0.74))
    drop-shadow(0 0 38px rgba(255, 145, 24, 0.42));
}
.chat-user-modal__achievement--big-win-plus .chat-user-modal__achievement-stars {
  color: #ffe88f;
  text-shadow:
    0 1px 0 rgba(60, 25, 0, 0.95),
    0 0 9px rgba(255, 222, 99, 0.72),
    0 0 18px rgba(255, 143, 21, 0.36);
}
.chat-user-modal__achievement--big-win:not(.chat-user-modal__achievement--locked),
.chat-user-modal__achievement--big-win-plus:not(.chat-user-modal__achievement--locked) {
  background:
    radial-gradient(circle at 50% 54%, rgba(168, 100, 31, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(18, 15, 11, 0.99), rgba(8, 9, 10, 0.99));
  box-shadow:
    inset 0 0 0 1px rgba(226, 185, 114, 0.16),
    inset 0 0 22px rgba(125, 76, 29, 0.12),
    0 0 14px rgba(150, 88, 28, 0.2);
}
.chat-user-modal__achievement--big-win:not(.chat-user-modal__achievement--locked) .chat-user-modal__achievement-icon img {
  filter:
    brightness(0.78)
    contrast(1.12)
    saturate(0.8)
    drop-shadow(0 10px 11px rgba(0, 0, 0, 0.68))
    drop-shadow(0 0 9px rgba(181, 113, 39, 0.24));
}
.chat-user-modal__achievement--big-win-plus:not(.chat-user-modal__achievement--locked) .chat-user-modal__achievement-icon img {
  filter:
    brightness(0.84)
    contrast(1.12)
    saturate(0.88)
    drop-shadow(0 10px 11px rgba(0, 0, 0, 0.68))
    drop-shadow(0 0 11px rgba(203, 140, 53, 0.3));
}
.chat-user-modal__achievement--month-champion:not(.chat-user-modal__achievement--locked) {
  border-color: rgba(255, 221, 111, 0.96);
  background:
    linear-gradient(135deg, rgba(255, 226, 126, 0.68), transparent 12px) top left / 21px 21px no-repeat,
    linear-gradient(225deg, rgba(255, 226, 126, 0.68), transparent 12px) top right / 21px 21px no-repeat,
    linear-gradient(45deg, rgba(255, 140, 27, 0.5), transparent 12px) bottom left / 21px 21px no-repeat,
    linear-gradient(315deg, rgba(255, 140, 27, 0.5), transparent 12px) bottom right / 21px 21px no-repeat,
    radial-gradient(circle at 50% 50%, rgba(255, 229, 137, 0.32), transparent 34%),
    radial-gradient(circle at 50% 73%, rgba(255, 128, 22, 0.2), transparent 58%),
    linear-gradient(180deg, rgba(23, 15, 7, 0.99), rgba(11, 10, 9, 0.99));
  box-shadow:
    inset 0 0 0 1px rgba(255, 243, 190, 0.36),
    inset 0 0 30px rgba(255, 186, 50, 0.18),
    0 0 22px rgba(255, 165, 31, 0.36),
    0 0 44px rgba(255, 215, 103, 0.2);
}
.chat-user-modal__achievement--month-champion:not(.chat-user-modal__achievement--locked)::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(255, 229, 139, 0.25);
  border-radius: 4px;
  pointer-events: none;
}
.chat-user-modal__achievement--month-champion .chat-user-modal__achievement-title,
.chat-user-modal__achievement--month-vice-champion .chat-user-modal__achievement-title {
  display: none;
}
.chat-user-modal__achievement--month-champion .chat-user-modal__achievement-icon,
.chat-user-modal__achievement--month-vice-champion .chat-user-modal__achievement-icon {
  width: min(132%, 136px);
  height: 122px;
  margin-top: 0;
}
.chat-user-modal__achievement--month-champion:not(.chat-user-modal__achievement--locked) .chat-user-modal__achievement-icon img,
.chat-user-modal__achievement--month-vice-champion:not(.chat-user-modal__achievement--locked) .chat-user-modal__achievement-icon img {
  filter:
    drop-shadow(0 11px 12px rgba(0, 0, 0, 0.62))
    drop-shadow(0 0 11px rgba(255, 196, 81, 0.28));
}
.chat-user-modal__achievement--month-champion .chat-user-modal__achievement-stars {
  color: #ffe38a;
  text-shadow:
    0 1px 0 rgba(60, 25, 0, 0.95),
    0 0 9px rgba(255, 218, 96, 0.66);
}
.chat-user-modal__achievement--lucky-month:not(.chat-user-modal__achievement--locked) {
  border-color: rgba(255, 204, 83, 0.9);
  background:
    linear-gradient(135deg, rgba(255, 205, 83, 0.56), transparent 10px) top left / 18px 18px no-repeat,
    linear-gradient(225deg, rgba(255, 205, 83, 0.56), transparent 10px) top right / 18px 18px no-repeat,
    linear-gradient(45deg, rgba(255, 205, 83, 0.56), transparent 10px) bottom left / 18px 18px no-repeat,
    linear-gradient(315deg, rgba(255, 205, 83, 0.56), transparent 10px) bottom right / 18px 18px no-repeat,
    radial-gradient(circle at 50% 67%, rgba(255, 190, 64, 0.26), transparent 56%),
    linear-gradient(180deg, rgba(16, 13, 8, 0.99), rgba(25, 17, 8, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(255, 232, 157, 0.26),
    inset 0 0 24px rgba(255, 180, 48, 0.16),
    0 0 20px rgba(255, 170, 33, 0.32),
    0 0 38px rgba(255, 210, 93, 0.16);
}
.chat-user-modal__achievement--lucky-month .chat-user-modal__achievement-title {
  min-height: 41px;
  color: #ffe9b6;
  font-size: 11.5px;
}
.chat-user-modal__achievement--lucky-month .chat-user-modal__achievement-icon {
  width: min(118%, 124px);
}
.chat-user-modal__achievement--club-choice:not(.chat-user-modal__achievement--locked) {
  border-color: rgba(149, 222, 255, 0.9);
  background:
    linear-gradient(135deg, rgba(255, 223, 136, 0.42), transparent 11px) top left / 19px 19px no-repeat,
    linear-gradient(225deg, rgba(255, 223, 136, 0.42), transparent 11px) top right / 19px 19px no-repeat,
    radial-gradient(circle at 50% 62%, rgba(80, 194, 255, 0.24), transparent 58%),
    linear-gradient(180deg, rgba(7, 16, 22, 0.99), rgba(15, 18, 14, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(218, 243, 255, 0.24),
    inset 0 0 24px rgba(82, 187, 255, 0.14),
    0 0 22px rgba(92, 200, 255, 0.26),
    0 0 36px rgba(255, 210, 93, 0.12);
}
.chat-user-modal__achievement--club-choice .chat-user-modal__achievement-title {
  color: #eaf8ff;
}
.chat-user-modal__achievement--club-choice .chat-user-modal__achievement-icon {
  width: min(112%, 120px);
}
.chat-user-modal__achievement--club-admin:not(.chat-user-modal__achievement--locked) {
  border-color: rgba(255, 184, 62, 0.9);
  background:
    linear-gradient(135deg, rgba(255, 183, 62, 0.54), transparent 11px) top left / 19px 19px no-repeat,
    linear-gradient(225deg, rgba(255, 183, 62, 0.54), transparent 11px) top right / 19px 19px no-repeat,
    linear-gradient(45deg, rgba(255, 122, 24, 0.42), transparent 11px) bottom left / 19px 19px no-repeat,
    linear-gradient(315deg, rgba(255, 122, 24, 0.42), transparent 11px) bottom right / 19px 19px no-repeat,
    radial-gradient(circle at 50% 60%, rgba(255, 191, 74, 0.28), transparent 58%),
    linear-gradient(180deg, rgba(19, 13, 6, 0.99), rgba(18, 14, 10, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(255, 234, 170, 0.28),
    inset 0 0 24px rgba(255, 177, 51, 0.18),
    0 0 22px rgba(255, 151, 26, 0.3),
    0 0 40px rgba(255, 209, 90, 0.14);
}
.chat-user-modal__achievement--club-admin .chat-user-modal__achievement-title {
  color: #fff0c7;
}
.chat-user-modal__achievement--club-admin .chat-user-modal__achievement-icon {
  width: min(118%, 124px);
}

.chat-user-modal__achievement:is(
  .chat-user-modal__achievement--millionaire,
  .chat-user-modal__achievement--month-champion,
  .chat-user-modal__achievement--month-vice-champion,
  .chat-user-modal__achievement--legend
) {
  align-self: start;
  box-sizing: border-box;
  width: 100%;
  height: clamp(180px, 42vw, 215px);
  min-height: 0;
}

.chat-user-modal__achievement:is(
  .chat-user-modal__achievement--millionaire,
  .chat-user-modal__achievement--month-champion,
  .chat-user-modal__achievement--month-vice-champion,
  .chat-user-modal__achievement--legend
) .chat-user-modal__achievement-icon {
  max-height: 112px;
}
.chat-user-modal__achievement:is(
  .chat-user-modal__achievement--offline-win,
  .chat-user-modal__achievement--top-win-2026
) {
  isolation: isolate;
  grid-template-rows: auto 1fr auto;
  align-items: stretch;
  padding: 10px 8px 8px;
  border-color: transparent;
  background: #070604;
}
.chat-user-modal__achievement:is(
  .chat-user-modal__achievement--offline-win,
  .chat-user-modal__achievement--top-win-2026
):not(.chat-user-modal__achievement--locked) {
  border-color: transparent;
  background: #070604;
  box-shadow:
    0 0 18px rgba(255, 145, 25, 0.3),
    0 0 34px rgba(255, 194, 72, 0.14);
}
.chat-user-modal__achievement--offline-win,
.chat-user-modal__achievement--offline-win:not(.chat-user-modal__achievement--locked),
.chat-user-modal__achievement--top-win-2026,
.chat-user-modal__achievement--top-win-2026:not(.chat-user-modal__achievement--locked) {
  box-sizing: border-box;
  border: 1px solid rgba(255, 184, 62, 0.86);
  border-radius: 6px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 226, 142, 0.24),
    inset 0 0 22px rgba(255, 169, 34, 0.12),
    0 0 18px rgba(255, 145, 25, 0.3),
    0 0 34px rgba(255, 194, 72, 0.14);
}
.chat-user-modal__achievement:is(
  .chat-user-modal__achievement--offline-win,
  .chat-user-modal__achievement--top-win-2026
) .chat-user-modal__achievement-icon {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
}
.chat-user-modal__achievement:is(
  .chat-user-modal__achievement--offline-win,
  .chat-user-modal__achievement--top-win-2026
) .chat-user-modal__achievement-icon img,
.chat-user-modal__achievement:is(
  .chat-user-modal__achievement--offline-win,
  .chat-user-modal__achievement--top-win-2026
):not(.chat-user-modal__achievement--locked) .chat-user-modal__achievement-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
}
.chat-user-modal__achievement--offline-win .chat-user-modal__achievement-icon img {
  transform: scale(1.12);
}
.chat-user-modal__achievement:is(
  .chat-user-modal__achievement--offline-win,
  .chat-user-modal__achievement--top-win-2026
) .chat-user-modal__achievement-title {
  position: relative;
  z-index: 1;
  min-height: 34px;
  color: #fff0c5;
  text-shadow:
    0 2px 2px rgba(0, 0, 0, 0.96),
    0 0 8px rgba(0, 0, 0, 0.9),
    0 0 10px rgba(255, 174, 47, 0.28);
}
.chat-user-modal__achievement--top-win-2026 .chat-user-modal__achievement-title {
  display: none;
}
.chat-user-modal__achievement:is(
  .chat-user-modal__achievement--offline-win,
  .chat-user-modal__achievement--top-win-2026
) .chat-user-modal__achievement-main {
  position: relative;
  z-index: 1;
  grid-row: 2;
  align-self: end;
  margin-bottom: 2px;
  padding: 4px 2px;
  border-radius: 4px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.76) 38%);
}
.chat-user-modal__achievement:is(
  .chat-user-modal__achievement--offline-win,
  .chat-user-modal__achievement--top-win-2026
) .chat-user-modal__achievement-detail {
  color: rgba(255, 226, 173, 0.9);
  text-shadow: 0 1px 3px #000, 0 0 7px #000;
}
.chat-user-modal__achievement:is(
  .chat-user-modal__achievement--offline-win,
  .chat-user-modal__achievement--top-win-2026
) .chat-user-modal__achievement-stars {
  position: relative;
  z-index: 1;
  grid-row: 3;
  align-self: end;
  text-shadow:
    0 1px 3px #000,
    0 0 8px rgba(255, 232, 164, 0.8),
    0 0 16px rgba(240, 128, 26, 0.82);
}
.chat-user-modal__achievement--season-cup {
  grid-template-rows: auto minmax(88px, 1fr) auto;
}
.chat-user-modal__achievement--season-cup .chat-user-modal__achievement-icon {
  width: min(122%, 126px);
  height: 112px;
}
.chat-user-modal__achievement--season-cup:not(.chat-user-modal__achievement--locked) .chat-user-modal__achievement-title {
  color: #ffe7ad;
}
.chat-user-modal__achievement--cup-spring:not(.chat-user-modal__achievement--locked) {
  border-color: rgba(130, 218, 91, 0.82);
  box-shadow:
    inset 0 0 0 1px rgba(244, 221, 137, 0.22),
    inset 0 0 24px rgba(65, 171, 88, 0.15),
    0 0 18px rgba(66, 194, 94, 0.24),
    0 0 34px rgba(236, 181, 65, 0.12);
}
.chat-user-modal__achievement--cup-winter:not(.chat-user-modal__achievement--locked) {
  border-color: rgba(118, 196, 255, 0.82);
  box-shadow:
    inset 0 0 0 1px rgba(213, 238, 255, 0.2),
    inset 0 0 24px rgba(84, 162, 255, 0.16),
    0 0 18px rgba(67, 161, 255, 0.26),
    0 0 34px rgba(190, 226, 255, 0.1);
}
.chat-user-modal__achievement--season-cup-current {
  cursor: pointer;
}
.chat-user-modal__achievement--season-cup-current:hover,
.chat-user-modal__achievement--season-cup-current:focus-visible {
  border-color: rgba(255, 188, 84, 0.78);
  outline: none;
  box-shadow:
    inset 0 0 0 1px rgba(255, 222, 147, 0.16),
    0 0 18px rgba(255, 140, 28, 0.22);
}
.chat-user-modal__achievement--season-cup.chat-user-modal__achievement--locked .chat-user-modal__achievement-icon img {
  filter:
    grayscale(0.8)
    brightness(0.42)
    contrast(1.08)
    drop-shadow(0 8px 10px rgba(0, 0, 0, 0.58));
}
.chat-user-modal__achievement--sng-champion:not(.chat-user-modal__achievement--locked) {
  border-color: rgba(255, 199, 78, 0.86);
  background:
    radial-gradient(circle at 50% 25%, rgba(22, 124, 255, 0.2), transparent 39%),
    radial-gradient(circle at 50% 74%, rgba(255, 176, 42, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(20, 14, 5, 0.94), rgba(4, 7, 14, 0.96));
  box-shadow:
    inset 0 0 0 1px rgba(255, 234, 158, 0.22),
    inset 0 0 26px rgba(33, 120, 255, 0.16),
    0 0 20px rgba(255, 181, 42, 0.28),
    0 0 34px rgba(34, 131, 255, 0.16);
}
.chat-user-modal__achievement--sng-champion .chat-user-modal__achievement-title {
  color: #ffe7ad;
}
.chat-user-modal__achievement--sng-champion .chat-user-modal__achievement-icon {
  width: 112px;
  height: 112px;
  overflow: hidden;
  border: 1px solid rgba(255, 218, 116, 0.34);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 45%, rgba(34, 131, 255, 0.34), transparent 62%),
    rgba(3, 5, 10, 0.86);
  box-shadow:
    inset 0 0 0 1px rgba(255, 241, 199, 0.08),
    0 0 18px rgba(255, 181, 42, 0.2);
}
.chat-user-modal__achievement--sng-champion .chat-user-modal__achievement-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  transform: scale(1.68);
}
.chat-user-modal__achievement--season-cup-current .chat-user-modal__achievement-detail {
  color: rgba(255, 218, 146, 0.82);
}
.chat-user-modal__achievement-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.chat-user-modal__achievement-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  margin-top: -2px;
  padding: 3px 10px;
  color: #2b1500;
  border: 1px solid rgba(255, 231, 151, 0.94);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe18a, #f5a72f);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    0 0 12px rgba(255, 168, 42, 0.48);
  font-size: 9px;
  font-weight: 1000;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.chat-user-modal__achievement-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
  color: var(--text);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.05;
}
.chat-user-modal__achievement-count {
  display: none;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin-left: 5px;
  padding: 0 5px;
  color: #271600;
  border-radius: 999px;
  background: #ffd36c;
  font-size: 12px;
  font-weight: 1000;
}
.chat-user-modal__achievement-details {
  display: grid;
  gap: 1px;
  min-width: 0;
}
.chat-user-modal__achievement-detail {
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 227, 171, 0.72);
  font-size: 9px;
  font-weight: 850;
  line-height: 1.1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-user-modal__achievement-detail--story {
  display: -webkit-box;
  max-width: 100%;
  margin-top: 2px;
  font-size: 7.8px;
  line-height: 1.14;
  white-space: normal;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.chat-user-modal__achievement-stars {
  color: #f1a43a;
  font-size: 18px;
  line-height: 1;
  letter-spacing: 3px;
  text-shadow:
    0 0 5px rgba(255, 232, 164, 0.72),
    0 0 14px rgba(240, 128, 26, 0.78),
    0 0 26px rgba(255, 181, 49, 0.32);
}
.chat-user-modal__achievement--locked {
  opacity: 0.62;
}
.achievement-earned-toast {
  position: fixed;
  left: 50%;
  bottom: max(20px, calc(env(safe-area-inset-bottom) + 14px));
  z-index: 12150;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto 28px;
  align-items: center;
  gap: 10px;
  width: min(520px, calc(100vw - 24px));
  padding: 10px 10px 10px 12px;
  color: #fff2c7;
  border: 1px solid rgba(255, 190, 67, 0.9);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(37, 24, 8, 0.98), rgba(5, 8, 14, 0.99));
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.58), 0 0 22px rgba(255, 153, 31, 0.28);
  opacity: 0;
  transform: translate(-50%, 18px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.achievement-earned-toast--visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.achievement-earned-toast__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffdc77, #d66c0b 72%);
  font-size: 23px;
  box-shadow: 0 0 16px rgba(255, 170, 38, 0.42);
}
.achievement-earned-toast__copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.achievement-earned-toast__copy strong {
  overflow: hidden;
  font-size: 13px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.achievement-earned-toast__copy small {
  color: rgba(255, 231, 181, 0.74);
  font-size: 10px;
  line-height: 1.2;
}
.achievement-earned-toast__action {
  padding: 7px 10px;
  color: #2b1600 !important;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe18a, #f5a72f);
  font-size: 10px;
  font-weight: 1000;
  -webkit-text-fill-color: #2b1600 !important;
  text-shadow: none;
  text-decoration: none;
  white-space: nowrap;
}
.achievement-earned-toast__close {
  width: 28px;
  height: 28px;
  padding: 0;
  color: rgba(255, 238, 202, 0.76);
  border: 0;
  background: transparent;
  font-size: 21px;
  cursor: pointer;
}
@media (max-width: 520px) {
  .achievement-earned-toast {
    grid-template-columns: 38px minmax(0, 1fr) 26px;
  }
  .achievement-earned-toast__icon {
    width: 38px;
    height: 38px;
  }
  .achievement-earned-toast__action {
    grid-column: 2;
    justify-self: start;
  }
  .achievement-earned-toast__close {
    grid-column: 3;
    grid-row: 1;
  }
}
.chat-achievement-info-modal {
  position: fixed;
  inset: 0;
  z-index: 12080;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  box-sizing: border-box;
}
.chat-achievement-info-modal--open {
  display: flex;
}
.chat-achievement-info-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}
.chat-achievement-info-modal__panel {
  position: relative;
  z-index: 1;
  width: min(420px, calc(100vw - 28px));
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 22px 20px 20px;
  border: 1px solid rgba(255, 154, 41, 0.58);
  border-radius: 8px;
  color: #fff0c8;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 148, 33, 0.2), transparent 34%),
    radial-gradient(circle at 100% 12%, rgba(255, 205, 91, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(10, 13, 20, 0.98), rgba(2, 5, 10, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(255, 229, 173, 0.08),
    0 22px 50px rgba(0, 0, 0, 0.5),
    0 0 28px rgba(255, 118, 0, 0.2);
}
.chat-achievement-info-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 183, 80, 0.42);
  border-radius: 50%;
  color: #ffe9bd;
  background: rgba(9, 12, 18, 0.94);
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}
.chat-achievement-info-modal__eyebrow {
  margin: 0 52px 6px 0;
  color: rgba(255, 231, 184, 0.66);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}
.chat-achievement-info-modal__title {
  margin: 0 52px 10px 0;
  color: #ffe2a7;
  font-size: 28px;
  font-weight: 1000;
  line-height: 1;
  text-transform: uppercase;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.84),
    0 0 14px rgba(255, 126, 24, 0.42);
}
.chat-achievement-info-modal__state {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 0 0 14px;
  padding: 0 12px;
  border: 1px solid rgba(52, 211, 153, 0.38);
  border-radius: 999px;
  color: #d7ffdf;
  background: rgba(20, 83, 45, 0.42);
  font-size: 13px;
  font-weight: 950;
}
.chat-achievement-info-modal__state--locked {
  border-color: rgba(255, 183, 80, 0.36);
  color: rgba(255, 231, 184, 0.78);
  background: rgba(90, 55, 18, 0.38);
}
.chat-achievement-info-modal__body {
  display: grid;
  gap: 12px;
}
.chat-achievement-info-modal__section {
  padding: 13px 14px;
  border: 1px solid rgba(255, 154, 41, 0.22);
  border-radius: 8px;
  background: rgba(6, 10, 18, 0.58);
}
.chat-achievement-info-modal__section[hidden] {
  display: none;
}
.chat-achievement-info-modal__section h4 {
  margin: 0 0 7px;
  color: #ffc263;
  font-size: 14px;
  font-weight: 1000;
  text-transform: uppercase;
}
.chat-achievement-info-modal__section p,
.chat-achievement-info-modal__section ul {
  margin: 0;
  color: rgba(255, 239, 210, 0.86);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.35;
}
.chat-achievement-info-modal__section ul {
  display: grid;
  gap: 5px;
  padding-left: 18px;
}
.chat-achievement-info-modal__action {
  width: 100%;
  min-height: 42px;
  margin-top: 14px;
  border: 1px solid rgba(255, 216, 144, 0.62);
  border-radius: 999px;
  color: #2b1700;
  background: linear-gradient(180deg, #ffe5a5, #f6a51e 52%, #f07706);
  box-shadow: 0 0 20px rgba(255, 130, 20, 0.28);
  font-size: 15px;
  font-weight: 1000;
  cursor: pointer;
}
@keyframes chat-user-achievement-loading-spin {
  to {
    transform: rotate(360deg);
  }
}
.chat-user-modal__rating-art {
  position: relative;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: none;
}
.chat-user-modal__hero--art .chat-user-modal__rating-art {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 204px;
  padding: 8px 0 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(2, 5, 10, 0.04) 70%, rgba(3, 5, 10, 0.9) 100%),
    url("./assets/chat-profile-hero-bg-21.webp") 46% 54% / cover no-repeat,
    linear-gradient(115deg, rgba(6, 10, 18, 0.96), rgba(13, 18, 30, 0.96));
}
.chat-user-modal__rating-art[hidden] {
  display: none !important;
}
.chat-user-modal__rating-art-img[hidden] {
  display: none !important;
}
.chat-user-modal__hero--art .chat-user-modal__rating-art-img {
  display: block;
  width: min(106%, 238px);
  height: calc(100% - 2px);
  max-height: 212px;
  margin: 0 auto;
  object-fit: contain;
  object-position: center bottom;
  transform: translateY(-44px);
}
.chat-user-modal__hero--art .chat-user-modal__rating-art-img[src*="monkey"],
.chat-user-modal__hero--art .chat-user-modal__rating-art-img[src*="pokermanki"] {
  width: min(112%, 300px);
  max-height: 100%;
  transform: translateY(-24px) scale(1);
  transform-origin: center bottom;
}
.chat-user-modal__hero--art .chat-user-modal__rating-art-img[src*="summer-rating-player-"],
.chat-user-modal__hero--art .chat-user-modal__rating-art-img[src*="summer-rating-league2-player-"] {
  transform: translateY(-52px) scale(0.94);
  transform-origin: center bottom;
}
.chat-user-modal__hero--art .chat-user-modal__rating-art-img--default-hero {
  width: min(106%, 238px);
  max-height: 212px;
  transform: translateY(-48px) scale(1);
  transform-origin: center bottom;
}
.chat-user-modal__hero--art .chat-user-modal__rating-art-img--avatar-fallback {
  width: clamp(92px, 28vw, 132px);
  height: clamp(92px, 28vw, 132px);
  max-height: none;
  margin: auto;
  border: 2px solid rgba(255, 214, 127, 0.72);
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  box-shadow:
    0 0 0 5px rgba(2, 5, 10, 0.5),
    0 0 34px rgba(255, 166, 36, 0.46);
  transform: none;
}
.chat-user-modal__rating-art-img {
  display: block;
  width: min(88%, 334px);
  height: 100%;
  max-height: 310px;
  margin: 0 auto;
  object-fit: contain;
  object-position: center bottom;
  filter:
    drop-shadow(0 12px 16px rgba(0, 0, 0, 0.45))
    drop-shadow(0 0 14px rgba(245, 158, 11, 0.22));
}
.chat-user-modal__rating-tabs {
  margin: 12px 0 16px;
}
.chat-user-modal__rating-tabs[hidden] {
  display: none !important;
}
.chat-user-modal__rating-tab {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 66px;
  padding: 10px 16px 10px 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 190, 63, 0.72);
  border-radius: 15px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 235, 158, 0.34), transparent 38%),
    linear-gradient(115deg, rgba(143, 71, 4, 0.96), rgba(221, 127, 9, 0.88) 52%, rgba(92, 41, 3, 0.96));
  color: #fff8df;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.15;
  cursor: pointer;
  box-shadow:
    0 8px 22px rgba(175, 85, 3, 0.24),
    inset 0 1px 0 rgba(255, 248, 214, 0.3),
    inset 0 -1px 0 rgba(70, 28, 0, 0.5);
}
#chatUserModal .chat-user-modal__rating-tab {
  background:
    radial-gradient(circle at 8% 20%, rgba(255, 224, 132, 0.38), transparent 34%),
    radial-gradient(circle at 92% 50%, rgba(255, 157, 31, 0.2), transparent 40%),
    linear-gradient(112deg, rgba(72, 39, 12, 0.98), rgba(34, 23, 15, 0.98) 48%, rgba(16, 20, 29, 0.99)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 244, 207, 0.22),
    inset 5px 0 0 rgba(255, 188, 67, 0.5),
    0 8px 24px rgba(157, 82, 8, 0.25),
    0 0 22px rgba(255, 165, 36, 0.12);
}
.chat-user-modal__rating-tab-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff0a8;
  background:
    radial-gradient(circle at 32% 25%, rgba(255, 255, 255, 0.34), transparent 38%),
    rgba(61, 26, 0, 0.38);
  border: 1px solid rgba(255, 226, 128, 0.5);
  border-radius: 13px;
  box-shadow: 0 5px 14px rgba(54, 20, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
.chat-user-modal__rating-tab-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chat-user-modal__rating-tab-copy {
  display: grid;
  min-width: 0;
  justify-items: start;
  gap: 5px;
  text-align: left;
}
.chat-user-modal__rating-tab-sum,
.chat-user-modal__rating-tab-main,
.chat-user-modal__rating-tab-more {
  display: block;
}
.chat-user-modal__rating-tab-sum {
  display: inline;
  color: #fff0a3;
  font: inherit;
  font-weight: 1000;
  white-space: nowrap;
}
.chat-user-modal__rating-tab-sum[hidden] {
  display: none !important;
}
.chat-user-modal__rating-tab-main {
  font-size: 14px;
  font-weight: 950;
  text-shadow: 0 1px 1px rgba(73, 28, 0, 0.55);
}
.chat-user-modal__rating-tab-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgba(255, 235, 177, 0.9);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.chat-user-modal__rating-tab:hover:not(:disabled) {
  border-color: rgba(255, 220, 123, 0.9);
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.chat-user-modal__rating-tab:disabled {
  cursor: default;
  opacity: 0.55;
}
.chat-user-modal__rating-ranks {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 14px 0 10px;
  padding-top: 30px;
  position: relative;
}
.chat-user-modal__rating-ranks::before {
  content: "ИСТОРИЯ СЕЗОНОВ";
  position: absolute;
  left: 50%;
  top: 0;
  padding: 0 18px;
  transform: translateX(-50%);
  color: #f0a23a;
  font-size: 15px;
  font-weight: 1000;
  line-height: 1;
  text-transform: uppercase;
  text-shadow:
    0 0 8px rgba(255, 221, 142, 0.44),
    0 0 18px rgba(240, 128, 26, 0.62);
  white-space: nowrap;
  z-index: 2;
}
.chat-user-modal__rating-ranks::after {
  content: "";
  position: absolute;
  left: 5%;
  right: 5%;
  top: 7px;
  height: 1px;
  background:
    linear-gradient(90deg, transparent, rgba(240, 128, 26, 0.58), transparent 30%, transparent 70%, rgba(240, 128, 26, 0.58), transparent);
  filter: drop-shadow(0 0 6px rgba(240, 128, 26, 0.46));
  pointer-events: none;
}
.chat-user-modal__rating-ranks[hidden] {
  display: none !important;
}
.chat-user-modal__rating-rank-row {
  --season-rank-accent: #f0a23a;
  --season-rank-icon: none;
  display: grid;
  grid-template-columns: minmax(150px, 0.95fr) minmax(230px, 1.05fr);
  align-items: center;
  gap: 16px;
  width: 100%;
  height: clamp(112px, 25vw, 170px);
  min-height: 0;
  aspect-ratio: auto;
  min-width: 0;
  padding: 22px 42px 22px 37%;
  border: 0;
  border-radius: 0;
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  box-shadow: none;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}
.chat-user-modal__rating-rank-row + .chat-user-modal__rating-rank-row {
  margin-top: -22px;
}
.chat-user-modal__rating-rank-row::before {
  content: "";
  position: absolute;
  left: 3.8%;
  top: 50%;
  width: 20%;
  height: 90%;
  background: center / contain no-repeat var(--season-rank-icon);
  filter: drop-shadow(0 0 12px color-mix(in srgb, var(--season-rank-accent) 52%, transparent));
  pointer-events: none;
  transform: translateY(-50%);
  z-index: 1;
}
.chat-user-modal__rating-rank-row:nth-child(1) {
  --season-rank-accent: #f59e0b;
  --season-rank-icon: url("./assets/chat-profile-season-icon-summer.webp");
  background-image: url("./assets/chat-profile-season-history-summer-full.webp");
}
.chat-user-modal__rating-rank-row:nth-child(2) {
  --season-rank-accent: #84cc16;
  --season-rank-icon: url("./assets/chat-profile-season-icon-spring.webp");
  background-image: url("./assets/chat-profile-season-history-spring-full.webp");
}
.chat-user-modal__rating-rank-row:nth-child(3) {
  --season-rank-accent: #38bdf8;
  --season-rank-icon: url("./assets/chat-profile-season-icon-winter.webp");
  background-image: url("./assets/chat-profile-season-history-winter-full.webp");
}
.chat-user-modal__rating-rank-label {
  min-width: 0;
  color: var(--season-rank-accent);
  font-size: 34px;
  font-weight: 1000;
  line-height: 0.92;
  text-align: left;
  text-transform: uppercase;
  text-shadow:
    0 2px 3px rgba(0, 0, 0, 0.9),
    0 0 14px color-mix(in srgb, var(--season-rank-accent) 58%, transparent);
  position: relative;
  z-index: 1;
}
.chat-user-modal__rating-rank-value {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 18px;
  justify-items: stretch;
  color: rgba(255, 246, 224, 0.94);
  font-size: 15px;
  font-weight: 1000;
  line-height: 1.05;
  text-align: center;
  white-space: normal;
  text-transform: uppercase;
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.9);
  position: relative;
  z-index: 1;
}
.chat-user-modal__rating-rank-line {
  display: grid;
  gap: 2px;
  max-width: none;
  min-width: 0;
  overflow: visible;
  white-space: normal;
}
.chat-user-modal__rating-rank-league {
  display: block;
  color: #f6ead7;
  font-size: 14px;
  line-height: 1;
  text-shadow:
    0 2px 2px rgba(0, 0, 0, 0.86),
    0 0 8px rgba(255, 240, 211, 0.22);
}
.chat-user-modal__rating-rank-place {
  display: block;
  color: var(--season-rank-accent);
  font-size: 58px;
  line-height: 0.86;
  text-shadow:
    0 2px 3px rgba(0, 0, 0, 0.92),
    0 0 16px color-mix(in srgb, var(--season-rank-accent) 62%, transparent);
}
.chat-user-modal__rating-rank-place-label {
  display: block;
  color: #f8ead0;
  font-size: 12px;
  font-weight: 1000;
  line-height: 1;
  text-transform: uppercase;
}
.chat-user-modal__rating-rank-value > .chat-user-modal__rating-rank-line + .chat-user-modal__rating-rank-line {
  margin-top: 0;
}
.chat-user-modal__section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}
.chat-user-modal__section-title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.chat-user-modal__placeholder {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}
.chat-user-modal__player-stats-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.chat-user-modal__player-stat {
  display: grid;
  gap: 3px;
  padding: 8px 9px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 10px;
  background: rgba(148, 163, 184, 0.11);
}
.chat-user-modal__player-stat-label {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.chat-user-modal__player-stat-value {
  color: var(--text);
  font-size: 14px;
  font-weight: 850;
}
.chat-user-modal__player-stats-private {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.4;
}
.chat-user-modal__personal-block {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}
.chat-user-modal__personal-block--hidden {
  display: none;
}
.chat-user-modal__personal-block .chat-user-modal__personal {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text);
}
.chat-user-modal__birth-admin {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}
.chat-user-modal__birth-admin[hidden] {
  display: none;
}
.chat-user-modal__birth-admin-label,
.chat-user-modal__birth-admin-msg {
  grid-column: 1 / -1;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.chat-user-modal__birth-admin-input {
  min-width: 0;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 750;
}
.chat-user-modal__birth-admin-save {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(239, 184, 86, 0.55);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(239, 184, 86, 0.22), rgba(239, 184, 86, 0.08));
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}
.chat-user-modal__birth-admin-save:disabled {
  cursor: wait;
  opacity: 0.65;
}
.chat-user-modal__friends-row {
  margin-top: 16px;
}
.chat-user-modal__friends-btn {
  width: 100%;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  cursor: pointer;
  box-sizing: border-box;
}
.chat-user-modal__friends-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}
.chat-user-modal__actions {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.28);
}
.chat-user-modal__actions .chat-user-modal__respect-actions {
  margin-bottom: 8px;
}
.chat-user-modal__actions .chat-user-modal__friend-row {
  margin-top: 0;
}
.chat-user-modal__actions .chat-user-modal__write-btn {
  margin-top: 10px;
}
.chat-user-modal__superpower-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(255, 184, 49, 0.72);
  border-radius: 12px;
  background:
    radial-gradient(circle at 22% 0%, rgba(255, 225, 121, 0.34), transparent 48%),
    linear-gradient(135deg, #7d3f00, #d97800 55%, #4d2500);
  box-shadow: 0 0 18px rgba(255, 144, 0, 0.25), inset 0 1px rgba(255, 255, 255, 0.22);
  color: #fff2bd;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}
.chat-user-modal__superpower-btn[hidden] {
  display: none;
}
.chat-user-modal__title-block > .chat-user-modal__superpower-btn {
  width: fit-content;
  min-height: 36px;
  margin-top: 5px;
  padding: 0 14px;
  font-size: 13px;
}
.profile-superpower-modal {
  position: fixed;
  inset: 0;
  z-index: 10080;
  display: none;
  align-items: center;
  justify-content: center;
  padding: max(18px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom));
}
.profile-superpower-modal--open {
  display: flex;
}
.profile-superpower-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 10, 0.86);
  backdrop-filter: blur(8px);
}
.profile-superpower-modal__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 38%) minmax(0, 1fr);
  width: min(760px, 100%);
  max-height: min(820px, calc(100dvh - 36px));
  overflow: auto;
  border: 1px solid rgba(243, 165, 44, 0.52);
  border-radius: 24px;
  background:
    radial-gradient(circle at 12% 12%, rgba(213, 102, 7, 0.23), transparent 42%),
    linear-gradient(145deg, #15100c, #090d15 58%, #12100e);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.62), 0 0 34px rgba(255, 126, 0, 0.15);
  color: #f8edda;
}
.profile-superpower-modal__close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 208, 126, 0.34);
  border-radius: 50%;
  background: rgba(5, 8, 14, 0.82);
  color: #ffe1a4;
  font-size: 25px;
  cursor: pointer;
}
.profile-superpower-modal__art-wrap {
  display: flex;
  align-items: flex-end;
  min-height: 480px;
  overflow: hidden;
}
.profile-superpower-modal__art {
  display: block;
  width: 128%;
  max-width: none;
  margin-left: -19%;
  object-fit: contain;
  object-position: center bottom;
}
.profile-superpower-modal__content {
  padding: 54px 34px 32px 10px;
}
.profile-superpower-modal__eyebrow {
  color: #ffb32d;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.profile-superpower-modal__title {
  margin: 8px 0 10px;
  color: #ffe6ae;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1;
}
.profile-superpower-modal__lead {
  margin: 0;
  color: #e6d8c2;
  font-size: 15px;
  line-height: 1.5;
}
.profile-superpower-modal__content h4 {
  margin: 24px 0 10px;
  color: #ffca64;
  font-size: 16px;
}
.profile-superpower-modal__moves {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 20px;
}
.profile-superpower-modal__moves li {
  padding-left: 5px;
  color: #d7c8b1;
  line-height: 1.4;
}
.profile-superpower-modal__moves strong,
.profile-superpower-modal__moves span {
  display: inline;
}
.profile-superpower-modal__moves strong {
  color: #fff0cb;
}
.profile-superpower-modal__moves strong::after {
  content: " — ";
}
.profile-superpower-modal__ultimate {
  margin-top: 22px;
  padding: 16px;
  border: 1px solid rgba(255, 151, 30, 0.46);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(130, 46, 0, 0.58), rgba(28, 14, 8, 0.78));
}
.profile-superpower-modal__ultimate span,
.profile-superpower-modal__ultimate strong {
  display: block;
}
.profile-superpower-modal__ultimate span {
  color: #ff9c25;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.profile-superpower-modal__ultimate strong {
  margin-top: 4px;
  color: #ffe8af;
  font-size: 21px;
}
.profile-superpower-modal__ultimate p {
  margin: 9px 0 0;
  color: #e9dac2;
  font-size: 14px;
  line-height: 1.45;
}
@media (max-width: 620px) {
  .profile-superpower-modal {
    align-items: flex-end;
    padding: 10px 8px max(8px, env(safe-area-inset-bottom));
  }
  .profile-superpower-modal__inner {
    grid-template-columns: 1fr;
    max-height: calc(100dvh - 18px);
    border-radius: 22px 22px 14px 14px;
  }
  .profile-superpower-modal__art-wrap {
    min-height: 230px;
    max-height: 36vh;
  }
  .profile-superpower-modal__art {
    width: 78%;
    margin: 18px auto -35%;
  }
  .profile-superpower-modal__content {
    position: relative;
    padding: 22px 18px 24px;
    background: linear-gradient(180deg, rgba(9, 13, 21, 0.9), #090d15 18%);
  }
  .profile-superpower-modal__title {
    font-size: 30px;
  }
}
.chat-user-modal__close {
  position: absolute;
  z-index: 20;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(214, 171, 83, 0.24);
  border-radius: 50%;
  background: rgba(11, 15, 24, 0.72);
  color: #f1d9aa;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.chat-user-modal__close:hover {
  background: rgba(255, 255, 255, 0.2);
}
.chat-user-modal__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 0;
}
.chat-user-modal__avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.chat-user-modal__avatar-wrap .chat-user-modal__avatar {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  object-fit: cover;
}
.chat-user-modal__avatar-wrap .chat-user-modal__avatar--rating-art {
  object-position: center 24%;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 191, 66, 0.2), transparent 58%),
    #111722;
}
.chat-user-modal__avatar-wrap .chat-user-modal__avatar--placeholder {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
  background: rgba(148, 163, 184, 0.25);
}
.chat-user-modal__title-block {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
}
.chat-user-modal__title-row {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  min-width: 0;
}
.chat-user-modal__title {
  flex: 1 1 auto;
  max-width: 100%;
  margin: 0;
  font-size: 24px;
  font-weight: 950;
  color: var(--text);
  line-height: 1.25;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .chat-user-modal__inner {
    border-radius: 0;
    padding: 18px 8px 16px;
  }

  .chat-user-modal__top {
    grid-template-columns: minmax(0, 1fr) minmax(104px, 118px);
    gap: 8px;
    justify-content: stretch;
    padding-right: 42px;
  }

  .chat-user-modal__top-actions {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .chat-user-modal__top-actions .chat-user-modal__friend-row {
    min-width: 0;
  }

  .chat-user-modal__top-actions .chat-user-modal__write-btn,
  .chat-user-modal__top-actions .chat-user-modal__friend-btn {
    min-height: 35px;
    height: 35px;
    padding: 8px 8px;
    font-size: 10.5px;
  }
  .chat-user-modal__write-row {
    grid-template-columns: minmax(0, 1fr) 35px;
    gap: 5px;
  }
  .chat-user-modal__copy-profile-btn {
    min-width: 35px;
    min-height: 35px;
    border-radius: 10px;
  }
  .chat-user-modal__copy-profile-btn svg {
    width: 17px;
    height: 17px;
  }

  .chat-user-modal__top-actions .chat-user-modal__friend-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 74px;
    height: auto;
    padding: 11px 16px;
    font-size: 16px;
    font-weight: 950;
    line-height: 1.08;
    text-align: center;
    white-space: normal;
  }

  .chat-user-modal__header {
    gap: 8px;
  }

  .chat-user-modal__avatar-wrap .chat-user-modal__avatar,
  .chat-user-modal__avatar-wrap .chat-user-modal__avatar--placeholder {
    width: 44px;
    height: 44px;
  }

  .chat-user-modal__title {
    font-size: 18px;
    line-height: 1.15;
  }

  .chat-user-modal__verified {
    width: 16px;
    height: 16px;
    font-size: 10px;
  }

  .chat-user-modal__last-seen,
  .chat-user-modal__login-sub {
    font-size: 11px;
  }

  .chat-user-modal__hero {
    grid-template-columns: minmax(0, 1.18fr) minmax(138px, 0.82fr);
    gap: 0;
  }

  .chat-user-modal__hero--art {
    min-height: 172px;
  }

  .chat-user-modal__rating-art {
    min-height: 100%;
  }

  .chat-user-modal__hero--art .chat-user-modal__rating-art {
    min-height: 172px;
    padding-top: 6px;
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(2, 5, 10, 0.04) 68%, rgba(3, 5, 10, 0.88) 100%),
      url("./assets/chat-profile-hero-bg-21.webp") 46% 54% / cover no-repeat,
      linear-gradient(115deg, rgba(6, 10, 18, 0.96), rgba(13, 18, 30, 0.96));
  }

  .chat-user-modal__rating-art-img {
    width: min(88%, 245px);
    height: 100%;
    max-height: 214px;
  }

  .chat-user-modal__hero--art .chat-user-modal__rating-art-img {
    width: min(108%, 198px);
    max-height: 172px;
    transform: translateY(-36px);
  }

  .chat-user-modal__hero--art .chat-user-modal__rating-art-img[src*="monkey"],
  .chat-user-modal__hero--art .chat-user-modal__rating-art-img[src*="pokermanki"] {
    width: min(112%, 250px);
    max-height: 100%;
    transform: translateY(-18px) scale(1);
    transform-origin: center bottom;
  }

  .chat-user-modal__hero--art .chat-user-modal__rating-art-img[src*="summer-rating-player-"],
  .chat-user-modal__hero--art .chat-user-modal__rating-art-img[src*="summer-rating-league2-player-"] {
    transform: translateY(-42px) scale(0.94);
  }

  .chat-user-modal__hero--art .chat-user-modal__rating-art-img--default-hero {
    width: min(108%, 198px);
    max-height: 172px;
    transform: translateY(-42px) scale(1);
    transform-origin: center bottom;
  }

  .chat-user-modal__hero--art .chat-user-modal__rating-art-img--avatar-fallback {
    width: clamp(78px, 27vw, 108px);
    height: clamp(78px, 27vw, 108px);
    max-height: none;
    transform: none;
  }

  .chat-user-modal__hero-status {
    padding: 14px 12px 12px 0;
  }

  .chat-user-modal__achievements {
    padding-top: 24px;
  }

  .chat-user-modal__achievements-title,
  .chat-user-modal__rating-ranks::before {
    font-size: 13px;
  }

  .chat-user-modal__achievements-title::before,
  .chat-user-modal__achievements-title::after {
    width: 38px;
  }

  .chat-user-modal__achievements-list {
    gap: 10px;
  }

  .chat-user-modal__achievement-group {
    gap: 5px;
  }

  .chat-user-modal__achievement-group-title {
    padding: 0 24px;
    font-size: 12px;
  }

  .chat-user-modal__achievement-group-title::before,
  .chat-user-modal__achievement-group-title::after {
    width: 18px;
  }

  .chat-user-modal__achievement-group-list {
    gap: 3px;
  }

  .chat-user-modal__achievement {
    min-height: 126px;
    padding: 7px 4px 6px;
  }

  .chat-user-modal__achievement-title {
    min-height: 28px;
    font-size: 9.5px;
  }

  .chat-user-modal__achievement--top-win .chat-user-modal__achievement-title {
    min-height: 31px;
    font-size: 9px;
  }

  .chat-user-modal__achievement--lucky-month .chat-user-modal__achievement-title {
    min-height: 34px;
    font-size: 8.5px;
  }

  .chat-user-modal__achievement--season-cup {
    grid-template-rows: auto minmax(72px, 1fr) auto;
  }

  .chat-user-modal__achievement-count {
    min-width: 16px;
    height: 16px;
    margin-left: 3px;
    padding: 0 3px;
    font-size: 9px;
  }

  .chat-user-modal__achievement-icon {
    width: min(116%, 86px);
    height: 76px;
  }

  .chat-user-modal__achievement--season-cup .chat-user-modal__achievement-icon {
    width: min(122%, 92px);
    height: 82px;
  }

  .chat-user-modal__achievement-detail {
    font-size: 8px;
  }

  .chat-user-modal__achievement-stars {
    font-size: 13px;
    letter-spacing: 1px;
  }

  .chat-user-modal__rating-ranks {
    gap: 0;
    padding-top: 24px;
  }

  .chat-user-modal__rating-rank-row {
    grid-template-columns: minmax(70px, 0.86fr) minmax(128px, 1.14fr);
    gap: 7px;
    height: clamp(102px, 28vw, 142px);
    padding: 16px 12px 16px 35%;
  }

  .chat-user-modal__rating-rank-row + .chat-user-modal__rating-rank-row {
    margin-top: -16px;
  }

  .chat-user-modal__rating-rank-row::before {
    left: 4%;
    width: 22%;
    height: 92%;
  }

  .chat-user-modal__rating-rank-label {
    font-size: 23px;
  }

  .chat-user-modal__rating-rank-league {
    font-size: 10px;
  }

  .chat-user-modal__rating-rank-place {
    font-size: 36px;
  }

  .chat-user-modal__rating-rank-place-label {
    font-size: 9px;
  }
}

@media (max-width: 380px) {
  .chat-user-modal__top-actions {
    grid-template-columns: minmax(0, 1fr);
    width: auto;
    justify-self: stretch;
  }

  .chat-user-modal__top {
    grid-template-columns: minmax(0, 1fr) minmax(96px, 108px);
    gap: 7px;
    padding-right: 40px;
  }

  .chat-user-modal__avatar-wrap .chat-user-modal__avatar,
  .chat-user-modal__avatar-wrap .chat-user-modal__avatar--placeholder {
    width: 40px;
    height: 40px;
  }

  .chat-user-modal__title {
    font-size: 16px;
  }

  .chat-user-modal__top-actions .chat-user-modal__write-btn,
  .chat-user-modal__top-actions .chat-user-modal__friend-btn {
    min-height: 33px;
    height: 33px;
    padding: 7px 6px;
    font-size: 10px;
  }
  .chat-user-modal__top-actions .chat-user-modal__friend-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 74px;
    height: auto;
    padding: 11px 16px;
    font-size: 16px;
    font-weight: 950;
    line-height: 1.08;
    text-align: center;
    white-space: normal;
  }

  .chat-user-modal__rating-rank-row {
    grid-template-columns: minmax(58px, 0.82fr) minmax(112px, 1.18fr);
    height: clamp(96px, 30vw, 132px);
    padding-left: 34%;
  }

  .chat-user-modal__rating-rank-row + .chat-user-modal__rating-rank-row {
    margin-top: -14px;
  }

  .chat-user-modal__rating-rank-label {
    font-size: 20px;
  }

  .chat-user-modal__rating-rank-place {
    font-size: 31px;
  }
}
.chat-user-modal__title-fish {
  width: 24px;
  height: 24px;
}
.chat-user-modal__verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  border-radius: 999px;
  color: #ffffff;
  background: #22c55e;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.35);
}
.chat-user-modal__verified--hidden {
  display: none !important;
}
.chat-user-modal__login-sub {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.2;
}
[data-theme="light"] .chat-user-modal__login-sub {
  color: rgba(71, 85, 105, 0.92);
}
.chat-user-modal__profile-badges {
  display: flex;
  order: 3;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}
.chat-user-modal__specialty-badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  margin: 0;
  padding: 3px 8px;
  color: #ffe3aa;
  border: 1px solid rgba(251, 146, 60, 0.44);
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.12);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}
.chat-user-modal__specialty-badge--cash {
  color: #bbf7d0;
  border-color: rgba(74, 222, 128, 0.44);
  background: rgba(34, 197, 94, 0.12);
}
.chat-user-modal__specialty-badge[hidden] {
  display: none;
}
.chat-user-modal__gender {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0;
  padding: 2px 7px;
  border: 1px solid rgba(197, 139, 47, 0.46);
  border-radius: 999px;
  background: rgba(8, 13, 23, 0.66);
  color: #ffe8a3;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}
.chat-user-modal__birth-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0;
  padding: 2px 7px;
  border: 1px solid rgba(104, 181, 255, 0.4);
  border-radius: 999px;
  background: rgba(69, 132, 205, 0.12);
  color: #b9dcff;
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}
.chat-user-modal__birth-badge[hidden] {
  display: none !important;
}
[data-theme="light"] .chat-user-modal__birth-badge {
  background: rgba(219, 238, 255, 0.9);
  color: #245a91;
}

.chat-user-modal__top-actions .chat-user-modal__friend-buttons {
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
}
.chat-user-modal__top-actions .chat-user-modal__friend-btn,
.chat-user-modal__top-actions .chat-user-modal__remove-friend {
  grid-column: 1;
  min-height: 44px;
  height: auto;
  padding: 8px 7px;
  font-size: 12px;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}
.chat-user-modal__top-actions .chat-user-modal__write-btn {
  color: #effff5;
  border-color: rgba(74, 222, 128, 0.62);
  background:
    linear-gradient(180deg, rgba(34, 197, 94, 0.96), rgba(21, 128, 61, 0.98));
  box-shadow:
    0 7px 18px rgba(22, 163, 74, 0.24),
    inset 0 1px 0 rgba(220, 252, 231, 0.28);
}
.chat-user-modal__top-actions .chat-user-modal__write-btn:hover {
  background:
    linear-gradient(180deg, rgba(47, 211, 108, 0.98), rgba(22, 145, 68, 0.98));
}
.chat-user-modal__top-actions .chat-user-modal__block-btn {
  grid-column: 1;
  grid-row: 2;
  width: 100%;
  min-width: 0;
  min-height: 24px;
  height: 24px;
  margin: 0;
  padding: 3px 10px;
  border: 1px solid rgba(255, 107, 107, 0.74);
  border-radius: 7px;
  color: #fff0f0;
  background: linear-gradient(180deg, rgba(205, 45, 45, 0.96), rgba(139, 23, 23, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 218, 218, 0.18), 0 4px 10px rgba(120, 14, 14, 0.2);
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
}
.chat-user-modal__top-actions .chat-user-modal__block-btn:hover:not(:disabled),
.chat-user-modal__top-actions .chat-user-modal__block-btn--active,
.chat-user-modal__top-actions .chat-user-modal__block-btn--active:hover:not(:disabled) {
  color: #fff;
  border-color: rgba(255, 132, 132, 0.9);
  background: linear-gradient(180deg, rgba(224, 57, 57, 0.98), rgba(151, 24, 24, 0.98));
}
.chat-user-modal__gender[hidden] {
  display: none !important;
}
[data-theme="light"] .chat-user-modal__gender {
  background: rgba(255, 248, 220, 0.88);
  color: #7c4a03;
}
.chat-user-modal__last-seen {
  order: 2;
  margin: 4px 0 0;
  max-width: 100%;
  overflow: hidden;
  font-size: clamp(9px, 2.2vw, 11px);
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Keep profile identity visually level with the full action stack. */
.chat-user-modal__top {
  align-items: stretch;
}
.chat-user-modal__top-actions {
  justify-self: end;
  transform: none;
}
.chat-user-modal__top > .chat-user-modal__header {
  align-self: stretch;
  min-height: 100%;
}
.chat-user-modal__top > .chat-user-modal__header .chat-user-modal__title-block {
  align-self: stretch;
  justify-content: center;
  gap: 6px;
}
@media (max-width: 560px) {
  .chat-user-modal__top {
    padding-right: 0;
  }
  .chat-user-modal__top > .chat-user-modal__header {
    margin-top: 0;
  }
  .chat-user-modal__top > .chat-user-modal__header .chat-user-modal__avatar,
  .chat-user-modal__top > .chat-user-modal__header .chat-user-modal__avatar--placeholder {
    width: 64px;
    height: 64px;
  }
  .chat-user-modal__top > .chat-user-modal__header .chat-user-modal__title-block {
    gap: 5px;
  }
  .chat-user-modal__top > .chat-user-modal__header .chat-user-modal__profile-badges {
    margin-top: 1px;
  }
  .chat-user-modal__top > .chat-user-modal__header .chat-user-modal__last-seen {
    margin-top: 1px;
  }
}
@media (max-width: 380px) {
  .chat-user-modal__top {
    padding-right: 0;
  }
  .chat-user-modal__top > .chat-user-modal__header .chat-user-modal__avatar,
  .chat-user-modal__top > .chat-user-modal__header .chat-user-modal__avatar--placeholder {
    width: 56px;
    height: 56px;
  }
}
[data-theme="light"] .chat-user-modal__last-seen {
  color: rgba(71, 85, 105, 0.88);
}
.chat-user-modal__p21 {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--text-muted);
}
.chat-user-modal__personal-and-respect {
  margin-bottom: 16px;
}
.chat-user-modal__personal {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}
.chat-user-modal__respect-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 0;
}
.chat-user-modal__respect-hint {
  position: absolute;
  z-index: 2;
  bottom: 12px;
  left: 0;
  right: 18px;
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  pointer-events: none;
}

.winter-rating-player-modal__table-wrap {
  overflow-x: hidden;
}

.winter-rating-player-modal__table.winter-rating__table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  font-size: 13px;
}

.winter-rating-player-modal__table.winter-rating__table th,
.winter-rating-player-modal__table.winter-rating__table td {
  box-sizing: border-box;
  padding: 6px 5px;
  font-size: 13px;
  line-height: 1.24;
}

.winter-rating-player-modal__table.winter-rating__table th:first-child,
.winter-rating-player-modal__table.winter-rating__table td:first-child,
.winter-rating-player-modal__table.winter-rating__table th:nth-last-child(1),
.winter-rating-player-modal__table.winter-rating__table tbody td:nth-last-child(1),
.winter-rating-player-modal__table.winter-rating__table tfoot td:nth-last-child(1) {
  min-width: 0;
}

.winter-rating-player-modal__th-date,
.winter-rating-player-modal__td-date {
  width: clamp(78px, 17%, 104px);
}

.winter-rating-player-modal__th-place,
.winter-rating-player-modal__td-place {
  width: clamp(44px, 10%, 60px);
}

.winter-rating-player-modal__th-points,
.winter-rating-player-modal__td-points {
  width: clamp(48px, 10%, 64px);
}

.winter-rating-player-modal__th-reward,
.winter-rating-player-modal__td-reward,
.winter-rating-player-modal__table.winter-rating__table tfoot td:nth-last-child(1) {
  width: clamp(64px, 15%, 92px);
  text-align: right;
}

.winter-rating-player-modal__th-tournament,
.winter-rating-player-modal__td-tournament {
  width: auto;
  min-width: 0;
  max-width: none;
}

.chat-user-modal__achievement--sng-champion {
  display: grid;
  grid-template-rows: auto minmax(88px, 1fr) auto;
  aspect-ratio: auto;
  min-height: 220px;
  padding: 12px 10px 10px;
  border: 1px solid rgba(255, 199, 78, 0.86);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(4, 5, 8, 0.4) 0%, rgba(4, 5, 8, 0.03) 36%, rgba(4, 5, 8, 0.66) 100%),
    linear-gradient(180deg, rgba(20, 14, 5, 0.94), rgba(4, 7, 14, 0.96));
}

.chat-user-modal__achievement--sng-champion:not(.chat-user-modal__achievement--locked) {
  border-color: rgba(255, 199, 78, 0.86);
}

.chat-user-modal__achievement--sng-champion::after {
  display: block;
}

.chat-user-modal__achievement--sng-champion .chat-user-modal__achievement-title,
.chat-user-modal__achievement--sng-champion .chat-user-modal__achievement-main,
.chat-user-modal__achievement--sng-champion .chat-user-modal__achievement-stars {
  display: block;
  position: relative;
  z-index: 2;
}

.chat-user-modal__achievement--sng-champion .chat-user-modal__achievement-title {
  min-height: 48px;
  color: #ffe8ad;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.9),
    0 0 10px rgba(255, 179, 58, 0.36);
}

.chat-user-modal__achievement--sng-champion .chat-user-modal__achievement-main {
  align-self: end;
  width: 100%;
  padding: 5px 4px 0;
  border-radius: 6px;
  background: linear-gradient(180deg, transparent, rgba(3, 5, 10, 0.54));
}

.chat-user-modal__achievement--sng-champion .chat-user-modal__achievement-icon {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.chat-user-modal__achievement--sng-champion .chat-user-modal__achievement-icon img,
.chat-user-modal__achievement--sng-champion:not(.chat-user-modal__achievement--locked) .chat-user-modal__achievement-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: none;
  filter:
    brightness(0.94)
    contrast(1.06)
    saturate(1.08);
}

.chat-user-modal__achievement--sng-champion.chat-user-modal__achievement--locked .chat-user-modal__achievement-icon img {
  filter:
    grayscale(0.1)
    brightness(0.56)
    contrast(1.08)
    saturate(0.92);
}

.chat-user-modal__achievement--sng-champion:focus-visible {
  outline: 2px solid rgba(255, 211, 111, 0.9);
  outline-offset: 2px;
  box-shadow: 0 0 18px rgba(255, 177, 38, 0.24);
}

.chat-user-modal__sng-champion-banner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(110px, 31%) minmax(0, 1fr);
  width: 100%;
  min-height: 218px;
  margin: 0 0 18px;
  padding: 0 18px 54px;
  overflow: hidden;
  border: 2px solid #f2a819;
  border-radius: 22px;
  background:
    radial-gradient(circle at 18% 42%, rgba(210, 117, 30, 0.34), transparent 39%),
    linear-gradient(110deg, #3e2a17, #100b09 50%, #05080e);
  box-shadow: 0 0 22px rgba(242, 168, 25, 0.2), inset 0 0 0 1px rgba(255, 231, 172, 0.1);
  color: #ffe8b5;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.chat-user-modal__sng-champion-art {
  position: relative;
  align-self: stretch;
  min-width: 0;
}
.chat-user-modal__sng-champion-art img {
  position: absolute;
  inset: 6px -12px -2px -18px;
  width: calc(100% + 30px);
  height: calc(100% - 4px);
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.5));
}
.chat-user-modal__sng-champion-copy {
  position: relative;
  z-index: 1;
  display: flex;
  align-self: center;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 20px 0 12px 8px;
}
.chat-user-modal__sng-champion-copy small {
  margin-bottom: 12px;
  color: #d9c7a5;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
}
.chat-user-modal__sng-champion-copy em {
  padding: 5px 13px;
  border: 1px solid #ffe09b;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffd66f, #ed9306);
  color: #1b1206;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}
.chat-user-modal__sng-champion-banner--runner-up {
  border-color: #c7d2fe;
  background:
    radial-gradient(circle at 18% 42%, rgba(129, 140, 248, 0.25), transparent 39%),
    linear-gradient(110deg, #262538, #100d18 50%, #05080e);
  box-shadow: 0 0 22px rgba(165, 180, 252, 0.2), inset 0 0 0 1px rgba(224, 231, 255, 0.12);
}
.chat-user-modal__sng-champion-banner--runner-up .chat-user-modal__sng-champion-copy em {
  border-color: #eef2ff;
  background: linear-gradient(180deg, #eef2ff, #a5b4fc);
}
.chat-user-modal__sng-champion-banner--runner-up .chat-user-modal__sng-champion-copy b {
  color: #c7d2fe;
}
.chat-user-modal__sng-champion-banner--team-winner,
.chat-user-modal__sng-champion-banner--team-runner-up {
  grid-template-columns: minmax(180px, 46%) minmax(0, 1fr);
}
.chat-user-modal__sng-champion-banner--team-winner .chat-user-modal__sng-champion-art img,
.chat-user-modal__sng-champion-banner--team-runner-up .chat-user-modal__sng-champion-art img {
  inset: auto;
  bottom: 0;
  width: 64%;
  height: calc(100% - 2px);
  object-fit: contain;
  object-position: center bottom;
}
.chat-user-modal__sng-champion-banner--team-winner .chat-user-modal__sng-champion-art img:first-child,
.chat-user-modal__sng-champion-banner--team-runner-up .chat-user-modal__sng-champion-art img:first-child {
  left: -5%;
}
.chat-user-modal__sng-champion-banner--team-winner .chat-user-modal__sng-champion-art img:last-child,
.chat-user-modal__sng-champion-banner--team-runner-up .chat-user-modal__sng-champion-art img:last-child {
  right: -5%;
}
.chat-user-modal__sng-champion-banner--team-winner .chat-user-modal__sng-champion-copy,
.chat-user-modal__sng-champion-banner--team-runner-up .chat-user-modal__sng-champion-copy {
  padding-left: 0;
  overflow: hidden;
}
.chat-user-modal__sng-champion-banner--team-winner .chat-user-modal__sng-champion-copy small,
.chat-user-modal__sng-champion-banner--team-runner-up .chat-user-modal__sng-champion-copy small {
  margin-bottom: 8px;
  max-width: 100%;
  font-size: clamp(8px, 1.5vw, 10px);
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.chat-user-modal__sng-champion-banner--team-winner .chat-user-modal__sng-champion-copy strong,
.chat-user-modal__sng-champion-banner--team-runner-up .chat-user-modal__sng-champion-copy strong {
  max-width: 100%;
  font-size: clamp(17px, 3.8vw, 27px);
  line-height: 1;
  overflow: visible;
  overflow-wrap: anywhere;
  text-overflow: clip;
  text-wrap: balance;
  white-space: normal;
}
.chat-user-modal__sng-champion-banner--team-winner .chat-user-modal__sng-champion-copy b,
.chat-user-modal__sng-champion-banner--team-runner-up .chat-user-modal__sng-champion-copy b {
  max-width: 100%;
  font-size: clamp(11px, 2.7vw, 18px);
  line-height: 1.08;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.chat-user-modal__sng-champion-banner--team-winner .chat-user-modal__sng-champion-copy em,
.chat-user-modal__sng-champion-banner--team-runner-up .chat-user-modal__sng-champion-copy em {
  max-width: 100%;
  box-sizing: border-box;
  font-size: clamp(8px, 1.8vw, 11px);
  white-space: nowrap;
}
.chat-user-modal__sng-champion-banner--team-runner-up {
  border-color: #c7d2fe;
  background:
    radial-gradient(circle at 18% 42%, rgba(129, 140, 248, 0.25), transparent 39%),
    linear-gradient(110deg, #262538, #100d18 50%, #05080e);
  box-shadow: 0 0 22px rgba(165, 180, 252, 0.2), inset 0 0 0 1px rgba(224, 231, 255, 0.12);
}
.chat-user-modal__sng-champion-banner--team-runner-up .chat-user-modal__sng-champion-copy em {
  border-color: #eef2ff;
  background: linear-gradient(180deg, #eef2ff, #a5b4fc);
}
.chat-user-modal__sng-champion-banner--team-runner-up .chat-user-modal__sng-champion-copy b {
  color: #c7d2fe;
}
.chat-user-modal__sng-champion-copy strong {
  max-width: 100%;
  margin-top: 7px;
  overflow: hidden;
  color: #fff0c9;
  font-size: clamp(29px, 8vw, 48px);
  line-height: 0.95;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-user-modal__sng-champion-copy b {
  margin-top: 7px;
  color: #ffc84c;
  font-size: clamp(17px, 4vw, 26px);
  line-height: 1.05;
}
.chat-user-modal__sng-champion-watch {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  place-items: center;
  min-height: 48px;
  border-top: 1px solid rgba(242, 168, 25, 0.42);
  background: #0a0f18;
  color: #ffe8b5;
  font-size: 18px;
  font-weight: 950;
  text-align: center;
}
.chat-user-modal__sng-champion-banner:hover,
.chat-user-modal__sng-champion-banner:focus-visible {
  border-color: #ffd86e;
  box-shadow: 0 0 28px rgba(242, 168, 25, 0.34), inset 0 0 0 1px rgba(255, 231, 172, 0.16);
}
@media (max-width: 430px) {
  .chat-user-modal__sng-champion-banner {
    grid-template-columns: 34% minmax(0, 1fr);
    min-height: 190px;
    padding-right: 10px;
    padding-left: 8px;
    border-radius: 18px;
  }
  .chat-user-modal__sng-champion-copy {
    padding-left: 0;
  }
  .chat-user-modal__sng-champion-copy small {
    margin-bottom: 8px;
    font-size: 10px;
  }
  .chat-user-modal__sng-champion-copy strong {
    font-size: 30px;
  }
  .chat-user-modal__sng-champion-banner--team-winner,
  .chat-user-modal__sng-champion-banner--team-runner-up {
    grid-template-columns: 48% minmax(0, 1fr);
    padding-left: 3px;
  }
  .chat-user-modal__sng-champion-banner--team-winner .chat-user-modal__sng-champion-art img,
  .chat-user-modal__sng-champion-banner--team-runner-up .chat-user-modal__sng-champion-art img {
    width: 68%;
  }
  .chat-user-modal__sng-champion-banner--team-winner .chat-user-modal__sng-champion-copy strong,
  .chat-user-modal__sng-champion-banner--team-runner-up .chat-user-modal__sng-champion-copy strong {
    font-size: clamp(15px, 5vw, 20px);
  }
  .chat-user-modal__sng-champion-banner--team-winner .chat-user-modal__sng-champion-copy b,
  .chat-user-modal__sng-champion-banner--team-runner-up .chat-user-modal__sng-champion-copy b {
    font-size: clamp(10px, 3.3vw, 13px);
  }
}
@media (max-width: 360px) {
  .chat-user-modal__sng-champion-banner--team-winner,
  .chat-user-modal__sng-champion-banner--team-runner-up {
    grid-template-columns: 46% minmax(0, 1fr);
    padding-right: 6px;
  }
  .chat-user-modal__sng-champion-banner--team-winner .chat-user-modal__sng-champion-copy,
  .chat-user-modal__sng-champion-banner--team-runner-up .chat-user-modal__sng-champion-copy {
    gap: 3px;
  }
  .chat-user-modal__sng-champion-banner--team-winner .chat-user-modal__sng-champion-copy strong,
  .chat-user-modal__sng-champion-banner--team-runner-up .chat-user-modal__sng-champion-copy strong {
    font-size: 15px;
  }
  .chat-user-modal__sng-champion-banner--team-winner .chat-user-modal__sng-champion-copy b,
  .chat-user-modal__sng-champion-banner--team-runner-up .chat-user-modal__sng-champion-copy b {
    font-size: 10px;
  }
}

/* Player activity uses the same visual language as friend news. */
.chat-user-modal__news {
  margin: 14px 4px 28px;
  overflow: hidden;
  border: 1px solid rgba(220, 166, 67, 0.42);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(18, 25, 37, 0.98), rgba(7, 11, 18, 0.98));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}
.chat-user-modal__news[hidden],
.chat-user-modal__news-dialog[hidden] {
  display: none !important;
}
.chat-user-modal__news-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
  color: #ffd780;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.chat-user-modal__news-heading small {
  color: #8ea0b8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}
.chat-user-modal__news-list,
.chat-user-modal__news-day-list {
  display: grid;
}
.chat-user-modal__news-loading {
  display: grid;
}
.chat-user-modal__news-loading-label {
  padding: 0 18px 12px;
  color: #8ea0b8;
  font-size: 13px;
  font-weight: 850;
}
.chat-user-modal__news-skeleton {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  min-height: 76px;
  align-items: center;
  gap: 13px;
  padding: 12px 16px;
  border-top: 1px solid rgba(143, 161, 184, 0.13);
}
.chat-user-modal__news-skeleton-icon,
.chat-user-modal__news-skeleton-copy b {
  position: relative;
  display: block;
  overflow: hidden;
  background: rgba(142, 160, 184, 0.14);
}
.chat-user-modal__news-skeleton-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
}
.chat-user-modal__news-skeleton-copy {
  display: grid;
  gap: 9px;
}
.chat-user-modal__news-skeleton-copy b {
  width: 88%;
  height: 13px;
  border-radius: 999px;
}
.chat-user-modal__news-skeleton-copy b:last-child {
  width: 58%;
}
.chat-user-modal__news-skeleton-icon::after,
.chat-user-modal__news-skeleton-copy b::after {
  position: absolute;
  inset: 0;
  content: "";
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(220, 232, 248, 0.16), transparent);
  animation: chat-user-news-skeleton 1.15s ease-in-out infinite;
}
@keyframes chat-user-news-skeleton {
  to { transform: translateX(100%); }
}
@media (prefers-reduced-motion: reduce) {
  .chat-user-modal__news-skeleton-icon::after,
  .chat-user-modal__news-skeleton-copy b::after {
    animation: none;
  }
}
.chat-user-modal__news-day-list {
  overflow: hidden;
  border: 1px solid rgba(143, 161, 184, 0.16);
  border-radius: 18px;
}
.chat-user-modal__news-item {
  --player-news-accent: #ffc45d;
  --player-news-rgb: 255, 196, 93;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: start;
  gap: 13px;
  min-height: 76px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(143, 161, 184, 0.16);
  background: linear-gradient(90deg, rgba(var(--player-news-rgb), 0.13), rgba(var(--player-news-rgb), 0.025) 48%, transparent);
  box-shadow: inset 4px 0 0 rgba(var(--player-news-rgb), 0.75);
}
.chat-user-modal__news-item:last-child {
  border-bottom: 0;
}
.chat-user-modal__news-item--rating {
  --player-news-accent: #66b7ff;
  --player-news-rgb: 102, 183, 255;
}
.chat-user-modal__news-item--level {
  --player-news-accent: #9f8cff;
  --player-news-rgb: 159, 140, 255;
}
.chat-user-modal__news-item--daily {
  --player-news-accent: #ff8f6b;
  --player-news-rgb: 255, 143, 107;
}
.chat-user-modal__news-item--birthday {
  --player-news-accent: #ff7ea8;
  --player-news-rgb: 255, 126, 168;
}
.chat-user-modal__news-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(var(--player-news-rgb), 0.35);
  border-radius: 14px;
  background: rgba(var(--player-news-rgb), 0.13);
  color: var(--player-news-accent);
  box-shadow: 0 6px 18px rgba(var(--player-news-rgb), 0.13);
  margin-top: 2px;
}
.chat-user-modal__news-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chat-user-modal__news-icon--avatar {
  overflow: hidden;
  padding: 0;
  border-radius: 50%;
}
.chat-user-modal__news-icon--avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.chat-user-modal__wall-image {
  display: block;
  width: min(100%, 520px);
  max-height: 520px;
  margin-top: 10px;
  border-radius: 14px;
  object-fit: cover;
}
.chat-user-modal__news-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.chat-user-modal__news-copy strong {
  display: block;
  color: #eef4ff;
  font-size: 16px;
  line-height: 1.25;
}
.chat-user-modal__news-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
  visibility: visible;
  opacity: 1;
}
.chat-user-modal__news-actions-label {
  color: #91a2ba;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.chat-user-modal__news-reaction,
.chat-user-modal__news-comment-toggle {
  display: inline-flex;
  min-width: 38px;
  height: 32px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 9px;
  border: 1px solid rgba(143, 161, 184, 0.24);
  border-radius: 999px;
  background: rgba(8, 14, 23, 0.72);
  color: #eef4ff;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}
.chat-user-modal__news-comment-toggle b {
  font-size: 12px;
  font-weight: 900;
}
.chat-user-modal__news-reaction span,
.chat-user-modal__news-comment-toggle span {
  color: #aebbd0;
  font-size: 12px;
  font-weight: 900;
}
.chat-user-modal__news-reaction--mine {
  border-color: #8bd7ff !important;
  background: linear-gradient(180deg, #258de0, #1264b8) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.28),
    0 0 20px rgba(56, 189, 248, 0.62) !important;
}
.chat-user-modal__news-reaction--mine > span {
  background: rgba(3, 31, 67, 0.46) !important;
  color: #fff !important;
}
.chat-user-modal__news-reaction > span[title="Кто поставил"] {
  min-width: 18px;
  padding: 2px 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}
.profile-reaction-users {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(1, 5, 12, 0.72);
  backdrop-filter: blur(8px);
}
.profile-reaction-users__dialog {
  position: relative;
  width: min(92vw, 420px);
  max-height: min(72vh, 560px);
  overflow: auto;
  padding: 22px;
  border: 1px solid rgba(197, 139, 47, 0.62);
  border-radius: 22px;
  background: #101925;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}
.profile-reaction-users__dialog h3 {
  margin: 0 42px 18px 0;
  color: #ffe3a3;
  font-size: 20px;
}
.profile-reaction-users__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(3, 7, 15, 0.85);
  color: #ffe3a3;
  font-size: 28px;
}
.profile-reaction-users__list {
  display: grid;
  gap: 8px;
}
.profile-reaction-users__person {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 8px 10px;
  border: 1px solid rgba(143, 161, 184, 0.18);
  border-radius: 14px;
  background: rgba(5, 10, 17, 0.58);
  color: #eef4ff;
  text-align: left;
}
.profile-reaction-users__person img,
.profile-reaction-users__person > span {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(101, 199, 255, 0.16);
}
.profile-reaction-users__empty {
  color: #91a2ba;
  text-align: center;
}
.profile-reaction-picker {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(1, 5, 12, 0.34);
  backdrop-filter: blur(3px);
}
.profile-reaction-picker__panel {
  display: grid;
  grid-template-columns: repeat(4, 48px);
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(139, 215, 255, 0.52);
  border-radius: 28px;
  background: rgba(7, 14, 25, 0.98);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.52), 0 0 22px rgba(56, 189, 248, 0.18);
}
.profile-reaction-picker__panel button {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 214, 120, 0.32);
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.94);
  font-size: 25px;
  transition: transform 0.14s ease, background 0.14s ease;
}
.profile-reaction-picker__panel button:hover,
.profile-reaction-picker__panel button:focus-visible {
  background: rgba(37, 141, 224, 0.42);
  transform: scale(1.12);
}
.chat-user-modal__comment-reactions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
}
.chat-user-modal__comment-reaction {
  display: inline-flex;
  min-width: 34px;
  height: 28px;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0 8px;
  border: 1px solid rgba(143, 161, 184, 0.24);
  border-radius: 999px;
  background: rgba(8, 14, 23, 0.72);
  color: #eef4ff;
  font-size: 13px;
}
.chat-user-modal__comment-reaction--mine {
  border-color: #8bd7ff !important;
  background: linear-gradient(180deg, #258de0, #1264b8) !important;
  color: #fff !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24), 0 0 14px rgba(56, 189, 248, 0.54) !important;
}
.chat-user-modal__comment-reaction--mine > span {
  background: rgba(3, 31, 67, 0.46) !important;
  color: #fff !important;
}
.chat-user-modal__comment-reaction > span {
  min-width: 15px;
  padding: 1px 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #dce7f8;
  font-size: 10px;
  cursor: pointer;
}
.chat-user-modal__news-comment-toggle--active {
  border-color: #65c7ff;
  background: rgba(101, 199, 255, 0.15);
}
.chat-user-modal__news-comments {
  display: block;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(143, 161, 184, 0.16);
}
.chat-user-modal__news-comments[hidden] {
  display: none !important;
}
.chat-user-modal__news-comments-list {
  display: grid;
  gap: 7px;
}
.chat-user-modal__news-comment {
  position: relative;
  padding: 8px 10px;
  border-radius: 11px;
  background: rgba(5, 10, 17, 0.56);
}

.chat-user-modal__news-comment-delete {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 107, 107, 0.55);
  border-radius: 50%;
  background: rgba(73, 16, 20, 0.72);
  color: #ff9a9a;
  font: 800 25px/30px Arial, sans-serif;
  cursor: pointer;
}

.chat-user-modal__news-comment-delete:disabled {
  opacity: 0.45;
}
.chat-user-modal__news-comment-author {
  display: inline-flex;
  max-width: 100%;
  min-height: 32px;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: inherit;
  font: inherit;
  cursor: pointer;
  box-shadow: none !important;
  outline: 0;
  -webkit-appearance: none;
  appearance: none;
}
.chat-user-modal__news-comment-author img,
.chat-user-modal__news-comment-author > span {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border: 1px solid rgba(255, 201, 91, 0.45);
  border-radius: 50%;
  background: #101925;
  color: #ffd98b;
  object-fit: cover;
  font-size: 13px;
  font-weight: 950;
}
.chat-user-modal__news-comment-author strong {
  overflow: hidden;
  color: #ffd98b;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-user-modal__news-comment-author:active {
  opacity: 0.72;
}
.chat-user-modal__news-comment p,
.chat-user-modal__news-comments-empty {
  margin: 5px 0 0 38px;
  color: #dbe5f4;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.chat-user-modal__news-comments-empty {
  margin-left: 0;
  color: #8ea0b8;
}
.chat-user-modal__news-comment-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  margin-top: 9px;
}
.chat-user-modal__news-comment-form input {
  min-width: 0;
  height: 38px;
  box-sizing: border-box;
  padding: 0 11px;
  border: 1px solid rgba(143, 161, 184, 0.28);
  border-radius: 11px;
  outline: 0;
  background: #080e17;
  color: #eef4ff;
  font: inherit;
  font-size: 13px;
}
.chat-user-modal__news-comment-form input:focus {
  border-color: #65c7ff;
}
.chat-user-modal__news-comment-form button {
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(180deg, #ffd36f, #e99b22);
  color: #171008;
  font: inherit;
  font-size: 12px;
  font-weight: 950;
}
.chat-user-modal__news-comment-form button.is-sending {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: wait;
  background: linear-gradient(180deg, #e3b957, #b87919);
  color: rgba(23, 16, 8, 0.82);
  box-shadow: inset 0 0 0 2px rgba(255, 240, 188, 0.5);
}
.chat-user-modal__news-comment-form button.is-sending::before {
  width: 13px;
  height: 13px;
  box-sizing: border-box;
  border: 2px solid rgba(23, 16, 8, 0.28);
  border-top-color: #171008;
  border-radius: 50%;
  content: "";
  animation: profile-comment-submit-spin 0.7s linear infinite;
}
@keyframes profile-comment-submit-spin {
  to { transform: rotate(360deg); }
}
.chat-user-modal__news-all {
  width: calc(100% - 28px);
  min-height: 48px;
  margin: 12px 14px 14px;
  border: 1px solid rgba(255, 201, 91, 0.48);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 190, 58, 0.2), rgba(255, 125, 0, 0.09));
  color: #ffe2a0;
  font: inherit;
  font-weight: 950;
  text-transform: uppercase;
}
.chat-user-modal__wall-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 0 14px 12px;
  padding: 5px;
  border: 1px solid rgba(143, 161, 184, 0.2);
  border-radius: 15px;
  background: rgba(5, 10, 18, 0.64);
}
.chat-user-modal__wall-tabs--dialog {
  flex: 0 0 auto;
  margin: 12px 16px 0;
}
.chat-user-modal__wall-tab {
  min-height: 40px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #92a5bf;
  font: inherit;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}
.chat-user-modal__wall-tab--active {
  background: linear-gradient(135deg, rgba(255, 193, 62, 0.27), rgba(255, 126, 0, 0.14));
  color: #ffe1a0;
  box-shadow: inset 0 0 0 1px rgba(255, 198, 78, 0.42);
}
.chat-user-modal__wall-composer {
  margin: 0 14px 14px;
  padding: 12px;
  border: 1px solid rgba(100, 232, 178, 0.3);
  border-radius: 16px;
  background: rgba(33, 73, 65, 0.24);
}
.chat-user-modal__wall-composer textarea {
  width: 100%;
  min-height: 86px;
  box-sizing: border-box;
  resize: vertical;
  padding: 11px 12px;
  border: 1px solid rgba(143, 161, 184, 0.3);
  border-radius: 12px;
  outline: 0;
  background: #080e17;
  color: #eef4ff;
  font: inherit;
  line-height: 1.4;
}
.chat-user-modal__wall-composer textarea:focus {
  border-color: #64e8b2;
}
.profile-own-wall__club-share {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
  color: #e8dcc3;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  cursor: pointer;
}
.profile-own-wall__club-share input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #f2a51c;
  cursor: pointer;
}
.chat-user-modal__wall-composer > div {
  display: flex;
  justify-content: flex-end;
  margin-top: 9px;
}
.chat-user-modal__wall-composer > .profile-own-wall__composer-actions {
  justify-content: space-between;
  gap: 9px;
}
.chat-user-modal__wall-composer button.profile-own-wall__attach {
  border: 1px solid rgba(255, 201, 91, 0.46);
  background: #0a101a;
  color: #ffe0a0;
}
.profile-own-wall__image-preview {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin-top: 10px;
}
.profile-own-wall__image-preview img {
  display: block;
  max-width: 100%;
  max-height: 260px;
  border-radius: 14px;
}
.profile-own-wall__image-preview button {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 50%;
  background: rgba(8, 14, 23, 0.9);
  color: #fff;
  font-size: 22px;
}
.chat-user-modal__wall-composer button,
.chat-user-modal__wall-controls button {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(255, 201, 91, 0.46);
  border-radius: 11px;
  background: #0a101a;
  color: #ffe0a0;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
}
.chat-user-modal__wall-composer button {
  border: 0;
  background: linear-gradient(180deg, #ffd36f, #e99b22);
  color: #171008;
}
.chat-user-modal__wall-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}
.chat-user-modal__wall-pinned {
  width: fit-content;
  margin-bottom: 5px;
  color: #ffcf6b;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.chat-user-modal__wall-edited {
  margin-top: 4px;
  color: #8193ab;
  font-size: 11px;
}
.chat-user-modal__wall-empty {
  display: grid;
  min-height: 112px;
  place-content: center;
  gap: 5px;
  padding: 20px;
  color: #8fa1b9;
  text-align: center;
}
.chat-user-modal__wall-empty strong {
  color: #dfe9f8;
}
.chat-user-modal__news-dialog {
  position: fixed;
  z-index: 10080;
  inset: 0;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
  overflow: hidden;
}
.chat-user-modal__news-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(8px);
}
.chat-user-modal__news-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(720px, 100%);
  max-height: min(calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom)), 900px);
  margin: auto;
  overflow: hidden;
  border: 1px solid rgba(154, 177, 207, 0.28);
  border-radius: 28px;
  background: #101925;
  color: #eef4ff;
}
.chat-user-modal__news-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(143, 161, 184, 0.18);
}
.chat-user-modal__news-panel-header span {
  color: #64e8b2;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.chat-user-modal__news-panel-header h3 {
  margin: 3px 0 0;
  color: #ffe0a0;
  font-size: clamp(24px, 5vw, 36px);
}
.chat-user-modal__news-close {
  display: grid;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #090e17;
  color: #ffe4a8;
  font-size: 38px;
  line-height: 1;
}
.chat-user-modal__news-full-list {
  min-height: 0;
  flex: 1 1 auto;
  padding: 14px 16px max(24px, env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.chat-user-modal__news-day + .chat-user-modal__news-day {
  margin-top: 20px;
}
.chat-user-modal__news-date {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 2px 0 10px;
  color: #ffda89;
  font-size: 13px;
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
}
.chat-user-modal__news-date::before,
.chat-user-modal__news-date::after {
  height: 1px;
  flex: 1;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(218, 164, 65, 0.55));
}
.chat-user-modal__news-date::after {
  transform: scaleX(-1);
}
.chat-user-modal__news-list .chat-user-modal__news-day-list {
  border-width: 0;
  border-radius: 0;
}
.chat-user-modal__news-list .chat-user-modal__news-date {
  margin-inline: 14px;
}
@media (max-width: 520px) {
  .chat-user-modal__news {
    margin-inline: 0;
    border-radius: 18px;
  }
  .chat-user-modal__news-item {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
    min-height: 68px;
    padding: 10px 12px;
  }
  .chat-user-modal__news-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }
  .chat-user-modal__news-copy strong {
    font-size: 14px;
  }
}
