/**
 * Mystery Box - Modern Slot Style CSS
 * Glassmorphism + Neon + Poker Card Shuffle
 * v8.1
 */

/* ========== BASE STYLES ========== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #420000;
  --secondary-color: #d4af37;
  --background-color: #1a0000;
  --gold: #ffd700;
  --gold-dark: #b8860b;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --glow-gold: 0 0 20px rgba(212, 175, 55, 0.5);
  --glow-red: 0 0 20px rgba(255, 0, 0, 0.3);
  --card-red: #c41e3a;
  --card-gold: #d4af37;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, var(--background-color) 0%, #0a0000 100%);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ========== GLASSMORPHISM ========== */
.glassmorphism {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

/* ========== GLOW TEXT ========== */
.glow-text {
  text-shadow:
    0 0 10px var(--secondary-color),
    0 0 20px var(--secondary-color),
    0 0 30px var(--secondary-color);
}

/* ========== PARTICLES ========== */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  background: var(--secondary-color);
  border-radius: 50%;
  opacity: 0.3;
  animation: particleFloat 15s infinite ease-in-out;
}

@keyframes particleFloat {
  0%,
  100% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.3;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-100vh) rotate(720deg);
    opacity: 0;
  }
}

/* ========== AUDIO TOGGLE ========== */
.audio-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 2px solid var(--secondary-color);
  color: var(--secondary-color);
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 1000;
  transition: all 0.3s ease;
}

.audio-toggle:hover {
  transform: scale(1.1);
  box-shadow: var(--glow-gold);
}

.audio-toggle.playing {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(212, 175, 55, 0);
  }
}

/* ========== SLOT STYLE LOADING SCREEN ========== */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a0a0a 0%, #0a0000 50%, #1a0a0a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition:
    opacity 0.5s,
    visibility 0.5s;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.slot-loader {
  perspective: 1000px;
}

.slot-frame {
  background: linear-gradient(145deg, #2a1a1a 0%, #1a0a0a 50%, #2a1a1a 100%);
  border: 4px solid var(--gold);
  border-radius: 20px;
  padding: 20px;
  box-shadow:
    0 0 50px rgba(255, 215, 0, 0.3),
    inset 0 0 30px rgba(0, 0, 0, 0.5);
  max-width: 400px;
  width: 90vw;
}

.slot-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.slot-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow:
    0 0 10px var(--gold),
    0 2px 0 var(--gold-dark);
  white-space: nowrap;
}

.slot-lights {
  display: flex;
  gap: 4px;
}

.slot-lights .light {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  animation: lightBlink 0.5s infinite alternate;
}

.slot-lights .light:nth-child(odd) {
  animation-delay: 0.25s;
}

@keyframes lightBlink {
  0% {
    opacity: 0.3;
    box-shadow: none;
  }
  100% {
    opacity: 1;
    box-shadow: 0 0 10px var(--gold);
  }
}

.slot-reels {
  display: flex;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(180deg, #0a0000 0%, #1a0a0a 50%, #0a0000 100%);
  border-radius: 10px;
  padding: 15px;
  border: 2px solid var(--gold-dark);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
  margin-bottom: 20px;
}

.reel {
  width: 80px;
  height: 80px;
  background: linear-gradient(180deg, #1a0000 0%, #2a1a1a 50%, #1a0000 100%);
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--gold-dark);
  position: relative;
}

.reel::before,
.reel::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 20px;
  z-index: 2;
  pointer-events: none;
}

.reel::before {
  top: 0;
  background: linear-gradient(180deg, #1a0000 0%, transparent 100%);
}

.reel::after {
  bottom: 0;
  background: linear-gradient(0deg, #1a0000 0%, transparent 100%);
}

.reel-strip {
  display: flex;
  flex-direction: column;
  animation: reelSpin 0.8s linear infinite;
}

.reel-strip span {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

#reel1 .reel-strip {
  animation-duration: 0.5s;
}
#reel2 .reel-strip {
  animation-duration: 0.7s;
}
#reel3 .reel-strip {
  animation-duration: 0.9s;
}

@keyframes reelSpin {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-400px);
  }
}

.slot-footer {
  text-align: center;
}

.loading-bar {
  height: 8px;
  background: #0a0000;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--gold-dark);
  margin-bottom: 10px;
}

.loading-progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
  background-size: 200% 100%;
  animation: progressShine 1s linear infinite;
  transition: width 0.3s ease;
}

@keyframes progressShine {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.loading-text {
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 500;
}

.dots::after {
  content: "";
  animation: dots 1.5s infinite;
}

@keyframes dots {
  0%,
  20% {
    content: "";
  }
  40% {
    content: ".";
  }
  60% {
    content: "..";
  }
  80%,
  100% {
    content: "...";
  }
}

/* ========== POPUP OVERLAY ========== */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 20px;
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.popup-content {
  max-width: 450px;
  width: 100%;
  padding: 40px 30px;
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.popup-overlay.active .popup-content {
  transform: scale(1);
}

.popup-logo {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  border-radius: 20px;
  overflow: hidden;
  border: 3px solid var(--secondary-color);
  box-shadow: var(--glow-gold);
}

.popup-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popup-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.popup-subtitle {
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.popup-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.1rem;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #1a0000;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 215, 0, 0.5);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--secondary-color);
  color: var(--secondary-color);
}

.btn-outline:hover {
  background: var(--secondary-color);
  color: #1a0000;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

.btn-back {
  background: transparent;
  color: var(--text-secondary);
  padding: 10px 20px;
}

.btn-back:hover {
  color: var(--text-primary);
}

/* ========== TICKET FORM ========== */
.ticket-form-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  background: rgba(0, 0, 0, 0.8);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 20px;
}

.ticket-form-container.active {
  opacity: 1;
  visibility: visible;
}

.ticket-form {
  max-width: 420px;
  width: 100%;
  padding: 30px;
}

.form-header {
  text-align: center;
  margin-bottom: 30px;
}

.ticket-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  color: #1a0000;
  box-shadow: var(--glow-gold);
}

.form-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 5px;
}

.form-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--secondary-color);
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-error {
  color: #ff6b6b;
  font-size: 0.85rem;
  margin-top: -10px;
  margin-bottom: 15px;
  display: none;
}

.form-error.show {
  display: block;
}

.form-buttons {
  display: flex;
  gap: 12px;
}

.form-buttons .btn {
  flex: 1;
}

/* ========== POKER CARD SHUFFLE SECTION ========== */
.card-shuffle-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  overflow: hidden;
}

.card-shuffle-section.active {
  opacity: 1;
  visibility: visible;
}

.shuffle-container {
  max-width: 900px;
  width: 95%;
  text-align: center;
  padding: 20px;
}

.shuffle-header {
  margin-bottom: 30px;
}

.shuffle-header h2 {
  font-size: 1.8rem;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.shuffle-header p {
  color: var(--text-secondary);
}

/* Card Deck Area */
.card-deck-area {
  position: relative;
  height: 280px;
  margin-bottom: 30px;
  perspective: 1500px;
}

.card-deck {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Poker Card Style */
.poker-card {
  position: absolute;
  width: 120px;
  height: 168px;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.poker-card.flipped .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 10px;
  box-shadow:
    0 4px 15px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

.card-front {
  background: linear-gradient(145deg, #ffffff 0%, #f0f0f0 100%);
  padding: 8px;
  display: flex;
  flex-direction: column;
  color: #1a0000;
}

.card-corner {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.card-corner.top-left {
  position: absolute;
  top: 6px;
  left: 8px;
}

.card-corner.bottom-right {
  position: absolute;
  bottom: 6px;
  right: 8px;
  transform: rotate(180deg);
}

.card-rank {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--card-red);
}

.card-suit {
  font-size: 0.8rem;
  color: var(--card-red);
}

.card-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 5px 5px;
}

.card-center img {
  max-width: 55px;
  max-height: 55px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.card-center i {
  font-size: 2.5rem;
  color: var(--card-gold);
}

.card-prize-name {
  font-size: 0.55rem;
  font-weight: 700;
  text-align: center;
  color: #333;
  line-height: 1.2;
  max-height: 2.4em;
  overflow: hidden;
  margin-bottom: 2px;
}

.card-prize-value {
  font-size: 0.5rem;
  font-weight: 800;
  text-align: center;
  color: var(--card-red);
  margin-bottom: 15px;
}

.card-back {
  background: linear-gradient(135deg, #8b0000 0%, #4a0000 100%);
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--gold);
}

.card-back-pattern {
  width: 85%;
  height: 90%;
  border: 2px solid var(--gold-dark);
  border-radius: 6px;
  background: repeating-linear-gradient(45deg, transparent, transparent 5px, rgba(212, 175, 55, 0.1) 5px, rgba(212, 175, 55, 0.1) 10px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pattern-inner {
  width: 60px;
  height: 60px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, #5a0000 0%, #3a0000 100%);
}

.pattern-inner i {
  font-size: 1.5rem;
  color: var(--gold);
}

/* Card Shuffle Animations */
@keyframes cardFan {
  0% {
    transform: translateX(0) rotate(0);
  }
  100% {
    transform: translateX(var(--fan-x)) rotate(var(--fan-rotate));
  }
}

@keyframes cardStack {
  0% {
    transform: translateX(var(--fan-x)) translateY(0) rotate(var(--fan-rotate));
  }
  100% {
    transform: translateX(0) translateY(0) rotate(0);
  }
}

@keyframes cardRiffle {
  0% {
    transform: translateY(0) rotate(0);
  }
  25% {
    transform: translateY(-30px) rotate(-5deg);
  }
  50% {
    transform: translateY(0) rotate(0);
  }
  75% {
    transform: translateY(-20px) rotate(3deg);
  }
  100% {
    transform: translateY(0) rotate(0);
  }
}

@keyframes cardCascade {
  0% {
    transform: translateX(0) translateY(-50px) rotate(0) scale(0.9);
    opacity: 0;
  }
  100% {
    transform: translateX(var(--cascade-x)) translateY(0) rotate(var(--cascade-rotate)) scale(1);
    opacity: 1;
  }
}

.poker-card.fanning {
  animation: cardFan 0.5s ease forwards;
}

.poker-card.stacking {
  animation: cardStack 0.4s ease forwards;
}

.poker-card.riffling {
  animation: cardRiffle 0.3s ease;
}

.poker-card.cascading {
  animation: cardCascade 0.6s ease forwards;
}

/* Shuffle Status */
.shuffle-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.shuffle-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--secondary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

#shuffleText {
  color: var(--secondary-color);
  font-weight: 500;
}

/* ========== BOX SELECTION ========== */
.mystery-box-section {
  min-height: 100vh;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  position: fixed;
  opacity: 0;
  visibility: hidden;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
  overflow-y: auto;
  transition: all 0.3s ease;
}

.mystery-box-section.active {
  opacity: 1;
  visibility: visible;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--secondary-color);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
}

.box-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  max-width: 800px;
  width: 100%;
  margin-bottom: 30px;
}

@media (max-width: 768px) {
  .box-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .box-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

.mystery-box {
  position: relative;
  aspect-ratio: 1;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--primary-color) 0%, #2a0a0a 100%);
  border: 2px solid var(--secondary-color);
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
}

.mystery-box:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--glow-gold);
}

.mystery-box.selected {
  animation: boxSelected 0.5s ease;
  border-color: var(--gold);
  box-shadow: 0 0 30px var(--gold);
}

@keyframes boxSelected {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.box-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.3) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mystery-box:hover .box-glow {
  opacity: 1;
}

.box-icon {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

.box-icon img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
  transition: transform 0.3s ease;
}

.mystery-box:hover .box-icon img {
  transform: scale(1.1) rotate(-5deg);
}

.box-number {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: var(--secondary-color);
  color: #1a0000;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.box-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: none;
}

.mystery-box:hover .box-shine {
  animation: shine 0.6s forwards;
}

@keyframes shine {
  to {
    left: 100%;
  }
}

/* ========== PRIZE LIST ========== */
.prize-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1000px;
  width: 100%;
}

.prize-card {
  padding: 20px;
  display: flex;
  gap: 15px;
  transition: all 0.3s ease;
}

.prize-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--glow-gold);
}

.prize-image {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.3);
}

.prize-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prize-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-color);
  font-size: 2rem;
}

.prize-info {
  flex: 1;
}

.prize-info h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.prize-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.prize-value {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #1a0000;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
}

/* ========== OPENING ANIMATION ========== */
.opening-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.opening-container.active {
  opacity: 1;
  visibility: visible;
}

.opening-box-wrapper {
  position: relative;
  width: 200px;
  height: 200px;
}

.opening-sparkles {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.opening-box {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: boxFloat 2s ease-in-out infinite;
}

@keyframes boxFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

.opening-box img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  filter: drop-shadow(0 10px 30px rgba(212, 175, 55, 0.5));
}

.opening-box.opening img {
  animation: boxOpen 1.5s ease forwards;
}

@keyframes boxOpen {
  0% {
    transform: scale(1) rotate(0);
  }
  30% {
    transform: scale(1.2) rotate(-10deg);
  }
  60% {
    transform: scale(1.1) rotate(10deg);
  }
  100% {
    transform: scale(1.5) rotate(0);
    opacity: 0;
  }
}

.opening-number {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: var(--gold);
  color: #1a0000;
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: 700;
}

.opening-text {
  margin-top: 30px;
  font-size: 1.2rem;
  color: var(--secondary-color);
  font-weight: 500;
}

/* ========== PRIZE REVEAL ========== */
.prize-reveal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 20px;
}

.prize-reveal.active {
  opacity: 1;
  visibility: visible;
}

.confetti-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.reveal-card {
  max-width: 400px;
  width: 100%;
  padding: 40px 30px;
  text-align: center;
  position: relative;
  transform: scale(0.8);
  transition: transform 0.5s ease;
}

.prize-reveal.active .reveal-card {
  transform: scale(1);
  animation: revealBounce 0.5s ease;
}

@keyframes revealBounce {
  0% {
    transform: scale(0.5);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.reveal-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: #1a0000;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
}

.reveal-icon {
  width: 150px;
  height: 150px;
  margin: 20px auto;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color) 0%, #2a0a0a 100%);
  border: 4px solid var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--glow-gold);
  overflow: hidden;
}

.reveal-icon img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.reveal-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.reveal-description {
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.reveal-value {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 25px;
}

/* ========== SELECTION FOOTER ========== */
.selection-footer {
  margin-top: 20px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 600px) {
  .slot-frame {
    padding: 15px;
  }

  .slot-title {
    font-size: 1.2rem;
  }

  .reel {
    width: 60px;
    height: 60px;
  }

  .reel-strip span {
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
  }

  .popup-title {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .reveal-title {
    font-size: 1.5rem;
  }

  .reveal-value {
    font-size: 1.5rem;
  }

  .poker-card {
    width: 90px;
    height: 126px;
  }

  .card-center img {
    max-width: 40px;
    max-height: 40px;
  }

  .card-center i {
    font-size: 1.8rem;
  }

  .card-prize-name {
    font-size: 0.45rem;
  }

  .card-prize-value {
    font-size: 0.4rem;
  }

  .card-deck-area {
    height: 200px;
  }
}

@media (max-width: 400px) {
  .poker-card {
    width: 70px;
    height: 98px;
  }

  .card-corner {
    display: none;
  }

  .card-center {
    margin: 5px;
  }

  .card-center img {
    max-width: 30px;
    max-height: 30px;
  }

  .card-prize-name,
  .card-prize-value {
    font-size: 0.4rem;
  }
}
