/* ═══════════════════════════════════════════════════
   BALLOON WAR'S SLOTS — Desktop Game CSS
   NC-Developer LLC · Brand v1.0 · 2026
═══════════════════════════════════════════════════ */

/* ── Reset & Custom Properties ───────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:        #F5C518;
  --gold-dark:   #D4A017;
  --gold-light:  #FFE680;
  --gold-glow:   rgba(245,197,24,.55);
  --teal:        #3CBFB4;
  --sky:         #5BB8F5;
  --sky-deep:    #1E6FA8;
  --slots-red:   #9B1B30;
  --spin-red:    #E03030;
  --spin-red-hi: #FF5555;
  --dark:        #0B1630;
  --card:        #102040;
  --machine-bg:  #0A1A38;
  --reel-bg:     #F5F2E8;
  --text:        #FFFFFF;
  --text-bright: #FFFFFF;
  --muted:       #CCCCCC;
  --cell:        110px;
}

/* Brighter text enhancement for improved readability */
.sb-value,
.bet-val,
.spin-label,
.win-type,
.win-amount-counter,
.modal-title,
.jp-tier-label,
.jp-prize-counter,
.daily-coins {
  text-shadow: 
    0 0 10px rgba(255,255,255,0.5),
    0 0 20px rgba(255,255,255,0.3),
    0 2px 4px rgba(0,0,0,0.5);
}

html, body {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  font-family: 'Nunito', sans-serif;
  background: var(--dark);
  color: var(--text);
  overflow-x: hidden;
  overscroll-behavior-y: none;
}

.hidden { display: none !important; }

/* ── LOADING SCREEN ───────────────────────────────── */
#loading-screen {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, #071026 0%, #0D1B3E 60%, #071026 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.ls-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 40px;
}

.ls-logo {
  width: clamp(200px, 38vw, 340px);
  border-radius: 10px;
}

.ls-bar-track {
  width: 280px;
  height: 8px;
  background: rgba(255,255,255,.1);
  border-radius: 10px;
  overflow: hidden;
}

.ls-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
  border-radius: 10px;
  transition: width 0.18s ease;
  box-shadow: 0 0 10px var(--gold-glow);
}

.ls-text {
  color: var(--muted);
  font-size: .9rem;
  letter-spacing: .1em;
}

/* ── GAME WRAPPER ─────────────────────────────────── */
#game {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding-bottom: 32px;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
}

/* ── SKY BACKGROUND ───────────────────────────────── */
.sky-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, #87CEEB 0%, #B0E0E6 40%, #ADD8E6 80%, #87CEEB 100%);
  overflow: hidden;
  pointer-events: none;
}

/* Cloud video layer — sits below all sky overlays */
#sky-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  opacity: 0.88;
}

/* ── VIBRANT DIAGONAL RAINBOW (full slant across background) ── */
.sky-bg::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    -35deg,
    transparent 0%,
    transparent 36%,
    #B8A6C4 37%,        /* light lavender */
    #B180B1 39%,        /* plum */
    #6CA5BC 41%,        /* sky blue */
    #7AC97A 43%,        /* pale green */
    #CCC8A4 45%,        /* light yellow */
    #CC8062 47%,        /* light salmon */
    #CC929A 49%,        /* light pink */
    #B8A6C4 51%,        /* light lavender */
    transparent 52%,
    transparent 100%
  );
  opacity: 0.32;
  z-index: 1;
  pointer-events: none;
  animation: rainbowShimmer 8s ease-in-out infinite;
}

@keyframes rainbowShimmer {
  0%, 100% { opacity: 0.28; }
  50% { opacity: 0.38; }
}

/* ── ULTRA-REALISTIC 3D CLOUDS WITH SHADING ───────────────────────── */

.cloud {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 25px 35px rgba(0,0,0,0.2));
}

/* Cloud base puff styling with enhanced shading */
.cloud-puff {
  position: absolute;
  background: linear-gradient(
    180deg, 
    #ffffff 0%, 
    #f8fafc 20%,
    #e8eef5 50%, 
    #c9d5e3 80%,
    #a8b8c8 100%
  );
  border-radius: 50%;
  box-shadow:
    /* Deep outer shadow for grounding */
    0 40px 80px rgba(0,0,0,0.18),
    0 20px 40px rgba(0,0,0,0.12),
    /* Bottom edge shadow */
    0 10px 20px rgba(80,100,120,0.25),
    /* Inner top highlight (sunlit) */
    inset 0 30px 50px rgba(255,255,255,1),
    inset 0 15px 25px rgba(255,255,255,0.9),
    /* Inner bottom shadow (shaded underside) */
    inset 0 -20px 40px rgba(150,170,190,0.5),
    inset 0 -10px 20px rgba(120,140,160,0.3),
    /* Soft rim light from top-left */
    inset 3px 3px 30px rgba(255,255,255,0.85);
}

/* Cloud 1: Large fluffy cumulus */
.cloud-1 {
  top: 3%;
  animation: cloudFloatSync 60s linear infinite, cloudBobSync 6s ease-in-out infinite;
}
.cloud-1 .puff-1 { width: 180px; height: 140px; left: 0; top: 40px; }
.cloud-1 .puff-2 { width: 220px; height: 170px; left: 100px; top: 10px; }
.cloud-1 .puff-3 { width: 160px; height: 130px; left: 240px; top: 50px; }
.cloud-1 .puff-4 { width: 140px; height: 110px; left: 320px; top: 70px; }
.cloud-1 .puff-5 { width: 120px; height: 100px; left: 60px; top: 80px; }

/* Cloud 2: Medium cloud - offset start position */
.cloud-2 {
  top: 6%;
  animation: cloudFloatSync 60s linear infinite -15s, cloudBobSync 6s ease-in-out infinite -1.5s;
}
.cloud-2 .puff-1 { width: 140px; height: 100px; left: 0; top: 30px; }
.cloud-2 .puff-2 { width: 180px; height: 140px; left: 80px; top: 0; }
.cloud-2 .puff-3 { width: 130px; height: 100px; left: 190px; top: 35px; }
.cloud-2 .puff-4 { width: 100px; height: 80px; left: 260px; top: 55px; }

/* Cloud 3: Small accent cloud - offset start position */
.cloud-3 {
  top: 10%;
  animation: cloudFloatSync 60s linear infinite -30s, cloudBobSync 6s ease-in-out infinite -3s;
}
.cloud-3 .puff-1 { width: 100px; height: 80px; left: 0; top: 20px; }
.cloud-3 .puff-2 { width: 140px; height: 110px; left: 50px; top: 0; }
.cloud-3 .puff-3 { width: 90px; height: 70px; left: 140px; top: 30px; }

/* Cloud 4: Large majestic cloud - offset start position */
.cloud-4 {
  top: 1%;
  animation: cloudFloatSync 60s linear infinite -45s, cloudBobSync 6s ease-in-out infinite -4.5s;
}
.cloud-4 .puff-1 { width: 200px; height: 160px; left: 0; top: 50px; }
.cloud-4 .puff-2 { width: 260px; height: 200px; left: 120px; top: 0; }
.cloud-4 .puff-3 { width: 180px; height: 150px; left: 300px; top: 40px; }
.cloud-4 .puff-4 { width: 150px; height: 120px; left: 400px; top: 70px; }
.cloud-4 .puff-5 { width: 130px; height: 100px; left: 80px; top: 100px; }
.cloud-4 .puff-6 { width: 110px; height: 90px; left: 250px; top: 110px; }

/* Synchronized cloud drift animation - all clouds use same timing */
@keyframes cloudFloatSync {
  from { transform: translateX(-500px); }
  to   { transform: translateX(calc(100vw + 500px)); }
}

/* Synchronized gentle bobbing motion */
@keyframes cloudBobSync {
  0%, 100% { margin-top: 0; }
  50% { margin-top: 8px; }
}

/* ── FLYING COINS — hidden (too cluttered in background) ─── */
.flying-coin,
.coin-sparkle { display: none !important; }

/* Coins stacking in background */
.coin-stack {
  position: absolute;
  bottom: 10%;
  right: 10%;
  z-index: 3;
}

.coin-stack .coin {
  width: 35px;
  height: 35px;
  background: radial-gradient(circle at 35% 35%, #FFD700, #FFA500, #DAA520);
  border-radius: 50%;
  border: 3px solid #B8860B;
  position: absolute;
  box-shadow: 
    0 3px 6px rgba(0,0,0,0.4), 
    inset 0 1px 0 rgba(255,255,255,0.5),
    inset 0 -2px 4px rgba(139,69,19,0.3),
    0 0 15px rgba(255,215,0,0.3);
  animation: coinShine 3s ease-in-out infinite, coinBounce 2s ease-in-out infinite;
}

.coin-stack .coin:nth-child(1) { bottom: 0; right: 0; animation-delay: 0s; }
.coin-stack .coin:nth-child(2) { bottom: 8px; right: 8px; animation-delay: 0.5s; }
.coin-stack .coin:nth-child(3) { bottom: 16px; right: 16px; animation-delay: 1s; }
.coin-stack .coin:nth-child(4) { bottom: 24px; right: 24px; animation-delay: 1.5s; }
.coin-stack .coin:nth-child(5) { bottom: 32px; right: 32px; animation-delay: 2s; }

@keyframes coinShine {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.4) drop-shadow(0 0 8px rgba(255,215,0,0.6)); }
}

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

/* ── FLYING COIN ANIMATIONS ───────────────────────── */
.flying-coin {
  position: absolute;
  width: 28px;
  height: 28px;
  background: radial-gradient(circle at 30% 30%, #FFE55C, #FFD700 40%, #FFA500 70%, #CD853F);
  border-radius: 50%;
  border: 2px solid #B8860B;
  box-shadow:
    0 4px 8px rgba(0,0,0,0.3),
    inset 0 2px 4px rgba(255,255,255,0.6),
    inset 0 -2px 4px rgba(139,69,19,0.4),
    0 0 20px rgba(255,215,0,0.4);
  z-index: 3;
  pointer-events: none;
}

/* Dollar sign on coin */
.flying-coin::before {
  content: '$';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fredoka One', cursive;
  font-size: 14px;
  color: #8B6914;
  text-shadow: 0 1px 0 rgba(255,255,255,0.4);
}

/* Coin flying from left side */
.flying-coin-1 {
  top: 35%;
  animation: coinFlyLeft 12s linear infinite, coinSpin 1s linear infinite;
}

.flying-coin-2 {
  top: 55%;
  animation: coinFlyLeft 15s linear infinite 3s, coinSpin 0.8s linear infinite;
}

.flying-coin-3 {
  top: 45%;
  animation: coinFlyLeft 18s linear infinite 7s, coinSpin 1.2s linear infinite;
}

/* Coin flying from right side */
.flying-coin-4 {
  top: 40%;
  animation: coinFlyRight 14s linear infinite 2s, coinSpin 0.9s linear infinite reverse;
}

.flying-coin-5 {
  top: 60%;
  animation: coinFlyRight 16s linear infinite 5s, coinSpin 1.1s linear infinite reverse;
}

.flying-coin-6 {
  top: 30%;
  animation: coinFlyRight 20s linear infinite 10s, coinSpin 0.7s linear infinite reverse;
}

/* Coin arc animations */
.flying-coin-arc-1 {
  animation: coinArc1 8s ease-in-out infinite, coinSpin 0.6s linear infinite;
}

.flying-coin-arc-2 {
  animation: coinArc2 10s ease-in-out infinite 4s, coinSpin 0.8s linear infinite;
}

@keyframes coinFlyLeft {
  0% { 
    left: -50px;
    transform: translateY(0) scale(0.8);
    opacity: 0;
  }
  5% { opacity: 1; }
  50% {
    transform: translateY(-30px) scale(1.1);
  }
  95% { opacity: 1; }
  100% { 
    left: calc(100vw + 50px);
    transform: translateY(20px) scale(0.9);
    opacity: 0;
  }
}

@keyframes coinFlyRight {
  0% { 
    right: -50px;
    left: auto;
    transform: translateY(0) scale(0.8);
    opacity: 0;
  }
  5% { opacity: 1; }
  50% {
    transform: translateY(25px) scale(1.1);
  }
  95% { opacity: 1; }
  100% { 
    right: calc(100vw + 50px);
    left: auto;
    transform: translateY(-15px) scale(0.9);
    opacity: 0;
  }
}

@keyframes coinArc1 {
  0% {
    left: 10%;
    top: 70%;
    transform: scale(0.5);
    opacity: 0;
  }
  10% { opacity: 1; }
  50% {
    left: 50%;
    top: 25%;
    transform: scale(1.2);
  }
  90% { opacity: 1; }
  100% {
    left: 90%;
    top: 75%;
    transform: scale(0.5);
    opacity: 0;
  }
}

@keyframes coinArc2 {
  0% {
    right: 15%;
    left: auto;
    top: 65%;
    transform: scale(0.6);
    opacity: 0;
  }
  10% { opacity: 1; }
  50% {
    right: 50%;
    left: auto;
    top: 20%;
    transform: scale(1.3);
  }
  90% { opacity: 1; }
  100% {
    right: 85%;
    left: auto;
    top: 70%;
    transform: scale(0.5);
    opacity: 0;
  }
}

@keyframes coinSpin {
  0% { 
    transform: rotateY(0deg); 
  }
  100% { 
    transform: rotateY(360deg); 
  }
}

/* Coin trail sparkle effect */
.coin-sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, #FFE55C, #FFD700, transparent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  animation: sparkle 1.5s ease-out infinite;
}

.coin-sparkle:nth-child(1) { top: 20%; left: 30%; animation-delay: 0s; }
.coin-sparkle:nth-child(2) { top: 40%; left: 70%; animation-delay: 0.3s; }
.coin-sparkle:nth-child(3) { top: 60%; left: 20%; animation-delay: 0.6s; }
.coin-sparkle:nth-child(4) { top: 30%; left: 80%; animation-delay: 0.9s; }
.coin-sparkle:nth-child(5) { top: 70%; left: 50%; animation-delay: 1.2s; }

@keyframes sparkle {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.8;
  }
  100% {
    transform: scale(0);
    opacity: 0;
  }
}

/* Floating background balloons (injected by JS) */
.bg-balloon {
  position: absolute;
  opacity: 0.80;
  filter: brightness(1.0) contrast(1.0) saturate(1.3);
  animation: bgBalloonRise linear infinite;
  pointer-events: none;
  background: transparent;
}

.bg-balloon img {
  background: transparent;
}

@keyframes bgBalloonRise {
  from { transform: translateY(110vh) rotate(-8deg) scale(0.9); }
  to   { transform: translateY(-20vh) rotate(8deg) scale(1.1); }
}

/* ── GAME HEADER ──────────────────────────────────── */
.game-header {
  width: 100%;
  max-width: 1200px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px 28px;
  position: relative;
  z-index: 10;
  background: rgba(8, 16, 36, 0.55);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(245, 197, 24, 0.14);
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.35);
}

.hdr-left  { display: flex; gap: 16px; }
.hdr-right { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.hdr-center { display: flex; justify-content: center; }

.hdr-logo {
  height: clamp(56px, 8vw, 88px);
  display: block;
}

/* ── Logo Gold Frame ─────────────────────────────── */
.logo-frame {
  display: inline-flex;
  border-radius: 16px;
  overflow: hidden;
  padding: 6px;
  border: 3px solid rgba(245,197,24,0.55);
  box-shadow:
    0 0 0 2px rgba(245,197,24,0.10),
    0 0 30px rgba(245,197,24,0.25);
  animation: logoFloat 3s ease-in-out infinite;
  background: rgba(0,0,0,0.08);
}
.logo-frame img {
  display: block;
}

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

.hdr-frame {
  border-radius: 10px;
  border-width: 2px;
  padding: 3px;
  height: clamp(56px, 8vw, 88px);
}
.hdr-frame img {
  height: 100%;
  width: auto;
  border-radius: 6px;
}
.hdr-frame:hover {
  box-shadow: 0 0 30px rgba(245,197,24,0.50);
}

.ls-frame {
  border-radius: 14px;
  border-width: 3px;
  animation-duration: 2.5s;
}

/* Stat blocks */
.stat-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(4, 10, 24, 0.60);
  border: 1px solid rgba(245,197,24,.22);
  border-radius: 12px;
  padding: 8px 18px;
  min-width: 110px;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 2px 12px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.05);
  transition: border-color .2s, box-shadow .2s;
}
.stat-block:hover {
  border-color: rgba(245,197,24,.4);
  box-shadow: 0 4px 18px rgba(0,0,0,.4), 0 0 10px rgba(245,197,24,.1);
}

.stat-block.small { min-width: 90px; padding: 6px 14px; }

.sb-label {
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.sb-value {
  font-family: 'Fredoka One', cursive;
  font-size: 1.25rem;
  color: var(--text);
}

.sb-value.gold  { color: var(--gold); text-shadow: 0 0 12px var(--gold-glow); }
.sb-value.teal  { color: var(--teal); }

/* Level / XP block */
.level-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.xp-track {
  width: 100px;
  height: 6px;
  background: rgba(255,255,255,.1);
  border-radius: 3px;
  overflow: hidden;
}

.xp-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  border-radius: 3px;
  transition: width .6s ease;
  box-shadow: 0 0 6px var(--gold-glow);
}

.xp-label { font-size: .68rem; color: var(--muted); }

/* Icon buttons */
.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(245,197,24,.3);
  background: rgba(0,0,0,.4);
  color: var(--gold);
  font-size: 1rem;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-btn:hover { background: rgba(245,197,24,.15); border-color: var(--gold); }
.icon-btn.muted { color: var(--muted); border-color: rgba(255,255,255,.15); }

/* ── BONUS STATUS BAR ─────────────────────────────── */
.bonus-bar {
  display: flex;
  gap: 12px;
  justify-content: center;
  padding: 10px 28px;
  position: relative;
  z-index: 10;
  width: 100%;
}

.bp {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(4, 10, 24, 0.55);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50px;
  padding: 6px 18px;
  font-size: .78rem;
  opacity: .45;
  transition: all .35s cubic-bezier(.2,1,.4,1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.bp.active {
  opacity: 1;
  border-color: var(--gold);
  box-shadow: 0 0 18px rgba(245,197,24,.3), inset 0 0 12px rgba(245,197,24,.05);
  background: rgba(245,197,24,.10);
  transform: scale(1.04);
}

.bp-icon { font-size: 1rem; }
.bp-label { color: var(--muted); letter-spacing: .08em; text-transform: uppercase; font-size: .7rem; }
.bp-val { font-family: 'Fredoka One', cursive; font-size: 1.1rem; color: var(--gold); min-width: 28px; text-align: center; }

/* ── MACHINE CABINET ──────────────────────────────── */
.machine-wrap {
  position: relative;
  z-index: 10;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 20px;
}

/* ── SIDE CONTROL PANELS ───────────────────────────── */
.sp-left,
.sp-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 168px;
  flex-shrink: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.085) 0%, rgba(255,255,255,0.01) 60%, transparent 100%),
    rgba(7, 14, 36, 0.74);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(245, 197, 24, 0.20);
  border-radius: 20px;
  padding: 22px 14px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.11),
    inset 0 -1px 0 rgba(0,0,0,0.22),
    0 8px 36px rgba(0,0,0,0.48),
    0 0 50px rgba(245,197,24,0.07);
}

.sp-paylines {
  font-size: .72rem;
  letter-spacing: .1em;
  margin-bottom: 4px;
}

.machine-cabinet {
  background: linear-gradient(180deg, #142250 0%, #0A1628 60%, #071020 100%);
  border: 3px solid var(--gold-dark);
  border-radius: 24px;
  padding: 0;
  box-shadow:
    0 0 0 1px rgba(245,197,24,.08),
    0 20px 60px rgba(0,0,0,.7),
    inset 0 1px 0 rgba(255,255,255,.08),
    0 0 80px rgba(245,197,24,.15),
    0 0 120px rgba(245,197,24,.08);
  overflow: hidden;
  width: 100%;
  max-width: 760px;
  animation: cabinetGlow 4s ease-in-out infinite;
}

@keyframes cabinetGlow {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(245,197,24,.08),
      0 20px 60px rgba(0,0,0,.7),
      inset 0 1px 0 rgba(255,255,255,.08),
      0 0 60px rgba(245,197,24,.1),
      0 0 100px rgba(245,197,24,.05);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(245,197,24,.15),
      0 20px 60px rgba(0,0,0,.7),
      inset 0 1px 0 rgba(255,255,255,.12),
      0 0 100px rgba(245,197,24,.2),
      0 0 150px rgba(245,197,24,.1);
  }
}

/* Top decorative lights */
.machine-lights {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 14px 30px;
  background: linear-gradient(180deg, #0A1628 0%, #112145 100%);
  border-bottom: 2px solid var(--gold-dark);
}

.ml {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #FFE680, var(--gold), #D4A017);
  box-shadow: 
    0 0 8px var(--gold), 
    0 0 18px var(--gold-glow),
    0 0 30px rgba(245,197,24,.3),
    inset 0 1px 2px rgba(255,255,255,0.5);
  animation: lightPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

.ml:nth-child(2)  { animation-delay: .18s; }
.ml:nth-child(3)  { animation-delay: .36s; }
.ml:nth-child(4)  { animation-delay: .54s; }
.ml:nth-child(5)  { animation-delay: .72s; }
.ml:nth-child(6)  { animation-delay: .90s; }
.ml:nth-child(7)  { animation-delay: .72s; }
.ml:nth-child(8)  { animation-delay: .54s; }
.ml:nth-child(9)  { animation-delay: .36s; }
.ml:nth-child(10) { animation-delay: .18s; }

@keyframes lightPulse {
  0%,100% { 
    opacity: 1;
    box-shadow: 
      0 0 8px var(--gold), 
      0 0 18px var(--gold-glow),
      0 0 30px rgba(245,197,24,.4);
  }
  50% { 
    opacity: .4; 
    box-shadow: 0 0 4px var(--gold), 0 0 8px rgba(245,197,24,.2); 
  }
}

@keyframes lightBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-2px) scale(1.1); }
}

/* Screen panel — wraps jackpot meters + reels, shares one castle bg */
.screen-panel {
  background-image: url('brand_guidelines/assets/typography/Output_an_image_of_a_3D_animated_scene_featuring_a_grand_castle_constructed_entirely_from_stacked_gold_coins_and_folded_100_dollar_bills._The_castle_should_have_detailed_towers_walls_and_flags_with_shiny_reflective_gold_surfaces_and_visible_bill_text.png');
  background-size: cover;
  background-position: center top;
  position: relative;
}

/* Reels area */
.reels-area {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 22px 20px;
}

.payline-arrow {
  font-size: 1.2rem;
  color: var(--gold);
  opacity: .5;
  -webkit-user-select: none;
  user-select: none;
  flex-shrink: 0;
}

/* Reels viewport — the visible window */
.reels-viewport {
  position: relative;
  background: linear-gradient(180deg, rgba(4,10,24,0.18) 0%, rgba(4,10,24,0.22) 100%);
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(245,197,24,.4);
  box-shadow:
    inset 0 0 30px rgba(0,0,20,.25),
    inset 0 0 60px rgba(245,197,24,.04),
    0 4px 20px rgba(0,0,0,.45),
    0 0 40px rgba(245,197,24,.1);
  animation: viewportGlow 3s ease-in-out infinite;
}

@keyframes viewportGlow {
  0%, 100% {
    box-shadow:
      inset 0 0 30px rgba(0,0,20,.22),
      inset 0 0 60px rgba(245,197,24,.02),
      0 4px 20px rgba(0,0,0,.45),
      0 0 30px rgba(245,197,24,.07);
  }
  50% {
    box-shadow:
      inset 0 0 30px rgba(0,0,20,.18),
      inset 0 0 80px rgba(245,197,24,.06),
      0 4px 20px rgba(0,0,0,.45),
      0 0 50px rgba(245,197,24,.13);
  }
}

/* 5 reels in a row */
.reels-container {
  display: flex;
  gap: 6px;
  padding: 0 10px;
}

/* Each reel — shows 3 cells tall */
.reel {
  width: var(--cell);
  height: calc(var(--cell) * 3);
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  background: transparent;
}

/* Separator between reels */
.reel + .reel::before {
  content: '';
  position: absolute;
  top: 0;
  left: -3px;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.12) 30%, rgba(0,0,0,.12) 70%, transparent);
}

/* The scrolling strip */
.reel-strip {
  display: flex;
  flex-direction: column;
  will-change: transform;
}

/* Each symbol cell */
.reel-cell {
  width: var(--cell);
  height: var(--cell);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  background: transparent;
  transition: background .2s;
}

.reel-cell img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  display: block;
}

/* Gold $ overlay on all balloon symbol faces */
.reel-cell::after {
  content: '$';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Georgia', serif;
  font-size: 32px;
  font-weight: 900;
  color: rgba(245,197,24,0.75);
  text-shadow:
    0 1px 2px rgba(0,0,0,0.6),
    0 0 10px rgba(245,197,24,0.4);
  pointer-events: none;
  z-index: 2;
}

/* Winning cell highlight */
.reel-cell.winner {
  background: radial-gradient(circle, rgba(245,197,24,.35) 0%, rgba(245,197,24,.1) 50%, transparent 75%);
  animation: winPulse .35s ease-in-out infinite alternate;
}

.reel-cell.winner img {
  filter:
    drop-shadow(0 0 8px var(--gold))
    drop-shadow(0 0 16px rgba(245,197,24,.6))
    drop-shadow(0 0 24px rgba(245,197,24,.4));
  animation: imgBounce .35s ease-in-out infinite alternate, imgGlow .6s ease-in-out infinite;
}

@keyframes winPulse {
  from { 
    background: radial-gradient(circle, rgba(245,197,24,.25) 0%, rgba(245,197,24,.08) 50%, transparent 75%); 
  }
  to { 
    background: radial-gradient(circle, rgba(245,197,24,.45) 0%, rgba(245,197,24,.15) 50%, transparent 75%); 
  }
}

@keyframes imgBounce {
  from { transform: scale(1); }
  to   { transform: scale(1.15); }
}

@keyframes imgGlow {
  0%, 100% {
    filter: 
      drop-shadow(0 0 8px var(--gold)) 
      drop-shadow(0 0 16px rgba(245,197,24,.6));
  }
  50% {
    filter: 
      drop-shadow(0 0 12px var(--gold)) 
      drop-shadow(0 0 24px rgba(245,197,24,.8))
      drop-shadow(0 0 36px rgba(245,197,24,.5));
  }
}

/* Symbol hover effect for interactivity */
.reel-cell img {
  transition: transform 0.2s ease, filter 0.2s ease;
}

/* Ambient symbol glow on idle — removed (caused visual noise while reels sit) */

/* Top/bottom fade masks over reels */
.reel-mask {
  position: absolute;
  left: 0;
  right: 0;
  height: 70px;
  pointer-events: none;
  z-index: 5;
}
.reel-mask.top    { top: 0;    background: linear-gradient(180deg, rgba(4,10,24,.55) 0%, transparent 100%); }
.reel-mask.bottom { bottom: 0; background: linear-gradient(0deg,   rgba(4,10,24,.55) 0%, transparent 100%); }

/* Center payline indicator line */
.center-payline {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: var(--cell);
  border-top: 2px solid rgba(245,197,24,.45);
  border-bottom: 2px solid rgba(245,197,24,.45);
  pointer-events: none;
  z-index: 4;
  box-shadow:
    inset 0 1px 0 rgba(245,197,24,.15),
    inset 0 -1px 0 rgba(245,197,24,.15);
}

/* Machine message */
.machine-message {
  text-align: center;
  padding: 10px 20px;
  background: rgba(0,0,0,.25);
  border-top: 1px solid rgba(255,255,255,.04);
  border-bottom: 5px solid rgba(245,197,24,0.35);
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.machine-message p {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: .04em;
  transition: color .3s;
}

.machine-message p.win-msg {
  color: var(--gold);
  text-shadow: 0 0 14px var(--gold-glow);
  animation: glowPulse 1s ease-in-out infinite;
}

.machine-message p.lose-msg { color: var(--muted); }

@keyframes glowPulse {
  0%,100% { text-shadow: 0 0 10px var(--gold-glow); }
  50%      { text-shadow: 0 0 24px rgba(245,197,24,.9); }
}

/* Machine footer */
.machine-footer-bar {
  padding: 10px 20px;
  background: linear-gradient(180deg, #071020, #0A1628);
  border-top: 1px solid rgba(245,197,24,.15);
  display: flex;
  justify-content: center;
}

.paylines-badge {
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: .75;
}

/* ── CONTROLS BAR (removed from HTML — keeping rules inert) ── */
.controls-bar {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: 900px;
  max-width: 100vw;
  padding: 16px 24px;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  z-index: 10;
  background: rgba(6, 12, 28, 0.70);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(245, 197, 24, 0.12);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -6px 32px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255,255,255,0.04);
  transform: scale(0.55);
  transform-origin: bottom center;
}

.ctrls-left,
.ctrls-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 130px;
}

.ctrls-right { align-items: flex-end; }

.ctrls-center {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  justify-content: center;
}

/* Generic control button */
.ctrl-btn {
  padding: 10px 20px;
  border-radius: 22px;
  border: 1px solid rgba(245,197,24,.25);
  background: rgba(0,0,0,.45);
  color: var(--text);
  font-family: 'Nunito', sans-serif;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  cursor: pointer;
  transition: transform .18s cubic-bezier(.2,1.2,.4,1), background .18s, border-color .18s, box-shadow .18s, color .18s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.ctrl-btn:hover {
  background: rgba(245,197,24,.12);
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,.35), 0 0 12px rgba(245,197,24,.15);
}

.ctrl-btn:active { transform: translateY(0) scale(.96); }

.ctrl-btn.active {
  background: rgba(245,197,24,.18);
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 14px rgba(245,197,24,.2);
}

/* Auto spin count badge */
.auto-badge {
  background: rgba(0,0,0,.4);
  border-radius: 10px;
  padding: 2px 8px;
  font-size: .72rem;
  color: var(--muted);
}

.ctrl-btn.active .auto-badge { color: var(--gold); }

/* Bet control row */
.bet-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bet-adj {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(245,197,24,.3);
  background: rgba(0,0,0,.45);
  color: var(--gold);
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.bet-adj:hover { background: rgba(245,197,24,.15); border-color: var(--gold); transform: scale(1.1); }
.bet-adj:active { transform: scale(.93); }

.bet-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0,0,0,.5);
  border: 1px solid rgba(245,197,24,.25);
  border-radius: 12px;
  padding: 8px 22px;
  min-width: 90px;
}

.bet-lbl { font-size: .66rem; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.bet-val  { font-family: 'Fredoka One', cursive; font-size: 1.4rem; color: var(--gold); }

/* ── SPIN BUTTON ──────────────────────────────────── */

/* Rotating neon ring wrapper — sits just outside the button */
.spin-btn-wrap {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spin-btn-wrap::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(224,48,48,0)    0%,
    rgba(255,120,120,.7) 30%,
    rgba(255,60,60,1)    50%,
    rgba(255,120,120,.7) 70%,
    rgba(224,48,48,0)    100%
  );
  animation: spinRingRotate 2.8s linear infinite;
  z-index: 0;
}

.spin-btn-wrap::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: var(--dark);
  z-index: 1;
}

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

.spin-btn {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  border: none;
  background: radial-gradient(circle at 35% 32%, #FF6060 0%, #CC1515 70%, #8B0000 100%);
  box-shadow:
    0 8px 32px rgba(200,20,20,.55),
    0 0 0 3px rgba(255,255,255,.07),
    inset 0 3px 0 rgba(255,255,255,.25),
    inset 0 -4px 0 rgba(0,0,0,.3);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: transform .15s cubic-bezier(.2,1.4,.4,1), box-shadow .15s;
  position: relative;
  overflow: hidden;
  z-index: 2;
}

/* Sheen sweep on hover */
.spin-btn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
  transition: left .5s ease;
}
.spin-btn:hover::after { left: 100%; }

.spin-btn:hover {
  transform: scale(1.07);
  box-shadow:
    0 14px 48px rgba(200,20,20,.7),
    0 0 0 3px rgba(255,255,255,.1),
    inset 0 3px 0 rgba(255,255,255,.25),
    inset 0 -4px 0 rgba(0,0,0,.3);
}

.spin-btn:active { transform: scale(.93); }

.spin-btn:disabled {
  background: radial-gradient(circle, rgba(38,48,80,0.95), rgba(14,20,42,0.98));
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.5), 0 0 0 2px rgba(245,197,24,0.08);
  cursor: not-allowed;
  transform: none;
  opacity: 0.72;
}

/* Pause ring rotation while spinning */
.spin-btn:disabled ~ .spin-btn-wrap::before,
.spin-btn:disabled + .spin-btn-wrap::before {
  animation-play-state: paused;
}

.spin-label {
  font-family: 'Fredoka One', cursive;
  font-size: 1.55rem;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,.4);
  letter-spacing: .04em;
}

.spin-hint {
  font-size: .6rem;
  color: rgba(255,255,255,.55);
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* MAX BET button */
.max-btn {
  padding: 10px 18px;
  border-radius: 14px;
  border: 1px solid rgba(245,197,24,.3);
  background: linear-gradient(135deg, rgba(245,197,24,.12) 0%, rgba(212,160,23,.08) 100%);
  color: var(--gold);
  font-family: 'Nunito', sans-serif;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  cursor: pointer;
  text-align: center;
  line-height: 1.4;
  transition: all .2s;
}
.max-btn:hover {
  background: linear-gradient(135deg, rgba(245,197,24,.22) 0%, rgba(212,160,23,.15) 100%);
  border-color: var(--gold);
}

/* ── WIN OVERLAY ──────────────────────────────────── */
#win-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.82);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

#particle-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.win-box {
  position: relative;
  text-align: center;
  animation: winBoxPop .4s cubic-bezier(.2,1.4,.4,1);
  z-index: 1;
  border: 5px solid rgba(245,197,24,0.4);
  border-radius: 20px;
  padding: 32px 48px;
  background: linear-gradient(160deg, rgba(255,255,255,0.05) 0%, rgba(6,14,36,0.72) 100%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    0 0 60px rgba(245,197,24,0.12),
    0 12px 48px rgba(0,0,0,0.5);
}

@keyframes winBoxPop {
  from { transform: scale(.4); opacity: 0; }
  to   { transform: scale(1);  opacity: 1; }
}

.win-type {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(3rem, 8vw, 6rem);
  color: var(--gold);
  text-shadow:
    0 0 30px var(--gold-glow),
    0 0 60px rgba(245,197,24,.4),
    4px 4px 0 #6B3A00;
  animation: winTypePulse 0.6s ease-in-out infinite alternate;
  line-height: 1;
}

@keyframes winTypePulse {
  from { transform: scale(1);    text-shadow: 0 0 30px var(--gold-glow), 4px 4px 0 #6B3A00; }
  to   { transform: scale(1.06); text-shadow: 0 0 60px rgba(245,197,24,.9), 4px 4px 0 #6B3A00; }
}

.win-amount-counter {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(2.5rem, 7vw, 5rem);
  color: #fff;
  text-shadow: 0 0 20px rgba(255,255,255,.4), 3px 3px 0 rgba(0,0,0,.5);
  margin: 16px 0 28px;
}

.collect-btn {
  padding: 16px 52px;
  border-radius: 40px;
  border: none;
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 50%, var(--gold-light) 100%);
  color: #1A1000;
  font-family: 'Fredoka One', cursive;
  font-size: 1.3rem;
  letter-spacing: .06em;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(245,197,24,.45), inset 0 2px 0 rgba(255,255,255,.3);
  transition: all .15s;
}
.collect-btn:hover { transform: scale(1.05); box-shadow: 0 10px 32px rgba(245,197,24,.6); }
.collect-btn:active { transform: scale(.96); }

/* ── MODALS ───────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  padding: 20px;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.modal-box {
  background: linear-gradient(180deg, #142250 0%, #0A1628 100%);
  border: 2px solid var(--gold-dark);
  border-radius: 24px;
  padding: 36px 32px;
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  animation: modalSlideIn .3s cubic-bezier(.2,1.2,.4,1);
}

@keyframes modalSlideIn {
  from { transform: translateY(30px) scale(.95); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1.8rem;
  color: var(--gold);
  text-align: center;
  margin-bottom: 24px;
  letter-spacing: .05em;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(0,0,0,.4);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover { background: rgba(255,60,60,.3); border-color: rgba(255,60,60,.5); }

/* ── PAYTABLE ─────────────────────────────────────── */
.pt-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
}

.pt-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  padding: 10px 16px;
  transition: background .2s;
}
.pt-row:hover { background: rgba(245,197,24,.06); }

.pt-sym-block {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 160px;
}

.pt-sym-block img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.pt-sym-name { font-weight: 700; font-size: .9rem; }
.pt-wild-tag,
.pt-scatter-tag,
.pt-bonus-tag {
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 800;
}

.pt-wild-tag {
  background: rgba(245,197,24,.18);
  color: var(--gold);
}

.pt-scatter-tag {
  background: rgba(255,215,0,.18);
  color: #FFD700;
}

.pt-bonus-tag {
  background: rgba(77,184,72,.18);
  color: #4DB848;
}

.pt-values {
  display: flex;
  gap: 10px;
  margin-left: auto;
}

.pt-val-item {
  text-align: center;
  min-width: 56px;
}

.pt-match { font-size: .68rem; color: var(--muted); letter-spacing: .08em; }
.pt-mult  { font-family: 'Fredoka One', cursive; font-size: 1.1rem; color: var(--gold); }

.pt-rules {
  background: rgba(0,0,0,.3);
  border-radius: 14px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.06);
}
.pt-rules h3 { color: var(--sky); font-size: 1rem; margin-bottom: 12px; }
.pt-rules p  { font-size: .88rem; color: var(--muted); margin-bottom: 10px; line-height: 1.55; }
.pt-rules p strong { color: var(--text); }
.pt-rules p:last-child { margin-bottom: 0; }

.pt-rule-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}
.pt-icon-wrap { position: relative; display: inline-flex; flex-shrink: 0; margin-top: 2px; }
.pt-icon-wrap::after {
  content: '$';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -45%);
  font-family: 'Georgia', serif;
  font-size: 20px;
  font-weight: 900;
  color: rgba(245,197,24,0.75);
  text-shadow: 0 1px 2px rgba(0,0,0,0.6), 0 0 10px rgba(245,197,24,0.4);
  pointer-events: none;
  z-index: 2;
}
.pt-icon { width: 36px; height: 36px; object-fit: contain; flex-shrink: 0; display: block; }
.pt-note { font-size: .78rem; color: rgba(255,255,255,.35); font-style: italic; margin-top: 14px !important; }

/* ── DAILY BONUS ──────────────────────────────────── */
.daily-box { text-align: center; }

.daily-coins {
  font-family: 'Fredoka One', cursive;
  font-size: 4rem;
  color: var(--gold);
  text-shadow: 0 0 24px var(--gold-glow), 3px 3px 0 #6B3A00;
  margin: 10px 0 16px;
  animation: winTypePulse 1.2s ease-in-out infinite alternate;
}

.daily-sub { color: var(--muted); font-size: .9rem; margin-bottom: 24px; line-height: 1.5; }

.claim-btn {
  padding: 16px 52px;
  border-radius: 40px;
  border: none;
  background: linear-gradient(135deg, var(--sky-deep) 0%, var(--sky) 100%);
  color: #fff;
  font-family: 'Fredoka One', cursive;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(91,184,245,.4);
  transition: all .15s;
}
.claim-btn:hover { transform: scale(1.05); }
.claim-btn:active { transform: scale(.96); }

/* ── MACHINE SHAKE (on loss) ──────────────────────── */
.machine-cabinet.shake {
  animation: machineShake .35s ease;
}

@keyframes machineShake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-6px); }
  40%      { transform: translateX(6px); }
  60%      { transform: translateX(-4px); }
  80%      { transform: translateX(4px); }
}

/* Free-spin mode glow */
.machine-cabinet.free-spin-mode {
  border-color: var(--sky);
  box-shadow:
    0 0 0 1px rgba(91,184,245,.15),
    0 20px 60px rgba(0,0,0,.7),
    0 0 60px rgba(91,184,245,.2);
}

.machine-cabinet.free-spin-mode .ml {
  background: var(--sky);
  box-shadow: 0 0 8px var(--sky), 0 0 18px rgba(91,184,245,.6);
}

/* ── SCROLLBAR ────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,.2); }
::-webkit-scrollbar-thumb { background: rgba(245,197,24,.3); border-radius: 3px; }

/* ── HEIGHT-RESPONSIVE — fit screens without vertical scroll ───── */
@media (max-height: 920px) {
  :root { --cell: 96px; }
  .game-header { padding: 10px 18px; }
  .machine-lights { padding: 12px 20px; }
  .reels-area { padding: 18px 14px; gap: 10px; }
  .reels-viewport { border-width: 1px; }
  .reel-mask { height: 62px; }
  .machine-message { padding: 8px 16px; min-height: 38px; }
  .machine-footer-bar { padding: 8px 16px; }
  .controls-bar { padding: 12px 16px; gap: 16px; }
  .spin-btn { width: 120px; height: 120px; }
  .bet-adj { width: 38px; height: 38px; }
  .bet-box { padding: 7px 18px; }
}

@media (max-height: 820px) {
  :root { --cell: 82px; }
  .hdr-logo { height: 48px; }
  .stat-block { padding: 6px 10px; min-width: 76px; }
  .bonus-bar { padding: 8px 14px; gap: 8px; }
  .jp-meters-bar { padding: 10px 14px 8px; }
  .jp-ring-wrap { width: 66px; height: 66px; }
  .jp-img { width: 30px; height: 30px; }
  .reel-cell img { width: 72px; height: 72px; }
  .reel-mask { height: 54px; }
  .spin-btn { width: 100px; height: 100px; }
  .bet-box { padding: 6px 14px; }
  .controls-bar { padding: 10px 12px; gap: 12px; }
  .ctrls-left, .ctrls-right { min-width: 72px; }
}

@media (max-height: 740px) {
  :root { --cell: 72px; }
  .game-header { padding: 8px 14px; }
  .hdr-left, .hdr-right { gap: 8px; }
  .bonus-bar { flex-wrap: wrap; justify-content: center; padding: 6px 12px; }
  .machine-lights { padding: 10px 14px; }
  .reels-area { padding: 12px 10px; gap: 8px; }
  .reels-container { gap: 4px; padding: 0 6px; }
  .reel-cell img { width: 58px; height: 58px; }
  .reel-mask { height: 46px; }
  .spin-btn { width: 88px; height: 88px; }
  .spin-label { font-size: 1rem; }
  .bet-row { gap: 8px; }
  .bet-box { padding: 6px 12px; min-width: 68px; }
  .controls-bar { flex-wrap: wrap; gap: 10px; padding: 10px 10px; }
  .ctrls-center { width: 100%; justify-content: center; }
  .ctrls-left, .ctrls-right { width: 100%; min-width: auto; align-items: center; }
}

/* ── SIDE PANELS — narrow desktop: shrink ─────────── */
@media (max-width: 1140px) {
  .sp-left, .sp-right { width: 136px; padding: 18px 10px; gap: 10px; }
}

/* ── SIDE PANELS — tablet/mobile: stack below machine ── */
@media (max-width: 960px) {
  .machine-wrap {
    flex-wrap: wrap;
    gap: 12px;
  }
  .machine-cabinet { order: 1; }
  .sp-left {
    order: 2;
    flex: 1;
    width: auto;
    min-width: 160px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .sp-right {
    order: 3;
    flex: 1;
    width: auto;
    min-width: 160px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .sp-left, .sp-right { width: 100%; }
}

/* ── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 800px) {
  :root { --cell: 92px; }

  .game-header { padding: 10px 14px; }
  .hdr-logo { height: 52px; }
  .stat-block { padding: 6px 12px; min-width: 88px; }
  .sb-value { font-size: 1rem; }
  .level-group { display: none; }

  .controls-bar { gap: 12px; padding: 12px 14px; }
  .ctrls-left, .ctrls-right { min-width: 80px; }

  .spin-btn { width: 108px; height: 108px; }
  .spin-label { font-size: 1.3rem; }
  .bet-val { font-size: 1.15rem; }
}

@media (max-width: 560px) {
  :root { --cell: 68px; }
  .reels-area { gap: 6px; padding: 14px 10px; }
  .reels-container { gap: 3px; padding: 0 4px; }
  .reel-cell img { width: 60px; height: 60px; }
  .hdr-left .stat-block:last-child { display: none; }
  .ctrls-right { display: none; }
  .spin-btn { width: 90px; height: 90px; }
  .spin-label { font-size: 1.1rem; }
}

/* ══════════════════════════════════════════════════════
   MEGA BALLOON JACKPOT METERS
══════════════════════════════════════════════════════ */

/* Container bar */
.jp-meters-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 14px 24px 10px;
  background: rgba(5, 10, 22, 0.38);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(245,197,24,.18);
  box-shadow: 0 4px 20px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.04);
  position: relative;
  overflow: visible;
}

.jp-meters-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(245,197,24,.06) 0%, transparent 70%);
  pointer-events: none;
}

/* Divider between meters */
.jp-divider {
  width: 1px;
  height: 60px;
  background: linear-gradient(180deg, transparent, rgba(245,197,24,.2), transparent);
  margin: 0 8px;
  flex-shrink: 0;
}

/* Individual meter */
.jp-meter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 18px;
  cursor: default;
  position: relative;
}

.jp-meter.center {
  padding: 0 24px;
}

/* SVG ring wrapper */
.jp-ring-wrap {
  position: relative;
  width: 82px;
  height: 82px;
  flex-shrink: 0;
}

.jp-meter.center .jp-ring-wrap {
  width: 100px;
  height: 100px;
}

.jp-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.jp-progress {
  transition: stroke-dashoffset 0.55s ease, filter 0.3s ease;
}

/* Inner content (image + value) centered inside ring */
.jp-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  pointer-events: none;
  background: transparent;
}
.jp-inner::after {
  content: '$';
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Georgia', serif;
  font-size: 22px;
  font-weight: 900;
  color: rgba(245,197,24,0.75);
  text-shadow: 0 1px 2px rgba(0,0,0,0.6), 0 0 10px rgba(245,197,24,0.4);
  pointer-events: none;
  z-index: 2;
}

.jp-img,
#jp-pop-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.5));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.jp-meter.center .jp-img,
#jp-pop-img {
  width: 52px;
  height: 52px;
}

.jp-val {
  font-family: 'Fredoka One', cursive;
  font-size: .65rem;
  color: var(--gold);
  text-shadow: 0 0 6px var(--gold-glow);
  white-space: nowrap;
  line-height: 1;
}

.jp-meter.center .jp-val {
  font-size: .78rem;
}

/* Tier label badge */
.jp-label-badge {
  font-family: 'Fredoka One', cursive;
  font-size: .72rem;
  letter-spacing: .1em;
  border-radius: 20px;
  padding: 3px 14px;
  font-weight: 400;
}

.minor-badge { background: rgba(58,127,213,.2); color: #5BA4F5; border: 1px solid rgba(58,127,213,.4); }
.mega-badge  { background: rgba(77,184,72,.2);  color: #6FD669; border: 1px solid rgba(77,184,72,.4);  font-size: .82rem; padding: 4px 18px; }
.major-badge { background: rgba(123,82,171,.2); color: #B488F5; border: 1px solid rgba(123,82,171,.4); }

/* ── Suspense state animations ─────────────────────── */

/* 60%+ : gentle glow on the ring */
.jp-meter.jp-warm .jp-progress {
  filter: drop-shadow(0 0 3px currentColor);
}

/* 80%+ : pulse the whole meter */
.jp-meter.jp-hot .jp-ring-wrap {
  animation: jpPulse 1.4s ease-in-out infinite;
}
.jp-meter.jp-hot .jp-img {
  filter: drop-shadow(0 2px 8px rgba(255,255,255,.3));
}

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

/* 92%+ : rapid wobble + intense glow */
.jp-meter.jp-critical .jp-ring-wrap {
  animation: jpWobble 0.28s ease-in-out infinite alternate;
}
.jp-meter.jp-critical .jp-progress {
  filter: drop-shadow(0 0 8px currentColor) drop-shadow(0 0 16px currentColor);
  animation: jpRingFlicker 0.28s ease-in-out infinite alternate;
}
.jp-meter.jp-critical .jp-img {
  animation: jpImgShake 0.2s ease-in-out infinite alternate;
}

@keyframes jpWobble {
  from { transform: rotate(-5deg) scale(1.06); }
  to   { transform: rotate(5deg)  scale(1.10); }
}

@keyframes jpRingFlicker {
  from { opacity: .8; }
  to   { opacity: 1;  }
}

@keyframes jpImgShake {
  from { transform: translateY(-2px) scale(1.05); }
  to   { transform: translateY(2px)  scale(1.12); }
}

/* 98%+ : ABOUT TO POP — flash the badge */
.jp-meter.jp-ready .jp-label-badge {
  animation: jpBadgeFlash 0.2s ease-in-out infinite alternate;
}

@keyframes jpBadgeFlash {
  from { opacity: .5; }
  to   { opacity: 1; box-shadow: 0 0 14px currentColor; }
}

/* ── Explosion pop animation ───────────────────────── */
.jp-meter.jp-exploding .jp-ring-wrap {
  animation: jpExplode 0.55s ease-out forwards;
}

@keyframes jpExplode {
  0%   { transform: scale(1);   opacity: 1; }
  40%  { transform: scale(1.8); opacity: 1; }
  100% { transform: scale(3.5); opacity: 0; }
}

/* Balloon swells then pops */
.jp-meter.jp-exploding .jp-img {
  animation: jpBalloonPop 0.52s ease-out forwards;
  position: relative;
  z-index: 2;
}

@keyframes jpBalloonPop {
  0%   { transform: scale(1);   opacity: 1; filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); }
  30%  { transform: scale(2.4); opacity: 1; filter: drop-shadow(0 0 22px rgba(255,255,255,.9)); }
  48%  { transform: scale(3.0); opacity: 1; filter: drop-shadow(0 0 30px rgba(255,230,80,1)); }
  55%  { transform: scale(0.2); opacity: 0; }
  100% { transform: scale(0);   opacity: 0; }
}

/* Coin particles that fly out from the meter */
.jp-coin-burst {
  position: fixed;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFE680 0%, #F5C518 50%, #C8960C 100%);
  box-shadow: 0 0 5px rgba(245,197,24,.9), inset 0 1px 0 rgba(255,255,255,.5);
  pointer-events: none;
  z-index: 9999;
  animation: jpCoinFly var(--dur, .8s) cubic-bezier(.15,.8,.35,1) var(--delay, 0s) both;
}

/* Small $ sign on each coin */
.jp-coin-burst::after {
  content: '$';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 900;
  color: rgba(100,60,0,.7);
  line-height: 14px;
  text-align: center;
}

@keyframes jpCoinFly {
  0%   { transform: translate(0, 0) scale(1)   rotate(0deg);          opacity: 1; }
  15%  { opacity: 1; }
  80%  { opacity: .8; }
  100% { transform: translate(var(--tx), var(--ty)) scale(.55) rotate(var(--rot)); opacity: 0; }
}

/* ══════════════════════════════════════════════════════
   JACKPOT WIN OVERLAY
══════════════════════════════════════════════════════ */

#jp-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
}

#jp-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Screen flash layer */
.jp-flash {
  position: absolute;
  inset: 0;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.08s;
  z-index: 1;
}

.jp-flash.on { opacity: .65; }

/* Win box */
.jp-win-box {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: jpBoxEntrance 0.55s cubic-bezier(.15,1.4,.4,1);
  border: 5px solid rgba(245,197,24,0.35);
  border-radius: 20px;
  padding: 40px 56px;
  background: rgba(0,0,0,0.10);
}

@keyframes jpBoxEntrance {
  from { transform: scale(.3) rotate(-8deg); opacity: 0; }
  to   { transform: scale(1)  rotate(0deg);  opacity: 1; }
}

/* Burst rings */
.jp-burst-ring {
  position: absolute;
  border-radius: 50%;
  border: 3px solid rgba(245,197,24,.5);
  pointer-events: none;
  animation: jpBurstExpand 1.8s ease-out infinite;
}
.jp-burst-ring.r1 { width: 200px; height: 200px; animation-delay: 0s;    }
.jp-burst-ring.r2 { width: 200px; height: 200px; animation-delay: 0.6s;  }
.jp-burst-ring.r3 { width: 200px; height: 200px; animation-delay: 1.2s;  }

@keyframes jpBurstExpand {
  0%   { transform: scale(.2); opacity: .9; }
  100% { transform: scale(4);  opacity: 0;  }
}

/* Tier label */
.jp-tier-label {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  letter-spacing: .06em;
  line-height: 1;
  text-shadow: 4px 4px 0 rgba(0,0,0,.5);
  animation: jpLabelPulse .5s ease-in-out infinite alternate;
}

/* Per-tier colours set by JS class */
.jp-tier-label.minor-color { color: #5BA4F5; text-shadow: 0 0 30px rgba(91,164,245,.6), 4px 4px 0 #0A2A5E; }
.jp-tier-label.mega-color  { color: #6FD669; text-shadow: 0 0 30px rgba(111,214,105,.6), 4px 4px 0 #0A3A08; }
.jp-tier-label.major-color {
  background: linear-gradient(135deg, #B488F5 0%, var(--gold) 60%, #FFE680 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(180,136,245,.7));
}

@keyframes jpLabelPulse {
  from { transform: scale(1); }
  to   { transform: scale(1.04); }
}

/* Jackpot balloon image */
.jp-balloon-display {
  position: relative;
}

.jp-pop-img {
  width: clamp(80px, 14vw, 130px);
  height: clamp(80px, 14vw, 130px);
  object-fit: contain;
  filter: drop-shadow(0 0 24px rgba(255,255,255,.4));
  animation: jpImgFloat 2s ease-in-out infinite;
}

@keyframes jpImgFloat {
  0%,100% { transform: translateY(0)   rotate(-3deg); }
  50%      { transform: translateY(-12px) rotate(3deg); }
}

/* Prize counter */
.jp-prize-counter {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  color: var(--gold);
  text-shadow: 0 0 30px var(--gold-glow), 3px 3px 0 rgba(0,0,0,.5);
  line-height: 1;
}

.jp-subtext {
  font-size: 1rem;
  color: var(--muted);
  letter-spacing: .1em;
}

/* Collect jackpot button */
.jp-collect-btn {
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 50%, var(--gold-light) 100%);
  color: #1A0F00;
  font-size: 1.4rem;
  padding: 18px 60px;
  border-radius: 50px;
  border: none;
  font-family: 'Fredoka One', cursive;
  cursor: pointer;
  box-shadow:
    0 8px 32px rgba(245,197,24,.5),
    inset 0 2px 0 rgba(255,255,255,.3);
  transition: all .15s;
  letter-spacing: .05em;
}

.jp-collect-btn:hover { transform: scale(1.06); box-shadow: 0 12px 44px rgba(245,197,24,.7); }
.jp-collect-btn:active { transform: scale(.96); }

/* ── Major jackpot extra drama: rainbow border ─────── */
#jp-overlay.major-jackpot-mode {
  background: rgba(0,0,0,.94);
}

#jp-overlay.major-jackpot-mode::before {
  content: '';
  position: fixed;
  inset: -6px;
  background: conic-gradient(
    #B488F5, var(--gold), #4DB848, #5BB8F5, #E63C2F, #F5A623, #B488F5
  );
  z-index: -1;
  animation: rainbowSpin 3s linear infinite;
  border-radius: 0;
}

@keyframes rainbowSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ── Responsive meters ─────────────────────────────── */
@media (max-width: 700px) {
  .jp-ring-wrap       { width: 64px; height: 64px; }
  .jp-meter.center .jp-ring-wrap { width: 78px; height: 78px; }
  .jp-img             { width: 32px; height: 32px; }
  .jp-meter.center .jp-img { width: 40px; height: 40px; }
  .jp-val             { font-size: .58rem; }
  .jp-meter           { padding: 0 10px; }
  .jp-meter.center    { padding: 0 14px; }
  .jp-label-badge     { font-size: .62rem; padding: 2px 10px; }
  .jp-meters-bar      { padding: 10px 10px 8px; }
}

/* ═══════════════════════════════════════════════════
   INTRO SCREEN
═══════════════════════════════════════════════════ */
#intro-screen {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #020914 0%, #040E20 30%, #071428 60%, #0A1A35 100%);
  opacity: 0;
  transition: opacity 0.85s ease;
  pointer-events: none;
  overflow: hidden;
}

#intro-screen.active {
  opacity: 1;
  pointer-events: all;
}

#intro-screen.exit {
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}

/* Launch video background */
#intro-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* Animated background layer */
.intro-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Radial glow behind the logo */
.intro-center-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 640px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
    rgba(245,197,24,0.1) 0%,
    rgba(91,184,245,0.06) 45%,
    transparent 75%
  );
  pointer-events: none;
  animation: introGlowPulse 4s ease-in-out infinite;
}

@keyframes introGlowPulse {
  0%, 100% { transform: translateX(-50%) scale(1);   opacity: 0.7; }
  50%       { transform: translateX(-50%) scale(1.3); opacity: 1; }
}

/* Twinkling stars (JS-injected .intro-star elements) */
.intro-star {
  position: absolute;
  border-radius: 50%;
  background: #ffffff;
  animation: introStarTwinkle var(--dur, 3s) ease-in-out infinite var(--delay, 0s);
}

@keyframes introStarTwinkle {
  0%, 100% { opacity: 0.12; transform: scale(0.7); }
  50%       { opacity: 1;    transform: scale(1.5); }
}

/* Rising intro balloons (JS-injected .intro-balloon elements) */
.intro-balloon {
  position: absolute;
  bottom: -15%;
  animation: introBalloonRise linear infinite;
  pointer-events: none;
}

.intro-balloon img {
  width: 100%;
  height: auto;
  filter: brightness(1.05) saturate(1.3);
}

@keyframes introBalloonRise {
  0%   { transform: translateY(0)      rotate(-6deg) scale(0.9); opacity: 0; }
  8%   { opacity: 0.6; }
  88%  { opacity: 0.4; }
  100% { transform: translateY(-125vh) rotate(6deg)  scale(1.1); opacity: 0; }
}

/* Content stack */
.intro-content {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  padding: 44px 56px;
  text-align: center;
  border: 5px solid rgba(245,197,24,0.30);
  border-radius: 24px;
  background: rgba(5,10,30,0.55);
  backdrop-filter: blur(8px);
}

/* Logo entrance */
.intro-logo-wrap {
  opacity: 0;
  transform: translateY(-55px) scale(0.75);
  transition: opacity 0.95s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.95s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.intro-logo-wrap.reveal {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.intro-logo {
  width: clamp(240px, 40vw, 400px);
  display: block;
  border-radius: 10px;
}

/* Tagline — word-by-word clip reveal */
.intro-tagline {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(1.5rem, 3.5vw, 2.6rem);
  color: #ffffff;
  letter-spacing: 0.04em;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  overflow: hidden;
}

.intro-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(110%);
  transition: opacity 0.45s ease,
              transform 0.45s cubic-bezier(0.34, 1.3, 0.64, 1);
}

.intro-word.reveal {
  opacity: 1;
  transform: translateY(0);
}

.intro-word.sky-word {
  color: var(--sky);
  text-shadow: 0 0 22px rgba(91,184,245,0.65);
}

/* Brand proposition pills */
.intro-proposition {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.intro-proposition.reveal {
  opacity: 1;
  transform: translateY(0);
}

.intro-prop-item {
  background: rgba(245,197,24,0.1);
  border: 1px solid rgba(245,197,24,0.3);
  border-radius: 50px;
  padding: 9px 22px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.intro-prop-sep {
  color: rgba(255,255,255,0.2);
  font-size: 1.4rem;
  line-height: 1;
}

/* PLAY NOW button */
.intro-play-btn {
  opacity: 0;
  transform: scale(0.75);
  transition: opacity 0.5s ease,
              transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  background: linear-gradient(135deg, #FFE680 0%, #F5C518 25%, #D4A017 50%, #F5C518 75%, #FFE680 100%);
  background-size: 300% 300%;
  border: none;
  border-radius: 60px;
  padding: 20px 70px;
  font-family: 'Fredoka One', cursive;
  font-size: 1.75rem;
  color: #071020;
  letter-spacing: 0.08em;
  box-shadow:
    0 8px 32px rgba(245,197,24,0.55),
    0 4px 12px rgba(0,0,0,0.45),
    inset 0 2px 0 rgba(255,255,255,0.35);
}

.intro-play-btn.reveal {
  opacity: 1;
  transform: scale(1);
  animation: introGradientShift 4s ease infinite,
             introBtnPulse 2.5s ease-in-out 0.6s infinite;
}

.intro-play-btn:hover {
  transform: scale(1.07) !important;
  box-shadow:
    0 14px 46px rgba(245,197,24,0.78),
    0 6px 16px rgba(0,0,0,0.5),
    inset 0 2px 0 rgba(255,255,255,0.4);
}

.intro-play-btn:active {
  transform: scale(0.96) !important;
}

@keyframes introGradientShift {
  0%   { background-position: 0%   50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0%   50%; }
}

@keyframes introBtnPulse {
  0%, 100% {
    box-shadow: 0 8px 32px rgba(245,197,24,0.55),
                0 4px 12px rgba(0,0,0,0.45),
                inset 0 2px 0 rgba(255,255,255,0.35);
  }
  50% {
    box-shadow: 0 8px 58px rgba(245,197,24,0.95),
                0 4px 12px rgba(0,0,0,0.45),
                inset 0 2px 0 rgba(255,255,255,0.35);
  }
}

/* Skip hint */
.intro-skip {
  opacity: 0;
  color: rgba(245,220,120,0.55);
  font-size: 0.73rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: opacity 0.5s ease;
  margin-top: -8px;
}

.intro-skip.reveal {
  opacity: 1;
}

/* ═══════════════════════════════════════════════════
   SKY BACKGROUND — DEPTH LAYERS
═══════════════════════════════════════════════════ */

/* Warm sun glow top-right */
.sky-sun {
  position: absolute;
  top: -90px;
  right: 12%;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle at center,
    rgba(255,248,180,0.55) 0%,
    rgba(255,220,100,0.26) 35%,
    rgba(255,200,80,0.09) 65%,
    transparent 100%
  );
  z-index: 1;
  pointer-events: none;
  animation: skySkPulse 10s ease-in-out infinite;
}

@keyframes skySkPulse {
  0%, 100% { transform: scale(1);    opacity: 0.85; }
  50%       { transform: scale(1.14); opacity: 1; }
}

/* Horizon mist */
.sky-horizon {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 32%;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(176,224,230,0.10) 50%,
    rgba(200,235,245,0.20) 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Soft ambient color blobs */
.sky-ambient {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  filter: blur(72px);
}

.sky-ambient.a1 {
  width: 560px;
  height: 310px;
  top: 4%;
  left: -8%;
  background: radial-gradient(ellipse, rgba(91,184,245,0.22), transparent 70%);
  animation: ambDrift1 22s ease-in-out infinite;
}

.sky-ambient.a2 {
  width: 460px;
  height: 290px;
  top: 2%;
  right: -6%;
  background: radial-gradient(ellipse, rgba(196,163,240,0.16), transparent 70%);
  animation: ambDrift2 28s ease-in-out infinite;
}

@keyframes ambDrift1 {
  0%, 100% { transform: translate(0, 0)    scale(1); }
  50%       { transform: translate(65px, 28px) scale(1.1); }
}

@keyframes ambDrift2 {
  0%, 100% { transform: translate(0, 0)     scale(1); }
  50%       { transform: translate(-52px, 38px) scale(1.08); }
}

/* Sky sparkle field — individual positions & timing via classes */
.sky-sparkle-field {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.sk {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 0 6px rgba(255,255,255,0.8), 0 0 12px rgba(245,197,24,0.28);
  animation: skTwinkle 4s ease-in-out infinite;
}

@keyframes skTwinkle {
  0%, 100% { opacity: 0;   transform: scale(0.2); }
  45%, 55% { opacity: 1;   transform: scale(1.3); }
}

.sk-1  { top: 15%; left:  8%; animation-duration: 3.2s; animation-delay:  0.0s; }
.sk-2  { top: 22%; left: 35%; animation-duration: 4.1s; animation-delay:  0.8s; }
.sk-3  { top:  8%; left: 62%; animation-duration: 2.8s; animation-delay:  1.4s; }
.sk-4  { top: 18%; left: 78%; animation-duration: 5.0s; animation-delay:  0.3s; }
.sk-5  { top: 30%; left: 90%; animation-duration: 3.7s; animation-delay:  2.1s; }
.sk-6  { top:  5%; left: 50%; animation-duration: 4.4s; animation-delay:  0.6s; }
.sk-7  { top: 28%; left: 22%; animation-duration: 2.5s; animation-delay:  1.9s; }
.sk-8  { top: 12%; left: 45%; animation-duration: 6.0s; animation-delay:  0.1s; }
.sk-9  { top: 35%; left: 70%; animation-duration: 3.3s; animation-delay:  2.8s; }
.sk-10 { top: 20%; left: 15%; animation-duration: 4.8s; animation-delay:  1.1s; }
.sk-11 { top: 25%; left: 55%; animation-duration: 3.0s; animation-delay:  3.2s; }
.sk-12 { top: 10%; left: 88%; animation-duration: 5.5s; animation-delay:  0.4s; }

/* ═══════════════════════════════════════════════════
   MODERN UI ENHANCEMENTS
═══════════════════════════════════════════════════ */

/* Spin button — tactile press */
.spin-btn:active:not(:disabled) {
  transform: scale(0.95);
}

/* Bet adj buttons — hover glow */
.bet-adj:hover {
  box-shadow: 0 0 14px rgba(245,197,24,0.4),
              inset 0 1px 0 rgba(255,255,255,0.2);
}

/* Control buttons — lift on hover */
.ctrl-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}

/* Collect button — attention pulse */
.collect-btn {
  animation: collectPulse 1.8s ease-in-out infinite;
}

@keyframes collectPulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(245,197,24,0.4); }
  50%       { box-shadow: 0 6px 40px rgba(245,197,24,0.75),
                          0 0 20px rgba(245,197,24,0.28); }
}

/* Jackpot ring-wrap hover scale */
.jp-ring-wrap {
  transition: transform 0.3s ease;
}

.jp-meter:hover .jp-ring-wrap {
  transform: scale(1.06);
}

/* Game container fade-in transition */
#game {
  transition: opacity 0.5s ease;
}

/* Value flash on balance update */
@keyframes valueFlash {
  0%   { color: #ffffff;
         text-shadow: 0 0 20px #ffffff, 0 0 40px rgba(245,197,24,0.8); }
  100% { }
}

.value-flash {
  animation: valueFlash 0.55s ease-out forwards;
}

/* Background balloon depth layers (applied by JS) */
.bg-balloon.depth-far  { opacity: 0.55; filter: blur(0.5px) brightness(0.90) saturate(1.1); }
.bg-balloon.depth-mid  { opacity: 0.75; filter: blur(0px)   brightness(0.95) saturate(1.2); }
.bg-balloon.depth-near { opacity: 0.90; filter: blur(0px)   brightness(1.00) saturate(1.35); }


/* ═══════════════════════════════════════════════════════════════
   PREMIUM LIQUID GLASS + 3D GOLD UPGRADE  —  v2.0
   Apple visionOS-inspired frosted glass aesthetics
   Multi-ring 3D gold trim, depth lighting, surface reflections
   NC-Developer LLC · 2026
═══════════════════════════════════════════════════════════════ */

/* ── 3D Scene Depth ──────────────────────────────────────────── */
.machine-wrap {
  perspective: 1100px;
  perspective-origin: 50% -5%;
}

/* ── Machine Cabinet — Royal Gradient Gold Frame ─────────────── */
.machine-cabinet {
  /* Gradient border: transparent border + background-clip trick */
  border: 7px solid transparent;
  border-radius: 28px;
  background:
    /* glass sheen — padding-box only */
    linear-gradient(155deg, rgba(255,255,255,0.075) 0%, transparent 42%) padding-box,
    /* cabinet fill — padding-box only */
    linear-gradient(180deg, #162658 0%, #0C1B34 55%, #070F1C 100%) padding-box,
    /* swept 3-tone gold border — border-box */
    linear-gradient(160deg,
      #FFE566 0%,
      #D4A020 18%,
      #8B5E08 38%,
      #C8960C 52%,
      #8B5E08 66%,
      #D4A020 82%,
      #FFE566 100%
    ) border-box;
  box-shadow:
    /* outer bright rim */
    0 0 0 1px rgba(255,235,100,0.55),
    /* dark band just outside */
    0 0 0 3px rgba(120,76,8,0.40),
    /* depth shadows */
    0 36px 90px rgba(0,0,0,0.90),
    0 20px 50px rgba(0,0,0,0.70),
    /* gold outer glow */
    0 0 35px rgba(245,197,24,0.45),
    0 0 80px rgba(245,197,24,0.20),
    0 0 160px rgba(245,197,24,0.08),
    /* inner bevel */
    inset 0  3px 0 rgba(255,248,160,0.45),
    inset 0 -3px 0 rgba(70,38,0,0.55),
    inset  3px 0 0 rgba(255,248,160,0.22),
    inset -3px 0 0 rgba(70,38,0,0.28),
    inset 0 0 40px rgba(0,0,20,0.28);
  transform-style: preserve-3d;
  animation: cabinetGlow3d 5s ease-in-out infinite;
  position: relative;
}

@keyframes cabinetGlow3d {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(255,235,100,0.50),
      0 0 0 3px rgba(120,76,8,0.36),
      0 36px 90px rgba(0,0,0,0.90),
      0 20px 50px rgba(0,0,0,0.70),
      0 0 28px rgba(245,197,24,0.38),
      0 0 65px rgba(245,197,24,0.16),
      0 0 130px rgba(245,197,24,0.06),
      inset 0  3px 0 rgba(255,248,160,0.40),
      inset 0 -3px 0 rgba(70,38,0,0.50),
      inset  3px 0 0 rgba(255,248,160,0.18),
      inset -3px 0 0 rgba(70,38,0,0.24),
      inset 0 0 40px rgba(0,0,20,0.26);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(255,245,130,0.75),
      0 0 0 3px rgba(140,90,10,0.50),
      0 36px 90px rgba(0,0,0,0.90),
      0 20px 50px rgba(0,0,0,0.70),
      0 0 50px rgba(245,197,24,0.65),
      0 0 110px rgba(245,197,24,0.32),
      0 0 220px rgba(245,197,24,0.12),
      inset 0  3px 0 rgba(255,252,180,0.60),
      inset 0 -3px 0 rgba(70,38,0,0.65),
      inset  3px 0 0 rgba(255,252,180,0.32),
      inset -3px 0 0 rgba(70,38,0,0.38),
      inset 0 0 40px rgba(0,0,20,0.22);
  }
}

/* Top glass highlight shimmer line */
.machine-cabinet::before {
  content: '';
  position: absolute;
  top: 0; left: 7%; right: 7%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    rgba(245,197,24,0.55) 18%,
    rgba(255,255,255,0.95) 50%,
    rgba(245,197,24,0.55) 82%,
    transparent
  );
  border-radius: 0 0 50% 50%;
  z-index: 20;
  pointer-events: none;
  animation: topGlassShimmer 4.5s ease-in-out infinite;
}

@keyframes topGlassShimmer {
  0%, 100% { opacity: 0.60; transform: scaleX(0.82) scaleY(1.0); }
  50%       { opacity: 1.00; transform: scaleX(1.05) scaleY(1.8); }
}

/* Inner gold inset frame */
.machine-cabinet::after {
  content: '';
  position: absolute;
  inset: 7px;
  border-radius: 22px;
  border: 1px solid rgba(245,197,24,0.11);
  background:
    radial-gradient(ellipse 80% 45% at 50% 0%,  rgba(245,197,24,0.07) 0%, transparent 100%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(245,197,24,0.04) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* ── Cabinet Corner Bracket Decorations ─────────────────────── */
.cabinet-corner {
  position: absolute;
  width: 44px;
  height: 44px;
  z-index: 15;
  pointer-events: none;
  animation: cornerGlow 3s ease-in-out infinite;
}

/* L-bracket arms */
.cabinet-corner.tl { top: 6px;    left: 6px;    border-top: 4px solid #E8C040; border-left: 4px solid #E8C040;   border-radius: 6px 0 0 0; }
.cabinet-corner.tr { top: 6px;    right: 6px;   border-top: 4px solid #E8C040; border-right: 4px solid #E8C040;  border-radius: 0 6px 0 0; }
.cabinet-corner.bl { bottom: 6px; left: 6px;    border-bottom: 4px solid #E8C040; border-left: 4px solid #E8C040;  border-radius: 0 0 0 6px; }
.cabinet-corner.br { bottom: 6px; right: 6px;   border-bottom: 4px solid #E8C040; border-right: 4px solid #E8C040; border-radius: 0 0 6px 0; }

/* Diamond dot at each corner tip */
.cabinet-corner::before {
  content: '';
  position: absolute;
  width: 9px;
  height: 9px;
  background: radial-gradient(circle at 40% 35%, #FFF5A0, #E8C040, #A06C00);
  box-shadow: 0 0 8px rgba(245,197,24,0.9), 0 0 18px rgba(245,197,24,0.5);
  border-radius: 2px;
  transform: rotate(45deg);
}
.cabinet-corner.tl::before { top: -2px;  left: -2px;  }
.cabinet-corner.tr::before { top: -2px;  right: -2px; }
.cabinet-corner.bl::before { bottom: -2px; left: -2px; }
.cabinet-corner.br::before { bottom: -2px; right: -2px; }

/* Inner secondary bracket line */
.cabinet-corner::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  opacity: 0.45;
}
.cabinet-corner.tl::after { top: 7px;    left: 7px;    border-top: 1px solid #FFE566; border-left: 1px solid #FFE566;   border-radius: 3px 0 0 0; }
.cabinet-corner.tr::after { top: 7px;    right: 7px;   border-top: 1px solid #FFE566; border-right: 1px solid #FFE566;  border-radius: 0 3px 0 0; }
.cabinet-corner.bl::after { bottom: 7px; left: 7px;    border-bottom: 1px solid #FFE566; border-left: 1px solid #FFE566;  border-radius: 0 0 0 3px; }
.cabinet-corner.br::after { bottom: 7px; right: 7px;   border-bottom: 1px solid #FFE566; border-right: 1px solid #FFE566; border-radius: 0 0 3px 0; }

@keyframes cornerGlow {
  0%, 100% { opacity: 0.75; filter: none; }
  50%       { opacity: 1.00; filter: drop-shadow(0 0 6px rgba(245,197,24,0.95)); }
}

/* ── Machine Lights — 3D Gold Separator ─────────────────────── */
.machine-lights {
  background:
    linear-gradient(160deg, rgba(255,255,255,0.09) 0%, rgba(255,255,255,0.01) 50%, transparent 100%),
    linear-gradient(180deg, #0D1F42 0%, #152450 100%);
  border-bottom: none;
  position: relative;
  z-index: 2;
}

.machine-lights::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(245,197,24,0.18) 5%,
    rgba(245,197,24,0.88) 28%,
    rgba(255,252,170,1.00) 50%,
    rgba(245,197,24,0.88) 72%,
    rgba(245,197,24,0.18) 95%,
    transparent 100%
  );
  animation: goldLineScan 3.5s ease-in-out infinite;
}

@keyframes goldLineScan {
  0%, 100% { opacity: 0.70; }
  50%       { opacity: 1.00; filter: drop-shadow(0 0 5px rgba(245,197,24,0.85)); }
}

/* 3D sphere light bulbs */
.ml {
  width: 18px;
  height: 18px;
  background: radial-gradient(circle at 28% 22%, #FFFA90, #FFD700 42%, #C08800 75%, #7A5000 100%);
  border-radius: 50%;
  box-shadow:
    0 0 10px #FFD700,
    0 0 24px rgba(245,197,24,0.72),
    0 0 45px rgba(245,197,24,0.38),
    0 4px 10px rgba(0,0,0,0.60),
    inset 0 -3px 5px rgba(0,0,0,0.40),
    inset 0 2px 5px rgba(255,255,255,0.70);
}

/* ── Jackpot Meters Bar — Liquid Glass ───────────────────────── */
.jp-meters-bar {
  -webkit-backdrop-filter: blur(20px) saturate(175%);
  backdrop-filter: blur(20px) saturate(175%);
  background:
    linear-gradient(158deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.01) 58%, transparent 100%),
    rgba(7, 14, 40, 0.35);
  border-bottom: none;
  position: relative;
}

.jp-meters-bar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(245,197,24,0.22) 8%,
    rgba(245,197,24,0.88) 30%,
    rgba(255,252,170,0.96) 50%,
    rgba(245,197,24,0.88) 70%,
    rgba(245,197,24,0.22) 92%,
    transparent 100%
  );
  animation: goldLineScan 4.5s ease-in-out infinite 0.8s;
}

/* JP divider — enhanced gold */
.jp-divider {
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(245,197,24,0.35) 25%,
    rgba(245,197,24,0.55) 50%,
    rgba(245,197,24,0.35) 75%,
    transparent 100%
  );
  box-shadow: 0 0 6px rgba(245,197,24,0.20);
}

/* JP ring: frosted glass sphere */
.jp-ring-wrap {
  background: radial-gradient(circle at 35% 25%, rgba(255,255,255,0.18), rgba(255,255,255,0.02) 68%);
  border-radius: 50%;
  box-shadow:
    0 4px 22px rgba(0,0,0,0.55),
    0 1px 0 rgba(255,255,255,0.12),
    inset 0 1px 4px rgba(255,255,255,0.14);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* JP meter 3D hover tilt */
.jp-meter {
  transform-style: preserve-3d;
  transition: transform 0.40s cubic-bezier(0.34,1.56,0.64,1), filter 0.30s ease;
}

.jp-meter:hover {
  transform: translateY(-5px) rotateX(8deg) scale(1.05);
  filter: brightness(1.12);
}

.jp-meter:hover .jp-ring-wrap {
  transform: scale(1.0);
  box-shadow:
    0 8px 30px rgba(0,0,0,0.65),
    0 2px 0 rgba(255,255,255,0.18),
    inset 0 1px 5px rgba(255,255,255,0.20);
}

/* JP val: brighter gold glow */
.jp-val {
  font-size: .68rem;
  color: var(--gold);
  text-shadow: 0 0 8px var(--gold-glow), 0 0 16px rgba(245,197,24,0.40);
  letter-spacing: .02em;
}
.jp-meter.center .jp-val { font-size: .82rem; }

/* Tier badges — colored liquid glass */
.jp-label-badge {
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  backdrop-filter: blur(10px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16);
}
.minor-badge {
  background: linear-gradient(135deg, rgba(58,127,213,0.28), rgba(58,127,213,0.08));
  border-color: rgba(100,170,255,0.60) !important;
  box-shadow: 0 0 16px rgba(58,127,213,0.35), inset 0 1px 0 rgba(255,255,255,0.18);
  text-shadow: 0 0 8px rgba(91,164,245,0.60);
}
.mega-badge {
  background: linear-gradient(135deg, rgba(77,184,72,0.28), rgba(77,184,72,0.08));
  border-color: rgba(100,225,100,0.60) !important;
  box-shadow: 0 0 16px rgba(77,184,72,0.38), inset 0 1px 0 rgba(255,255,255,0.18);
  text-shadow: 0 0 8px rgba(111,214,105,0.60);
}
.major-badge {
  background: linear-gradient(135deg, rgba(123,82,171,0.28), rgba(123,82,171,0.08));
  border-color: rgba(180,130,230,0.60) !important;
  box-shadow: 0 0 16px rgba(123,82,171,0.38), inset 0 1px 0 rgba(255,255,255,0.18);
  text-shadow: 0 0 8px rgba(180,136,245,0.60);
}

/* ── Reels Viewport — Matching Royal Gradient Gold Frame ─────── */
.reels-viewport {
  -webkit-backdrop-filter: blur(3px) brightness(1.06) saturate(120%);
  backdrop-filter: blur(3px) brightness(1.06) saturate(120%);
  border: 6px solid transparent;
  border-radius: 18px;
  background:
    linear-gradient(148deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.01) 35%, transparent 58%) padding-box,
    linear-gradient(180deg, rgba(13,26,58,0.90) 0%, rgba(7,14,38,0.97) 100%) padding-box,
    linear-gradient(160deg,
      #FFE566 0%,
      #D4A020 18%,
      #8B5E08 38%,
      #C8960C 52%,
      #8B5E08 66%,
      #D4A020 82%,
      #FFE566 100%
    ) border-box;
  animation: reelFrameGlow 3s ease-in-out infinite;
  box-shadow:
    0 0 0 1px rgba(255,235,100,0.45),
    0 0 0 3px rgba(100,62,6,0.35),
    0 10px 50px rgba(0,0,0,0.78),
    0 0 30px rgba(245,197,24,0.35),
    0 0 70px rgba(245,197,24,0.15),
    inset 0  2px 0 rgba(255,248,160,0.40),
    inset 0 -2px 0 rgba(70,38,0,0.50),
    inset 0 0 50px rgba(0,0,20,0.32);
  position: relative;
  transform: perspective(900px) rotateX(1.5deg);
  transform-origin: 50% 100%;
}

@keyframes reelFrameGlow {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(255,235,100,0.40),
      0 0 0 3px rgba(100,62,6,0.30),
      0 10px 50px rgba(0,0,0,0.78),
      0 0 22px rgba(245,197,24,0.28),
      0 0 55px rgba(245,197,24,0.11),
      inset 0  2px 0 rgba(255,248,160,0.35),
      inset 0 -2px 0 rgba(70,38,0,0.45),
      inset 0 0 50px rgba(0,0,20,0.30);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(255,245,130,0.65),
      0 0 0 3px rgba(130,82,8,0.48),
      0 10px 50px rgba(0,0,0,0.78),
      0 0 40px rgba(245,197,24,0.52),
      0 0 90px rgba(245,197,24,0.22),
      inset 0  2px 0 rgba(255,252,180,0.55),
      inset 0 -2px 0 rgba(70,38,0,0.60),
      inset 0 0 50px rgba(0,0,20,0.28);
  }
}

/* Top glass reflection overlay */
.reels-viewport::before {
  content: '';
  position: absolute;
  top: 0; left: 5px; right: 5px;
  height: 38%;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.065) 0%,
    rgba(255,255,255,0.022) 55%,
    transparent 100%
  );
  border-radius: 13px 13px 0 0;
  pointer-events: none;
  z-index: 6;
}


/* Reel column separators — thin gold gradient */
.reel + .reel::before {
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(245,197,24,0.18) 22%,
    rgba(245,197,24,0.32) 50%,
    rgba(245,197,24,0.18) 78%,
    transparent 100%
  );
  width: 1px;
}

/* Stronger top/bottom fade masks */
.reel-mask.top {
  height: 82px;
  background: linear-gradient(180deg,
    rgba(7,14,38,0.96) 0%,
    rgba(7,14,38,0.55) 60%,
    transparent 100%
  );
}
.reel-mask.bottom {
  height: 82px;
  background: linear-gradient(0deg,
    rgba(7,14,38,0.96) 0%,
    rgba(7,14,38,0.55) 60%,
    transparent 100%
  );
}

/* ── Reel Holographic Scan Line ──────────────────────────────── */
.reel-scanline {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    transparent,
    rgba(245,197,24,0.08) 20%,
    rgba(255,255,255,0.20) 50%,
    rgba(245,197,24,0.08) 80%,
    transparent
  );
  z-index: 7;
  pointer-events: none;
  animation: reelScanLine 4s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(245,197,24,0.15);
}

@keyframes reelScanLine {
  0%   { top: 0%;   opacity: 0;   }
  6%   { opacity: 1; }
  90%  { opacity: 0.5; }
  100% { top: 100%; opacity: 0; }
}

/* ── Center Payline — Animated Gold ─────────────────────────── */
.center-payline {
  border-top: 2px solid rgba(245,197,24,0.72);
  border-bottom: 2px solid rgba(245,197,24,0.72);
  background: linear-gradient(180deg,
    rgba(245,197,24,0.06) 0%,
    rgba(245,197,24,0.02) 50%,
    rgba(245,197,24,0.06) 100%
  );
  animation: paylineGoldPulse 2.8s ease-in-out infinite;
}

@keyframes paylineGoldPulse {
  0%, 100% {
    border-color: rgba(245,197,24,0.52);
    box-shadow: none;
  }
  50% {
    border-color: rgba(245,197,24,1.00);
    box-shadow:
      0 -1px 0 rgba(255,255,255,0.18),
      0  1px 0 rgba(255,255,255,0.18),
      inset 0 0 30px rgba(245,197,24,0.07),
      0 0 14px rgba(245,197,24,0.22);
  }
}

/* Winning cell — enhanced 3D gold pop */
.reel-cell.winner {
  background: radial-gradient(circle,
    rgba(245,197,24,0.40) 0%,
    rgba(245,197,24,0.14) 45%,
    transparent 72%
  );
  box-shadow: inset 0 0 20px rgba(245,197,24,0.12);
}
.reel-cell.winner img {
  filter:
    drop-shadow(0 0 8px var(--gold))
    drop-shadow(0 0 18px rgba(245,197,24,0.65))
    drop-shadow(0 0 30px rgba(245,197,24,0.40));
}

/* ── Machine Message — Liquid Glass ─────────────────────────── */
.machine-message {
  -webkit-backdrop-filter: blur(18px) saturate(155%);
  backdrop-filter: blur(18px) saturate(155%);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.065) 0%, rgba(255,255,255,0.01) 100%),
    rgba(0, 0, 0, 0.28);
  border-top: 1px solid rgba(245,197,24,0.20);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

/* ── Machine Footer — Liquid Glass + Gold Line ───────────────── */
.machine-footer-bar {
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.04) 0%, transparent 50%),
    linear-gradient(180deg, #070E1C 0%, #0A1628 100%);
  border-top: none;
  position: relative;
}
.machine-footer-bar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(245,197,24,0.28) 10%,
    rgba(245,197,24,0.80) 30%,
    rgba(255,252,160,0.92) 50%,
    rgba(245,197,24,0.80) 70%,
    rgba(245,197,24,0.28) 90%,
    transparent 100%
  );
  animation: goldLineScan 5s ease-in-out infinite 1.2s;
}

.paylines-badge {
  color: var(--gold);
  opacity: 0.88;
  text-shadow: 0 0 10px rgba(245,197,24,0.45);
  letter-spacing: .20em;
  animation: badgeBreath 3s ease-in-out infinite;
}
@keyframes badgeBreath {
  0%, 100% { opacity: 0.78; text-shadow: 0 0 8px rgba(245,197,24,0.35); }
  50%       { opacity: 1.00; text-shadow: 0 0 18px rgba(245,197,24,0.78); }
}

/* ── Stat Blocks — Liquid Glass Cards ───────────────────────── */
.stat-block {
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.11) 0%, rgba(255,255,255,0.02) 100%),
    rgba(0, 0, 0, 0.40);
  border: 1px solid rgba(245,197,24,0.30);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.14),
    0 4px 18px rgba(0,0,0,0.38),
    0 0 22px rgba(245,197,24,0.05);
  transition: border-color 0.30s, box-shadow 0.30s, transform 0.20s;
}
.stat-block:hover {
  border-color: rgba(245,197,24,0.55);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    0 6px 22px rgba(0,0,0,0.40),
    0 0 30px rgba(245,197,24,0.12);
}

/* ── Controls Bar — Liquid Glass Panel ──────────────────────── */
.controls-bar {
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  backdrop-filter: blur(24px) saturate(170%);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.085) 0%, rgba(255,255,255,0.01) 60%, transparent 100%),
    rgba(7, 14, 36, 0.74);
  border-radius: 22px;
  border: 1px solid rgba(245,197,24,0.20);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.11),
    inset 0 -1px 0 rgba(0,0,0,0.22),
    0 8px 36px rgba(0,0,0,0.48),
    0 0 65px rgba(245,197,24,0.07);
}

/* ── Bonus Bar Pills — Liquid Glass ─────────────────────────── */
.bp {
  -webkit-backdrop-filter: blur(16px) saturate(145%);
  backdrop-filter: blur(16px) saturate(145%);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.075) 0%, rgba(255,255,255,0.01) 100%),
    rgba(0, 0, 0, 0.44);
  border: 1px solid rgba(255,255,255,0.13);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    0 2px 10px rgba(0,0,0,0.32);
}
.bp.active {
  background:
    linear-gradient(135deg, rgba(245,197,24,0.14) 0%, rgba(245,197,24,0.03) 100%),
    rgba(0, 0, 0, 0.44);
  border-color: rgba(245,197,24,0.58);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 0 22px rgba(245,197,24,0.22),
    0 2px 10px rgba(0,0,0,0.32);
}

/* ── Ctrl Buttons — Liquid Glass ────────────────────────────── */
.ctrl-btn {
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.09) 0%, rgba(255,255,255,0.01) 100%),
    rgba(0, 0, 0, 0.50);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.11),
    0 2px 10px rgba(0,0,0,0.32);
}
.ctrl-btn:hover {
  background:
    linear-gradient(135deg, rgba(245,197,24,0.20) 0%, rgba(245,197,24,0.04) 100%),
    rgba(0, 0, 0, 0.50);
  border-color: rgba(245,197,24,0.58);
  color: var(--gold);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.15),
    0 0 22px rgba(245,197,24,0.20),
    0 4px 14px rgba(0,0,0,0.38);
}

/* ── Bet Box — Liquid Glass ──────────────────────────────────── */
.bet-box {
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.09) 0%, rgba(255,255,255,0.01) 100%),
    rgba(0,0,0,0.52);
  border: 1px solid rgba(245,197,24,0.28);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 3px 14px rgba(0,0,0,0.38);
}

/* ── Bet Adjust Buttons — Liquid Glass ───────────────────────── */
.bet-adj {
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.09) 0%, rgba(255,255,255,0.01) 100%),
    rgba(0,0,0,0.46);
  border: 1px solid rgba(245,197,24,0.32);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 2px 10px rgba(0,0,0,0.34);
}
.bet-adj:hover {
  background:
    linear-gradient(135deg, rgba(245,197,24,0.22) 0%, rgba(245,197,24,0.05) 100%),
    rgba(0,0,0,0.46);
  border-color: var(--gold);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    0 0 18px rgba(245,197,24,0.22),
    0 2px 10px rgba(0,0,0,0.34);
}

/* ── Spin Button — Premium 3D ────────────────────────────────── */
.spin-btn {
  background: radial-gradient(circle at 32% 28%, #FF7070 0%, #D81010 55%, #880000 100%);
  box-shadow:
    0 0 0 3px rgba(255,80,80,0.22),
    0 0 0 6px rgba(255,80,80,0.08),
    0 10px 36px rgba(180,10,10,0.65),
    0 20px 55px rgba(100,0,0,0.45),
    inset 0 3px 0 rgba(255,255,255,0.28),
    inset 0 -5px 0 rgba(0,0,0,0.38),
    0 0 55px rgba(220,20,20,0.35);
}
.spin-btn:hover {
  transform: scale(1.07) translateY(-2px);
  box-shadow:
    0 0 0 3px rgba(255,80,80,0.30),
    0 0 0 7px rgba(255,80,80,0.12),
    0 14px 48px rgba(200,15,15,0.75),
    0 25px 65px rgba(120,0,0,0.55),
    inset 0 3px 0 rgba(255,255,255,0.30),
    inset 0 -5px 0 rgba(0,0,0,0.40),
    0 0 80px rgba(220,20,20,0.52);
}
.spin-btn:active {
  transform: scale(0.93) translateY(2px);
  box-shadow:
    0 0 0 2px rgba(255,80,80,0.15),
    0 4px 16px rgba(160,10,10,0.55),
    inset 0 2px 0 rgba(255,255,255,0.15),
    inset 0 -2px 0 rgba(0,0,0,0.50),
    inset 0 3px 8px rgba(0,0,0,0.30);
}

/* ── Max Bet — Liquid Glass Gold ─────────────────────────────── */
.max-btn {
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  background:
    linear-gradient(135deg, rgba(245,197,24,0.18) 0%, rgba(212,160,23,0.06) 100%),
    rgba(0,0,0,0.40);
  border: 1px solid rgba(245,197,24,0.40);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.14),
    0 3px 14px rgba(0,0,0,0.38),
    0 0 18px rgba(245,197,24,0.08);
}
.max-btn:hover {
  background:
    linear-gradient(135deg, rgba(245,197,24,0.32) 0%, rgba(212,160,23,0.12) 100%),
    rgba(0,0,0,0.40);
  border-color: var(--gold);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.20),
    0 5px 20px rgba(0,0,0,0.44),
    0 0 30px rgba(245,197,24,0.20);
}

/* ── Icon Buttons — Liquid Glass ─────────────────────────────── */
.icon-btn {
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.09) 0%, rgba(255,255,255,0.01) 100%),
    rgba(0,0,0,0.42);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 2px 8px rgba(0,0,0,0.30);
}
.icon-btn:hover {
  background:
    linear-gradient(135deg, rgba(245,197,24,0.20) 0%, rgba(245,197,24,0.04) 100%),
    rgba(0,0,0,0.42);
  border-color: var(--gold);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    0 0 16px rgba(245,197,24,0.22),
    0 2px 8px rgba(0,0,0,0.30);
}

/* ── Win Overlay Box — Liquid Glass ──────────────────────────── */
.win-box {
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  backdrop-filter: blur(30px) saturate(200%);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.01) 50%, transparent 100%),
    rgba(5, 10, 28, 0.80);
  border: 2px solid rgba(245,197,24,0.55);
  border-radius: 28px;
  padding: 44px 64px;
  box-shadow:
    0 0 0 1px rgba(245,197,24,0.10),
    0 0 0 5px rgba(245,197,24,0.05),
    0 30px 80px rgba(0,0,0,0.85),
    inset 0 1px 0 rgba(255,255,255,0.18),
    0 0 120px rgba(245,197,24,0.18);
}

/* ── Modal Box — Liquid Glass ────────────────────────────────── */
.modal-box {
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  background:
    linear-gradient(155deg, rgba(255,255,255,0.09) 0%, rgba(255,255,255,0.01) 50%, transparent 100%),
    rgba(10, 20, 50, 0.82);
  border: 2px solid rgba(245,197,24,0.50);
  border-radius: 28px;
  box-shadow:
    0 0 0 1px rgba(245,197,24,0.10),
    0 0 0 5px rgba(245,197,24,0.05),
    0 28px 75px rgba(0,0,0,0.88),
    inset 0 1px 0 rgba(255,255,255,0.18),
    0 0 100px rgba(245,197,24,0.15);
}

/* ── Payline Arrows — Animated Gold Pulse ────────────────────── */
.payline-arrow {
  opacity: 0.70;
  font-size: 1.35rem;
  animation: arrowGoldPulse 2s ease-in-out infinite;
}
@keyframes arrowGoldPulse {
  0%, 100% { opacity: 0.55; filter: drop-shadow(0 0 3px rgba(245,197,24,0.30)); }
  50%       { opacity: 0.88; filter: drop-shadow(0 0 9px rgba(245,197,24,0.75)); }
}

/* ── Silver Spike Crown — Over jp-meters-bar ── */
.reel-spikes {
  display: flex;
  gap: 5px;
  padding: 0 10px;
  z-index: 15;
  pointer-events: none;
  justify-content: center;
  position: absolute;
  top: -48px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
}

.spike {
  width: 68px;
  height: 80px;
  position: relative;
  flex-shrink: 0;
  pointer-events: auto;
  cursor: default;
  clip-path: polygon(50% 100%, 0% 0%, 100% 0%);
  background: linear-gradient(168deg,
    #F0F0F0 0%,
    #D4D4D4 10%,
    #B8B8B8 22%,
    #E8E8E8 35%,
    #FAFAFA 45%,
    #C0C0C0 55%,
    #A0A0A0 68%,
    #BEBEBE 80%,
    #D0D0D0 92%,
    #A8A8A8 100%
  );
  box-shadow:
    inset 0 -1px 0 rgba(255,255,255,0.4),
    inset 0 1px 0 rgba(255,255,255,0.6),
    0 3px 8px rgba(0,0,0,0.45);
}

/* Left-side bright highlight */
.spike::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 28%;
  height: 100%;
  background: linear-gradient(100deg,
    rgba(255,255,255,0.50) 0%,
    rgba(255,255,255,0.20) 30%,
    rgba(255,255,255,0.04) 70%,
    transparent 100%
  );
  clip-path: polygon(50% 100%, 0% 0%, 100% 0%);
  pointer-events: none;
}

/* Right-side dark shadow edge for 3D bevel */
.spike::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 15%;
  height: 100%;
  background: linear-gradient(270deg,
    rgba(0,0,0,0.18) 0%,
    rgba(0,0,0,0.06) 50%,
    transparent 100%
  );
  clip-path: polygon(50% 100%, 0% 0%, 100% 0%);
  pointer-events: none;
}

/* Secondary highlight — thin bright stripe down center-left */
.spike-glint {
  display: block;
  position: absolute;
  top: 0;
  left: 38%;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.50) 20%,
    rgba(255,255,255,0.70) 40%,
    rgba(255,255,255,0.30) 60%,
    rgba(255,255,255,0) 100%
  );
  clip-path: polygon(50% 100%, 0% 0%, 100% 0%);
  pointer-events: none;
}

/* Tiny rivet near the spike tip */
.rivet {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: radial-gradient(circle at 35% 30%, #F5F5F5, #AAAAAA 50%, #666 100%);
  border-radius: 50%;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.5),
    inset 0 1px 3px rgba(0,0,0,0.35);
  pointer-events: none;
}

/* Alternate slightly different shades for visual variety */
.spike:nth-child(1) .rivet { background: radial-gradient(circle at 35% 30%, #F5F5F5, #B0B0B0 50%, #707070 100%); }
.spike:nth-child(2) { background: linear-gradient(168deg, #E8E8E8 0%, #CCCCCC 10%, #B0B0B0 22%, #E0E0E0 35%, #F0F0F0 45%, #B8B8B8 55%, #989898 68%, #B6B6B6 80%, #C8C8C8 92%, #A0A0A0 100%); }
.spike:nth-child(2) .rivet { background: radial-gradient(circle at 35% 30%, #EDEDED, #A8A8A8 50%, #686868 100%); }
.spike:nth-child(3) { background: linear-gradient(168deg, #F8F8F8 0%, #DCDCDC 10%, #C0C0C0 22%, #F0F0F0 35%, #FFFFFF 45%, #C8C8C8 55%, #A8A8A8 68%, #C6C6C6 80%, #D8D8D8 92%, #B0B0B0 100%); }
.spike:nth-child(3) .rivet { background: radial-gradient(circle at 35% 30%, #FFFFFF, #B8B8B8 50%, #787878 100%); }
.spike:nth-child(4) { background: linear-gradient(168deg, #E0E0E0 0%, #C4C4C4 10%, #A8A8A8 22%, #D8D8D8 35%, #EAEAEA 45%, #B0B0B0 55%, #909090 68%, #AEAEAE 80%, #C0C0C0 92%, #989898 100%); }
.spike:nth-child(4) .rivet { background: radial-gradient(circle at 35% 30%, #E5E5E5, #A0A0A0 50%, #606060 100%); }
.spike:nth-child(5) { background: linear-gradient(168deg, #F0F0F0 0%, #D4D4D4 10%, #B8B8B8 22%, #E8E8E8 35%, #FAFAFA 45%, #C0C0C0 55%, #A0A0A0 68%, #BEBEBE 80%, #D0D0D0 92%, #A8A8A8 100%); }
.spike:nth-child(5) .rivet { background: radial-gradient(circle at 35% 30%, #F5F5F5, #B0B0B0 50%, #707070 100%); }
.spike:nth-child(6) { background: linear-gradient(168deg, #DCDCDC 0%, #C0C0C0 10%, #A4A4A4 22%, #D4D4D4 35%, #E8E8E8 45%, #ACACAC 55%, #8C8C8C 68%, #AAAAAA 80%, #BCBCBC 92%, #949494 100%); }
.spike:nth-child(6) .rivet { background: radial-gradient(circle at 35% 30%, #E0E0E0, #989898 50%, #585858 100%); }
.spike:nth-child(7) { background: linear-gradient(168deg, #F4F4F4 0%, #D8D8D8 10%, #BCBCBC 22%, #ECECEC 35%, #FEFEFE 45%, #C4C4C4 55%, #A4A4A4 68%, #C2C2C2 80%, #D4D4D4 92%, #ACACAC 100%); }
.spike:nth-child(7) .rivet { background: radial-gradient(circle at 35% 30%, #FAFAFA, #B4B4B4 50%, #747474 100%); }
.spike:nth-child(8) { background: linear-gradient(168deg, #E4E4E4 0%, #C8C8C8 10%, #ACACAC 22%, #DCDCDC 35%, #EEEEEE 45%, #B4B4B4 55%, #949494 68%, #B2B2B2 80%, #C4C4C4 92%, #9C9C9C 100%); }
.spike:nth-child(8) .rivet { background: radial-gradient(circle at 35% 30%, #E8E8E8, #A4A4A4 50%, #646464 100%); }
.spike:nth-child(9) { background: linear-gradient(168deg, #ECECEC 0%, #D0D0D0 10%, #B4B4B4 22%, #E4E4E4 35%, #F6F6F6 45%, #BCBCBC 55%, #9C9C9C 68%, #BABABA 80%, #CCCCCC 92%, #A4A4A4 100%); }
.spike:nth-child(9) .rivet { background: radial-gradient(circle at 35% 30%, #F0F0F0, #ACACAC 50%, #6C6C6C 100%); }
.spike:nth-child(10) { background: linear-gradient(168deg, #D8D8D8 0%, #BCBCBC 10%, #A0A0A0 22%, #D0D0D0 35%, #E4E4E4 45%, #A8A8A8 55%, #888888 68%, #A6A6A6 80%, #B8B8B8 92%, #909090 100%); }
.spike:nth-child(10) .rivet { background: radial-gradient(circle at 35% 30%, #DCDCDC, #949494 50%, #545454 100%); }
.spike:nth-child(11) { background: linear-gradient(168deg, #F0F0F0 0%, #D4D4D4 10%, #B8B8B8 22%, #E8E8E8 35%, #FAFAFA 45%, #C0C0C0 55%, #A0A0A0 68%, #BEBEBE 80%, #D0D0D0 92%, #A8A8A8 100%); }
.spike:nth-child(11) .rivet { background: radial-gradient(circle at 35% 30%, #F5F5F5, #B0B0B0 50%, #707070 100%); }

/* Spike hunger animation — quiver during spin */
@keyframes spikeHunger {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  20% { transform: translateY(-2px) rotate(-0.5deg); }
  40% { transform: translateY(1px) rotate(0.3deg); }
  60% { transform: translateY(-1.5px) rotate(-0.3deg); }
  80% { transform: translateY(0.5px) rotate(0.4deg); }
}
.reel-spikes.hungry .spike {
  animation: spikeHunger 0.5s ease-in-out infinite;
}
.reel-spikes.hungry .spike:nth-child(2)  { animation-delay: 0.03s; }
.reel-spikes.hungry .spike:nth-child(3)  { animation-delay: 0.06s; }
.reel-spikes.hungry .spike:nth-child(4)  { animation-delay: 0.09s; }
.reel-spikes.hungry .spike:nth-child(5)  { animation-delay: 0.12s; }
.reel-spikes.hungry .spike:nth-child(6)  { animation-delay: 0.05s; }
.reel-spikes.hungry .spike:nth-child(7)  { animation-delay: 0.08s; }
.reel-spikes.hungry .spike:nth-child(8)  { animation-delay: 0.11s; }
.reel-spikes.hungry .spike:nth-child(9)  { animation-delay: 0.04s; }
.reel-spikes.hungry .spike:nth-child(10) { animation-delay: 0.07s; }
.reel-spikes.hungry .spike:nth-child(11) { animation-delay: 0.10s; }

/* ── Win Celebration Video ──────────────────────────── */
#win-video {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 55vw;
  height: auto;
  max-width: 720px;
  aspect-ratio: 16/9;
  object-fit: contain;
  z-index: 1998;
  pointer-events: none;
  display: none;
  border-radius: 16px;
  box-shadow: 0 0 60px rgba(245,197,24,0.5), 0 0 120px rgba(245,197,24,0.2);
}
#win-video.active {
  display: block;
}

/* ── Balloon Explosion Effect (win feature) ─────────── */
@keyframes explPiece {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 1; }
  100% { transform: translate(var(--ex), var(--ey)) rotate(var(--er)) scale(0.2); opacity: 0; }
}
.balloon-explosion {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1999;
}
.balloon-explosion .piece {
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 40% 60% 50% 50%;
  animation: explPiece 0.9s cubic-bezier(.25,.46,.45,.94) forwards;
  --ex: 0;
  --ey: 0;
  --er: 0deg;
}

/* ── Balloon Pop Animation ──────────────────────────── */
@keyframes balloonPopBurst {
  0% { transform: scale(0.6); opacity: 0; }
  15% { transform: scale(1.1); opacity: 1; }
  35% { transform: scale(1.5); opacity: 1; }
  50% { transform: scale(1.8); opacity: 0.8; }
  100% { transform: scale(0.2); opacity: 0; }
}

@keyframes popParticle {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--px), var(--py)) scale(0); opacity: 0; }
}

.balloon-pop-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2000;
  overflow: visible;
}

.balloon-pop-cell {
  position: absolute;
  width: var(--cell);
  height: var(--cell);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: balloonPopBurst 0.5s ease-out forwards;
}

.pop-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: popParticle 0.6s ease-out forwards;
  --px: 0;
  --py: 0;
  pointer-events: none;
  margin: -4px 0 0 -4px;
}

/* Pop reward toast */
.pop-reward-toast {
  position: fixed;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 20px rgba(255,200,50,0.9), 0 0 40px rgba(255,200,50,0.6), 0 4px 8px rgba(0,0,0,0.5);
  z-index: 100;
  pointer-events: none;
  white-space: nowrap;
  animation: popRewardPopIn 0.4s cubic-bezier(.2,1.6,.4,1) forwards;
}

@keyframes popRewardPopIn {
  0% { transform: translate(-50%, -50%) scale(0) rotate(-10deg); opacity: 0; }
  60% { transform: translate(-50%, -50%) scale(1.3) rotate(3deg); opacity: 1; }
  80% { transform: translate(-50%, -50%) scale(0.9) rotate(-1deg); }
  100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 1; }
}

@keyframes bigWinShake {
  0%,100% { transform: translateX(0) rotate(0deg); }
  8%  { transform: translateX(-8px) rotate(-1.2deg); }
  16% { transform: translateX(8px)  rotate(1.2deg); }
  24% { transform: translateX(-6px) rotate(-0.9deg); }
  32% { transform: translateX(6px)  rotate(0.9deg); }
  40% { transform: translateX(-4px) rotate(-0.6deg); }
  48% { transform: translateX(4px)  rotate(0.6deg); }
  56% { transform: translateX(-2px) rotate(-0.3deg); }
  64% { transform: translateX(2px)  rotate(0.3deg); }
  80% { transform: translateX(-1px) rotate(-0.1deg); }
}
.big-win-shake {
  animation: bigWinShake 0.9s cubic-bezier(.36,.07,.19,.97) both;
}

/* ── NEAR-MISS WOBBLE ─────────────────────────────────────────── */
@keyframes nearMissWobble {
  0%,100% { transform: translateX(0); }
  20%  { transform: translateX(-6px); }
  40%  { transform: translateX(6px); }
  60%  { transform: translateX(-4px); }
  80%  { transform: translateX(4px); }
}
.near-miss-wobble {
  animation: nearMissWobble 0.45s ease-in-out 2;
}

/* ── TURBO MODE ────────────────────────────────────────────────── */
.ctrl-btn.turbo-active {
  background: rgba(255,180,0,.18);
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 18px rgba(255,180,0,.35);
}
.ctrl-btn.turbo-active .auto-badge {
  color: var(--gold);
  background: rgba(255,180,0,.25);
}

/* ── WIN STREAK TOAST ─────────────────────────────────────────── */
#streak-toast {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: linear-gradient(135deg, #FF5500, #FF8800);
  color: #fff;
  font-family: 'Fredoka One', cursive;
  font-size: 1.35rem;
  letter-spacing: .05em;
  padding: 10px 32px;
  border-radius: 40px;
  box-shadow: 0 6px 24px rgba(255,80,0,.5), inset 0 1px 0 rgba(255,255,255,.2);
  opacity: 0;
  pointer-events: none;
  z-index: 500;
  transition: opacity .25s ease, transform .25s cubic-bezier(.2,1.4,.4,1);
  white-space: nowrap;
}
#streak-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── STOP BUTTON (shown during spin) ─────────────────────────── */
.spin-btn.stopping-mode {
  background: radial-gradient(circle at 35% 32%, #FFD700 0%, #FFA500 70%, #CC7700 100%);
  box-shadow: 0 8px 32px rgba(255,165,0,.6), 0 0 0 3px rgba(255,255,255,.1), inset 0 3px 0 rgba(255,255,255,.3);
}
.spin-btn.stopping-mode .spin-label::before {
  content: '⏹ ';
  font-size: 1rem;
}

/* ── COPYRIGHT FOOTER ────────────────────────────────────────── */
.copyright-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 7px 20px;
  background: rgba(0, 0, 0, 0.45);
  border-top: 1px solid rgba(245, 197, 24, 0.12);
  flex-shrink: 0;
  flex-wrap: wrap;
}

.copyright-text {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.copyright-link {
  color: rgba(245, 197, 24, 0.65);
  text-decoration: none;
  transition: color 0.2s;
}
.copyright-link:hover {
  color: var(--gold);
}

.copyright-policy-btn {
  background: none;
  border: 1px solid rgba(245, 197, 24, 0.25);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.4);
  font-family: 'Nunito', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 12px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  white-space: nowrap;
}
.copyright-policy-btn:hover {
  border-color: rgba(245, 197, 24, 0.6);
  color: var(--gold);
  background: rgba(245, 197, 24, 0.07);
}

/* ── COPYRIGHT POLICY MODAL ──────────────────────────────────── */
.copyright-box {
  max-width: 640px;
  max-height: 82vh;
  overflow-y: auto;
}
.copyright-box::-webkit-scrollbar { width: 5px; }
.copyright-box::-webkit-scrollbar-thumb {
  background: rgba(245,197,24,0.3);
  border-radius: 4px;
}

.copyright-policy-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 4px;
}

.cp-effective {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  font-style: italic;
}

.copyright-policy-body h3 {
  font-family: 'Fredoka One', cursive;
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 0.04em;
  margin-top: 6px;
  margin-bottom: -6px;
}

.copyright-policy-body p {
  font-size: 0.85rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
}

.copyright-policy-body a.copyright-link {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.copyright-policy-body a.copyright-link:hover {
  color: var(--gold-light);
}

/* ═══════════════════════════════════════════════════
   PICK BALLOON BONUS OVERLAY
═══════════════════════════════════════════════════ */

#pick-bonus-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pb-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, #0d2660 0%, #060e26 60%, #020610 100%);
  opacity: 0.97;
}

/* ── Panel ── */
.pb-panel {
  position: relative;
  z-index: 1;
  width: min(860px, 96vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 28px 24px 24px;
  background:
    linear-gradient(148deg, rgba(255,255,255,0.06) 0%, transparent 40%) padding-box,
    linear-gradient(180deg, rgba(13,26,58,0.92) 0%, rgba(6,12,30,0.98) 100%) padding-box,
    linear-gradient(160deg, #FFE566 0%, #D4A020 25%, #8B5E08 50%, #D4A020 75%, #FFE566 100%) border-box;
  border: 5px solid transparent;
  border-radius: 22px;
  box-shadow:
    0 0 0 2px rgba(255,235,100,0.4),
    0 24px 80px rgba(0,0,0,0.85),
    0 0 60px rgba(245,197,24,0.25);
  animation: pbPanelIn 0.55s cubic-bezier(0.18,1.4,0.4,1) both;
}

@keyframes pbPanelIn {
  from { opacity: 0; transform: scale(0.78) translateY(40px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── Header ── */
.pb-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.pb-title {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  color: var(--gold);
  text-shadow: 0 0 20px rgba(245,197,24,0.7), 0 2px 4px rgba(0,0,0,0.6);
  letter-spacing: 0.04em;
  display: block;
}

.pb-subtitle {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.06em;
  display: block;
  margin-top: 2px;
}

.pb-stats {
  display: flex;
  gap: 12px;
}

.pb-stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  min-width: 90px;
}

.pb-stat-box.accent {
  background: rgba(245,197,24,0.1);
  border-color: rgba(245,197,24,0.3);
}

.pb-stat-label {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
}

.pb-stat-val {
  font-family: 'Fredoka One', cursive;
  font-size: 1.55rem;
  color: #fff;
  line-height: 1.1;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.pb-stat-val.gold {
  color: var(--gold);
  text-shadow: 0 0 12px rgba(245,197,24,0.6);
}

/* ── Balloon Grid ── */
.pb-balloon-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  width: 100%;
  padding: 4px 0;
}

/* ── Individual Balloon ── */
.pb-balloon {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.2,1.5,0.4,1);
  -webkit-user-select: none;
  user-select: none;
  animation: pbBalloonFloat var(--float-dur, 3s) ease-in-out infinite;
  animation-delay: var(--float-delay, 0s);
}

.pb-balloon:hover:not(.popped) {
  transform: scale(1.12) translateY(-6px);
  filter: brightness(1.15);
}

.pb-balloon:active:not(.popped) {
  transform: scale(0.95);
}

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

.pb-balloon::after {
  content: '$';
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Georgia', serif;
  font-size: 32px;
  font-weight: 900;
  color: rgba(245,197,24,0.70);
  text-shadow: 0 1px 2px rgba(0,0,0,0.6), 0 0 10px rgba(245,197,24,0.4);
  pointer-events: none;
  z-index: 2;
}

.pb-balloon.popped {
  cursor: default;
  animation: none;
  pointer-events: none;
}
.pb-balloon.popped::after {
  display: none;
}

/* Balloon image */
.pb-balloon-img {
  width: 80px;
  height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.5));
  transition: opacity 0.15s;
}

/* String */
.pb-balloon-string {
  width: 2px;
  height: 18px;
  background: rgba(255,255,255,0.45);
  border-radius: 1px;
  margin-top: -2px;
}

/* Pop animation */
.pb-balloon.popping .pb-balloon-svg {
  animation: pbPop 0.35s cubic-bezier(0.4,0,0.6,1) forwards;
}

@keyframes pbPop {
  0%   { transform: scale(1);    opacity: 1; }
  30%  { transform: scale(1.35); opacity: 0.9; }
  60%  { transform: scale(0.4);  opacity: 0.5; }
  100% { transform: scale(0);    opacity: 0; }
}

/* Prize reveal card */
.pb-prize-reveal {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 14px;
  border: 2px solid;
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.18,1.4,0.4,1) 0.25s,
              opacity    0.3s ease 0.25s;
}

.pb-balloon.revealed .pb-prize-reveal {
  transform: translateX(-50%) scale(1);
  opacity: 1;
}

.pb-prize-reveal.type-money {
  background: linear-gradient(145deg, #1a3a1a, #0d260d);
  border-color: #4DB848;
  box-shadow: 0 0 18px rgba(77,184,72,0.5);
}

.pb-prize-reveal.type-pick1 {
  background: linear-gradient(145deg, #1a1a4a, #0d0d2e);
  border-color: #5BB8F5;
  box-shadow: 0 0 18px rgba(91,184,245,0.5);
}

.pb-prize-reveal.type-pick2 {
  background: linear-gradient(145deg, #2a1a4a, #1a0d36);
  border-color: #7B52AB;
  box-shadow: 0 0 18px rgba(123,82,171,0.5);
}

.pb-prize-reveal.type-pick3 {
  background: linear-gradient(145deg, #4a1a1a, #2e0d0d);
  border-color: #E63C2F;
  box-shadow: 0 0 18px rgba(230,60,47,0.5);
}

.pb-prize-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.pb-prize-label {
  font-family: 'Fredoka One', cursive;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  margin-top: 2px;
  text-align: center;
  line-height: 1.1;
}

.pb-prize-reveal.type-money   .pb-prize-label { color: #7dff72; }
.pb-prize-reveal.type-pick1   .pb-prize-label { color: #8cd8ff; }
.pb-prize-reveal.type-pick2   .pb-prize-label { color: #b08eee; }
.pb-prize-reveal.type-pick3   .pb-prize-label { color: #ff8080; }
.pb-prize-reveal.type-retry   .pb-prize-label { color: #ffaa44; }

.pb-prize-reveal.type-retry {
  background: linear-gradient(145deg, #2a1a08, #1a0e04);
  border-color: #b06820;
  box-shadow: 0 0 14px rgba(176,104,32,0.4);
}

/* Pop particles */
.pb-pop-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  pointer-events: none;
  animation: pbParticleOut 0.6s ease-out forwards;
}

@keyframes pbParticleOut {
  from { transform: translate(0,0) scale(1); opacity: 1; }
  to   { transform: translate(var(--px), var(--py)) scale(0); opacity: 0; }
}

/* ── Footer Message ── */
.pb-footer-msg {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.05em;
  min-height: 1.4em;
  text-align: center;
  font-style: italic;
  transition: color 0.2s;
}

.pb-footer-msg.pick-msg   { color: #8cd8ff; }
.pb-footer-msg.money-msg  { color: #7dff72; }
.pb-footer-msg.danger-msg { color: #ffaa44; }

/* ── End Panel ── */
.pb-end-panel {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 18px;
  background: radial-gradient(ellipse at 50% 40%, rgba(10,22,52,0.97) 0%, rgba(4,8,22,0.99) 100%);
  animation: pbEndIn 0.5s cubic-bezier(0.18,1.4,0.4,1) both;
}

@keyframes pbEndIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

.pb-end-burst {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: radial-gradient(circle at 50% 50%, rgba(245,197,24,0.18) 0%, transparent 65%);
  animation: pbEndBurst 1.2s ease-out forwards;
}

@keyframes pbEndBurst {
  from { transform: scale(0.5); opacity: 0.8; }
  to   { transform: scale(1.8); opacity: 0; }
}

.pb-end-title {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  color: var(--gold);
  text-shadow: 0 0 30px rgba(245,197,24,0.8), 0 2px 6px rgba(0,0,0,0.7);
  letter-spacing: 0.06em;
  position: relative;
}

.pb-end-amount {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(2.4rem, 7vw, 4rem);
  color: #7dff72;
  text-shadow: 0 0 28px rgba(125,255,114,0.7), 0 2px 8px rgba(0,0,0,0.6);
  position: relative;
}

.pb-end-sub {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.06em;
  position: relative;
}

.pb-collect-btn {
  margin-top: 10px;
  position: relative;
  font-size: 1.1rem;
  padding: 14px 40px;
  letter-spacing: 0.08em;
}

/* ═══════════════════════════════════════════════════
   BATTLEFIELD PANEL
═══════════════════════════════════════════════════ */
.battlefield-wrap {
  width: 100%;
  max-width: 1000px;
  position: relative;
  z-index: 10;
  margin: 0 auto 4px;
  border-radius: 18px;
  overflow: hidden;
  border: 3px solid rgba(245,197,24,0.35);
  box-shadow:
    0 8px 40px rgba(0,0,0,0.55),
    0 2px 0 rgba(245,197,24,0.08) inset,
    0 0 60px rgba(245,197,24,0.08);
  background: rgba(4,10,24,0.50);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transform: perspective(900px) rotateX(1deg);
  transform-origin: center bottom;
}

/* Inner depth overlay */
.battlefield-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(245,197,24,0.04) 0%, transparent 30%, transparent 70%, rgba(0,0,0,0.30) 100%);
}

/* Gold diamond corner ornaments */
.battlefield-wrap::after {
  content: '✦';
  position: absolute;
  font-size: 14px;
  color: rgba(245,197,24,0.35);
  z-index: 5;
  pointer-events: none;
  top: 5px;
  right: 10px;
}
/* Second diamond via extra pseudo trick */
.battlefield-diamond {
  position: absolute;
  top: 5px;
  left: 10px;
  z-index: 5;
  font-size: 14px;
  color: rgba(245,197,24,0.35);
  pointer-events: none;
}

.bf-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 22px;
  background: linear-gradient(180deg, rgba(10,18,40,0.50) 0%, rgba(0,0,0,0.35) 100%);
  border-bottom: 2px solid rgba(245,197,24,0.18);
  position: relative;
  z-index: 2;
}

.bf-army {
  font-family: 'Fredoka One', cursive;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}
.bf-army::before {
  font-size: 0.7rem;
  color: rgba(245,197,24,0.60);
  text-shadow: 0 0 8px rgba(245,197,24,0.3);
}
.bf-red  { color: #ff6b6b; text-shadow: 0 0 12px rgba(255,107,107,0.7); }
.bf-red::before { content: '⚔'; }
.bf-blue { color: #5aa9ff; text-shadow: 0 0 12px rgba(90,169,255,0.7); }
.bf-blue::before { content: '⚔'; }

.bf-vs {
  font-family: 'Fredoka One', cursive;
  font-size: 1rem;
  color: var(--gold);
  text-shadow: 0 0 16px var(--gold-glow);
  letter-spacing: 0.1em;
  position: relative;
  padding: 0 24px;
}
.bf-vs::before,
.bf-vs::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245,197,24,0.25), transparent);
}
.bf-vs::before { right: 100%; }
.bf-vs::after  { left: 100%; }

#battle-canvas {
  display: block;
  width: 100%;
  height: auto;
  cursor: default;
  border-bottom: 1px solid rgba(245,197,24,0.15);
  position: relative;
  z-index: 2;
}

.bf-msg {
  text-align: center;
  padding: 5px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255,235,160,0.7);
  letter-spacing: 0.04em;
  background: rgba(0,0,0,0.20);
  border-top: 2px solid rgba(245,197,24,0.12);
  border-bottom: 2px solid rgba(245,197,24,0.12);
  min-height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s;
  position: relative;
}
.bf-msg::before,
.bf-msg::after {
  content: '✦';
  position: absolute;
  font-size: 9px;
  color: rgba(245,197,24,0.25);
  top: 50%;
  transform: translateY(-50%);
}
.bf-msg::before { left: 8px; }
.bf-msg::after  { right: 8px; }

.bf-msg.battle-active {
  color: #ffe080;
  text-shadow: 0 0 10px rgba(255,224,128,0.5);
  animation: bfMsgPulse 0.6s ease-in-out infinite alternate;
}

@keyframes bfMsgPulse {
  from { opacity: 0.8; }
  to   { opacity: 1;   }
}

/* Responsive */
@media (max-width: 960px) {
  .battlefield-wrap { margin: 0 20px 4px; }
}
@media (max-width: 560px) {
  .bf-label { padding: 5px 12px; }
  .bf-army  { font-size: 0.68rem; }
}

/* ═══════════════════════════════════════════════════
   COIN STORE MODAL
═══════════════════════════════════════════════════ */
.store-box {
  max-width: 700px;
  text-align: center;
}

.store-tagline {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 24px;
  margin-top: -12px;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.store-card {
  background:
    linear-gradient(145deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.01) 60%, transparent 100%),
    rgba(7, 14, 36, 0.72);
  border: 1px solid rgba(245,197,24,0.22);
  border-radius: 18px;
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(.2,1.2,.4,1), box-shadow 0.18s, border-color 0.18s;
  overflow: hidden;
}

.store-card:hover {
  transform: translateY(-4px) scale(1.03);
  border-color: var(--gold);
  box-shadow: 0 10px 34px rgba(0,0,0,0.5), 0 0 20px rgba(245,197,24,0.25);
}
.store-card:active { transform: scale(0.97); }

.store-card-badge {
  position: absolute;
  top: -1px; right: -1px;
  background: linear-gradient(135deg, #E03030, #FF5555);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  border-radius: 0 17px 0 10px;
}

.store-card-badge.best  { background: linear-gradient(135deg, var(--gold-dark), var(--gold)); color: #1A0F00; }
.store-card-badge.value { background: linear-gradient(135deg, #3CBFB4, #5BB8F5); }
.store-card-badge.pop   { background: linear-gradient(135deg, #7B52AB, #B488F5); }

.store-card-icon {
  font-size: 2.4rem;
  line-height: 1;
  animation: storeIconBob 2.5s ease-in-out infinite;
}

@keyframes storeIconBob {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-5px) scale(1.06); }
}

.store-card:nth-child(2) .store-card-icon { animation-delay: 0.3s; }
.store-card:nth-child(3) .store-card-icon { animation-delay: 0.6s; }
.store-card:nth-child(4) .store-card-icon { animation-delay: 0.9s; }

.store-card-label {
  font-family: 'Fredoka One', cursive;
  font-size: 0.9rem;
  color: var(--text);
  letter-spacing: 0.04em;
}

.store-card-coins {
  font-family: 'Fredoka One', cursive;
  font-size: 1.35rem;
  color: var(--gold);
  text-shadow: 0 0 10px var(--gold-glow);
}

.store-card-bonus {
  font-size: 0.68rem;
  font-weight: 800;
  color: #7dff72;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.store-card-price {
  font-family: 'Fredoka One', cursive;
  font-size: 1.1rem;
  color: #fff;
  background: linear-gradient(135deg, rgba(245,197,24,0.18), rgba(245,197,24,0.06));
  border: 1px solid rgba(245,197,24,0.3);
  border-radius: 30px;
  padding: 6px 18px;
  margin-top: 4px;
  transition: background 0.15s;
}
.store-card:hover .store-card-price {
  background: linear-gradient(135deg, rgba(245,197,24,0.32), rgba(245,197,24,0.12));
  color: var(--gold);
}

.store-balance-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 0 4px;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 8px;
}

.store-bal-label {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.store-bal-val {
  font-family: 'Fredoka One', cursive;
  font-size: 1.4rem;
  color: var(--gold);
  text-shadow: 0 0 10px var(--gold-glow);
}

.store-disclaimer {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.06em;
  margin-top: 4px;
}

/* Store button in sp-right */
.store-btn {
  background: linear-gradient(135deg, rgba(245,197,24,0.14) 0%, rgba(245,197,24,0.06) 100%);
  border-color: rgba(245,197,24,0.35);
  color: var(--gold);
  font-size: 0.85rem;
}
.store-btn:hover {
  background: linear-gradient(135deg, rgba(245,197,24,0.28) 0%, rgba(245,197,24,0.12) 100%);
  border-color: var(--gold);
  box-shadow: 0 0 18px rgba(245,197,24,0.28);
}

/* ═══════════════════════════════════════════════════
   AUTH SCREEN
═══════════════════════════════════════════════════ */
#auth-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  overflow-y: auto;
  padding: 24px 16px;
}

.auth-bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

/* Dark + vignette overlay so the login panel stays legible */
.auth-video-overlay {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(4,13,34,.45) 0%, rgba(4,13,34,.78) 100%),
    linear-gradient(180deg, rgba(4,13,34,.55) 0%, rgba(4,13,34,.30) 50%, rgba(4,13,34,.65) 100%);
  z-index: 1;
  pointer-events: none;
}


/* ── Panel ─────────────────────────────────────────── */
.auth-panel {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 480px;
  background: linear-gradient(160deg, #0e2045 0%, #0a1630 100%);
  border: 1.5px solid rgba(245,197,24,.30);
  border-radius: 20px;
  padding: 32px 36px 28px;
  box-shadow:
    0 0 60px rgba(245,197,24,.08),
    0 8px 40px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.auth-logo {
  width: clamp(160px, 38%, 220px);
  filter: drop-shadow(0 0 20px rgba(245,197,24,.45));
  margin-bottom: 2px;
}

.auth-tagline {
  color: rgba(255,255,255,.55);
  font-size: .80rem;
  text-align: center;
  margin-bottom: 4px;
}

/* ── Tabs ───────────────────────────────────────────── */
.auth-tabs {
  display: flex;
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(245,197,24,.15);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 4px;
}

.auth-tab-btn {
  flex: 1;
  padding: 10px 0;
  background: transparent;
  border: none;
  color: rgba(255,255,255,.45);
  font-family: 'Fredoka One', sans-serif;
  font-size: .85rem;
  letter-spacing: .06em;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.auth-tab-btn.active {
  background: linear-gradient(135deg, rgba(245,197,24,.22) 0%, rgba(245,197,24,.10) 100%);
  color: var(--gold);
  border-bottom: 2px solid var(--gold);
}
.auth-tab-btn:hover:not(.active) { color: rgba(255,255,255,.75); }

/* ── Forms ─────────────────────────────────────────── */
.auth-form { width: 100%; display: flex; flex-direction: column; gap: 10px; }

.auth-avatar-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 2px;
}

.avatar-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.av-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  cursor: pointer;
  transition: border-color .15s, transform .15s, background .15s;
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.av-btn img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.av-btn:hover   { border-color: rgba(245,197,24,.5); transform: scale(1.1); }
.av-btn.active  {
  border-color: var(--gold);
  background: rgba(245,197,24,.18);
  box-shadow: 0 0 8px rgba(245,197,24,.4);
  transform: scale(1.12);
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.auth-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
}
.auth-req { color: #E63C2F; }

.auth-input {
  width: 100%;
  background: rgba(0,0,0,.32);
  border: 1.5px solid rgba(255,255,255,.12);
  border-radius: 9px;
  padding: 10px 14px;
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: .88rem;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.auth-input:focus {
  border-color: rgba(245,197,24,.6);
  box-shadow: 0 0 0 3px rgba(245,197,24,.12);
}
.auth-input::placeholder { color: rgba(255,255,255,.25); }

/* Select needs appearance reset + explicit font (browsers don't reliably inherit on select) */
.auth-select {
  font-family: 'Nunito', sans-serif;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23F5C518' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}
.auth-select option { background: #0e2045; color: #fff; }

/* Password field with eye toggle */
.pw-wrap { position: relative; display: flex; align-items: center; }
.pw-wrap .auth-input { padding-right: 42px; }
.eye-btn {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: .95rem;
  opacity: .55;
  padding: 4px;
  line-height: 1;
  transition: opacity .15s;
}
.eye-btn:hover { opacity: 1; }

/* Password strength bar */
.pw-bar-track {
  height: 4px;
  background: rgba(255,255,255,.08);
  border-radius: 4px;
  margin-top: 5px;
  overflow: hidden;
}
.pw-bar-fill {
  height: 100%;
  width: 0;
  border-radius: 4px;
  transition: width .3s, background .3s;
}
.pw-bar-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .05em;
  margin-top: 2px;
  height: 12px;
}

.auth-err {
  color: #ff6b6b;
  font-size: .78rem;
  font-weight: 700;
  padding: 6px 10px;
  background: rgba(230,60,47,.12);
  border: 1px solid rgba(230,60,47,.3);
  border-radius: 7px;
}

/* ── Buttons ────────────────────────────────────────── */
.auth-cta {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  border: none;
  border-radius: 10px;
  color: #0b1630;
  font-family: 'Fredoka One', sans-serif;
  font-size: 1rem;
  letter-spacing: .08em;
  cursor: pointer;
  transition: filter .18s, transform .12s;
  margin-top: 4px;
}
.auth-cta:hover { filter: brightness(1.12); transform: translateY(-1px); }
.auth-cta:active { transform: translateY(0); }
.auth-cta:disabled { opacity: .55; cursor: default; transform: none; filter: none; }

.auth-recover {
  background: none;
  border: none;
  color: rgba(245,197,24,.65);
  font-size: .75rem;
  cursor: pointer;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 2px 0;
}
.auth-recover:hover { color: var(--gold); }

.auth-or {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.2);
  font-size: .75rem;
}
.auth-or::before, .auth-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.1);
}

.auth-guest-btn {
  width: 100%;
  padding: 11px;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.18);
  border-radius: 10px;
  color: rgba(255,255,255,.7);
  font-family: 'Fredoka One', sans-serif;
  font-size: .9rem;
  letter-spacing: .06em;
  cursor: pointer;
  transition: border-color .18s, color .18s, background .18s;
}
.auth-guest-btn:hover {
  border-color: rgba(245,197,24,.45);
  color: var(--gold-light);
  background: rgba(245,197,24,.06);
}

.auth-note {
  color: rgba(255,255,255,.25);
  font-size: .68rem;
  text-align: center;
}

/* ═══════════════════════════════════════════════════
   USER CHIP  (in game header)
═══════════════════════════════════════════════════ */
.user-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(245,197,24,.22);
  border-radius: 20px;
  padding: 4px 10px 4px 6px;
}

.uc-av {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
  filter: drop-shadow(0 0 4px rgba(245,197,24,.4));
}
.uc-av img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.uc-name {
  font-size: .75rem;
  font-weight: 800;
  color: var(--gold-light);
  max-width: 90px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logout-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,.35);
  font-size: .9rem;
  cursor: pointer;
  padding: 0 0 0 2px;
  line-height: 1;
  transition: color .15s;
}
.logout-btn:hover { color: #ff6b6b; }

/* ═══════════════════════════════════════════════════
   VERIFY MODAL
═══════════════════════════════════════════════════ */
.verify-box { max-width: 420px; }

.verify-desc {
  color: rgba(255,255,255,.55);
  font-size: .82rem;
  margin-bottom: 8px;
  text-align: center;
}

/* ── AVATAR CHANGE MODAL ─────────────────────────────────── */
.av-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.av-modal.hidden { display: none; }

.av-modal-panel {
  background: linear-gradient(160deg, #1a1040 0%, #0d0820 100%);
  border: 1.5px solid rgba(196,163,90,.35);
  border-radius: 18px;
  padding: 32px 28px 24px;
  width: min(540px, 94vw);
  box-shadow: 0 8px 48px rgba(0,0,0,.7), 0 0 0 1px rgba(196,163,90,.1);
  animation: av-panel-in .22s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes av-panel-in {
  from { transform: scale(.88); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.av-modal-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1.5rem;
  color: #f5d97a;
  text-align: center;
  margin: 0 0 20px;
  letter-spacing: .04em;
}

.av-modal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.av-modal-btn {
  background: rgba(255,255,255,.05);
  border: 2px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 10px 6px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .12s;
}
.av-modal-btn img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}
.av-modal-btn span {
  font-family: 'Nunito', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  color: #c8b8e8;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.av-modal-btn:hover {
  background: rgba(196,163,90,.1);
  border-color: rgba(196,163,90,.4);
  transform: translateY(-2px);
}
.av-modal-btn.selected {
  background: rgba(196,163,90,.18);
  border-color: #f5d97a;
  box-shadow: 0 0 12px rgba(245,217,122,.4);
}
.av-modal-btn.selected span { color: #f5d97a; }

.av-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  justify-content: center;
}
.av-modal-save {
  font-family: 'Fredoka One', cursive;
  font-size: 1rem;
  letter-spacing: .06em;
  background: linear-gradient(135deg, #f5d97a, #c4a35a);
  color: #1a1040;
  border: none;
  border-radius: 10px;
  padding: 10px 36px;
  cursor: pointer;
  transition: opacity .15s, transform .12s;
}
.av-modal-save:hover { opacity: .88; transform: translateY(-1px); }

.av-modal-cancel {
  font-family: 'Nunito', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  background: rgba(255,255,255,.06);
  color: #a89cbf;
  border: 1.5px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 10px 24px;
  cursor: pointer;
  transition: background .15s;
}
.av-modal-cancel:hover { background: rgba(255,255,255,.1); }

/* Make avatar chip feel clickable */
#uc-av {
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
#uc-av:hover {
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(245,217,122,.5);
  border-radius: 50%;
}

@media (max-width: 500px) {
  .av-modal-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .av-modal-btn img { width: 44px; height: 44px; }
}

/* ── Feature Trigger Video Overlay ───────────────────── */
#feature-trigger-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
#feature-trigger-overlay.hidden { display: none; }
#feature-trigger-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#feature-trigger-skip {
  position: absolute;
  top: 18px;
  right: 24px;
  background: rgba(0,0,0,0.52);
  color: rgba(255,255,255,0.75);
  border: 1px solid rgba(245,197,24,0.35);
  border-radius: 8px;
  padding: 8px 22px;
  font-family: 'Fredoka One', cursive;
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  z-index: 10001;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
#feature-trigger-skip:hover {
  background: rgba(245,197,24,0.15);
  border-color: rgba(245,197,24,0.7);
  color: var(--gold);
  box-shadow: 0 0 14px rgba(245,197,24,0.25);
}

/* ── Operator Mode Badge ─────────────────────────────── */
.op-mode-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-family: 'Fredoka One', cursive;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  animation: op-badge-pulse 2.5s ease-in-out infinite;
}
.op-mode-badge.hidden { display: none; }

.op-mode-badge.demo {
  background: rgba(91,184,245,0.15);
  color: var(--sky);
  border: 1px solid rgba(91,184,245,0.4);
}

.op-mode-badge.real {
  background: rgba(77,184,72,0.15);
  color: #4DB848;
  border: 1px solid rgba(77,184,72,0.45);
}

@keyframes op-badge-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.65; }
}

/* ════════════════════════════════════════════════════
   REAL MONEY SWITCH — Button & Modal
════════════════════════════════════════════════════ */

/* ── Header CTA button ─────────────────────────────── */
.real-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: linear-gradient(135deg, #c4910a 0%, var(--gold) 50%, #ffe680 100%);
  border: none;
  border-radius: 20px;
  color: #0b1a00;
  font-family: 'Fredoka One', cursive;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow:
    0 0 14px rgba(245,197,24,0.5),
    0 3px 10px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.35);
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
  animation: rp-btn-pulse 2.8s ease-in-out infinite;
  white-space: nowrap;
}
.real-play-btn.hidden { display: none; }
.real-play-btn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 0 28px rgba(245,197,24,0.75), 0 6px 16px rgba(0,0,0,0.45);
  filter: brightness(1.08);
  animation: none;
}
.real-play-btn:active { transform: scale(0.97); }

.rp-btn-icon { font-size: 1rem; line-height: 1; }
.rp-btn-text { font-size: 0.76rem; letter-spacing: 0.1em; }

@keyframes rp-btn-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.82; }
}

/* ── Modal box ─────────────────────────────────────── */
.rp-modal-box {
  max-width: 460px;
  text-align: center;
  padding: 40px 36px 32px;
}

.rp-modal-hero {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
}
.rp-hero-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,197,24,0.35) 0%, transparent 70%);
  animation: rp-glow-pulse 2s ease-in-out infinite;
}
.rp-hero-icon { font-size: 2.8rem; position: relative; z-index: 1; }

@keyframes rp-glow-pulse {
  0%, 100% { transform: scale(1);    opacity: 0.8; }
  50%       { transform: scale(1.25); opacity: 1;   }
}

.rp-modal-title { margin-bottom: 0; }

/* ── Content panels ────────────────────────────────── */
.rp-panel { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 18px; }
.rp-panel.hidden { display: none; }

.rp-desc {
  color: rgba(255,255,255,0.78);
  font-size: 0.9rem;
  line-height: 1.6;
  text-align: center;
}
.rp-desc strong { color: var(--gold); }

/* ── Checklist ─────────────────────────────────────── */
.rp-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  text-align: left;
}
.rp-checklist li {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  padding: 8px 14px;
  background: rgba(245,197,24,0.07);
  border: 1px solid rgba(245,197,24,0.18);
  border-radius: 8px;
  letter-spacing: 0.02em;
}

/* ── Confirm button ────────────────────────────────── */
.rp-confirm-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  border: none;
  border-radius: 10px;
  color: #0b1630;
  font-family: 'Fredoka One', cursive;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(245,197,24,0.4), inset 0 1px 0 rgba(255,255,255,0.3);
  transition: filter 0.15s, transform 0.12s, box-shadow 0.15s;
}
.rp-confirm-btn:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(245,197,24,0.6);
}
.rp-confirm-btn:active { transform: translateY(0); }

.rp-fine-print {
  color: rgba(255,255,255,0.35);
  font-size: 0.72rem;
  line-height: 1.5;
  text-align: center;
}

/* ── Steps (standalone panel) ──────────────────────── */
.rp-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  text-align: left;
}
.rp-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 10px;
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
}
.rp-step-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #0b1630;
  font-family: 'Fredoka One', cursive;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rp-contact {
  color: rgba(255,255,255,0.45);
  font-size: 0.78rem;
  text-align: center;
}
.rp-link {
  color: var(--gold);
  text-underline-offset: 3px;
}
.rp-link:hover { color: var(--gold-light); }

/* ── Spinner (switching panel) ─────────────────────── */
.rp-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(245,197,24,0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: rp-spin 0.8s linear infinite;
}
@keyframes rp-spin {
  to { transform: rotate(360deg); }
}


/* ══════════════════════════════════════════════════════════════
   MOBILE-FIRST RESPONSIVE OVERHAUL
   Breakpoints: 768px (tablet), 600px (phone), 420px (small phone)
   Landscape: (max-height: 520px) + (orientation: landscape)
══════════════════════════════════════════════════════════════ */

/* ── Touch device global improvements ─────────────────────── */
/* Suppress double-tap zoom / 300ms tap delay on interactive elements
   without breaking the synthesized click (do NOT preventDefault touchend) */
button, a, select, input, label, [role="button"],
.spin-btn, .bet-adj, .ctrl-btn, .max-btn, .icon-btn, .auth-tab-btn {
  touch-action: manipulation;
}

@media (pointer: coarse) {
  /* Enlarge all tap targets to minimum 44px */
  .icon-btn  { width: 44px; height: 44px; font-size: 1.1rem; }
  .bet-adj   { width: 48px; height: 48px; font-size: 1.5rem; }
  .ctrl-btn  { padding: 12px 20px; font-size: .85rem; }
  .max-btn   { padding: 13px 20px; }
  .auth-tab-btn { padding: 12px 20px; }

  /* Remove hover states (they stick on touch) */
  .spin-btn:hover { transform: none; box-shadow:
    0 8px 32px rgba(200,20,20,.55),
    0 0 0 3px rgba(255,255,255,.07),
    inset 0 3px 0 rgba(255,255,255,.25),
    inset 0 -4px 0 rgba(0,0,0,.3); }
  .bet-adj:hover { transform: none; background: rgba(0,0,0,.45); border-color: rgba(245,197,24,.3); }

  /* Strong active feedback on touch */
  .spin-btn:active:not(:disabled) { transform: scale(.9); }
  .bet-adj:active  { transform: scale(.88); background: rgba(245,197,24,.2) !important; }
  .ctrl-btn:active { transform: scale(.93); background: rgba(245,197,24,.15); }
  .max-btn:active  { transform: scale(.93); }

  /* Replace SPACE hint with TAP on touch devices */
  .spin-hint::before { content: 'TAP'; }
  .spin-hint { font-size: 0; }
  .spin-hint::before { font-size: .6rem; color: rgba(255,255,255,.55); letter-spacing: .12em; text-transform: uppercase; }

  /* Safe-area insets for notched phones */
  #game { padding-bottom: max(32px, env(safe-area-inset-bottom)); }
  .machine-wrap { padding-left: max(8px, env(safe-area-inset-left)); padding-right: max(8px, env(safe-area-inset-right)); }
}

/* ── Tablet (≤768px): tighten header, shrink side panels ──── */
@media (max-width: 768px) {
  .game-header { padding: 10px 16px; grid-template-columns: 1fr auto 1fr; }
  .hdr-logo    { height: clamp(44px, 7vw, 68px); }
  .stat-block  { padding: 6px 12px; min-width: 88px; }
  .sb-value    { font-size: 1.1rem; }
  .level-group { display: none; }

  .bonus-bar   { padding: 8px 16px; gap: 8px; }
  .bp          { padding: 5px 14px; font-size: .72rem; }

  .machine-wrap { gap: 12px; padding: 0 12px; }
  .sp-left, .sp-right { width: 140px; padding: 16px 10px; gap: 10px; }

  .spin-btn { width: 108px; height: 108px; }
  .spin-label { font-size: 1.35rem; }
}

/* ── Phone portrait (≤600px): stack layout ────────────────── */
@media (max-width: 600px) {

  /* ── Scroll containment ────────────────────────────── */
  #game { overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: max(8px, env(safe-area-inset-bottom)); }

  /* ── Header: 2-col (stats left, logo center, icons right) */
  .game-header {
    padding: 8px 12px;
    grid-template-columns: 1fr auto 1fr;
    gap: 6px;
  }
  .hdr-logo { height: 44px; }
  .hdr-left  { gap: 8px; }
  .hdr-right { gap: 8px; }
  /* Hide second stat block in header to save space */
  .hdr-left .stat-block:nth-child(2)  { display: none; }
  .hdr-right .stat-block { display: none; }
  .stat-block { min-width: 76px; padding: 5px 10px; }
  .sb-value   { font-size: 1rem; }
  .sb-label   { font-size: .6rem; }

  /* ── Bonus bar: compact single row ────────────────────── */
  .bonus-bar { padding: 6px 10px; gap: 6px; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .bonus-bar::-webkit-scrollbar { display: none; }
  .bp { flex-shrink: 0; padding: 4px 12px; font-size: .68rem; }
  .bp-val { font-size: .95rem; }

  /* ── Machine wrap: vertical stack ─────────────────────── */
  .machine-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    width: 100%;
  }

  /* Order: cabinet → controls → secondary buttons */
  .machine-cabinet { order: 0; max-width: 100%; border-radius: 0; border-left: none; border-right: none; }
  .sp-right        { order: 1; }
  .sp-left         { order: 2; }

  /* ── Cabinet: full width, no side borders ──────────────── */
  .machine-cabinet {
    width: 100%;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  /* ── Jackpot meters: compact ───────────────────────────── */
  .jp-meters-bar { padding: 8px 8px 6px; gap: 0; }
  .jp-ring-wrap  { width: 52px; height: 52px; }
  .jp-meter.center .jp-ring-wrap { width: 64px; height: 64px; }
  .jp-img        { width: 24px; height: 24px; }
  .jp-meter.center .jp-img { width: 30px; height: 30px; }
  .jp-val        { font-size: .5rem; }
  .jp-label-badge { font-size: .55rem; padding: 1px 8px; margin-top: 2px; }
  .jp-meter      { padding: 0 6px; }
  .jp-meter.center { padding: 0 10px; }

  /* Shrink spike crown on narrow cabinet */
  .reel-spikes  { gap: 5px; }
  .spike        { width: 14px; }

  /* ── Reels area: full width, no side arrows on very small ─ */
  .reels-area     { padding: 10px 6px; gap: 4px; }
  .reels-container { gap: 3px; }
  :root           { --cell: 62px; }
  .reel-cell img  { width: 56px; height: 56px; }
  .payline-arrow  { display: none; }

  /* Machine message */
  .machine-message { padding: 6px 12px; min-height: 34px; }
  #msg-text        { font-size: .82rem; }
  .machine-footer-bar { padding: 4px 0; }
  .machine-lights  { padding: 8px 10px; }

  /* ── sp-right → Primary control strip (bet + spin + max) ── */
  .sp-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    width: 100%;
    border-radius: 0;
    border-top: 1px solid rgba(245,197,24,.14);
    border-left: none;
    border-right: none;
    border-bottom: none;
    padding: 10px 12px;
    gap: 10px;
    background: rgba(6, 12, 30, 0.88);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: 0 -4px 20px rgba(0,0,0,.4);
  }

  /* Reorder: bet row | spin | max */
  .bet-row       { order: 1; gap: 8px; flex-shrink: 0; }
  .spin-btn-wrap { order: 2; flex-shrink: 0; }
  .max-btn       { order: 3; flex-shrink: 0; font-size: .72rem; padding: 8px 12px; line-height: 1.3; }

  /* Hide stats and store in sp-right — moved to sp-left row */
  .sp-right .stat-block { display: none; }
  .sp-right .store-btn  { display: none; }

  /* Spin button: smaller but still prominent */
  .spin-btn  { width: 82px; height: 82px; }
  .spin-label { font-size: 1.2rem; }

  /* Bet controls */
  .bet-adj  { width: 44px; height: 44px; font-size: 1.4rem; }
  .bet-box  { padding: 6px 14px; min-width: 76px; }
  .bet-val  { font-size: 1.2rem; }
  .bet-lbl  { font-size: .6rem; }

  /* ── sp-left → Secondary strip (auto / turbo / table / store) */
  .sp-left {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    width: 100%;
    border-radius: 0;
    border-top: 1px solid rgba(255,255,255,.06);
    border-left: none;
    border-right: none;
    border-bottom: none;
    padding: 8px 12px;
    gap: 8px;
    background: rgba(4, 8, 22, 0.82);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }

  /* Show store button here since sp-right hid it */
  .sp-left::after { display: none; }
  .sp-left .ctrl-btn { flex: 1; min-width: 0; padding: 8px 6px; font-size: .72rem; white-space: nowrap; }
  .sp-left .paylines-badge { display: none; }

  /* Unhide the store button inside sp-right for the secondary strip via sp-left order trick */
  /* (store-btn is in sp-right — we keep it hidden there; the existing ctrl-btns in sp-left handle secondary actions) */

  /* Copyright footer */
  .copyright-footer { padding: 10px 16px; flex-direction: column; gap: 4px; text-align: center; }
  .copyright-text   { font-size: .68rem; }
}

/* ── Very small phones (≤420px) ────────────────────────────── */
@media (max-width: 420px) {
  :root { --cell: 54px; }
  .hdr-logo  { height: 38px; }
  .stat-block { min-width: 66px; padding: 4px 8px; }
  .sb-value   { font-size: .9rem; }

  .reel-cell img { width: 48px; height: 48px; }
  .jp-ring-wrap  { width: 44px; height: 44px; }
  .jp-meter.center .jp-ring-wrap { width: 56px; height: 56px; }

  .spin-btn  { width: 72px; height: 72px; }
  .spin-label { font-size: 1.05rem; }
  .bet-adj  { width: 40px; height: 40px; font-size: 1.2rem; }
  .bet-box  { padding: 5px 10px; min-width: 66px; }
  .bet-val  { font-size: 1.05rem; }
  .max-btn  { padding: 7px 10px; font-size: .66rem; }

  .sp-left .ctrl-btn { font-size: .66rem; padding: 7px 4px; }
  .bonus-bar { display: none; }

  .machine-lights .ml:nth-child(n+9) { display: none; }
}

/* ── Landscape phone (short viewport) ─────────────────────── */
@media (max-height: 520px) and (orientation: landscape) {
  /* Restore side-by-side layout on landscape */
  .machine-wrap {
    flex-direction: row;
    align-items: flex-start;
    padding: 0 6px;
    gap: 8px;
  }

  .machine-cabinet { order: 1; max-width: calc(100vw - 240px); border-radius: 10px; border: 2px solid var(--gold-dark); }
  .sp-left  { order: 0; width: 110px; flex-direction: column; border-radius: 12px; padding: 10px 8px; gap: 8px; flex-shrink: 0; }
  .sp-right { order: 2; width: 120px; flex-direction: column; border-radius: 12px; padding: 10px 8px; gap: 8px; flex-shrink: 0; border: 1px solid rgba(245,197,24,.20); background: rgba(7,14,36,.74); }

  /* Restore stat blocks */
  .sp-right .stat-block { display: flex; }
  .sp-right .store-btn  { display: flex; }

  /* Compact header */
  .game-header { padding: 5px 12px; }
  .hdr-logo    { height: 34px; }
  .stat-block  { padding: 4px 8px; min-width: 68px; }
  .sb-value    { font-size: .88rem; }
  .bonus-bar   { display: none; }

  /* Very compact reels */
  :root { --cell: 52px; }
  .reel-cell img { width: 46px; height: 46px; }
  .jp-meters-bar { padding: 6px 6px 4px; }
  .jp-ring-wrap  { width: 42px; height: 42px; }
  .jp-meter.center .jp-ring-wrap { width: 52px; height: 52px; }
  .jp-img        { width: 20px; height: 20px; }
  .jp-val        { font-size: .44rem; }
  .jp-label-badge { font-size: .5rem; padding: 1px 6px; }

  .reels-area  { padding: 6px 4px; gap: 3px; }
  .reels-container { gap: 2px; }
  .machine-lights  { padding: 5px 8px; }

  /* Compact controls */
  .spin-btn    { width: 72px; height: 72px; }
  .spin-label  { font-size: 1.05rem; }
  .bet-adj     { width: 36px; height: 36px; font-size: 1.1rem; }
  .bet-box     { padding: 4px 8px; min-width: 64px; }
  .bet-val     { font-size: 1rem; }
  .bet-row     { flex-direction: row; gap: 4px; }
  .max-btn     { padding: 6px 10px; font-size: .68rem; }
  .ctrl-btn    { padding: 6px 10px; font-size: .7rem; }
  .sp-left .paylines-badge { display: none; }

  /* Restore sp-left column layout */
  .sp-left .ctrl-btn { flex: none; width: 100%; }

  #game { overflow-y: auto; height: 100dvh; }
}

/* ── Auth screen mobile ─────────────────────────────────────── */
@media (max-width: 600px) {
  .auth-panel {
    padding: 24px 20px 28px;
    margin: 12px;
    border-radius: 16px;
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
  }
  .auth-logo     { width: 100px; }
  .auth-tagline  { font-size: .82rem; }
  .auth-input    { font-size: 16px; } /* prevents iOS zoom on focus */
  .auth-tab-btn  { font-size: .78rem; padding: 10px 16px; }
  .auth-submit   { font-size: .92rem; }
}

/* ── Modals on mobile ───────────────────────────────────────── */
@media (max-width: 600px) {
  .modal-box {
    margin: 12px;
    padding: 28px 20px 24px;
    border-radius: 18px;
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
  }
  .modal-title { font-size: 1.3rem; }

  /* Store modal */
  .store-box { max-width: 100%; }
  .store-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  /* Paytable */
  .paytable-box { max-width: 100%; }

  /* Avatar picker */
  .av-modal-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .av-modal-btn img { width: 44px; height: 44px; }
}

/* ── Win / jackpot overlays on mobile ──────────────────────── */
@media (max-width: 600px) {
  .win-amount-counter { font-size: clamp(2.5rem, 12vw, 5rem); }
  .win-type           { font-size: clamp(1.2rem, 6vw, 2.2rem); }

  #jp-overlay .jp-tier-label   { font-size: clamp(2rem, 10vw, 4rem); }
  #jp-overlay .jp-prize-counter { font-size: clamp(1.8rem, 9vw, 3.5rem); }

  /* Feature trigger video: contain on portrait phones — cover crops a
     16:9 video to a tiny center slice and hides the on-screen text */
  #feature-trigger-video { object-fit: contain; background: #000; }

  /* Big-win video: 55vw is too small on phones */
  #win-video { width: 92vw; }
  #feature-trigger-skip  { top: max(12px, env(safe-area-inset-top)); right: 16px; }
}

/* ── Intro screen mobile ────────────────────────────────────── */
@media (max-width: 600px) {
  .intro-content { padding: 0 20px; }
  .intro-logo-wrap .logo-frame { padding: 4px; }
  .intro-logo  { width: clamp(140px, 48vw, 240px); }
  .intro-tagline { font-size: clamp(1.3rem, 6vw, 2.2rem); gap: 4px; }
  .intro-proposition { gap: 8px; font-size: .8rem; flex-wrap: wrap; justify-content: center; }
  .intro-prop-sep { display: none; }
  .intro-play-btn { padding: 14px 36px; font-size: 1.1rem; margin-top: 20px; }
  .intro-skip { font-size: .72rem; }
}

/* ═══════════════════════════════════════════════════════════════
   CROSS-DEVICE FIXES — every control reachable on every screen
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. #game is the single scroll container.
   Previously body was the accidental scroller (html/body height:100%),
   so window scrolling was dead and anything below the fold was
   unreachable on phones/tablets. */
html, body {
  height: 100%;
  overflow: hidden;
}

#game {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* #game is a flex column with a fixed height now — without this, flex
   silently crushes sections (battlefield collapsed to 6px) instead of
   letting the pane scroll. */
#game > * { flex-shrink: 0; }

/* ── 2. Tablet / small-desktop header (≤900px): the right cluster
   (chip + XP + sound + info) overflowed its grid track. */
@media (max-width: 900px) {
  .game-header { padding: 8px 12px; }
  .hdr-left, .hdr-right { gap: 8px; }
  .level-group { display: none; }
  .icon-btn { width: 40px; height: 40px; font-size: 1rem; }
  .hdr-logo { height: clamp(40px, 6vw, 56px); }
  .bf-msg { display: none; }
  .machine-lights { padding: 8px 12px; }
  .jp-meters-bar { padding: 8px 10px 6px; }
}

/* Short desktop/laptop windows: same trim so the machine fits. */
@media (max-height: 920px) {
  .bf-msg { display: none; }
}

/* ── 3. Phone header (≤600px): wrap instead of clipping.
   Icons keep right alignment via margin-left:auto when they wrap. */
@media (max-width: 600px) {
  .game-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    row-gap: 6px;
    column-gap: 8px;
    padding: 6px 10px;
  }
  .hdr-left   { flex: 0 1 auto; gap: 6px; }
  .hdr-center { flex: 0 0 auto; }
  .hdr-right  { flex: 0 1 auto; margin-left: auto; gap: 6px; }

  .real-play-btn { padding: 6px 10px; font-size: .6rem; letter-spacing: .04em; }
  .uc-name { display: none; }          /* avatar-only user chip */
  .user-chip { padding: 4px 6px; gap: 4px; }
  .icon-btn { width: 38px; height: 38px; }
  .hdr-logo { height: 40px; }
}

/* ── 4. Short phones (≤600px wide, ≤720px tall): reclaim height so
   the SPIN strip fits on-screen without scrolling. The battlefield
   banner is hidden here (as in landscape); jackpot battles still play
   their fullscreen overlay. */
@media (max-width: 600px) and (max-height: 720px) {
  .battlefield-wrap { display: none; }
  .machine-message { min-height: 28px; padding: 3px 10px; }
  .machine-lights { padding: 5px 8px; }
  .jp-meters-bar { padding: 6px 6px 4px; }
}

/* ── 5. Landscape phones: battlefield banner eats the whole short
   viewport — hide it, and pin the 3-column layout (controls beside the
   reels, visible immediately). The ≤960px tablet rules otherwise force
   the panels to wrap below the cabinet, stranding the SPIN button. */
@media (max-height: 520px) and (orientation: landscape) {
  .battlefield-wrap { display: none; }
  .bonus-bar { display: none; }

  .machine-wrap { flex-wrap: nowrap; align-items: flex-start; }
  .machine-cabinet { flex: 1 1 auto; min-width: 0; max-width: none; order: 1; }
  .sp-left  { flex: 0 0 110px; width: 110px; min-width: 0; order: 0; }
  .sp-right { flex: 0 0 132px; width: 132px; min-width: 0; order: 2; }
  .reels-viewport { max-width: 100%; }
}

/* ════════════════════════════════════════════════════════════
   DISCLOSURE GATE — IP & content-protections agreement
   Shown as the very first screen, above everything (z 12000)
════════════════════════════════════════════════════════════ */
#disclosure-screen {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: radial-gradient(1200px 800px at 50% -10%, #16305e 0%, #0e2045 40%, #0a0a1a 100%);
  overflow-y: auto;
}
#disclosure-screen.hidden { display: none; }

.dsc-card {
  max-width: 640px;
  width: 100%;
  margin: auto;
  background: rgba(10, 22, 48, .78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(245, 197, 66, .35);
  border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(245, 197, 66, .08), 0 24px 60px rgba(0, 0, 0, .55),
              inset 0 1px 0 rgba(255, 255, 255, .06);
  padding: 32px 30px;
  text-align: center;
}

.dsc-badge {
  display: inline-block;
  font-family: 'Nunito', sans-serif;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #0a1630;
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.dsc-title {
  font-family: 'Fredoka One', cursive;
  font-weight: 400;
  font-size: clamp(24px, 5vw, 34px);
  line-height: 1.15;
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}

.dsc-sub {
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  color: #aab6d8;
  margin-bottom: 20px;
}

.dsc-agreement {
  text-align: left;
  font-family: 'Nunito', sans-serif;
  font-size: 13.5px;
  line-height: 1.6;
  color: #d7ddf2;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(245, 197, 66, .18);
  border-radius: 12px;
  padding: 18px 20px;
  max-height: min(300px, 38vh);
  overflow-y: auto;
  margin-bottom: 18px;
}
.dsc-agreement h2 {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 14px 0 6px;
}
.dsc-agreement h2:first-child { margin-top: 0; }
.dsc-agreement strong { color: #fff; }

.dsc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 12px;
}

.dsc-btn {
  font-family: 'Fredoka One', cursive;
  font-size: 16px;
  letter-spacing: .04em;
  cursor: pointer;
  border: none;
  border-radius: 12px;
  padding: 13px 30px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.dsc-accept {
  color: #0a1630;
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
  box-shadow: 0 6px 20px rgba(245, 197, 66, .35), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.dsc-accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(245, 197, 66, .5), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.dsc-decline {
  color: #ff9d94;
  background: rgba(230, 60, 47, .12);
  border: 1px solid rgba(230, 60, 47, .45);
}
.dsc-decline:hover {
  transform: translateY(-2px);
  color: #ffb7b0;
  background: rgba(230, 60, 47, .2);
  box-shadow: 0 8px 22px rgba(230, 60, 47, .25);
}

.dsc-fineprint {
  font-family: 'Nunito', sans-serif;
  font-size: 11.5px;
  color: #8391b8;
  line-height: 1.5;
  max-width: 460px;
  margin: 0 auto;
}

.dsc-declined-mark { font-size: 52px; margin-bottom: 10px; }
.dsc-declined-text {
  font-family: 'Nunito', sans-serif;
  font-size: 14.5px;
  color: #d7ddf2;
  line-height: 1.6;
  margin-bottom: 14px;
}

.dsc-footer {
  margin-top: 18px;
  font-family: 'Nunito', sans-serif;
  font-size: 10.5px;
  color: #6b7899;
  letter-spacing: .06em;
}

@media (max-width: 520px) {
  .dsc-card { padding: 24px 18px; }
  .dsc-actions { flex-direction: column; }
  .dsc-btn { width: 100%; }
}
