.stage html, .stage body {
  margin: 0;
  overflow: hidden;
}
.stage .stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #ff4d1f;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.lbd {
  width: min(88vw, 320px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lbd__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lbd__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 12px;
  border-radius: 8px;
  background: #17141a;
  cursor: pointer;
}

.lbd__row.is-hot {
  animation: lbd-row-glow var(--row-glow-ms, 500ms) ease-out;
}

@keyframes lbd-row-glow {
  0% {
    background: #17141a;
    box-shadow: 0 0 0 rgba(91, 140, 248, 0);
  }
  30% {
    background: rgba(91, 140, 248, 0.22);
    box-shadow: 0 0 20px rgba(91, 140, 248, 0.3);
  }
  100% {
    background: #17141a;
    box-shadow: 0 0 0 rgba(91, 140, 248, 0);
  }
}
.lbd__row:focus-visible {
  outline: 2px solid #5b8cf8;
  outline-offset: 2px;
}

.lbd__name {
  font-size: 12px;
  font-weight: 700;
  color: #fff7e6;
}

.lbd__score {
  display: flex;
  gap: 0;
}

.lbd__digit {
  width: 18px;
  height: 22px;
  overflow: hidden;
  position: relative;
  border-radius: 4px;
}

.lbd__digit.is-rolling {
  animation: lbd-roll-glow var(--roll-ms, 380ms) ease-out;
  animation-delay: var(--roll-delay, 0ms);
}

@keyframes lbd-roll-glow {
  0% {
    background: rgba(91, 140, 248, 0);
    box-shadow: 0 0 0 rgba(91, 140, 248, 0);
  }
  35% {
    background: rgba(91, 140, 248, 0.42);
    box-shadow: 0 0 16px rgba(91, 140, 248, 0.55);
  }
  100% {
    background: rgba(91, 140, 248, 0);
    box-shadow: 0 0 0 rgba(91, 140, 248, 0);
  }
}
.lbd__reel {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  transition: transform 300ms ease-out;
}

.lbd__reel span {
  display: block;
  height: 22px;
  line-height: 22px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #fff7e6;
}

.lbd__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  margin: -1px;
  padding: 0;
  border: 0;
}

@media (max-width: 340px) {
  .lbd {
    width: min(94vw, 260px);
  }
  .lbd__list {
    gap: 4px;
  }
  .lbd__row {
    padding: 4px 8px;
    gap: 8px;
  }
  .lbd__name {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lbd__reel {
    transition: none !important;
  }
  .lbd__digit.is-rolling {
    animation: none !important;
  }
  .lbd__row.is-hot {
    animation: none !important;
  }
}
