:root {
  --black: #121212;
  --beige400: #DCD8D3;
  --beige100: #F1F0EA;
  --beige300: #CFCFCF;
  --pureWhite: #FFFFFF;
  --grey: #545454;
  --red: #F95D3B;
  --enterBorder: #0D0D0D;
  --enterAlphaHover: 70%;
}

@property --ht-gauge {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}
.ht-track {
  touch-action: none;
  cursor: grab;
}
.ht-track.is-rotating {
  cursor: grabbing;
}

.ht-track {
  box-shadow: none;
}
.ht-track::before {
  display: none;
}

.ht-ticks,
.ht-gauge {
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  pointer-events: none;
}

.ht-ring {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  pointer-events: none;
  background-color: #1C1B1B;
  box-shadow: inset 0 0 45px rgba(84, 80, 76, 0.2);
}
.ht-ring::before {
  content: "";
  position: absolute;
  inset: 5px;
  padding: 1px;
  border-radius: 50%;
  background: radial-gradient(circle at 70% 5%, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 45%), radial-gradient(circle at 5% 60%, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 40%), radial-gradient(circle at 80% 90%, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 40%), rgba(255, 255, 255, 0.1);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}

.ht-ticks {
  will-change: transform;
}

.ht-tick {
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  margin-left: -0.5px;
  transform: rotate(calc(var(--i) * 360deg / 36));
  pointer-events: none;
}
.ht-tick::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11.5px;
  width: 100%;
  height: 12px;
  background-color: #FFFFFF;
  opacity: var(--a, 0.35);
}
.ht-tick::after {
  content: "";
  position: absolute;
  left: 0;
  top: 11.5px;
  width: 100%;
  height: 12px;
  background-color: #FFFFFF;
  opacity: 0;
  animation: htTickSweep 5s linear infinite;
  animation-delay: calc(var(--i) * 0.9s / 36);
}
.ht-tick.lit::before, .ht-tick.gauge::before {
  background-color: var(--red);
  opacity: 1;
}

@keyframes htTickSweep {
  0% {
    opacity: 0;
  }
  1.2% {
    opacity: 0.4;
  }
  8% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
.ht-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.ht-label-hold {
  font-size: 12px;
  animation: htLabelHold 5s linear infinite;
}

.ht-label-turn {
  opacity: 0;
  animation: htLabelTurn 5s linear infinite;
}

@keyframes htLabelTurn {
  0% {
    opacity: 0;
  }
  4% {
    opacity: 1;
  }
  26% {
    opacity: 1;
  }
  30% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
@keyframes htLabelHold {
  0% {
    opacity: 1;
  }
  4% {
    opacity: 0;
  }
  26% {
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}
.ht-track.is-rotating .ht-tick::after,
.ht-track.is-rotating .ht-label,
.ht-track:has(.ht-knob.is-pressed, .ht-knob.is-holding) .ht-tick::after,
.ht-track:has(.ht-knob.is-pressed, .ht-knob.is-holding) .ht-label {
  animation: none;
}

.ht-track.has-turned .ht-label {
  animation: none;
}

.ht-gauge {
  background: conic-gradient(from 0deg, var(--red) 0deg, color-mix(in srgb, var(--red) 0%, transparent) calc(var(--ht-gauge) * 360deg), transparent calc(var(--ht-gauge) * 360deg), transparent 360deg);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  mask: radial-gradient(closest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  transition: --ht-gauge 240ms ease-out;
}
.ht-gauge.is-filling {
  transition: none;
}
.ht-gauge::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-color: var(--red);
  opacity: clamp(0, (var(--ht-gauge) - 0.8) * 5, 1);
  transition: opacity 240ms ease-out;
}
.ht-gauge.is-filling::after {
  transition: none;
}
.ht-gauge.is-full::after {
  opacity: 1;
  transition-duration: 160ms;
}

.ht-knob {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 84px;
  height: 84px;
  min-width: 0;
  margin: -42px 0 0 -42px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background-color: #121111;
  color: var(--pureWhite);
  font-family: SuisseIntlMono;
  font-size: 11px;
  line-height: 1;
  text-transform: uppercase;
  touch-action: none;
  scale: calc(1 - 0.04 * var(--ht-hold, 0));
  transition: transform 520ms cubic-bezier(0.34, 2.2, 0.5, 1), scale 600ms cubic-bezier(0.76, 0, 0.24, 1), box-shadow 300ms cubic-bezier(0.76, 0, 0.24, 1);
}
.ht-knob::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--red);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}
.ht-knob.is-pressed {
  transform: scale(0.95);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6);
  transition: transform 320ms cubic-bezier(0.34, 1.8, 0.5, 1), box-shadow 160ms cubic-bezier(0.76, 0, 0.24, 1);
}
.ht-knob.is-holding {
  transform: scale(1);
  scale: 1;
  transition: transform 600ms cubic-bezier(0.76, 0, 0.24, 1), scale 600ms cubic-bezier(0.76, 0, 0.24, 1), box-shadow 300ms cubic-bezier(0.76, 0, 0.24, 1);
}

.ht-track.is-burst .ht-knob::before {
  animation: htBurst 900ms cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

@keyframes htBurst {
  0% {
    opacity: 0.5;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.8);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ht-knob {
    transition-duration: 1ms;
  }
  .ht-tick::after,
.ht-label,
.ht-track.is-burst .ht-knob::before {
    animation: none;
  }
}