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

.sh {
  position: relative;
  box-sizing: border-box;
  width: min(300px, 92vw);
  border-radius: 16px;
  background: #fff7e6;
  color: #17141a;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  overflow: hidden;
}

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

.sh__kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.sh__state {
  position: relative;
  margin: 0;
  font-size: 10px;
  line-height: 1.3;
  color: rgba(23, 20, 26, 0.72);
  white-space: nowrap;
}

.sh__s--gone {
  display: none;
}

.sh__view {
  box-sizing: border-box;
  height: 148px;
  margin: 8px;
  padding-right: 8px;
  overflow-y: auto;
  scrollbar-width: none;
}
.sh__view::-webkit-scrollbar {
  display: none;
}
.sh__view:focus-visible {
  outline: 2px solid #fff7e6;
  outline-offset: 2px;
}

.sh__pad {
  display: grid;
  gap: 8px;
  padding: 4px 4px 96px;
}

.sh__lede {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
}

.sh__line {
  height: 8px;
  margin: 0;
  border-radius: 999px;
  background: rgba(23, 20, 26, 0.12);
}

.sh__line:nth-child(3) {
  width: 92%;
}

.sh__line:nth-child(4) {
  width: 78%;
}

.sh__line:nth-child(5) {
  width: 88%;
}

.sh__line:nth-child(6) {
  width: 64%;
}

.sh__tail {
  margin: 0;
  font-size: 10px;
  line-height: 1.5;
  color: rgba(23, 20, 26, 0.72);
}

.sh__hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  display: grid;
  justify-items: center;
  gap: 4px;
  color: #17141a;
  isolation: isolate;
}
.sh__hint::before {
  content: "";
  position: absolute;
  inset: -20px -4px;
  background: linear-gradient(to bottom, transparent, #fff7e6 58%);
  z-index: -1;
}
.sh__hint {
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 140ms linear;
}

.sh.is-gone .sh__hint {
  transform: translateY(120%);
  opacity: 0;
}

.sh__pill {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #17141a;
  color: #ffd23f;
}

.sh__pill svg {
  width: 14px;
  height: 14px;
}

.sh__bob {
  display: inline-grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
}

.sh__note {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(23, 20, 26, 0.08);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
}

@keyframes sh-bob {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}
@keyframes sh-fade {
  0%, 37% {
    opacity: 1;
  }
  54%, 79% {
    opacity: 0;
  }
  80%, 100% {
    opacity: 1;
  }
}
@keyframes sh-drop {
  0%, 37% {
    transform: translateY(0);
  }
  54%, 79% {
    transform: translateY(120%);
  }
  80%, 100% {
    transform: translateY(0);
  }
}
@keyframes sh-flow {
  0%, 38% {
    transform: translateY(0);
  }
  78% {
    transform: translateY(-20%);
  }
  82%, 100% {
    transform: translateY(0);
  }
}
@keyframes sh-state-0 {
  0%, 37% {
    opacity: 1;
  }
  38%, 79% {
    opacity: 0;
  }
  80%, 100% {
    opacity: 1;
  }
}
@keyframes sh-state-1 {
  0%, 37% {
    opacity: 0;
  }
  38%, 79% {
    opacity: 1;
  }
  80%, 100% {
    opacity: 0;
  }
}
.sh.is-demo .sh__bob {
  animation-name: sh-bob;
  animation-duration: 1s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}
.sh.is-demo .sh__hint {
  animation-name: sh-fade, sh-drop;
  animation-duration: 2s, 2s;
  animation-timing-function: ease-out, cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite, infinite;
  animation-fill-mode: backwards, backwards;
}
.sh.is-demo .sh__pad {
  animation-name: sh-flow;
  animation-duration: 2s;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
}
.sh.is-demo .sh__s--gone {
  display: block;
  position: absolute;
  right: 0;
  top: 0;
}
.sh.is-demo .sh__s {
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}
.sh.is-demo .sh__s--top {
  animation-name: sh-state-0;
}
.sh.is-demo .sh__s--gone {
  animation-name: sh-state-1;
}

@media (max-width: 340px) {
  .sh__view {
    height: 124px;
  }
  .sh__lede {
    font-size: 10px;
  }
  .sh__line {
    height: 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sh.is-demo .sh__bob,
  .sh.is-demo .sh__pad,
  .sh.is-demo .sh__s {
    animation: none !important;
    transform: none !important;
  }
  .sh.is-demo .sh__hint {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
  .sh.is-demo .sh__s--top {
    opacity: 1 !important;
  }
  .sh.is-demo .sh__s--gone {
    opacity: 0 !important;
  }
}
