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

.ss {
  --ss-travel: -160px;
  position: relative;
  box-sizing: border-box;
  width: min(320px, 92vw);
  border-radius: 16px;
  background: #fff7e6;
  color: #17141a;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  overflow: hidden;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}

.ss__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
}

.ss__title {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}

.ss__attr {
  margin: 0;
  font-size: 10px;
  line-height: 1.3;
  color: rgba(23, 20, 26, 0.72);
}
.ss__attr code {
  font-family: "Consolas", "Menlo", monospace;
}

.ss__view {
  position: relative;
  height: 168px;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  padding: 0 12px;
  outline: none;
}

.ss__track {
  display: grid;
  gap: 8px;
  padding: 8px 0;
}

.ss__panel {
  scroll-snap-align: center;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  box-sizing: border-box;
  height: 152px;
  padding: 8px;
  border-radius: 12px;
  background: #ffffff;
  color: #17141a;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
  transition: background 220ms ease-out, color 220ms ease-out;
}
.ss__panel b {
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 247, 230, 0.18);
}
.ss__panel h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}
.ss__panel p {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
}

.ss__panel[aria-current=true] {
  background: #0a4fe8;
  color: #fff7e6;
}

.ss__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border-top: 1px solid rgba(23, 20, 26, 0.12);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
}
.ss__foot b {
  color: #c93000;
  font-weight: 800;
}

.ss__dots {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ss__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(23, 20, 26, 0.25);
  cursor: pointer;
  transition: width 220ms ease-out, background 220ms ease-out;
}

.ss__dot[aria-current=true] {
  width: 20px;
  background: #2f6df6;
}

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

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

.ss.is-demo .ss__view {
  scroll-snap-type: none;
}
.ss.is-demo .ss__track {
  animation-name: ss-slide;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}
.ss.is-demo .ss__panel:nth-child(1) {
  animation-name: ss-state-1;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}
.ss.is-demo .ss__panel:nth-child(2) {
  animation-name: ss-state-2;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}
.ss.is-demo .ss__dot:nth-child(1) {
  animation-name: ss-dot-1;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}
.ss.is-demo .ss__dot:nth-child(2) {
  animation-name: ss-dot-2;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

@keyframes ss-slide {
  0%, 8% {
    transform: translate3d(0, 0, 0);
  }
  36%, 56% {
    transform: translate3d(0, var(--ss-travel), 0);
  }
  82%, 100% {
    transform: translate3d(0, 0, 0);
  }
}
@keyframes ss-state-1 {
  0%, 40% {
    background: #0a4fe8;
    color: #fff7e6;
  }
  44%, 86% {
    background: #ffffff;
    color: #17141a;
  }
  90%, 100% {
    background: #0a4fe8;
    color: #fff7e6;
  }
}
@keyframes ss-state-2 {
  0%, 40% {
    background: #ffffff;
    color: #17141a;
  }
  44%, 86% {
    background: #0a4fe8;
    color: #fff7e6;
  }
  90%, 100% {
    background: #ffffff;
    color: #17141a;
  }
}
@keyframes ss-dot-1 {
  0%, 40% {
    width: 20px;
    background: #2f6df6;
  }
  44%, 86% {
    width: 8px;
    background: rgba(23, 20, 26, 0.25);
  }
  90%, 100% {
    width: 20px;
    background: #2f6df6;
  }
}
@keyframes ss-dot-2 {
  0%, 40% {
    width: 8px;
    background: rgba(23, 20, 26, 0.25);
  }
  44%, 86% {
    width: 20px;
    background: #2f6df6;
  }
  90%, 100% {
    width: 8px;
    background: rgba(23, 20, 26, 0.25);
  }
}
@media (max-width: 340px) {
  .ss {
    width: 100%;
    --ss-travel: -104px;
  }
  .ss__head,
  .ss__foot {
    padding: 4px 8px;
  }
  .ss__view {
    height: 112px;
  }
  .ss__panel {
    height: 96px;
  }
  .ss__panel h3 {
    font-size: 13px;
  }
  .ss__panel p {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ss__panel {
    transition: none !important;
  }
  .ss__dot {
    transition: none !important;
  }
  .ss.is-demo .ss__track,
  .ss.is-demo .ss__panel,
  .ss.is-demo .ss__dot {
    animation: none !important;
  }
}
