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 {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: min(100%, 408px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", monospace;
}

.lg__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.62);
  font-weight: 700;
  font-size: clamp(10px, 2.8vw, 11px);
  line-height: 1;
}

.lg__ico {
  display: grid;
  place-items: center;
  font-size: 14px;
  color: #2b9d74;
}

.lg__name {
  flex: 1 1 auto;
}

.lg__follow {
  flex: 0 0 auto;
  box-sizing: border-box;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: none;
  color: rgba(255, 255, 255, 0.62);
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: clamp(9px, 2.4vw, 10px);
  line-height: 1;
  transition: color 220ms ease-out, border-color 220ms ease-out;
}

.lg__follow[aria-pressed=true] {
  color: #2b9d74;
  border-color: #2b9d74;
}

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

.lg__box {
  height: calc(18px * 5);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px 12px;
}

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

.lg__row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  height: 18px;
  color: #fff7e6;
  font-weight: 500;
  font-size: clamp(9px, 2.6vw, 11px);
  line-height: 18px;
  white-space: nowrap;
  overflow: hidden;
}

.lg__tag {
  flex: 0 0 auto;
  width: 34px;
  color: rgba(255, 255, 255, 0.62);
  font-weight: 800;
  font-size: clamp(8px, 2.2vw, 9px);
  letter-spacing: 0.04em;
}

.lg__row--warn {
  color: #ffd23f;
}

.lg__row--warn .lg__tag {
  color: #ffd23f;
}

.lg__row--err {
  color: #ffe0d8;
}

.lg__row--err .lg__tag {
  color: #ffe0d8;
}

.lg__row.is-new {
  animation-name: lgNew;
  animation-duration: 300ms;
  animation-timing-function: ease-out;
  animation-iteration-count: 1;
  animation-fill-mode: backwards;
}

@keyframes lgNew {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.lg.is-demo .lg__box {
  overflow: hidden;
}

.lg.is-demo .lg__track {
  animation-name: lgFlow;
  animation-duration: 2s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
}

@keyframes lgFlow {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-50%);
  }
}
@media (max-width: 340px) {
  .lg__bar, .lg__box {
    padding-left: 8px;
    padding-right: 8px;
  }
  .lg__tag {
    width: 28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lg.is-demo .lg__track {
    animation: none !important;
  }
  .lg__row.is-new {
    animation: none !important;
  }
  .lg__follow {
    transition: none !important;
  }
}
