/* ══════════════════════════════════════════════════════
   DEAR MUSÉ — MINIGAME LẬT THẺ & VÒNG QUAY MAY MẮN
   Editorial Luxury Theme — Warm Beige / Vanilla Cream
   ══════════════════════════════════════════════════════ */

:root {
  --muse-gold: #C9A96E;
  --muse-gold-light: #E5C158;
  --muse-gold-dark: #9E7D47;
  --muse-text: #2A2825;
  --muse-text-light: #6B6860;
  --muse-bg: #F5EFE6;
  --muse-surface: #FCF9F2;
  --muse-surface-hover: #FFFFFF;
  --muse-border: rgba(201, 169, 110, 0.3);
  --muse-border-subtle: rgba(42, 40, 37, 0.08);
  --muse-mocha: #7A5C4A;
  --muse-taupe: #9C8474;
  --muse-ink: #1A1916;
}

/* ─── Hero / Main Section ────────────────────────────── */
.spin-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 140px 24px 100px;
  overflow: hidden;
  background-color: var(--muse-bg);
}

.spin-hero-bg {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 140vw;
  height: 140vw;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.16) 0%, rgba(245, 239, 230, 0) 65%);
  pointer-events: none;
  z-index: 0;
}

/* ─── Header ─────────────────────────────────────────── */
.spin-header {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

.spin-label {
  display: inline-block;
  font-family: var(--font-body, 'Lora', serif);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--muse-gold);
  margin-bottom: 18px;
  position: relative;
}

.spin-label::after {
  content: '';
  display: block;
  width: 1px;
  height: 22px;
  background: var(--muse-gold);
  margin: 10px auto 0;
}

.spin-title {
  font-family: var(--font-display, 'Playfair Display', 'Cormorant Garamond', serif);
  font-size: clamp(38px, 5.5vw, 64px);
  font-weight: 300;
  color: var(--muse-text);
  line-height: 1.18;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.spin-title .spin-italic {
  font-style: italic;
  color: var(--muse-gold);
  font-weight: 400;
}

.spin-subtitle {
  font-family: var(--font-body, 'Lora', serif);
  font-size: clamp(14px, 1.8vw, 16px);
  color: var(--muse-text-light);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.8;
  font-weight: 300;
}

/* ─── Step Flow Navigation Bar ────────────────────────── */
.flow-steps-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 auto 36px;
  position: relative;
  z-index: 2;
  max-width: 620px;
  width: 100%;
}

.flow-step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: var(--muse-surface);
  border: 1px solid var(--muse-border-subtle);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muse-text-light);
  transition: all 0.3s ease;
}

.flow-step-item.active {
  border-color: var(--muse-gold);
  color: var(--muse-mocha);
  background: #FFFFFF;
  box-shadow: 0 4px 16px rgba(201, 169, 110, 0.2);
}

.flow-step-item.completed {
  border-color: #558B2F;
  color: #33691E;
  background: #F1F8E9;
}

.flow-step-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(201, 169, 110, 0.2);
  color: var(--muse-gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.flow-step-item.active .flow-step-badge {
  background: var(--muse-gold);
  color: #FFFFFF;
}

.flow-step-item.completed .flow-step-badge {
  background: #558B2F;
  color: #FFFFFF;
}

.flow-step-connector {
  width: 30px;
  height: 1px;
  background: var(--muse-border);
}

/* ─── STEP 1: MEMORY CARDS MINIGAME ───────────────────── */
.minigame-section {
  width: 100%;
  max-width: 880px;
  margin: 0 auto 60px;
  position: relative;
  z-index: 2;
}

.game-card-box {
  background: var(--muse-surface);
  border: 1px solid var(--muse-border);
  border-radius: 24px;
  padding: 36px 32px;
  box-shadow: 0 12px 40px rgba(42, 40, 37, 0.05);
  position: relative;
}

.game-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--muse-border-subtle);
}

.game-top-title h2 {
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--muse-text);
  margin-bottom: 4px;
}

.game-top-title p {
  font-size: 13px;
  color: var(--muse-text-light);
}

.game-stats {
  display: flex;
  align-items: center;
  gap: 18px;
}

.stat-pill {
  background: #FFFFFF;
  border: 1px solid var(--muse-border-subtle);
  border-radius: 30px;
  padding: 6px 14px;
  font-size: 12.5px;
  color: var(--muse-text);
  display: flex;
  align-items: center;
  gap: 6px;
}

.stat-pill strong {
  color: var(--muse-gold-dark);
  font-weight: 700;
}

/* Memory Cards Grid: 4 columns x 2 rows */
.memory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  perspective: 1000px;
}

@media (max-width: 768px) {
  .memory-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
}

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

/* Single Card */
.memory-card {
  aspect-ratio: 3 / 4;
  position: relative;
  cursor: pointer;
  perspective: 1000px;
  user-select: none;
}

.memory-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.2, 0.85, 0.4, 1.2);
  border-radius: 14px;
}

.memory-card.flipped .memory-card-inner,
.memory-card.matched .memory-card-inner {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 14px rgba(42, 40, 37, 0.08);
}

/* Card Back (Facedown) */
.card-face-back {
  background: linear-gradient(145deg, #FFFDF9 0%, #F5ECE0 100%);
  border: 1.5px solid var(--muse-gold);
  align-items: center;
  justify-content: center;
  padding: 12px;
  text-align: center;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.card-face-back::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px dashed rgba(201, 169, 110, 0.4);
  border-radius: 10px;
  pointer-events: none;
}

.memory-card:hover:not(.flipped):not(.matched) .card-face-back {
  border-color: var(--muse-mocha);
  box-shadow: 0 8px 22px rgba(201, 169, 110, 0.25);
  transform: translateY(-2px);
}

.card-back-pattern {
  font-size: 26px;
  color: var(--muse-gold);
  margin-bottom: 6px;
}

.card-back-brand {
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muse-mocha);
  font-weight: 600;
}

/* Card Front (Faceup - Artistic Animal / Mascot & Camera) */
.card-face-front {
  transform: rotateY(180deg);
  border: 2px solid var(--muse-gold);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 16px 10px 14px;
  text-align: center;
  color: #FFFFFF;
  overflow: hidden;
}

.card-front-glow {
  position: absolute;
  inset: -20px;
  pointer-events: none;
}

.card-art-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  margin-top: 10px;
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.memory-card:hover .card-art-circle {
  transform: scale(1.08);
}

.card-front-info {
  position: relative;
  z-index: 2;
  width: 100%;
}

.card-front-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  display: block;
  font-weight: 700;
  margin-bottom: 2px;
}

.card-front-name {
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-front-desc {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.7);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Guest Mode Lock Banner */
.guest-lock-banner {
  background: linear-gradient(135deg, #FCF9F2 0%, #F5ECE0 100%);
  border: 1.5px solid var(--muse-gold);
  border-radius: 16px;
  padding: 16px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 6px 20px rgba(42, 40, 37, 0.04);
}

.guest-lock-text {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muse-text);
  font-size: 14px;
  font-weight: 500;
}

.guest-lock-icon {
  font-size: 22px;
}

.guest-login-btn {
  padding: 8px 20px;
  background: var(--muse-mocha);
  color: #FFFFFF;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.guest-login-btn:hover {
  background: var(--muse-gold-dark);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.memory-card.guest-disabled {
  cursor: pointer;
}

/* Matched Card Effect */
.memory-card.matched .card-face-front {
  border-color: #558B2F;
  box-shadow: 0 0 20px rgba(104, 159, 56, 0.45);
}

.memory-card.matched::after {
  content: '✓';
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #558B2F;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  animation: popSuccess 0.4s ease-out;
}

@keyframes popSuccess {
  0% { transform: scale(0); }
  70% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* Success Banner when 4/4 completed */
.game-success-banner {
  margin-top: 24px;
  padding: 20px 24px;
  background: linear-gradient(135deg, #F1F8E9 0%, #DCEDC8 100%);
  border: 1.5px solid #8BC34A;
  border-radius: 16px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  animation: fadeIn 0.4s ease-out;
}

.game-success-banner.active {
  display: flex;
}

.success-text h4 {
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: 18px;
  color: #2E7D32;
  font-weight: 700;
  margin-bottom: 2px;
}

.success-text p {
  font-size: 13px;
  color: #33691E;
}

.btn-go-spin {
  padding: 12px 28px;
  background: linear-gradient(135deg, #C9A96E 0%, #A88147 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 50px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(201, 169, 110, 0.35);
  transition: all 0.25s ease;
}

.btn-go-spin:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 169, 110, 0.45);
}

/* ─── STEP 2: WHEEL STAGE ────────────────────────────── */
.spin-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  margin-bottom: 80px;
  width: 100%;
}

.wheel-stage-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Wheel Container (Always vibrant and clear to entice players) */
.wheel-container {
  position: relative;
  width: min(500px, 90vw);
  height: min(500px, 90vw);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 36px;
  transition: transform 0.4s ease;
}

.wheel-container.locked {
  /* Keep wheel slices 100% visible and vibrant */
  filter: none;
  opacity: 1;
}

.cards-lock-overlay {
  display: none; /* No obscuring overlay on cards */
}

/* Floating lock pill on wheel - transparent backdrop so slices are 100% clear */
.wheel-lock-overlay {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: transparent;
  pointer-events: none;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 24px;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.wheel-lock-pill {
  background: rgba(26, 25, 22, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--muse-gold);
  border-radius: 50px;
  padding: 8px 18px;
  color: #FFF7E6;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  pointer-events: auto;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.wheel-lock-pill:hover {
  transform: translateY(-2px);
  background: rgba(26, 25, 22, 0.98);
  border-color: #DFC088;
}

.wheel-lock-overlay.unlocked {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.lock-icon-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid var(--muse-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 8px 24px rgba(201, 169, 110, 0.25);
  animation: bounceLock 2s infinite ease-in-out;
}

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

.lock-msg {
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--muse-text);
  max-width: 240px;
  line-height: 1.4;
}

/* Outer Brass / Gold Bezel */
.wheel-bezel {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #DFC088 0%, #A47B49 45%, #EED5A5 70%, #8E6534 100%);
  box-shadow: 
    0 24px 60px rgba(122, 92, 74, 0.2),
    0 8px 24px rgba(42, 40, 37, 0.08),
    inset 0 2px 4px rgba(255, 255, 255, 0.5),
    inset 0 -2px 6px rgba(0, 0, 0, 0.25);
  z-index: 1;
}

.wheel-bezel-inner {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: var(--muse-surface);
  border: 2px dashed rgba(201, 169, 110, 0.5);
  box-shadow: inset 0 0 16px rgba(122, 92, 74, 0.15);
  z-index: 2;
}

/* Spinning Wheel Area */
.wheel-canvas-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  z-index: 3;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transform: rotate(0deg);
  transition: transform 5.5s cubic-bezier(0.12, 0.99, 0.2, 1);
}

.wheel-canvas-wrap.spinning {
  transition: transform 5.5s cubic-bezier(0.12, 0.99, 0.2, 1);
}

#wheel-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Needle Pointer */
.wheel-pointer {
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 52px;
  z-index: 10;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25));
  pointer-events: none;
}

/* Center Hub / Medal Button */
.wheel-center-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(145deg, #FCF9F2 0%, #EFE8DC 100%);
  border: 4px solid #C9A96E;
  box-shadow: 
    0 8px 24px rgba(42, 40, 37, 0.2),
    inset 0 2px 6px rgba(255, 255, 255, 0.8),
    inset 0 -2px 6px rgba(122, 92, 74, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  user-select: none;
}

.wheel-center-hub::before {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  border: 1px dashed rgba(201, 169, 110, 0.6);
}

.wheel-center-hub:hover:not(.disabled) {
  transform: translate(-50%, -50%) scale(1.06);
  box-shadow: 
    0 12px 30px rgba(201, 169, 110, 0.35),
    0 4px 12px rgba(42, 40, 37, 0.15);
}

.wheel-center-hub:active:not(.disabled) {
  transform: translate(-50%, -50%) scale(0.96);
}

.wheel-center-hub.disabled {
  opacity: 0.65;
  cursor: not-allowed;
  filter: grayscale(0.2);
}

.hub-text {
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--muse-mocha);
  text-transform: uppercase;
  position: relative;
  z-index: 2;
}

/* ─── Action Area & Buttons ──────────────────────────── */
.spin-action-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 440px;
}

.muse-spin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 48px;
  background: linear-gradient(135deg, #C9A96E 0%, #A88147 100%);
  color: #FFFFFF;
  font-family: var(--font-body, 'Lora', serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  border-radius: 50px;
  box-shadow: 0 10px 25px rgba(201, 169, 110, 0.35);
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
}

.muse-spin-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(201, 169, 110, 0.45);
  background: linear-gradient(135deg, #D4AF37 0%, #B58A4A 100%);
}

.muse-spin-btn:active:not(:disabled) {
  transform: translateY(1px);
}

.muse-spin-btn:disabled {
  background: #D8D2C7;
  color: #8C877D;
  box-shadow: none;
  cursor: not-allowed;
}

.muse-login-prompt {
  background: var(--muse-surface);
  border: 1px solid var(--muse-border);
  border-radius: 16px;
  padding: 20px 28px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(42, 40, 37, 0.05);
}

.muse-login-prompt p {
  color: var(--muse-text-light);
  font-size: 14px;
  margin-bottom: 12px;
}

.muse-login-prompt a {
  display: inline-block;
  color: var(--muse-mocha);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s;
}

.muse-login-prompt a:hover {
  color: var(--muse-gold);
}

/* Countdown Timer */
.spin-countdown-card {
  background: var(--muse-surface);
  border: 1px solid var(--muse-border);
  border-radius: 16px;
  padding: 16px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(42, 40, 37, 0.04);
}

.countdown-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muse-text-light);
}

.countdown-timer {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--muse-mocha);
}

.countdown-unit {
  min-width: 38px;
  text-align: center;
  background: #FFFFFF;
  border: 1px solid rgba(201, 169, 110, 0.2);
  border-radius: 6px;
  padding: 2px 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.countdown-sep {
  font-size: 20px;
  color: var(--muse-gold);
  line-height: 1;
}

/* ─── Prize Showcase Section ─────────────────────────── */
.spin-prizes-section {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto 80px;
  position: relative;
  z-index: 2;
}

.section-label-center {
  text-align: center;
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 400;
  color: var(--muse-text);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.section-sub-center {
  text-align: center;
  font-size: 14px;
  color: var(--muse-text-light);
  margin-bottom: 40px;
}

.prizes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.prize-card {
  background: var(--muse-surface);
  border: 1px solid var(--muse-border-subtle);
  border-radius: 16px;
  padding: 24px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(42, 40, 37, 0.03);
}

.prize-card:hover {
  transform: translateY(-4px);
  background: var(--muse-surface-hover);
  border-color: var(--muse-border);
  box-shadow: 0 12px 30px rgba(201, 169, 110, 0.15);
}

.prize-card.grand-prize {
  border: 1.5px solid var(--muse-gold);
  background: linear-gradient(135deg, #FCF9F2 0%, #F5ECE0 100%);
}

.prize-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(201, 169, 110, 0.15) 0%, rgba(122, 92, 74, 0.08) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  border: 1px solid rgba(201, 169, 110, 0.25);
}

.prize-card-content {
  flex: 1;
}

.prize-card-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muse-gold-dark);
  margin-bottom: 4px;
}

.prize-card-title {
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--muse-text);
  line-height: 1.25;
  margin-bottom: 2px;
}

.prize-card-desc {
  font-size: 12px;
  color: var(--muse-text-light);
  line-height: 1.4;
}

/* ─── Rules Section ──────────────────────────────────── */
.spin-rules-section {
  width: 100%;
  max-width: 820px;
  margin: 0 auto 80px;
  background: var(--muse-surface);
  border: 1px solid var(--muse-border);
  border-radius: 20px;
  padding: 36px 40px;
  box-shadow: 0 8px 30px rgba(42, 40, 37, 0.04);
  position: relative;
  z-index: 2;
}

.spin-rules-section h3 {
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--muse-text);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.spin-rules-section h3::before {
  content: '✦';
  color: var(--muse-gold);
  font-size: 18px;
}

.spin-rules-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
}

@media (max-width: 640px) {
  .spin-rules-list {
    grid-template-columns: 1fr;
  }
}

.spin-rules-list li {
  position: relative;
  padding-left: 20px;
  font-size: 13.5px;
  color: var(--muse-text-light);
  line-height: 1.6;
}

.spin-rules-list li::before {
  content: '•';
  position: absolute;
  left: 4px;
  top: 0;
  color: var(--muse-gold);
  font-size: 18px;
}

.spin-rules-list strong {
  color: var(--muse-text);
  font-weight: 600;
}

/* ─── History Section ────────────────────────────────── */
.spin-history-section {
  width: 100%;
  max-width: 820px;
  margin: 0 auto 60px;
  position: relative;
  z-index: 2;
}

.history-card-wrap {
  background: var(--muse-surface);
  border: 1px solid var(--muse-border-subtle);
  border-radius: 16px;
  padding: 24px 30px;
  box-shadow: 0 6px 20px rgba(42, 40, 37, 0.03);
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--muse-border-subtle);
}

.history-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.history-prize-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--muse-mocha);
}

.history-voucher-code {
  font-family: monospace;
  font-size: 12px;
  background: rgba(201, 169, 110, 0.15);
  padding: 3px 8px;
  border-radius: 4px;
  color: var(--muse-gold-dark);
  font-weight: 600;
}

.history-date {
  font-size: 12px;
  color: var(--muse-text-light);
}

/* ─── Result Modal (Gift Reveal) ─────────────────────── */
.spin-result-overlay {
  position: fixed;
  inset: 0;
  background: rgba(42, 40, 37, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

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

.spin-result-card {
  background: var(--muse-surface);
  border: 1.5px solid var(--muse-gold);
  border-radius: 24px;
  padding: 44px 36px 36px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 24px 60px rgba(42, 40, 37, 0.3);
}

.spin-result-overlay.active .spin-result-card {
  transform: scale(1) translateY(0);
}

.result-decor-sparkle {
  font-size: 40px;
  margin-bottom: 12px;
  display: inline-block;
  animation: pulseIcon 1.5s ease-in-out infinite alternate;
}

@keyframes pulseIcon {
  0% { transform: scale(1); }
  100% { transform: scale(1.15); }
}

.result-title {
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: 28px;
  font-weight: 600;
  color: var(--muse-text);
  margin-bottom: 8px;
}

.result-value-display {
  font-family: var(--font-display, 'Playfair Display', serif);
  font-size: 38px;
  font-weight: 700;
  color: var(--muse-gold-dark);
  margin-bottom: 18px;
}

.result-voucher-box {
  background: #FFFFFF;
  border: 1.5px dashed var(--muse-gold);
  border-radius: 12px;
  padding: 12px 18px;
  margin: 0 auto 16px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.result-voucher-box:hover {
  background: #FFFDF9;
  border-color: var(--muse-mocha);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(201, 169, 110, 0.2);
}

.voucher-code-label {
  font-family: monospace;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--muse-mocha);
}

.voucher-copy-btn {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--muse-gold-dark);
  background: rgba(201, 169, 110, 0.15);
  padding: 4px 8px;
  border-radius: 6px;
}

.result-expiry-text {
  font-size: 13px;
  color: var(--muse-text-light);
  margin-bottom: 24px;
}

.result-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.modal-btn-close {
  padding: 12px 28px;
  border-radius: 50px;
  background: #EFE8DC;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--muse-text);
  cursor: pointer;
  transition: background 0.2s;
}

.modal-btn-close:hover {
  background: #E4DCCF;
}

.modal-btn-book {
  padding: 12px 28px;
  border-radius: 50px;
  background: var(--muse-mocha);
  color: #FFFFFF;
  border: none;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background 0.2s;
}

.modal-btn-book:hover {
  background: #5E4535;
  color: #FFFFFF;
}

/* ─── Mobile Responsiveness ──────────────────────────── */
@media (max-width: 600px) {
  .spin-hero {
    padding: 120px 16px 60px;
  }
  
  .game-card-box {
    padding: 24px 16px;
  }

  .wheel-container {
    width: 320px;
    height: 320px;
    margin-bottom: 24px;
  }

  .wheel-center-hub {
    width: 74px;
    height: 74px;
  }

  .hub-text {
    font-size: 12px;
  }

  .spin-rules-section {
    padding: 24px 20px;
  }

  .spin-result-card {
    padding: 32px 20px 24px;
  }

  .result-value-display {
    font-size: 30px;
  }

  .flow-steps-indicator {
    flex-direction: column;
    gap: 8px;
  }

  .flow-step-connector {
    display: none;
  }
}
