.fogo-roleta {
  position: fixed;
  inset: 0;
  z-index: 4500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.fogo-roleta[hidden] {
  display: none !important;
}

.fogo-roleta-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.fogo-roleta-dialog {
  position: relative;
  width: min(920px, calc(100vw - 28px), calc((100vh - 28px) * 1000 / 647));
  aspect-ratio: 1000 / 647;
  max-height: calc(100vh - 28px);
  border-radius: 18px;
  overflow: hidden;
  background: #3a050c url("/images/roleta/roleta-fundo-desktop.jpeg") center / cover no-repeat;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.fogo-roleta-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.fogo-roleta-stage {
  position: absolute;
  left: 50%;
  top: 50%;
  height: 74%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}

.fogo-roleta-disc {
  width: 100%;
  height: 100%;
  display: block;
  transform: rotate(-18deg);
  transform-origin: center;
}

.fogo-roleta-pointer {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 2;
  width: 16%;
  transform: translate(-50%, -58%);
  pointer-events: none;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.35));
}

.fogo-roleta-go {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 22%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 3px solid #ffe08a;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #ff4d68, #f12c4c 62%, #9d1028);
  color: #fff;
  font-weight: 800;
  font-size: clamp(13px, 1.6vw, 18px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.fogo-roleta-go:disabled {
  cursor: default;
  opacity: 0.72;
}

.reward-open {
  width: auto !important;
  display: block;
  margin: 18px auto 0;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  background: #f12c4c;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.fogo-roleta-status {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 3;
  max-width: calc(100% - 32px);
  margin: 0;
  transform: translateX(-50%);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 13px;
  line-height: 1.3;
  text-align: center;
}

@media (max-width: 760px) {
  .fogo-roleta {
    padding: 8px;
  }

  .fogo-roleta-dialog {
    width: min(420px, calc(100vw - 16px), calc((100vh - 16px) * 750 / 1125));
    aspect-ratio: 750 / 1125;
    background-image: url("/images/roleta/roleta-fundo-mobile.jpeg");
  }

  .fogo-roleta-stage {
    top: 42%;
    height: auto;
    width: 88%;
  }

  .fogo-roleta-status {
    bottom: 18px;
    font-size: 12px;
  }
}
