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

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

.vs__box {
  display: grid;
  grid-template-columns: var(--split) 10px 1fr;
  height: 128px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

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

.vs__pane--list {
  background: rgba(47, 109, 246, 0.18);
}

.vs__pane--read {
  background: rgba(255, 247, 230, 0.07);
}

.vs__row {
  flex: 0 0 auto;
  height: 12px;
  border-radius: 4px;
  background: rgba(255, 247, 230, 0.34);
}

.vs__row:nth-child(2) {
  background: #2f6df6;
}

.vs__title {
  flex: 0 0 auto;
  height: 14px;
  width: 60%;
  border-radius: 4px;
  background: #fff7e6;
}

.vs__line {
  flex: 0 0 auto;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 247, 230, 0.26);
}

.vs__line--short {
  width: 64%;
}

.vs__bar {
  display: grid;
  place-items: center;
  background: rgba(255, 247, 230, 0.14);
  cursor: col-resize;
  touch-action: none;
  transition: background 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.vs__grip {
  display: block;
  width: 2px;
  height: 28px;
  border-radius: 999px;
  background: #fff7e6;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.vs__bar:hover,
.vs.is-drag .vs__bar {
  background: #2f6df6;
}

.vs__bar:hover .vs__grip,
.vs.is-drag .vs__grip {
  transform: scaleY(1.5);
}

.vs__bar:focus-visible {
  outline: 2px solid #fff7e6;
  outline-offset: -2px;
}

.vs__cap {
  margin: 0;
  font-size: 11px;
  line-height: 14px;
  font-weight: 600;
  color: rgba(255, 247, 230, 0.58);
  text-align: center;
}

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

@keyframes vs-split {
  0%, 8% {
    --split: 50%;
  }
  36% {
    --split: 26%;
  }
  64% {
    --split: 72%;
  }
  88%, 100% {
    --split: 50%;
  }
}
.vs.is-demo .vs__bar {
  animation: vs-hot 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

@keyframes vs-hot {
  0%, 8% {
    background: rgba(255, 247, 230, 0.14);
  }
  20%, 76% {
    background: #2f6df6;
  }
  88%, 100% {
    background: rgba(255, 247, 230, 0.14);
  }
}
@media (prefers-reduced-motion: reduce) {
  .vs.is-demo,
  .vs.is-demo .vs__bar {
    animation: none !important;
  }
  .vs__bar, .vs__grip {
    transition: none;
  }
}
@media (max-width: 340px) {
  .vs__box {
    height: 112px;
  }
  .vs__pane {
    padding: 8px;
  }
}
