.topbar .userbox .vmta-header-pm {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 13px;
  color: rgba(236, 240, 233, .82);
  background: rgba(18, 21, 17, .72);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color .2s ease, background-color .2s ease, color .2s ease, transform .2s ease;
}

.topbar .userbox .vmta-header-pm:hover,
.topbar .userbox .vmta-header-pm:focus-visible {
  color: #c8e97b;
  transform: translateY(-1px);
  background: rgba(36, 42, 28, .9);
  border-color: rgba(166, 206, 57, .38);
}

.topbar .userbox .vmta-header-pm-active {
  color: #a6ce39;
}

.topbar .vmta-header-pm-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  border-radius: 20px;
  background: #a6ce39;
  border: 2px solid #161915;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .32);
  font-size: 10px;
  line-height: 1;
  font-weight: 750;
  color: #141a0b;
  pointer-events: none;
}

.topbar .user-menu-toggle .vmta-header-identity {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  line-height: 1.1;
  text-align: left;
}

.topbar .user-menu-toggle .vmta-header-identity .nick {
  max-width: 128px;
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.topbar .user-menu-toggle .vmta-header-rank {
  display: block;
  max-width: 128px;
  color: var(--vmta-header-rank-color, #a6ce39);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: .95;
}

.topbar .vmta-header-dropdown-rank {
  margin-top: 3px;
  color: var(--vmta-header-rank-color, #a6ce39);
  font-size: 12px;
  font-weight: 650;
}

.topbar .userbox .vmta-header-pm:focus-visible {
  outline: 2px solid #a6ce39;
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .topbar .userbox .vmta-header-pm {
    flex-basis: 38px;
    width: 38px;
    min-width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .topbar .user-menu-toggle .vmta-header-identity {
    display: none;
  }
}

@media (max-width: 375px) {
  .topbar .userbox .vmta-header-pm {
    flex-basis: 35px;
    width: 35px;
    min-width: 35px;
    height: 35px;
  }

  .topbar .brand-logo {
    width: min(106px, 30vw);
  }

  .topbar .userbox {
    gap: 3px;
  }

  .topbar .user-menu-toggle {
    padding-inline: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .topbar .userbox .vmta-header-pm {
    transition: none;
  }
}

@media (max-width: 340px) {
  .topbar .brand-logo {
    width: min(85px, 26vw);
  }
}
