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

.sbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
}

.sbar__btn {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 0;
  display: grid;
  place-items: center;
  color: #17141a;
  cursor: pointer;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  transform: scale(1);
  transition: transform 220ms ease-out;
}

.sbar__btn--pink {
  background: #ff9ebb;
}

.sbar__btn--mint {
  background: #4cd4a6;
}

.sbar__btn--lilac {
  background: #b9a0ff;
}

.sbar__btn--sky {
  background: #6ec8ff;
}

.sbar__btn:hover {
  transform: scale(1.08);
}

.sbar__btn:active {
  transform: scale(0.94);
}

.sbar__btn.is-active {
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.35), 0 14px 24px rgba(23, 20, 26, 0.32);
}

.sbar__toast {
  margin: 8px 16px 0;
  min-height: 16px;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  font-size: 12px;
  color: #fff;
  opacity: 0;
  transition: opacity 220ms ease-out;
}

.sbar__toast.is-shown {
  opacity: 0.85;
}

.stage.is-demo .sbar__btn {
  animation: sbar-pop 2s cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
}

.stage.is-demo .sbar__btn--pink {
  animation-delay: 0s;
}

.stage.is-demo .sbar__btn--mint {
  animation-delay: 0.15s;
}

.stage.is-demo .sbar__btn--lilac {
  animation-delay: 0.3s;
}

.stage.is-demo .sbar__btn--sky {
  animation-delay: 0.45s;
}

@keyframes sbar-pop {
  0%, 40%, 100% {
    transform: scale(1);
  }
  15% {
    transform: scale(1.16);
  }
  25% {
    transform: scale(0.94);
  }
}
@media (prefers-reduced-motion: reduce) {
  .stage.is-demo .sbar__btn {
    animation: none;
  }
}
