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

.inf {
  box-sizing: border-box;
  display: grid;
  gap: 8px;
  width: min(300px, 94vw);
  color: #17141a;
}

.inf * {
  box-sizing: border-box;
}

.inf__box {
  height: 196px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(23, 20, 26, 0.08);
}

.inf__box:focus-visible {
  outline: 2px solid #17141a;
  outline-offset: 2px;
}

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

.inf__card {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  border-radius: 12px;
  background: #fff7e6;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.inf__no {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(23, 20, 26, 0.12);
  font-size: 11px;
  font-weight: 700;
}

.inf__loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 34px;
  border: 2px dashed rgba(23, 20, 26, 0.38);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.inf__pulse {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #17141a;
}

.inf__live {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

@keyframes inf-in {
  from {
    transform: translateY(6px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.inf__card--in {
  animation-name: inf-in;
  animation-duration: 300ms;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: 1;
  animation-fill-mode: backwards;
}

@keyframes inf-rise {
  0%, 8% {
    transform: translateY(6px);
  }
  34%, 86% {
    transform: translateY(0);
  }
  86.01%, 100% {
    transform: translateY(6px);
  }
}
@keyframes inf-pulse {
  0% {
    transform: scale(1);
  }
  22% {
    transform: scale(1.5);
  }
  44% {
    transform: scale(1);
  }
  66% {
    transform: scale(1.5);
  }
  88%, 100% {
    transform: scale(1);
  }
}
.inf.is-demo .inf__card:nth-last-child(-n+3) {
  animation-name: inf-rise;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
}
.inf.is-demo .inf__card:nth-last-child(2) {
  animation-delay: 180ms;
}
.inf.is-demo .inf__card:nth-last-child(1) {
  animation-delay: 360ms;
}
.inf.is-demo .inf__pulse {
  animation-name: inf-pulse;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}

@media (max-width: 340px) {
  .inf {
    width: min(252px, 96vw);
  }
  .inf__box {
    height: 144px;
    padding: 4px;
  }
  .inf__card {
    height: 28px;
    padding: 0 8px;
    font-size: 11px;
  }
  .inf__no {
    width: 16px;
    height: 16px;
    font-size: 10px;
  }
  .inf__loader {
    height: 30px;
    font-size: 10px;
  }
  .inf__pulse {
    width: 10px;
    height: 10px;
  }
  .inf__live {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .inf.is-demo .inf__card,
  .inf.is-demo .inf__pulse,
  .inf__card--in {
    animation: none !important;
  }
  .inf.is-demo .inf__card,
  .inf__card--in {
    transform: translateY(0) !important;
    opacity: 1 !important;
  }
  .inf.is-demo .inf__pulse {
    transform: scale(1) !important;
  }
}
