.rank-climb[hidden],
.rank-climb [hidden],
.rank-climb-mobile {
  display: none;
}
.game-intro .rank-climb[data-guide-rank]:not([hidden]) {
  display: inline-flex;
  margin-block-start: 6px;
}
.rank-climb {
  position: relative;
  isolation: isolate;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: max-content;
  max-width: 100%;
  min-height: 32px;
  padding: 4px 9px;
  border: 1px solid var(--website-line-147-187-100-0_5019607843137255, #93bb6480);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--website-surface-51-70-42-1, #33462a), var(--website-surface-28-42-31-1, #1c2a1f) 78%);
  color: var(--website-ink-230-244-211-1, #e6f4d3);
  box-shadow:
    inset 0 1px var(--website-shade-212-255-165-0_10196078431372549, #d4ffa51a),
    0 0 12px var(--website-shade-173-216-103-0_13333333333333333, #add86722);
  font-size: 11px;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
}
.rank-climb:hover,
.rank-climb:focus-visible {
  border-color: var(--website-line-220-255-157-1, #dcff9d);
  color: var(--website-ink-246-255-227-1, #f6ffe3);
}
.rank-climb:focus-visible {
  outline: 2px solid var(--website-line-220-255-157-1, #dcff9d);
  outline-offset: 3px;
}
.rank-climb .rank-climb-icon {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--website-ink-187-237-130-1, #bbed82);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rank-climb [data-rank-value] {
  margin: 0;
  color: var(--website-ink-232-255-169-1, #e8ffa9);
  font-size: 14px;
  line-height: 1.15;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.rank-climb [data-rank-gain],
.rank-climb-row-gain {
  padding: 2px 4px;
  border-radius: 4px;
  background: var(--website-surface-219-255-152-1, #dbff98);
  color: var(--website-ink-38-52-21-1, #263415);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.15;
}
.rank-climb-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.rank-climb-sparks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.rank-climb-sparks i {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 1px;
  background: var(--website-surface-242-255-178-1, #f2ffb2);
  box-shadow: 0 0 7px var(--website-shade-220-255-157-1, #dcff9d);
}
.rank-climb-sparks i:nth-child(1) {
  --spark-x: -48px;
  --spark-y: -23px;
}
.rank-climb-sparks i:nth-child(2) {
  --spark-x: -35px;
  --spark-y: 24px;
}
.rank-climb-sparks i:nth-child(3) {
  --spark-x: -62px;
  --spark-y: 6px;
}
.rank-climb-sparks i:nth-child(4) {
  --spark-x: 49px;
  --spark-y: -24px;
}
.rank-climb-sparks i:nth-child(5) {
  --spark-x: 37px;
  --spark-y: 24px;
}
.rank-climb-sparks i:nth-child(6) {
  --spark-x: 65px;
  --spark-y: 3px;
}
.rank-climb-gained {
  border-color: var(--website-line-220-255-157-1, #dcff9d);
  background: linear-gradient(135deg, var(--website-surface-91-119-51-1, #5b7733), #2c4f31 72%);
  box-shadow:
    inset 0 0 12px var(--website-shade-231-255-179-0_18823529411764706, #e7ffb330),
    0 0 12px var(--website-shade-201-255-119-0_3137254901960784, #c9ff7750);
}
.rank-climb-gained::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(112deg, transparent 20%, var(--website-surface-246-255-202-0_611764705882353, #f6ffca9c) 48%, transparent 68%);
  background-size: 270% 100%;
  opacity: 0;
  pointer-events: none;
}
.play-page .mini-leader.you:not(:last-child) {
  margin-top: 0;
}
.play-page .mini-leader.you.rank-climb-gained {
  position: relative;
  isolation: isolate;
  border-color: var(--website-line-213-255-147-1, #d5ff93);
  background: linear-gradient(100deg, var(--website-surface-64-87-43-1, #40572b), var(--website-surface-41-56-33-1, #293821) 78%);
  box-shadow:
    inset 0 0 13px var(--website-shade-219-255-155-0_21176470588235294, #dbff9b36),
    0 0 12px var(--website-shade-199-255-112-0_26666666666666666, #c7ff7044);
}
.rank-climb-gained .mini-rank {
  color: var(--website-ink-237-255-184-1, #edffb8);
  font-weight: 800;
}
.rank-climb-row-gain {
  flex: none;
}
.mini-leader .rank-climb-sparks {
  left: 7px;
  width: 68px;
  right: auto;
}
.mini-leader .rank-climb-sparks i {
  scale: 0.8;
}
@media (prefers-reduced-motion: no-preference) {
  .rank-climb-gained {
    animation: rank-climb-pulse 1.25s ease-out both;
  }
  .rank-climb-gained::after {
    animation: rank-climb-sweep 0.4s ease-out both;
  }
  .rank-climb-gained [data-rank-value] {
    animation: rank-climb-number 0.48s cubic-bezier(0.19, 0.85, 0.4, 1.2) both;
  }
  .rank-climb-gained .rank-climb-sparks i {
    display: block;
    animation: rank-climb-spark 0.85s ease-out both;
  }
  .rank-climb-gained .rank-climb-sparks i:nth-child(even) {
    animation-delay: 0.09s;
  }
  .mini-leader.you.rank-climb-gained:not(.rank-climb-settled) {
    animation: rank-climb-row-pulse 1.25s ease-out both;
  }
  .rank-climb-settled,
  .rank-climb-settled::after,
  .rank-climb-settled .rank-climb-sparks i {
    animation: none;
  }
  .rank-climb-settled .rank-climb-sparks {
    display: none;
  }
}
@keyframes rank-climb-row-pulse {
  28% {
    box-shadow:
      inset 0 0 19px var(--website-shade-229-255-178-0_4588235294117647, #e5ffb275),
      0 0 18px var(--website-shade-199-255-112-0_5019607843137255, #c7ff7080);
  }
}
@keyframes rank-climb-pulse {
  0% {
    transform: scale(0.98);
  }
  25% {
    transform: scale(1.06);
    box-shadow:
      inset 0 0 16px var(--website-shade-242-255-181-0_5843137254901961, #f2ffb595),
      0 0 23px var(--website-shade-189-255-136-0_7294117647058823, #bdff88ba),
      0 0 2px 2px var(--website-shade-229-255-166-0_611764705882353, #e5ffa69c);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes rank-climb-sweep {
  0% {
    background-position: 100% 0;
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  100% {
    background-position: 0 0;
    opacity: 0;
  }
}
@keyframes rank-climb-number {
  from {
    opacity: 0.45;
    transform: translateY(5px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes rank-climb-spark {
  0% {
    opacity: 0;
    transform: rotate(45deg) scale(0.4);
  }
  19% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--spark-x), var(--spark-y)) rotate(110deg) scale(0.8);
  }
}
@media (max-width: 700px), (max-width: 950px) and (max-height: 500px) {
  body.play-page .rank-climb-mobile:not([hidden]) {
    display: inline-flex;
    grid-column: 1/-1;
    grid-row: 4;
    justify-self: center;
  }
  body.play-page.ranked-mode .mobile-game-summary {
    grid-template-rows: 12px 38px 13px 29px;
  }
  .rank-climb-mobile {
    min-height: 26px;
    font-size: 10px;
  }
  .rank-climb-mobile [data-rank-value] {
    font-size: 12px;
  }
}
@media (max-width: 700px) and (max-height: 590px), (max-width: 950px) and (max-height: 500px) {
  body.play-page.ranked-mode .mobile-game-summary {
    grid-template-rows: 11px 36px 28px;
  }
  body.play-page.ranked-mode #mobile-play-note {
    grid-column: 1/-1;
    justify-self: end;
    margin-right: calc(50% + 4px);
    white-space: nowrap;
  }
  body.play-page .rank-climb-mobile:not([hidden]) {
    grid-row: 3;
    justify-self: start;
    margin-left: calc(50% + 4px);
  }
}

@media (min-width: 701px) and (min-height: 501px), (min-width: 951px) {
  .play-page .game-controls {
    position: relative;
    inset-inline-start: -3px;
  }
  .play-page .game-controls .game-intro {
    max-width: 100%;
    margin: 0 0 clamp(12px, 2.2dvh, 20px);
  }
  .play-page.ranked-mode #game-title:has(.heat-score) {
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    margin-top: 7px;
    padding: 1px 7px;
    font-size: clamp(17px, 2.4dvh, 23px);
  }
}
