/* ===========================================================================
 * jolt8 — Gates of Olympus 1000 (visual rebuild)
 * ======================================================================== */

/* ── Outer wrapper ───────────────────────────────────────────────── */
/* Cap width by viewport HEIGHT too: the 6x5 square grid is ~6:5 wide,
   so width = available_height * 1.2 keeps reels + bet controls on screen
   without scrolling on desktop. */
.oly {
  max-width: min(900px, calc((100vh - 330px) * 1.2));
  margin: 0 auto;
  padding-bottom: 24px;
}

/* ── Scene ───────────────────────────────────────────────────────── */
.oly-scene {
  display: flex;
  flex-direction: column;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  /* dark cosmic gradient — the live Three.js backdrop renders on top of this */
  background: radial-gradient(ellipse at 50% 28%, #2c1356 0%, #160a2c 48%, #090414 100%);
  box-shadow: 0 20px 60px rgba(0,0,0,.7), 0 0 0 1px rgba(120,90,180,.25);
  padding-bottom: 8px;
  transition: background .7s ease;
}
/* free-spin themes: scatter round = red, bolt round = orange */
.oly-scene.fs-scatter { background: radial-gradient(ellipse at 50% 30%, #c01225 0%, #5e0a14 46%, #1a0406 100%); }
.oly-scene.fs-bolt    { background: radial-gradient(ellipse at 50% 30%, #e07808 0%, #6e3204 46%, #1e0e02 100%); }
.oly-bg3d { transition: filter .7s ease; }
.oly-scene.fs-scatter .oly-bg3d { filter: hue-rotate(90deg)  saturate(1.8) brightness(.9); }
.oly-scene.fs-bolt    .oly-bg3d { filter: hue-rotate(128deg) saturate(1.9) brightness(1.15); }
/* JoltGod wordmark — phone only, centered, inside the cosmic stage */
.oly-logo {
  display: none;   /* hidden on desktop; shown on phone via media query */
  position: relative;
  z-index: 1;
  justify-content: center;
  padding: 10px 0 2px;
}
.oly-logo img {
  width: clamp(120px, 30%, 190px);
  height: auto;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,.5));
}


/* count bump used by the free-spins-left indicator in the bottom bar */
@keyframes ofcBump { 0% { transform: scale(1); } 40% { transform: scale(1.35); color: #fff; } 100% { transform: scale(1); } }

/* a bolt that flies from the reels into the charge meter when collected */
.oly-bolt-fly {
  position: fixed;
  z-index: 60;
  pointer-events: none;
  transform: translate(0, 0) scale(1);
  filter: drop-shadow(0 0 8px rgba(90,180,255,.95)) drop-shadow(0 0 16px rgba(40,130,255,.7));
  will-change: transform, opacity;
}
.oly-bolt-fly svg { width: 100%; height: 100%; display: block; }
.oly-bolt-fly svg path { fill: #eaf6ff; stroke: #3aa0ff; stroke-width: .6; }
/* the meter icon kicks when a bolt lands in it */
.ochg-bolt.hit { animation: ochgBoltHit .35s ease; }
@keyframes ochgBoltHit {
  0% { transform: scale(1); } 45% { transform: scale(1.55); filter: drop-shadow(0 0 14px rgba(150,210,255,1)); } 100% { transform: scale(1); }
}

/* live 3D backdrop canvas — fills the scene, sits behind everything */
.oly-bg3d {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
/* keep gameplay layers above the 3D canvas */
.oly-inner-row, .oly-pay-bar { position: relative; z-index: 1; }

/* ── Inner row: column + machine + column ────────────────────────── */
.oly-inner-row {
  flex: 1 1 auto;
  display: flex;
  align-items: stretch;
  min-height: 0;   /* hug the grid so the scene height tracks the reels */
}

/* ── Side column strips removed — let the cosmic backdrop reach the edges ── */
.oly-col, .oly-col-right { display: none; }

/* ── Machine (reels frame) ──────────────────────────────────────── */
.oly-machine {
  flex: 1 1 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(34, 8, 58, .42);   /* semi-transparent so 3D backdrop shows through */
  outline: none;
  box-shadow:
    inset 0 0 60px rgba(80,20,140,.7),
    -2px 0 0 #c8a020,
    2px 0 0 #c8a020,
    inset 4px 0 0 rgba(60,20,100,.6),
    inset -4px 0 0 rgba(60,20,100,.6);
  overflow: visible;
}

/* gold top & bottom frame bars removed for a clean cosmic look */

/* ── HUD row (balance + win) — hidden inside machine; shown in controls ─ */
.oly-hud {
  display: none;
}
.oly-bal-pill {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(0,0,0,.5);
  border: 1px solid rgba(200,160,40,.45);
  border-radius: 99px;
  padding: 4px 10px;
  font-weight: 700; font-size: 12px; color: #ffe090;
}
.oly-bal-pill svg { color: #ffd23f; }
.oly-win-hud {
  background: rgba(0,0,0,.5);
  border: 1px solid rgba(200,160,40,.45);
  border-radius: 99px;
  padding: 4px 12px;
  font-size: 10px; letter-spacing: 1px;
  color: rgba(200,170,100,.75);
}
.oly-win-hud b { color: #ffd23f; font-size: 13px; }

/* ── Reels wrapper — dark purple matching real PP ─────────── */
.oly-reels {
  position: relative;
  flex: 1 1 auto;
  padding: 4px 6px 6px;
  background: rgba(20, 8, 48, .34);   /* see-through to the 3D cosmic backdrop */
  box-shadow: inset 0 0 60px rgba(60,10,100,.55);
  overflow: hidden;                   /* keep dropping/falling symbols inside the reel box */
}

/* ── Grid ────────────────────────────────────────────────────────── */
.oly-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  column-gap: 0;
  row-gap: clamp(6px, 1.2vw, 12px);
  position: relative;
  z-index: 1;
}

/* thin vertical reel divider lines (between the 6 columns) */
.oly-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,225,150,.16), rgba(255,225,150,.16)),
    linear-gradient(rgba(255,225,150,.16), rgba(255,225,150,.16)),
    linear-gradient(rgba(255,225,150,.16), rgba(255,225,150,.16)),
    linear-gradient(rgba(255,225,150,.16), rgba(255,225,150,.16)),
    linear-gradient(rgba(255,225,150,.16), rgba(255,225,150,.16));
  background-size: 1px 100%;
  background-repeat: no-repeat;
  background-position:
    calc(100%/6 * 1) 0,
    calc(100%/6 * 2) 0,
    calc(100%/6 * 3) 0,
    calc(100%/6 * 4) 0,
    calc(100%/6 * 5) 0;
}

/* ── Cell — no box, symbols sit directly on the reel ──────────────── */
.oly-cell {
  position: relative;
  z-index: 1;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Symbol base ─────────────────────────────────────────────────── */
.oly-sym {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 14%;
  background-color: transparent;
  border: none;
  background-size: 86%;
  background-position: center;
  background-repeat: no-repeat;
  filter: drop-shadow(0 3px 5px rgba(0,0,0,.45));
}

/* Drop-in animation */
.oly-sym.drop { animation: olyDrop .34s cubic-bezier(.3,1.2,.5,1) both; }
@keyframes olyDrop {
  from { transform: translateY(-200%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

/* Win — soft round golden glow, no box outline */
.oly-sym.win {
  animation: olyWin .42s ease-in-out infinite alternate;
  z-index: 2;
}
.oly-sym.win::before {
  content: '';
  position: absolute;
  inset: -22%;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255,225,90,.7) 0%,
    rgba(255,160,20,.35) 38%,
    transparent 70%);
  animation: olyWinGlow .42s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: -1;
}
@keyframes olyWin {
  from { transform: scale(1);    filter: brightness(1.15) saturate(1.2); }
  to   { transform: scale(1.14); filter: brightness(1.6) saturate(1.4) drop-shadow(0 0 10px rgba(60,220,255,.8)); }
}
@keyframes olyWinGlow {
  from { opacity: .65; transform: scale(.94); }
  to   { opacity: 1;   transform: scale(1.1); }
}
@keyframes olyElec {
  0%   { background-position: 0 0, 0 0; }
  100% { background-position: 14px 14px, -14px 14px; }
}

/* Lift special-symbol cells (scatter / wild) above the dark reel-divider
   strips so their glow renders in FRONT, not clipped behind them */
.oly-cell.lift { z-index: 4; }
/* Burst — lift the whole cell above the dark reel-divider strips so the
   explosion glow renders in FRONT, not behind them */
.oly-cell.bursting { z-index: 5; }
.oly-sym.burst { animation: olyBurst .32s ease-out forwards; z-index: 3; }
@keyframes olyBurst {
  0%   { transform: scale(1);   opacity: 1; }
  32%  { transform: scale(1.5); filter: brightness(2.8) drop-shadow(0 0 20px #fff); }
  100% { transform: scale(.06) rotate(30deg); opacity: 0; }
}
.oly-sym.burst::after {
  content: '';
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255,244,200,.9), rgba(255,180,80,.5) 40%, transparent 70%);
  animation: olyShock .44s ease-out forwards;
}
@keyframes olyShock {
  0%   { transform: scale(.3);  opacity: .9; }
  100% { transform: scale(2.2); opacity: 0;  }
}

/* ── Low-value gem symbols — real Pragmatic Play PNG sprites ─────── */
.gem-blue, .gem-green, .gem-yellow, .gem-purple, .gem-red {
  background-size: 96%;
  background-position: center;
  background-repeat: no-repeat;
}
.gem-blue   { background-image: url(/assets/images/olympus/gem_blue.png); }
.gem-green  { background-image: url(/assets/images/olympus/gem_green.png); }
.gem-yellow { background-image: url(/assets/images/olympus/gem_yellow.png); }
.gem-purple { background-image: url(/assets/images/olympus/gem_purple.png); }
.gem-red    { background-image: url(/assets/images/olympus/gem_red.png); }

/* ── High-value symbols — real PP sprites ───────────────────────── */
.sym-crown, .sym-hour, .sym-ring, .sym-cup {
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}
.sym-crown { background-image: url(/assets/images/olympus/sym_crown.png); }
.sym-hour  { background-image: url(/assets/images/olympus/sym_hour.png);  }
.sym-ring  { background-image: url(/assets/images/olympus/sym_ring.png);  }
.sym-cup   { background-image: url(/assets/images/olympus/sym_cup.png);   }

/* ── Zeus scatter — real PP scatter sprite (Zeus face + SCATTER text) ── */
.sym-zeus {
  background-image: url(/assets/images/olympus/sym_scatter.png);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  z-index: 2;
  border-radius: 0;        /* square corners — don't round the framed scatter tile */
  animation: symScatterPulse 1.3s ease-in-out infinite;
}
/* constant attention pulse so scatters always stand out */
@keyframes symScatterPulse {
  0%,100% { transform: scale(1);    filter: drop-shadow(0 0 6px rgba(255,180,40,.55)); }
  50%     { transform: scale(1.07); filter: drop-shadow(0 0 18px rgba(255,215,90,1)); }
}
/* dramatic hit when scatters trigger the free-spins feature */
.sym-zeus.scatter-hit {
  z-index: 6;
  animation: symScatterHit .42s ease-in-out infinite alternate;
}
.sym-zeus.scatter-hit::after {
  content: '';
  position: absolute; inset: -30%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,225,120,.7) 0%, rgba(255,180,40,.25) 45%, transparent 70%);
  z-index: -1;
  animation: symScatterRing .7s ease-out infinite;
}
@keyframes symScatterHit {
  from { transform: scale(1.06); filter: drop-shadow(0 0 16px rgba(255,205,70,.85)) brightness(1.12); }
  to   { transform: scale(1.24); filter: drop-shadow(0 0 34px rgba(255,235,130,1)) brightness(1.45); }
}
@keyframes symScatterRing {
  0%   { transform: scale(.6);  opacity: .9; }
  100% { transform: scale(1.5); opacity: 0;  }
}

/* ── Wild — Zeus, substitutes for any paying symbol ──────────────── */
.sym-wild {
  background-image: url(/assets/images/olympus/sym_wild.png);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  filter: drop-shadow(0 0 10px rgba(120,180,255,.65));
  animation: symWildGlow 1.6s ease-in-out infinite alternate;
}
@keyframes symWildGlow {
  from { filter: drop-shadow(0 0 6px rgba(120,180,255,.45)); }
  to   { filter: drop-shadow(0 0 16px rgba(150,200,255,.9)); }
}

/* ── Lightning Bolt — rare collectible that charges the meter ─────── */
.sym-bolt {
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 4;
  perspective: 420px;
  background: none;                /* no tile/box — just the glowing bolt */
}
.sym-bolt .sb-spin {
  width: 72%; height: 72%;
  transform-style: preserve-3d;
  animation: symBoltSpin 2.4s linear infinite, symBoltGlow 1.2s ease-in-out infinite;
  will-change: transform, filter;
  /* the glow lives on the bolt shape itself, so there's no box behind it */
  filter: drop-shadow(0 0 5px rgba(120,200,255,1)) drop-shadow(0 0 12px rgba(50,140,255,.85)) drop-shadow(0 0 22px rgba(40,120,255,.5));
}
.sym-bolt svg { width: 100%; height: 100%; display: block; }
.sym-bolt svg path { fill: #eaf6ff; stroke: #3aa0ff; stroke-width: .6; }
@keyframes symBoltSpin { to { transform: rotateY(360deg); } }
@keyframes symBoltGlow {
  0%,100% { filter: drop-shadow(0 0 4px rgba(120,200,255,.85)) drop-shadow(0 0 10px rgba(50,140,255,.7)) drop-shadow(0 0 18px rgba(40,120,255,.4)); }
  50%     { filter: drop-shadow(0 0 7px rgba(150,215,255,1))  drop-shadow(0 0 16px rgba(60,150,255,.95)) drop-shadow(0 0 28px rgba(40,120,255,.65)); }
}
/* when collected, the bolt leaves the reel (the flying clone carries it to the meter) */
.sym-bolt.bolt-hit { opacity: 0; transition: opacity .12s ease; }

/* ── Lightning Meter — blue electric charge bar above the reels ──── */
.oly-charge {
  flex-shrink: 0;
  align-self: stretch;                 /* span the machine; auto margins would collapse the track */
  display: flex; align-items: center; gap: 8px;
  margin: 0 14px 6px;
  padding: 4px 10px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(10,22,52,.85), rgba(6,12,30,.85));
  border: 1px solid rgba(80,150,255,.35);
  box-shadow: inset 0 0 12px rgba(30,90,200,.35), 0 0 14px rgba(40,110,255,.2);
}
.ochg-bolt {
  display: flex; flex: 0 0 auto;
  filter: drop-shadow(0 0 6px rgba(90,180,255,.9));
  animation: ochgBoltPulse 1.3s ease-in-out infinite;
}
.ochg-bolt svg { width: 18px; height: 18px; fill: #bfe2ff; }
@keyframes ochgBoltPulse { 0%,100% { opacity: .8; } 50% { opacity: 1; transform: scale(1.12); } }
.ochg-track {
  position: relative; flex: 1 1 auto;
  height: 12px; border-radius: 7px; overflow: hidden;
  background: rgba(4,10,28,.9);
  box-shadow: inset 0 1px 3px rgba(0,0,0,.7), inset 0 0 0 1px rgba(70,130,220,.25);
}
.ochg-fill {
  position: absolute; inset: 0 auto 0 0; width: 0%;
  border-radius: 7px;
  background: linear-gradient(90deg, #0a4bd0 0%, #2e8bff 45%, #6fd0ff 100%);
  box-shadow: 0 0 10px rgba(70,160,255,.9), inset 0 0 6px rgba(190,230,255,.6);
  transition: width .55s cubic-bezier(.3,1.2,.5,1);
}
.ochg-fill::after {              /* moving electric shimmer along the fill */
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(220,240,255,.75), transparent);
  background-size: 40% 100%; background-repeat: no-repeat;
  animation: ochgShimmer 1.4s linear infinite;
  mix-blend-mode: screen;
}
@keyframes ochgShimmer { 0% { background-position: -40% 0; } 100% { background-position: 140% 0; } }
.ochg-glow {                      /* spark that flares at the leading edge when charging */
  position: absolute; top: 50%; left: 0; width: 16px; height: 16px;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(220,245,255,1) 0%, rgba(90,180,255,.7) 45%, transparent 72%);
  opacity: 0; pointer-events: none;
}
.oly-charge.charging .ochg-glow { animation: ochgSpark .7s ease-out; }
@keyframes ochgSpark { 0% { opacity: 1; transform: translate(-50%,-50%) scale(.5); } 100% { opacity: 0; transform: translate(-50%,-50%) scale(2.2); } }
.oly-charge.charging { animation: ochgShake .4s ease; }
@keyframes ochgShake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-2px); } 75% { transform: translateX(2px); } }
.oly-charge.full { border-color: rgba(120,200,255,.8); box-shadow: 0 0 22px rgba(70,160,255,.8), inset 0 0 16px rgba(60,140,255,.6); }
.ochg-val {
  flex: 0 0 auto; font-size: 11px; font-weight: 800; letter-spacing: .5px;
  color: #cfe6ff; text-shadow: 0 0 6px rgba(60,140,255,.6);
}
.ochg-val b { color: #fff; font-size: 13px; }
.ochg-val i { opacity: .55; font-style: normal; margin: 0 1px; }

/* ── Bottom rotating info bar — matches real PP game ─────────────── */
/* shown only during a free-spin round — displays spins remaining */
.oly-pay-bar {
  flex-shrink: 0;
  position: relative;
  height: clamp(22px, 3.5vw, 28px);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: linear-gradient(90deg, transparent, rgba(60,130,230,.22) 20%, rgba(60,130,230,.28) 80%, transparent);
  border-top: 1px solid rgba(120,180,255,.4);
}
.oly-pay-bar[hidden] { display: none; }
/* floating "+N FREE SPINS" cue when a round is extended (scatters or bolts) */
.oly-spin-gain {
  position: fixed; z-index: 70; pointer-events: none;
  transform: translate(-50%, -50%);
  font-size: 15px; font-weight: 900; letter-spacing: 1px; white-space: nowrap;
  color: #fff; text-shadow: 0 0 10px rgba(90,170,255,1), 0 0 18px rgba(50,140,255,.8), 0 2px 3px rgba(0,0,0,.8);
  animation: olySpinGain 1.2s ease-out forwards;
}
@keyframes olySpinGain {
  0%   { opacity: 0; transform: translate(-50%, -30%) scale(.7); }
  20%  { opacity: 1; transform: translate(-50%, -90%) scale(1.1); }
  70%  { opacity: 1; transform: translate(-50%, -150%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -210%) scale(1); }
}
.oly-bar-fs {
  font-size: clamp(9px, 1.5vw, 12px);
  font-weight: 800;
  letter-spacing: 2px;
  color: #cfe6ff;
  text-shadow: 0 0 8px rgba(80,160,255,.7);
  text-transform: uppercase;
}
.oly-bar-fs b { color: #fff; font-size: 1.25em; margin-right: 2px; }
.oly-bar-fs b.bump { display: inline-block; animation: ofcBump .35s ease; }

/* ── Gravity tumble falling layer ───────────────────────────────── */
.oly-drop-layer { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.oly-drop { position: absolute; display: flex; align-items: center; justify-content: center; padding: 4px; box-sizing: border-box; }
.oly-drop .oly-sym { width: 100%; height: 100%; }

/* ── Spin busy state ─────────────────────────────────────────────── */
.oly-spin.spinning ~ * .oly-grid,
.oly-reels.busy .oly-grid {
  filter: blur(1px) brightness(1.1);
  transition: filter .15s;
}

/* ── Flash / shake effects ───────────────────────────────────────── */
.oly-light {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  background: radial-gradient(circle at 50% 8%, rgba(170,215,255,.65), rgba(120,160,255,.2) 45%, transparent 70%);
}
.oly-light.flash { animation: olyFlash .55s ease-out; }
@keyframes olyFlash {
  0%  { opacity: 0; }
  12% { opacity: 1; }
  28% { opacity: .2; }
  46% { opacity: .9; }
  72% { opacity: .15; }
  100% { opacity: 0; }
}
.oly-grid.shake { animation: olyShake .42s ease-in-out; }
@keyframes olyShake {
  0%,100% { transform: translate(0,0); }
  20% { transform: translate(-3px, 2px); }
  40% { transform: translate( 3px,-2px); }
  60% { transform: translate(-2px, 2px); }
  80% { transform: translate( 2px,-1px); }
}

/* ── Overlays ────────────────────────────────────────────────────── */
.oly-cascade-win {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  font-weight: 900;
  font-size: clamp(16px, 3.8vw, 24px);
  color: #ffe07a;
  text-shadow: 0 2px 10px rgba(0,0,0,.6), 0 0 20px rgba(255,200,80,.5);
  pointer-events: none;
}
.oly-cascade-win.show { animation: olyCW 1.1s ease-out; }
@keyframes olyCW {
  0%   { transform: translate(-50%,-40%) scale(.6); opacity: 0; }
  20%  { transform: translate(-50%,-50%) scale(1.1); opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translate(-50%,-65%) scale(1);  opacity: 0; }
}

/* ── Free Spin Popup — full-screen modal ─────────────────────── */
.oly-fs-banner {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s;
}
.oly-fs-banner.show { opacity: 1; pointer-events: auto; }

.ofs-backdrop {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(60,10,120,.85), rgba(4,1,16,.96));
  backdrop-filter: blur(6px);
}

.ofs-popup {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  width: min(520px, 92%);
  transform: scale(.55) translateY(40px);
  transition: transform .45s cubic-bezier(.17,.67,.35,1.4);
}
.oly-fs-banner.show .ofs-popup { transform: scale(1) translateY(0); }

/* generated banner artwork */
.ofs-art {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 30px rgba(120,50,240,.55));
  animation: ofsArtFloat 3.2s ease-in-out infinite;
}
@keyframes ofsArtFloat {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* spin count */
.ofs-count-wrap {
  display: flex; flex-direction: column; align-items: center;
  margin-top: -6px;
}
.ofs-count {
  display: inline-block;
  font-size: clamp(48px, 14vw, 84px);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(180deg,#fff 0%,#ffe680 40%,#e0a020 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 16px rgba(255,200,60,.7));
  animation: ofsBounce .6s cubic-bezier(.36,.07,.19,.97) both;
}
@keyframes ofsBounce {
  0%   { transform: scale(0); opacity:0; }
  60%  { transform: scale(1.15); }
  80%  { transform: scale(.95); }
  100% { transform: scale(1); opacity:1; }
}

/* "SPINS AWARDED" sub */
.ofs-awarded {
  font-size: clamp(11px, 2.5vw, 14px);
  font-weight: 700;
  letter-spacing: 3px;
  color: rgba(220,190,255,.75);
  margin-top: 2px;
}

/* SPIN NOW button */
.ofs-btn {
  display: inline-block;
  margin-top: 16px;
  padding: 11px 40px;
  font-size: clamp(13px, 3vw, 16px);
  font-weight: 900;
  letter-spacing: 2px;
  color: #1a0a00;
  background: linear-gradient(135deg, #ffe566, #f0a020, #ffd060);
  border: none; border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255,180,20,.55), 0 1px 0 rgba(255,255,255,.3) inset;
  transition: transform .12s, box-shadow .12s;
  animation: ofsBtnPulse 1.6s ease-in-out infinite alternate;
}
.ofs-btn:hover  { transform: scale(1.06); box-shadow: 0 6px 28px rgba(255,180,20,.8); }
.ofs-btn:active { transform: scale(.97); }
@keyframes ofsBtnPulse {
  from { box-shadow: 0 4px 20px rgba(255,180,20,.55); }
  to   { box-shadow: 0 4px 36px rgba(255,200,40,.9); }
}

/* ── Win Popup (NICE / BIG / MEGA) — PP-style, full-screen modal ─── */
.oly-bigwin {
  position: fixed; inset: 0; z-index: 220;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s;
  pointer-events: none; overflow: hidden;
}
.oly-bigwin.show { opacity: 1; pointer-events: auto; }

/* backdrop — dark vignette with a warm center glow + rotating light rays */
.obw-back {
  position: absolute; inset: 0;
  backdrop-filter: blur(4px);
  overflow: hidden;
}
[data-win="nice"] .obw-back { background: radial-gradient(ellipse 65% 55% at 50% 44%, rgba(60,150,255,.24) 0%, rgba(4,8,24,.9) 56%, rgba(1,2,12,.97) 100%); }
[data-win="big"]  .obw-back { background: radial-gradient(ellipse 65% 55% at 50% 44%, rgba(255,70,50,.24) 0%, rgba(22,3,4,.9) 56%, rgba(12,1,1,.97) 100%); }
[data-win="mega"] .obw-back { background: radial-gradient(ellipse 65% 55% at 50% 44%, rgba(255,55,40,.28) 0%, rgba(24,2,2,.92) 56%, rgba(14,1,1,.98) 100%); }
/* spinning light rays — two counter-rotating layers for a rich, premium backdrop */
.obw-back::after, .obw-back::before {
  content: ''; position: absolute; left: 50%; top: 44%;
  width: 180vmax; height: 180vmax; transform: translate(-50%, -50%);
  mix-blend-mode: screen; pointer-events: none;
}
.obw-back::after {
  background: repeating-conic-gradient(from 0deg, rgba(120,190,255,.14) 0deg 5deg, transparent 5deg 13deg);
  animation: obwRaysSpin 16s linear infinite;
}
.obw-back::before {                                   /* wider, slower, counter-spin for depth */
  background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.05) 0deg 9deg, transparent 9deg 26deg);
  animation: obwRaysSpinRev 34s linear infinite;
}
[data-win="big"]  .obw-back::after { background: repeating-conic-gradient(from 0deg, rgba(255,120,90,.14) 0deg 5deg, transparent 5deg 13deg); }
[data-win="mega"] .obw-back::after { background: repeating-conic-gradient(from 0deg, rgba(255,100,70,.15) 0deg 5deg, transparent 5deg 13deg); }
@keyframes obwRaysSpin    { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes obwRaysSpinRev { to { transform: translate(-50%, -50%) rotate(-360deg); } }

/* confetti pieces */
.obw-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.obw-piece {
  position: absolute; top: -24px;
  width: 15px; height: 15px; border-radius: 50%;   /* gold coins */
  box-shadow: inset 0 0 0 1px rgba(255,240,180,.5), 0 1px 3px rgba(0,0,0,.4);
  animation: obwFall linear forwards;
}
@keyframes obwFall {
  0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: translateY(105vh) rotate(900deg); opacity: 0; }
}

/* stars */
.obw-stars { position: absolute; inset: 0; pointer-events: none; }
.obw-star {
  position: absolute;
  font-style: normal; line-height: 1;
  animation: obwStarPop ease-out both, obwStarSpin linear infinite;
}
@keyframes obwStarPop  { 0%{transform:scale(0);opacity:0} 60%{transform:scale(1.3);opacity:1} 100%{transform:scale(1);opacity:1} }
@keyframes obwStarSpin { to { transform: rotate(360deg); } }

/* centered floating content */
.obw-inner {
  position: relative; z-index: 3;
  display: flex; flex-direction: column; align-items: center;
  gap: 16px; text-align: center;
  font-family: 'Lilita One', system-ui, sans-serif;
}

/* title two-line: NICE / WIN — chunky display font */
.obw-title-wrap {
  display: flex; flex-direction: column; align-items: center;
  line-height: .82;
}
.oly-bigwin.show .obw-title-wrap { animation: obwTitlePulse 1.7s ease-in-out 1s infinite; }
@keyframes obwTitlePulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.045); } }

.obw-word1, .obw-word2 {
  font-family: 'Lilita One', system-ui, sans-serif;
  font-weight: 400;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0;
}
.obw-word1 {
  letter-spacing: 2px; font-size: clamp(36px, 9.5vw, 64px);
  transform: scale(.5) translateY(-10px);
}
.obw-word2 {
  letter-spacing: 2px; font-size: clamp(56px, 14.5vw, 104px);
  background-image: linear-gradient(180deg, #eaf7ff 0%, #7cc8ff 36%, #2e8cff 72%, #0a52d8 100%);
  transform: scale(.5) translateY(8px);
  filter: drop-shadow(0 3px 0 rgba(10,48,120,.55)) drop-shadow(0 0 36px rgba(70,160,255,.8));
}
[data-win="big"] .obw-word2, [data-win="mega"] .obw-word2 {
  background-image: linear-gradient(180deg, #ffe2d6 0%, #ff7060 36%, #e21f28 72%, #9c0a12 100%);
  filter: drop-shadow(0 3px 0 rgba(110,8,8,.55)) drop-shadow(0 0 36px rgba(255,70,55,.82));
}
.oly-bigwin.show .obw-word1 { animation: obwW1In .5s cubic-bezier(.17,.67,.2,1.4) .05s forwards; }
.oly-bigwin.show .obw-word2 { animation: obwW2In .55s cubic-bezier(.17,.67,.2,1.4) .18s forwards; }
@keyframes obwW1In { to { opacity:1; transform: scale(1) translateY(0); } }
@keyframes obwW2In { to { opacity:1; transform: scale(1) translateY(0); } }

[data-win="nice"] .obw-word1 {
  background-image: linear-gradient(180deg, #eaf7ff 0%, #74c4ff 45%, #1f7bff 100%);
  filter: drop-shadow(0 2px 0 rgba(10,45,120,.6)) drop-shadow(0 0 24px rgba(70,150,255,.7));
}
[data-win="big"] .obw-word1 {
  background-image: linear-gradient(180deg, #ffe2d6 0%, #ff6a58 45%, #c81620 100%);
  filter: drop-shadow(0 2px 0 rgba(110,8,8,.6)) drop-shadow(0 0 26px rgba(255,70,50,.78));
}
[data-win="mega"] .obw-word1 {
  background-image: linear-gradient(180deg, #fff0d8 0%, #ff5a48 42%, #ff1018 75%, #b00610 100%);
  filter: drop-shadow(0 2px 0 rgba(120,0,0,.55)) drop-shadow(0 0 40px rgba(255,80,60,.92));
}

/* amount pill — glassy gold-rimmed */
.obw-pill {
  display: flex; align-items: baseline; gap: 5px;
  border: 2px solid transparent;
  border-radius: 60px;
  padding: 8px 32px 10px;
  background-image:
    linear-gradient(180deg, rgba(22,13,4,.96), rgba(8,5,2,.96)),
    linear-gradient(180deg, #ffeeb0, #e0a828 55%, #8a5e10);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 6px 26px rgba(0,0,0,.6), 0 0 34px rgba(255,190,50,.4), inset 0 1px 0 rgba(255,235,160,.3);
  opacity: 0; transform: translateY(14px) scale(.9);
}
.oly-bigwin.show .obw-pill { animation: obwPillIn .42s cubic-bezier(.2,.7,.3,1.4) .44s forwards; }
@keyframes obwPillIn { to { opacity:1; transform: translateY(0) scale(1); } }

.obw-amt {
  font-family: 'Lilita One', system-ui, sans-serif; font-weight: 400;
  font-size: clamp(36px, 9vw, 58px);
  line-height: 1; letter-spacing: 1px;
  background-image: linear-gradient(180deg, #fff8d8 0%, #ffd64e 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 14px rgba(255,200,50,.55));
}
.obw-jc {
  font-family: system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(13px, 3.2vw, 18px);
  color: rgba(255,210,100,.7);
  margin-left: 3px;
}

/* multiplier */
.obw-mult {
  font-family: system-ui, sans-serif;
  font-size: clamp(11px, 2.6vw, 15px);
  font-weight: 800; letter-spacing: 3px;
  color: #ffd874;
  text-shadow: 0 0 10px rgba(255,180,40,.5);
  opacity: 0;
}
.oly-bigwin.show .obw-mult {
  animation: obwPillIn .3s ease-out .78s forwards;
}

/* ── Controls bar ────────────────────────────────────────────────── */
.oly-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  padding: 4px 8px;
  background: none;
  border: none;
  box-shadow: none;
}

/* ── Left: credit / bet / win stack ──────────────────────────────── */
.oly-info { display: flex; flex-direction: column; gap: 3px; min-width: 168px; }
.oi-row { display: flex; align-items: baseline; gap: 10px; }
.oi-lbl {
  font-size: 11px; font-weight: 800; letter-spacing: 2px;
  color: #e0a030; text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
  min-width: 56px;
}
.oi-row b {
  font-size: 17px; font-weight: 800; color: #fff;
  letter-spacing: .3px; text-shadow: 0 1px 2px rgba(0,0,0,.7);
}
.oi-win b { color: #ffe24a; text-shadow: 0 0 10px rgba(255,200,40,.5), 0 1px 2px rgba(0,0,0,.7); }

/* ── Right: action cluster ───────────────────────────────────────── */
.oly-action { display: flex; align-items: center; gap: 14px; }
.oly-spin-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; }

/* round +/- buttons */
.oly-circ {
  width: 46px; height: 46px; border-radius: 50%;
  cursor: pointer; padding: 0;
  border: 2px solid rgba(255,210,110,.55);
  background:
    radial-gradient(circle at 40% 32%, rgba(80,46,120,.95), rgba(28,12,58,.98));
  box-shadow: 0 4px 0 rgba(0,0,0,.45), inset 0 2px 4px rgba(255,220,140,.18), inset 0 -4px 8px rgba(0,0,0,.4);
  display: flex; align-items: center; justify-content: center;
  transition: transform .08s, box-shadow .12s, border-color .12s;
}
.oly-circ svg { width: 22px; height: 22px; fill: #ffd884; filter: drop-shadow(0 1px 1px rgba(0,0,0,.5)); }
.oly-circ:hover { border-color: #ffe080; transform: translateY(-1px); }
.oly-circ:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0,0,0,.45), inset 0 2px 6px rgba(0,0,0,.5); }

/* big 3D circular spin button */
.oly-spin {
  width: 84px; height: 84px; border-radius: 50%;
  border: none; cursor: pointer; padding: 0; position: relative;
  background: radial-gradient(circle at 38% 30%, #fff6cf 0%, #ffd34a 26%, #f3a51e 58%, #b9700f 100%);
  box-shadow:
    0 0 0 3px rgba(255,228,130,.65),
    0 0 0 7px rgba(70,38,4,.55),
    0 8px 0 #6e4408,
    0 14px 26px rgba(0,0,0,.55),
    inset 0 3px 4px rgba(255,255,220,.85),
    inset 0 -8px 14px rgba(140,72,0,.55);
  display: flex; align-items: center; justify-content: center;
  transition: transform .08s, box-shadow .12s, filter .12s;
}
.oly-spin::after {  /* glossy top highlight */
  content: ''; position: absolute; top: 7px; left: 18%; width: 64%; height: 38%;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,.6), transparent);
  pointer-events: none;
}
.oly-spin-ic { width: 42px; height: 42px; fill: #5a3000; filter: drop-shadow(0 1px 0 rgba(255,250,210,.6)); position: relative; z-index: 1; }
.oly-spin:hover { filter: brightness(1.05); }
.oly-spin:active {
  transform: translateY(6px);
  box-shadow:
    0 0 0 3px rgba(255,228,130,.65), 0 0 0 7px rgba(70,38,4,.55),
    0 2px 0 #6e4408, 0 5px 12px rgba(0,0,0,.45),
    inset 0 3px 4px rgba(255,255,220,.7), inset 0 -6px 12px rgba(140,72,0,.5);
}
.oly-spin:disabled { filter: grayscale(.45) brightness(.7); cursor: default; }
.oly-spin.spinning .oly-spin-ic { animation: olySpinRot .7s linear infinite; }
@keyframes olySpinRot { to { transform: rotate(360deg); } }
/* free-spin mode — purple/gold ring pulse so the player knows spins are free */
.oly-spin.free-spin {
  background: radial-gradient(circle at 38% 30%, #fff6cf 0%, #ffd34a 24%, #c060f0 62%, #7a2bb0 100%);
  animation: olyFreePulse 1.1s ease-in-out infinite;
}
@keyframes olyFreePulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255,228,130,.65), 0 0 0 7px rgba(70,38,4,.55), 0 8px 0 #6e4408, 0 14px 26px rgba(0,0,0,.55), 0 0 18px rgba(200,120,255,.45), inset 0 3px 4px rgba(255,255,220,.85), inset 0 -8px 14px rgba(140,72,0,.55); }
  50%      { box-shadow: 0 0 0 3px rgba(255,228,130,.85), 0 0 0 7px rgba(70,38,4,.55), 0 8px 0 #6e4408, 0 14px 26px rgba(0,0,0,.55), 0 0 32px rgba(220,150,255,.8),  inset 0 3px 4px rgba(255,255,220,.85), inset 0 -8px 14px rgba(140,72,0,.55); }
}
.osp-sub { display: none; }

/* autoplay pill under the spin button */
.oly-auto {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 96px;
  background: rgba(10,5,26,.85);
  border: 2px solid rgba(255,210,110,.45);
  border-radius: 40px; padding: 5px 16px;
  color: #ffd884; font-weight: 800; cursor: pointer; font-size: 12px; letter-spacing: 1.5px;
  transition: all .15s; font-family: inherit;
  box-shadow: inset 0 1px 0 rgba(255,220,140,.15);
}
.oly-auto:hover { border-color: #ffe080; color: #fff0c0; }
.oly-auto.on { color: #4dffa0; border-color: rgba(50,200,120,.6); background: rgba(8,40,22,.85); }

.oly-msg {
  min-height: 0; text-align: center; margin-top: 10px;
  font-weight: 700; font-size: 14px; opacity: 0; transition: opacity .2s;
}
.oly-msg.show { opacity: 1; }
.oly-msg.ok  { color: #4dffa0; }
.oly-msg.err { color: #ff6d7e; }

/* ── Responsive ──────────────────────────────────────────────────────
   Use the full-bleed, nav-aware mobile layout across the whole compact
   range (≤860px = where the site hides the sidebar and shows the bottom
   nav). Otherwise the desktop controls collide with the fixed bottom nav
   on foldables / large phones in the 641–860px band. */
@media (max-width: 860px) {
  /* break out of the .content padding so the stage reaches the screen edges */
  .content:has(.oly) {
    padding: 0 !important;
    border-left: 0 !important;
  }
  /* phone: cosmic stage fills exactly between the top (62px) and bottom (62px) navs.
     The 6×5 reels grid is ~⅚ as tall as it is wide, so on a short viewport a
     full-width grid would overflow and clip the spin button. Cap the width by the
     available height (≈ svh − logo − controls) so the whole game always fits;
     tall phones aren't affected (the 100% term wins) and stay full-bleed. */
  .oly {
    position: relative;
    /* width = full viewport, only capped when the screen is too short for a
       full-width grid. Centre via margin-left:50% + translateX so it reaches the
       screen edges regardless of .content padding (no dependency on :has()). */
    width: min(100vw, calc(100svh - 360px));
    max-width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    height: calc(100svh - 124px);
    min-height: calc(100svh - 124px);
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
  }
  .oly-scene {
    flex: 1 1 auto;            /* cosmic stage stretches to fill the screen */
    justify-content: flex-start;
    border-radius: 0;
  }
  .oly-logo { display: flex; padding-top: clamp(2px, 0.8vh, 6px); }  /* tighter top so the slot box sits higher */
  .oly-logo img { width: auto; height: clamp(38px, 6.5vh, 56px); }   /* compact logo frees vertical room so reels can be full-width */
  .oly-inner-row { flex: 0 0 auto; margin-top: clamp(4px, 2vh, 22px); }  /* slot sits a bit higher */
  /* Tighter slot: inset the grid a little (cosmic backdrop fills the sides, so
     no dead space) and shrink the row gaps — makes the reel box shorter/tighter
     without leaving side space or squishing the symbols. */
  .oly-reels { padding: 3px clamp(10px, 5%, 26px) 4px; }
  .oly-grid { row-gap: clamp(2px, 0.5vw, 5px); }

  /* controls overlaid near the bottom, on top of the cosmic background.
     Compact footprint so a full-width reel grid still fits without scroll. */
  .oly-controls {
    position: absolute;
    left: 0; right: 0; bottom: clamp(26px, 5.5vh, 48px);  /* lift the cluster so BET clears the raised VIP nav button */
    flex-direction: column;
    align-items: center;
    gap: clamp(6px, 1.2vh, 10px);
    margin-top: 0;
    padding: 10px 6px 0;
    background: none;
  }
  .oly-action {
    order: -1;            /* cluster above the info */
    justify-content: center;
    gap: clamp(12px, 4vw, 18px);
  }
  /* Scale the control cluster with the (height-capped) game column so it never
     looks oversized or gets grazed by the reels on short / foldable screens.
     The factor matches the .oly width cap → controls stay proportional. */
  .oly-spin {
    width: clamp(58px, calc((100svh - 360px) * 0.175), 80px);
    height: clamp(58px, calc((100svh - 360px) * 0.175), 80px);
  }
  .oly-spin-ic { width: 50%; height: 50%; }
  .oly-circ {
    width: clamp(38px, calc((100svh - 360px) * 0.105), 46px);
    height: clamp(38px, calc((100svh - 360px) * 0.105), 46px);
  }
  .oly-circ svg { width: 48%; height: 48%; }
  .oly-auto { padding: 4px 14px; font-size: 11px; min-width: 84px; }
  .oly-info {
    order: 1;
    align-items: center;
    min-width: 0;
  }
  .oi-row { justify-content: center; gap: 10px; }
  /* smaller BET line so the whole control cluster stays compact above the nav */
  .oi-lbl { font-size: 10px; min-width: 0; }
  .oi-row b { font-size: 15px; }
  .oi-lbl { min-width: 0; }
}

