.slot-machine {
  position: relative;
  border-radius: 1.35rem;
  padding: 1.25rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent),
    radial-gradient(circle at 50% 0%, rgba(47, 214, 195, 0.2), transparent 55%),
    #0b1620;
  border: 1px solid rgba(47, 214, 195, 0.28);
  box-shadow: inset 0 0 40px rgba(47, 214, 195, 0.08), 0 0 40px rgba(255, 79, 110, 0.12);
}

.slot-title {
  text-align: center;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, #2fd6c3, #f0b84a, #ff4f6e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.slot-window {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 1.1rem;
  background: linear-gradient(180deg, #061018, #122433);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.slot-reel {
  height: 150px;
  border-radius: 0.9rem;
  overflow: hidden;
  position: relative;
  background: #101c28;
  border: 1px solid rgba(47, 214, 195, 0.2);
}

.slot-reel::before,
.slot-reel::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 28px;
  z-index: 2;
  pointer-events: none;
}

.slot-reel::before {
  top: 0;
  background: linear-gradient(180deg, rgba(6, 16, 24, 0.95), transparent);
}

.slot-reel::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(6, 16, 24, 0.95), transparent);
}

.slot-strip {
  display: flex;
  flex-direction: column;
  transition: transform 0.05s linear;
}

.slot-symbol {
  height: 150px;
  display: grid;
  place-items: center;
  font-size: 2.6rem;
  color: #2fd6c3;
  text-shadow: 0 0 18px rgba(47, 214, 195, 0.55);
}

.slot-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.15rem;
}

.slot-btn {
  min-height: 48px;
  min-width: 140px;
  border-radius: 999px;
  font-weight: 800;
  color: #04131a;
  background: linear-gradient(135deg, #2fd6c3, #149e90);
  box-shadow: 0 0 24px rgba(47, 214, 195, 0.35);
}

.slot-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.slot-status {
  text-align: center;
  margin-top: 0.9rem;
  min-height: 1.4em;
  font-weight: 700;
  color: #f0b84a;
}

.slot-glow {
  animation: slotPulse 0.8s ease;
}

@keyframes slotPulse {
  0% {
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.45);
  }
  50% {
    box-shadow: inset 0 0 40px rgba(47, 214, 195, 0.35), 0 0 30px rgba(240, 184, 74, 0.25);
  }
  100% {
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.45);
  }
}

.bj-table {
  border-radius: 1.35rem;
  padding: 1.25rem;
  background:
    radial-gradient(circle at 50% 20%, rgba(13, 184, 171, 0.18), transparent 45%),
    linear-gradient(160deg, #123228, #0d1c24 60%, #152636);
  border: 1px solid rgba(13, 184, 171, 0.28);
}

.bj-row {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.bj-label {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(237, 246, 250, 0.65);
}

.bj-hand {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  min-height: 96px;
}

.bj-card {
  width: 68px;
  height: 96px;
  border-radius: 0.7rem;
  background: linear-gradient(160deg, #fff, #e8f0f5);
  color: #13202c;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  font-weight: 800;
  font-size: 1.15rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  animation: cardIn 0.35s ease;
}

.bj-card.red {
  color: #e23454;
}

.bj-card.back {
  background: linear-gradient(145deg, #ff4f6e, #0db8ab);
  color: #fff;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.bj-score {
  font-weight: 800;
  color: #2fd6c3;
}

.bj-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.bj-btn {
  min-height: 46px;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #ff4f6e, #e23454);
  box-shadow: 0 0 20px rgba(255, 79, 110, 0.3);
}

.bj-btn.alt {
  background: linear-gradient(135deg, #0db8ab, #08978c);
  box-shadow: 0 0 20px rgba(13, 184, 171, 0.3);
}

.bj-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.bj-status {
  text-align: center;
  margin-top: 0.9rem;
  font-weight: 700;
  color: #f0b84a;
  min-height: 1.4em;
}

.wheel-wrap {
  display: grid;
  gap: 1.15rem;
  justify-items: center;
}

.wheel-stage {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 1;
}

.wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 8px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 0 0 6px rgba(13, 184, 171, 0.2),
    0 0 40px rgba(255, 79, 110, 0.25),
    inset 0 0 30px rgba(0, 0, 0, 0.35);
  background: conic-gradient(
    #e23454 0 30deg,
    #12202c 30deg 60deg,
    #0db8ab 60deg 90deg,
    #12202c 90deg 120deg,
    #e23454 120deg 150deg,
    #12202c 150deg 180deg,
    #0db8ab 180deg 210deg,
    #12202c 210deg 240deg,
    #e23454 240deg 270deg,
    #12202c 270deg 300deg,
    #0db8ab 300deg 330deg,
    #12202c 330deg 360deg
  );
  transition: transform 4s cubic-bezier(0.12, 0.75, 0.12, 1);
}

.wheel-pointer {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 22px solid #f0b84a;
  filter: drop-shadow(0 0 8px rgba(240, 184, 74, 0.7));
  z-index: 2;
}

.wheel-center {
  position: absolute;
  inset: 42%;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, #f0b84a 45%, #12202c 100%);
  box-shadow: 0 0 20px rgba(240, 184, 74, 0.45);
}

.wheel-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
}

.wheel-pick {
  min-height: 42px;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-weight: 800;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

.wheel-pick.active {
  background: linear-gradient(135deg, #ff4f6e, #0db8ab);
  box-shadow: 0 0 18px rgba(255, 79, 110, 0.35);
}

.wheel-spin {
  min-height: 48px;
  min-width: 150px;
  border-radius: 999px;
  font-weight: 800;
  color: #04131a;
  background: linear-gradient(135deg, #f0b84a, #e8a230);
  box-shadow: 0 0 24px rgba(240, 184, 74, 0.35);
}

.wheel-spin:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.wheel-status {
  text-align: center;
  font-weight: 700;
  color: #2fd6c3;
  min-height: 1.4em;
}

@media (min-width: 768px) {
  .slot-reel,
  .slot-symbol {
    height: 170px;
  }

  .bj-card {
    width: 76px;
    height: 106px;
  }
}
