/* =========================================================
   MatchMate — профиль. Слой поверх profile_v4 / profile-layout:
   блоки как на остальных страницах, «Игры и ранги» не внизу.
   ========================================================= */
html body .profile-page{
  --p-panel:rgba(9,13,23,.88);
  --p-surface:rgba(255,255,255,.045);
  --p-line:rgba(255,255,255,.09);
  --p-line-soft:rgba(255,255,255,.07);
  --p-text:#eaf1ff;
  --p-dim:#93a5be;
  --p-accent:#3fd7f5;
}

/* две колонки на ПК: игры и ранги видно сразу, без прокрутки */
@media (min-width:901px){
  html body .profile-page .profile-content{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
    align-items:start !important;
    gap:14px !important;
    margin-top:16px !important;margin-bottom:24px !important;padding-bottom:0 !important;
  }
  /* «Игры и ранги» — левая колонка, «О себе» — правая */
  html body .profile-page .profile-content .profile-about-card{order:2 !important}
  html body .profile-page .profile-content .profile-card:not(.profile-about-card){order:1 !important}
}
@media (max-width:900px){
  html body .profile-page .profile-content{
    display:flex !important;flex-direction:column !important;gap:12px !important;
    margin-top:14px !important;margin-bottom:20px !important;
  }
  html body .profile-page .profile-content .profile-about-card{order:2 !important}
  html body .profile-page .profile-content .profile-card:not(.profile-about-card){order:1 !important}
}

/* сами блоки — как везде на сайте */
html body .profile-page .profile-content .profile-card{
  margin:0 !important;padding:16px !important;
  border-radius:18px !important;
  background:var(--p-panel) !important;
  border:1px solid var(--p-line-soft) !important;
  box-shadow:none !important;
  backdrop-filter:none !important;-webkit-backdrop-filter:none !important;
  transition:none !important;transform:none !important;
}
html body .profile-page .profile-content .profile-card:hover{
  transform:none !important;border-color:var(--p-line-soft) !important;box-shadow:none !important;
}
html body .profile-page .profile-content .profile-card::before,
html body .profile-page .profile-content .profile-card:hover::before{display:none !important;opacity:0 !important}

html body .profile-page .profile-content .profile-card h3{
  margin:0 0 12px !important;padding:0 !important;
  font-size:11px !important;font-weight:800 !important;
  letter-spacing:.1em !important;text-transform:uppercase !important;
  color:var(--p-dim) !important;
}
html body .profile-page .profile-content .profile-card h3::after{display:none !important;content:none !important}

html body .profile-page .profile-about-card #bio{
  margin:0 !important;
  font-size:14px !important;line-height:1.55 !important;color:#cfdcee !important;
  overflow-wrap:anywhere !important;word-break:break-word !important;
}
html body .profile-page .profile-facts{margin-top:12px !important;gap:7px !important}
html body .profile-page .profile-fact{
  min-height:0 !important;height:30px !important;padding:0 11px !important;
  border-radius:999px !important;
  background:var(--p-surface) !important;
  border:1px solid var(--p-line-soft) !important;
  color:var(--p-dim) !important;font-size:12.5px !important;font-weight:700 !important;
}
html body .profile-page .profile-card-subsection{
  margin-top:14px !important;padding-top:13px !important;
  border-top:1px solid var(--p-line-soft) !important;
}
html body .profile-page .profile-card-subsection h4{
  margin:0 0 10px !important;
  font-size:11px !important;font-weight:800 !important;
  letter-spacing:.1em !important;text-transform:uppercase !important;color:var(--p-dim) !important;
}
html body .profile-page .profile-content .badges{
  display:flex !important;flex-wrap:wrap !important;gap:7px !important;margin:0 !important;
}
html body .profile-page .profile-content #ranks{margin-top:11px !important;padding-top:11px !important;border-top:1px solid var(--p-line-soft) !important}

@media (max-width:900px){
  /* на телефоне содержимое блоков выравниваем по левому краю, а не по центру */
  html body .profile-page .profile-content .profile-card,
  html body .profile-page .profile-content .profile-card h3,
  html body .profile-page .profile-content .profile-card h4,
  html body .profile-page .profile-about-card #bio{text-align:left !important}
  html body .profile-page .profile-content .badges,
  html body .profile-page .profile-facts{justify-content:flex-start !important}
}
@media (max-width:760px){
  html body .profile-page .profile-content .profile-card{padding:14px !important;border-radius:16px !important}
  html body .profile-page .profile-about-card #bio{font-size:13.5px !important}
}
