/* =========================================================
   MatchMate — анкеты на телефоне: полноэкранный профиль.
   Круглый аватар с рамкой из магазина, игры с рангами,
   контакты, кнопки скип/лайк по центру снизу.
   На ПК ничего из этого не применяется.
   ========================================================= */
html body .mm-mp-topbar,
html body .mm-mp-games-section{display:none !important}

/* ---------- окна поверх страницы ----------
   theme.css ставит всем div прямо в body position:relative, и у попапа мэтча
   это перебивало fixed: он оказывался за нижним краем экрана и его не было видно. */
html body .match-notification{position:fixed !important;z-index:100100 !important}
/* промо Telegram ждёт, пока закроют ежедневный бонус */
html body.mm-dr-open .mm-tgp.show{display:none !important}

/* всплывашка: новый лайк, свайп не сохранился */
html body .mm-match-toast{
  position:fixed !important;z-index:100090 !important;
  left:50% !important;top:calc(14px + env(safe-area-inset-top,0px)) !important;
  width:max-content;max-width:calc(100vw - 32px);box-sizing:border-box;
  padding:12px 18px;border-radius:14px;
  background:rgba(12,18,30,.96);border:1px solid rgba(143,213,255,.28);
  box-shadow:0 14px 34px rgba(0,0,0,.45);
  color:#eef7ff;font-size:14px;font-weight:700;line-height:1.35;text-align:center;text-decoration:none;
  opacity:0;transform:translate(-50%,-12px);transition:opacity .2s ease,transform .2s ease;
}
html body .mm-match-toast.is-shown{opacity:1;transform:translate(-50%,0)}

/* ---------- профиль не заполнен ---------- */
html body .mm-incomplete[hidden]{display:none !important}
html body .mm-incomplete{
  display:flex;flex-direction:column;align-items:center;
  box-sizing:border-box;width:min(100% - 32px,420px);
  margin:clamp(10px,4vh,56px) auto 0;padding:clamp(16px,3vh,28px) 22px 22px;
  /* страница не прокручивается: на маленьком экране прокручивается сама карточка */
  max-height:calc(100dvh - 160px);overflow-y:auto;
  border-radius:24px;text-align:center;
  background:
    radial-gradient(120% 70% at 50% 0%,rgba(90,212,255,.14),transparent 62%),
    linear-gradient(180deg,rgba(17,24,38,.94),rgba(9,13,22,.96));
  border:1px solid rgba(143,213,255,.18);
  box-shadow:0 24px 60px rgba(0,0,0,.45),inset 0 1px 0 rgba(255,255,255,.06);
}
html body .mm-incomplete-icon{
  display:grid;place-items:center;width:64px;height:64px;margin-bottom:16px;
  border-radius:20px;color:#7fe3ff;
  background:linear-gradient(145deg,rgba(90,212,255,.18),rgba(185,146,255,.18));
  border:1px solid rgba(143,213,255,.25);
}
html body .mm-incomplete-icon svg{width:34px;height:34px}
html body .mm-incomplete-title{margin:0 0 8px;color:#fff;font-size:23px;font-weight:800;line-height:1.2}
html body .mm-incomplete-text{margin:0 0 18px;color:rgba(224,240,255,.72);font-size:14.5px;line-height:1.5}
html body .mm-incomplete-steps{
  list-style:none;width:100%;margin:0 0 20px;padding:0;
  display:flex;flex-direction:column;gap:8px;text-align:left;
}
html body .mm-incomplete-steps li{
  display:flex;align-items:center;gap:12px;padding:11px 13px;border-radius:14px;
  background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.07);
}
html body .mm-incomplete-mark{
  flex:none;width:20px;height:20px;border-radius:50%;box-sizing:border-box;
  border:2px solid rgba(143,213,255,.45);
}
html body .mm-incomplete-steps li.is-done .mm-incomplete-mark{
  border:0;background:#2fe38a url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2305140c' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'><path d='m6 12.5 4 4 8-9'/></svg>") center / 14px 14px no-repeat;
}
html body .mm-incomplete-step{display:flex;flex-direction:column;gap:2px;min-width:0}
html body .mm-incomplete-step strong{color:#eef7ff;font-size:14.5px;font-weight:800}
html body .mm-incomplete-step small{color:rgba(224,240,255,.58);font-size:12.5px;line-height:1.35}
html body .mm-incomplete-btn{
  display:flex;align-items:center;justify-content:center;
  width:100%;min-height:50px;box-sizing:border-box;border-radius:15px;
  background:linear-gradient(135deg,#5ad4ff,#b992ff);
  box-shadow:0 12px 28px rgba(90,212,255,.24);
  color:#06111d;font-size:15.5px;font-weight:900;text-decoration:none;
}
html body.mm-profile-incomplete .filters-toggle-btn{display:none !important}

/* «Пока что всё»: та же карточка, кнопка фильтров остаётся над ней */
html body .cards-container.empty #no-cards{
  box-sizing:border-box;width:min(100% - 32px,420px);height:auto !important;min-height:0 !important;
  margin:64px auto auto !important;padding:26px 20px !important;
  border-radius:24px !important;
  background:
    radial-gradient(120% 70% at 50% 0%,rgba(90,212,255,.14),transparent 62%),
    linear-gradient(180deg,rgba(17,24,38,.94),rgba(9,13,22,.96)) !important;
  border:1px solid rgba(143,213,255,.18) !important;
  box-shadow:0 24px 60px rgba(0,0,0,.45),inset 0 1px 0 rgba(255,255,255,.06) !important;
}

/* плашка «нет аватарки» на телефоне лежит поверх анкеты: в потоке она сдвигала
   экранную карточку вниз, и кнопки лайка и скипа уходили за нижний край */
@media (max-width:760px){
  html body.match-mobile-profile .profile-warning-banner{
    position:fixed !important;z-index:60 !important;
    top:calc(8px + env(safe-area-inset-top,0px)) !important;left:8px !important;right:8px !important;
    width:auto !important;margin:0 !important;
    background:rgba(38,26,14,.97) !important;
  }
}

@media (max-width:760px){
  html body.match-mobile-profile .site-header,
  html body.match-mobile-profile .bottom-nav,
  html body.match-mobile-profile .filters-toggle-btn{display:none !important}

  /* контейнеры не должны оставлять полей — анкета во весь экран */
  html body.match-mobile-profile{padding-top:0 !important;margin-top:0 !important}
  html body.match-mobile-profile .container,
  html body.match-mobile-profile main,
  html body.match-mobile-profile .match-page{
    padding:0 !important;margin:0 !important;max-width:none !important;width:100% !important;
  }
  html body .cards-container{
    padding:0 !important;margin:0 !important;
    height:100dvh !important;max-height:100dvh !important;
    width:100% !important;
  }
  html body .swipe-card{
    position:relative !important;
    height:100dvh !important;max-height:100dvh !important;min-height:0 !important;
    max-width:none !important;width:100% !important;margin:0 !important;
    border-radius:0 !important;border:0 !important;box-shadow:none !important;
    display:flex !important;flex-direction:column !important;overflow:hidden !important;
    background:
      radial-gradient(120% 62% at 50% -4%, rgba(63,215,245,.20), transparent 60%),
      radial-gradient(100% 55% at 50% 2%, rgba(154,99,255,.16), transparent 68%),
      radial-gradient(90% 45% at 12% 100%, rgba(63,215,245,.07), transparent 70%),
      radial-gradient(90% 45% at 92% 88%, rgba(154,99,255,.08), transparent 72%),
      linear-gradient(180deg, #0a1120 0%, #080c15 42%, #05080f 100%) !important;
  }
  /* тонкая сетка поверх фона, чтобы он не был плоским */
  html body .swipe-card::after{
    content:"" !important;
    position:absolute !important;inset:0 !important;
    z-index:0 !important;pointer-events:none !important;
    background-image:
      linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px) !important;
    background-size:44px 44px, 44px 44px !important;
    mask-image:radial-gradient(120% 70% at 50% 0%, #000 20%, transparent 78%) !important;
    -webkit-mask-image:radial-gradient(120% 70% at 50% 0%, #000 20%, transparent 78%) !important;
  }
  html body .swipe-card > *{position:relative !important;z-index:1 !important}

  html body .mm-mp-topbar{
    display:flex !important;align-items:center !important;justify-content:space-between !important;
    flex:none !important;order:-1 !important;
    padding:calc(10px + env(safe-area-inset-top,0px)) 14px 4px !important;
  }
  html body .mm-mp-back,
  html body .mm-mp-filters{
    width:38px !important;height:38px !important;
    display:grid !important;place-items:center !important;
    border-radius:12px !important;text-decoration:none !important;cursor:pointer !important;
    background:rgba(255,255,255,.06) !important;
    border:1px solid rgba(255,255,255,.1) !important;
    color:#cfdcee !important;font-size:20px !important;line-height:1 !important;
  }
  html body .mm-mp-filters svg{width:18px !important;height:18px !important}

  html body .card-photo{
    position:relative !important;flex:none !important;
    width:132px !important;height:132px !important;
    margin:6px auto 12px !important;
    border-radius:50% !important;overflow:visible !important;
    background:none !important;border:0 !important;
  }
  html body .card-photo::before{
    content:"" !important;position:absolute !important;inset:-5px !important;
    border-radius:50% !important;z-index:0 !important;
    background:var(--match-card-frame-ring, linear-gradient(135deg,#48dcf7,#9a63ff)) !important;
    box-shadow:0 0 26px var(--match-card-frame-glow, rgba(72,220,247,.28)) !important;
  }
  html body .card-photo img{
    position:relative !important;z-index:1 !important;
    width:132px !important;height:132px !important;
    border-radius:50% !important;object-fit:cover !important;
    border:4px solid #080c15 !important;
  }
  html body .card-photo .photo-view-toggle,
  html body .card-photo .swipe-indicator{display:none !important}
  /* внутри аватара оставляем только само фото: магазинные квадратные
     подложки и прочие слои прячем, рамка рисуется кольцом выше */
  html body .card-photo > *{display:none !important}
  html body .card-photo > img,
  html body .card-photo > .card-photo-main{display:block !important}
  html body .card-photo::after{content:none !important;display:none !important}
  html body .card-photo[class*="shop-frame-"]::after{content:none !important;display:none !important}
  /* квадратная рамка магазина на самом фото — убираем, вместо неё круглое кольцо */
  html body .swipe-card .card-photo[class*="shop-frame-"],
  html body .swipe-card .card-photo img[class*="shop-frame-"],
  html body .card-photo[class*="shop-frame-"],
  html body .card-photo img[class*="shop-frame-"]{
    border:0 !important;outline:0 !important;box-shadow:none !important;
    background-image:none !important;padding:0 !important;
    border-radius:50% !important;
    -webkit-mask:none !important;mask:none !important;
  }
  html body .swipe-card .card-photo img,
  html body .card-photo img{border:4px solid #080c15 !important;border-radius:50% !important}
  html body .card-photo img[class*="shop-frame-"]{
    border-radius:50% !important;background:none !important;
    box-shadow:none !important;outline:none !important;
  }
  /* рамка карточки на весь экран на телефоне не нужна */
  html body .swipe-card[class*="shop-frame-"]::before{content:none !important;display:none !important}
  html body .swipe-card[class*="shop-frame-"]{box-shadow:none !important;border-color:transparent !important}

  html body .card-info{
    /* в старой вёрстке инфо-блок лежал абсолютом поверх фото — возвращаем в поток */
    position:static !important;
    top:auto !important;left:auto !important;right:auto !important;bottom:auto !important;
    flex:1 1 auto !important;min-height:0 !important;
    padding:0 16px 104px !important;gap:12px !important;
    overflow-y:auto !important;background:transparent !important;
    -webkit-overflow-scrolling:touch !important;
  }
  html body .profile-headline{
    display:flex !important;flex-direction:column !important;
    align-items:center !important;text-align:center !important;gap:8px !important;
  }
  html body .card-info .profile-headline h3{
    width:100% !important;
    display:flex !important;flex-wrap:wrap !important;
    align-items:center !important;justify-content:center !important;gap:6px !important;
  }
  html body .card-info h3{
    font-size:23px !important;font-weight:800 !important;text-align:center !important;white-space:normal !important;
  }
  html body .profile-headline .meta-line{justify-content:center !important}
  html body .card-info .age,
  html body .card-info .badge.gender-badge{
    padding:4px 11px !important;border-radius:999px !important;
    background:rgba(255,255,255,.05) !important;
    border:1px solid rgba(255,255,255,.09) !important;
    color:#9db0c9 !important;font-size:12.5px !important;font-weight:700 !important;
  }
  html body .card-info .profile-bio{
    margin:0 !important;padding:13px 14px !important;border-radius:16px !important;
    background:rgba(255,255,255,.04) !important;
    border:1px solid rgba(255,255,255,.07) !important;
  }
  html body .card-info .profile-bio p{
    margin:0 !important;font-size:14px !important;line-height:1.5 !important;color:#cfdcee !important;
  }
  html body .card-info .profile-section-title{
    margin:0 0 9px !important;font-size:10.5px !important;font-weight:800 !important;
    letter-spacing:.1em !important;text-transform:uppercase !important;color:#8296b0 !important;
  }

  html body .mm-mp-games-section{
    display:block !important;margin:0 !important;padding:13px 14px !important;
    border-radius:16px !important;
    background:rgba(255,255,255,.04) !important;
    border:1px solid rgba(255,255,255,.07) !important;
  }
  html body .mm-mp-games{display:flex !important;flex-direction:column !important;gap:8px !important}
  html body .mm-mp-game{
    display:flex !important;align-items:center !important;gap:10px !important;
    padding:8px 10px !important;border-radius:12px !important;
    background:rgba(255,255,255,.04) !important;
    border:1px solid rgba(255,255,255,.06) !important;
  }
  html body .mm-mp-game .game-icon{
    flex:none !important;width:30px !important;height:30px !important;
    border-radius:9px !important;overflow:hidden !important;
  }
  html body .mm-mp-game .game-icon img{width:100% !important;height:100% !important;object-fit:cover !important}
  html body .mm-mp-game-name{
    flex:1 1 auto !important;min-width:0 !important;
    font-size:13.5px !important;font-weight:700 !important;color:#eaf1ff !important;
    overflow:hidden !important;text-overflow:ellipsis !important;white-space:nowrap !important;
  }
  /* ранг — крупная иконка и подпись, без плашки вокруг */
  html body .mm-mp-game-rank{
    flex:none !important;display:inline-flex !important;align-items:center !important;gap:8px !important;
    max-width:56% !important;padding:0 !important;border:0 !important;border-radius:0 !important;
    background:none !important;
    color:#cfdcee !important;font-size:12.5px !important;font-weight:700 !important;
    overflow:hidden !important;white-space:nowrap !important;
  }
  html body .mm-mp-game-rank .rank-icon,
  html body .mm-mp-game-rank .rank-icon-image-wrap{
    flex:none !important;display:grid !important;place-items:center !important;
    width:30px !important;height:30px !important;
    background:none !important;border:0 !important;border-radius:0 !important;padding:0 !important;
  }
  html body .mm-mp-game-rank img,
  html body .mm-mp-game-rank .rank-icon-img{
    width:30px !important;height:30px !important;object-fit:contain !important;
    filter:drop-shadow(0 3px 6px rgba(0,0,0,.5)) !important;
  }
  /* запасная иконка (когда картинки ранга нет) — поменьше и приглушённая */
  html body .mm-mp-game-rank .rank-icon-fallback img{
    width:20px !important;height:20px !important;border-radius:6px !important;opacity:.75 !important;
  }
  html body .mm-mp-game-rank > span:last-child{
    overflow:hidden !important;text-overflow:ellipsis !important;
  }
  html body .mm-mp-game-rank.is-empty{
    background:none !important;border:0 !important;color:#7b8ba3 !important;font-weight:600 !important;
  }
  html body .card-info .profile-games-section,
  html body .card-info .profile-ranks-section{display:none !important}
  html body .card-info .profile-contacts-section{
    margin:0 0 6px !important;padding:13px 14px !important;border-radius:16px !important;
    background:rgba(255,255,255,.04) !important;
    border:1px solid rgba(255,255,255,.07) !important;
  }

  /* карточка имеет transform, поэтому fixed внутри неё ведёт себя как absolute —
     позиционируем кнопки от самой карточки */
  html body .swipe-card > .photo-actions,
  html body .card-photo .photo-actions{
    position:absolute !important;
    left:50% !important;right:auto !important;top:auto !important;
    transform:translateX(-50%) !important;
    bottom:calc(18px + env(safe-area-inset-bottom,0px)) !important;
    z-index:30 !important;
    display:flex !important;justify-content:center !important;align-items:center !important;
    gap:26px !important;margin:0 !important;padding:0 !important;
  }
  html body .swipe-card > .photo-actions .action-btn,
  html body .card-photo .photo-actions .action-btn{
    width:62px !important;height:62px !important;border-radius:50% !important;
    display:grid !important;place-items:center !important;
    box-shadow:0 14px 30px rgba(0,0,0,.45) !important;
  }
  html body .swipe-card > .photo-actions .pass-btn,
  html body .card-photo .photo-actions .pass-btn{
    background:rgba(20,10,14,.92) !important;border:1px solid rgba(255,91,107,.5) !important;
  }
  html body .swipe-card > .photo-actions .like-btn,
  html body .card-photo .photo-actions .like-btn{
    background:rgba(10,22,16,.92) !important;border:1px solid rgba(46,213,115,.5) !important;
  }
  html body .swipe-card > .photo-actions .action-icon,
  html body .card-photo .photo-actions .action-icon{width:26px !important;height:26px !important}
  /* ---------- логотип и «шапка профиля» ---------- */
  html body .mm-mp-topbar{
    position:relative !important;
    border-bottom:1px solid rgba(255,255,255,.05) !important;
    padding-bottom:9px !important;
  }
  /* логотип — как в шапке сайта */
  html body .mm-mp-logo{
    display:inline-flex !important;align-items:baseline !important;gap:1px !important;
    padding:6px 14px 7px 12px !important;
    border-radius:14px !important;
    background:
      linear-gradient(120deg, rgba(89,210,255,.14), rgba(173,139,255,.10) 42%, rgba(255,255,255,.045)),
      rgba(8,19,33,.82) !important;
    border:1px solid rgba(128,226,255,.24) !important;
    box-shadow:0 6px 18px rgba(0,0,0,.35) !important;
    line-height:1 !important;white-space:nowrap !important;
  }
  html body .mm-mp-logo-mark{
    width:auto !important;height:auto !important;
    border-radius:0 !important;background:none !important;
    font-size:21px !important;font-weight:950 !important;line-height:1 !important;
    color:transparent !important;
    background-image:linear-gradient(100deg,#ffffff 0%,#82eeff 36%,#b9a2ff 68%,#ffffff 100%) !important;
    -webkit-background-clip:text !important;background-clip:text !important;
    -webkit-text-fill-color:transparent !important;
    text-shadow:0 0 22px rgba(130,238,255,.18) !important;
  }
  html body .mm-mp-logo-word{
    font-size:16px !important;font-weight:900 !important;letter-spacing:.01em !important;
    color:#eef7ff !important;text-transform:uppercase !important;
  }
  html body .mm-mp-logo-word strong{
    color:#5ad4ff !important;font-weight:900 !important;margin-left:4px !important;
  }

  /* аватар: мягкая тень и «дыхание» кольца */
  html body .card-photo{
    filter:drop-shadow(0 18px 28px rgba(0,0,0,.45)) !important;
  }
  html body .card-photo::before{opacity:.95 !important}

  /* заголовки секций с фирменной полоской */
  html body .card-info .profile-section-title{
    display:flex !important;align-items:center !important;gap:8px !important;
  }
  html body .card-info .profile-section-title::before{
    content:"" !important;
    width:3px !important;height:12px !important;border-radius:2px !important;
    background:linear-gradient(180deg,#48dcf7,#9a63ff) !important;
  }

  /* блоки чуть контрастнее и с внутренней подсветкой сверху */
  html body .card-info .profile-bio,
  html body .mm-mp-games-section,
  html body .card-info .profile-contacts-section{
    background:linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.03)) !important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.05) !important;
  }

  /* контакты — ровный ряд круглых иконок */
  html body .card-info .profile-contacts-section .games,
  html body .card-info .profile-contacts-section .contacts{
    display:flex !important;flex-wrap:wrap !important;gap:9px !important;align-items:center !important;
  }

  /* кнопки: чуть выразительнее, с подсветкой своего цвета */
  html body .swipe-card > .photo-actions .pass-btn{
    box-shadow:0 12px 26px rgba(0,0,0,.45), 0 0 0 1px rgba(255,91,107,.18) !important;
  }
  html body .swipe-card > .photo-actions .like-btn{
    box-shadow:0 12px 26px rgba(0,0,0,.45), 0 0 22px rgba(46,213,115,.22) !important;
  }
  html body .swipe-card > .photo-actions .action-btn:active{transform:scale(.94) !important}
}

/* ---------- просмотр фото по тапу на аватар ---------- */
html body .mm-photo-viewer{
  position:fixed !important;inset:0 !important;z-index:12000 !important;
  display:flex !important;flex-direction:column !important;
  align-items:center !important;justify-content:center !important;
  gap:14px !important;padding:24px !important;
  background:rgba(3,5,11,.975) !important;
  backdrop-filter:blur(10px) !important;-webkit-backdrop-filter:blur(6px) !important;
  opacity:0 !important;transition:opacity .18s ease !important;
}
html body .mm-photo-viewer.is-open{opacity:1 !important}
html body .mm-photo-viewer[hidden]{display:none !important}
html body .mm-photo-viewer img{
  max-width:min(92vw, 520px) !important;
  max-height:70dvh !important;
  width:auto !important;height:auto !important;
  border-radius:20px !important;
  object-fit:contain !important;
  border:1px solid rgba(255,255,255,.12) !important;
  box-shadow:0 30px 70px rgba(0,0,0,.6) !important;
  transform:scale(.96) !important;transition:transform .2s ease !important;
}
html body .mm-photo-viewer.is-open img{transform:scale(1) !important}
html body .mm-photo-name{
  font-size:15px !important;font-weight:700 !important;color:#eaf1ff !important;text-align:center !important;
}
html body .mm-photo-close{
  position:absolute !important;
  top:calc(14px + env(safe-area-inset-top,0px)) !important;right:14px !important;
  width:40px !important;height:40px !important;
  display:grid !important;place-items:center !important;
  border-radius:13px !important;cursor:pointer !important;
  background:rgba(255,255,255,.08) !important;
  border:1px solid rgba(255,255,255,.14) !important;
  color:#eaf1ff !important;font-size:16px !important;
}
html body.mm-photo-open{overflow:hidden !important}
/* подсказка, что аватар можно открыть */
@media (max-width:760px){
  html body .card-photo{cursor:zoom-in !important}
  html body .card-photo::after{
    content:"" !important;display:block !important;
    position:absolute !important;
    top:auto !important;left:auto !important;
    right:2px !important;bottom:2px !important;
    inset:auto 2px 2px auto !important;
    width:26px !important;height:26px !important;z-index:2 !important;
    border-radius:50% !important;
    background:rgba(8,12,20,.92) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cfdcee' stroke-width='2.2' stroke-linecap='round'><circle cx='11' cy='11' r='6'/><path d='m20 20-3.4-3.4'/><path d='M11 9v4'/><path d='M9 11h4'/></svg>") center / 15px 15px no-repeat !important;
    border:1px solid rgba(255,255,255,.14) !important;
  }
}

/* ---------- пустые данные и покупки магазина ---------- */
html body .mm-empty-note{
  margin:0 !important;
  font-size:13.5px !important;line-height:1.45 !important;
  color:#7f90a8 !important;font-style:normal !important;
}
@media (max-width:760px){
  html body .card-info .profile-bio.is-empty p{color:#7f90a8 !important}
  html body .mm-mp-games .mm-empty-note{padding:4px 2px !important}

  /* бейдж из магазина рядом с ником */
  html body .card-info h3 .profile-badge{
    display:inline-flex !important;align-items:center !important;justify-content:center !important;
    width:26px !important;height:26px !important;flex:none !important;
    border-radius:9px !important;font-size:15px !important;line-height:1 !important;
    vertical-align:middle !important;
  }
  /* цвет ника из магазина не перебиваем своим белым */
  html body .card-info h3 .nickname-text[class*="shop-nick-"],
  html body .card-info h3[class*="shop-nick-"]{
    -webkit-text-fill-color:initial !important;
  }
  /* тема карточки из магазина — подсветкой за аватаром */
  html body .swipe-card.card-theme-fire{
    background:
      radial-gradient(120% 60% at 50% 0%, rgba(255,110,46,.22), transparent 62%),
      #0b0708 !important;
  }
  html body .swipe-card.card-theme-neon{
    background:
      radial-gradient(120% 60% at 50% 0%, rgba(0,214,255,.22), transparent 62%),
      #06101a !important;
  }
  html body .swipe-card.card-theme-aurora{
    background:
      radial-gradient(120% 60% at 50% 0%, rgba(106,255,187,.2), transparent 60%),
      radial-gradient(90% 50% at 50% 6%, rgba(167,118,255,.18), transparent 70%),
      #071510 !important;
  }
  html body .swipe-card.card-theme-hologram{
    background:
      radial-gradient(120% 60% at 50% 0%, rgba(224,172,255,.22), transparent 62%),
      radial-gradient(90% 50% at 50% 6%, rgba(118,220,255,.18), transparent 70%),
      #0c0916 !important;
  }
}

/* ---------- карточка «MatchMate в Telegram» на телефоне ---------- */
@media (max-width:760px){
  /* в match.css у рекламной карточки жёсткий max-height с !important —
     перебиваем более длинной цепочкой селекторов */
  html body .swipe-card.telegram-channel-card,
  html body.match-page .cards-container .swipe-card.telegram-channel-card,
  html body.match-page .cards-container.fit .swipe-card.telegram-channel-card{
    display:flex !important;flex-direction:column !important;
    height:100dvh !important;max-height:100dvh !important;min-height:0 !important;
    margin:0 !important;padding:0 !important;overflow:hidden !important;
    border-radius:0 !important;border:0 !important;
  }
  /* картинка занимает верхнюю треть, а не фиксированные пиксели */
  html body .telegram-channel-card .telegram-ad-visual{
    flex:none !important;
    height:36dvh !important;min-height:0 !important;max-height:36dvh !important;
    border-radius:0 !important;
  }
  html body .telegram-channel-card .telegram-ad-visual img{
    width:100% !important;height:100% !important;object-fit:cover !important;
  }
  /* текстовая часть тянется до низа, кнопки прижаты к нижнему краю */
  html body .telegram-channel-card .telegram-ad-info{
    flex:1 1 auto !important;min-height:0 !important;
    display:flex !important;flex-direction:column !important;
    justify-content:flex-start !important;align-items:stretch !important;
    gap:10px !important;
    padding:16px 16px calc(20px + env(safe-area-inset-bottom,0px)) !important;
    overflow-y:auto !important;
  }
  html body .telegram-channel-card .telegram-ad-actions,
  html body.match-page .cards-container .swipe-card.telegram-channel-card .telegram-ad-actions,
  html body.match-page .cards-container.fit .swipe-card.telegram-channel-card .telegram-ad-actions{
    margin-top:auto !important;
    display:grid !important;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr) !important;
    gap:10px !important;
  }
  html body .telegram-channel-card .telegram-ad-actions button,
  html body .telegram-channel-card .telegram-ad-actions a{
    height:48px !important;min-height:0 !important;border-radius:14px !important;font-size:14.5px !important;
  }
  html body .telegram-channel-card .telegram-ad-badge{
    top:calc(12px + env(safe-area-inset-top,0px)) !important;left:12px !important;
  }
  html body .telegram-channel-card .telegram-ad-points{
    gap:7px !important;
  }
  /* кнопок скип/лайк у рекламы нет — не оставляем под них пустое место */
  html body .telegram-channel-card .photo-actions{display:none !important}
}

/* =========================================================
   Анкета на телефоне v2: обложка из размытого фото, крупный
   аватар, аккуратные блоки, контакты с подписями, «Ещё» у
   описания и нижний док с кнопками.
   ========================================================= */
html body .mm-mp-backdrop,
html body .mm-contact-name,
html body .mm-bio-more{display:none !important}

@media (max-width:760px){
  /* ---------- обложка: фото игрока, размытое и затемнённое ---------- */
  html body .swipe-card > .mm-mp-backdrop{
    display:block !important;
    position:absolute !important;left:0 !important;right:0 !important;top:0 !important;
    height:340px !important;z-index:0 !important;pointer-events:none !important;
    background:var(--mm-photo, none) center 30% / cover no-repeat !important;
    filter:blur(26px) saturate(1.25) !important;
    transform:scale(1.25) !important;
    opacity:.55 !important;
    -webkit-mask-image:linear-gradient(180deg,#000 0%,rgba(0,0,0,.75) 45%,transparent 100%) !important;
    mask-image:linear-gradient(180deg,#000 0%,rgba(0,0,0,.75) 45%,transparent 100%) !important;
  }
  /* сетка поверх фона больше не нужна: обложка даёт глубину */
  html body .swipe-card::after{opacity:.5 !important}

  /* ---------- верхняя панель прозрачная, поверх обложки ---------- */
  html body .mm-mp-topbar{border-bottom:0 !important;padding-bottom:4px !important}
  html body .mm-mp-back,
  html body .mm-mp-filters{
    background:rgba(8,12,21,.55) !important;
    border-color:rgba(255,255,255,.14) !important;
    backdrop-filter:blur(8px) !important;-webkit-backdrop-filter:blur(8px) !important;
  }

  /* ---------- аватар крупнее, кольцо рамки и мягкое свечение ---------- */
  html body .card-photo{
    width:148px !important;height:148px !important;
    margin:10px auto 14px !important;
  }
  html body .card-photo img{width:148px !important;height:148px !important}
  html body .card-photo::before{inset:-6px !important}

  /* ---------- ник и чипы ---------- */
  html body .card-info{
    padding:4px 16px calc(118px + env(safe-area-inset-bottom,0px)) !important;gap:12px !important;
    /* текст мягко уходит под аватар при прокрутке, а не обрезается */
    -webkit-mask-image:linear-gradient(180deg,transparent 0,#000 14px) !important;
    mask-image:linear-gradient(180deg,transparent 0,#000 14px) !important;
  }
  html body .profile-headline{gap:10px !important;margin-bottom:4px !important}
  html body .card-info h3{
    font-size:27px !important;font-weight:900 !important;letter-spacing:-.01em !important;
    line-height:1.1 !important;text-shadow:0 4px 18px rgba(0,0,0,.45) !important;
  }
  html body .card-info .age,
  html body .card-info .badge.gender-badge{
    padding:5px 12px !important;
    background:rgba(8,12,21,.55) !important;
    border:1px solid rgba(255,255,255,.12) !important;
    color:#dbe6f5 !important;font-size:12.5px !important;
    backdrop-filter:blur(6px) !important;-webkit-backdrop-filter:blur(6px) !important;
  }

  /* ---------- блоки: стеклянные карточки без лишних рамок ---------- */
  html body .card-info .profile-bio,
  html body .mm-mp-games-section,
  html body .card-info .profile-contacts-section{
    padding:14px 15px !important;border-radius:18px !important;
    background:linear-gradient(180deg, rgba(20,29,46,.78), rgba(12,18,31,.78)) !important;
    border:1px solid rgba(255,255,255,.07) !important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.05), 0 10px 26px rgba(0,0,0,.22) !important;
  }
  html body .card-info .profile-section-title{
    margin:0 0 10px !important;font-size:11px !important;letter-spacing:.12em !important;color:#8ea3bf !important;
  }

  /* ---------- «О себе»: 4 строки, остальное по кнопке ---------- */
  html body .card-info .profile-bio p{
    display:-webkit-box !important;-webkit-box-orient:vertical !important;
    -webkit-line-clamp:4 !important;overflow:hidden !important;
    font-size:14.5px !important;line-height:1.55 !important;color:#dbe6f5 !important;
  }
  html body .card-info .profile-bio.is-open p{-webkit-line-clamp:unset !important;display:block !important}
  html body .card-info .profile-bio .mm-bio-more:not([hidden]){
    display:inline-flex !important;align-items:center !important;gap:6px !important;
    margin:10px 0 0 !important;padding:0 !important;border:0 !important;background:none !important;
    color:#6fdcff !important;font-size:13px !important;font-weight:800 !important;cursor:pointer !important;
  }
  html body .card-info .profile-bio .mm-bio-more::after{
    content:"" !important;width:7px !important;height:7px !important;
    border-right:2px solid currentColor !important;border-bottom:2px solid currentColor !important;
    transform:rotate(45deg) translateY(-2px) !important;
  }
  html body .card-info .profile-bio.is-open .mm-bio-more::after{transform:rotate(-135deg) translateY(-2px) !important}

  /* ---------- игры: крупные строки с рангом справа ---------- */
  html body .mm-mp-games{gap:8px !important}
  html body .mm-mp-game{
    min-height:56px !important;padding:9px 12px 9px 9px !important;gap:12px !important;
    border-radius:14px !important;
    background:rgba(255,255,255,.035) !important;
    border:1px solid rgba(255,255,255,.07) !important;
  }
  html body .mm-mp-game .game-icon{
    width:38px !important;height:38px !important;border-radius:11px !important;
    box-shadow:0 4px 12px rgba(0,0,0,.35) !important;
  }
  html body .mm-mp-game-name{font-size:15px !important;font-weight:800 !important}
  html body .mm-mp-game-rank{
    gap:8px !important;padding:5px 10px 5px 6px !important;border-radius:11px !important;
    background:rgba(0,0,0,.25) !important;border:1px solid rgba(255,255,255,.07) !important;
    color:#eaf1ff !important;font-size:13px !important;font-weight:800 !important;
  }
  html body .mm-mp-game-rank .rank-icon,
  html body .mm-mp-game-rank .rank-icon-image-wrap,
  html body .mm-mp-game-rank img,
  html body .mm-mp-game-rank .rank-icon-img{width:32px !important;height:32px !important}
  html body .mm-mp-game-rank.is-empty{
    padding:5px 10px !important;background:rgba(255,255,255,.04) !important;
    border:1px dashed rgba(255,255,255,.12) !important;color:#8193ab !important;font-size:12px !important;
  }

  /* ---------- контакты: кнопки с иконкой и названием ---------- */
  html body .card-info .profile-contacts-section .card-contacts{
    display:flex !important;flex-wrap:wrap !important;gap:8px !important;
  }
  html body .card-info .profile-contacts-section .contact-link,
  html body .card-info .profile-contacts-section .contact-tag{
    display:inline-flex !important;align-items:center !important;gap:8px !important;
    width:auto !important;height:40px !important;min-width:0 !important;
    padding:0 14px 0 10px !important;border-radius:12px !important;
    background:rgba(255,255,255,.05) !important;
    border:1px solid rgba(255,255,255,.1) !important;
    color:#eaf1ff !important;text-decoration:none !important;
    font-size:13.5px !important;font-weight:800 !important;
  }
  html body .card-info .profile-contacts-section .contact-icon{
    flex:none !important;width:20px !important;height:20px !important;margin:0 !important;
  }
  html body .card-info .profile-contacts-section .mm-contact-name{display:inline !important}
  html body .card-info .profile-contacts-section .contact-link.discord,
  html body .card-info .profile-contacts-section .contact-tag.discord{border-color:rgba(114,137,255,.35) !important;background:rgba(88,101,242,.12) !important}
  html body .card-info .profile-contacts-section .contact-link.telegram{border-color:rgba(64,179,255,.35) !important;background:rgba(42,171,238,.12) !important}
  html body .card-info .profile-contacts-section .contact-link.steam{border-color:rgba(160,190,220,.3) !important;background:rgba(102,192,244,.08) !important}
  html body .card-info .profile-contacts-section .contact-copy.copied .mm-contact-name{display:none !important}

  /* ---------- нижний док с кнопками ----------
     [class] поднимает вес выше правила, которое прячет ::before у карточек
     с рамкой из магазина; у рекламы Telegram своих кнопок нет. */
  html body .swipe-card:not(.telegram-channel-card)[class]::before{
    content:"" !important;display:block !important;
    position:absolute !important;left:0 !important;right:0 !important;bottom:0 !important;top:auto !important;
    height:calc(130px + env(safe-area-inset-bottom,0px)) !important;
    z-index:20 !important;pointer-events:none !important;
    background:linear-gradient(180deg, rgba(5,8,15,0) 0%, rgba(5,8,15,.86) 45%, #05080f 100%) !important;
    border:0 !important;border-radius:0 !important;box-shadow:none !important;
    -webkit-mask:none !important;mask:none !important;animation:none !important;
  }
  html body .swipe-card > .photo-actions{
    gap:34px !important;padding:0 !important;
    background:none !important;border:0 !important;box-shadow:none !important;
    backdrop-filter:none !important;-webkit-backdrop-filter:none !important;
  }
  html body .swipe-card > .photo-actions .action-btn{
    width:68px !important;height:68px !important;
    transition:transform .15s ease, box-shadow .15s ease !important;
  }
  html body .swipe-card > .photo-actions .pass-btn{
    background:rgba(24,12,17,.94) !important;border:1.5px solid rgba(255,91,107,.6) !important;
    color:#ff5b6b !important;
  }
  html body .swipe-card > .photo-actions .like-btn{
    width:76px !important;height:76px !important;
    background:linear-gradient(145deg,#2fe38a,#18b96b) !important;border:0 !important;
    color:#fff !important;
    box-shadow:0 14px 30px rgba(24,185,107,.38), 0 0 0 5px rgba(46,213,115,.12) !important;
  }
  html body .swipe-card > .photo-actions .like-btn .action-icon{fill:#fff !important;stroke:none !important}
  html body .swipe-card > .photo-actions .action-icon{width:28px !important;height:28px !important}
}

/* ---------- ПК: длинная анкета прокручивается внутри панели ----------
   Много игр и большое «О себе» раньше выталкивали «Ранги» и «Связь»
   за нижний край карточки, где они обрезались. */
@media (min-width:761px){
  html body .cards-container .swipe-card .card-info{
    overflow-y:auto !important;overflow-x:hidden !important;
    overscroll-behavior:contain !important;
    scrollbar-width:thin !important;scrollbar-color:rgba(255,255,255,.2) transparent !important;
  }
  html body .cards-container .swipe-card .card-info::-webkit-scrollbar{width:6px}
  html body .cards-container .swipe-card .card-info::-webkit-scrollbar-thumb{background:rgba(255,255,255,.2);border-radius:3px}
}