.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: #17141a;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

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

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

.lbg__row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #17141a;
  border: 1px solid rgba(255, 247, 230, 0.12);
  overflow: hidden;
  cursor: pointer;
}

.lbg__row:focus-visible {
  outline: 2px solid #5b8cf8;
  outline-offset: 2px;
}

.lbg__row--gold {
  background: rgba(255, 210, 63, 0.16);
  border-color: rgba(255, 210, 63, 0.55);
}

.lbg__rank {
  width: 22px;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  color: #5b8cf8;
  text-align: center;
}

.lbg__row--gold .lbg__rank {
  color: #ffd23f;
}

.lbg__name {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  font-weight: 700;
  color: #fff7e6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lbg__score {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  color: #fff7e6;
  font-variant-numeric: tabular-nums;
}

.lbg__sweep {
  position: absolute;
  top: 0;
  left: 0;
  width: 55%;
  height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255, 210, 63, 0.6), transparent);
  mix-blend-mode: screen;
  pointer-events: none;
  will-change: transform;
}

.lbg__row--gold {
  will-change: box-shadow, background;
}

.lbg__row:not(.lbg__row--gold) .lbg__sweep {
  display: none;
}

.lbg__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) {
  .lbg {
    width: min(94vw, 260px);
  }
  .lbg__list {
    gap: 4px;
  }
  .lbg__row {
    padding: 4px 8px;
    gap: 8px;
  }
  .lbg__name {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lbg__sweep {
    display: none !important;
  }
}
