html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #17141a;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.compare {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 240px;
}

.lane {
  display: flex;
  align-items: center;
  gap: 8px;
}

.label {
  width: 48px;
  flex: 0 0 auto;
  font: 600 11px/1 -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.track {
  position: relative;
  flex: 1 1 auto;
  width: 184px;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.puck {
  position: absolute;
  top: 50%;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  transform: translate(0, -50%);
}

.puck--quart {
  background: #2f6df6;
}

.puck--back {
  background: #fff7e6;
}

.puck--spring {
  background: #ffd23f;
}

.puck--bounce {
  background: #c2361a;
}

.stage.is-demo .puck--quart {
  animation: move 2s cubic-bezier(0.25, 1, 0.5, 1) infinite alternate;
}

.stage.is-demo .puck--back {
  animation: move 2s cubic-bezier(0.68, -0.6, 0.32, 1.6) infinite alternate;
}

.stage.is-demo .puck--spring {
  animation: move 2s linear(0, 0.055, 0.197, 0.394, 0.612, 0.824, 1.009, 1.153, 1.25, 1.3, 1.307, 1.281, 1.231, 1.167, 1.099, 1.035, 0.982, 0.942, 0.916, 0.905, 0.907, 0.917, 0.935, 0.955, 0.976, 0.995, 1) infinite alternate;
}

.stage.is-demo .puck--bounce {
  animation: move-once 2s linear(0, 0.013, 0.053, 0.118, 0.21, 0.328, 0.473, 0.643, 0.84, 0.97, 0.875, 0.807, 0.766, 0.75, 0.761, 0.798, 0.861, 0.951, 0.973, 0.943, 0.939, 0.962, 0.995, 0.984, 1) infinite;
}

@keyframes move {
  from {
    transform: translate(0, -50%);
  }
  to {
    transform: translate(172px, -50%);
  }
}
@keyframes move-once {
  from {
    transform: translate(0, -50%);
  }
  to {
    transform: translate(172px, -50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .stage.is-demo .puck {
    animation: none;
    transform: translate(172px, -50%);
  }
}
