.roulette-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 9000;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.15rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #c9a66b, #8b6914);
  color: #fff;
  font: 600 0.95rem/1.2 "Outfit", system-ui, sans-serif;
  box-shadow: 0 10px 28px rgba(26, 18, 9, 0.28);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.roulette-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(26, 18, 9, 0.32);
}

.roulette-fab.hidden {
  display: none;
}

.roulette-fab-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.roulette-fab-badge {
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: #1a1209;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.roulette-modal {
  position: fixed;
  inset: 0;
  z-index: 9100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.roulette-modal.hidden {
  display: none;
}

.roulette-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 18, 9, 0.55);
}

.roulette-modal-panel {
  position: relative;
  width: min(100%, 26rem);
  max-height: min(92vh, 640px);
  overflow: auto;
  padding: 1.35rem 1.25rem 1.5rem;
  border-radius: 16px;
  background: #f7f2ea;
  box-shadow: 0 24px 60px rgba(26, 18, 9, 0.35);
}

.roulette-modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: #5c4a32;
  cursor: pointer;
}

.roulette-modal-title {
  margin: 0 0 0.35rem;
  font: 600 1.25rem/1.2 "Cormorant Garamond", Georgia, serif;
  color: #1a1209;
}

.roulette-modal-sub {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: #5c4a32;
}

.roulette-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.roulette-wheel-wrap {
  position: relative;
  width: min(72vw, 17.5rem);
  height: min(72vw, 17.5rem);
  margin: 0 auto;
}

.roulette-pointer {
  position: absolute;
  top: -0.35rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 0.65rem solid transparent;
  border-right: 0.65rem solid transparent;
  border-top: 1.1rem solid #1a1209;
  z-index: 2;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.2));
}

.roulette-wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid #1a1209;
  box-shadow: inset 0 0 0 3px #f7f2ea, 0 8px 24px rgba(26, 18, 9, 0.18);
  transition: transform 4s cubic-bezier(0.15, 0.85, 0.2, 1);
  will-change: transform;
  overflow: hidden;
  background: #f7f2ea;
}

.roulette-wheel-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.roulette-segment-text {
  font: 600 7px/1.15 "Outfit", system-ui, sans-serif;
  letter-spacing: 0.02em;
  pointer-events: none;
}

.roulette-wheel-center {
  position: absolute;
  inset: 50%;
  width: 2.75rem;
  height: 2.75rem;
  margin: -1.375rem;
  border-radius: 50%;
  background: #1a1209;
  border: 3px solid #f7f2ea;
  z-index: 1;
  box-shadow: 0 2px 8px rgba(26, 18, 9, 0.25);
}

.roulette-spin-credits {
  margin: 0;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #c9a66b, #8b6914);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.02em;
}

.roulette-spin-credits.hidden {
  display: none;
}

.roulette-spin-btn {
  min-width: 9rem;
}

.roulette-spin-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.roulette-result {
  text-align: center;
  padding: 0.75rem 0.5rem 0;
}

.roulette-result.hidden {
  display: none;
}

.roulette-result-label {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  color: #5c4a32;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.roulette-result-prize {
  margin: 0;
  font: 600 1.35rem/1.25 "Cormorant Garamond", Georgia, serif;
  color: #1a1209;
}

.roulette-error {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: #9b2c2c;
  text-align: center;
}

.roulette-error.hidden {
  display: none;
}

@media (max-width: 480px) {
  .roulette-fab {
    right: 1rem;
    bottom: 1rem;
    padding: 0.75rem 1rem;
    font-size: 0.88rem;
  }
}
