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

.wcn {
  position: relative;
  display: grid;
  gap: 16px;
  justify-items: center;
  width: min(90vw, 300px);
}

.wcn__board {
  border-radius: 16px;
  display: grid;
  gap: 12px;
  justify-items: center;
}

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

.wcn__digit {
  position: relative;
  width: 54px;
  height: 80px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
}

.wcn__odometer--small .wcn__digit {
  width: 34px;
  height: 52px;
}

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

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

.wcn__odometer--small .wcn__reel i {
  height: 52px;
  font-size: 32px;
  color: #ffffff;
}

.wcn__remainWrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wcn__remainLabel,
.wcn__remainUnit {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}

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

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

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

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

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

@media (max-width: 340px) {
  .wcn__digit {
    width: 30px;
    height: 44px;
  }
  .wcn__reel i {
    height: 44px;
    font-size: 28px;
  }
  .wcn__odometer--small .wcn__digit {
    width: 22px;
    height: 32px;
  }
  .wcn__odometer--small .wcn__reel i {
    height: 32px;
    font-size: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .wcn__reel {
    transition: none;
  }
}
.wcn__board.is-flash {
  animation: wcnFlash 900ms ease-out;
}

@keyframes wcnFlash {
  from {
    background: rgba(10, 79, 232, 0.38);
  }
  to {
    background: rgba(10, 79, 232, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .wcn__board.is-flash {
    animation: none;
  }
}
