.rank-back-to-top-v965 {
  --rank-top-ink: #10223d;
  --rank-top-mint: #12b98a;
  --rank-top-blue: #506fe7;
  position: fixed;
  right: max(22px, calc((100vw - 1540px) / 2 + 18px));
  bottom: 106px;
  z-index: 980;
  display: inline-flex;
  width: 58px;
  height: 58px;
  align-items: center;
  flex-direction: row-reverse;
  justify-content: flex-start;
  gap: 0;
  overflow: hidden;
  padding: 8px;
  border: 1px solid rgba(94, 119, 168, .28);
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(241, 251, 248, .97) 48%, rgba(237, 242, 255, .98));
  box-shadow: 0 15px 34px rgba(29, 48, 83, .18), 0 4px 12px rgba(31, 67, 112, .12), inset 0 1px 0 rgba(255, 255, 255, .95);
  color: var(--rank-top-ink);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(.88);
  transition: width .24s ease, opacity .22s ease, transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
}

.rank-back-to-top-v965::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  background: radial-gradient(circle at 22% 15%, rgba(255,255,255,.95), transparent 38%);
  pointer-events: none;
}

.rank-back-to-top-v965.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.rank-back-to-top-v965:hover,
.rank-back-to-top-v965:focus-visible {
  width: 126px;
  gap: 9px;
  border-color: rgba(80, 111, 231, .44);
  box-shadow: 0 18px 40px rgba(35, 59, 102, .23), 0 6px 16px rgba(18, 185, 138, .14), inset 0 1px 0 #fff;
  outline: none;
  transform: translateY(-3px);
}

.rank-back-to-top-icon-v965 {
  position: relative;
  z-index: 1;
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--rank-top-mint), var(--rank-top-blue));
  box-shadow: 0 8px 18px rgba(71, 102, 210, .28), inset 0 1px 0 rgba(255,255,255,.38);
  color: #fff;
}

.rank-back-to-top-icon-v965 svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
}

.rank-back-to-top-label-v965 {
  position: relative;
  z-index: 1;
  width: 0;
  overflow: hidden;
  color: var(--rank-top-ink);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -.03em;
  opacity: 0;
  white-space: nowrap;
  transition: width .2s ease, opacity .18s ease;
}

.rank-back-to-top-v965:hover .rank-back-to-top-label-v965,
.rank-back-to-top-v965:focus-visible .rank-back-to-top-label-v965 {
  width: 59px;
  opacity: 1;
}

.rank-back-to-top-v965:active {
  transform: translateY(-1px) scale(.96);
}

@media (max-width: 720px) {
  .rank-back-to-top-v965 {
    right: 14px;
    bottom: 92px;
    width: 54px;
    height: 54px;
    padding: 7px;
  }
  .rank-back-to-top-v965:hover,
  .rank-back-to-top-v965:focus-visible {
    width: 54px;
    gap: 0;
  }
  .rank-back-to-top-icon-v965 {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }
  .rank-back-to-top-label-v965,
  .rank-back-to-top-v965:hover .rank-back-to-top-label-v965,
  .rank-back-to-top-v965:focus-visible .rank-back-to-top-label-v965 {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rank-back-to-top-v965,
  .rank-back-to-top-label-v965 {
    transition: none;
  }
}
