.progress-pill {
  position: fixed;
  left: 50%;
  bottom: 4.5rem;
  z-index: 24;
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem .75rem .45rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(244,244,244,.64);
  backdrop-filter: blur(14px);
  transform: translateX(-50%);
  visibility: visible;
  transition: opacity 180ms var(--ease), bottom 360ms var(--ease), transform 220ms var(--ease), visibility 0s;
}

body:not(.is-home) .progress-pill,
body.is-leaving-home .progress-pill,
body.is-returning-home .progress-pill,
body.is-restoring-home .progress-pill {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translateX(-50%) translateY(1rem) scale(.96);
  transition: opacity 180ms var(--ease), bottom 360ms var(--ease), transform 220ms var(--ease), visibility 0s linear 220ms;
}

.counter {
  min-width: 3.7rem;
  color: var(--muted);
  font-size: .9rem;
  white-space: nowrap;
}

.thumbs {
  display: flex;
  padding: .3rem .25rem;
}

.thumb {
  position: relative;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-left: -.65rem;
  border: 2px solid var(--bg);
  border-radius: 999px;
  background: var(--thumb-bg, #111);
  color: white;
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 700;
  transition: margin 450ms var(--ease), border-radius 450ms var(--ease), transform 450ms var(--ease);
}

.thumb:first-child {
  margin-left: 0;
}

.progress-pill:hover .thumb {
  margin-left: .12rem;
}

.thumb:hover,
.thumb.is-active {
  border-radius: .55rem;
  transform: translateY(-1px);
}

.thumb-label {
  position: absolute;
  left: 50%;
  bottom: calc(100% + .7rem);
  box-sizing: border-box;
  max-width: min(16rem, calc(100vw - 1rem));
  padding: .3rem .5rem;
  border-radius: .35rem;
  background: rgba(0,0,0,.82);
  color: white;
  font-size: .72rem;
  line-height: 1.12;
  opacity: 0;
  pointer-events: none;
  overflow-wrap: break-word;
  text-align: center;
  transform: translateX(-50%) translateY(4px);
  transition: opacity 180ms var(--ease), transform 180ms var(--ease);
}

.thumb:nth-child(-n + 2) .thumb-label {
  left: 0;
  transform: translateY(4px);
}

.thumb:nth-last-child(-n + 2) .thumb-label {
  left: auto;
  right: 0;
  transform: translateY(4px);
}

.thumb:hover .thumb-label {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.thumb:nth-child(-n + 2):hover .thumb-label,
.thumb:nth-last-child(-n + 2):hover .thumb-label {
  transform: translateY(0);
}

.socials {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 24;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.socials a {
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border: 1px solid rgba(0,0,0,.6);
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--mono);
  font-size: .62rem;
  transition: background 250ms var(--ease), transform 250ms var(--ease);
}

.socials a:hover {
  background: rgba(0,0,0,.08);
  transform: translateY(-1px);
}

.cursor-label {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  box-sizing: border-box;
  max-width: min(260px, calc(100vw - 1rem));
  overflow: hidden;
  padding: .48rem .72rem;
  border-radius: .5rem;
  background: #f04405;
  color: white;
  font-family: var(--font);
  font-size: .82rem;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  text-overflow: ellipsis;
  opacity: 0;
  pointer-events: none;
  transform: scale(.96);
  transform-origin: left top;
  transition:
    opacity 260ms var(--ease),
    transform 420ms var(--ease);
}

.cursor-label.is-visible {
  opacity: 1;
  transform: scale(1);
}

@media (max-width: 760px), (hover: none), (pointer: coarse) {
  .cursor-label {
    display: none;
  }
}
