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

@property --splitY {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 50%;
}
.hs {
  --splitY: 50%;
  width: min(288px, 86vw);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hs__box {
  display: grid;
  grid-template-rows: var(--splitY) 10px 1fr;
  height: clamp(112px, 40vh, 132px);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(23, 20, 26, 0.12);
  background: #fbf9f5;
}

.hs__pane {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  overflow: hidden;
}

.hs__pane--code {
  background: rgba(47, 109, 246, 0.08);
}

.hs__pane--out {
  align-items: flex-start;
  justify-content: center;
  background: rgba(23, 20, 26, 0.05);
}

.hs__tok {
  flex: 0 0 auto;
  height: 7px;
  border-radius: 4px;
  background: rgba(23, 20, 26, 0.2);
}

.hs__tok--a {
  width: 72%;
  background: #2f6df6;
}

.hs__tok--b {
  width: 52%;
}

.hs__tok--c {
  width: 84%;
}

.hs__chip {
  flex: 0 0 auto;
  padding: 0 8px;
  border-radius: 999px;
  background: #17141a;
  color: #fff7e6;
  font-size: 10px;
  line-height: 14px;
  font-weight: 700;
}

.hs__bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 24px;
}

.hs__bars i {
  display: block;
  width: 12px;
  border-radius: 4px 4px 0 0;
  background: #2f6df6;
}

.hs__bars i:nth-child(1) {
  height: 40%;
}

.hs__bars i:nth-child(2) {
  height: 76%;
}

.hs__bars i:nth-child(3) {
  height: 56%;
}

.hs__bars i:nth-child(4) {
  height: 96%;
  background: #17141a;
}

.hs__bars i:nth-child(5) {
  height: 64%;
}

.hs__bar {
  display: grid;
  place-items: center;
  background: rgba(23, 20, 26, 0.1);
  cursor: row-resize;
  touch-action: none;
  transition: background 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hs__grip {
  display: block;
  width: 32px;
  height: 2px;
  border-radius: 999px;
  background: rgba(23, 20, 26, 0.45);
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hs__bar:hover,
.hs.is-drag .hs__bar {
  background: #2f6df6;
}

.hs__bar:hover .hs__grip,
.hs.is-drag .hs__grip {
  transform: scaleX(1.4);
  background: #ffffff;
}

.hs__bar:focus-visible {
  outline: 2px solid #17141a;
  outline-offset: -2px;
}

.hs__cap {
  margin: 0;
  font-size: 11px;
  line-height: 14px;
  font-weight: 600;
  color: rgba(23, 20, 26, 0.72);
  text-align: center;
}

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

@keyframes hs-split {
  0%, 8% {
    --splitY: 50%;
  }
  34% {
    --splitY: 76%;
  }
  62% {
    --splitY: 24%;
  }
  86%, 100% {
    --splitY: 50%;
  }
}
.hs.is-demo .hs__bar {
  animation: hs-hot 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

@keyframes hs-hot {
  0%, 8% {
    background: rgba(23, 20, 26, 0.1);
  }
  20%, 74% {
    background: #2f6df6;
  }
  86%, 100% {
    background: rgba(23, 20, 26, 0.1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hs.is-demo,
  .hs.is-demo .hs__bar {
    animation: none !important;
  }
  .hs__bar, .hs__grip {
    transition: none;
  }
}
@media (max-width: 340px) {
  .hs__box {
    height: 108px;
  }
  .hs__pane {
    padding: 4px 8px;
  }
}
