/* Cassino Cactus — stage do jogo na página (layout original) + aviso */

.cactus-game-lobby-oculto {
  display: none !important;
}

.cactus-game-stage {
  display: none;
  margin-top: 1rem;
  margin-left: auto;
  margin-right: auto;
  width: var(--stage-w, min(100%, max(560px, calc((100svh - 172px) * 16 / 9))));
  max-width: 100%;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--theme-card-1, #213545);
  box-shadow: 0 0 28px -14px color-mix(in srgb, var(--theme-primary, #1475e1) 40%, transparent);
}

.cactus-game-stage.aberto {
  display: flex;
}

.cactus-game-stage-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
}

.cactus-game-stage-bar strong {
  font-size: 14px;
  font-weight: 700;
}

.cactus-game-stage-acoes button {
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.cactus-game-stage-acoes button:hover {
  background: rgba(255, 255, 255, 0.14);
}

.cactus-game-stage-frame {
  position: relative;
  background: #000;
  aspect-ratio: 16 / 9;
  min-height: 420px;
}

.cactus-game-stage-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.cactus-game-stage-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font: 600 14px/1.3 system-ui, sans-serif;
  background: rgba(0, 0, 0, 0.72);
  z-index: 2;
  transition: opacity 0.25s ease;
}

.cactus-game-stage-loading.oculto {
  opacity: 0;
  pointer-events: none;
}

.cactus-cassino-toast {
  position: fixed;
  left: 50%;
  bottom: 88px;
  transform: translateX(-50%) translateY(12px);
  z-index: 130;
  max-width: min(90vw, 420px);
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.94);
  color: #fff;
  font: 600 13px/1.3 system-ui, sans-serif;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.cactus-cassino-toast.visivel {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 990px) {
  .cactus-game-stage {
    width: 100%;
    border-radius: 0.75rem;
  }

  .cactus-game-stage-frame {
    aspect-ratio: auto;
    height: calc(100svh - 144px);
    min-height: 360px;
  }
}

/* Capas do scrape Next: ficavam opacity-0 sem o runtime */
a img.opacity-0,
.swiper-slide img.opacity-0,
.grid img.opacity-0,
img.object-cover.opacity-0 {
  opacity: 1 !important;
}

.cactus-slot-card {
  transition: transform 0.2s ease;
}

.cactus-slot-card:hover {
  transform: translateY(-2px);
}

.cactus-busca-overlay {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 72px 16px 24px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}

.cactus-busca-overlay.aberto {
  display: flex;
}

.cactus-busca-painel {
  width: min(720px, 100%);
  max-height: min(80vh, 640px);
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background: var(--theme-card-1, #213545);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.cactus-busca-topo {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cactus-busca-topo input {
  flex: 1;
  height: 42px;
  border: 0;
  border-radius: 10px;
  padding: 0 14px;
  background: var(--theme-card-2, #2b3f50);
  color: #fff;
  outline: none;
}

.cactus-busca-topo button {
  height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.cactus-busca-resultados {
  overflow: auto;
  padding: 8px;
}

.cactus-busca-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
}

.cactus-busca-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.cactus-busca-item img,
.cactus-busca-fallback {
  width: 44px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--theme-card-2, #2b3f50);
  flex: 0 0 auto;
}

.cactus-busca-vazio {
  margin: 18px 8px;
  color: var(--theme-card-text, #8a9bbf);
  font-size: 14px;
  text-align: center;
}
