body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.wheel-container {
  position: relative;
  width: 90vmin;
  height: 90vmin;
  max-width: 70vmin;
  max-height: 70vmin;
}

.wheel-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  transform-origin: center center;
  transition: transform 5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.wheel-slides {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  transform-origin: center center;
  transition: transform 5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.slide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  height: 0.6vmin;
  transform-origin: left center;
  border: none;
}

.wheel-border {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.spin-button {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24%;
  height: 24%;
  transform: translate(-50%, -50%);
  z-index: 4;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.spin-button:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.spin-button:active {
  transform: translate(-50%, -50%) scale(0.95);
}

.spin-button.disabled {
  cursor: not-allowed;
  opacity: 0.6;
  pointer-events: none;
}

.result-display {
  position: absolute;
  bottom: -15%;
  left: 50%;
  transform: translateX(-50%);
  padding: 2vmin 4vmin;
  border-radius: 2vmin;
  font-size: 3.5vmin;
  font-weight: bold;
  display: none;
  white-space: nowrap;
  box-shadow: 0 0.6vmin 2vmin rgba(0, 0, 0, 0.2);
  /* Colors will be set dynamically */
}

/* Black reference circle at 12 o'clock */
.reference-circle {
  position: absolute;
  top: -1.5vmin;
  left: 50%;
  transform: translateX(-50%);
  width: 3vmin;
  height: 3vmin;
  background: black;
  border-radius: 50%;
  z-index: 10;
}

/* Celebration animations */
@keyframes pulse {
  0%,
  100% {
    transform: translateX(-50%) scale(1);
  }
  50% {
    transform: translateX(-50%) scale(1.1);
  }
}

/* Token Display Bar */
.token-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3vmin;
  margin-top: 2vmin;
  padding: 1.5vmin 3vmin;
  /* Background will be set dynamically */
  border-radius: 2vmin;
  box-shadow: 0 0.5vmin 1.5vmin rgba(0, 0, 0, 0.1);
  max-width: 55vmin;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 5;
}

.token-info {
  display: flex;
  align-items: center;
  gap: 1vmin;
}

.token-label {
  font-size: 2.2vmin;
  font-weight: 500;
  /* Color will be set dynamically */
}

.token-value {
  font-size: 2.8vmin;
  font-weight: bold;
  /* Color will be set dynamically */
}

.token-divider {
  font-size: 3vmin;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Color will be set dynamically */
}

.daily-limit {
  font-weight: bold;
  transition: color 0.3s ease;
}

/* Rounds Selector Bar */
.rounds-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2vmin;
  margin-top: 2vmin;
  padding: 1.5vmin 3vmin;
  /* Background will be set dynamically */
  border-radius: 2vmin;
  box-shadow: 0 0.5vmin 1.5vmin rgba(0, 0, 0, 0.1);
  max-width: 30vmin;
  margin-left: auto;
  margin-right: auto;
}

.rounds-btn {
  width: 6vmin;
  height: 6vmin;
  border: none;
  border-radius: 50%;
  font-size: 3vmin;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  /* Colors will be set dynamically */
}

.rounds-btn:hover:not(:disabled) {
  transform: scale(1.05);
  /* Hover colors will be set dynamically */
}

.rounds-btn:disabled {
  background: #6c757d;
  cursor: not-allowed;
  opacity: 0.6;
}

.rounds-display {
  font-size: 4vmin;
  font-weight: bold;
  min-width: 8vmin;
  text-align: center;
  /* Color will be set dynamically */
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-1vmin);
  }
  60% {
    transform: translateY(-0.5vmin);
  }
}

/* Token update animation */
@keyframes token-update {
  0% {
    transform: scale(1);
    color: inherit;
  }
  25% {
    transform: scale(1.2);
    color: #4caf50;
    text-shadow: 0 0 1vmin rgba(76, 175, 80, 0.5);
  }
  50% {
    transform: scale(1.1);
    color: #4caf50;
    text-shadow: 0 0 1.5vmin rgba(76, 175, 80, 0.7);
  }
  100% {
    transform: scale(1);
    color: inherit;
    text-shadow: none;
  }
}

/* Mobile view - remove wheel-container max-width and max-height */
@media (375px < width < 768px) {
  .wheel-container {
    max-width: none;
    max-height: none;
  }

  .token-bar {
    max-width: 70vmin;
    padding: 3vmin 4vmin;
    /* min-height: 8vmin; */
  }

  .token-bar .token-label {
    font-size: 3vmin;
  }

  .token-bar .token-value {
    font-size: 4vmin;
  }

  .token-bar .token-divider {
    font-size: 4vmin;
  }

  .rounds-bar {
    max-width: 40vmin;
    padding: 2.5vmin 4vmin;
  }

  .rounds-btn {
    width: 8vmin;
    height: 8vmin;
    font-size: 4vmin;
  }

  .rounds-display {
    font-size: 5vmin;
    min-width: 10vmin;
  }
}
