/* X-CLUSIVE MODULE NOTICE: module globally updated by @neither0001. */
.pf-ava[data-profile-rank-trigger],
.pf-name-row[data-profile-rank-trigger]{
  cursor:pointer;
}

.pf-ava[data-profile-rank-trigger]:focus-visible,
.pf-name-row[data-profile-rank-trigger]:focus-visible{
  outline:none;
}

.pf-name-row[data-profile-rank-trigger]{
  width:fit-content;
  max-width:100%;
}

.profile-rank-hover-floating{
  position:fixed;
  left:14px;
  top:14px;
  z-index:9999;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity var(--transition-duration), visibility var(--transition-duration), transform var(--transition-duration);
  transform:translateY(6px);
}

.profile-rank-hover-floating.is-visible{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateY(0);
}

.tippy-box[data-theme~='profile-rank-hover']{
  background:var(--card);
  color:var(--text-default);
  border:1px solid var(--transparent-20-w);
  border-radius:var(--br-16);
  box-shadow:var(--box-shadow-b-30);
}

.tippy-box[data-theme~='profile-rank-hover'][data-placement^='top'] > .tippy-arrow::before{
  border-top-color:var(--card);
}

.tippy-box[data-theme~='profile-rank-hover'][data-placement^='bottom'] > .tippy-arrow::before{
  border-bottom-color:var(--card);
}

.tippy-box[data-theme~='profile-rank-hover'][data-placement^='left'] > .tippy-arrow::before{
  border-left-color:var(--card);
}

.tippy-box[data-theme~='profile-rank-hover'][data-placement^='right'] > .tippy-arrow::before{
  border-right-color:var(--card);
}

.tippy-box[data-theme~='profile-rank-hover'] > .tippy-content{
  padding:0;
}

.profile-rank-hover{
  width:min(420px, calc(100vw - 28px));
  max-height:min(78vh, 720px);
  display:flex;
  flex-direction:column;
  gap:14px;
  padding:14px;
  overflow-y:auto;
  overscroll-behavior:contain;
  background:var(--card);
  border:1px solid var(--transparent-20-w);
  border-radius:var(--br-16);
  box-shadow:var(--box-shadow-b-30);
}

.profile-rank-hover::-webkit-scrollbar{
  width:8px;
}

.profile-rank-hover::-webkit-scrollbar-track{
  background:transparent;
}

.profile-rank-hover::-webkit-scrollbar-thumb{
  background:var(--transparent-20-w);
  border-radius:var(--br-10);
}

.profile-rank-hover::-webkit-scrollbar-thumb:hover{
  background:var(--span-middle);
}

.profile-rank-hover__head{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.profile-rank-hover__current{
  display:grid;
  grid-template-columns:auto minmax(0, 1fr);
  gap:12px;
  align-items:center;
}

.profile-rank-hover__current-icon{
  width:56px;
  height:56px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  border-radius:var(--br-12);
  background:var(--input-form);
  border:1px solid var(--transparent-10-w);
}

.profile-rank-hover__current-icon img,
.profile-rank-hover__current-icon svg{
  width:46px;
  height:46px;
  display:block;
  object-fit:contain;
}

.profile-rank-hover__current-meta{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:4px;
}

.profile-rank-hover__eyebrow{
  font-size:var(--font-size-xs);
  color:var(--text-secondary);
}

.profile-rank-hover__title{
  font-size:var(--font-size-m);
  font-weight:var(--font-weight-7);
  color:var(--text-default);
  line-height:1.2;
}

.profile-rank-hover__value{
  font-size:var(--font-size-s);
  color:var(--text-custom);
}

.profile-rank-hover__progress{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:12px;
  border-radius:var(--br-12);
  background:var(--input-form);
  border:1px solid var(--transparent-10-w);
}

.profile-rank-hover__progress-bar{
  width:100%;
  height:8px;
  overflow:hidden;
  border-radius:var(--br-10);
  background:var(--button);
}

.profile-rank-hover__progress-fill{
  width:var(--pf-rank-progress, 0%);
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg, var(--money-bg) 0%, var(--money) 100%);
  box-shadow:0 0 12px var(--money-bg);
  transition:width var(--transition-duration), min-width var(--transition-duration);
}

.profile-rank-hover__progress-meta{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:10px;
}

.profile-rank-hover__progress-item{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:4px;
}

.profile-rank-hover__progress-label{
  font-size:var(--font-size-xs);
  color:var(--text-secondary);
}

.profile-rank-hover__progress-value{
  font-size:var(--font-size-s);
  color:var(--text-default);
  word-break:break-word;
}

.profile-rank-hover__section-title{
  font-size:var(--font-size-s);
  color:var(--text-secondary);
}

.profile-rank-hover__level{
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 8px;
  border-radius:var(--br-12);
  background:var(--button);
  border:1px solid var(--transparent-10-w);
  transition:transform var(--transition-duration), background var(--transition-duration), border-color var(--transition-duration), opacity var(--transition-duration);
}

.profile-rank-hover__level-icon{
  width:40px;
  height:40px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.profile-rank-hover__level-icon img,
.profile-rank-hover__level-icon svg{
  width:40px;
  height:40px;
  display:block;
  object-fit:contain;
}

.profile-rank-hover__level-num{
  font-size:var(--font-size-xs);
  color:var(--text-default);
  text-align:center;
  line-height:1.2;
}

.profile-rank-hover__level-value{
  font-size:var(--font-size-xxs);
  color:var(--text-secondary);
  text-align:center;
  line-height:1.2;
}

.profile-rank-hover__level.is-passed{
  background:var(--input-form);
  border-color:var(--transparent-20-w);
}

.profile-rank-hover__level.is-current{
  background:var(--span-middle);
  border-color:var(--span-half);
  transform:translateY(-1px);
}

.profile-rank-hover__level.is-current .profile-rank-hover__level-num,
.profile-rank-hover__level.is-current .profile-rank-hover__level-value{
  color:var(--text-default);
}

.profile-rank-hover__level.is-locked{
  opacity:.62;
}

.profile-rank-hover__level.is-max{
  box-shadow:inset 0 0 0 1px var(--span-half);
}

@media (max-width: 900px){
  .profile-rank-hover__levels{
    grid-template-columns:repeat(4, minmax(0, 1fr));
  }
}

.profile-rank-hover {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 420px;
  max-width: min(420px, calc(100vw - 24px));
  max-height: min(78vh, 760px);
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--transparent-10-w);
  border-radius: var(--br-16);
  box-shadow: var(--box-shadow-b-30);
  color: var(--text-default);
  overflow: hidden;
}

.profile-rank-hover__head {
  flex: 0 0 auto;
}

.profile-rank-hover__section-title {
  flex: 0 0 auto;
}

.profile-rank-hover__levels {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-content: start;
}

.profile-rank-hover__levels::-webkit-scrollbar {
  width: 6px;
}

.profile-rank-hover__levels::-webkit-scrollbar-track {
  background: transparent;
}

.profile-rank-hover__levels::-webkit-scrollbar-thumb {
  background: var(--transparent-20-w);
  border-radius: var(--br-10);
}

.profile-rank-hover__levels::-webkit-scrollbar-thumb:hover {
  background: var(--span-half);
}