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

.ub {
  box-sizing: border-box;
  width: min(400px, 96vw);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #17141a;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}

.ub__live {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(194, 54, 26, 0.22);
  color: #e0c8c1;
  font-weight: 800;
  font-size: 9px;
  line-height: 1;
  font-family: inherit;
  letter-spacing: 0.06em;
}

.ub__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d1a9a1;
  animation: ub-blink 1.2s ease-in-out infinite;
}

@keyframes ub-blink {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.8);
  }
}
.ub__body {
  flex: 1 1 auto;
  min-width: 0;
}

.ub__msg {
  margin: 0 0 4px;
  font-weight: 600;
  font-size: 12px;
  line-height: 1.3;
  font-family: inherit;
  color: #fff7e6;
}

.ub__msg strong {
  color: #ffd23f;
}

.ub__bar {
  height: 6px;
  border-radius: 4px;
  background: rgba(255, 247, 230, 0.14);
  overflow: hidden;
}

.ub__fill {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #dcc2b7, #d1a9a1);
  transform: scaleX(0.82);
  transform-origin: left center;
  animation: ub-fill 2.4s cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
}

@keyframes ub-fill {
  0%, 100% {
    transform: scaleX(0.78);
  }
  50% {
    transform: scaleX(0.92);
  }
}
.ub__more {
  flex: 0 0 auto;
  border: 0;
  cursor: pointer;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 247, 230, 0.12);
  color: #fff7e6;
  font-weight: 700;
  font-size: 11px;
  line-height: 1;
  font-family: inherit;
  transition: background 220ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.ub__more[aria-pressed=true] {
  background: rgba(255, 247, 230, 0.28);
}

@media (prefers-reduced-motion: reduce) {
  .ub__dot, .ub__fill {
    animation: none !important;
  }
  .ub__more {
    transition: none !important;
  }
}
@media (max-width: 340px), (max-height: 220px) {
  .ub {
    flex-wrap: wrap;
    padding: 8px 12px;
  }
  .ub__more {
    display: none;
  }
}
