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

.whb {
  position: relative;
  display: grid;
  gap: 12px;
  justify-items: center;
  width: min(94vw, 340px);
}

.whb__head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.whb__odometer {
  display: flex;
  gap: 4px;
  font-variant-numeric: tabular-nums;
}

.whb__digit {
  position: relative;
  width: 34px;
  height: 50px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
}

.whb__reel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.whb__reel i {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  font-style: normal;
  font-size: 32px;
  font-weight: 700;
  color: #5b8cf8;
}

.whb__odometer--small .whb__digit {
  width: 22px;
  height: 32px;
}

.whb__odometer--small .whb__reel i {
  height: 32px;
  font-size: 20px;
  color: #ffffff;
}

.whb__countWrap {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 220ms ease-out, box-shadow 220ms ease-out;
}

.whb__countWrap.is-up {
  background: rgba(61, 220, 151, 0.2);
  box-shadow: 0 0 0 1px rgba(61, 220, 151, 0.4);
}

.whb__countWrap.is-down {
  background: rgba(255, 122, 94, 0.18);
  box-shadow: 0 0 0 1px rgba(255, 122, 94, 0.4);
}

.whb__countUnit {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}

.whb__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  width: 100%;
}

.whb__item {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  box-sizing: border-box;
}

.whb__item.is-next {
  background: rgba(10, 79, 232, 0.18);
  outline: 1.5px solid #0a4fe8;
  transform: scale(1.02);
}

.whb__ticket {
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #ffffff;
}

.whb__note {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
}

.whb__status {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

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

.whb__btn {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #ffffff;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.whb__btn--primary {
  background: #0a4fe8;
  border-color: #0a4fe8;
  color: #ffffff;
}

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

@media (max-width: 340px) {
  .whb__digit {
    width: 26px;
    height: 40px;
  }
  .whb__reel i {
    height: 40px;
    font-size: 26px;
  }
  .whb__odometer--small .whb__digit {
    width: 18px;
    height: 26px;
  }
  .whb__odometer--small .whb__reel i {
    height: 26px;
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .whb__reel {
    transition: none;
  }
  .whb__countWrap {
    transition: none;
  }
  .whb__item {
    transition: none;
  }
}
.whb__list {
  gap: 4px;
}

.whb__item {
  padding-top: 4px;
  padding-bottom: 4px;
}

@media (max-height: 240px) {
  .whb {
    gap: 8px;
  }
  .whb__item {
    padding-top: 0;
    padding-bottom: 0;
    min-height: 24px;
  }
  .whb__status {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .whb__btn {
    padding-top: 4px;
    padding-bottom: 4px;
  }
}
@media (max-height: 240px) {
  .whb__item {
    min-height: 20px;
  }
  .whb__digit {
    height: 32px;
  }
  .whb__reel i {
    height: 32px;
    font-size: 22px;
  }
}
.whb__list {
  max-height: 112px;
  overflow: hidden;
}

@media (max-height: 240px) {
  .whb__list {
    max-height: 96px;
  }
}
.whb__btn {
  white-space: nowrap;
  padding-left: 8px;
  padding-right: 8px;
}

.whb__status {
  white-space: nowrap;
}
