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);
}

.bs {
  display: flex;
  justify-content: center;
}

.bs__frame {
  position: relative;
  width: 232px;
  height: 168px;
  border-radius: 16px;
  overflow: hidden;
  background: #23202b;
}

.bs__map {
  position: absolute;
  inset: 0;
}

.bs__road {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.bs__road--h {
  left: -8px;
  right: 40px;
  top: 44px;
  height: 10px;
}

.bs__road--v {
  top: -8px;
  bottom: 60px;
  left: 60px;
  width: 10px;
}

.bs__road--h2 {
  left: 56px;
  right: -8px;
  top: 108px;
  height: 7px;
}

.bs__pin {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff4d1f;
  box-shadow: 0 0 0 4px rgba(255, 77, 31, 0.22);
}

.bs__pin {
  top: 24px;
  left: 104px;
}

.bs__pin--b {
  top: 84px;
  left: 148px;
  background: #2f6df6;
  box-shadow: 0 0 0 4px rgba(47, 109, 246, 0.22);
}

.bs__sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  box-sizing: border-box;
  height: 150px;
  background: #fff7e6;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.35);
  transform: translateY(106px);
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
  touch-action: none;
  cursor: grab;
}

.bs__sheet:active {
  cursor: grabbing;
}

.bs__sheet:focus-visible {
  outline: 3px solid #2f6df6;
  outline-offset: -4px;
}

.bs__grab {
  display: block;
  width: 36px;
  height: 4px;
  margin: 8px auto 0;
  border-radius: 999px;
  background: rgba(23, 20, 26, 0.22);
}

.bs__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px 0;
}

.bs__head strong {
  font-size: 13px;
  line-height: 16px;
  font-weight: 800;
  color: #17141a;
}

.bs__steps {
  display: flex;
  gap: 4px;
}

.bs__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 0;
  background: rgba(23, 20, 26, 0.08);
  border-radius: 50%;
  color: #17141a;
  cursor: pointer;
  transition: background 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bs__step:hover {
  background: rgba(23, 20, 26, 0.18);
}

.bs__step:focus-visible {
  outline: 2px solid #2f6df6;
  outline-offset: 2px;
}

.bs__list {
  margin: 8px 0 0;
  padding: 0 8px;
  list-style: none;
}

.bs__list li {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 8px;
  border-radius: 8px;
}

.bs__list li:nth-child(2) {
  background: rgba(47, 109, 246, 0.1);
}

.bs__cafe {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #fff;
  font-size: 10px;
  line-height: 22px;
  font-weight: 800;
}

.bs__list div {
  display: flex;
  flex-direction: column;
}

.bs__list strong {
  font-size: 11px;
  line-height: 13px;
  font-weight: 700;
  color: #17141a;
}

.bs__list span {
  font-size: 9px;
  line-height: 11px;
  font-weight: 600;
  color: rgba(23, 20, 26, 0.72);
}

.bs.is-demo .bs__sheet {
  animation: bs-snap 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

@keyframes bs-snap {
  0%, 10% {
    transform: translateY(106px);
  }
  22%, 38% {
    transform: translateY(54px);
  }
  50%, 66% {
    transform: translateY(0);
  }
  74%, 100% {
    transform: translateY(106px);
  }
}
.bs.is-demo .bs__list li:nth-child(2),
.bs.is-demo .bs__list li:nth-child(3) {
  animation: bs-reveal 2s steps(1, end) infinite;
}

@keyframes bs-reveal {
  0%, 49% {
    opacity: 1;
  }
  50%, 73% {
    opacity: 0;
  }
  74%, 100% {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bs.is-demo .bs__sheet,
  .bs.is-demo .bs__list li {
    animation: none !important;
  }
  .bs.is-demo .bs__sheet {
    transform: translateY(54px);
  }
  .bs__sheet {
    transition: none;
  }
}
