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

/* ── Page background ── */
body {
  min-height: 100vh;
  background: url('assets/arcade-interior.png') center / cover no-repeat fixed;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 12px 16px 20px;
}

/* ── Back-to-portfolio pill (fixed, top-left, above gameplay / below loading) ── */
.back-to-portfolio {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  pointer-events: auto;
  display: inline-block;
  padding: 8px 14px;
  background: #1a0f3d;
  border: 1px solid #d4a017;
  border-radius: 8px;
  color: #ffd700;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.back-to-portfolio:hover {
  background: #2a1a5e;
  border-color: #ffd700;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
}

/* ── Page column ── */
.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 3200px;
  margin: 0 auto;
}

/* ── Reel row: centered column, buy button overlaid on the left ── */
.reel-row {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  max-width: 3200px;
}

.reel-column {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: min(98vw, 4200px, calc(85vh * 731 / 560));
}

/* Single shared width authority for grid + cabinet.
   display:grid with one 1fr column guarantees every child
   is exactly the same width — no flex cross-axis ambiguity. */
.machine-body {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 0;
  width: 100%;
}

/* ── BUY BONUS image button — absolute so it doesn't push the grid ── */
.btn-buy {
  position: absolute;
  left: calc(5% - clamp(125px, 14vw, 205px));
  z-index: 5;
  width: clamp(125px, 14vw, 205px);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.btn-buy img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn-buy:hover img {
  transform: scale(1.06);
  filter: brightness(1.25) drop-shadow(0 0 14px rgba(255, 200, 50, 0.75));
}
.btn-buy:active img { transform: scale(0.97); }

/* ── Bar: secondary icon buttons (settings + max-bet, stacked far left) ── */
.bar-secondary {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2px, 0.4vw, 5px);
}

.btn-icon-sm {
  width: clamp(24px, 2.9vw, 33px);
  height: clamp(24px, 2.9vw, 33px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(28, 6, 66, 0.92), rgba(10, 0, 28, 0.88));
  border: 1.5px solid rgba(180, 130, 0, 0.62);
  color: #c8960c;
  font-size: clamp(0.68rem, 1.15vw, 0.88rem);
  cursor: pointer;
  padding: 0;
  box-shadow: 0 0 7px rgba(160, 100, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.10);
  transition: transform 0.12s ease, filter 0.12s ease;
}
.btn-icon-sm:hover  { transform: scale(1.10); filter: brightness(1.28); }
.btn-icon-sm:active { transform: scale(0.92); }

/* Settings gear: rotate on hover */
.btn-settings {
  transition: transform 0.20s ease, filter 0.15s ease;
}
.btn-settings:hover  { transform: rotate(60deg) scale(1.10); filter: brightness(1.28); }
.btn-settings:active { transform: rotate(90deg) scale(0.92); }
.btn-settings--muted { opacity: 0.42; filter: grayscale(1); }

/* ── Free Play indicator banner ── */
.fp-indicator {
  display: none;
  width: 100%;
  padding: 10px 20px;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #4a0080 0%, #7b2dbd 50%, #4a0080 100%);
  border: 2px solid #c8a000;
  border-radius: 12px;
  color: #00E5FF;
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(10px, 1.4vw, 14px);
  text-align: center;
  letter-spacing: 0.05em;
  box-shadow: 0 0 18px rgba(180, 60, 255, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.7);
  white-space: nowrap;  /* prevent text-wrap height changes that reflow the grid */
  overflow: hidden;
}

.fp-indicator--jackpot {
  border-color: #cc1122;
  box-shadow: 0 0 18px rgba(255, 51, 68, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ── Game logo ── */
.game-logo {
  display: none;
}

/* ── Marquee wrapper ── */
.marquee-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 731 / 560;
}

/* ── Marquee chase bulb overlay ── */
.marquee-bulbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 11;       /* above border art (::after z-index:10), below game elements (150+) */
}

.marquee-bulb {
  position: absolute;
  width: 2.0%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  /* Warm pink/magenta radial gradient — hot white core + magenta body */
  background: radial-gradient(circle at 40% 38%, #fff4fb 0%, #ffaadc 28%, #ff30b0 62%, #cc0088 100%);
  opacity: 0.20;
  filter: brightness(0.55);
  animation: marquee-chase 2.5s ease-in-out infinite;
}

@keyframes marquee-chase {
  0%   { opacity: 0.20; filter: brightness(0.55); }
  7%   { opacity: 1.00; filter: brightness(1.35)
                               drop-shadow(0 0 4px #ff70cc)
                               drop-shadow(0 0 9px #e010b0)
                               drop-shadow(0 0 16px rgba(255, 20, 160, 0.55)); }
  19%  { opacity: 0.20; filter: brightness(0.55); }
  100% { opacity: 0.20; filter: brightness(0.55); }
}

/* ── Border overlay: ze-claw-border.png with baked crown logo ──
   Anchored to .marquee-wrap (731:560 fixed aspect). The PNG's transparent
   window sits at top≈30.5% / bottom≈9.5% / left≈9.9% / right≈9.9% of the
   canvas, matching the reel-frame insets. z-index:10 keeps it above the
   dark reel-frame backing (no z-index) and grid (z-index:1) while staying
   below expanding-wild-container (z-index:150) and claw assembly (500). */
.marquee-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: url('assets/ze-claw-border.png') center / 100% 100% no-repeat;
  pointer-events: none;
  z-index: 10;
}

/* ── 2. Reel frame — dark backing pinned to the measured transparent window ──
   Insets = window fractions + 0.5% safety margin so symbols never touch frame art.
     top   : 22.0% + 8.0% = 30.0%  (extra clearance for crown lowest point)
     bottom: raised to 12.5% so bottom row clears the bottom rail
     left  :  9.0% + 0.5% =  9.5%  (use 9.5%)
     right :  9.0% + 0.5% =  9.5%  (use 9.5%) */
.reel-frame {
  position: absolute;
  top: 30.0%;
  bottom: 12.5%;
  left: 9.5%;
  right: 9.5%;
  padding: 5px;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  /* Deep dark-purple base — gold bulbs glow against this */
  background: linear-gradient(175deg,
    rgba(38, 8, 88, 0.96) 0%,
    rgba(24, 3, 66, 0.98) 50%,
    rgba(12, 0, 48, 0.99) 100%
  );
  box-shadow:
    0 6px 24px rgba(58, 0, 138, 0.42),
    0 2px 10px rgba(0, 0, 0, 0.52);
}

/* ── 2. Reel area — fills reel-frame (height determined by absolute insets, not aspect-ratio) ── */
.reel-area {
  position: relative;
  width: 100%;
  flex: 1;
  border-radius: 9px;
  border: none;
  overflow: hidden;
  box-shadow: inset 0 0 14px rgba(150, 80, 255, 0.10);
}

/* Blurred backdrop via pseudo-element — inset offset prevents blur fringe at edges */
.reel-area::before {
  content: '';
  position: absolute;
  inset: -12px;
  background: url('assets/backround.png') center / cover no-repeat;
  filter: blur(7px);
  z-index: 0;
}

/* ── 7×7 Reel Grid ── */
.reel-grid {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(7, 1fr);
  gap: 5px;
  padding: 4px;
  overflow: hidden;  /* clip symbols above the top row and below the bottom row */
  background:
    linear-gradient(rgba(20, 10, 40, 0.40), rgba(20, 10, 40, 0.40)),
    url('assets/backround.png') center / cover no-repeat;
}

/* ── Column separator lines ── */
/* 6 faint vertical dividers between the 7 reel columns.
   Tune opacity via --col-sep on .reel-grid below. */
.reel-grid {
  --col-sep:  rgba(120, 80, 180, 0.25);   /* ← dial separator subtlety */
  --sym-fill: 97%;                         /* ← symbol fill within each cell — tune for zoomed-in feel */
}

.reel-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* Lines sit above the grid background but below the cells (DOM order).
     Positions derived from: padding=4px, gap=5px, 7 equal 1fr columns.
     Total non-cell = 2*4 + 6*5 = 38px.
     Line k center = k*(100%-38px)/7 + 5k + 1.5px  (k = 1..6)
     → offsets: +6/+7, +11/+12, +16/+17, +21/+22, +26/+27, +31/+32 */
  background-image: linear-gradient(90deg,
    transparent                     calc(1*(100% - 38px)/7 + 6px),
    var(--col-sep)                   calc(1*(100% - 38px)/7 + 6px),
    var(--col-sep)                   calc(1*(100% - 38px)/7 + 7px),
    transparent                     calc(1*(100% - 38px)/7 + 7px),
    transparent                     calc(2*(100% - 38px)/7 + 11px),
    var(--col-sep)                   calc(2*(100% - 38px)/7 + 11px),
    var(--col-sep)                   calc(2*(100% - 38px)/7 + 12px),
    transparent                     calc(2*(100% - 38px)/7 + 12px),
    transparent                     calc(3*(100% - 38px)/7 + 16px),
    var(--col-sep)                   calc(3*(100% - 38px)/7 + 16px),
    var(--col-sep)                   calc(3*(100% - 38px)/7 + 17px),
    transparent                     calc(3*(100% - 38px)/7 + 17px),
    transparent                     calc(4*(100% - 38px)/7 + 21px),
    var(--col-sep)                   calc(4*(100% - 38px)/7 + 21px),
    var(--col-sep)                   calc(4*(100% - 38px)/7 + 22px),
    transparent                     calc(4*(100% - 38px)/7 + 22px),
    transparent                     calc(5*(100% - 38px)/7 + 26px),
    var(--col-sep)                   calc(5*(100% - 38px)/7 + 26px),
    var(--col-sep)                   calc(5*(100% - 38px)/7 + 27px),
    transparent                     calc(5*(100% - 38px)/7 + 27px),
    transparent                     calc(6*(100% - 38px)/7 + 31px),
    var(--col-sep)                   calc(6*(100% - 38px)/7 + 31px),
    var(--col-sep)                   calc(6*(100% - 38px)/7 + 32px),
    transparent                     calc(6*(100% - 38px)/7 + 32px)
  );
}

/* ── Symbol Cells ── */
.cell {
  position: relative;
  background: transparent;
  border: 1.5px solid rgba(255, 62, 160, 0.80);
  border-radius: 6px;
  overflow: visible;  /* must stay visible — tumble translateY moves symbols above the cell; overflow:hidden clips them mid-fall */
  cursor: default;
  transition: filter 0.12s;
  box-shadow:
    inset 0 3px 8px rgba(80, 40, 160, 0.30),
    inset 0 -1px 3px rgba(255, 62, 160, 0.60),
    inset 1px 0 2px rgba(100, 60, 180, 0.08),
    0 1px 3px rgba(80, 40, 150, 0.18);
}

.cell:hover {
  filter: brightness(1.15);
}

.ticket-layer,
.symbol-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.ticket-layer { z-index: 1; }
.symbol-layer { z-index: 2; }

.ticket-layer img {
  width: 85%;
  height: 85%;
  object-fit: contain;
}

.symbol-layer img {
  width: var(--sym-fill);
  height: var(--sym-fill);
  object-fit: contain;
  filter: drop-shadow(2px 5px 9px rgba(35, 10, 65, 0.78));
  user-select: none;
  -webkit-user-drag: none;
}

/* ── Claw symbol — purple glow pulse ── */
@keyframes claw-pulse {
  0%, 100% {
    filter: drop-shadow(0 0 3px rgba(160, 32, 240, 0.45))
            drop-shadow(1px 3px 5px rgba(0, 0, 0, 0.8));
  }
  50% {
    filter: drop-shadow(0 0 10px rgba(180, 40, 255, 0.95))
            drop-shadow(0 0 22px rgba(200, 0, 255, 0.5))
            drop-shadow(1px 3px 5px rgba(0, 0, 0, 0.8));
  }
}

.cell[data-sym="7"] .symbol-layer img {
  animation: claw-pulse 1.5s ease-in-out infinite;
}

/* ── Scatter symbol — throbbing scale + glow pulse ── */
@keyframes scatter-throb {
  0%, 100% {
    transform: scale(1.0);
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.5))
            drop-shadow(1px 3px 5px rgba(0, 0, 0, 0.8));
  }
  50% {
    transform: scale(1.18);
    filter: drop-shadow(0 0 22px rgba(255, 215, 0, 1.0))
            drop-shadow(0 0 44px rgba(255, 165, 0, 0.7))
            drop-shadow(1px 3px 5px rgba(0, 0, 0, 0.8));
  }
}

/* Elevated z-index so the oversized scatter renders above adjacent cells */
.cell[data-sym="8"],
.cell[data-sym="9"] {
  z-index: 5;
}

/* Scatter image: 125% of cell size */
.cell[data-sym="8"] .symbol-layer img,
.cell[data-sym="9"] .symbol-layer img {
  width: 125%;
  height: 125%;
}

/* Throb only once the cell has finished tumbling in — the animation's transform
   would override the tumble-in inline translateY if allowed to run mid-fall */
.cell:not(.cell--tumbling)[data-sym="8"] .symbol-layer img,
.cell:not(.cell--tumbling)[data-sym="9"] .symbol-layer img {
  animation: scatter-throb 0.9s ease-in-out infinite;
}

/* ── Scatter shake — fires on 3+ scatter confirm ── */
@keyframes scatter-shake {
  0%   { transform: scale(1)    rotate(0deg);  filter: none; }
  12%  { transform: scale(1.13) rotate(-8deg); filter: drop-shadow(0 0 14px #ffd700) drop-shadow(0 0 28px rgba(255, 180, 0, 0.8)); }
  25%  { transform: scale(1.15) rotate(8deg);  filter: drop-shadow(0 0 18px #ffd700) drop-shadow(0 0 36px rgba(255, 180, 0, 0.9)); }
  38%  { transform: scale(1.12) rotate(-6deg); filter: drop-shadow(0 0 14px #ffd700) drop-shadow(0 0 28px rgba(255, 180, 0, 0.7)); }
  50%  { transform: scale(1.11) rotate(5deg);  filter: drop-shadow(0 0 12px #ffd700) drop-shadow(0 0 22px rgba(255, 180, 0, 0.6)); }
  65%  { transform: scale(1.06) rotate(-3deg); filter: drop-shadow(0 0 8px  #ffd700); }
  80%  { transform: scale(1.03) rotate(2deg);  filter: drop-shadow(0 0 5px  #ffd700); }
  100% { transform: scale(1)    rotate(0deg);  filter: none; }
}

.cell.scatter-shake {
  animation: scatter-shake 520ms ease-in-out forwards;
  position: relative;
  z-index: 20;
}

/* ── Scatter trigger notification overlay ── */
/* position:fixed + body-level DOM placement escapes .reel-area stacking
   context so this always paints above expanding wild columns (z-index:150). */
.scatter-notif {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.72);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.scatter-notif.visible { opacity: 1; }

.scatter-notif-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 78%;
  padding: 20px 24px;
  background: rgba(10, 0, 28, 0.88);
  border-radius: 16px;
  border: 1.5px solid rgba(200, 60, 255, 0.55);
  box-shadow:
    0 0 32px rgba(160, 0, 255, 0.35),
    0 0 8px rgba(0, 0, 0, 0.8);
}

.scatter-notif-title {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: clamp(1.1rem, 3vw, 1.8rem);
  color: #ffd700;
  text-shadow: 0 0 18px #ffd700, 0 0 40px rgba(255, 200, 0, 0.75);
  text-align: center;
  line-height: 1.3;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.scatter-notif-sub {
  font-family: 'Fredoka', sans-serif;
  font-weight: 400;
  font-size: clamp(0.9rem, 2.2vw, 1.3rem);
  color: #ffe880;
  opacity: 0.92;
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

/* ── Mark indicator (multiplier badge per position) ── */
.mark-indicator {
  position: absolute;
  top: 3px;
  right: 3px;
  min-width: 18px;
  height: 18px;
  padding: 0 3px;
  border-radius: 9px;
  background: #ffd700;
  color: #2a1a00;
  font-family: 'Press Start 2P', monospace;
  font-size: 6px;
  line-height: 1;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  z-index: 2;
}
.mark-indicator.active { display: flex; }

/* First-hit mark: subtle golden glow border to show position has been activated */
.cell--marked {
  box-shadow:
    inset 0 3px 8px rgba(80, 40, 160, 0.30),
    inset 0 -1px 3px rgba(255, 62, 160, 0.60),
    inset 0 0 0 2px rgba(255, 215, 0, 0.45),
    0 0 10px 2px rgba(255, 215, 0, 0.28);
  border-radius: 6px;
}

/* ── Cluster-win highlight ── */
@keyframes win-pulse {
  0%, 100% { box-shadow: 0 0 8px 2px rgba(255, 210, 0, 0.75); }
  50%       { box-shadow: 0 0 20px 7px rgba(255, 210, 0, 1), 0 0 32px 4px rgba(255, 130, 0, 0.55); }
}

.cell--win {
  border-radius: 6px;
  animation: win-pulse 0.9s ease-in-out infinite;
}

.cell--win .symbol-layer img {
  filter: drop-shadow(0 0 6px rgba(255, 210, 0, 0.9)) drop-shadow(1px 3px 5px rgba(0, 0, 0, 0.8));
}

/* ── Symbol explosion ── */
@keyframes cell-explode {
  0%   { transform: scale(1);    opacity: 1; }
  30%  { transform: scale(1.10); opacity: 1; }  /* --sym-fill × 1.10 peak scale */
  100% { transform: scale(0);    opacity: 0; }
}
.cell--explode .symbol-layer img {
  animation: cell-explode 0.25s ease-in forwards;
}

/* Tumble-in is driven by JS inline transitions — no CSS class needed */

/* ── Win breakdown panel — left of the cabinet, anchored to .marquee-wrap ── */
.win-panel {
  position: absolute;
  right: calc(100% + 5px);
  top: calc(75% + 10px);
  width: 185px;
  height: 125px;
  pointer-events: none;
  z-index: 12;
  display: flex;
  flex-direction: column;
}

@media (max-width: 1100px) {
  .win-panel { display: none; }
}

.win-panel-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  background-color: rgba(8, 3, 22, 0.88);
  border-radius: 6px;
  border: 1px solid rgba(180, 150, 255, 0.22);
  padding: 4px 6px;
  overflow: hidden;
}

.win-panel-rows {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.win-row {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  padding: 4px 2px;
  border-bottom: 1px solid rgba(180, 150, 255, 0.18);
  box-sizing: border-box;
  transition: transform 0.3s ease, opacity 0.25s ease;
  will-change: transform, opacity;
}

.win-row-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}

.win-row-label {
  font-family: 'Fredoka', sans-serif;
  font-size: clamp(0.62rem, 0.85vw, 0.78rem);
  color: #d8c8ff;
  text-align: left;
  line-height: 1.1;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.win-row-amount {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: clamp(0.62rem, 0.85vw, 0.78rem);
  color: #ffd86e;
  text-align: right;
  flex-shrink: 0;
  white-space: nowrap;
}


/* ── 3. UI bar — branded royal purple / gold ── */
.ui-bar {
  position: relative;
  width: 100%;
  min-width: 0;
  margin-top: 6px;
  padding: clamp(6px, 1.1vw, 10px) clamp(10px, 1.8vw, 18px);
  background: linear-gradient(160deg,
    #280660 0%,
    #14022e 40%,
    #1c0448 70%,
    #280660 100%
  );
  border-radius: 16px;
  border: 1.5px solid #7a5200;
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.22),
    0 0 22px rgba(60, 0, 120, 0.50),
    inset 0 1px 0 rgba(255, 215, 0, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.40);
  box-sizing: border-box;
  overflow: hidden;
}

/* Gold shimmer accent line at the top of the bar */
.ui-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: linear-gradient(90deg,
    transparent,
    #c8960c 15%,
    #f0c040 50%,
    #c8960c 85%,
    transparent
  );
  pointer-events: none;
}

.ui-bar-content {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.4vw, 14px);
}

/* ── Gold vertical section divider ── */
.bar-divider {
  flex-shrink: 0;
  width: 1px;
  align-self: stretch;
  background: linear-gradient(180deg,
    transparent 0%,
    #c8960c 20%,
    #f0c040 50%,
    #c8960c 80%,
    transparent 100%
  );
  margin: 2px 0;
}

/* ── Readout plates container ── */
.ui-bar-readouts {
  display: flex;
  align-items: stretch;
  flex: 1;
  min-width: 0;
  gap: 0;
}

/* ── Gold inner divider between readout plates ── */
.bar-gold-divider {
  flex-shrink: 0;
  width: 1px;
  align-self: stretch;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(200, 150, 12, 0.65) 25%,
    rgba(240, 192, 64, 0.85) 50%,
    rgba(200, 150, 12, 0.65) 75%,
    transparent 100%
  );
  margin: 3px 0;
}

/* ── Readout plate ── */
.stat-plate {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  background: linear-gradient(160deg, rgba(6, 0, 18, 0.80), rgba(18, 0, 45, 0.70));
  border: 1.5px solid #7a5200;
  border-radius: 10px;
  padding: clamp(3px, 0.7vw, 6px) clamp(5px, 1.1vw, 12px);
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.16),
    inset 0 2px 8px rgba(0, 0, 0, 0.60),
    inset 0 1px 0 rgba(212, 175, 55, 0.10);
  flex: 1;
  min-width: 0;
}

.plate-label {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: clamp(0.45rem, 0.90vw, 0.62rem);
  color: #c8960c;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  text-shadow: 0 0 6px rgba(200, 150, 12, 0.45);
  white-space: nowrap;
}

.plate-value {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: clamp(0.80rem, 1.75vw, 1.30rem);
  color: #fff8e7;
  letter-spacing: 0.01em;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.85), 0 0 10px rgba(255, 240, 200, 0.18);
  white-space: nowrap;
}

/* ── BET plate: label above stepper row ── */
.bet-plate { gap: 2px; }

.bet-stepper {
  display: flex;
  align-items: center;
  gap: clamp(4px, 0.8vw, 8px);
}

/* ── Bet ± buttons ── */
.btn-bet {
  background: linear-gradient(145deg, #7a4a00, #3e2500);
  color: #f0c040;
  border: 1.5px solid rgba(212, 175, 55, 0.80);
  border-radius: 50%;
  width: clamp(20px, 2.5vw, 30px);
  height: clamp(20px, 2.5vw, 30px);
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: clamp(0.85rem, 1.5vw, 1.10rem);
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow:
    0 0 8px rgba(200, 150, 0, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.10s ease, filter 0.10s ease;
  flex-shrink: 0;
}
.btn-bet:hover    { filter: brightness(1.25); transform: scale(1.08); }
.btn-bet:active   { transform: scale(0.92); }
.btn-bet:disabled { opacity: 0.30; cursor: default; filter: none; transform: none; }

/* ── Action group: info + spin + maker mark ── */
.ui-bar-actions {
  display: flex;
  align-items: center;
  gap: clamp(4px, 0.9vw, 10px);
  flex-shrink: 0;
}

/* ── Info image button ── */
.btn-info-img {
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  width: clamp(32px, 4.2vw, 50px);
  height: clamp(32px, 4.2vw, 50px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-info-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.60));
  transition: transform 0.12s ease, filter 0.12s ease;
}
.btn-info-img:hover img {
  transform: scale(1.10);
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.75)) drop-shadow(0 1px 4px rgba(0, 0, 0, 0.60));
}
.btn-info-img:active img { transform: scale(0.93); }

/* ── Spin button ── */
.btn-spin {
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  width: clamp(50px, 7.0vw, 84px);
  height: clamp(50px, 7.0vw, 84px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-spin img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 6px rgba(200, 160, 0, 0.55));
  transition: transform 0.12s ease, filter 0.12s ease;
}
.btn-spin:hover img {
  transform: scale(1.07);
  filter: drop-shadow(0 0 14px rgba(212, 175, 55, 0.85)) drop-shadow(0 0 6px rgba(255, 210, 0, 0.50));
}
.btn-spin:active img {
  transform: scale(0.94);
  transition: transform 0.07s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.07s ease;
}
.btn-spin:disabled { opacity: 0.50; cursor: default; }
.btn-spin:disabled img { filter: none; }

/* ── Maker's mark badge ── */
.bar-maker-mark {
  display: block;
  flex-shrink: 0;
  width: clamp(32px, 4.2vw, 52px);
  height: clamp(32px, 4.2vw, 52px);
  object-fit: contain;
  opacity: 0.72;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.50));
}

/* ═══════════════════════════════════════════════
   BONUS BUY MODAL — Neon Arcade Theme
   ═══════════════════════════════════════════════ */

.bonus-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
}
.bonus-modal.open { display: flex; }

.bonus-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 10, 0.86);
  backdrop-filter: blur(4px);
}

.bonus-panel {
  position: relative;
  z-index: 1;
  background: linear-gradient(155deg,
    rgba(4, 8, 28, 0.98) 0%,
    rgba(5, 3, 20, 0.99) 55%,
    rgba(2, 4, 18, 1) 100%
  );
  border: 1.5px solid rgba(0, 180, 255, 0.32);
  border-radius: 24px;
  padding: 36px 32px 32px;
  max-width: 980px;
  width: calc(100vw - 40px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  box-shadow:
    0 0 80px rgba(0, 100, 255, 0.20),
    0 0 40px rgba(255, 20, 160, 0.10),
    0 24px 80px rgba(0, 0, 0, 0.82),
    inset 0 1px 0 rgba(0, 200, 255, 0.10),
    inset 0 0 40px rgba(0, 10, 40, 0.55);
}

.bonus-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: rgba(0, 180, 255, 0.10);
  border: 1px solid rgba(0, 200, 255, 0.35);
  color: rgba(0, 220, 255, 0.85);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, box-shadow 0.15s;
  box-shadow: 0 0 8px rgba(0, 180, 255, 0.18);
}
.bonus-close:hover {
  background: rgba(0, 180, 255, 0.22);
  box-shadow: 0 0 18px rgba(0, 210, 255, 0.55);
}

.bonus-title {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: clamp(1.3rem, 3.2vw, 2.2rem);
  color: #e4f8ff;
  text-align: center;
  letter-spacing: 0.16em;
  margin-bottom: 28px;
  text-shadow:
    0 0 14px rgba(0, 220, 255, 0.95),
    0 0 34px rgba(0, 160, 255, 0.60),
    0 0 66px rgba(80, 0, 255, 0.28);
}

/* ── Two tier cards ── */
.bonus-cards {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.bonus-card {
  flex: 1;
  min-width: 220px;
  max-width: 300px;
  background: linear-gradient(160deg,
    rgba(0, 14, 38, 0.84) 0%,
    rgba(2, 6, 22, 0.92) 100%
  );
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* TIER 1 — Electric Blue */
.bonus-card.tier1 {
  border: 1.5px solid rgba(0, 180, 255, 0.68);
  box-shadow:
    0 0 28px rgba(0, 160, 255, 0.26),
    0 0 8px rgba(0, 220, 255, 0.14),
    inset 0 1px 0 rgba(0, 200, 255, 0.07);
}

/* TIER 2 — Hot Pink/Magenta (premium, stronger glow) */
.bonus-card.tier2 {
  border: 1.5px solid rgba(255, 20, 180, 0.76);
  box-shadow:
    0 0 36px rgba(255, 20, 180, 0.33),
    0 0 16px rgba(255, 80, 220, 0.18),
    inset 0 1px 0 rgba(255, 60, 200, 0.09);
}

.card-accent-bar {
  height: 4px;
  flex-shrink: 0;
}
.tier1 .card-accent-bar {
  background: linear-gradient(90deg, #0088ff, #00d4ff, #0077ee);
  box-shadow: 0 0 14px rgba(0, 200, 255, 0.85), 0 0 28px rgba(0, 140, 255, 0.42);
}
.tier2 .card-accent-bar {
  background: linear-gradient(90deg, #cc00bb, #ff28c8, #ee00aa);
  box-shadow: 0 0 18px rgba(255, 40, 200, 0.92), 0 0 36px rgba(220, 0, 200, 0.50);
}

.card-body {
  padding: 20px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

.card-tier-label {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  opacity: 0.65;
}
.tier1 .card-tier-label { color: #00d4ff; }
.tier2 .card-tier-label { color: #ff40cc; }

.card-name {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: clamp(1.05rem, 2.2vw, 1.5rem);
  letter-spacing: 0.05em;
  line-height: 1.2;
}
.tier1 .card-name {
  color: #e0f6ff;
  text-shadow: 0 0 12px rgba(0, 200, 255, 0.55);
}
.tier2 .card-name {
  color: #ffe0f8;
  text-shadow: 0 0 14px rgba(255, 40, 200, 0.62);
}

.card-price {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1;
}
.tier1 .card-price {
  color: #00d4ff;
  text-shadow:
    0 0 16px rgba(0, 200, 255, 0.90),
    0 0 34px rgba(0, 150, 255, 0.48);
}
.tier2 .card-price {
  color: #ff28c8;
  text-shadow:
    0 0 20px rgba(255, 40, 200, 1.0),
    0 0 42px rgba(220, 0, 180, 0.58);
}

.card-desc {
  font-family: 'Fredoka', sans-serif;
  font-weight: 400;
  font-size: 0.88rem;
  color: rgba(215, 238, 255, 0.80);
  line-height: 1.55;
  flex: 1;
}

.card-subdesc {
  font-family: 'Fredoka', sans-serif;
  font-weight: 400;
  font-size: 0.76rem;
  line-height: 1.5;
}
.tier1 .card-subdesc { color: rgba(0, 200, 255, 0.48); }
.tier2 .card-subdesc { color: rgba(255, 40, 200, 0.48); }

.card-buy-btn {
  margin-top: 6px;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: filter 0.15s, transform 0.08s, box-shadow 0.15s;
}
.card-buy-btn:active { transform: scale(0.96); }

.tier1 .card-buy-btn {
  background: linear-gradient(135deg, #0077dd 0%, #00aaff 50%, #0066cc 100%);
  color: #e8f8ff;
  box-shadow:
    0 4px 20px rgba(0, 160, 255, 0.50),
    0 0 0 1px rgba(0, 200, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  text-shadow: 0 0 8px rgba(0, 200, 255, 0.55);
}
.tier1 .card-buy-btn:hover {
  filter: brightness(1.22);
  box-shadow:
    0 4px 30px rgba(0, 180, 255, 0.78),
    0 0 0 1px rgba(0, 220, 255, 0.48);
  transform: scale(1.03);
}

.tier2 .card-buy-btn {
  background: linear-gradient(135deg, #aa0088 0%, #ff28c8 50%, #cc0099 100%);
  color: #fff0fc;
  box-shadow:
    0 4px 24px rgba(255, 20, 200, 0.60),
    0 0 0 1px rgba(255, 60, 220, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  text-shadow: 0 0 10px rgba(255, 100, 240, 0.68);
}
.tier2 .card-buy-btn:hover {
  filter: brightness(1.22);
  box-shadow:
    0 4px 38px rgba(255, 20, 200, 0.92),
    0 0 22px rgba(255, 20, 200, 0.38),
    0 0 0 1px rgba(255, 80, 230, 0.58);
  transform: scale(1.03);
}

/* ── Bonus buy confirmation overlay ── */
.confirm-overlay {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 5;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
}
.confirm-overlay.active {
  display: flex;
  animation: confirm-bg-flash 0.35s ease-out both;
}
@keyframes confirm-bg-flash {
  0%   { background: rgba(255, 230, 160, 0.45); }
  100% { background: rgba(0, 0, 0, 0.72); }
}

.confirm-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.confirm-overlay.active .confirm-panel {
  animation: confirm-drop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes confirm-drop {
  from { transform: translateY(-150%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

.confirm-img {
  width: clamp(140px, 28vw, 220px);
  height: auto;
  display: block;
  filter: drop-shadow(0 0 24px rgba(255, 200, 50, 0.55));
}

.confirm-text {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: clamp(0.85rem, 1.8vw, 1.1rem);
  color: #fff;
  text-align: center;
  line-height: 2;
  letter-spacing: 0.04em;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.25);
}

.confirm-btns {
  display: flex;
  gap: 36px;
}

.confirm-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, filter 0.15s;
}
.confirm-btn:hover  { transform: scale(1.14); filter: brightness(1.3); }
.confirm-btn:active { transform: scale(0.93); }

.confirm-yes {
  background: #22c55e;
  color: #fff;
  box-shadow: 0 0 22px rgba(34, 197, 94, 0.65);
}
.confirm-no {
  background: #ef4444;
  color: #fff;
  box-shadow: 0 0 22px rgba(239, 68, 68, 0.65);
}

/* ── Bonus buy celebration overlay ── */
.bonus-celebration {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.87);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.bonus-celebration.active {
  opacity: 1;
  pointer-events: auto;
}

.bonus-celebration-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
  padding: 48px 40px;
}

.bonus-celebration.active .bonus-celebration-content {
  animation: celeb-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes celeb-pop {
  from { transform: scale(0.72) translateY(-24px); opacity: 0; }
  to   { transform: scale(1)    translateY(0);     opacity: 1; }
}

.bonus-celebration-title {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: clamp(1.8rem, 5.5vw, 3.8rem);
  color: #ffd700;
  text-shadow:
    0 0 20px #ffd700,
    0 0 55px rgba(255, 200, 0, 0.75),
    0 0 100px rgba(255, 160, 0, 0.35);
  letter-spacing: 0.08em;
  line-height: 1.3;
}

.bonus-celebration-sub {
  font-family: 'Fredoka', sans-serif;
  font-weight: 400;
  font-size: clamp(0.95rem, 2.5vw, 1.5rem);
  color: #ffe880;
  letter-spacing: 0.10em;
  opacity: 0.88;
  line-height: 1.7;
  text-shadow: 0 0 12px rgba(255, 232, 128, 0.5);
}

/* ── Expanding wild column overlay ── */
.expanding-wild-container {
  position: absolute;
  z-index: 150;
  pointer-events: none;
  user-select: none;
}

/* Layer 1 (back): tileable column body — sparkle texture with gold side-frames */
.wild-body-bg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  /* top is set in JS to BANNER_OVERHANG px so the body starts at the grid top */
  background-image: url('assets/wild-column-body.png');
  background-repeat: repeat-y;
  background-size: 100% auto;
  background-position: 0 0;
  z-index: 1;
}

/* Layer 2: WILD banner — header cap at the top of the container, above the grid */
.wild-banner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  display: block;
  z-index: 2;
  -webkit-user-drag: none;
}

/* Layer 3: character image — upper area of the grid portion, natural aspect ratio */
.wild-character {
  position: absolute;
  /* top is set in JS: BANNER_OVERHANG + 10% of grid height */
  left: 50%;
  transform: translateX(-50%);
  width: 65%;
  height: auto;
  display: block;
  z-index: 2;
  -webkit-user-drag: none;
}

/* Layer 4 (front): multiplier text — lower area of the column */
.wild-mult-label {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(1rem, 2.5vw, 1.6rem);
  color: #ffd700;
  text-shadow:
    0 0 12px #ffd700,
    0 0 28px rgba(255, 200, 0, 0.8),
    0 2px 4px rgba(0, 0, 0, 0.9);
  letter-spacing: 0.05em;
  pointer-events: none;
  white-space: nowrap;
  z-index: 3;
}

/* ── Jackpot Mode: claw drop overlay element ── */
.claw-drop-anim {
  position: fixed;
  z-index: 500;
  height: auto;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  filter:
    drop-shadow(0 0 8px rgba(160, 32, 240, 0.9))
    drop-shadow(0 0 28px rgba(200, 0, 255, 0.5))
    drop-shadow(0 4px 12px rgba(0, 0, 0, 0.7));
}

/* ── Claw drop rainbow flash — over grid, under claw (z 100 vs 500) ── */
#claw-rainbow-flash {
  position: fixed;
  pointer-events: none;
  z-index: 100;
  opacity: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 0,   0,   0.55) 0%,
    rgba(255, 140, 0,   0.55) 18%,
    rgba(255, 240, 0,   0.55) 34%,
    rgba(0,   210, 80,  0.55) 50%,
    rgba(0,   120, 255, 0.55) 66%,
    rgba(140, 0,   255, 0.55) 82%,
    rgba(255, 0,   180, 0.55) 100%
  );
}

/* ── Claw drop assembly: fixed mount + repeating cord + head ── */
/* Geometry, assets, clip-path, and transforms are managed entirely by JS.     */
/* CSS provides only structural base; no layout properties change during motion. */
#claw-assembly {
  position: fixed;
  z-index: 500;
  pointer-events: none;
  user-select: none;
  display: none;
}

#claw-cord {
  position: absolute;
}

#claw-head {
  position: absolute;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* ── Seed bomb ticket punch-in animation ── */
@keyframes seed-bomb-punch {
  0%   { transform: scale(1);    filter: brightness(1); }
  28%  { transform: scale(1.32); filter: brightness(2.6) drop-shadow(0 0 22px rgba(255, 215, 0, 0.95)) drop-shadow(0 0 44px rgba(255, 165, 0, 0.65)); }
  62%  { transform: scale(0.93); filter: brightness(1.15); }
  100% { transform: scale(1);    filter: brightness(1); }
}
.cell--seed-punch {
  animation: seed-bomb-punch 0.48s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  z-index: 10;
}

@keyframes seed-bomb-glow {
  0%, 100% { filter: brightness(1.45) drop-shadow(0 0 12px rgba(255, 215, 0, 0.9)); }
  50%       { filter: brightness(1.8)  drop-shadow(0 0 26px rgba(255, 165, 0, 1)); }
}
.cell--seed-glow {
  animation: seed-bomb-glow 0.55s ease-in-out infinite;
  z-index: 10;
}

/* ── Prize reveal text popup ── */
#prize-reveal {
  position: fixed;
  left: 50%;
  top: 42%;
  z-index: 510;
  pointer-events: none;
  display: none;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  color: #ffd700;
  text-shadow: 0 0 28px rgba(255, 200, 0, 1), 0 2px 8px rgba(0, 0, 0, 0.95);
  background: rgba(12, 0, 30, 0.92);
  border: 3px solid rgba(255, 215, 0, 0.95);
  border-radius: 18px;
  padding: 22px 44px;
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.75);
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 48px rgba(255, 200, 0, 0.55), 0 12px 40px rgba(0, 0, 0, 0.8);
}
#prize-reveal.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ── Sticky 50× fire effect ──────────────────────────────────────────────── */
@keyframes fire-glow {
  0%   { box-shadow: 0 0 6px 2px rgba(255,80,0,.80), 0 0 14px 5px rgba(255,40,0,.45), inset 0 0 4px rgba(255,120,0,.25); border-color: rgba(255,100,0,.90); }
  25%  { box-shadow: 0 0 12px 5px rgba(255,180,0,.90), 0 0 22px 8px rgba(255,100,0,.55), inset 0 0 9px rgba(255,200,0,.45); border-color: rgba(255,210,0,1.00); }
  50%  { box-shadow: 0 0 8px 3px rgba(255,60,0,.85), 0 0 18px 6px rgba(200,30,0,.50), inset 0 0 6px rgba(255,80,0,.35); border-color: rgba(255,80,0,.95); }
  75%  { box-shadow: 0 0 14px 6px rgba(255,160,0,.90), 0 0 26px 10px rgba(255,120,0,.60), inset 0 0 11px rgba(255,180,0,.50); border-color: rgba(255,180,0,1.00); }
  100% { box-shadow: 0 0 6px 2px rgba(255,80,0,.80), 0 0 14px 5px rgba(255,40,0,.45), inset 0 0 4px rgba(255,120,0,.25); border-color: rgba(255,100,0,.90); }
}

@keyframes fire-label-float {
  0%,100% { transform: translateX(-50%) translateY(0px);  }
  50%     { transform: translateX(-50%) translateY(-2px); }
}

.sticky-fire {
  position: absolute;
  inset: -3px;
  border: 2.5px solid rgba(255,120,0,.95);
  border-radius: 9px;
  background: transparent;
  pointer-events: none;
  z-index: 5;
  animation: fire-glow 0.65s ease-in-out infinite;
}

.sticky-fire-label {
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(0.38rem, 1.1vw, 0.55rem);
  color: #fff;
  text-shadow: 0 0 6px rgba(255,160,0,1), 0 0 12px rgba(255,60,0,.9), 0 1px 2px rgba(0,0,0,.9);
  background: rgba(160,30,0,.88);
  padding: 1px 4px;
  border-radius: 3px;
  white-space: nowrap;
  animation: fire-label-float 1.1s ease-in-out infinite;
  pointer-events: none;
  z-index: 6;
  line-height: 1.3;
}

/* ── Info overlay ─────────────────────────────────────────────────────────── */
.info-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  align-items: center;
  justify-content: center;
}
.info-overlay.open { display: flex; }

.info-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  cursor: pointer;
}

.info-panel {
  position: relative;
  z-index: 1;
  background: #12112a;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  width: 720px;
  max-width: calc(100vw - 32px);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.7);
}

.info-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  flex-shrink: 0;
}

.info-page-indicator {
  font-family: 'Fredoka', sans-serif;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.5px;
}

.info-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 20px;
  cursor: pointer;
  padding: 2px 8px;
  line-height: 1;
  border-radius: 4px;
}
.info-close:hover { color: #fff; background: rgba(255,255,255,0.08); }

.info-content {
  flex: 1;
  overflow-y: auto;
  padding: 22px 28px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.info-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  flex-shrink: 0;
  gap: 8px;
}

.info-nav-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  padding: 8px 26px;
  cursor: pointer;
  font-family: 'Fredoka', sans-serif;
  transition: background 0.15s;
}
.info-nav-btn:hover:not(:disabled) { background: rgba(255,255,255,0.16); }
.info-nav-btn:disabled { opacity: 0.28; cursor: default; }

/* ── Info page content ── */
.info-page-title {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 22px;
  color: #f0c040;
  margin: 0 0 18px 0;
  text-align: center;
  letter-spacing: 0.5px;
}

.info-pay-label {
  font-family: 'Fredoka', sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.38);
  text-align: center;
  margin-bottom: 16px;
}

.info-sym-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.info-sym-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
  image-rendering: auto;
}

.info-sym-data { flex: 1; }

.info-sym-name {
  font-family: 'Fredoka', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.info-pay-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
}

.info-pay-cell {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  text-align: center;
  padding: 5px 3px;
}

.info-pay-header {
  font-family: 'Fredoka', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.38);
  line-height: 1.2;
}

.info-pay-value {
  font-family: 'Fredoka', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #f0c040;
  line-height: 1.4;
}

.info-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  margin: 12px 0;
}

.info-text {
  font-family: 'Fredoka', sans-serif;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.65;
  margin-bottom: 12px;
}
.info-text strong { color: #f0d060; }

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 12px;
}
.info-table th, .info-table td {
  font-family: 'Fredoka', sans-serif;
  font-size: 15px;
  padding: 7px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.info-table th {
  color: rgba(255, 255, 255, 0.38);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.info-table td { color: rgba(255, 255, 255, 0.78); }
.info-table td.accent { color: #f0c040; }

.info-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 16px;
}

.info-stat-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 9px;
  padding: 11px 15px;
}

.info-stat-label {
  font-family: 'Fredoka', sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.38);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.info-stat-value {
  font-family: 'Fredoka', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #f0c040;
  line-height: 1.2;
}

.info-mode-block {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
}

.info-mode-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}
.info-mode-title.prize-color   { color: #f5e040; }
.info-mode-title.jackpot-color { color: #ff5050; }
