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

.ecb {
  position: relative;
}

.pane {
  box-sizing: border-box;
  width: 288px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  background: #fff7e6;
  color: #17141a;
}

.pane__head {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  background: rgba(23, 20, 26, 0.06);
  border-bottom: 1px solid rgba(23, 20, 26, 0.12);
}

.pane__file {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: rgba(23, 20, 26, 0.72);
}

.pane__file .ic {
  flex: none;
}

.pane__body {
  position: relative;
  box-sizing: border-box;
  padding: 12px;
}

.ecb__peek {
  margin: 0;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 18px;
  white-space: pre;
}

.ecb__peek code {
  font: inherit;
}

.k {
  color: #c93000;
}

.s {
  color: #0a4fe8;
}

.n {
  color: #c2361a;
}

.ecb__more {
  display: grid;
  grid-template-rows: 0fr;
}

.ecb:not(.is-demo) .ecb__more {
  transition: grid-template-rows 600ms ease-out;
}

.ecb.is-open .ecb__more {
  grid-template-rows: 1fr;
}

.ecb__moreInner {
  position: relative;
  overflow: hidden;
  min-height: 0;
}

.ecb__line {
  display: block;
}

.ecb__fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 32px;
  background: linear-gradient(to bottom, rgba(255, 247, 230, 0), #fff7e6);
  pointer-events: none;
}

.ecb.is-open .ecb__fade {
  opacity: 0;
}

.ecb__toggleRow {
  box-sizing: border-box;
  padding: 0 12px 12px;
}

.ecb__toggle {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(23, 20, 26, 0.08);
  color: inherit;
  cursor: pointer;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  font-size: 11px;
  font-weight: 700;
  transition: transform 220ms ease-out, background 220ms ease-out;
}

.ecb__toggle:hover {
  background: rgba(23, 20, 26, 0.14);
}

.ecb__toggle:focus-visible {
  outline: 2px solid #ff4d1f;
  outline-offset: 2px;
}

.ecb__labelWrap {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 14px;
}

.ecb__label {
  position: absolute;
  inset: 0;
  white-space: nowrap;
  transition: opacity 220ms ease-out;
}

.ecb__label--more {
  opacity: 1;
}

.ecb__label--less {
  opacity: 0;
}

.ecb.is-open .ecb__label--more {
  opacity: 0;
}

.ecb.is-open .ecb__label--less {
  opacity: 1;
}

.ecb__caret {
  flex: none;
  transition: transform 220ms ease-out;
}

.ecb.is-open .ecb__caret {
  transform: rotate(180deg);
}

.ecb__cursor {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  width: 12px;
  height: 12px;
  border: 2px solid #fff7e6;
  border-radius: 50%;
  background: #17141a;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
  pointer-events: none;
  opacity: 0;
  transform: translate(252px, 16px);
}

.ecb.is-demo .ecb__cursor {
  opacity: 1;
}

.ecb.is-demo .ecb__more {
  animation-name: ecb-grid;
  animation-duration: 2s;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
}

.ecb.is-demo .ecb__fade {
  animation-name: ecb-fade;
  animation-duration: 2s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.ecb.is-demo .ecb__caret {
  animation-name: ecb-caret;
  animation-duration: 2s;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
}

.ecb.is-demo .ecb__toggle {
  animation-name: ecb-press;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 1.4, 0.4, 1);
  animation-iteration-count: infinite;
}

.ecb.is-demo .ecb__label--more,
.ecb.is-demo .ecb__label--less {
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

.ecb.is-demo .ecb__label--more {
  animation-name: ecb-label-more;
}

.ecb.is-demo .ecb__label--less {
  animation-name: ecb-label-less;
}

.ecb.is-demo .ecb__moreInner .ecb__line {
  opacity: 0;
  animation-name: ecb-line;
  animation-duration: 2s;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
}

.ecb.is-demo .ecb__moreInner .ecb__line:nth-child(1) {
  animation-delay: 0s;
}

.ecb.is-demo .ecb__moreInner .ecb__line:nth-child(2) {
  animation-delay: 0.015s;
}

.ecb.is-demo .ecb__moreInner .ecb__line:nth-child(3) {
  animation-delay: 0.03s;
}

.ecb.is-demo .ecb__moreInner .ecb__line:nth-child(4) {
  animation-delay: 0.045s;
}

.ecb.is-demo .ecb__moreInner .ecb__line:nth-child(5) {
  animation-delay: 0.06s;
}

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

@keyframes ecb-grid {
  0%, 14% {
    grid-template-rows: 0fr;
  }
  20% {
    grid-template-rows: 0.12fr;
  }
  26% {
    grid-template-rows: 0.32fr;
  }
  32% {
    grid-template-rows: 0.55fr;
  }
  38% {
    grid-template-rows: 0.8fr;
  }
  44%, 62% {
    grid-template-rows: 1fr;
  }
  68% {
    grid-template-rows: 0.8fr;
  }
  74% {
    grid-template-rows: 0.55fr;
  }
  80% {
    grid-template-rows: 0.32fr;
  }
  83% {
    grid-template-rows: 0.16fr;
  }
  86%, 100% {
    grid-template-rows: 0fr;
  }
}
@keyframes ecb-fade {
  0%, 14% {
    opacity: 1;
  }
  30% {
    opacity: 0;
  }
  88% {
    opacity: 0;
  }
  96%, 100% {
    opacity: 1;
  }
}
@keyframes ecb-caret {
  0%, 14% {
    transform: rotate(0deg);
  }
  40%, 83% {
    transform: rotate(180deg);
  }
  84%, 100% {
    transform: rotate(0deg);
  }
}
@keyframes ecb-press {
  0%, 12% {
    transform: scale(1);
  }
  14% {
    transform: scale(0.94);
  }
  18%, 100% {
    transform: scale(1);
  }
}
@keyframes ecb-label-more {
  0%, 15% {
    opacity: 1;
  }
  16%, 83% {
    opacity: 0;
  }
  84%, 100% {
    opacity: 1;
  }
}
@keyframes ecb-label-less {
  0%, 15% {
    opacity: 0;
  }
  16%, 83% {
    opacity: 1;
  }
  84%, 100% {
    opacity: 0;
  }
}
@keyframes ecb-line {
  0%, 44% {
    opacity: 0;
    transform: translateY(6px);
  }
  60%, 86% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(6px);
  }
}
@keyframes ecb-cursor {
  0%, 2% {
    transform: translate(252px, 16px);
  }
  12%, 74% {
    transform: translate(48px, 138px);
  }
  86%, 100% {
    transform: translate(252px, 16px);
  }
}
@media (max-width: 340px) {
  .pane {
    width: 100%;
  }
  .ecb__peek {
    font-size: 10px;
    line-height: 16px;
  }
  .pane__body {
    padding: 8px;
  }
  .ecb__toggleRow {
    padding: 0 8px 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ecb.is-demo .ecb__more,
  .ecb.is-demo .ecb__fade,
  .ecb.is-demo .ecb__caret,
  .ecb.is-demo .ecb__toggle,
  .ecb.is-demo .ecb__label--more,
  .ecb.is-demo .ecb__label--less,
  .ecb.is-demo .ecb__moreInner .ecb__line,
  .ecb.is-demo .ecb__cursor {
    animation: none !important;
  }
  .ecb.is-demo .ecb__more {
    grid-template-rows: 0fr;
  }
  .ecb.is-demo .ecb__cursor {
    opacity: 0;
  }
}
