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

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

.sw {
  position: relative;
  width: min(92vw, 160vh - 12.8vw);
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.sw__track {
  position: relative;
  display: flex;
  gap: 12px;
}

.sw__chip {
  appearance: none;
  border: 0;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: #fff7e6;
  background: #2f6df6;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  will-change: transform;
}

.sw__chip--static {
  background: #0a4fe8;
  cursor: default;
}

#swChip0 {
  cursor: grab;
  touch-action: none;
  position: relative;
  z-index: 2;
}

#swChip0.is-grabbed,
#swChip0:focus-visible {
  outline: 2px solid #5b8cf8;
  outline-offset: 3px;
}

.sw.is-dragging #swChip0 {
  cursor: grabbing;
  z-index: 3;
}

.sw__caption {
  margin: 0;
  color: #17141a;
  font-weight: 500;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

@media (max-width: 340px) {
  .sw__chip {
    width: 48px;
    height: 48px;
    font-size: 15px;
  }
  .sw__caption {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sw__chip {
    transition: none;
  }
}
