/* Cat Fighting — Профиль, Достижения, Друзья: планшеты и VK Mini App desktop.
   Только оформление, все игровые действия и JS оставлены без изменений.
   1cqw = 1% ширины центрального #content. */
@media (min-width: 601px) and (min-height: 600px) {
  /* Профиль игрока и его верхняя карточка. */
  body.catfight-tablet-layout #content .personal-page-container {
    box-sizing:border-box;min-width:0;min-height:0;
    gap:clamp(8px,2cqw,16px)!important;padding:clamp(8px,2cqw,16px)!important;
    border-radius:clamp(12px,3cqw,23px)!important;
    overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch;
  }
  body.catfight-tablet-layout #content .personal-page-container:has(.profile-tabs-container) > div:first-child {
    box-sizing:border-box;min-width:0;gap:clamp(6px,1.5cqw,12px)!important;
    padding:clamp(8px,2cqw,15px)!important;
    border-radius:clamp(12px,3cqw,22px)!important;
  }
  body.catfight-tablet-layout #content .personal-page-container:has(.profile-tabs-container) > div:first-child > div:first-child {
    box-sizing:border-box;flex:0 0 clamp(70px,17cqw,109px)!important;
    width:clamp(70px,17cqw,109px);height:clamp(70px,17cqw,109px)!important;
  }
  body.catfight-tablet-layout #content .personal-page-container .profile-avatar,
  body.catfight-tablet-layout #content .personal-page-container .profile-avatar img {
    width:100%!important;height:100%!important;object-fit:cover;
  }
  body.catfight-tablet-layout #content .personal-page-container:has(.profile-tabs-container) > div:first-child > div:first-child > div:last-child {
    width:clamp(34px,8.5cqw,56px)!important;height:clamp(34px,8.5cqw,56px)!important;
    font-size:clamp(15px,3.75cqw,26px)!important;
  }
  body.catfight-tablet-layout #content .personal-page-container:has(.profile-tabs-container) > div:first-child > div:nth-child(2) {
    box-sizing:border-box;flex:1 1 0!important;min-width:0;
    gap:clamp(2px,.5cqw,4px);
  }
  body.catfight-tablet-layout #content .personal-page-container:has(.profile-tabs-container) > div:first-child > div:nth-child(2) > div {
    min-width:0;overflow-wrap:break-word;word-break:normal;
  }
  body.catfight-tablet-layout #content .personal-page-container:has(.profile-tabs-container) > div:first-child > div:nth-child(2) > div:first-child > span {
    min-width:0;font-size:clamp(16px,4cqw,27px)!important;
    line-height:1.3;overflow-wrap:break-word;
  }
  body.catfight-tablet-layout #content .personal-page-container:has(.profile-tabs-container) > div:first-child > div:nth-child(2) > div:nth-child(2) > span {
    min-width:0;font-size:clamp(12px,3cqw,21px)!important;line-height:1.25;
  }
  body.catfight-tablet-layout #content .personal-page-container:has(.profile-tabs-container) > div:first-child > div:nth-child(2) > div:nth-child(4) {
    font-size:clamp(11px,2.75cqw,19px)!important;line-height:1.3;
  }
  body.catfight-tablet-layout #content .personal-page-container:has(.profile-tabs-container) > div:first-child > div:last-child {
    box-sizing:border-box;flex:0 0 clamp(70px,17cqw,98px)!important;
    padding:clamp(3px,.75cqw,6px)!important;min-width:0;
  }
  body.catfight-tablet-layout #content .personal-page-container:has(.profile-tabs-container) > div:first-child > div:last-child > img {
    width:clamp(48px,12cqw,82px)!important;
    height:clamp(48px,12cqw,82px)!important;max-width:100%;object-fit:contain;
  }
  body.catfight-tablet-layout #content .personal-page-container:has(.profile-tabs-container) > div:first-child > div:last-child > div {
    font-size:clamp(10px,2.5cqw,17px)!important;line-height:1.2;overflow-wrap:break-word;
  }

  /* Лига, кнопки взаимодействия и статистика профиля. */
  body.catfight-tablet-layout #content .personal-page-container > div[style*="rgba(241,196,15,0.2)"] {
    box-sizing:border-box;min-width:0;
    padding:clamp(7px,1.75cqw,13px) clamp(12px,3cqw,23px)!important;
    font-size:clamp(14px,3.5cqw,24px);line-height:1.35;
  }
  body.catfight-tablet-layout #content .personal-page-container > div:has(> #skillsPageBtn),
  body.catfight-tablet-layout #content .personal-page-container > div:has(> #friendAddBtn),
  body.catfight-tablet-layout #content .personal-page-container > div:has(> #friendRemoveBtn) {
    box-sizing:border-box;min-width:0;gap:clamp(7px,1.75cqw,13px)!important;
    padding:0 clamp(8px,2cqw,15px)!important;flex-wrap:wrap;
  }
  body.catfight-tablet-layout #content .personal-page-container :is(#skillsPageBtn,#friendAddBtn,#friendRemoveBtn,#friendGiftBtn,#messageBtn,#homeBtn,#editProfileUsernameBtn,#editTitleBtn) {
    box-sizing:border-box;min-width:0;
    min-height:clamp(38px,9.5cqw,64px);
    padding:clamp(7px,1.75cqw,13px) clamp(10px,2.5cqw,19px)!important;
    font-size:clamp(14px,3.5cqw,23px)!important;
    border-radius:clamp(8px,2cqw,15px)!important;white-space:normal;
  }
  body.catfight-tablet-layout #content .personal-page-container :is(#editProfileUsernameBtn,#editTitleBtn) {
    min-height:clamp(28px,7cqw,45px);
    padding:clamp(3px,.75cqw,6px) clamp(6px,1.5cqw,11px)!important;
    flex-shrink:0;
  }
  body.catfight-tablet-layout #content .personal-page-container > div:has(img[src*="/assets/icons/profile/p-fight"]) {
    box-sizing:border-box;min-width:0;padding:clamp(8px,2cqw,15px) 0!important;
  }
  body.catfight-tablet-layout #content .personal-page-container > div:has(img[src*="/assets/icons/profile/p-fight"]) > div {
    min-width:0;
  }
  body.catfight-tablet-layout #content .personal-page-container > div:has(img[src*="/assets/icons/profile/p-fight"]) > div > img {
    width:clamp(40px,10cqw,70px)!important;height:clamp(40px,10cqw,70px)!important;
    max-width:100%;object-fit:contain;
  }
  body.catfight-tablet-layout #content .personal-page-container > div:has(img[src*="/assets/icons/profile/p-fight"]) > div > div:nth-child(2) {
    font-size:clamp(11px,2.75cqw,19px)!important;line-height:1.25;
    word-break:normal;overflow-wrap:break-word;
  }
  body.catfight-tablet-layout #content .personal-page-container > div:has(img[src*="/assets/icons/profile/p-fight"]) > div > div:nth-child(3) {
    font-size:clamp(17px,4.25cqw,29px)!important;line-height:1.25;
  }

  /* Вкладки Награды / Достижения / Друзья. */
  body.catfight-tablet-layout #content .personal-page-container > .profile-tabs-container {
    box-sizing:border-box;min-width:0;flex-shrink:0;
    gap:clamp(4px,1cqw,8px)!important;padding:clamp(3px,.75cqw,6px) 0;
    margin-bottom:clamp(6px,1.5cqw,11px)!important;
  }
  body.catfight-tablet-layout #content .personal-page-container .profile-tab {
    box-sizing:border-box;min-width:0;
    padding:clamp(9px,2.25cqw,17px) clamp(4px,1cqw,8px)!important;
    font-size:clamp(13px,3.25cqw,22px)!important;
    line-height:1.2;white-space:nowrap;word-break:normal;
  }
  body.catfight-tablet-layout #content .personal-page-container #profileTabContent {
    box-sizing:border-box;min-width:0;min-height:clamp(100px,25cqw,170px);
    padding:clamp(10px,2.5cqw,19px)!important;
    border-radius:clamp(10px,2.5cqw,19px)!important;
    overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch;
  }
  body.catfight-tablet-layout #content .personal-page-container #profileTabContent > div[style*="grid-template-columns"] {
    box-sizing:border-box;min-width:0;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:clamp(7px,1.75cqw,13px)!important;
  }
  body.catfight-tablet-layout #content .personal-page-container #profileTabContent > div[style*="grid-template-columns"] > div {
    box-sizing:border-box;min-width:0;
    padding:clamp(8px,2cqw,15px) clamp(5px,1.25cqw,10px)!important;
    border-radius:clamp(10px,2.5cqw,18px)!important;
  }
  body.catfight-tablet-layout #content .personal-page-container #profileTabContent > div[style*="grid-template-columns"] > div img {
    width:clamp(56px,14cqw,92px)!important;
    height:clamp(56px,14cqw,92px)!important;max-width:100%;object-fit:contain;
  }
  body.catfight-tablet-layout #content .personal-page-container #profileTabContent > div[style*="grid-template-columns"] > div .friend-avatar {
    width:clamp(56px,14cqw,92px)!important;
    height:clamp(56px,14cqw,92px)!important;
  }
  /* Только превью друзей во вкладке профиля: аватар и его контейнер
     должны иметь одинаковый размер. Рамка 115% не перекрывает имя. */
  body.catfight-tablet-layout #content .personal-page-container #profileTabContent > div[style*="grid-template-columns"] > div:has(.friend-view-btn) > div:first-child {
    width:clamp(54px,12cqw,68px)!important;
    height:clamp(54px,12cqw,68px)!important;
    margin:0 auto clamp(10px,2.5cqw,14px)!important;
  }
  body.catfight-tablet-layout #content .personal-page-container #profileTabContent > div[style*="grid-template-columns"] > div:has(.friend-view-btn) > div:first-child .friend-avatar {
    width:100%!important;
    height:100%!important;
  }
  body.catfight-tablet-layout #content .personal-page-container #profileTabContent > div[style*="grid-template-columns"] > div:has(.friend-view-btn) > div:first-child img {
    width:100%!important;
    height:100%!important;
    max-width:none!important;
  }
  body.catfight-tablet-layout #content .personal-page-container #profileTabContent > div[style*="grid-template-columns"] > div:has(.friend-view-btn) > div:first-child img[alt="рамка"] {
    width:115%!important;
    height:115%!important;
    object-fit:contain;
  }
  body.catfight-tablet-layout #content .personal-page-container #profileTabContent > div[style*="grid-template-columns"] > div:has(.friend-view-btn) > div:nth-child(2) {
    min-width:0;
    line-height:1.3!important;
    overflow-wrap:anywhere;
    word-break:normal;
  }
  body.catfight-tablet-layout #content .personal-page-container #profileTabContent > div[style*="grid-template-columns"] > div > div[style*="font-size:"] {
    font-size:clamp(12px,3cqw,20px)!important;
    line-height:1.3;word-break:normal;overflow-wrap:break-word;
  }
  body.catfight-tablet-layout #content .personal-page-container :is(#showAllAchievementsBtn,#showAllFriendsBtn) {
    box-sizing:border-box;max-width:100%;
    min-height:clamp(38px,9.5cqw,64px);
    padding:clamp(8px,2cqw,15px) clamp(14px,3.5cqw,26px)!important;
    font-size:clamp(14px,3.5cqw,23px)!important;
  }
  body.catfight-tablet-layout #content .personal-page-container #profileTabContent :is(.friend-message-btn,.friend-view-btn) {
    min-width:0;min-height:clamp(38px,9.5cqw,66px);
    font-size:clamp(16px,4cqw,28px)!important;
  }

  /* Четыре элемента внешности под вкладками профиля. */
  body.catfight-tablet-layout #content .personal-page-container > div[style*="grid-template-columns: 1fr 1fr 1fr 1fr"] {
    box-sizing:border-box;min-width:0;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:clamp(7px,1.75cqw,13px)!important;
    padding:clamp(10px,2.5cqw,19px) clamp(7px,1.75cqw,13px)!important;
  }
  body.catfight-tablet-layout #content .personal-page-container > div[style*="grid-template-columns: 1fr 1fr 1fr 1fr"] > div {
    min-width:0;gap:clamp(6px,1.5cqw,11px)!important;
  }
  body.catfight-tablet-layout #content .personal-page-container > div[style*="grid-template-columns: 1fr 1fr 1fr 1fr"] > div > div:first-child {
    font-size:clamp(11px,2.75cqw,18px)!important;
    word-break:normal;overflow-wrap:break-word;
  }
  body.catfight-tablet-layout #content .personal-page-container > div[style*="grid-template-columns: 1fr 1fr 1fr 1fr"] > div > div:nth-child(2) {
    max-width:clamp(58px,14.5cqw,100px)!important;
    border-radius:clamp(8px,2cqw,15px)!important;
  }

  /* Полная страница достижений; настройки игрока не затрагиваются. */
  body.catfight-tablet-layout #content .settings-container:has(> #achievementsContainer) {
    box-sizing:border-box;width:100%;min-width:0;min-height:0;
    padding:clamp(10px,2.5cqw,19px)!important;
    gap:clamp(9px,2.25cqw,17px);
    border-radius:clamp(12px,3cqw,23px)!important;
    overflow:hidden;
  }
  body.catfight-tablet-layout #content .settings-container:has(> #achievementsContainer) > div:first-child,
  body.catfight-tablet-layout #content .friends-page-container > div:first-child {
    box-sizing:border-box;min-width:0;gap:clamp(8px,2cqw,15px);
    margin-bottom:clamp(12px,3cqw,22px)!important;flex-shrink:0;
  }
  body.catfight-tablet-layout #content :is(#backFromAchievementsBtn,#backFromFriendsBtn) {
    box-sizing:border-box;flex:0 0 clamp(44px,11cqw,74px);
    width:clamp(44px,11cqw,74px);
    height:clamp(44px,11cqw,74px);
    padding:clamp(8px,2cqw,15px)!important;
    font-size:clamp(19px,4.75cqw,32px)!important;
    border-radius:clamp(22px,5.5cqw,37px)!important;
  }
  body.catfight-tablet-layout #content .settings-container:has(> #achievementsContainer) > div:first-child > div:nth-child(2),
  body.catfight-tablet-layout #content .friends-page-container > div:first-child > div:nth-child(2) {
    min-width:0;margin:0 clamp(5px,1.25cqw,9px)!important;gap:clamp(8px,2cqw,15px)!important;
  }
  body.catfight-tablet-layout #content .settings-container:has(> #achievementsContainer) > div:first-child > div:nth-child(2) > span:nth-child(2),
  body.catfight-tablet-layout #content .friends-page-container > div:first-child > div:nth-child(2) > span:nth-child(2) {
    font-size:clamp(18px,4.5cqw,32px)!important;line-height:1.2;
    white-space:nowrap;
  }
  body.catfight-tablet-layout #content .settings-container:has(> #achievementsContainer) > div:first-child > div:last-child,
  body.catfight-tablet-layout #content .friends-page-container > div:first-child > div:last-child {
    width:clamp(44px,11cqw,74px)!important;
    flex:0 0 clamp(44px,11cqw,74px);
  }
  body.catfight-tablet-layout #content #achievementsContainer {
    box-sizing:border-box;flex:1 1 auto;min-width:0;min-height:0;
    overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch;
  }
  body.catfight-tablet-layout #content #achievementsContainer .achievements-list {
    box-sizing:border-box;min-width:0;
    gap:clamp(9px,2.25cqw,17px)!important;
    padding:clamp(5px,1.25cqw,10px)!important;
  }
  body.catfight-tablet-layout #content #achievementsContainer .achievement-block {
    box-sizing:border-box;min-width:0;
    gap:clamp(9px,2.25cqw,17px)!important;
    padding:clamp(12px,3cqw,22px) clamp(9px,2.25cqw,17px)!important;
    border-radius:clamp(11px,2.75cqw,20px)!important;
  }
  body.catfight-tablet-layout #content #achievementsContainer .achievement-icon-col {
    flex:0 0 clamp(64px,16cqw,109px)!important;
    width:clamp(64px,16cqw,109px)!important;
    height:clamp(64px,16cqw,109px)!important;
  }
  body.catfight-tablet-layout #content #achievementsContainer .achievement-list-icon {
    width:clamp(60px,15cqw,102px)!important;
    height:clamp(60px,15cqw,102px)!important;
    max-width:100%;object-fit:contain;
  }
  body.catfight-tablet-layout #content #achievementsContainer .achievement-info-col {
    min-width:0;flex:1 1 0!important;
  }
  body.catfight-tablet-layout #content #achievementsContainer .achievement-list-name {
    font-size:clamp(14px,3.5cqw,23px)!important;
    line-height:1.25!important;word-break:normal;overflow-wrap:break-word;
  }
  body.catfight-tablet-layout #content #achievementsContainer .achievement-list-desc {
    font-size:clamp(12px,3cqw,20px)!important;
    line-height:1.4!important;word-break:normal;overflow-wrap:break-word;
  }
  body.catfight-tablet-layout #content #achievementsContainer .achievement-status-col {
    box-sizing:border-box;flex:0 0 clamp(92px,23cqw,155px)!important;
    min-width:0!important;width:clamp(92px,23cqw,155px);
    gap:clamp(6px,1.5cqw,11px)!important;
    font-size:clamp(11px,2.75cqw,19px)!important;
    line-height:1.3;word-break:normal;overflow-wrap:break-word;
  }
  body.catfight-tablet-layout #content #achievementsContainer .claim-achievement-btn {
    box-sizing:border-box;max-width:100%;
    min-height:clamp(36px,9cqw,62px);
    padding:clamp(7px,1.75cqw,12px) clamp(7px,1.75cqw,12px)!important;
    font-size:clamp(12px,3cqw,20px)!important;
  }
  body.catfight-tablet-layout #content #achievementsContainer .claim-achievement-btn img {
    width:clamp(19px,4.75cqw,33px)!important;
    height:clamp(19px,4.75cqw,33px)!important;object-fit:contain;
  }
  body.catfight-tablet-layout #content #achievementsContainer .achievement-status-col > div > div[style*="height: 22px"] {
    height:clamp(25px,6.25cqw,44px)!important;
  }
  body.catfight-tablet-layout #content #achievementsContainer .achievement-status-col > div > div > div:last-child {
    font-size:clamp(11px,2.75cqw,17px)!important;
  }

  /* Полная страница друзей: вкладки, массовые подарки, три карточки в ряду. */
  body.catfight-tablet-layout #content .friends-page-container {
    box-sizing:border-box;width:100%;min-width:0;min-height:0;
    padding:clamp(10px,2.5cqw,19px)!important;
    gap:clamp(8px,2cqw,15px);
    border-radius:clamp(12px,3cqw,23px)!important;
    overflow:hidden;
  }
  body.catfight-tablet-layout #content .friends-page-container > div:nth-child(2),
  body.catfight-tablet-layout #content .friends-page-container > div:nth-child(3) {
    box-sizing:border-box;min-width:0;flex-shrink:0;
    gap:clamp(8px,2cqw,15px)!important;
    margin-bottom:clamp(9px,2.25cqw,17px)!important;
  }
  body.catfight-tablet-layout #content .friends-page-container .friends-tab {
    box-sizing:border-box;min-width:0;flex:1 1 0;
    min-height:clamp(42px,10.5cqw,72px);
    padding:clamp(8px,2cqw,14px) clamp(9px,2.25cqw,17px)!important;
    border-radius:clamp(21px,5.25cqw,36px)!important;
    font-size:clamp(14px,3.5cqw,24px)!important;line-height:1.2;
    white-space:nowrap;
  }
  body.catfight-tablet-layout #content .friends-page-container :is(#collectAllBtn,#giftAllBtn) {
    box-sizing:border-box;min-width:0;flex:1 1 42%;
    min-height:clamp(42px,10.5cqw,72px);
    padding:clamp(8px,2cqw,14px) clamp(8px,2cqw,15px)!important;
    border-radius:clamp(21px,5.25cqw,36px)!important;
    font-size:clamp(13px,3.25cqw,23px)!important;
    line-height:1.25;white-space:normal;
  }
  body.catfight-tablet-layout #content #friendsContentContainer {
    box-sizing:border-box;min-width:0;min-height:0;
    flex:1 1 auto;
    overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;
  }
  body.catfight-tablet-layout #content #friendsContentContainer > div[style*="grid-template-columns"] {
    box-sizing:border-box;min-width:0;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:clamp(8px,2cqw,15px)!important;
  }
  body.catfight-tablet-layout #content #friendsContentContainer .friend-card {
    box-sizing:border-box;min-width:0;
    padding:clamp(10px,2.5cqw,18px) clamp(5px,1.25cqw,9px)!important;
    border-radius:clamp(11px,2.75cqw,20px)!important;
  }
  body.catfight-tablet-layout #content #friendsContentContainer .friend-card > div:first-child {
    min-width:0;
  }
  body.catfight-tablet-layout #content #friendsContentContainer .friend-card > div:first-child > div:first-child {
    width:clamp(60px,15cqw,104px)!important;
    height:clamp(60px,15cqw,104px)!important;
  }
  body.catfight-tablet-layout #content #friendsContentContainer .friend-card .friend-avatar,
  body.catfight-tablet-layout #content #friendsContentContainer .friend-card .friend-avatar img {
    width:100%!important;height:100%!important;object-fit:cover;
  }
  body.catfight-tablet-layout #content #friendsContentContainer .friend-card > div:first-child > div:nth-child(2) {
    font-size:clamp(12px,3cqw,20px)!important;
    line-height:1.25;overflow-wrap:break-word;word-break:normal;
  }
  body.catfight-tablet-layout #content #friendsContentContainer .friend-card > div:first-child > div:nth-child(3) {
    font-size:clamp(10px,2.5cqw,17px)!important;
    line-height:1.3;overflow-wrap:break-word;word-break:normal;
  }
  body.catfight-tablet-layout #content #friendsContentContainer .friend-action-btn {
    box-sizing:border-box;min-width:0;
    min-height:clamp(40px,10cqw,68px);
    padding:clamp(8px,2cqw,14px) 0!important;
    font-size:clamp(17px,4.25cqw,29px)!important;
  }
  body.catfight-tablet-layout #content #friendsContentContainer .add-friend-card {
    min-height:clamp(185px,46.25cqw,320px)!important;
  }
  body.catfight-tablet-layout #content #friendsContentContainer .add-friend-card > div:first-child {
    width:clamp(62px,15.5cqw,107px)!important;
    height:clamp(62px,15.5cqw,107px)!important;
    font-size:clamp(28px,7cqw,48px)!important;
  }
  body.catfight-tablet-layout #content #friendsContentContainer .add-friend-card > div:nth-child(2) {
    font-size:clamp(12px,3cqw,20px)!important;
    line-height:1.25;word-break:normal;overflow-wrap:break-word;
  }
  /* Заявки: имя и статус растягиваются, кнопки принять/отклонить остаются видимы. */
  body.catfight-tablet-layout #content #friendsContentContainer .request-item {
    box-sizing:border-box;min-width:0;
    gap:clamp(9px,2.25cqw,16px)!important;
    padding:clamp(10px,2.5cqw,18px) clamp(10px,2.5cqw,18px)!important;
    border-radius:clamp(11px,2.75cqw,20px)!important;
  }
  body.catfight-tablet-layout #content #friendsContentContainer .request-item > div:first-child {
    flex:0 0 clamp(48px,12cqw,82px);
    width:clamp(48px,12cqw,82px)!important;
    height:clamp(48px,12cqw,82px)!important;
  }
  body.catfight-tablet-layout #content #friendsContentContainer .request-item > div:first-child .request-avatar,
  body.catfight-tablet-layout #content #friendsContentContainer .request-item > div:first-child > img {
    width:100%!important;height:100%!important;
    object-fit:cover;
  }
  body.catfight-tablet-layout #content #friendsContentContainer .request-item > div:nth-child(2) {
    flex:1 1 0!important;min-width:0;
  }
  body.catfight-tablet-layout #content #friendsContentContainer .request-item > div:nth-child(2) > div:first-child {
    font-size:clamp(14px,3.5cqw,24px)!important;
    overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-break:normal;
  }
  body.catfight-tablet-layout #content #friendsContentContainer .request-item > div:nth-child(2) > div:nth-child(2) {
    font-size:clamp(12px,3cqw,20px)!important;line-height:1.3;
  }
  body.catfight-tablet-layout #content #friendsContentContainer .request-item > .btn-glass {
    box-sizing:border-box;flex:0 0 clamp(42px,10.5cqw,72px);
    min-width:0;min-height:clamp(42px,10.5cqw,72px);
    padding:clamp(8px,2cqw,14px)!important;
    font-size:clamp(17px,4.25cqw,29px)!important;
  }

  /* Модалка «Добавить друга»: случайные игроки, список и кнопки. */
  body.catfight-tablet-layout #roleModal:has(#randomUsersList) #modalBody {
    box-sizing:border-box;min-width:0;overflow-x:hidden;
  }
  body.catfight-tablet-layout #roleModal #refreshRandomBtn {
    box-sizing:border-box;min-height:clamp(38px,6vw,56px);
    font-size:clamp(14px,2.3vw,20px)!important;
    padding:clamp(8px,1.4vw,13px) clamp(12px,2.1vw,20px)!important;
  }
  body.catfight-tablet-layout #roleModal #randomUsersList {
    min-width:0;max-height:min(50dvh,480px)!important;
    gap:clamp(8px,1.4vw,14px)!important;
    overflow-x:hidden;overflow-y:auto;
    -webkit-overflow-scrolling:touch;
  }
  body.catfight-tablet-layout #roleModal #randomUsersList > div {
    box-sizing:border-box;min-width:0;
    gap:clamp(9px,1.6vw,16px)!important;
    padding:clamp(9px,1.6vw,16px) clamp(10px,1.8vw,18px)!important;
  }
  body.catfight-tablet-layout #roleModal #randomUsersList > div > img {
    flex:0 0 clamp(44px,7vw,62px);
    width:clamp(44px,7vw,62px)!important;
    height:clamp(44px,7vw,62px)!important;object-fit:cover;
  }
  body.catfight-tablet-layout #roleModal #randomUsersList > div > div:nth-child(2) {
    min-width:0;flex:1 1 0;
  }
  body.catfight-tablet-layout #roleModal #randomUsersList > div > div:nth-child(2) > div:first-child {
    font-size:clamp(14px,2.4vw,21px);
    overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-break:normal;
  }
  body.catfight-tablet-layout #roleModal #randomUsersList > div > div:nth-child(2) > div:nth-child(2) {
    font-size:clamp(12px,2vw,18px)!important;line-height:1.3;
  }
  body.catfight-tablet-layout #roleModal #randomUsersList .add-friend-from-modal {
    box-sizing:border-box;flex:0 0 clamp(42px,7vw,62px);
    min-width:0;min-height:clamp(42px,7vw,62px);
    padding:clamp(8px,1.3vw,13px)!important;
    font-size:clamp(16px,2.7vw,23px)!important;
  }
}
