/**
 * Pack de 5 jogos + Roleta Super — /pack5
 * Visual da Astex, na azul do Seek Key.
 */

.pack-bag-item.is-prize {
  border-color: rgba(245, 196, 81, 0.35);
  background: rgba(245, 196, 81, 0.06);
}

.pack-bag-item.is-prize .pack-bag-label {
  color: var(--pack-gold);
}

.pack-bag-item.is-prize .pack-bag-check {
  background: var(--pack-gold);
  border-color: var(--pack-gold);
  color: #241a02;
}

/* ══════════════════════════════════════════════════════
   ROLETA SUPER
   ══════════════════════════════════════════════════════ */
.roleta-section {
  position: relative;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 20% 0%, hsl(var(--primary) / 0.10), transparent 55%),
    radial-gradient(circle at 85% 100%, rgba(245, 196, 81, 0.08), transparent 55%),
    rgba(10, 14, 24, 0.66);
  padding: 28px 22px;
  margin-bottom: 28px;
  overflow: hidden;
}

.roleta-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  mask-image: radial-gradient(circle 420px at 50% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(circle 420px at 50% 50%, black, transparent);
}

.roleta-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

@media (min-width: 900px) {
  .roleta-section { padding: 36px 40px; }
  .roleta-inner {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 48px;
  }
}

.roleta-stage {
  position: relative;
  width: min(340px, 82vw);
  height: min(340px, 82vw);
  flex-shrink: 0;
}

.roleta-rim {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #2a3244, #131a28, #2a3244, #131a28, #2a3244);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 22px 60px rgba(0, 0, 0, 0.6),
    inset 0 0 24px rgba(0, 0, 0, 0.7);
}

.roleta-bulb {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: hsl(var(--primary));
  box-shadow: 0 0 8px hsl(var(--primary) / 0.9);
  top: 50%;
  left: 50%;
  margin: -3.5px 0 0 -3.5px;
  animation: bulbPulse 1.4s ease-in-out infinite;
}

@keyframes bulbPulse {
  0%, 100% { opacity: 0.28; }
  50% { opacity: 1; }
}

.roleta-stage.spinning .roleta-bulb {
  animation-duration: 0.35s;
}

.roleta-wheel {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  transform: rotate(0deg);
  will-change: transform;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.5));
}

.roleta-wheel svg {
  width: 100%;
  height: 100%;
  display: block;
}

.roleta-pointer {
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 42px;
  z-index: 6;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.7));
  transform-origin: 50% 15%;
}

.roleta-pointer.tick {
  animation: pointerTick 0.09s ease-out;
}

@keyframes pointerTick {
  0% { transform: translateX(-50%) rotate(0deg); }
  50% { transform: translateX(-50%) rotate(-13deg); }
  100% { transform: translateX(-50%) rotate(0deg); }
}

.roleta-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 92px;
  height: 92px;
  border-radius: 50%;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 3px solid rgba(255, 255, 255, 0.14);
  background: radial-gradient(circle at 50% 30%, #1d2636, #0b0f18);
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.35), 0 10px 28px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s, box-shadow 0.25s, border-color 0.25s;
}

.roleta-hub:not(:disabled):hover {
  transform: translate(-50%, -50%) scale(1.06);
  border-color: hsl(var(--primary) / 0.8);
  box-shadow:
    0 0 0 6px rgba(0, 0, 0, 0.35),
    0 0 26px hsl(var(--primary) / 0.45),
    0 10px 28px rgba(0, 0, 0, 0.6);
}

.roleta-hub:not(:disabled):active {
  transform: translate(-50%, -50%) scale(0.97);
}

.roleta-hub:disabled {
  cursor: not-allowed;
  opacity: 0.75;
}

.roleta-hub .hub-icon {
  color: hsl(var(--primary));
}

.roleta-hub.ready {
  animation: hubGlow 2.2s ease-in-out infinite;
}

@keyframes hubGlow {
  0%, 100% {
    box-shadow:
      0 0 0 6px rgba(0, 0, 0, 0.35),
      0 0 10px hsl(var(--primary) / 0.25),
      0 10px 28px rgba(0, 0, 0, 0.6);
  }
  50% {
    box-shadow:
      0 0 0 6px rgba(0, 0, 0, 0.35),
      0 0 32px hsl(var(--primary) / 0.6),
      0 10px 28px rgba(0, 0, 0, 0.6);
  }
}

.roleta-info {
  flex: 1;
  min-width: 0;
  max-width: 460px;
  width: 100%;
}

.roleta-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(245, 196, 81, 0.1);
  border: 1px solid rgba(245, 196, 81, 0.3);
  color: var(--pack-gold);
  margin-bottom: 14px;
}

.roleta-title {
  font-size: 26px;
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 10px;
}

.roleta-sub {
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 18px;
}

.roleta-prizes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.roleta-prize {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
}

.roleta-prize .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.roleta-prize.jackpot {
  border-color: rgba(245, 196, 81, 0.3);
  background: rgba(245, 196, 81, 0.06);
  color: var(--pack-gold);
}

.roleta-status {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.62);
}

.roleta-status.won {
  border-color: rgba(245, 196, 81, 0.35);
  background: rgba(245, 196, 81, 0.07);
}

.roleta-status-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.6);
}

.roleta-status.won .roleta-status-icon {
  background: rgba(245, 196, 81, 0.15);
  color: var(--pack-gold);
}

.roleta-countdown {
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.04em;
}

.roleta-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 8;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  width: 8px;
  height: 14px;
  border-radius: 2px;
  animation: confettiFall linear forwards;
}

@keyframes confettiFall {
  0% { transform: translateY(-10px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(420px) rotate(720deg); opacity: 0; }
}

/* ── Bloqueio da roleta até o pack de 5 ─────────────────── */
.pack-locked {
  position: relative;
}

.pack-locked > .lock-shade {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 45;
  border-radius: inherit;
  background: rgba(6, 9, 18, 0.55);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 24px;
}

.pack-locked.locked > .lock-shade {
  display: flex;
}

.pack-locked.locked > *:not(.lock-shade) {
  filter: blur(6px);
  opacity: 0.75;
  pointer-events: none;
  user-select: none;
}

.pack-locked > *:not(.lock-shade) {
  transition: filter 0.35s, opacity 0.35s;
}

.lock-shade-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

.lock-shade-title {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}

.lock-shade-sub {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.5);
  max-width: 300px;
  line-height: 1.5;
}

.lock-shade-btn {
  margin-top: 4px;
  padding: 10px 20px;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: hsl(var(--primary));
  color: var(--pack-btn-text);
  box-shadow: 0 2px 12px hsl(var(--primary) / 0.25);
  transition: filter 0.2s;
}

.lock-shade-btn:hover {
  filter: brightness(1.05);
}

/* ── Faixa do prêmio conquistado ──────────────────────── */
.prize-banner {
  display: none;
  align-items: center;
  gap: 14px;
  border-radius: 16px;
  border: 1px solid rgba(245, 196, 81, 0.32);
  background: linear-gradient(90deg, rgba(245, 196, 81, 0.10), rgba(245, 196, 81, 0.02));
  padding: 14px 16px;
  margin-bottom: 20px;
}

.prize-banner.show {
  display: flex;
  animation: prizeIn 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes prizeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.prize-banner-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 196, 81, 0.16);
  color: var(--pack-gold);
}

@media (max-width: 760px) {
  .pack-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
    overflow: visible;
  }

  .pack-tab {
    justify-content: center;
    text-align: center;
    padding: 10px 8px;
    font-size: 11px;
    line-height: 1.25;
    white-space: normal;
    gap: 6px;
  }

  .pack-tab-badge { display: none; }

  .roleta-section { padding: 20px 14px; }
  .roleta-title { font-size: 22px; }
  .roleta-prizes { gap: 6px; }
}
