html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #ffd23f;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

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

.dc__box {
  display: grid;
  grid-template-columns: var(--split) 10px 1fr;
  height: 124px;
  border-radius: 16px;
  overflow: hidden;
  background: #17141a;
}

.dc:not(.is-live) {
  transition: --split 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.dc__side {
  background: rgba(47, 109, 246, 0.34);
}

.dc__main {
  background: rgba(255, 247, 230, 0.06);
}

.dc__ico {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: #fff7e6;
  transition: opacity 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.dc__ico svg {
  display: block;
  width: 16px;
  height: 16px;
}

.dc.is-folded .dc__ico {
  opacity: 0;
}

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

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

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

.dc__line--short {
  width: 62%;
}

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

.dc__grip {
  display: block;
  width: 2px;
  height: 24px;
  border-radius: 999px;
  background: #fff7e6;
}

.dc__bar:hover {
  background: #2f6df6;
}

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

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

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

@keyframes dc-fold {
  0%, 14% {
    --split: 34%;
  }
  38%, 56% {
    --split: 4%;
  }
  82%, 100% {
    --split: 34%;
  }
}
.dc.is-demo .dc__ico {
  animation: dc-ico 2s steps(1, end) infinite;
}

@keyframes dc-ico {
  0%, 29% {
    opacity: 1;
  }
  30%, 63% {
    opacity: 0;
  }
  64%, 100% {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dc.is-demo,
  .dc.is-demo .dc__ico {
    animation: none !important;
  }
  .dc, .dc__bar, .dc__ico {
    transition: none;
  }
}
@media (max-width: 340px) {
  .dc__box {
    height: 108px;
  }
  .dc__side, .dc__main {
    padding: 8px;
  }
}
