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

.lr {
  box-sizing: border-box;
  width: min(404px, 88vw);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  color: #fff7e6;
}

.lr__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.lr__col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lr__tag {
  display: block;
  font-size: 9px;
  line-height: 14px;
  font-weight: 700;
  color: rgba(255, 247, 230, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lr__tag code {
  font-family: ui-monospace, "Consolas", monospace;
  font-size: 9px;
  color: rgba(255, 247, 230, 0.78);
}

.lr__card {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 8px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.lr__dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 247, 230, 0.28);
}

.lr__msg {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 11px;
  line-height: 18px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lr__col.is-live .lr__card {
  border-color: #4cd4a6;
  background: rgba(76, 212, 166, 0.12);
}

.lr__col.is-live .lr__dot {
  background: #4cd4a6;
}

.lr__col[data-lane=alert].is-live .lr__card {
  border-color: #ff4d1f;
  background: rgba(255, 77, 31, 0.14);
}

.lr__col[data-lane=alert].is-live .lr__dot {
  background: #ff4d1f;
}

.lr__say {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 12px;
  background: #fff7e6;
  color: #17141a;
}

.lr__wave {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  height: 14px;
}

.lr__wave i {
  display: block;
  width: 3px;
  height: 14px;
  border-radius: 4px;
  background: #2f6df6;
  transform: scaleY(0.3);
}

.lr__saycap {
  flex: 0 0 auto;
  font-size: 9px;
  line-height: 18px;
  font-weight: 700;
  color: rgba(23, 20, 26, 0.72);
}

.lr__saytxt {
  position: relative;
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  height: 18px;
}

.lr__sayone {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  opacity: 0;
  font-size: 12px;
  line-height: 18px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lr__say[data-lane=polite] .lr__sayone[data-lane=polite],
.lr__say[data-lane=alert] .lr__sayone[data-lane=alert] {
  opacity: 1;
}

.lr__say[data-lane=alert] .lr__sayone[data-lane=alert] {
  color: #c2361a;
}

.lr__btns {
  display: flex;
  gap: 8px;
}

.lr__btn {
  box-sizing: border-box;
  flex: 1 1 0;
  margin: 0;
  padding: 4px 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff7e6;
  font-family: inherit;
  font-size: 11px;
  line-height: 18px;
  font-weight: 700;
  cursor: pointer;
}

.lr__btn[data-lane=alert] {
  background: #ff4d1f;
  color: #17141a;
}

.lr__btn:focus-visible {
  outline: 2px solid #4cd4a6;
  outline-offset: 2px;
}

.lr__wave i {
  animation-name: lr-wave;
  animation-duration: 600ms;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

.lr__wave i:nth-child(1) {
  animation-delay: 0ms;
}

.lr__wave i:nth-child(2) {
  animation-delay: -200ms;
}

.lr__wave i:nth-child(3) {
  animation-delay: -400ms;
}

@keyframes lr-wave {
  0% {
    transform: scaleY(0.24);
  }
  100% {
    transform: scaleY(1);
  }
}
.lr.is-demo .lr__card,
.lr.is-demo .lr__dot,
.lr.is-demo .lr__sayone {
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

.lr.is-demo .lr__col[data-lane=polite] .lr__card {
  animation-name: lr-on-polite;
}

.lr.is-demo .lr__col[data-lane=polite] .lr__dot {
  animation-name: lr-dot-polite;
}

.lr.is-demo .lr__col[data-lane=alert] .lr__card {
  animation-name: lr-on-alert;
}

.lr.is-demo .lr__col[data-lane=alert] .lr__dot {
  animation-name: lr-dot-alert;
}

.lr.is-demo .lr__sayone[data-lane=polite] {
  animation-name: lr-say-polite;
}

.lr.is-demo .lr__sayone[data-lane=alert] {
  animation-name: lr-say-alert;
}

@keyframes lr-on-polite {
  0% {
    border-color: #4cd4a6;
    background-color: rgba(76, 212, 166, 0.12);
  }
  45% {
    border-color: rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.06);
  }
  89% {
    border-color: #4cd4a6;
    background-color: rgba(76, 212, 166, 0.12);
  }
  100% {
    border-color: #4cd4a6;
    background-color: rgba(76, 212, 166, 0.12);
  }
}
@keyframes lr-dot-polite {
  0% {
    background-color: #4cd4a6;
  }
  45% {
    background-color: rgba(255, 247, 230, 0.28);
  }
  89% {
    background-color: #4cd4a6;
  }
  100% {
    background-color: #4cd4a6;
  }
}
@keyframes lr-on-alert {
  0% {
    border-color: rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.06);
  }
  45% {
    border-color: #ff4d1f;
    background-color: rgba(255, 77, 31, 0.14);
  }
  89% {
    border-color: rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.06);
  }
  100% {
    border-color: rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.06);
  }
}
@keyframes lr-dot-alert {
  0% {
    background-color: rgba(255, 247, 230, 0.28);
  }
  45% {
    background-color: #ff4d1f;
  }
  89% {
    background-color: rgba(255, 247, 230, 0.28);
  }
  100% {
    background-color: rgba(255, 247, 230, 0.28);
  }
}
@keyframes lr-say-polite {
  0% {
    opacity: 1;
  }
  45% {
    opacity: 0;
  }
  89% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}
@keyframes lr-say-alert {
  0% {
    opacity: 0;
  }
  45% {
    opacity: 1;
  }
  89% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
.lr.is-demo .lr__col[data-lane=alert] .lr__card {
  animation-name: lr-on-alert, lr-jolt;
  animation-duration: 2s, 2s;
  animation-timing-function: steps(1, end), cubic-bezier(0.2, 1.4, 0.4, 1);
  animation-iteration-count: infinite, infinite;
}

@keyframes lr-jolt {
  0%, 45% {
    transform: scale(1);
  }
  52% {
    transform: scale(1.06);
  }
  62% {
    transform: scale(1);
  }
  90%, 100% {
    transform: scale(1);
  }
}
@media (max-width: 340px) {
  .lr__card {
    padding: 4px;
    gap: 4px;
  }
  .lr__msg {
    font-size: 10px;
    line-height: 16px;
  }
  .lr__say {
    padding: 0 8px;
    gap: 4px;
  }
  .lr__sayone {
    font-size: 11px;
  }
  .lr__btn {
    font-size: 10px;
    line-height: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lr__wave i,
  .lr.is-demo .lr__col,
  .lr.is-demo .lr__card,
  .lr.is-demo .lr__dot,
  .lr.is-demo .lr__sayone {
    animation: none !important;
  }
  .lr.is-demo .lr__sayone[data-lane=polite] {
    opacity: 1;
  }
  .lr__wave i {
    transform: scaleY(0.7);
  }
}
