.hp-playfield {
  max-width: 980px;
  margin: 0 auto;
  padding: 1.5rem;
  border: 2px solid rgba(247, 243, 236, 0.2);
  background:
    radial-gradient(circle at 20% 20%, rgba(239, 177, 42, 0.18), transparent 35%),
    radial-gradient(circle at 80% 10%, rgba(53, 88, 232, 0.22), transparent 30%),
    linear-gradient(160deg, #171c25 0%, #0f1319 55%, #1a2230 100%);
  box-shadow: 0 0 40px rgba(53, 88, 232, 0.18), inset 0 0 60px rgba(239, 177, 42, 0.05);
  color: #f7f3ec;
}

.hp-play-top {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.hp-play-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(239, 177, 42, 0.45);
  background: rgba(239, 177, 42, 0.12);
  box-shadow: 0 0 18px rgba(239, 177, 42, 0.15);
  font-weight: 700;
}

.hp-play-stat span {
  color: var(--hp-saffron);
  text-shadow: 0 0 12px rgba(239, 177, 42, 0.55);
}

.hp-play-note {
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
  color: rgba(247, 243, 236, 0.65);
}

.hp-slot-machine {
  position: relative;
  padding: 1.4rem;
  border: 2px solid rgba(239, 177, 42, 0.55);
  background: linear-gradient(180deg, #242b38 0%, #151922 100%);
  box-shadow: 0 0 30px rgba(239, 177, 42, 0.2);
}

.hp-slot-reels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}

.hp-slot-reel {
  height: 150px;
  overflow: hidden;
  border: 2px solid rgba(247, 243, 236, 0.25);
  background: #0b0e14;
  position: relative;
  box-shadow: inset 0 0 24px rgba(53, 88, 232, 0.25);
}

.hp-slot-reel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 28%, transparent 72%, rgba(0, 0, 0, 0.45));
  pointer-events: none;
  z-index: 2;
}

.hp-slot-strip {
  display: flex;
  flex-direction: column;
  will-change: transform;
}

.hp-slot-symbol {
  height: 150px;
  min-height: 150px;
  flex: 0 0 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #fff;
  text-shadow: 0 0 18px rgba(42, 212, 197, 0.5), 0 0 28px rgba(239, 177, 42, 0.35);
}

.hp-slot-symbol img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(239, 177, 42, 0.55));
}

.hp-slot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.hp-slot-spin {
  min-width: 180px;
  justify-content: center;
  background: linear-gradient(135deg, #efb12a, #ffcf66);
  color: #14171d;
  border-color: #efb12a;
  box-shadow: 0 0 24px rgba(239, 177, 42, 0.45);
}

.hp-slot-spin:disabled {
  opacity: 0.5;
  box-shadow: none;
}

.hp-slot-message {
  min-height: 1.5rem;
  margin-top: 1rem;
  text-align: center;
  font-weight: 700;
  color: var(--hp-saffron);
  text-shadow: 0 0 14px rgba(239, 177, 42, 0.4);
}

.hp-slot-machine.is-win {
  animation: hpPulseGlow 0.8s ease;
}

@keyframes hpPulseGlow {
  0%,
  100% {
    box-shadow: 0 0 30px rgba(239, 177, 42, 0.2);
  }
  50% {
    box-shadow: 0 0 55px rgba(239, 177, 42, 0.65), 0 0 80px rgba(53, 88, 232, 0.35);
  }
}

.hp-bj-table {
  padding: 1.25rem;
  border: 2px solid rgba(42, 180, 120, 0.4);
  background:
    radial-gradient(circle at center, rgba(28, 110, 78, 0.55), rgba(12, 28, 24, 0.95));
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.35), 0 0 30px rgba(42, 180, 120, 0.2);
}

.hp-bj-row {
  margin-bottom: 1.2rem;
}

.hp-bj-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.55rem;
  font-weight: 700;
  color: rgba(247, 243, 236, 0.85);
}

.hp-bj-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  min-height: 112px;
}

.hp-card {
  width: 74px;
  height: 108px;
  border-radius: 10px;
  background: linear-gradient(160deg, #fff 0%, #f0ece4 100%);
  border: 1px solid rgba(20, 23, 29, 0.2);
  color: #14171d;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.4rem 0.45rem;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25), 0 0 12px rgba(255, 255, 255, 0.15);
  animation: hpCardIn 0.35s ease;
}

.hp-card.is-red {
  color: #d62839;
}

.hp-card.is-back {
  background: linear-gradient(145deg, #3558e8, #1d2f8a);
  color: #fff;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.hp-card small {
  font-size: 0.85rem;
}

@keyframes hpCardIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hp-bj-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-top: 0.5rem;
}

.hp-bj-actions .hp-btn {
  background: rgba(247, 243, 236, 0.08);
  border-color: rgba(247, 243, 236, 0.35);
  color: #f7f3ec;
}

.hp-bj-actions .hp-btn:hover:not(:disabled) {
  background: var(--hp-saffron);
  border-color: var(--hp-saffron);
  color: #14171d;
}

.hp-bj-actions .hp-btn:disabled {
  opacity: 0.4;
}

.hp-bj-message {
  margin-top: 1rem;
  text-align: center;
  font-weight: 700;
  min-height: 1.5rem;
  color: #9ef5d8;
  text-shadow: 0 0 14px rgba(158, 245, 216, 0.35);
}

.hp-roulette-wrap {
  display: grid;
  gap: 1.25rem;
  justify-items: center;
}

.hp-roulette-stage {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 1;
}

.hp-roulette-wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 8px solid #efb12a;
  background: conic-gradient(
    #14171d 0deg 18deg,
    #c62828 18deg 36deg,
    #14171d 36deg 54deg,
    #c62828 54deg 72deg,
    #14171d 72deg 90deg,
    #c62828 90deg 108deg,
    #14171d 108deg 126deg,
    #c62828 126deg 144deg,
    #14171d 144deg 162deg,
    #c62828 162deg 180deg,
    #14171d 180deg 198deg,
    #c62828 198deg 216deg,
    #14171d 216deg 234deg,
    #c62828 234deg 252deg,
    #14171d 252deg 270deg,
    #c62828 270deg 288deg,
    #14171d 288deg 306deg,
    #c62828 306deg 324deg,
    #14171d 324deg 342deg,
    #efb12a 342deg 360deg
  );
  box-shadow: 0 0 40px rgba(239, 177, 42, 0.35), inset 0 0 30px rgba(0, 0, 0, 0.45);
  transition: transform 4s cubic-bezier(0.12, 0.75, 0.12, 1);
  position: relative;
}

.hp-roulette-wheel::before {
  content: "";
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background: radial-gradient(circle, #2a303a 0%, #14171d 70%);
  border: 3px solid rgba(239, 177, 42, 0.55);
  box-shadow: 0 0 20px rgba(53, 88, 232, 0.35);
}

.hp-roulette-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 #efb12a;
  filter: drop-shadow(0 0 8px rgba(239, 177, 42, 0.8));
  z-index: 2;
}

.hp-roulette-center {
  position: absolute;
  inset: 38%;
  border-radius: 50%;
  background: linear-gradient(145deg, #efb12a, #ffcf66);
  border: 2px solid #fff;
  z-index: 1;
  box-shadow: 0 0 18px rgba(239, 177, 42, 0.7);
}

.hp-roulette-bets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
}

.hp-roulette-bet {
  min-width: 84px;
  justify-content: center;
  background: rgba(247, 243, 236, 0.08);
  border: 2px solid rgba(247, 243, 236, 0.3);
  color: #f7f3ec;
  padding: 0.7rem 0.9rem;
}

.hp-roulette-bet.is-active {
  background: var(--hp-saffron);
  border-color: var(--hp-saffron);
  color: #14171d;
  box-shadow: 0 0 18px rgba(239, 177, 42, 0.45);
}

.hp-roulette-spin {
  min-width: 180px;
  justify-content: center;
  background: linear-gradient(135deg, #e84a7f, #ff7aa3);
  border-color: #e84a7f;
  color: #fff;
  box-shadow: 0 0 24px rgba(232, 74, 127, 0.45);
}

.hp-roulette-spin:disabled {
  opacity: 0.5;
  box-shadow: none;
}

.hp-roulette-message {
  text-align: center;
  font-weight: 700;
  min-height: 1.5rem;
  color: #ffcf66;
  text-shadow: 0 0 14px rgba(239, 177, 42, 0.45);
}

@media (max-width: 575.98px) {
  .hp-slot-reels {
    gap: 0.4rem;
  }

  .hp-slot-reel,
  .hp-slot-symbol {
    height: 110px;
    min-height: 110px;
    flex-basis: 110px;
  }

  .hp-slot-symbol {
    font-size: 2.2rem;
  }

  .hp-card {
    width: 62px;
    height: 92px;
  }
}
