/* Hood Dreams — Cabinet-Style Slot Machine UI */
@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&family=Orbitron:wght@400;700;900&family=Rajdhani:wght@400;600;700&family=Black+Ops+One&display=swap');

:root {
  --gold:        #FFD700;
  --gold2:       #FFA500;
  --gold-dark:   #8B6914;
  --gold-light:  #FFF5B0;
  --red:         #CC0000;
  --red-dark:    #7a0000;
  --red-bright:  #FF2222;
  --green-neon:  #00FF88;
  --cyan:        #00E5FF;
  --magenta:     #FF00FF;
  --bg-cabinet:  #0a0a0a;
  --bg-reels:    #1a0004;
  --bg-dark:     #050505;
  --meter-bg:    #0d0d0d;
}

*  { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  width: 100%; min-height: 100vh;
  background: radial-gradient(ellipse at center, #1a0a00 0%, #0a0500 50%, #000 100%);
  font-family: 'Rajdhani', sans-serif;
  overflow-x: hidden;
  color: #fff;
}

/* ─────────────────────────────────────────
   CABINET WRAPPER  – portrait tall card
───────────────────────────────────────── */
#cabinet {
  width: min(500px, 100vw);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  background: linear-gradient(180deg, #111 0%, #0d0d0d 100%);
  /* outer metallic frame */
  border-left:  4px solid #2a2a2a;
  border-right: 4px solid #2a2a2a;
  border-bottom: 6px solid #1a1a1a;
  box-shadow:
    -8px 0 30px rgba(0,0,0,0.9),
     8px 0 30px rgba(0,0,0,0.9),
     0  20px 60px rgba(0,0,0,0.8);
}

/* Gold side accent strips */
#cabinet::before, #cabinet::after {
  content: '';
  position: absolute; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg,
    #FFD700 0%, #FFA500 20%, #8B6914 45%,
    #FFA500 55%, #FFD700 80%, #8B6914 100%);
  z-index: 10;
}
#cabinet::before { left:  0; }
#cabinet::after  { right: 0; }

/* ─────────────────────────────────────────
   TOP TOPPER SCREEN
───────────────────────────────────────── */
#topper {
  width: 100%;
  padding: 12px 8px 10px;
  background: linear-gradient(180deg,
    #3d0000 0%, #800000 25%, #c00000 50%, #800000 75%, #3d0000 100%);
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--gold);
  min-height: 90px;
  display: flex; align-items: center; justify-content: center;
}

/* Firework sparks */
#topper::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 50%, rgba(255,200,0,0.25) 0%, transparent 40%),
    radial-gradient(circle at 85% 50%, rgba(255,200,0,0.25) 0%, transparent 40%),
    radial-gradient(circle at 50% 10%, rgba(255,100,0,0.2) 0%, transparent 35%);
  pointer-events: none;
}
#topper::after {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    90deg, transparent, transparent 6px,
    rgba(255,200,0,0.04) 6px, rgba(255,200,0,0.04) 7px);
  pointer-events: none;
}

.topper-title-wrap {
  text-align: center; position: relative; z-index: 1;
}
.topper-title {
  font-family: 'Black Ops One', sans-serif;
  font-size: clamp(26px, 7vw, 44px);
  line-height: 0.95;
  background: linear-gradient(180deg, #FFF5B0 0%, #FFD700 40%, #FFA500 70%, #FF6B00 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 6px rgba(255,100,0,0.8)) drop-shadow(0 0 20px rgba(255,215,0,0.6));
  text-transform: uppercase;
  letter-spacing: 3px;
}
.topper-sub {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(11px, 3vw, 16px);
  color: var(--gold);
  letter-spacing: 6px;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(255,215,0,0.8), 0 0 4px rgba(255,100,0,0.6);
  margin-top: 2px;
}

/* Animated firework emojis */
.topper-spark {
  position: absolute;
  font-size: 24px;
  animation: spark-fly 3s ease-in-out infinite;
  filter: drop-shadow(0 0 6px #FFD700);
}
.topper-spark:nth-child(1) { left: 4%;  top: 20%; animation-delay: 0s;   }
.topper-spark:nth-child(2) { right: 4%; top: 20%; animation-delay: 0.8s; }
.topper-spark:nth-child(3) { left: 16%; top: 55%; animation-delay: 1.6s; font-size:18px; }
.topper-spark:nth-child(4) { right:16%; top: 55%; animation-delay: 2.1s; font-size:18px; }

@keyframes spark-fly {
  0%, 100% { transform: scale(1)   rotate(0deg);  opacity: 0.8; }
  25%       { transform: scale(1.3) rotate(-15deg); opacity: 1;   }
  75%       { transform: scale(0.8) rotate(15deg);  opacity: 0.6; }
}

/* ─────────────────────────────────────────
   GRAND JACKPOT METER  (top, centered, BIG)
───────────────────────────────────────── */
#grand-jackpot {
  width: 100%;
  background: linear-gradient(180deg, #1a0000 0%, #0d0000 100%);
  border-bottom: 2px solid var(--gold-dark);
  padding: 6px 12px 4px;
  text-align: center;
  position: relative;
}
#grand-jackpot::before {
  content: 'GRAND JACKPOT';
  display: block;
  font-family: 'Orbitron', monospace;
  font-size: 9px; letter-spacing: 4px;
  color: var(--gold-dark); margin-bottom: 2px;
}

#grand-value {
  font-family: 'Orbitron', monospace;
  font-size: clamp(26px, 7vw, 42px);
  font-weight: 900;
  color: var(--gold);
  text-shadow:
    0 0 8px rgba(255,215,0,0.9),
    0 0 20px rgba(255,165,0,0.6),
    0 0 40px rgba(255,100,0,0.3);
  animation: jackpot-tick 0.1s ease-in-out;
  background: linear-gradient(180deg, #FFF5B0 0%, #FFD700 50%, #FFA500 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px rgba(255,200,0,0.9));
  line-height: 1;
  padding: 4px 0 6px;
}

/* ─────────────────────────────────────────
   THREE SUB-JACKPOT METERS  (mini, major, minor)
───────────────────────────────────────── */
#sub-jackpots {
  display: flex;
  width: 100%;
  border-bottom: 2px solid var(--gold-dark);
}

.sub-jp {
  flex: 1;
  display: flex; flex-direction: column; align-items: center;
  padding: 5px 4px;
  position: relative;
  border-right: 1px solid rgba(255,215,0,0.15);
}
.sub-jp:last-child { border-right: none; }

.sub-jp-label {
  font-family: 'Orbitron', monospace;
  font-size: 7px; letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.sub-jp-value {
  font-family: 'Orbitron', monospace;
  font-size: clamp(14px, 3.5vw, 20px);
  font-weight: 900;
  line-height: 1;
}

/* Mini — cyan/blue */
.sub-jp.mini {
  background: linear-gradient(180deg, #001a26 0%, #000d14 100%);
}
.sub-jp.mini .sub-jp-label { color: var(--cyan); }
.sub-jp.mini .sub-jp-value {
  color: var(--cyan);
  text-shadow: 0 0 8px rgba(0,229,255,0.8), 0 0 20px rgba(0,229,255,0.4);
  background: linear-gradient(180deg, #ccffff, #00E5FF);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 6px rgba(0,229,255,0.9));
}

/* Major — neon green */
.sub-jp.major {
  background: linear-gradient(180deg, #001a0a 0%, #000d04 100%);
  border-left: 1px solid rgba(0,255,136,0.2);
  border-right: 1px solid rgba(0,255,136,0.2);
}
.sub-jp.major .sub-jp-label { color: var(--green-neon); }
.sub-jp.major .sub-jp-value {
  color: var(--green-neon);
  text-shadow: 0 0 8px rgba(0,255,136,0.8), 0 0 20px rgba(0,255,136,0.4);
  background: linear-gradient(180deg, #ccffe8, #00FF88);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 6px rgba(0,255,136,0.9));
}

/* Bonus — magenta */
.sub-jp.bonus-jp {
  background: linear-gradient(180deg, #1a001a 0%, #0d000d 100%);
}
.sub-jp.bonus-jp .sub-jp-label { color: var(--magenta); }
.sub-jp.bonus-jp .sub-jp-value {
  color: var(--magenta);
  text-shadow: 0 0 8px rgba(255,0,255,0.8), 0 0 20px rgba(255,0,255,0.4);
  background: linear-gradient(180deg, #ffccff, #FF00FF);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 6px rgba(255,0,255,0.9));
}

/* ─────────────────────────────────────────
   BONUS SYMBOL ROW  (above reels)
───────────────────────────────────────── */
#bonus-symbols-row {
  width: 100%;
  display: flex; gap: 6px;
  padding: 8px 10px;
  background: linear-gradient(180deg, #1a0800 0%, #0d0400 100%);
  border-bottom: 2px solid rgba(255,215,0,0.25);
  align-items: flex-end;
}

.bonus-sym-item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  position: relative;
}

.bonus-sym-badge {
  font-family: 'Orbitron', monospace;
  font-size: clamp(7px, 1.5vw, 10px);
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 6px;
  border-radius: 4px;
  text-align: center;
  width: 100%;
}

.bonus-sym-icon {
  width: 100%;
  aspect-ratio: 1/1.15;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}

.bonus-sym-icon img {
  width: 85%; height: 85%;
  object-fit: contain;
  filter: drop-shadow(0 0 8px var(--bonus-glow, #FFD700));
  animation: bonus-float 2.5s ease-in-out infinite;
}
.bonus-sym-item:nth-child(2) .bonus-sym-icon img { animation-delay: 0.6s; }
.bonus-sym-item:nth-child(3) .bonus-sym-icon img { animation-delay: 1.2s; }

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

/* Green — BULL RUN */
.bonus-sym-item.green-bonus .bonus-sym-badge {
  background: rgba(0,100,0,0.6); color: #00FF88;
  border: 1px solid rgba(0,255,136,0.4);
  text-shadow: 0 0 6px #00FF88;
}
.bonus-sym-item.green-bonus .bonus-sym-icon {
  background: radial-gradient(135deg, #001a00 0%, #000a00 100%);
  border-color: #00FF88;
  box-shadow: 0 0 12px rgba(0,255,136,0.3), inset 0 0 10px rgba(0,255,136,0.05);
  --bonus-glow: #00FF88;
}

/* Magenta — BIG BANG */
.bonus-sym-item.mag-bonus .bonus-sym-badge {
  background: rgba(100,0,100,0.6); color: #FF00FF;
  border: 1px solid rgba(255,0,255,0.4);
  text-shadow: 0 0 6px #FF00FF;
}
.bonus-sym-item.mag-bonus .bonus-sym-icon {
  background: radial-gradient(135deg, #1a001a 0%, #0d000d 100%);
  border-color: #FF00FF;
  box-shadow: 0 0 12px rgba(255,0,255,0.3), inset 0 0 10px rgba(255,0,255,0.05);
  --bonus-glow: #FF00FF;
}

/* Cyan — SPIN BOOST */
.bonus-sym-item.cyan-bonus .bonus-sym-badge {
  background: rgba(0,60,80,0.6); color: #00E5FF;
  border: 1px solid rgba(0,229,255,0.4);
  text-shadow: 0 0 6px #00E5FF;
}
.bonus-sym-item.cyan-bonus .bonus-sym-icon {
  background: radial-gradient(135deg, #001a26 0%, #000d14 100%);
  border-color: #00E5FF;
  box-shadow: 0 0 12px rgba(0,229,255,0.3), inset 0 0 10px rgba(0,229,255,0.05);
  --bonus-glow: #00E5FF;
}

/* ─────────────────────────────────────────
   MAIN REEL FRAME
───────────────────────────────────────── */
#reel-section {
  width: 100%;
  padding: 6px 8px 8px;
  background: linear-gradient(180deg, #0d0004 0%, #050000 100%);
  position: relative;
  /* prevent any height reflow during spin */
  contain: layout;
}

#reel-frame {
  border: 3px solid var(--gold);
  border-radius: 6px;
  background: linear-gradient(180deg, #1a0005 0%, #0d0003 100%);
  box-shadow:
    0 0 0 1px rgba(255,215,0,0.15),
    0 0 20px rgba(255,100,0,0.2),
    inset 0 0 30px rgba(0,0,0,0.9);
  position: relative;
  overflow: hidden;
}

/* Corner decorations on reel frame */
#reel-frame::before {
  content: '◆';
  position: absolute; top: -2px; left: -2px;
  color: var(--gold); font-size: 14px; line-height: 1;
  filter: drop-shadow(0 0 4px var(--gold));
}

/* Top gradient fade */
#reel-frame-fade-top {
  position: absolute; top: 0; left: 0; right: 0; height: 30px;
  background: linear-gradient(180deg, rgba(10,0,4,0.85), transparent);
  z-index: 20; pointer-events: none; border-radius: 4px 4px 0 0;
}
#reel-frame-fade-bot {
  position: absolute; bottom: 0; left: 0; right: 0; height: 30px;
  background: linear-gradient(0deg, rgba(10,0,4,0.85), transparent);
  z-index: 20; pointer-events: none;
}

/* Payline indicator line */
#payline-indicator {
  position: absolute; left: 0; right: 0;
  top: 50%; transform: translateY(-50%);
  height: calc(100% / 5);
  border-top: 1px solid rgba(255,215,0,0.12);
  border-bottom: 1px solid rgba(255,215,0,0.12);
  pointer-events: none; z-index: 15;
}

#reels-container {
  display: flex; gap: 4px;
  padding: 4px;
  position: relative; z-index: 10;
  /* Lock height so reel section never grows during spin */
  height: 408px;         /* 400px reels + 8px padding */
  align-items: flex-start;
}

.reel-col {
  flex: 1;
  height: 400px;         /* 5 rows × 80px = 400px fixed */
  overflow: hidden;
  position: relative;
  border-radius: 4px;
  background: rgba(0,0,0,0.5);
}

.reel-strip {
  display: flex; flex-direction: column;
  will-change: transform;
}

.reel-cell {
  width: 100%;
  height: 80px;          /* matches CELL_H constant in JS */
  min-height: 80px;
  max-height: 80px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  flex-shrink: 0;
  padding: 3px;
  border-bottom: 1px solid rgba(255,100,0,0.12);
}

.reel-cell .symbol-inner {
  width: 100%; height: 100%;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}

/* ─────────────────────────────────────────
   SYMBOLS (IMAGE-FIRST)
───────────────────────────────────────── */
.sym {
  width: 100%; height: 100%;
  display: flex; align-items: flex-end; justify-content: center;
  border-radius: 8px;
  position: relative; overflow: hidden;
  border: 1px solid transparent;
  transition: filter 0.2s, box-shadow 0.2s;
  background: #0d0003;
}

.sym::before {
  content: '';
  position: absolute; inset: 0; border-radius: 8px;
  background: radial-gradient(circle at 50% 55%, var(--sym-glow, #FFD700), transparent 68%);
  opacity: 0.14; pointer-events: none; z-index: 0;
}

.sym-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain; object-position: center;
  z-index: 1; padding: 5px;
  filter: drop-shadow(0 2px 6px var(--sym-glow, #FFD700));
  transition: filter 0.2s, transform 0.2s;
}

.sym-emoji {
  position: absolute;
  font-size: clamp(32px, 9vw, 60px);
  z-index: 1;
  left: 50%; top: 50%;
  transform: translate(-50%, -55%);
  filter: drop-shadow(0 0 8px var(--sym-glow, #FF00FF));
}

.sym-label {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  font-family: 'Orbitron', monospace;
  font-size: clamp(6px, 1.4vw, 10px);
  font-weight: 800; letter-spacing: 1px;
  text-transform: uppercase; text-align: center;
  padding: 2px 2px 3px;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(2px);
  border-radius: 0 0 7px 7px;
  color: var(--sym-glow, #FFD700);
  text-shadow: 0 0 5px var(--sym-glow, #FFD700);
}

/* Per-symbol colours */
.sym-tesla   { border-color: #e82127; --sym-glow: #e82127; }
.sym-cashcat { border-color: #FFD700; --sym-glow: #FFD700; }
.sym-burn    { border-color: #FF6A00; --sym-glow: #FF6A00; }
.sym-nvidia  { border-color: #76b900; --sym-glow: #76b900; }
.sym-bars    { border-color: #FFC107; --sym-glow: #FFC107; }
.sym-btc     { border-color: #F7931A; --sym-glow: #F7931A; }
.sym-eth     { border-color: #627EEA; --sym-glow: #627EEA; }
.sym-wild    { border-width: 2px; animation: wild-border 1.5s linear infinite; --sym-glow: #FF00FF; }
.sym-scatter { border-color: #FFD700; border-width: 2px; --sym-glow: #FFD700;
               animation: scatter-pulse 1.8s ease-in-out infinite; }
.sym-grand   { border-color: #FFD700; border-width: 2px; --sym-glow: #FFD700;
               animation: scatter-pulse 1.4s ease-in-out infinite; }
.sym-grand .sym-img { animation: scatter-float 1.8s ease-in-out infinite;
               filter: drop-shadow(0 0 10px #FFD700); }

/* Enlarged symbol art: WILD, BONUS scatter, CASHCAT */
.sym-scatter .sym-img,
.sym-cashcat .sym-img {
  inset: -8%;
  width: 116%; height: 116%;
  padding: 0;
}
/* WILD: centered and scaled up */
.sym-wild .sym-img {
  inset: 0;
  width: 100%; height: 100%;
  padding: 0;
  object-fit: contain;
  object-position: center center;
  transform: scale(1.38);
  transform-origin: center center;
}
.sym-wild .sym-emoji { font-size: clamp(42px, 12vw, 78px); }



@keyframes wild-border {
  0%,100% { border-color:#FF00FF; box-shadow:0 0 8px #FF00FF; }
  25%      { border-color:#00FFFF; box-shadow:0 0 8px #00FFFF; }
  50%      { border-color:#FFD700; box-shadow:0 0 8px #FFD700; }
  75%      { border-color:#00FF88; box-shadow:0 0 8px #00FF88; }
}
.sym-wild .sym-emoji { animation: wild-pulse 1.2s ease-in-out infinite; }
@keyframes wild-pulse {
  0%,100% { filter: drop-shadow(0 0 8px #FF00FF) brightness(1);   }
  50%      { filter: drop-shadow(0 0 18px #FF00FF) brightness(1.4); }
}

@keyframes scatter-pulse {
  0%,100% { box-shadow: 0 0 8px color-mix(in srgb, var(--sym-glow, #FFD700) 50%, transparent); }
  50%      { box-shadow: 0 0 20px var(--sym-glow, #FFD700), 0 0 40px color-mix(in srgb, var(--sym-glow, #FFD700) 50%, transparent); }
}
.sym-scatter .sym-img { animation: scatter-float-bonus 2s ease-in-out infinite; }
@keyframes scatter-float-bonus {
  0%,100% { transform: translateY(0)  scale(1.14); }
  50%      { transform: translateY(-3px) scale(1.19); }
}

@keyframes scatter-float {
  0%,100% { transform: translateY(0)  scale(1);    }
  50%      { transform: translateY(-3px) scale(1.04); }
}

/* Win highlight */
.reel-cell.win-cell .symbol-inner { animation: win-pop 0.35s ease forwards; }
@keyframes win-pop {
  0%   { transform: scale(1);    }
  55%  { transform: scale(1.16); filter: brightness(1.8); }
  100% { transform: scale(1.07); }
}
.reel-cell.win-cell .sym {
  animation: win-glow 1.3s ease-in-out infinite;
}
@keyframes win-glow {
  0%,100% { box-shadow: 0 0 6px var(--sym-glow,#FFD700); }
  50%      { box-shadow: 0 0 28px var(--sym-glow,#FFD700), 0 0 50px var(--sym-glow,#FFD700); }
}
.reel-cell.win-cell .sym-img {
  animation: win-img-glow 1.3s ease-in-out infinite;
}
@keyframes win-img-glow {
  0%,100% { filter: drop-shadow(0 0 5px var(--sym-glow,#FFD700)); }
  50%      { filter: drop-shadow(0 0 18px var(--sym-glow,#FFD700)) brightness(1.5); }
}

/* Win line overlay */
#win-line { display: none; }

/* ── Payline flash — cycles one line at a time after a win ── */
.reel-cell.line-flash {
  z-index: 12;
}
.reel-cell.line-flash .symbol-inner {
  outline: 2px solid #fff;
  outline-offset: -2px;
  border-radius: 8px;
  animation: line-flash-pop 0.9s ease-in-out infinite;
}
.reel-cell.line-flash .sym {
  animation: line-flash-glow 0.9s ease-in-out infinite;
}
.reel-cell.line-flash .sym-img {
  animation: line-flash-img 0.9s ease-in-out infinite;
}
@keyframes line-flash-pop {
  0%,100% { transform: scale(1.0); }
  50%      { transform: scale(1.12); filter: brightness(1.6); }
}
@keyframes line-flash-glow {
  0%,100% { box-shadow: 0 0 8px var(--sym-glow,#FFD700); }
  50%      { box-shadow: 0 0 30px var(--sym-glow,#FFD700), 0 0 55px var(--sym-glow,#FFD700); }
}
@keyframes line-flash-img {
  0%,100% { filter: drop-shadow(0 0 6px var(--sym-glow,#FFD700)); }
  50%      { filter: drop-shadow(0 0 22px var(--sym-glow,#FFD700)) brightness(1.6); }
}

/* ─────────────────────────────────────────
   CREDITS / WIN / BET METER STRIP
───────────────────────────────────────── */
#meter-strip {
  width: 100%;
  display: flex;
  background: #000;
  border-top: 2px solid rgba(255,215,0,0.2);
  border-bottom: 2px solid rgba(255,215,0,0.2);
}

.meter-cell {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 5px 4px;
  border-right: 1px solid rgba(255,100,0,0.15);
  background: linear-gradient(180deg, #0d0000, #050000);
}
.meter-cell:last-child { border-right: none; }

.meter-label {
  font-family: 'Orbitron', monospace;
  font-size: 7px; letter-spacing: 2px; color: #555;
  text-transform: uppercase; margin-bottom: 2px;
}

.meter-value {
  font-family: 'Orbitron', monospace;
  font-size: clamp(13px, 3.5vw, 20px);
  font-weight: 700;
  color: #FF3333;
  text-shadow: 0 0 6px rgba(255,50,50,0.6);
  letter-spacing: 1px;
  transition: color 0.2s;
}
.meter-value.highlight { color: var(--gold); text-shadow: 0 0 8px rgba(255,215,0,0.8); }

/* SFX + MUSIC 3-level volume buttons (inside the meter strip, same height) */
#vol-btns { display: flex; gap: 3px; align-items: center; }
.vol-btn {
  display: flex; align-items: center; gap: 3px;
  padding: 2px 4px; height: 20px;
  border: 1px solid rgba(255,215,0,0.35);
  border-radius: 5px;
  background: linear-gradient(180deg, #241a00, #0a0700);
  box-shadow: 0 2px 0 rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.08);
  color: var(--gold);
  cursor: pointer;
  line-height: 1;
  transition: transform 80ms ease, box-shadow 80ms ease, filter 120ms ease;
}
.vol-btn:hover { filter: brightness(1.2); }
.vol-btn:active { transform: translateY(2px); box-shadow: inset 0 2px 5px rgba(0,0,0,0.7); }
.vol-btn .vb-ic { font-size: 10px; }
.vol-btn .vb-bars { display: flex; align-items: flex-end; gap: 1.5px; height: 11px; }
.vol-btn .vb-bars i { width: 2.5px; background: rgba(255,215,0,0.18); border-radius: 1px; }
.vol-btn .vb-bars i:nth-child(1) { height: 4px; }
.vol-btn .vb-bars i:nth-child(2) { height: 7.5px; }
.vol-btn .vb-bars i:nth-child(3) { height: 11px; }
.vol-btn .vb-bars i.on { background: var(--gold); box-shadow: 0 0 5px rgba(255,215,0,0.8); }
.vol-btn.muted { color: #777; border-color: rgba(255,255,255,0.15); opacity: 0.75; }
.meter-value.win-flash { animation: meter-win 0.4s ease; }
@keyframes meter-win {
  0%,100% { transform: scale(1);   color: #FF3333; }
  50%      { transform: scale(1.2); color: var(--gold); }
}
.meter-value.win-pop {
  animation: meter-win-pop 0.78s cubic-bezier(0.2, 1.5, 0.35, 1) both;
  transform-origin: center;
  will-change: transform;
}
@keyframes meter-win-pop {
  0%   { transform: scale(0.5);  color: var(--gold); text-shadow: none; opacity: 0.4; }
  22%  { transform: scale(2.05); color: #FFF3B0; text-shadow: 0 0 14px rgba(255,215,0,0.95), 0 0 34px rgba(255,215,0,0.6); opacity: 1; }
  45%  { transform: scale(1.55); color: var(--gold); text-shadow: 0 0 10px rgba(255,215,0,0.8); }
  68%  { transform: scale(1.85); color: #FFF3B0; text-shadow: 0 0 14px rgba(255,215,0,0.95); }
  100% { transform: scale(1);    color: var(--gold); text-shadow: 0 0 6px rgba(255,215,0,0.5); }
}

/* ─────────────────────────────────────────
   MESSAGE BAR
───────────────────────────────────────── */
#msg-bar {
  width: 100%;
  padding: 5px 12px;
  background: linear-gradient(90deg, #050000, #0d0004, #050000);
  border-bottom: 1px solid rgba(255,100,0,0.2);
  text-align: center;
  min-height: 30px;
  display: flex; align-items: center; justify-content: center;
}
#msg-text {
  font-family: 'Orbitron', monospace;
  font-size: clamp(9px, 2vw, 13px);
  color: var(--gold-light);
  text-shadow: 0 0 8px rgba(255,215,0,0.4);
  letter-spacing: 1px;
}
#msg-text.win-msg   { color: #00FF88; text-shadow: 0 0 10px #00FF88; animation: msg-in 0.25s ease; }
#msg-text.big-win   { color: var(--gold); text-shadow: 0 0 16px var(--gold); animation: msg-in 0.25s ease, msg-blink 0.5s ease-in-out infinite; }
#msg-text.bonus-msg { color: var(--magenta); text-shadow: 0 0 12px var(--magenta); animation: msg-in 0.25s ease; }
#msg-text.loss-msg  { color: #555; }
@keyframes msg-in {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes msg-blink { 0%,100% { opacity:1; } 50% { opacity:0.55; } }

/* ─────────────────────────────────────────
   CONTROL DECK  (angled button area)
───────────────────────────────────────── */
#control-deck {
  width: 100%;
  background: linear-gradient(180deg, #111 0%, #0d0d0d 100%);
  border-top: 3px solid var(--gold);
  padding: 12px 14px 14px;
  display: flex; flex-direction: column; gap: 10px;
  position: relative;
}

/* Gold top edge accent */
#control-deck::before {
  content: '';
  position: absolute; top: 0; left: 10%; right: 10%; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  filter: blur(2px);
}

/* BET ROW — fixed 100 $JCKPT, no adjusters */
#bet-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: nowrap;
  justify-content: space-between;
}

.ctrl-label {
  font-family: 'Orbitron', monospace;
  font-size: 8px; color: #555; letter-spacing: 2px; text-transform: uppercase;
}

#bet-display-box {
  flex: 1;
  background: linear-gradient(180deg, #0d0000, #050000);
  border: 1px solid rgba(255,215,0,0.3);
  border-radius: 6px;
  padding: 5px 12px;
  text-align: center;
  font-family: 'Orbitron', monospace;
  font-size: clamp(12px, 3vw, 15px);
  font-weight: 700;
  color: var(--gold);
  text-shadow: 0 0 6px rgba(255,215,0,0.6);
}

#free-spin-badge {
  margin-left: auto;
  display: flex; flex-direction: column; align-items: center;
  padding: 4px 10px;
  background: linear-gradient(135deg, #1a001a, #0d000d);
  border: 1px solid rgba(255,0,255,0.4); border-radius: 8px;
  opacity: 0; transition: opacity 0.3s;
  display: none;
}
#free-spin-badge.active { opacity: 1; display: flex; animation: fs-badge-glow 1.5s ease-in-out infinite; }
@keyframes fs-badge-glow { 0%,100% { box-shadow: 0 0 8px rgba(255,0,255,0.4); } 50% { box-shadow: 0 0 20px rgba(255,0,255,0.9); } }
#free-spin-badge .fs-lbl { font-family:'Orbitron',monospace; font-size:7px; color:#b06cff; letter-spacing:2px; }
#free-spin-badge .fs-cnt { font-family:'Orbitron',monospace; font-size:20px; color:#FF00FF; font-weight:900; text-shadow:0 0 8px #FF00FF; line-height:1; }

/* MAIN SPIN BUTTON + side buttons */
#spin-row {
  display: flex; align-items: center; gap: 10px;
}

#spin-btn {
  flex: 1;
  height: clamp(52px, 12vw, 66px);
  background: radial-gradient(ellipse at 50% 30%,
    #00bb44 0%, #007a2a 45%, #004d1a 80%, #002a0d 100%);
  border: 2px solid #00FF88;
  border-radius: 14px;
  font-family: 'Black Ops One', sans-serif;
  font-size: clamp(14px, 3.5vw, 20px);
  color: #fff;
  text-shadow: 0 0 12px rgba(0,255,136,0.8), 0 2px 4px rgba(0,0,0,0.8);
  cursor: pointer;
  box-shadow:
    0 0 20px rgba(0,200,70,0.35),
    0 4px 12px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.1);
  letter-spacing: 2px; text-transform: uppercase;
  transition: all 0.12s; position: relative; overflow: hidden;
}
#spin-btn::before {
  content: '';
  position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  transition: left 0.6s;
}
#spin-btn:not(:disabled):hover::before { left: 140%; }
#spin-btn:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0,255,100,0.5), 0 8px 20px rgba(0,0,0,0.6);
}
#spin-btn:not(:disabled):active { transform: translateY(1px); }
#spin-btn:disabled {
  opacity: 0.4; cursor: not-allowed;
  background: radial-gradient(ellipse at 50% 30%, #222, #111);
  border-color: #333; text-shadow: none;
}
#spin-btn.spinning-state {
  background: radial-gradient(ellipse at 50% 30%, #bb0022, #7a0015, #3d000a);
  border-color: #FF2244;
  text-shadow: 0 0 10px rgba(255,50,80,0.8);
  box-shadow: 0 0 20px rgba(255,50,80,0.4);
}

.side-btn {
  width: 52px; height: clamp(52px, 12vw, 66px);
  background: radial-gradient(ellipse at 50% 30%, #222, #111);
  border: 2px solid rgba(255,215,0,0.3);
  border-radius: 10px;
  font-family: 'Orbitron', monospace;
  font-size: 9px; color: #888; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; letter-spacing: 0.5px;
  transition: all 0.12s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.side-btn span:first-child { font-size: 18px; }
.side-btn:hover { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 12px rgba(255,215,0,0.3); }

/* CASH OUT — same button size/art, green text that pulses on/off */
.side-btn.cashout-btn { color: #00ff88; }
.side-btn.cashout-btn:hover { color: #00ff88; border-color: #00ff88; box-shadow: 0 0 12px rgba(0,255,136,0.35); }
.side-btn.cashout-btn .co-text {
  font-size: 8px; line-height: 1.05; text-align: center;
  letter-spacing: 0.5px; color: #00ff88;
  position: relative; top: -3px;
  animation: cashout-blink 1.3s ease-in-out infinite;
}
@keyframes cashout-blink {
  0%,100% { opacity: 1; text-shadow: 0 0 8px rgba(0,255,136,0.8); }
  50% { opacity: 0.45; text-shadow: none; }
}

.side-btn.active {
  border-color: var(--magenta); color: var(--magenta);
  box-shadow: 0 0 16px rgba(255,0,255,0.4);
  animation: side-active 1.5s ease-in-out infinite;
}
@keyframes side-active { 0%,100% { box-shadow:0 0 16px rgba(255,0,255,0.4); } 50% { box-shadow:0 0 28px rgba(255,0,255,0.8); } }

/* BOTTOM INFO */
#bottom-info {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 6px;
}
.bi-stat {
  font-family: 'Orbitron', monospace;
  font-size: 8px; color: #444; letter-spacing: 1px;
  display: flex; gap: 4px;
}
.bi-stat span { color: #FF3333; text-shadow: 0 0 4px rgba(255,50,50,0.5); }
#add-tokens-btn {
  padding: 5px 12px;
  background: linear-gradient(135deg, #1a1400, #0d0a00);
  border: 1px solid rgba(255,215,0,0.3);
  border-radius: 6px;
  font-family: 'Orbitron', monospace;
  font-size: 9px; color: var(--gold); cursor: pointer;
  letter-spacing: 1px; transition: all 0.12s;
}
#add-tokens-btn:hover { box-shadow: 0 0 10px rgba(255,215,0,0.3); border-color: var(--gold); }

/* ─────────────────────────────────────────
   PAYTABLE (collapsible)
───────────────────────────────────────── */
#paytable-section {
  width: 100%;
  background: linear-gradient(180deg, #0a0003, #050001);
  border-top: 1px solid rgba(255,215,0,0.15);
}
#paytable-toggle-btn {
  width: 100%; padding: 8px 14px;
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  font-family: 'Orbitron', monospace; font-size: 10px;
  color: rgba(255,215,0,0.5); letter-spacing: 2px;
  text-transform: uppercase;
  transition: color 0.15s;
}
#paytable-toggle-btn:hover { color: var(--gold); }
#pt-arrow { transition: transform 0.3s; font-size: 12px; }
#pt-arrow.open { transform: rotate(180deg); }

#paytable-body {
  max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
}
#paytable-body.open { max-height: 700px; }

#pt-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5px; padding: 8px 10px;
}
.pt-row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 6px; transition: border-color 0.2s;
}
.pt-row:hover { border-color: rgba(255,215,0,0.25); }
.pt-sym-img {
  width: 38px; height: 38px;
  object-fit: contain; border-radius: 5px;
  background: #0d0003; padding: 2px;
}
.pt-info { flex: 1; }
.pt-name { font-family:'Orbitron',monospace; font-size:8px; color:#666; letter-spacing:1px; }
.pt-pays { font-family:'Orbitron',monospace; font-size:9px; color:var(--gold); }

#pt-bonus-info {
  padding: 8px 10px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5px;
  border-top: 1px solid rgba(255,215,0,0.1);
}
.pt-bonus-card {
  padding: 7px 8px;
  border-radius: 6px;
  border: 1px solid transparent;
}
.pt-bonus-card h4 { font-family:'Orbitron',monospace; font-size:8px; letter-spacing:1px; margin-bottom:3px; }
.pt-bonus-card p  { font-family:'Rajdhani',sans-serif; font-size:11px; color:#888; line-height:1.3; }

.pt-bonus-card.bc-green  { background:rgba(0,255,136,0.05); border-color:rgba(0,255,136,0.2); }
.pt-bonus-card.bc-green h4 { color:#00FF88; }
.pt-bonus-card.bc-mag    { background:rgba(255,0,255,0.05); border-color:rgba(255,0,255,0.2); }
.pt-bonus-card.bc-mag h4 { color:#FF00FF; }
.pt-bonus-card.bc-cyan   { background:rgba(0,229,255,0.05); border-color:rgba(0,229,255,0.2); }
.pt-bonus-card.bc-cyan h4 { color:#00E5FF; }
.pt-bonus-card.bc-gold   { background:rgba(255,215,0,0.05); border-color:rgba(255,215,0,0.2); }
.pt-bonus-card.bc-gold h4 { color:var(--gold); }

/* ─────────────────────────────────────────
   WIN OVERLAY
───────────────────────────────────────── */
#win-overlay {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; pointer-events: none; opacity: 0; transition: opacity 0.25s;
}
#win-overlay.show { opacity: 1; pointer-events: all; }

#win-popup {
  background: linear-gradient(135deg, #0d1400, #1a0005, #0d0d00);
  border: 3px solid var(--gold);
  border-radius: 16px; padding: 0;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 0 60px rgba(255,200,0,0.5), 0 0 120px rgba(255,100,0,0.2);
  max-width: 420px; width: 88%;
  transform: scale(0.5);
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.win-body { padding: 28px 36px; }
.win-video { display: none; }
#win-popup.cashout-mode {
  border: 3px solid transparent;
  background:
    linear-gradient(135deg, #0d1400, #1a0005, #0d0d00) padding-box,
    linear-gradient(145deg, #ffffff 0%, #c9d2d8 18%, #7c8792 38%, #f2f5f7 52%, #9aa5ae 70%, #dfe6ea 86%, #6f7a85 100%) border-box;
  box-shadow:
    0 10px 28px rgba(0,0,0,0.7),
    0 28px 65px rgba(0,0,0,0.75),
    0 60px 130px rgba(0,0,0,0.8);
}
#win-popup.cashout-mode .win-video {
  display: block; width: 100%; height: auto; margin: 0;
  border-bottom: none;
  pointer-events: none;
}
#win-popup.cashout-mode .win-title { display: none; }

/* Cash-out swoosh: fade in + spin into place, timed to the swoosh SFX */
@keyframes co-swoosh-in {
  0%   { opacity: 0; transform: perspective(900px) translateY(60px) scale(0.42) rotate(-220deg); filter: blur(6px); }
  55%  { opacity: 1; transform: perspective(900px) translateY(0) scale(1.06) rotate(8deg); filter: blur(0); }
  75%  { transform: perspective(900px) scale(0.985) rotate(-3deg); }
  100% { opacity: 1; transform: perspective(900px) scale(1) rotate(0deg); filter: blur(0); }
}
#win-popup.co-swoosh {
  animation: co-swoosh-in 0.85s cubic-bezier(0.18, 0.9, 0.24, 1) both;
}
@media (prefers-reduced-motion: reduce) {
  #win-popup.co-swoosh { animation: none; }
}

/* CASH OUT AMOUNT PICKER */
#cashout-picker { display: none; }
#win-popup.cashout-select #cashout-picker { display: block; margin-top: 14px; }
#win-popup.cashout-select #win-collect-btn { display: none; }
.co-presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.co-preset {
  padding: 8px 0; border-radius: 8px; cursor: pointer;
  font-family: 'Orbitron', monospace; font-size: 11px; letter-spacing: 1px;
  color: #cfd8de; border: 1px solid rgba(200,215,225,0.35);
  background: linear-gradient(180deg, #2a2f33, #14171a);
  box-shadow: 0 3px 0 rgba(0,0,0,0.5); transition: all 0.1s;
}
.co-preset:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0,0,0,0.5); }
.co-preset.active {
  color: #04120a; border-color: #00FF88;
  background: linear-gradient(180deg, #7dffc0, #00c96b);
  box-shadow: 0 0 14px rgba(0,255,136,0.45);
}
.co-slider {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px; margin: 14px 0 4px;
  border-radius: 6px; background: linear-gradient(90deg, #00c96b, #cfd8de); outline: none;
}
.co-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: linear-gradient(180deg, #ffffff, #8f9aa4); border: 2px solid #00FF88;
  box-shadow: 0 2px 6px rgba(0,0,0,0.6); cursor: pointer;
}
.co-slider::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: linear-gradient(180deg, #ffffff, #8f9aa4); border: 2px solid #00FF88;
  box-shadow: 0 2px 6px rgba(0,0,0,0.6); cursor: pointer;
}
.co-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.co-actions .win-close-btn { margin-top: 0; padding: 10px 0; }
.co-cancel { background: linear-gradient(135deg,#2a2a2a,#111); border-color: rgba(200,215,225,0.4); box-shadow: none; }
#win-popup.cashout-mode .win-body { padding: 18px 24px 24px; }
#win-overlay.show #win-popup { transform: scale(1); }

.win-title { font-family:'Black Ops One',sans-serif; font-size:clamp(22px,6vw,36px);
  background:linear-gradient(180deg,#FFF5B0,#FFD700,#FFA500);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent;
  filter:drop-shadow(0 0 10px rgba(255,200,0,0.8)); margin-bottom:8px; }
.win-amount { font-family:'Orbitron',monospace; font-size:clamp(38px,9vw,64px); font-weight:900;
  color:#00FF88; text-shadow:0 0 20px #00FF88, 0 0 40px rgba(0,255,136,0.4); animation:win-amt-pop 0.4s ease; }
@keyframes win-amt-pop { 0%{transform:scale(0.5);opacity:0;} 100%{transform:scale(1);opacity:1;} }
.win-ticker { display:none; }
#win-popup.cashout-mode .win-ticker { display:inline; margin-left:.28em; font-size:0.55em;
  color:#FFD700; text-shadow:0 0 14px rgba(255,200,0,.7); letter-spacing:1px; vertical-align:baseline; }
.win-sub { font-family:'Orbitron',monospace; font-size:12px; color:var(--gold-light); margin-top:5px; letter-spacing:2px; }
.win-close-btn { margin-top:18px; padding:10px 28px;
  background:linear-gradient(135deg,#003300,#006600); border:1px solid #00FF88;
  border-radius:8px; color:#fff; font-family:'Orbitron',monospace; font-size:12px;
  cursor:pointer; letter-spacing:2px; box-shadow:0 0 14px rgba(0,255,136,0.3);
  transition:all 0.12s; }
.win-close-btn:hover { transform:translateY(-2px); box-shadow:0 0 24px rgba(0,255,136,0.6); }

/* ─────────────────────────────────────────
   JACKPOT OVERLAY
───────────────────────────────────────── */
#jackpot-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.96);
  display: flex; align-items: center; justify-content: center;
  z-index: 1100; opacity: 0; pointer-events: none; transition: opacity 0.4s;
}
#jackpot-overlay.show { opacity: 1; pointer-events: all; }
#jackpot-popup { text-align: center; }
.jp-title { font-family:'Black Ops One',sans-serif;
  font-size:clamp(46px,10vw,90px);
  background:linear-gradient(180deg,#FFF5B0,#FFD700,#FFA500,#FF6B00);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent;
  filter:drop-shadow(0 0 20px rgba(255,200,0,1));
  animation:jp-flash 0.3s linear infinite; line-height:0.9; }
@keyframes jp-flash { 0%,100%{filter:drop-shadow(0 0 20px rgba(255,200,0,1));} 50%{filter:drop-shadow(0 0 40px rgba(255,215,0,1)) brightness(1.6);} }
.jp-amount { font-family:'Orbitron',monospace; font-size:clamp(42px,10vw,86px); font-weight:900;
  color:#00FF88; text-shadow:0 0 30px #00FF88, 0 0 60px rgba(0,255,136,0.5); display:block; margin:10px 0; }
.jp-token-label { font-family:'Orbitron',monospace; font-size:16px; color:var(--gold); letter-spacing:3px; }
.jp-sub { font-family:'Rajdhani',sans-serif; font-size:16px; color:#888; margin:8px 0; }
.jp-close-btn { margin-top:28px; padding:12px 38px;
  background:linear-gradient(135deg,#002200,#005500); border:2px solid #00FF88;
  border-radius:12px; color:#fff; font-family:'Orbitron',monospace; font-size:15px;
  cursor:pointer; letter-spacing:2px; box-shadow:0 0 20px rgba(0,255,136,0.4);
  transition:all 0.15s; }
.jp-close-btn:hover { transform:translateY(-2px); box-shadow:0 0 36px rgba(0,255,136,0.8); }

/* ─────────────────────────────────────────
   BONUS CHEST OVERLAY
───────────────────────────────────────── */
#bonus-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.93);
  display: flex; align-items: center; justify-content: center;
  z-index: 900; opacity: 0; pointer-events: none; transition: opacity 0.35s;
}
#bonus-overlay.show { opacity: 1; pointer-events: all; }
#bonus-panel {
  text-align: center; max-width: 460px; width: 90%;
  transform: translateY(24px); transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
#bonus-overlay.show #bonus-panel { transform: translateY(0); }
.bonus-pop-title { font-family:'Black Ops One',sans-serif;
  font-size:clamp(28px,7vw,48px);
  background:linear-gradient(180deg,#FF00FF,#9B59B6,#00FFFF);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent;
  filter:drop-shadow(0 0 14px rgba(255,0,255,0.7));
  animation:bp-glow 1s ease-in-out infinite; margin-bottom:8px; }
@keyframes bp-glow { 0%,100%{filter:drop-shadow(0 0 14px rgba(255,0,255,0.7));} 50%{filter:drop-shadow(0 0 28px rgba(255,0,255,1));} }
.bonus-pop-desc { font-family:'Orbitron',monospace; font-size:clamp(13px,3vw,18px); color:#fff; margin-bottom:5px; }
.bonus-pop-sub  { font-family:'Rajdhani',sans-serif; font-size:clamp(13px,2.5vw,15px); color:#888; margin-bottom:22px; }
/* Animated "select your free game style" prompt */
.bp-select { font-family:'Orbitron',monospace; font-weight:900; letter-spacing:3px;
  font-size:clamp(12px,2.6vw,17px); margin:0 0 14px; min-height:20px;
  text-transform:uppercase; opacity:0; transition:opacity .25s; }
.bp-select.show { opacity:1; }
.bp-sel-ch { display:inline-block; color:#FFD700;
  text-shadow:0 0 10px rgba(255,215,0,.85), 0 0 22px rgba(255,0,255,.45);
  opacity:0; animation:bp-sel-in .45s ease-out forwards, bp-sel-pulse 1.6s ease-in-out infinite 1s; }
@keyframes bp-sel-in { 0%{opacity:0;transform:translateY(14px) scale(.6) rotate(-8deg);} 100%{opacity:1;transform:none;} }
@keyframes bp-sel-pulse { 0%,100%{transform:translateY(0);text-shadow:0 0 10px rgba(255,215,0,.85),0 0 22px rgba(255,0,255,.45);} 50%{transform:translateY(-3px);text-shadow:0 0 18px rgba(255,215,0,1),0 0 34px rgba(255,0,255,.8);} }

/* Chosen style pops out and hovers, others fade back */
.chest-card.chosen { z-index:3; border-color:#FFD700 !important;
  background:linear-gradient(135deg,#1a1400,#0d0a00) !important;
  box-shadow:0 0 32px rgba(255,215,0,.75), 0 18px 34px rgba(0,0,0,.6);
  animation:chest-pop .5s cubic-bezier(.2,1.6,.4,1) forwards, chest-hover 2.2s ease-in-out 0.5s infinite; }
.chest-card.chosen .chest-sym-img { filter:drop-shadow(0 0 18px rgba(255,215,0,1)) brightness(1.25); transform:scale(1.1); }
.chest-card.chosen .chest-lbl { color:#FFD700 !important; text-shadow:0 0 10px #FFD700; font-size:11px !important; }
@keyframes chest-pop { 0%{transform:scale(1);} 55%{transform:scale(1.32) translateY(-14px);} 100%{transform:scale(1.22) translateY(-10px);} }
@keyframes chest-hover { 0%,100%{transform:scale(1.22) translateY(-10px);} 50%{transform:scale(1.24) translateY(-18px);} }
.chest-card.not-chosen { opacity:.4; transform:scale(.9); filter:saturate(.5); }

#chest-grid { display:flex; gap:14px; justify-content:center; flex-wrap:wrap; margin-bottom:18px; }
.chest-card {
  width: 100px; height: 120px;
  background: linear-gradient(135deg,#1a001a,#0d000d);
  border: 2px solid rgba(255,0,255,0.35); border-radius:12px;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:6px; cursor:pointer; transition:all 0.18s;
}
.chest-img-wrap {
  width: 68px; height: 68px;
  display:flex; align-items:center; justify-content:center;
  border-radius:8px;
  background: rgba(0,0,0,0.4);
  padding: 4px;
}
.chest-sym-img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255,0,255,0.6));
  transition: filter 0.2s, transform 0.2s;
}
.chest-card:hover:not(.opened) { transform:translateY(-4px) scale(1.06); border-color:#FF00FF; box-shadow:0 0 18px rgba(255,0,255,0.5); }
.chest-card:hover:not(.opened) .chest-sym-img { filter: drop-shadow(0 0 14px rgba(255,0,255,1)) brightness(1.3); transform: scale(1.08); }
.chest-card .chest-lbl { font-family:'Orbitron',monospace; font-size:8px; color:#b06cff; letter-spacing:1px; }
.chest-card.opened { background:linear-gradient(135deg,#001a0a,#000f05); border-color:#00FF88; cursor:default; }
.chest-card.opened .chest-img-wrap { background: rgba(0,30,10,0.5); }
.chest-card.opened .chest-sym-img { filter: drop-shadow(0 0 10px rgba(0,255,136,0.9)); }
.chest-card.opened .chest-lbl { font-size:9px; color:#00FF88; text-shadow:0 0 6px #00FF88; font-weight:700; }
#chest-start-btn { display:none; padding:12px 36px;
  background:linear-gradient(135deg,#3d0055,#6600aa); border:2px solid #FF00FF;
  border-radius:12px; font-family:'Orbitron',monospace; font-size:14px; font-weight:900;
  color:#fff; cursor:pointer; letter-spacing:2px;
  box-shadow:0 0 18px rgba(255,0,255,0.4); transition:all 0.15s; }
#chest-start-btn:hover { transform:translateY(-2px); box-shadow:0 0 32px rgba(255,0,255,0.7); }

/* ─────────────────────────────────────────
   CONFETTI & COINS
───────────────────────────────────────── */
.confetti-piece {
  position: fixed; width: 8px; height: 8px; top: -10px;
  border-radius: 2px; animation: conf-fall linear forwards;
  z-index: 2000; pointer-events: none;
}
@keyframes conf-fall { 0%{transform:translateY(0) rotate(0deg);opacity:1;} 100%{transform:translateY(110vh) rotate(720deg);opacity:0;} }
.coin-float { position:fixed; font-size:22px; pointer-events:none; z-index:99999; animation:coin-up 1.4s ease forwards; }
@keyframes coin-up { 0%{transform:translateY(0) scale(1);opacity:1;} 100%{transform:translateY(-100px) scale(0.4);opacity:0;} }

/* ─────────────────────────────────────────
   ADMIN FOOTER LINK
───────────────────────────────────────── */
#admin-footer-link {
  width: 100%;
  padding: 10px;
  text-align: center;
  background: #050000;
  border-top: 1px solid rgba(255,215,0,0.08);
}
#admin-footer-link a {
  font-family: 'Orbitron', monospace;
  font-size: 9px;
  color: rgba(255,215,0,0.25);
  text-decoration: none;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color 0.2s;
}
#admin-footer-link a:hover {
  color: rgba(255,215,0,0.7);
  text-shadow: 0 0 8px rgba(255,215,0,0.4);
}

/* ─────────────────────────────────────────
   SCROLLBAR
───────────────────────────────────────── */
::-webkit-scrollbar { width:4px; }
::-webkit-scrollbar-track { background:#050000; }
::-webkit-scrollbar-thumb { background:var(--gold-dark); border-radius:2px; }

/* ── Reel anticipation (build-up while scatters are on screen) ───────────── */
.reel-col.anticipation {
  position: relative;
  z-index: 3;
  animation: antic-glow 0.42s ease-in-out infinite;
  border-radius: 10px;
}
@keyframes antic-glow {
  0%,100% { box-shadow: inset 0 0 22px rgba(255,215,0,0.28), 0 0 14px rgba(255,215,0,0.35); filter: brightness(1.02); }
  50%     { box-shadow: inset 0 0 40px rgba(255,215,0,0.55), 0 0 34px rgba(255,215,0,0.75); filter: brightness(1.18); }
}
.reel-col.anticipation::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 6;
  border: 2px solid rgba(255,215,0,0.85);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,215,0,0.16), rgba(255,140,0,0.05) 55%, rgba(255,215,0,0.16));
  animation: antic-sheen 0.85s linear infinite;
}
@keyframes antic-sheen {
  0%   { opacity: 0.45; }
  50%  { opacity: 0.95; }
  100% { opacity: 0.45; }
}
.reel-col.anticipation-hot { animation-duration: 0.24s; }
.reel-col.anticipation-hot::after {
  border-color: rgba(255,60,60,0.95);
  background: linear-gradient(180deg, rgba(255,60,60,0.22), rgba(255,215,0,0.08) 55%, rgba(255,60,60,0.22));
  animation-duration: 0.4s;
}

.reel-col.scatter-land { animation: scatter-land-flash 0.9s ease-out; }
@keyframes scatter-land-flash {
  0%   { filter: brightness(2.1); box-shadow: 0 0 40px rgba(255,215,0,0.95); }
  100% { filter: brightness(1);   box-shadow: none; }
}
.reel-cell.scatter-pop .symbol-inner { animation: scatter-pop-in 0.75s cubic-bezier(.2,1.5,.35,1) both; }
@keyframes scatter-pop-in {
  0%   { transform: scale(0.7) rotate(-8deg); filter: brightness(2.4); }
  45%  { transform: scale(1.28) rotate(4deg); filter: brightness(1.8) drop-shadow(0 0 18px #FFD700); }
  100% { transform: scale(1.06) rotate(0deg); filter: brightness(1.15) drop-shadow(0 0 10px #FFD700); }
}

/* Anticipation reels rip at double speed — heavy motion blur, then a hard brake */
.reel-col.anticipation.spinning .reel-strip { filter: blur(3px) brightness(1.1); }
.reel-col.hard-stop { animation: hard-stop-jolt 0.22s cubic-bezier(.2,1.7,.3,1); }
@keyframes hard-stop-jolt {
  0%   { transform: translateY(-9px); }
  55%  { transform: translateY(5px);  }
  80%  { transform: translateY(-2px); }
  100% { transform: translateY(0);    }
}

/* =============================================
   VAULT INTRO — RETRO TV SEGMENT
   ============================================= */
#vault-intro {
  position: fixed; inset: 0; z-index: 9998;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 45%, rgba(0,60,20,0.92), rgba(0,0,0,0.97));
  opacity: 0; pointer-events: none;
  transform: translateY(-8%);
  transition: opacity .32s ease, transform .45s cubic-bezier(.2,1.4,.4,1);
}
#vault-intro.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
#vault-intro-inner {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  width: min(92vw, 560px);
}
#vault-tv { position: relative; width: 100%; filter: drop-shadow(0 0 40px rgba(0,255,120,0.35)); }
#vault-tv-frame { width: 100%; display: block; }
#vault-tv-screen {
  position: absolute; left: 14.4%; top: 29.6%; width: 50.4%; height: 38%;
  overflow: hidden; border-radius: 14px; background: #000;
  box-shadow: inset 0 0 30px rgba(0,0,0,0.9);
}
#vault-tv-screen .vault-clip {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transform: scale(1.12);
  transition: opacity .28s linear;
  animation: vault-clip-zoom 2.4s ease-in-out infinite alternate;
}
#vault-tv-screen .vault-clip.on { opacity: 1; }
@keyframes vault-clip-zoom { from { transform: scale(1.06); } to { transform: scale(1.18); } }
#vault-tv-scan {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,0.07) 0 1px, transparent 1px 3px);
  animation: vault-flicker .18s steps(2) infinite;
}
@keyframes vault-flicker { 0%{opacity:.55;} 100%{opacity:.9;} }

#vault-intro-title {
  font-family: 'Bungee', 'Impact', sans-serif;
  font-size: clamp(20px, 6vw, 42px);
  letter-spacing: 2px; text-align: center; color: #FFD700;
  -webkit-text-stroke: 2px #00ff88;
  text-shadow: 0 0 18px rgba(255,215,0,0.9), 0 4px 0 rgba(0,0,0,0.7);
  opacity: 0; transform: scale(2.4);
}
#vault-intro-title.slam { animation: vault-title-slam 1.5s cubic-bezier(.2,1.6,.3,1) forwards; }
@keyframes vault-title-slam {
  0%   { opacity:0; transform: scale(2.6); -webkit-text-stroke-width: 6px; filter: blur(6px); }
  22%  { opacity:1; transform: scale(1);   -webkit-text-stroke-width: 2px; filter: blur(0); }
  28%  { transform: scale(1) translate(-6px, 3px) rotate(-1deg); }
  34%  { transform: scale(1) translate(5px, -3px) rotate(1deg); }
  40%  { transform: scale(1) translate(-3px, 2px); }
  46%  { transform: scale(1) translate(0,0); }
  70%  { -webkit-text-stroke-color: #FFD700; color:#00ff88; }
  100% { opacity:1; transform: scale(1); -webkit-text-stroke-color:#00ff88; color:#FFD700; }
}

/* =============================================
   INFO CAROUSEL — payouts / paylines / bonus / jackpot / burn
   ============================================= */
#info-carousel {
  position: relative;
  margin: 5px 8px 8px;
  height: 76px;
  border: 2px solid rgba(255,215,0,.35);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(8,20,12,.96), rgba(2,6,4,.98));
  box-shadow: 0 0 16px rgba(0,255,136,.14), inset 0 0 20px rgba(0,0,0,.7);
  overflow: hidden;
  cursor: pointer;
  font-family: "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
}
#ic-viewport { overflow: hidden; height: 100%; touch-action: pan-y; }
#ic-track {
  display: flex;
  height: 100%;
  transition: transform .45s cubic-bezier(.35,1.4,.3,1);
  will-change: transform;
}
.ic-slide { flex: 0 0 100%; min-width: 100%; height: 100%; user-select: none; }
.ic-card {
  display: flex; align-items: center; gap: 10px;
  height: 100%;
  padding: 7px 10px;
  animation: ic-in .45s ease both;
}
@keyframes ic-in {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
.ic-logo {
  width: 60px; height: 60px; flex: 0 0 60px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--sym-glow, #FFD700);
  box-shadow: 0 0 10px var(--sym-glow, #FFD700);
  overflow: hidden;
  background: #0b0b0b;
}
.ic-logo.ic-logo-txt {
  font-family: 'Orbitron', monospace;
  font-size: 10px; font-weight: 900; letter-spacing: .5px;
  color: #FFD700; text-shadow: 0 0 8px rgba(255,215,0,.7);
}
.ic-sym-img { width: 100%; height: 100%; object-fit: contain; object-position: center; padding: 2px; }
.ic-sym-emoji { font-size: 26px; }
.ic-card-body { flex: 1; min-width: 0; }
.ic-card-title {
  font-size: 17px; font-weight: 800; letter-spacing: .4px;
  color: #FFD700;
  white-space: normal;
}
.ic-tag {
  display: inline-block;
  margin-left: 7px;
  padding: 1px 7px;
  border: 1px solid rgba(0,255,136,.4);
  border-radius: 20px;
  font-size: 12px; font-weight: 700;
  color: var(--green-neon,#00FF88);
}
.ic-card-line {
  display: flex; align-items: center; gap: 14px;
  margin-top: 4px;
  font-size: 15px; line-height: 1.3;
  color: rgba(255,255,255,.86);
  white-space: normal;
}
.ic-pay { font-size: 16px; font-weight: 800; color: var(--green-neon,#00FF88); }
.ic-pay b { color: rgba(255,255,255,.55); font-weight: 600; margin-right: 4px; font-size: 13px; }
.ic-lines {
  display: grid;
  grid-template-columns: repeat(13, minmax(0, 1fr));
  gap: 2px 4px;
  width: 100%;
  margin-top: 2px;
}
.ic-line-grid {
  display: grid;
  grid-template-columns: repeat(5, 2px);
  gap: 1px;
  width: max-content;
  margin: auto;
  padding: 1px;
  border: 1px solid rgba(255,215,0,.25);
  border-radius: 4px;
  background: rgba(0,0,0,.5);
}
.ic-line-grid i { display: block; width: 2px; height: 2px; border-radius: 1px; background: rgba(255,255,255,.09); }
.ic-line-grid i.on { background: var(--green-neon,#00FF88); box-shadow: 0 0 4px var(--green-neon,#00FF88); }
.ic-line-lbl { margin-top: 0; font-size: 6px; line-height: 1; text-align: center; color: rgba(255,255,255,.62); }
#ic-fs {
  display: none;
  position: absolute; inset: 0;
  z-index: 4;
  background: linear-gradient(180deg, rgba(30,0,40,.97), rgba(4,0,8,.98));
  box-shadow: inset 0 0 24px rgba(255,0,200,.2);
}
#ic-fs.on { display: block; }
.ic-card-fs .ic-card-title { color: #FF6BE0; text-shadow: 0 0 10px rgba(255,107,224,.6); }
.ic-card-fs { animation: ic-fs-pulse 1.6s ease-in-out infinite alternate; }
@keyframes ic-fs-pulse { from { filter: brightness(1); } to { filter: brightness(1.18); } }
@media (max-width: 480px) {
  #info-carousel { height: 76px; }
  .ic-card { gap: 8px; padding: 7px 8px; }
  .ic-logo { width: 58px; height: 58px; flex-basis: 58px; }
  .ic-card-title { font-size: 15px; }
  .ic-card-line { gap: 10px; font-size: 13.5px; line-height: 1.25; }
  .ic-tag { margin-left: 4px; padding-inline: 5px; font-size: 11px; }
  .ic-pay { font-size: 14.5px; }
  .ic-lines { gap: 2px; }
}

/* BET MULTIPLIER TOGGLE — 2x2 pressable grid */
#bet-mult-btns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  flex: 0 0 auto;
}
#bet-mult-btns .bm-btn {
  font-family: 'Orbitron', monospace;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #7a7a7a;
  padding: 3px 9px;
  border-radius: 5px;
  border: 1px solid rgba(255,215,0,0.22);
  background: linear-gradient(180deg, #1c1c1c, #0a0a0a);
  box-shadow: 0 3px 0 #000, 0 4px 6px rgba(0,0,0,0.6),
              inset 0 1px 0 rgba(255,255,255,0.07);
  transform: translateY(-1px);
  cursor: pointer;
  transition: transform 90ms ease-out, box-shadow 90ms ease-out,
              color 140ms ease-out, background 140ms ease-out;
}
#bet-mult-btns .bm-btn:hover { color: #ffe27a; filter: brightness(1.1); }
#bet-mult-btns .bm-btn:active {
  transform: translateY(2px);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.6), inset 0 3px 7px rgba(0,0,0,0.75);
}
#bet-mult-btns .bm-btn.active {
  color: #050000;
  background: linear-gradient(180deg, #ffe680, var(--gold));
  border-color: rgba(255,215,0,0.85);
  transform: translateY(2px);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.6),
              inset 0 3px 8px rgba(90,60,0,0.55),
              0 0 12px rgba(255,215,0,0.55);
}

/* =========================================================
   MAX BTC WILD — expanding Saylor reel takeover
   ========================================================= */
/* Default (single / double reel event): sits above the reels, just under the
   multiplier badges so nothing overlaps. */
#maxwild-headline {
  position: absolute;
  top: 96px;
  left: 0;
  right: 0;
  z-index: 40;
  text-align: center;
  font-weight: 900;
  font-size: clamp(22px, 6.4vw, 36px);
  line-height: 1.02;
  letter-spacing: 0.04em;
  color: #FFD34D;
  text-shadow: 0 0 6px #000, 0 3px 0 #6b4b00, 0 0 34px rgba(255, 200, 40, 0.9);
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
  transition: opacity 0.25s ease-out, transform 0.25s ease-out;
}
#maxwild-headline.show {
  opacity: 1;
  transform: scale(1);
  animation: mw-headline-pulse 0.9s ease-in-out infinite 0.4s;
}

/* Triple (reels 2, 3, 4) event: big and centered on screen. */
#maxwild-headline.mw-big {
  top: 50%;
  font-size: clamp(45px, 13.8vw, 78px);
  transform: translateY(-50%) scale(0.86);
}
#maxwild-headline.mw-big.show {
  transform: translateY(-50%) scale(1);
  animation: mw-headline-shake 0.5s ease-in-out 1, mw-headline-pulse 0.9s ease-in-out infinite 0.5s;
}
/* Fade the big headline away as the TRIPLE SAYLOR popup takes the screen. */
#maxwild-headline.mw-big.mw-fade {
  opacity: 0;
  animation: none;
  transform: translateY(-50%) scale(1.06);
  transition: opacity 0.45s ease-out, transform 0.45s ease-out;
}
@keyframes mw-headline-shake {
  0%   { transform: translateY(calc(-50% - 16px)) scale(1.25) rotate(-2deg); }
  35%  { transform: translateY(calc(-50% + 2px)) scale(1.06) rotate(1.5deg); }
  60%  { transform: translateY(calc(-50% - 2px)) scale(1.02) rotate(-1deg); }
  100% { transform: translateY(-50%) scale(1) rotate(0); }
}
@keyframes mw-headline-pulse {
  0%, 100% { filter: brightness(1); }
  50%      { filter: brightness(1.35); }
}



#reel-section { position: relative; }

.reel-col.max-wild {
  position: relative;
  z-index: 30;
  box-shadow:
    0 0 0 2px rgba(0, 255, 128, 0.9),
    0 0 26px rgba(0, 255, 128, 0.75),
    inset 0 0 40px rgba(0, 255, 128, 0.35);
  animation: mw-col-glow 0.7s ease-in-out infinite alternate;
}
@keyframes mw-col-glow {
  from { box-shadow: 0 0 0 2px rgba(0,255,128,0.7), 0 0 18px rgba(0,255,128,0.55), inset 0 0 30px rgba(0,255,128,0.25); }
  to   { box-shadow: 0 0 0 3px rgba(120,255,180,1), 0 0 40px rgba(0,255,128,0.95), inset 0 0 55px rgba(0,255,128,0.45); }
}

.mw-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  border-radius: 6px;
  background: radial-gradient(120% 80% at 50% 40%, rgba(0, 40, 15, 0.35), rgba(0, 0, 0, 0.85));
  animation: mw-in 0.35s ease-out;
}
.mw-overlay-roll {
  perspective: 720px;
  perspective-origin: 50% 50%;
}
.mw-triple-reel-overlay {
  position: absolute;
  z-index: 35;
  overflow: hidden;
  border-radius: 6px;
  pointer-events: none;
  background: #030805;
  box-shadow:
    0 0 0 3px rgba(0,255,128,.95),
    0 0 34px rgba(0,255,128,.9),
    inset 0 0 46px rgba(0,255,128,.28);
  animation: mw-triple-in .46s cubic-bezier(.16,1,.3,1) both, mw-col-glow .7s ease-in-out infinite alternate .46s;
}
@keyframes mw-triple-in {
  from { opacity: 0; transform: scale(.82); filter: brightness(2); }
  to { opacity: 1; transform: scale(1); filter: brightness(1); }
}
.mw-triple-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: contrast(1.08) saturate(1.08) drop-shadow(0 0 18px rgba(0,255,128,.7));
}
.mw-triple-reel-overlay .mw-bolts,
.mw-triple-reel-overlay .mw-coins {
  z-index: 2;
}
.mw-triple-reel-lines {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.mw-triple-reel-lines span {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(0,255,128,.3), rgba(120,255,180,.95), rgba(0,255,128,.3));
  box-shadow: 0 0 8px rgba(0,255,128,.85), 0 0 16px rgba(0,255,128,.45);
  animation: mw-bolt .42s steps(2, end) infinite;
}
.mw-triple-reel-lines span:first-child { left: 33.333%; }
.mw-triple-reel-lines span:last-child { left: 66.666%; animation-delay: .18s; }
.mw-triple-badges,
.mw-triple-wild-tags {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  pointer-events: none;
}
.mw-triple-badges { top: 4px; }
.mw-triple-badges .mw-badge {
  position: relative;
  top: auto;
  left: auto;
  width: max-content;
  margin: 0 auto;
  transform: none;
  animation: mw-triple-badge-float 1.6s ease-in-out infinite;
}
.mw-triple-badges .mw-badge:nth-child(2) { animation-delay: .12s; }
.mw-triple-badges .mw-badge:nth-child(3) { animation-delay: .24s; }
@keyframes mw-triple-badge-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-5px) scale(1.07); }
}
.mw-triple-wild-tags { bottom: 6px; }
.mw-triple-wild-tags span {
  text-align: center;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .22em;
  color: #baffd6;
  text-shadow: 0 0 8px rgba(0,255,128,.95), 0 1px 2px #000;
}
@keyframes mw-in {
  from { opacity: 0; transform: scaleY(0.4); }
  to   { opacity: 1; transform: scaleY(1); }
}
.mw-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  filter: contrast(1.08) saturate(1.05) drop-shadow(0 0 18px rgba(0, 255, 128, 0.8));
}
.mw-face.mw-slice {
  background-repeat: no-repeat;
  background-size: 300% 100%;
  transform-origin: 50% 50%;
  backface-visibility: visible;
}
/* Triple Saylor: reels blur past at full speed, hiding the art, then slam one by one. */
@keyframes mw-slice-spin {
  0%   { transform: rotateY(0deg) scaleX(1); }
  50%  { transform: rotateY(180deg) scaleX(.62); }
  100% { transform: rotateY(360deg) scaleX(1); }
}
@keyframes mw-slice-slam {
  0%   { transform: rotateY(280deg) scaleX(.7); filter: brightness(1.5); opacity: .9; }
  55%  { transform: rotateY(370deg) scaleX(1.08); filter: brightness(1.3); opacity: 1; }
  78%  { transform: rotateY(356deg) scaleX(.97); }
  100% {
    transform: rotateY(360deg) scaleX(1);
    opacity: 1;
    filter: contrast(1.08) saturate(1.05)
      drop-shadow(0 0 18px rgba(0, 255, 128, 0.8));
  }
}
/* Once the wild artwork has settled it floats gently in place */
@keyframes mw-face-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-6px) scale(1.015); }
}
.mw-face.mw-slice-roll {
  opacity: .85;
  filter: brightness(.72) contrast(.9);
  animation:
    mw-slice-spin .038s linear var(--mw-spins, 5) both,
    mw-slice-slam .14s cubic-bezier(.2,1.6,.35,1) var(--mw-slam-delay, .19s) forwards,
    mw-face-float 3.2s ease-in-out calc(var(--mw-slam-delay, .19s) + .3s) infinite;
  will-change: transform, opacity, filter;
}
.mw-overlay:not(.mw-overlay-roll) .mw-face {
  animation: mw-face-float 3.2s ease-in-out .5s infinite;
}
.mw-triple-photo {
  animation: mw-face-float 3.6s ease-in-out .6s infinite;
}
/* Badges, tags and coins reveal exactly when THIS reel's slam lands */
.mw-overlay-roll .mw-wild-tag,
.mw-overlay-roll .mw-coins,
.mw-overlay-roll .mw-bolts {
  opacity: 0;
  animation: mw-late-in 0.2s ease-out calc(var(--mw-slam-delay, .19s) + .1s) forwards;
}
.mw-overlay-roll .mw-badge {
  opacity: 0;
  animation:
    mw-late-in 0.2s ease-out calc(var(--mw-slam-delay, .19s) + .1s) forwards,
    mw-badge-float 1.6s ease-in-out calc(var(--mw-slam-delay, .19s) + .3s) infinite;
}



@keyframes mw-late-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.mw-wild-tag {
  position: absolute;
  bottom: 6px;
  left: 0;
  right: 0;
  text-align: center;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: #baffd6;
  text-shadow: 0 0 8px rgba(0, 255, 128, 0.95), 0 1px 2px #000;
}
.mw-badge {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 999px;
  border: 2px solid #FFD34D;
  background: radial-gradient(circle at 50% 30%, #4a3200, #120c00);
  box-shadow: 0 0 16px rgba(255, 200, 40, 0.85);
  animation: mw-badge-float 1.6s ease-in-out infinite;
}
@keyframes mw-badge-float {
  0%, 100% { transform: translateX(-50%) translateY(0) scale(1); }
  50%      { transform: translateX(-50%) translateY(-5px) scale(1.07); }
}
.mw-badge-x {
  font-weight: 900;
  font-size: 17px;
  color: #FFE68A;
  text-shadow: 0 0 10px rgba(255, 210, 70, 0.95);
}
.mw-badge-lbl {
  font-size: 6.5px;
  letter-spacing: 0.16em;
  color: #ffd97a;
  font-weight: 800;
}

.mw-bolts { position: absolute; inset: -4px; pointer-events: none; }
.mw-bolts span {
  position: absolute;
  width: 3px;
  background: linear-gradient(180deg, transparent, #b6ffd2, #00ff88, transparent);
  filter: drop-shadow(0 0 8px #00ff88);
  opacity: 0.9;
  animation: mw-bolt 0.42s steps(2, end) infinite;
}
.mw-bolts span:nth-child(1) { left: 1px;  top: 0; bottom: 0; }
.mw-bolts span:nth-child(2) { right: 1px; top: 0; bottom: 0; animation-delay: 0.1s; }
.mw-bolts span:nth-child(3) { left: 33.333%; top: 0; bottom: 0; width: 2px; animation-delay: 0.2s; }
.mw-bolts span:nth-child(4) { right: 33.333%; top: 0; bottom: 0; width: 2px; animation-delay: 0.3s; }
@keyframes mw-bolt {
  0%, 100% { opacity: 0.25; transform: scaleY(0.94) translateX(0); }
  50%      { opacity: 1;    transform: scaleY(1) translateX(1px); }
}

.mw-coins { position: absolute; inset: 0; pointer-events: none; }
.mw-coin {
  position: absolute;
  font-weight: 900;
  font-size: 15px;
  color: #2a1a00;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #fff3bd, #ffcc33 55%, #a26b00);
  box-shadow: 0 0 10px rgba(255, 200, 40, 0.8);
  animation: mw-coin-float 2.6s ease-in-out infinite;
}
@keyframes mw-coin-float {
  0%   { transform: translateY(20px) scale(0.7) rotate(0deg); opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateY(-90px) scale(1.05) rotate(320deg); opacity: 0; }
}
.mw-coin-0 { left: 4%;  bottom: 4%;  animation-delay: 0s; }
.mw-coin-1 { left: 62%; bottom: 10%; animation-delay: 0.25s; }
.mw-coin-2 { left: 30%; bottom: 0;   animation-delay: 0.5s; }
.mw-coin-3 { left: 78%; bottom: 22%; animation-delay: 0.75s; }
.mw-coin-4 { left: 12%; bottom: 30%; animation-delay: 1s; }
.mw-coin-5 { left: 48%; bottom: 16%; animation-delay: 1.25s; }
.mw-coin-6 { left: 70%; bottom: 2%;  animation-delay: 1.5s; }
.mw-coin-7 { left: 20%; bottom: 12%; animation-delay: 1.75s; }
.mw-coin-8 { left: 54%; bottom: 34%; animation-delay: 2s; }

/* MAX BTC WILD status card inside the info slide + 1x nudge tooltip */
.ic-card.ic-mw { position: relative; overflow: hidden; }
.ic-card.ic-mw.off {
  border: 1px solid rgba(255, 205, 60, 0.75);
  background: linear-gradient(180deg, rgba(70, 50, 0, 0.85), rgba(20, 14, 0, 0.9));
  animation: mwb-warn 1.2s ease-in-out infinite;
}
.ic-card.ic-mw.off .ic-card-title { color: #ffe27a; text-shadow: 0 0 8px rgba(255, 205, 60, 0.8); }
@keyframes mwb-warn {
  0%, 100% { box-shadow: 0 0 6px rgba(255, 205, 60, 0.35); filter: brightness(0.94); }
  50%      { box-shadow: 0 0 20px rgba(255, 205, 60, 0.85); filter: brightness(1.16); }
}
.ic-card.ic-mw.on {
  border: 1px solid rgba(0, 255, 128, 0.85);
  background: linear-gradient(180deg, rgba(0, 70, 35, 0.9), rgba(0, 18, 8, 0.92));
  animation: mwb-active 1s ease-in-out infinite;
}
.ic-card.ic-mw.on .ic-card-title { color: #b9ffd6; text-shadow: 0 0 10px rgba(0, 255, 128, 0.95); }
@keyframes mwb-active {
  0%, 100% { box-shadow: 0 0 8px rgba(0, 255, 128, 0.5); }
  50%      { box-shadow: 0 0 26px rgba(0, 255, 128, 1); }
}

/* Promo on/off indicator light */
.ic-mw-led {
  display: inline-block;
  width: 8px; height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  vertical-align: middle;
  flex: none;
}
.ic-card.ic-mw.on .ic-mw-led {
  background: #00ff88;
  box-shadow: 0 0 10px #00ff88, 0 0 20px rgba(0,255,136,.8);
  animation: mw-led-on .9s ease-in-out infinite;
}
.ic-card.ic-mw.off .ic-mw-led {
  background: #ffcd3c;
  box-shadow: 0 0 8px rgba(255,205,60,.9);
  animation: mw-led-off 1.1s steps(1, end) infinite;
}
@keyframes mw-led-on  { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes mw-led-off { 0%,49% { opacity: 1; } 50%,100% { opacity: .2; } }

/* Toggle flash + gold BTC coin burst across the status card */
.ic-card.ic-mw.mw-flash { animation: mw-card-flash .5s ease-out 2; }
@keyframes mw-card-flash {
  0%   { filter: brightness(1); }
  35%  { filter: brightness(1.7) saturate(1.3); }
  100% { filter: brightness(1); }
}
.ic-mw-burst { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 4; }
.ic-mw-coin {
  position: absolute;
  bottom: -6px;
  font-size: 15px;
  font-weight: 900;
  color: #FFD34D;
  text-shadow: 0 0 8px #F7931A, 0 0 16px rgba(247,147,26,.9);
  animation: ic-mw-coin-rise 1.5s ease-out forwards;
}
@keyframes ic-mw-coin-rise {
  0%   { transform: translateY(10px) scale(.5) rotate(0deg); opacity: 0; }
  25%  { opacity: 1; }
  100% { transform: translateY(-58px) scale(1.15) rotate(340deg); opacity: 0; }
}
.ic-mw-coin-0 { left: 6%;  animation-delay: 0s; }
.ic-mw-coin-1 { left: 18%; animation-delay: .09s; }
.ic-mw-coin-2 { left: 31%; animation-delay: .18s; }
.ic-mw-coin-3 { left: 44%; animation-delay: .05s; }
.ic-mw-coin-4 { left: 57%; animation-delay: .22s; }
.ic-mw-coin-5 { left: 70%; animation-delay: .12s; }
.ic-mw-coin-6 { left: 82%; animation-delay: .3s; }
.ic-mw-coin-7 { left: 92%; animation-delay: .16s; }




#bet-mult-btns { position: relative; }
.mw-hint {
  position: absolute;
  bottom: calc(100% + 9px);
  right: 0;
  z-index: 60;
  padding: 4px 8px;
  border-radius: 7px;
  white-space: nowrap;
  font-weight: 900;
  font-size: 9px;
  letter-spacing: 0.08em;
  color: #2a1a00;
  background: linear-gradient(180deg, #ffe68a, #ffc82c);
  box-shadow: 0 0 14px rgba(255, 200, 40, 0.9);
  animation: mw-hint-bounce 0.6s ease-in-out infinite;
}
.mw-hint.out { opacity: 0; transform: translateY(-6px); transition: all 0.28s ease-out; animation: none; }
.mw-hint-arrow {
  position: absolute;
  bottom: -5px;
  right: 14px;
  width: 9px;
  height: 9px;
  background: #ffc82c;
  transform: rotate(45deg);
}
@keyframes mw-hint-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}
.bm-btn.mw-hint-target {
  animation: mw-hint-target 0.5s ease-in-out infinite;
}
@keyframes mw-hint-target {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255, 205, 60, 0.6); }
  50%      { box-shadow: 0 0 16px rgba(255, 205, 60, 1); }
}

/* Jackpot symbol card: keep title and tag on a single top line */
.ic-title-fit {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.ic-title-fit .ic-tag { margin-left: 0; font-size: 10.5px; padding: 1px 6px; flex: 0 0 auto; }
@media (max-width: 420px) {
  .ic-title-fit { font-size: 14px; }
  .ic-title-fit .ic-tag { font-size: 9.5px; padding: 1px 5px; }
}

/* Cropped Saylor face on the MAX BTC WILD status card */
.ic-logo-saylor { overflow: hidden; }
.ic-logo-saylor .ic-sym-img { padding: 0; object-fit: cover; object-position: center 22%; }

/* MAX SAYLOR WILD card: keep title + description tidy, tag flows inline at end */
.ic-card.ic-mw .ic-card-title { font-size: 14.5px; letter-spacing: .2px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ic-card.ic-mw .ic-mw-line { display: block; font-size: 12.5px; line-height: 1.3; }
.ic-card.ic-mw .ic-mw-line .ic-tag { display: inline; margin-left: 6px; padding: 0 6px; font-size: 11px; white-space: nowrap; }
@media (max-width: 560px) {
  .ic-card.ic-mw .ic-card-title { font-size: 12.5px; }
  .ic-card.ic-mw .ic-mw-line { font-size: 11.5px; }
  .ic-card.ic-mw .ic-mw-line .ic-tag { font-size: 10px; }
}

/* ===== MAX SAYLOR WILD on/off screen title ===== */
.mw-title-wrap {
  position: fixed;
  left: 0; right: 0;
  top: 38%;
  height: 120px;
  pointer-events: none;
  z-index: 9000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mw-title-text {
  font-family: 'Anton', Impact, sans-serif;
  font-size: clamp(22px, 7vw, 60px);
  font-weight: 900;
  letter-spacing: 2px;
  white-space: nowrap;
  text-align: center;
  animation: mw-title-fly 2.3s cubic-bezier(.2,.8,.2,1) forwards;
}
.mw-title-wrap.on .mw-title-text {
  color: #baffd9;
  text-shadow:
    0 0 10px #00ff88, 0 0 28px #00ff88,
    0 0 60px rgba(0,255,136,.8), 0 4px 0 #05391f;
}
.mw-title-wrap.off .mw-title-text {
  color: #fff0bd;
  text-shadow:
    0 0 10px #ffcd3c, 0 0 26px rgba(255,205,60,.85), 0 4px 0 #3a2a00;
}
@keyframes mw-title-fly {
  0%   { transform: translateX(-120%) scale(.8); opacity: 0; }
  18%  { transform: translateX(0) scale(1.12); opacity: 1; }
  30%  { transform: translateX(0) scale(1); opacity: 1; }
  72%  { transform: translateX(0) scale(1); opacity: 1; }
  100% { transform: translateX(120%) scale(.85); opacity: 0; }
}
.mw-title-coins { position: absolute; inset: 0; }
.mw-title-coin {
  position: absolute;
  bottom: -10px;
  font-size: clamp(16px, 4vw, 30px);
  font-weight: 900;
  color: #FFD34D;
  text-shadow: 0 0 10px #F7931A, 0 0 22px rgba(247,147,26,.9);
  animation: mw-title-coin-rise 2.1s ease-out forwards;
}
@keyframes mw-title-coin-rise {
  0%   { transform: translateY(30px) scale(.4) rotate(0deg); opacity: 0; }
  20%  { opacity: 1; }
  100% { transform: translateY(-130px) scale(1.2) rotate(400deg); opacity: 0; }
}
.mw-tc-0  { left: 3%;  animation-delay: 0s; }
.mw-tc-1  { left: 11%; animation-delay: .12s; }
.mw-tc-2  { left: 19%; animation-delay: .05s; }
.mw-tc-3  { left: 27%; animation-delay: .2s; }
.mw-tc-4  { left: 36%; animation-delay: .09s; }
.mw-tc-5  { left: 44%; animation-delay: .26s; }
.mw-tc-6  { left: 53%; animation-delay: .14s; }
.mw-tc-7  { left: 61%; animation-delay: .3s; }
.mw-tc-8  { left: 70%; animation-delay: .07s; }
.mw-tc-9  { left: 78%; animation-delay: .22s; }
.mw-tc-10 { left: 87%; animation-delay: .16s; }
.mw-tc-11 { left: 95%; animation-delay: .34s; }

/* ===== TRIPLE SAYLOR MEGA WIN overlay ===== */
.ts-overlay {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none; overflow: hidden;
  background: transparent;
  animation: ts-fade .3s ease-out, ts-out .5s ease-in 2.9s forwards;
}
@keyframes ts-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ts-out  { to { opacity: 0; } }
.ts-title {
  text-align: center;
  font-family: "Arial Black", Impact, sans-serif;
  line-height: 1;
  animation: ts-slam .7s cubic-bezier(.2,1.6,.4,1) both, ts-shake .12s linear 4 .7s;
}
.ts-title span {
  display: block;
  font-size: clamp(26px, 9vw, 64px);
  color: #FFD34D;
  -webkit-text-stroke: 2px #7a4b00;
  text-shadow: 0 0 24px rgba(247,147,26,.95), 0 6px 0 rgba(0,0,0,.6);
  letter-spacing: .04em;
}
.ts-title b {
  display: block;
  margin-top: 6px;
  font-size: clamp(32px, 12vw, 86px);
  color: #00ff88;
  -webkit-text-stroke: 2px #04331f;
  text-shadow: 0 0 30px rgba(0,255,136,.95), 0 6px 0 rgba(0,0,0,.6);
  animation: ts-pulse .8s ease-in-out infinite;
}
.ts-title .ts-sub {
  display: block; margin-top: 12px;
  font-style: normal; font-size: clamp(11px, 3.4vw, 18px);
  font-weight: 900;
  letter-spacing: .22em;
  color: #ff2b2b;
  text-shadow:
    0 0 10px rgba(255,40,40,.95),
    0 0 26px rgba(255,0,0,.65),
    0 2px 0 #5c0000,
    0 3px 6px rgba(0,0,0,.85);
  animation:
    ts-sub-slam .5s cubic-bezier(.2,1.6,.3,1) .55s both,
    ts-sub-float 2.2s ease-in-out 1.05s infinite,
    ts-sub-pulse 1.1s ease-in-out 1.05s infinite;
  will-change: transform, opacity;
}
@keyframes ts-sub-slam {
  0%   { transform: scale(3.6) translateY(-26px); opacity: 0; filter: blur(10px); }
  60%  { transform: scale(.92) translateY(4px); opacity: 1; filter: blur(0); }
  80%  { transform: scale(1.06) translateY(-2px); }
  100% { transform: scale(1) translateY(0); opacity: 1; filter: blur(0); }
}
@keyframes ts-sub-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-6px) scale(1.03); }
}
@keyframes ts-sub-pulse {
  0%, 100% { color: #ff2b2b; text-shadow: 0 0 10px rgba(255,40,40,.95), 0 0 26px rgba(255,0,0,.6), 0 2px 0 #5c0000; }
  50%      { color: #ff7a7a; text-shadow: 0 0 18px rgba(255,80,80,1), 0 0 44px rgba(255,0,0,.85), 0 2px 0 #5c0000; }
}
@keyframes ts-slam {
  0%   { transform: scale(3.2) rotate(-6deg); opacity: 0; filter: blur(8px); }
  100% { transform: scale(1) rotate(0); opacity: 1; filter: blur(0); }
}
@keyframes ts-shake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-7px); }
  75% { transform: translateX(7px); }
}
@keyframes ts-pulse { 0%,100% { filter: brightness(1); } 50% { filter: brightness(1.45); } }
.ts-coins { position: absolute; inset: 0; }
.ts-coin {
  position: absolute; bottom: -8%;
  font-size: clamp(20px, 6vw, 40px); font-weight: 900; color: #FFD34D;
  text-shadow: 0 0 12px #F7931A, 0 0 26px rgba(247,147,26,.9);
  animation: ts-rise 2.6s ease-out forwards;
}
@keyframes ts-rise {
  0%   { transform: translateY(0) scale(.5) rotate(0); opacity: 0; }
  15%  { opacity: 1; }
  100% { transform: translateY(-115vh) scale(1.2) rotate(420deg); opacity: 0; }
}
.ts-c-0{left:3%;animation-delay:0s}.ts-c-1{left:11%;animation-delay:.22s}
.ts-c-2{left:19%;animation-delay:.44s}.ts-c-3{left:27%;animation-delay:.1s}
.ts-c-4{left:35%;animation-delay:.55s}.ts-c-5{left:43%;animation-delay:.3s}
.ts-c-6{left:51%;animation-delay:.05s}.ts-c-7{left:59%;animation-delay:.48s}
.ts-c-8{left:67%;animation-delay:.18s}.ts-c-9{left:75%;animation-delay:.62s}
.ts-c-10{left:83%;animation-delay:.36s}.ts-c-11{left:90%;animation-delay:.12s}
.ts-c-12{left:96%;animation-delay:.5s}.ts-c-13{left:47%;animation-delay:.7s}

/* ===== LASER PAYLINE TRACER ===== */
#laser-layer {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 60;
  overflow: visible;
}
#laser-layer path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#laser-layer .laser-glow {
  stroke: rgba(0, 255, 140, 0.18);
  filter: blur(3px) drop-shadow(0 0 8px rgba(0, 255, 140, 0.35));
}
#laser-layer .laser-core {
  stroke: rgba(140, 255, 200, 0.55);
  filter: drop-shadow(0 0 4px rgba(0, 255, 150, 0.5));
}
#laser-layer .laser-line {
  opacity: 1;
  transition: opacity 0.85s ease-out, filter 0.85s ease-out;
}
#laser-layer .laser-line.laser-fade {
  opacity: 0;
  filter: blur(2px);
}

/* ─────────────────────────────────────────
   WALLET BAR (top of /play)
───────────────────────────────────────── */
.wallet-bar {
  width: min(500px, 100vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  white-space: nowrap;
  padding: 5px 10px;
  background: #060606;
  border-bottom: 1px solid rgba(255,215,0,0.18);
  font-family: 'Rajdhani', sans-serif;
  overflow: hidden;
}
.wb-home {
  font-size: 14px; line-height: 1; text-decoration: none; color: var(--gold-light);
  opacity: .85;
}
.wb-home:hover { opacity: 1; }
.wb-balances { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; min-width: 0; }
.wb-bal { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; }
.wb-ico { font-size: 12px; line-height: 1; }
.wb-label { display: none; }
.wb-val { font-family: 'Orbitron', sans-serif; font-weight: 700; color: var(--gold); font-size: 11px; }
.wb-val-green { color: var(--green-neon); }
.wb-network {
  display: inline-flex; align-items: center; font-size: 13px; line-height: 1;
  color: var(--green-neon); filter: drop-shadow(0 0 5px rgba(0,255,136,.55));
}
.wb-dot { display: none; }
.wb-connect {
  font-size: 14px; line-height: 1; cursor: pointer;
  background: none; border: none; padding: 0; color: var(--green-neon);
  filter: drop-shadow(0 0 5px rgba(0,255,136,.5));
}
.wb-connect.is-on { color: var(--gold); filter: drop-shadow(0 0 5px rgba(255,215,0,.5)); }
.wb-connect:disabled { opacity: .5; cursor: default; }


/* ─────────────────────────────────────────
   WALLET BAR v2 + DEPOSIT MODAL
───────────────────────────────────────── */
.wallet-bar {
  width: min(500px, 100vw);
  padding: 10px 12px;
  gap: 8px;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,215,0,0.25);
  background: linear-gradient(180deg, #0a0a0c 0%, #050506 100%);
}
.wb-lobby {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  color: #fff; text-decoration: none;
  font-family: 'Rajdhani', sans-serif; font-weight: 700;
  font-size: 12px; letter-spacing: .1em;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.wb-lobby:hover { border-color: var(--gold); box-shadow: 0 0 12px rgba(255,215,0,.35); }
.wb-lobby:active { transform: translateY(2px); }
.wb-title {
  font-family: 'Orbitron', sans-serif; font-weight: 800;
  font-size: 15px; letter-spacing: .06em; white-space: nowrap;
  display: inline-flex; gap: 6px; align-items: baseline;
}
.wb-title span { color: #fff; text-shadow: 0 0 10px rgba(255,255,255,.35); }
.wb-title b { color: var(--gold); text-shadow: 0 0 12px rgba(255,215,0,.55); }
.wb-right { display: inline-flex; align-items: center; gap: 8px; }
.wb-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 12px 4px 4px; border-radius: 999px;
  background: #0c0c10; cursor: pointer;
  border: 2px solid var(--gold);
  box-shadow: 0 0 12px rgba(255,215,0,.35), inset 0 0 14px rgba(0,180,255,.18);
  transition: transform .12s ease, box-shadow .12s ease;
}
.wb-pill:hover { box-shadow: 0 0 18px rgba(255,215,0,.55), inset 0 0 16px rgba(0,180,255,.28); }
.wb-pill:active { transform: translateY(2px); }
/* 3D coin with lighting, tilt and metallic sheen */
.coin3d {
  position: relative;
  overflow: visible;
  display: inline-block;
  border-radius: 50%;
  perspective: 420px;
  transform-style: preserve-3d;
  isolation: isolate;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,.65));
  animation: coin3d-float 5.5s ease-in-out infinite;
}
.coin3d::before {
  content: "";
  position: absolute; inset: -22%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,205,80,.3) 0%, rgba(255,180,40,.12) 45%, transparent 72%);
  filter: blur(4px);
  z-index: -1;
  animation: coin3d-aura 3.4s ease-in-out infinite;
}
.coin3d > img {
  display: block; width: 100%; height: 100%;
  border-radius: 50%; object-fit: cover;
  transform: rotateX(6deg) rotateY(-8deg) scale(1.72);
  transition: transform .35s cubic-bezier(.2,1.2,.4,1), filter .35s ease;
  filter: saturate(1.08) contrast(1.06);
  box-shadow:
    inset 0 2px 6px rgba(255,255,255,.35),
    inset 0 -4px 10px rgba(0,0,0,.55),
    0 0 9px rgba(255,200,60,.25);
}
.coin3d:hover > img,
.wb-pill:hover .coin3d > img {
  transform: rotateX(-12deg) rotateY(16deg) scale(1.86);
  filter: saturate(1.2) contrast(1.12) brightness(1.06);
}
.coin3d-sm { width: 26px; height: 26px; }
.coin3d-md { width: 30px; height: 30px; }
@keyframes coin3d-aura {
  0%, 100% { opacity: .55; transform: scale(.96); }
  50% { opacity: .95; transform: scale(1.05); }
}
@keyframes coin3d-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1.5px); }
}
@media (prefers-reduced-motion: reduce) {
  .coin3d, .coin3d::before { animation: none; }
}
.wb-coin { width: 100%; height: 100%; }
.wallet-bar .wb-val { font-size: 15px; white-space: nowrap; }
.wb-connect { font-size: 16px; }
.wallet-bar { flex-wrap: nowrap; box-sizing: border-box; max-width: 100%; overflow: hidden; }
.wb-right { flex: 0 0 auto; min-width: 0; }
.wb-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 420px) {
  .wallet-bar { padding: 8px 8px; gap: 6px; }
  .wb-lobby { padding: 6px 9px; font-size: 11px; }
  .wb-title { font-size: 13px; }
  .wallet-bar .wb-val { font-size: 13px; }
  .coin3d-sm { width: 22px; height: 22px; }
  .wb-pill { padding: 3px 9px 3px 3px; }
}

/* Deposit modal */
.dp-backdrop {
  position: fixed; inset: 0; z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  background: rgba(2,4,10,.72);
  backdrop-filter: blur(3px);
  animation: dp-fade .18s ease-out;
}
@keyframes dp-fade { from { opacity: 0 } to { opacity: 1 } }
.dp-panel {
  position: relative;
  width: min(420px, 100%);
  max-height: 88vh; overflow-y: auto;
  padding: 22px 18px 18px;
  border-radius: 16px;
  border: 2px solid var(--gold);
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(0,140,255,.18) 0%, transparent 65%),
    linear-gradient(180deg, #10151c 0%, #06080c 100%);
  box-shadow: 0 0 40px rgba(255,215,0,.28), 0 0 80px rgba(0,150,255,.2), inset 0 0 40px rgba(0,140,255,.12);
  font-family: 'Rajdhani', sans-serif;
  animation: dp-pop .22s cubic-bezier(.2,1.4,.4,1);
}
@keyframes dp-pop { from { transform: scale(.9) translateY(14px); opacity: 0 } to { transform: none; opacity: 1 } }
.dp-shake { animation: dp-shake .4s ease-in-out; }
@keyframes dp-shake {
  0%,100% { transform: translateX(0) }
  20% { transform: translateX(-8px) } 40% { transform: translateX(8px) }
  60% { transform: translateX(-5px) } 80% { transform: translateX(5px) }
}
.dp-close {
  position: absolute; top: 10px; right: 10px;
  width: 28px; height: 28px; border-radius: 50%;
  background: #1b1f27; color: #fff; border: 1px solid rgba(255,255,255,.25);
  cursor: pointer; font-size: 13px; line-height: 1;
}
.dp-close:active { transform: translateY(2px); }
.dp-head {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-family: 'Orbitron', sans-serif; font-weight: 800;
  font-size: 19px; letter-spacing: .05em; color: var(--gold);
  text-shadow: 0 0 14px rgba(255,215,0,.5);
}
.dp-coin { width: 100%; height: 100%; }
.dp-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.dp-stat {
  border: 1px solid rgba(255,215,0,.35); border-radius: 10px;
  background: rgba(255,255,255,.03); padding: 10px 8px; text-align: center;
}
.dp-stat-label { font-size: 11px; letter-spacing: .12em; color: #9fb0c4; font-weight: 700; }
.dp-stat-val {
  margin-top: 4px; font-family: 'Orbitron', sans-serif; font-weight: 800;
  font-size: 18px; color: var(--gold); text-shadow: 0 0 10px rgba(255,215,0,.45);
}
.dp-stat-green { color: var(--green-neon); text-shadow: 0 0 10px rgba(0,255,136,.45); }
.dp-note { margin: 14px 0 10px; text-align: center; font-size: 13px; color: #c7d3e0; }
.dp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.dp-btn, .dp-btn-gold, .dp-confirm, .dp-cancel {
  font-family: 'Rajdhani', sans-serif; font-weight: 800; letter-spacing: .08em;
  cursor: pointer; border-radius: 10px;
  transition: transform .1s ease, box-shadow .1s ease, filter .15s ease;
}
.dp-btn {
  padding: 11px 4px; font-size: 13px; color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  background: linear-gradient(180deg, #262d38 0%, #161b23 100%);
  box-shadow: 0 4px 0 #0a0d12, 0 8px 18px -8px rgba(0,150,255,.4);
  transform: translateY(-2px);
}
.dp-btn:hover { filter: brightness(1.15); }
.dp-btn:active { transform: translateY(2px); box-shadow: inset 0 3px 8px rgba(0,0,0,.55); }
.dp-btn.is-on {
  border-color: var(--gold); color: #1a1200;
  background: linear-gradient(180deg, #ffe680 0%, var(--gold) 100%);
  box-shadow: 0 4px 0 #7a5c00, 0 0 18px rgba(255,215,0,.5);
}
.dp-input {
  margin-top: 10px; width: 100%; padding: 12px 14px;
  border-radius: 10px; border: 1px solid rgba(255,215,0,.45);
  background: #0a0d13; color: #fff; font-size: 15px; font-family: 'Rajdhani', sans-serif;
  outline: none;
}
.dp-input:focus { box-shadow: 0 0 14px rgba(255,215,0,.35); }
.dp-confirm {
  margin-top: 14px; width: 100%; padding: 15px 10px; font-size: 16px;
  color: #1a1200; border: none;
  background: linear-gradient(180deg, #ffe680 0%, var(--gold) 55%, #c79b00 100%);
  box-shadow: 0 6px 0 #7a5c00, 0 12px 26px -8px rgba(255,215,0,.6);
  transform: translateY(-2px);
}
.dp-confirm:hover { filter: brightness(1.1); }
.dp-confirm:active { transform: translateY(3px); box-shadow: 0 2px 0 #7a5c00, inset 0 3px 10px rgba(0,0,0,.4); }
.dp-cancel {
  margin-top: 10px; width: 100%; padding: 13px 10px; font-size: 14px;
  color: var(--green-neon); border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(180deg, #2a2f38 0%, #1a1e25 100%);
  box-shadow: 0 5px 0 #0b0e13;
  transform: translateY(-2px);
}
.dp-cancel:active { transform: translateY(2px); box-shadow: inset 0 3px 8px rgba(0,0,0,.5); }

/* ===== COUNT-UP / LASER PRESENTATION TOGGLE (replaces BET PER SPIN label) ===== */
#fx-toggle {
  display: flex; align-items: center; gap: 5px;
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 7px;
  cursor: pointer;
  font-family: 'Orbitron', monospace;
  border: 1px solid rgba(0,255,136,0.55);
  background: linear-gradient(180deg, #0b1f16, #04120c);
  box-shadow: 0 3px 0 rgba(0,120,60,0.65), 0 0 14px rgba(0,255,136,0.28);
  transform: translateY(-2px);
  transition: transform 90ms ease-out, box-shadow 120ms ease-out, filter 150ms ease-out;
}
#fx-toggle .fx-ic { font-size: 13px; filter: drop-shadow(0 0 6px rgba(0,255,136,0.8)); }
#fx-toggle .fx-txt { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
#fx-toggle .fx-txt b { font-size: 10px; color: #00ff88; letter-spacing: 1px; text-shadow: 0 0 8px rgba(0,255,136,0.7); }
#fx-toggle .fx-txt i { font-style: normal; font-size: 6.5px; color: #6b7d73; letter-spacing: 1.4px; }
#fx-toggle:active { transform: translateY(2px); box-shadow: 0 0 0 1px rgba(0,0,0,0.6), inset 0 3px 7px rgba(0,0,0,0.55); }
#fx-toggle.fx-off {
  border-color: rgba(255,215,0,0.4);
  background: linear-gradient(180deg, #14100a, #0a0805);
  box-shadow: 0 2px 0 rgba(0,0,0,0.7), inset 0 3px 7px rgba(0,0,0,0.5);
  transform: translateY(1px);
}
#fx-toggle.fx-off .fx-ic { filter: grayscale(1) brightness(0.8); }
#fx-toggle.fx-off .fx-txt b { color: #b9932f; text-shadow: none; }

/* ── Asset / text protection: no selecting, dragging, saving or long-press menus ── */
html, body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
img, video, canvas, svg {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  user-drag: none;
  pointer-events: none;
  -webkit-touch-callout: none;
}
input, textarea, select, [contenteditable="true"] {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

/* enlarged coin: keep clear of adjacent text */
.wb-pill .coin3d-sm { margin: 0 9px 0 5px; }
.dp-head .coin3d-md { margin: 0 12px 0 6px; }
.coin3d-md { width: 46px; height: 46px; }
.wb-pill .coin3d-sm > img { transform: rotateX(6deg) rotateY(-8deg) scale(1.42); }
.wb-pill:hover .coin3d-sm > img { transform: rotateX(-12deg) rotateY(16deg) scale(1.5); }
.wallet-bar { overflow: visible; overflow-x: clip; }
.wb-pill { overflow: visible; }
.wb-pill .coin3d-sm { width: 30px; height: 30px; }
.wb-pill .coin3d-sm > img { transform: rotateX(6deg) rotateY(-8deg) scale(1.55); }
.wb-pill:hover .coin3d-sm > img { transform: rotateX(-12deg) rotateY(16deg) scale(1.65); }


/* Topper video banner — plush edge-to-edge, no decorations */
#topper {
  padding: 0;
  min-height: 0;
  overflow: hidden;
  line-height: 0;
  border-top: 3px solid var(--gold);
}
#topper::before, #topper::after { content: none; display: none; }
#topper .topper-title-wrap { width: 100%; display: block; line-height: 0; }
#topper-video {
  display: block; width: 100%; height: auto; max-height: none;
  object-fit: cover; border-radius: 0; margin: 0;
  pointer-events: none; user-select: none;
}

/* Resource saver: pause offscreen / background-tab animations */
.anim-idle,
body.tab-idle * { animation-play-state: paused !important; }

/* Deposit modal slider + live token counter */
.dp-slider { margin: 16px 0 6px; }
.dp-amount {
  display: flex; align-items: baseline; justify-content: center; gap: 8px;
  margin: 2px 0 14px;
}
.dp-amount-val {
  font-family: 'Orbitron', monospace; font-size: 26px; font-weight: 900;
  color: var(--green-neon); text-shadow: 0 0 12px rgba(0,255,136,.4);
}
.dp-amount-tick {
  font-family: 'Orbitron', monospace; font-size: 12px; font-weight: 800;
  letter-spacing: .12em; color: var(--gold);
}
.dp-amount-pct { font-size: 12px; font-weight: 700; color: #9fb0c4; }
