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

.sm {
  box-sizing: border-box;
  width: min(276px, 92vw);
  border: 2px solid #17141a;
  border-radius: 16px;
  background: #ffffff;
  overflow: hidden;
  color: #17141a;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
}

.sm__head {
  display: grid;
  grid-template-columns: 1fr 72px;
  height: 24px;
  border-bottom: 2px solid #17141a;
  background: rgb(92.7215686275%, 92.6274509804%, 92.8156862745%);
}

.sm__head > * {
  padding: 0 8px;
  font-size: 11px;
  line-height: 24px;
  font-weight: 700;
}

.sm__head > :last-child {
  text-align: right;
}

.sm__view {
  position: relative;
  height: 78px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

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

.sm__track {
  display: block;
}

.sm__row {
  display: grid;
  grid-template-columns: 1fr 72px;
  width: 100%;
  height: 26px;
  padding: 0;
  border: 0;
  box-shadow: inset 0 -1px 0 rgb(89.0823529412%, 88.9411764706%, 89.2235294118%);
  background: #ffffff;
  color: #17141a;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.sm__row > * {
  padding: 0 8px;
  font-size: 12px;
  line-height: 26px;
  font-weight: 500;
}

.sm__row > :last-child {
  text-align: right;
  font-weight: 700;
}

.sm__row.is-pick {
  background: rgba(47, 109, 246, 0.14);
}

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

.sm__sum {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 16px 1fr 72px;
  align-items: center;
  height: 24px;
  border-top: 2px solid #17141a;
  background: #ffd23f;
  box-shadow: none;
}

.sm.is-more .sm__sum {
  box-shadow: 0 -6px 10px rgba(23, 20, 26, 0.22);
}

.sm__sic {
  display: inline-flex;
  width: 12px;
  height: 12px;
  margin-left: 4px;
}

.sm__label {
  padding: 0 4px;
  font-size: 11px;
  line-height: 24px;
  font-weight: 700;
}

.sm__v {
  position: relative;
  padding: 0 8px;
  font-size: 12px;
  line-height: 24px;
  text-align: right;
}

.sm__all, .sm__sel {
  font-weight: 800;
}

.sm__sel {
  position: absolute;
  right: 8px;
  top: 0;
  color: #2f6df6;
  opacity: 0;
}

.sm__sum.is-part .sm__label {
  color: #2f6df6;
}

.sm.is-demo .sm__track {
  animation-name: sm-scroll;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}

.sm.is-demo .sm__sum {
  animation-name: sm-shade;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

.sm.is-demo .sm__row:nth-child(2) {
  animation-name: sm-pick;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

.sm.is-demo .sm__all {
  animation-name: sm-off;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

.sm.is-demo .sm__sel {
  animation-name: sm-on;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

@keyframes sm-scroll {
  0% {
    transform: translateY(0);
  }
  10% {
    transform: translateY(0);
  }
  44% {
    transform: translateY(-52px);
  }
  70% {
    transform: translateY(-52px);
  }
  86% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(0);
  }
}
@keyframes sm-shade {
  0% {
    box-shadow: 0 -6px 10px rgba(23, 20, 26, 0.22);
  }
  44% {
    box-shadow: none;
  }
  78% {
    box-shadow: 0 -6px 10px rgba(23, 20, 26, 0.22);
  }
  100% {
    box-shadow: 0 -6px 10px rgba(23, 20, 26, 0.22);
  }
}
@keyframes sm-pick {
  0% {
    background: #ffffff;
  }
  56% {
    background: rgba(47, 109, 246, 0.14);
  }
  76% {
    background: #ffffff;
  }
  100% {
    background: #ffffff;
  }
}
@keyframes sm-off {
  0% {
    opacity: 1;
  }
  56% {
    opacity: 0;
  }
  76% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}
@keyframes sm-on {
  0% {
    opacity: 0;
  }
  56% {
    opacity: 1;
  }
  76% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
@media (max-width: 340px) {
  .sm__head, .sm__row {
    grid-template-columns: 1fr 60px;
  }
  .sm__sum {
    grid-template-columns: 16px 1fr 60px;
  }
  .sm__head > *, .sm__row > * {
    padding: 0 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sm.is-demo .sm__track,
  .sm.is-demo .sm__sum,
  .sm.is-demo .sm__row:nth-child(2),
  .sm.is-demo .sm__all,
  .sm.is-demo .sm__sel {
    animation: none !important;
  }
  .sm.is-demo .sm__sum {
    box-shadow: 0 -6px 10px rgba(23, 20, 26, 0.22);
  }
}
