.root {
  position: relative;
  width: 100%;
}

.slider {
  touch-action: none;
  cursor: grab;

  position: relative;

  overflow: hidden;

  height: 3rem;

  // Dark overlay that dims dots except at center, creating a spotlight effect
  &::after {
    pointer-events: none;
    content: '';

    position: absolute;
    z-index: 2;
    top: 2rem;
    right: 0;
    left: 0;

    height: 0.25rem;

    background: radial-gradient(0.75rem 50% at center, transparent, rgba(0, 0, 0, 0.65));
  }

  &:active {
    cursor: grabbing;
  }
}

.track {
  will-change: transform;

  position: absolute;
  top: 0;
  left: 50%;

  height: 100%;
}

.labelsRow {
  position: relative;
  height: 1.25rem;
}

.label,
.labelActive {
  position: absolute;
  top: 0;
  transform: translateX(-50%);

  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;

  &::after {
    content: '°';
    position: absolute;
    top: -0.25rem;
    right: -0.375rem;
  }
}

.labelActive {
  font-size: 0.875rem;
  font-weight: var(--font-weight-semibold);
  color: #fff;
}

.centerIndicator {
  pointer-events: none;

  position: absolute;
  z-index: 1;
  top: 1.375rem;
  left: 50%;
  transform: translateX(-50%);

  width: 0;
  height: 0;
  border-right: 0.25rem solid transparent;
  border-bottom: 0.3125rem solid #fff;
  border-left: 0.25rem solid transparent;
}

.dotsRow {
  position: absolute;
  top: 2rem;
  // 91 dots spanning -90° to 90° every 2°, at 5px/degree = 10px spacing
  // Offset by half a tile so first dot lands at -90° position
  left: -28.4375rem;

  width: 56.875rem;
  height: 0.25rem;

  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0.0625rem, transparent 0.0625rem);
  background-size: 0.625rem 0.25rem;
}
