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

.lg {
  box-sizing: border-box;
  width: min(304px, 92vw);
  padding: 12px;
  border: 1px solid rgb(23.5764705882%, 22.0862745098%, 22.9960784314%);
  border-radius: 16px;
  background: #17141a;
  color: #fff7e6;
  font-family: "Cascadia Code", Consolas, -apple-system, "Segoe UI", sans-serif;
  font-size: 12px;
  line-height: 1.3;
}

.lg__h {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 8px;
}

.lg__cursor {
  width: 7px;
  height: 13px;
  border-radius: 4px;
  background: #4cd4a6;
}

.lg__t {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
}

.lg__live {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  white-space: nowrap;
}

.lg__chips {
  display: flex;
  gap: 4px;
  margin: 0 0 8px;
}

.lg__chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  border: 1px solid rgb(23.5764705882%, 22.0862745098%, 22.9960784314%);
  border-radius: 999px;
  background: rgb(16.2980392157%, 14.9647058824%, 16.5960784314%);
  color: #fff7e6;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.7;
  cursor: pointer;
}

.lg__chip:focus-visible {
  outline: 2px solid #2f6df6;
  outline-offset: 2px;
}

.lg__ci {
  display: inline-flex;
  width: 11px;
  height: 11px;
  color: #6ec8ff;
}

.lg__ci--w {
  color: #ffd23f;
}

.lg__ci--e {
  color: #ffe0d8;
}

.lg__chip.is-off {
  border-color: rgba(255, 255, 255, 0.14);
  background: transparent;
  color: rgba(255, 255, 255, 0.38);
}

.lg__list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lg__row[hidden] {
  display: none;
}

.lg__fold {
  display: grid;
  grid-template-rows: 1fr;
}

.lg__line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  min-height: 0;
  overflow: hidden;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  white-space: nowrap;
}

.lg__lv {
  display: inline-flex;
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
}

.lg__lv--i {
  color: #6ec8ff;
}

.lg__lv--w {
  color: #ffd23f;
}

.lg__lv--e {
  color: #ffe0d8;
}

.lg__tm {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
}

@keyframes lg-warn-off {
  0%, 24% {
    border-color: rgb(23.5764705882%, 22.0862745098%, 22.9960784314%);
    background: rgb(16.2980392157%, 14.9647058824%, 16.5960784314%);
    color: #fff7e6;
  }
  25%, 86% {
    border-color: rgba(255, 255, 255, 0.14);
    background: transparent;
    color: rgba(255, 255, 255, 0.38);
  }
  87%, 100% {
    border-color: rgb(23.5764705882%, 22.0862745098%, 22.9960784314%);
    background: rgb(16.2980392157%, 14.9647058824%, 16.5960784314%);
    color: #fff7e6;
  }
}
@keyframes lg-err-off {
  0%, 54% {
    border-color: rgb(23.5764705882%, 22.0862745098%, 22.9960784314%);
    background: rgb(16.2980392157%, 14.9647058824%, 16.5960784314%);
    color: #fff7e6;
  }
  55%, 86% {
    border-color: rgba(255, 255, 255, 0.14);
    background: transparent;
    color: rgba(255, 255, 255, 0.38);
  }
  87%, 100% {
    border-color: rgb(23.5764705882%, 22.0862745098%, 22.9960784314%);
    background: rgb(16.2980392157%, 14.9647058824%, 16.5960784314%);
    color: #fff7e6;
  }
}
@keyframes lg-warn-fold {
  0%, 24% {
    grid-template-rows: 1fr;
  }
  31%, 86% {
    grid-template-rows: 0fr;
  }
  87%, 100% {
    grid-template-rows: 1fr;
  }
}
@keyframes lg-err-fold {
  0%, 54% {
    grid-template-rows: 1fr;
  }
  61%, 86% {
    grid-template-rows: 0fr;
  }
  87%, 100% {
    grid-template-rows: 1fr;
  }
}
@keyframes lg-chip-press-w {
  0%, 24% {
    transform: scale(1);
  }
  27% {
    transform: scale(0.9);
  }
  30%, 86% {
    transform: scale(1);
  }
  87%, 100% {
    transform: scale(1);
  }
}
@keyframes lg-chip-press-e {
  0%, 54% {
    transform: scale(1);
  }
  57% {
    transform: scale(0.9);
  }
  60%, 100% {
    transform: scale(1);
  }
}
@keyframes lg-blink {
  0%, 49% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0;
  }
}
.lg.is-demo .lg__chip[data-k=warn] {
  animation-name: lg-warn-off, lg-chip-press-w;
}
.lg.is-demo .lg__chip[data-k=error] {
  animation-name: lg-err-off, lg-chip-press-e;
}
.lg.is-demo .lg__chip {
  animation-duration: 2s, 2s;
  animation-timing-function: steps(1, end), cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite, infinite;
}
.lg.is-demo .lg__row[data-k=warn] .lg__fold {
  animation-name: lg-warn-fold;
}
.lg.is-demo .lg__row[data-k=error] .lg__fold {
  animation-name: lg-err-fold;
}
.lg.is-demo .lg__row[data-k=warn] .lg__fold,
.lg.is-demo .lg__row[data-k=error] .lg__fold {
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}
.lg.is-demo .lg__cursor {
  animation-name: lg-blink;
  animation-duration: 1s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

@media (max-width: 340px) {
  .lg {
    padding: 8px;
    font-size: 11px;
  }
  .lg__h {
    margin-bottom: 4px;
  }
  .lg__chips {
    margin-bottom: 4px;
  }
  .lg__chip {
    font-size: 10px;
  }
  .lg__line {
    padding: 0 8px;
    font-size: 10px;
  }
  .lg__row[data-row="6"] {
    display: none;
  }
  .lg__live {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lg.is-demo .lg__chip,
  .lg.is-demo .lg__row .lg__fold,
  .lg.is-demo .lg__cursor {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
  .lg.is-demo .lg__chip[data-k=warn] {
    border-color: rgba(255, 255, 255, 0.14) !important;
    background: transparent !important;
    color: rgba(255, 255, 255, 0.38) !important;
  }
  .lg.is-demo .lg__row[data-k=warn] .lg__fold {
    grid-template-rows: 0fr !important;
  }
}
