html, body {
  margin: 0;
  overflow: hidden;
}

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

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

.wtc__board {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
  transition: background 220ms ease-out, box-shadow 220ms ease-out;
}

.wtc__board.is-up {
  background: rgba(61, 220, 151, 0.22);
  box-shadow: 0 0 0 1px rgba(61, 220, 151, 0.45);
}

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

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

.wtc__digit {
  position: relative;
  width: 40px;
  height: 58px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(23, 20, 26, 0.08);
}

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

.wtc__reel i {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 58px;
  font-style: normal;
  font-size: 38px;
  font-weight: 700;
  color: #c93000;
}

.wtc__board.is-up .wtc__reel i {
  color: #3ddc97;
}

.wtc__board.is-down .wtc__reel i {
  color: #ff7a5e;
}

.wtc__unit {
  font-size: 12px;
  font-weight: 600;
  color: rgba(23, 20, 26, 0.72);
}

.wtc__status {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  color: rgba(23, 20, 26, 0.78);
}

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

.wtc__btn {
  border: 1px solid rgba(23, 20, 26, 0.3);
  background: transparent;
  color: #17141a;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.wtc__btn--primary {
  background: #c93000;
  border-color: #c93000;
  color: #ffffff;
}

.wtc__btn:focus-visible {
  outline: 2px solid #c93000;
  outline-offset: 2px;
}

@media (max-width: 340px) {
  .wtc__digit {
    width: 30px;
    height: 44px;
  }
  .wtc__reel i {
    height: 44px;
    font-size: 28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .wtc__board {
    transition: none;
  }
  .wtc__reel {
    transition: none;
  }
}
