:root {
  --pink: #ff3df2;
  --violet: #8f4dff;
  --cyan: #3ee0ff;
  --gold: #ffc93c;
  --hair: rgba(255, 255, 255, .1);
  --muted: rgba(225, 218, 255, .62);
  --ui: 'Nunito', 'Segoe UI', sans-serif;
  --display: 'Nunito', 'Segoe UI', sans-serif;
}
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #05040f; overflow: hidden; }
body { font-family: var(--ui); color: #fff; user-select: none; -webkit-user-select: none; -webkit-font-smoothing: antialiased; }
button { font-family: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
button:disabled { cursor: default; }
svg { display: block; }

#viewport { position: fixed; inset: 0; background: #05040f url(assets/bg.jpg) center/cover; }
#viewport::before { content: ''; position: absolute; inset: 0; backdrop-filter: blur(18px) brightness(.4); }
#stage { position: absolute; left: 50%; top: 50%; width: 1920px; height: 1080px; overflow: hidden; transform-origin: center center; }
#bg { position: absolute; inset: 0; background: url(assets/bg.jpg) center/cover; }
#bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,4,24,.1) 0%, rgba(8,4,24,0) 45%, rgba(8,4,24,.75) 100%); }

#girl { position: absolute; right: -6px; bottom: 74px; height: 900px; pointer-events: none; filter: drop-shadow(0 20px 30px rgba(0,0,0,.55)); z-index: 2; }

.vol { display: flex !important; justify-content: center; gap: 9px; padding-top: 12px; }
.vol i, .volbadge i { width: 22px; height: 22px; border-radius: 6px; transform: rotate(45deg); background: linear-gradient(135deg, #ff7af5, #a020f0); box-shadow: 0 0 8px rgba(255, 61, 242, .6); }
.vol i.half, .volbadge i.half { background: linear-gradient(135deg, #ff7af5 50%, rgba(255,255,255,.15) 50%); }

/* ---- machine ---- */
#machine { position: absolute; left: 420px; top: 78px; width: 1132px; height: 820px; z-index: 3; transition: transform .7s cubic-bezier(.3, .8, .3, 1); transform-origin: 50% 50%; }
#machine.zoom { transform: scale(1.045); }
#frame { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; filter: drop-shadow(0 18px 30px rgba(0,0,0,.5)); }
#logo { position: absolute; left: 50%; top: -34px; width: 560px; margin-left: -280px; z-index: 4; pointer-events: none; filter: drop-shadow(0 6px 12px rgba(0,0,0,.5)); }
#reels { position: absolute; left: 10.044%; top: 10.097%; width: 79.824%; height: 79.805%; z-index: 1; overflow: hidden;
  background: linear-gradient(rgba(16, 6, 44, .42), rgba(16, 6, 44, .42)), url(assets/reelbg.jpg) center/cover; }
#machine.fsmode #reels { background: linear-gradient(rgba(60, 6, 70, .38), rgba(30, 6, 60, .45)), url(assets/reelbg.jpg) center/cover; }
#machine.topmode #reels { background: linear-gradient(rgba(90, 50, 0, .3), rgba(40, 10, 60, .45)), url(assets/reelbg.jpg) center/cover; }
.reel { position: absolute; top: 0; height: 100%; overflow: hidden; z-index: 2; }
.strip { position: absolute; left: 0; top: 0; width: 100%; will-change: transform; }
.strip.blur { filter: blur(1.2px); }
.cell { position: absolute; left: 0; width: 100%; display: grid; place-items: center; }
.cell img { position: relative; z-index: 2; display: block; pointer-events: none; transition: filter .3s; }
.reel.antic::after { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(180deg, rgba(62,224,255,0), rgba(62,224,255,.22), rgba(62,224,255,0)); box-shadow: inset 0 0 0 2px rgba(62, 224, 255, .6); animation: antic .5s ease-in-out infinite alternate; }
@keyframes antic { to { box-shadow: inset 0 0 0 2px rgba(255, 61, 242, .9); background: linear-gradient(180deg, rgba(255,61,242,0), rgba(255,61,242,.26), rgba(255,61,242,0)); } }

/* purple light grid */
#grid { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.gv, .gh { position: absolute; border-radius: 2px; }
.gv { top: 0; bottom: 0; width: 4px; margin-left: -2px;
  background: linear-gradient(180deg, rgba(150, 60, 255, 0) 0%, #a855ff 7%, #c77dff 50%, #a855ff 93%, rgba(150, 60, 255, 0) 100%);
  box-shadow: 0 0 12px 2px rgba(150, 60, 255, .75), 0 0 2px rgba(255, 255, 255, .5); }
.gh { left: 0; right: 0; height: 4px; margin-top: -2px;
  background: linear-gradient(90deg, rgba(150, 60, 255, 0) 0%, #a855ff 5%, #c77dff 50%, #a855ff 95%, rgba(150, 60, 255, 0) 100%);
  box-shadow: 0 0 12px 2px rgba(150, 60, 255, .7), 0 0 2px rgba(255, 255, 255, .45); }
.gh.edge { height: 5px; margin-top: -2.5px; background: linear-gradient(90deg, rgba(220, 90, 255, 0) 0%, #e07bff 5%, #f3b8ff 50%, #e07bff 95%, rgba(220, 90, 255, 0) 100%); box-shadow: 0 0 16px 3px rgba(220, 60, 255, .75); }
/* the peeking rows above and below the grid are shaded */
#peekShade { position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 3, 26, .82) 0, rgba(8, 3, 26, .55) var(--pk, 30px), transparent var(--pk, 30px), transparent calc(100% - var(--pk, 30px)), rgba(8, 3, 26, .55) calc(100% - var(--pk, 30px)), rgba(8, 3, 26, .82) 100%); }

/* sticky wilds: plain symbols resting on the grid */
#sticky { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.sticky-cell { position: absolute; display: grid; place-items: center; }
.sticky-cell img { position: relative; z-index: 2; transition: filter .3s; }

/* winning-way beams */
#lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 7; pointer-events: none; overflow: visible; }
#lines path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
#lines .glow { stroke-width: 14; opacity: .35; filter: blur(6px); stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw .5s cubic-bezier(.3, .8, .4, 1) forwards; }
#lines .core { stroke-width: 4; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw .5s cubic-bezier(.3, .8, .4, 1) forwards; }
#lines .spark { stroke: #fff; stroke-width: 3; stroke-dasharray: 16 var(--len); stroke-dashoffset: 0; animation: run 1.1s .5s linear infinite; opacity: .95; }
#lines circle { animation: node .4s cubic-bezier(.3, 1.8, .5, 1) backwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes run { from { stroke-dashoffset: 0; } to { stroke-dashoffset: calc(-1 * var(--len)); } }
@keyframes node { from { r: 0; } }

/* win presentation */
#reels.showing .cell img, #reels.showing .sticky-cell img { filter: brightness(.32) saturate(.45); }
#reels.showing .cell.win img, #reels.showing .sticky-cell.win img { filter: drop-shadow(0 0 12px color-mix(in srgb, var(--glow) 65%, transparent)) brightness(1.06); animation: winIn .45s cubic-bezier(.3, 1.6, .5, 1), float 1.8s .45s ease-in-out infinite; }
.cell.win::before, .sticky-cell.win::before { content: ''; position: absolute; inset: 5px; border-radius: 14px; pointer-events: none; z-index: 3; padding: 3px;
  background: conic-gradient(from var(--ang), transparent 0 52%, color-mix(in srgb, var(--glow) 60%, transparent) 64%, #fff 74%, var(--glow) 82%, transparent 94%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: trace 1.6s linear infinite, frameIn .3s ease-out; }
@keyframes trace { to { --ang: 360deg; } }
@keyframes winIn { from { transform: scale(.86); } }
@keyframes float { 50% { transform: scale(1.05); } }
@keyframes frameIn { from { opacity: 0; transform: scale(1.06); } }
.cell.pop img, .sticky-cell.pop img { animation: pop .45s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes pop { 0% { transform: scale(.7); } 60% { transform: scale(1.16); } 100% { transform: scale(1); } }
.reel-win { position: absolute; left: 50%; top: 50%; z-index: 9; pointer-events: none; white-space: nowrap;
  font: italic 900 84px/1 var(--display); letter-spacing: -1px;
  background: linear-gradient(180deg, #fff 0%, #ffe7a0 45%, #ffae22 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 5px 0 #6b1d00) drop-shadow(0 0 22px rgba(255, 160, 40, .55));
  animation: rwin 1.4s cubic-bezier(.2, 1.2, .4, 1) forwards; transform: translate(-50%, -50%); }
@keyframes rwin { 0% { transform: translate(-50%, -50%) scale(.5); opacity: 0; } 18% { transform: translate(-50%, -50%) scale(1.06); opacity: 1; } 30% { transform: translate(-50%, -50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -58%); } }

/* ---- status under the reels / bonus counters ---- */
#status { position: absolute; left: 986px; top: 912px; transform: translateX(-50%); z-index: 5; }
#winmsg { display: flex; align-items: center; height: 54px; padding: 0 8px 0 6px; border-radius: 14px; white-space: nowrap;
  background: linear-gradient(180deg, rgba(26, 18, 64, .95), rgba(12, 9, 34, .95));
  box-shadow: inset 0 0 0 1px rgba(170, 130, 255, .3), 0 12px 30px rgba(0,0,0,.45); opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s; }
#winmsg.on { opacity: 1; transform: none; }
#winmsg .icons { display: flex; padding: 0 6px; }
#winmsg .icons img { width: 42px; height: 42px; margin-right: -14px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.6)); }
#winmsg .icons img:last-child { margin-right: 0; }
#winmsg .name { font: 600 21px var(--ui); text-transform: uppercase; letter-spacing: .04em; padding: 0 14px 0 12px; }
#winmsg .seg { height: 32px; padding: 0 14px; display: flex; align-items: center; border-left: 1px solid rgba(255,255,255,.1); font: 500 17px var(--ui); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
#winmsg .seg.mult { color: #9cf1ff; font-weight: 600; }
#winmsg .amt { margin-left: 6px; height: 42px; padding: 0 18px; border-radius: 10px; display: flex; align-items: center; font: 600 25px var(--ui); color: #2a1300; background: linear-gradient(180deg, #ffe082, #ffb22e); box-shadow: inset 0 1px 0 rgba(255,255,255,.6); }
#fsinfo { position: absolute; left: 70px; top: 300px; width: 290px; z-index: 5; display: none; flex-direction: column; gap: 12px; }
#fsinfo.on { display: flex; animation: fade .3s; }
.chip { padding: 10px 20px 12px; border-radius: 18px; text-align: center;
  background: linear-gradient(180deg, rgba(60, 20, 100, .9), rgba(20, 8, 46, .92)); box-shadow: inset 0 0 0 2px rgba(255, 120, 245, .5), 0 14px 30px rgba(0,0,0,.45); }
.chip span { display: block; font: 500 16px var(--ui); letter-spacing: .16em; text-transform: uppercase; color: #ffb3f9; }
.chip b { display: block; font: italic 900 42px/1.15 var(--display); }
.chip.gold b { background: linear-gradient(180deg, #fff, #ffe08a 50%, #ffad1f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chip.bump { animation: bump .5s; }
@keyframes bump { 40% { transform: scale(1.08); box-shadow: inset 0 0 0 2px var(--cyan), 0 0 30px rgba(62,224,255,.5); } }

/* ---- bottom bar: flat, quiet, one accent ---- */
:root { --panel: #140d2b; --panel-2: #1c1338; --line: rgba(255, 255, 255, .08); --label: #9d90c7; --acc: #b98aff; --money: #f4c24d; --ink: #2b1600; }
#bar { position: absolute; left: 0; right: 0; bottom: 0; height: 84px; z-index: 10; display: flex; align-items: center; gap: 12px; padding: 0 190px 0 190px;
  background: rgba(17, 10, 36, .95); box-shadow: 0 -1px 0 var(--line), 0 -14px 30px rgba(0, 0, 0, .3); }
.bar-l, .bar-r { display: flex; align-items: center; gap: 4px; }
.sep { width: 1px; height: 36px; margin: 0 12px; background: var(--line); }
.stat span { display: block; font: 600 12px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--label); margin-bottom: 5px; }
.stat b { display: block; font: 700 25px/1 var(--display); font-variant-numeric: tabular-nums; }
.stat.bet { text-align: right; margin-right: 6px; }
.vibe { flex: 1; display: flex; justify-content: center; }
#barMsg { white-space: nowrap; font: 500 20px var(--display); color: #cfc4ee; transition: opacity .4s, transform .4s; }
#barMsg.swap { opacity: 0; transform: translateY(6px); }
#barMsg b { font-weight: 700; color: var(--money); margin-left: 8px; }
#barMsg.win { animation: winMsg .4s ease-out; }
@keyframes winMsg { from { transform: scale(.92); opacity: .4; } }

#buyBtn { position: absolute; left: 36px; bottom: 10px; width: 128px; height: 128px; border-radius: 50%; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--money); color: var(--ink); box-shadow: 0 0 0 5px #110a24, 0 10px 22px rgba(0, 0, 0, .45); transition: background .2s, transform .15s; }
#buyBtn b { font: 800 24px/1 var(--display); text-transform: uppercase; }
#buyBtn span { font: 600 19px/1.15 var(--display); text-transform: uppercase; }
#buyBtn:hover:not(:disabled) { background: #ffd36a; }
#buyBtn:active:not(:disabled) { transform: scale(.96); }
#buyBtn:disabled { background: #5a5170; color: #2a2440; }

.ibtn { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; transition: background .2s; }
.ibtn svg { width: 24px; height: 24px; fill: none; stroke: #ddd4f5; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ibtn svg .fill { fill: #ddd4f5; stroke: none; }
.ibtn:hover:not(:disabled) { background: rgba(255, 255, 255, .07); }
.ibtn.off svg { stroke: #6c6290; }
.ibtn.off svg .fill { fill: #6c6290; }
#btnSound.off .wave { opacity: 0; }
.ibtn.on { background: rgba(185, 138, 255, .18); }
.ibtn.on svg { stroke: var(--acc); }
#btnTurbo svg { fill: #ddd4f5; stroke: none; }
#btnTurbo.on svg { fill: var(--money); }
.updown { display: flex; flex-direction: column; gap: 3px; }
.updown button { width: 32px; height: 23px; border-radius: 6px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); transition: background .2s; }
.updown button:hover:not(:disabled) { background: rgba(255, 255, 255, .16); }
.updown button:disabled { opacity: .3; }
.updown svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

#spin { position: absolute; right: 40px; bottom: 9px; width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; z-index: 3;
  background: var(--panel-2); box-shadow: inset 0 0 0 4px #fff, 0 0 0 5px #110a24, 0 10px 22px rgba(0, 0, 0, .45); transition: background .2s, transform .12s; }
#spin svg { width: 60px; height: 60px; fill: none; stroke: #fff; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
#spin:hover { background: #2a1d4f; }
#spin:active { transform: scale(.95); }
#spin.spinning svg { animation: rot .8s linear infinite; }
#spin .cnt { position: absolute; font: 700 40px var(--display); display: none; }
#spin.auto { background: var(--acc); }
#spin.auto .cnt { display: block; color: #1a0f33; }
#spin.auto svg { opacity: 0; }
@keyframes rot { to { transform: rotate(360deg); } }
.autowrap { position: relative; }
#autoMenu { position: absolute; bottom: 62px; right: -30px; padding: 14px; border-radius: 16px; z-index: 12; background: var(--panel-2);
  box-shadow: inset 0 0 0 1px var(--line), 0 16px 34px rgba(0, 0, 0, .45); opacity: 0; pointer-events: none; transform: translateY(6px); transition: opacity .2s, transform .2s; }
#autoMenu.on { opacity: 1; pointer-events: auto; transform: none; }
#autoMenu > span { display: block; font: 600 12px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--label); margin: 0 0 10px 2px; }
#autoMenu > div { display: flex; gap: 6px; }
#autoMenu button { width: 52px; height: 42px; border-radius: 10px; background: rgba(255, 255, 255, .07); font: 700 17px var(--display); transition: background .2s; }
#autoMenu button:hover { background: var(--acc); color: #1a0f33; }

/* ---- screens ---- */
#fx { position: absolute; inset: 0; pointer-events: none; z-index: 20; }
.hidden { display: none !important; }
.screen { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, rgba(36, 10, 72, .88), rgba(3, 2, 12, .95)); animation: fade .3s; }
@keyframes fade { from { opacity: 0; } }
.rays { position: absolute; left: 50%; top: 42%; width: 1800px; height: 1800px; margin: -900px 0 0 -900px; opacity: .2; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(255, 120, 250, .55) 0 6deg, transparent 6deg 18deg);
  -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 60%); mask-image: radial-gradient(circle, #000 0%, transparent 60%); animation: spinRays 40s linear infinite; }
@keyframes spinRays { to { transform: rotate(360deg); } }
.bonus-card { position: relative; text-align: center; animation: rise .55s cubic-bezier(.2, 1.3, .4, 1); }
@keyframes rise { from { transform: translateY(40px) scale(.92); opacity: 0; } }
.bonus-art { width: 220px; filter: drop-shadow(0 0 40px rgba(62, 224, 255, .5)); animation: floaty 3s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-10px); } }
.kicker { font: italic 800 30px var(--display); letter-spacing: .1em; text-transform: uppercase; color: #ff9cf7; margin-top: 4px; }
.headline { font: italic 900 124px/1 var(--display); letter-spacing: -2px; text-transform: uppercase; margin-top: 4px;
  background: linear-gradient(180deg, #fff 0%, #ffe7a0 50%, #ffae22 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 7px 0 #6a1590) drop-shadow(0 0 34px rgba(255, 120, 240, .35)); }
.lead { font: 500 30px/1.4 var(--ui); letter-spacing: .04em; color: #e1d8ff; margin: 10px auto 0; text-transform: uppercase; }
.howto { display: flex; gap: 16px; justify-content: center; margin-top: 28px; }
.how { width: 350px; display: flex; gap: 14px; align-items: center; text-align: left; padding: 16px 18px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(40, 26, 90, .7), rgba(16, 10, 40, .7)); box-shadow: inset 0 0 0 1px rgba(170, 130, 255, .3); }
.how img { width: 84px; height: 84px; flex: none; }
.how b { font: 600 21px var(--ui); letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.how p { margin: 4px 0 0; font: 400 17px/1.4 var(--ui); color: #d8d0f5; }
.amount { font: italic 900 130px/1.05 var(--display); letter-spacing: -2px; margin-top: 14px; color: var(--gold); filter: drop-shadow(0 7px 0 #6b1d00) drop-shadow(0 0 30px rgba(255, 170, 40, .45)); font-variant-numeric: tabular-nums; }
.cta { margin-top: 32px; min-width: 320px; height: 76px; padding: 0 44px; border-radius: 38px; font: 600 30px var(--ui); letter-spacing: .12em; text-transform: uppercase; color: #2a1300;
  background: linear-gradient(180deg, #ffe082, #ffb22e 60%, #f08c00); box-shadow: inset 0 2px 0 rgba(255,255,255,.7), inset 0 -4px 0 rgba(150, 70, 0, .45), 0 14px 30px rgba(255, 150, 30, .3); transition: transform .12s, filter .2s; }
.cta:hover:not(:disabled) { filter: brightness(1.06); transform: translateY(-2px); }
.closex { position: absolute; right: 22px; top: 22px; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.closex:hover { background: rgba(255,255,255,.16); }
.closex svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; }

/* bonus buy menu (Hacksaw-style cards) */
#buy { background: rgba(6, 3, 18, .78); backdrop-filter: blur(6px); }
.buy-wrap { position: relative; width: 1000px; padding: 0 0 10px; animation: rise .45s cubic-bezier(.2, 1.3, .4, 1); }
.buy-wrap .closex { right: -70px; top: 0; }
.buy-bet { width: 260px; margin: 0 auto 26px; padding: 14px 18px 18px; border-radius: 16px; text-align: center; background: linear-gradient(180deg, #2a1660, #140a32); box-shadow: inset 0 0 0 2px rgba(200, 150, 255, .4), 0 16px 34px rgba(0,0,0,.5); }
.buy-bet span { display: block; font: 500 17px var(--ui); letter-spacing: .14em; text-transform: uppercase; color: #cdb8ff; }
.buy-bet b { display: block; font: 600 40px/1.2 var(--ui); }
.buy-bet div { display: flex; justify-content: center; gap: 10px; margin-top: 8px; }
.sq { width: 58px; height: 42px; border-radius: 10px; font: 600 28px/1 var(--ui); background: #0c0620; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.sq:hover:not(:disabled) { background: #2b1660; }
.sq:disabled { opacity: .3; }
.buy-cards { display: flex; gap: 26px; justify-content: center; }
.bcard { width: 380px; border-radius: 22px; overflow: hidden; text-align: center; display: flex; flex-direction: column; align-items: center;
  background: linear-gradient(180deg, #2a1660, #120a30); box-shadow: inset 0 0 0 2px rgba(200, 150, 255, .45), 0 24px 50px rgba(0,0,0,.6); }
.bcard.top { box-shadow: inset 0 0 0 2px rgba(255, 201, 60, .75), 0 24px 50px rgba(0,0,0,.6), 0 0 40px rgba(255, 170, 40, .2); }
.bcard h3 { margin: 22px 0 6px; font: italic 900 38px var(--display); text-transform: uppercase; background: linear-gradient(180deg, #fff, #ffb3f9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bcard p { margin: 0 26px; min-height: 84px; font: 400 18px/1.4 var(--ui); color: #d8d0f5; letter-spacing: .02em; }
.bart { position: relative; height: 170px; width: 100%; display: grid; place-items: center; }
.bart img { width: 150px; filter: drop-shadow(0 10px 16px rgba(0,0,0,.5)); }
.bart img.sm { position: absolute; width: 92px; right: 52px; bottom: -4px; transform: rotate(12deg); }
.bart img.sm.l { left: 62px; right: auto; transform: rotate(-14deg); }
.bart img.sm.r { right: 62px; }
.bcard i { font: italic 400 16px var(--ui); color: var(--muted); }
.bcard b { display: block; font: 600 46px/1.2 var(--ui); margin: 4px 0 14px; }
.buybtn { width: 100%; height: 72px; font: 700 32px var(--ui); letter-spacing: .08em; text-transform: uppercase; color: #2a1300; background: linear-gradient(180deg, #ffe082, #ffb22e 60%, #f08c00); }
.buybtn:hover:not(:disabled) { filter: brightness(1.08); }
.buybtn:disabled { filter: grayscale(.9) brightness(.55); }

#bigwin { cursor: pointer; flex-direction: column; display: flex; align-items: center; justify-content: center; }
#bwTitle { position: relative; font: italic 900 170px/1 var(--display); letter-spacing: -3px; text-transform: uppercase;
  background: linear-gradient(180deg, #fff 0%, #ffb3f9 50%, #c43cff 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 9px 0 #45106e) drop-shadow(0 0 40px rgba(255, 80, 240, .5)); animation: bwIn .7s cubic-bezier(.2, 1.5, .4, 1); }
#bwAmount { position: relative; font: italic 900 130px/1.1 var(--display); margin-top: 18px; color: var(--gold); font-variant-numeric: tabular-nums; letter-spacing: -2px;
  filter: drop-shadow(0 7px 0 #6b1d00) drop-shadow(0 0 30px rgba(255, 170, 40, .45)); }
@keyframes bwIn { from { transform: scale(.4) rotate(-6deg); opacity: 0; } }
#bwTitle.punch { animation: punch .6s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes punch { 0% { transform: scale(1.8); opacity: 0; filter: brightness(3); } 100% { transform: none; opacity: 1; } }
#bwTitle.t2 { background-image: linear-gradient(180deg, #fff 0%, #9ef7ff 50%, #2a8cff 100%); }
#bwTitle.t3 { background-image: linear-gradient(180deg, #fff 0%, #ffe7a0 45%, #ff7a1f 100%); }
#bwTitle.t4 { background-image: linear-gradient(180deg, #fff 0%, #ff9ad8 40%, #ff2a6a 75%, #9b1dff 100%); font-size: 150px; }
#bigwin .flash { position: absolute; inset: 0; background: radial-gradient(circle, rgba(255,255,255,.85), rgba(255,200,255,0) 60%); animation: flash .6s ease-out forwards; pointer-events: none; }
@keyframes flash { from { opacity: 1; } to { opacity: 0; } }
#bwAmount.pulse { animation: amtPulse .35s ease-out; }
@keyframes amtPulse { 50% { transform: scale(1.08); } }

#info { z-index: 40; background: rgba(3, 2, 12, .85); }
.info-card { position: relative; width: 1560px; max-height: 1010px; overflow: auto; padding: 30px 44px; border-radius: 28px; background: linear-gradient(180deg, #1a1342, #0b0a24); box-shadow: inset 0 0 0 1px var(--hair), 0 40px 80px rgba(0,0,0,.6); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 4px 70px 22px 0; }
.fact { padding: 12px 16px 14px; border-radius: 18px; text-align: center; background: linear-gradient(180deg, rgba(60, 26, 120, .8), rgba(22, 10, 50, .9)); box-shadow: inset 0 0 0 2px rgba(190, 130, 255, .4); }
.fact span { display: block; font: 500 16px var(--ui); letter-spacing: .14em; text-transform: uppercase; color: #cdb8ff; }
.fact b { display: block; font: italic 900 38px/1.2 var(--display); }
.fact.gold b { background: linear-gradient(180deg, #fff, #ffe08a 50%, #ffad1f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.info-card h2 { margin: 0; font: italic 900 40px var(--display); text-transform: uppercase; }
.info-card h3 { margin: 0 0 4px; font: 600 22px var(--ui); letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.note { color: var(--muted); font: 400 18px var(--ui); letter-spacing: .02em; margin: 8px 0 0; }
.note.small { font-size: 17px; margin-top: 18px; }
.note b { color: #fff; font-weight: 600; }
#paytable { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; margin: 18px 0 18px; }
.pt { padding: 8px 8px 10px; border-radius: 16px; background: rgba(255,255,255,.035); box-shadow: inset 0 0 0 1px var(--hair); text-align: center; font: 500 17px/1.45 var(--ui); color: var(--gold); }
.pt img { width: 96px; height: 96px; }
.pt b { font-weight: 500; color: #fff; margin-left: 8px; }
.rules { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.rule { display: flex; gap: 16px; align-items: center; padding: 12px 16px; border-radius: 16px; background: rgba(255,255,255,.035); box-shadow: inset 0 0 0 1px var(--hair); font: 400 17px/1.4 var(--ui); color: #d8d0f5; letter-spacing: .02em; }
.rule img { width: 80px; flex: none; }
.rule .trio { display: flex; flex: none; }
.rule .trio img { width: 54px; margin-right: -14px; }
.rule .buyico { width: 80px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 14px; font: italic 900 22px var(--display); color: #2a1300; background: linear-gradient(180deg, #ffe082, #ffb22e); }
.rule .buyico.max { background: linear-gradient(180deg, #ff9cf7, #a020f0); color: #fff; }

/* ---- boot sequence ---- */
.boot { position: absolute; inset: 0; z-index: 60; display: grid; place-items: center; overflow: hidden; transition: opacity .6s; }
.boot.out { opacity: 0; pointer-events: none; z-index: 61; }
#splash { background: radial-gradient(circle at 50% 50%, #1d0f3e, #05030f 70%); }
.prov { display: flex; flex-direction: column; align-items: center; animation: provIn 1.2s cubic-bezier(.2, .8, .3, 1); }
.prov svg { width: 120px; fill: none; stroke: #ffc93c; stroke-width: 3; stroke-linejoin: round; filter: drop-shadow(0 0 16px rgba(255, 201, 60, .6)); }
.prov b { font: 700 74px var(--ui); letter-spacing: .3em; text-transform: uppercase; margin-top: 14px; padding-left: .3em; }
.prov span { font: 400 22px var(--ui); letter-spacing: .6em; text-transform: uppercase; color: var(--muted); padding-left: .6em; }
@keyframes provIn { from { opacity: 0; transform: scale(.9); letter-spacing: .6em; } }
.blurbg { position: absolute; inset: -40px; background: url(assets/bg.jpg) center/cover; filter: blur(14px) brightness(.55) saturate(1.2); }
.blurbg.light { filter: blur(10px) brightness(.45) saturate(1.25); }
.load-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.presents { font: 600 30px var(--ui); letter-spacing: .22em; text-transform: uppercase; color: #9cf1ff; text-shadow: 0 0 14px rgba(62, 224, 255, .6), 0 3px 0 #1a0838; margin-bottom: 30px; }
.load-inner img { width: 820px; filter: drop-shadow(0 12px 24px rgba(0,0,0,.6)); }
.lbar { width: 520px; height: 34px; margin-top: 60px; padding: 6px; border-radius: 18px; background: linear-gradient(180deg, #3a1a7a, #1a0b3e);
  box-shadow: 0 0 0 3px #12062a, 0 0 0 5px rgba(255, 120, 245, .7), 0 12px 30px rgba(0,0,0,.5); }
.lbar i { display: block; height: 100%; width: 0; border-radius: 12px; background: linear-gradient(180deg, #a6fbff, #3ee0ff 50%, #1aa0e0); box-shadow: 0 0 14px rgba(62, 224, 255, .8); transition: width .25s; }
#intro { cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.intro-logo { position: relative; width: 860px; filter: drop-shadow(0 12px 24px rgba(0,0,0,.6)); animation: rise .6s cubic-bezier(.2, 1.3, .4, 1); }
.volbadge { position: relative; display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 10px 26px; border-radius: 14px;
  font: 600 24px var(--ui); letter-spacing: .14em; text-transform: uppercase; background: linear-gradient(180deg, #5a1a8a, #2a0c50); box-shadow: inset 0 0 0 2px rgba(255, 120, 245, .6), 0 10px 24px rgba(0,0,0,.4); }
.volbadge span { display: flex; gap: 7px; margin-left: 6px; }
.volbadge i { width: 18px; height: 18px; border-radius: 5px; }
.intro-cards { position: relative; display: flex; gap: 34px; margin-top: 34px; }
.icard { width: 410px; height: 470px; padding: 0 28px; border-radius: 34px; text-align: center; display: flex; flex-direction: column; align-items: center;
  background: linear-gradient(180deg, rgba(70, 30, 140, .92), rgba(24, 10, 56, .95)); box-shadow: inset 0 0 0 3px rgba(255, 150, 250, .55), inset 0 0 0 9px rgba(20, 8, 46, .6), 0 24px 50px rgba(0,0,0,.55);
  animation: rise .7s cubic-bezier(.2, 1.3, .4, 1) backwards; }
.icard:nth-child(2) { animation-delay: .12s; } .icard:nth-child(3) { animation-delay: .24s; }
.iart { position: relative; height: 230px; width: 100%; display: grid; place-items: center; margin-top: 10px; }
.iart img { width: 190px; filter: drop-shadow(0 12px 18px rgba(0,0,0,.55)); }
.iart img.sm { position: absolute; width: 104px; right: 8px; bottom: -6px; transform: rotate(12deg); }
.iart img.sm.l { left: 18px; right: auto; transform: rotate(-14deg); }
.iart img.sm.r { right: 18px; }
.iart.big { white-space: nowrap; font: italic 900 84px var(--display); letter-spacing: -2px; background: linear-gradient(180deg, #fff, #9cff6a 50%, #2fbf3a); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 0 #0d4a14) drop-shadow(0 0 20px rgba(120, 255, 100, .4)); }
.icard h3 { margin: 6px 0 10px; font: 700 32px var(--ui); letter-spacing: .06em; text-transform: uppercase; }
.icard p { margin: 0; font: 400 21px/1.4 var(--ui); color: #e3dbff; letter-spacing: .02em; }
.tap { position: relative; margin-top: 38px; font: 700 34px var(--ui); letter-spacing: .08em; text-transform: uppercase; color: #ffe7a0; text-shadow: 0 3px 0 #4a1b00, 0 0 18px rgba(255, 190, 60, .5); animation: tap 1.4s ease-in-out infinite; }
@keyframes tap { 50% { opacity: .45; transform: scale(.97); } }

#toast { position: absolute; left: 986px; top: 420px; transform: translateX(-50%) scale(.9); z-index: 25; pointer-events: none; white-space: nowrap;
  font: italic 900 64px var(--display); text-transform: uppercase; letter-spacing: -1px; color: #fff;
  filter: drop-shadow(0 5px 0 #4a1070) drop-shadow(0 0 24px rgba(255, 80, 240, .55)); opacity: 0; transition: opacity .25s, transform .25s; }
#toast.on { opacity: 1; transform: translateX(-50%) scale(1); }
#toast em { font-style: normal; color: var(--gold); }
#toast.small { font: 600 26px var(--ui); letter-spacing: .1em; filter: none; padding: 12px 26px; border-radius: 14px; background: rgba(10, 8, 30, .9); box-shadow: inset 0 0 0 1px var(--hair); }
.shake { animation: shake .45s; }
@keyframes shake { 20% { translate: -6px 3px; } 40% { translate: 6px -3px; } 60% { translate: -4px 2px; } 80% { translate: 3px -1px; } }

/* ---- quiet UI: panels, cards and buttons share one flat style ---- */
.chip, .fact, .buy-bet, .bcard, .icard, .volbadge, .rule, .pt, #winmsg, #toast.small, .info-card {
  background: var(--panel); box-shadow: inset 0 0 0 1px var(--line), 0 12px 28px rgba(0, 0, 0, .35); }
.chip { padding: 12px 18px 14px; border-radius: 16px; }
.chip span, .fact span, .buy-bet span { font: 600 13px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--label); }
.chip b, .fact b { font: 700 34px/1.2 var(--display); color: #fff; background: none; -webkit-text-fill-color: currentColor; filter: none; }
.chip.gold b, .fact.gold b { color: var(--money); }
.chip.bump { animation: none; }
#winmsg { border-radius: 14px; }
#winmsg .name { font: 600 19px var(--display); text-transform: none; letter-spacing: 0; }
#winmsg .seg { font: 500 16px var(--display); text-transform: none; letter-spacing: 0; color: var(--label); border-color: var(--line); }
#winmsg .seg.mult { color: var(--acc); }
#winmsg .amt { font: 700 22px var(--display); background: var(--money); color: var(--ink); box-shadow: none; }
.buy-wrap .closex, .info-card .closex { background: rgba(255, 255, 255, .07); }
.buy-bet { border-radius: 16px; }
.buy-bet b { font: 700 36px/1.2 var(--display); }
.sq { background: rgba(255, 255, 255, .07); box-shadow: none; font: 600 26px/1 var(--display); }
.sq:hover:not(:disabled) { background: rgba(255, 255, 255, .16); }
.bcard { border-radius: 20px; }
.bcard.top { box-shadow: inset 0 0 0 1px rgba(244, 194, 77, .55), 0 12px 28px rgba(0, 0, 0, .35); }
.bcard h3 { font: 800 30px var(--display); text-transform: uppercase; color: #fff; background: none; -webkit-text-fill-color: currentColor; }
.bcard.top h3 { color: var(--money); background: none; }
.bcard p { font: 400 17px/1.45 var(--display); color: #cfc4ee; }
.bcard i { font: 500 14px var(--display); font-style: normal; color: var(--label); }
.bcard b { font: 700 40px/1.2 var(--display); }
.buybtn, .cta { background: var(--money); color: var(--ink); box-shadow: none; font: 800 24px var(--display); letter-spacing: .06em; text-transform: uppercase; transition: background .2s, transform .12s; }
.buybtn:hover:not(:disabled), .cta:hover:not(:disabled) { background: #ffd36a; filter: none; transform: none; }
.buybtn:disabled { background: #5a5170; filter: none; }
.cta { border-radius: 16px; height: 68px; min-width: 300px; box-shadow: 0 10px 24px rgba(0, 0, 0, .35); }
.how { background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); }
.how b { font: 700 18px var(--display); letter-spacing: .04em; color: var(--money); }
.how p { font: 400 16px/1.45 var(--display); color: #cfc4ee; }
.info-card h3, .rule h3 { font: 700 19px var(--display); letter-spacing: .03em; color: var(--money); }
.rule { font: 400 16px/1.45 var(--display); color: #cfc4ee; }
.rule .buyico { background: var(--money); color: var(--ink); font: 800 20px var(--display); }
.rule .buyico.max { background: var(--acc); color: #1a0f33; }
.pt { color: var(--label); font: 500 16px/1.5 var(--display); }
.note { font: 400 16px var(--display); color: var(--label); }
.vol i, .volbadge i { background: var(--acc); box-shadow: none; }
.vol i.half, .volbadge i.half { background: linear-gradient(135deg, var(--acc) 50%, rgba(255, 255, 255, .15) 50%); }
.volbadge { font: 600 18px var(--display); letter-spacing: .1em; border-radius: 12px; }
.icard { border-radius: 26px; }
.icard h3 { font: 800 28px var(--display); letter-spacing: .02em; }
.icard p { font: 400 19px/1.45 var(--display); color: #cfc4ee; }
.lbar { height: 14px; padding: 0; border-radius: 8px; background: rgba(255, 255, 255, .1); box-shadow: none; }
.lbar i { border-radius: 8px; background: var(--acc); box-shadow: none; }
.presents { font: 600 22px var(--display); letter-spacing: .3em; color: #cfc4ee; text-shadow: none; }
.prov svg { filter: none; stroke: var(--money); }
.prov b { font: 800 64px var(--display); letter-spacing: .24em; }
.tap { font: 700 26px var(--display); letter-spacing: .1em; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
#toast.small { font: 600 20px var(--display); letter-spacing: .04em; border-radius: 12px; }

/* ---- chunky "bubbly" lettering (matches the logo): gradient fill over a thick dark outline and a 3D drop ---- */
.bubbly { position: relative; display: inline-block; isolation: isolate; font-family: var(--display); font-weight: 900; line-height: 1; white-space: nowrap; letter-spacing: .02em;
  --fill: linear-gradient(180deg, #e9fdff 0%, #7ff0ff 34%, #48c6ff 55%, #c56dff 78%, #ff5fd6 100%); --edge: #3a0d63; --drop: #24063f; --rim: #ea62f7;
  /* layer 1 (the element's own text): bright outer rim + 3D drop */
  color: var(--rim); -webkit-text-stroke: .27em var(--rim); text-shadow: 0 .12em 0 var(--drop), 0 .18em .22em rgba(0, 0, 0, .55); }
.bubbly::before, .bubbly::after { content: attr(data-t); position: absolute; left: 0; top: 0; right: 0; bottom: 0; text-shadow: none; }
/* layer 2: dark outline */
.bubbly::before { color: var(--edge); -webkit-text-stroke: .15em var(--edge); }
/* layer 3: gradient fill */
.bubbly::after { -webkit-text-stroke: 0; background: var(--fill); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bubbly.gold { --fill: linear-gradient(180deg, #fffbe2 0%, #ffe68a 35%, #ffc53a 60%, #ff9419 100%); --edge: #4a1d00; --drop: #2e1000; --rim: #ffe48a; }

/* win amount over the reels after every win */
.reel-win { position: absolute; left: 50%; top: 50%; z-index: 9; pointer-events: none; transform: translate(-50%, -50%);
  font-size: 96px; animation: rwin2 1.9s cubic-bezier(.2, 1.3, .4, 1) forwards; filter: none; }
@keyframes rwin2 { 0% { transform: translate(-50%, -50%) scale(.3); opacity: 0; } 14% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; }
  24% { transform: translate(-50%, -50%) scale(1); } 84% { opacity: 1; transform: translate(-50%, -52%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -60%) scale(.96); } }

/* ---- bonus screens over the blurred game ---- */
#bonus { display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer;
  background: rgba(10, 4, 26, .5); backdrop-filter: blur(12px) saturate(1.1); -webkit-backdrop-filter: blur(12px) saturate(1.1); }
#bonus .bs-intro, #bonus .bs-total { display: none; position: relative; flex-direction: column; align-items: center; }
#bonus.intro .bs-intro, #bonus.total .bs-total { display: flex; }
#bonus .title { font-size: 104px; margin-bottom: 6px; z-index: 3; animation: titleIn .6s cubic-bezier(.2, 1.5, .4, 1); }
#bonus .title.big { font-size: 150px; margin-bottom: 18px; }
@keyframes titleIn { from { transform: scale(.5) translateY(30px); opacity: 0; } }
.bs-panel { position: relative; width: 900px; height: 652px; animation: panelIn .55s .05s cubic-bezier(.2, 1.3, .4, 1) backwards; }
@keyframes panelIn { from { transform: translateY(60px) scale(.9); opacity: 0; } }
.bs-frame { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.bs-inner { position: absolute; left: 8.5%; top: 8.5%; width: 83%; height: 83%; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 56px; text-align: center;
  background: linear-gradient(rgba(20, 8, 50, .55), rgba(20, 8, 50, .7)), url(assets/reelbg.jpg) center/cover; }
.bs-won { font: 800 40px var(--display); text-transform: uppercase; letter-spacing: .02em; color: #fff; text-shadow: 0 3px 0 #2a0b4a, 0 6px 16px rgba(0, 0, 0, .5); }
.bs-art { display: flex; align-items: flex-end; justify-content: center; gap: 6px; height: 170px; margin: 16px 0 14px; }
.bs-art img { width: 132px; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .5)); animation: artIn .6s cubic-bezier(.2, 1.6, .4, 1) backwards; }
.bs-art img:nth-child(2) { width: 160px; animation-delay: .1s; }
.bs-art img:nth-child(3) { animation-delay: .2s; }
@keyframes artIn { from { transform: translateY(30px) scale(.6); opacity: 0; } }
.bs-inner p { margin: 0; font: 500 23px/1.5 var(--display); color: #fff; text-shadow: 0 2px 6px rgba(0, 0, 0, .7); }
.bs-total .amount { font-size: 170px; font-variant-numeric: tabular-nums; }
.bs-played { margin-top: 26px; font: 700 34px var(--display); color: #fff; text-shadow: 0 3px 0 #2a0b4a, 0 6px 16px rgba(0, 0, 0, .5); }
.bs-total .deco { position: absolute; filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .5)); animation: decoFloat 4s ease-in-out infinite; }
.bs-total .d1 { width: 170px; left: -330px; top: -40px; transform: rotate(-14deg); }
.bs-total .d2 { width: 190px; right: -350px; top: -10px; animation-delay: -1s; }
.bs-total .d3 { width: 170px; left: -300px; bottom: -40px; animation-delay: -2s; }
.bs-total .d4 { width: 150px; right: -290px; bottom: -30px; transform: rotate(16deg); animation-delay: -3s; }
@keyframes decoFloat { 50% { translate: 0 -14px; } }
.tapline { margin-top: 30px; font: 800 38px var(--display); text-transform: uppercase; letter-spacing: .02em; color: #ffe9b0;
  text-shadow: 0 3px 0 #4a1d00, 0 6px 16px rgba(0, 0, 0, .55); opacity: 0; transition: opacity .4s; }
#bonus.ready .tapline { opacity: 1; animation: tap 1.6s ease-in-out infinite; }

/* ---- iris transition: a black circle closes to a point and opens again ---- */
#iris { position: fixed; inset: 0; z-index: 1000; pointer-events: none; overflow: hidden; display: none; }
#iris.on { display: block; pointer-events: auto; }
#iris i { position: absolute; left: 50%; top: 50%; width: var(--d, 300vmax); height: var(--d, 300vmax); border-radius: 50%; transform: translate(-50%, -50%);
  box-shadow: 0 0 140px 200vmax #05030d; transition: width var(--t, .6s) var(--e, ease-in), height var(--t, .6s) var(--e, ease-in); } /* blurred, soft edge */
#iris.closed { background: #05030d; } /* closed means fully black: no dot, no gap */

/* ---- layered win titles (Big / Mega / Sensational / Total): text bounces in, items fly in and bob, a light sweeps the text ---- */
.bw-title { position: relative; width: 1400px; height: 781px; margin: -110px 0 -150px; pointer-events: none; }
.ly { position: absolute; background: center / 100% 100% no-repeat; will-change: transform; }
.ly.text { z-index: 2; animation: lyText .75s var(--d, 0s) cubic-bezier(.2, 1.6, .35, 1) backwards, lyPulse 1.8s calc(var(--d, 0s) + .8s) ease-in-out infinite; }
.ly.item { z-index: 1; animation: lyItem .9s var(--d, 0s) cubic-bezier(.2, 1.25, .4, 1) backwards, lyBob 3.2s calc(var(--d, 0s) + .9s) ease-in-out infinite; }
.ly.text::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .75) 48%, rgba(255, 255, 255, .0) 58%) -150% 0 / 250% 100% no-repeat;
  -webkit-mask: var(--m) center / 100% 100% no-repeat; mask: var(--m) center / 100% 100% no-repeat; animation: lyShine 2.6s calc(var(--d, 0s) + .6s) ease-in-out infinite; }
@keyframes lyText { 0% { transform: scale(.2) rotate(-6deg); opacity: 0; } 60% { transform: scale(1.12) rotate(1.5deg); opacity: 1; } 100% { transform: none; } }
@keyframes lyPulse { 50% { transform: scale(1.04) rotate(-.6deg); } }
@keyframes lyItem { from { transform: translate(var(--fx), var(--fy)) rotate(var(--fr)) scale(.4); opacity: 0; } }
@keyframes lyBob { 25% { transform: translateY(-14px) rotate(-3deg); } 75% { transform: translateY(8px) rotate(3deg); } }
@keyframes lyShine { 0%, 35% { background-position: -150% 0; } 75%, 100% { background-position: 250% 0; } }
.bw-title.out .ly { animation: lyOut .3s ease-in forwards !important; }
@keyframes lyOut { to { transform: scale(1.35); opacity: 0; filter: blur(6px); } }

/* bitmap digit font (the provided 0-9 and comma) */
.dnum { display: flex; align-items: flex-start; justify-content: center; height: 1em; line-height: 1; white-space: nowrap; }
.dnum img { display: block; height: calc(var(--h) * 1em); margin-top: calc(var(--t) * 1em); margin-right: -.035em; filter: drop-shadow(0 .05em .06em rgba(0, 0, 0, .45)); }
.dnum .sp { width: .2em; flex: none; }
.bw-amount { position: relative; z-index: 3; font-size: 150px; }
.bw-amount.pulse { animation: amtPulse .4s ease-out; }
.bw-skip { position: relative; margin-top: 40px; font: 700 24px var(--display); letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .7); animation: tap 1.6s ease-in-out infinite; }
#bigwin { flex-direction: column; }
#bigwin .rays { opacity: .32; }
.bs-total .bw-title { margin: -170px 0 -120px; }
.bs-total .bw-amount { font-size: 170px; }
.reel-win.dnum { font-size: 100px; transform: translate(-50%, -50%); }

/* provider splash: the Wind Game Soft logo on white */
#splash { background: #05030d; }
.prov-logo { width: 640px; opacity: 0; animation: provLogo 2.6s ease-in-out forwards; }
@keyframes provLogo { 0% { opacity: 0; transform: scale(.97); } 35% { opacity: 1; transform: scale(1); } 75% { opacity: 1; transform: scale(1.01); } 100% { opacity: 0; transform: scale(1.02); } }
/* while the provider splash is up, the whole window is dark (no game background at the edges) */
#viewport:has(#splash:not(.hidden))::before { background: #05030d; backdrop-filter: none; }

/* ---- bonus title artwork above the frame ---- */
.bs-title-img { display: block; width: 760px; margin-bottom: 18px; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .55)); animation: titleIn .7s cubic-bezier(.2, 1.5, .4, 1), titleFloat 3.2s .8s ease-in-out infinite; }
@keyframes titleFloat { 50% { transform: translateY(-8px) scale(1.015); } }

/* ---- no combination ticker under the reels ---- */
#winmsg { display: none !important; }

/* ---- winning cells: a glowing tile lights up behind the symbol, sweeping across the reels left to right ---- */
#lines { display: none; }
.cell.win::after, .sticky-cell.win::after { content: ''; position: absolute; inset: 6px; border-radius: 16px; z-index: 1; pointer-events: none;
  background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--glow) 55%, white 10%) 0%, color-mix(in srgb, var(--glow) 28%, transparent) 45%, transparent 75%);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--glow) 70%, white 20%), 0 0 26px color-mix(in srgb, var(--glow) 60%, transparent);
  animation: tileIn .45s var(--rd, 0s) cubic-bezier(.3, 1.6, .5, 1) backwards, tileGlow 1.4s calc(var(--rd, 0s) + .45s) ease-in-out infinite; }
@keyframes tileIn { from { transform: scale(.4); opacity: 0; } }
@keyframes tileGlow { 50% { opacity: .55; transform: scale(.96); } }
#reels.showing .cell.win img, #reels.showing .sticky-cell.win img { animation: winIn .45s var(--rd, 0s) cubic-bezier(.3, 1.6, .5, 1) backwards, float 1.4s calc(var(--rd, 0s) + .45s) ease-in-out infinite; }

/* ---- bonus counters live in the bottom bar (total win | free spins left) ---- */
#fsinfo.on { display: none !important; }
#fsDock { display: none; align-items: center; height: 64px; padding: 0 22px; border-radius: 12px; background: rgba(0, 0, 0, .35); box-shadow: inset 0 0 0 1px var(--line); }
body.fs #barMsg { display: none; }
body.fs #fsDock { display: flex; }
#fsDock .stat { min-width: 170px; }
#fsDock .stat b { font-size: 28px; }
#fsDock .stat b.bump { animation: winMsg .4s ease-out; }

/* ---- bonus screens: fade/blur in and out instead of hard cuts ---- */
#bonus { transition: opacity .85s ease, filter .85s ease, backdrop-filter .85s ease; }
#bonus.total { animation: screenIn .8s ease both; }
#bonus.leaving { opacity: 0; filter: blur(18px); backdrop-filter: blur(0); -webkit-backdrop-filter: blur(0); pointer-events: none; }
@keyframes screenIn { from { opacity: 0; filter: blur(14px); } }
/* no peek rows */
#peekShade { display: none; }

/* big win screen leaves smoothly */
#bigwin { transition: opacity .65s ease, filter .65s ease; }
#bigwin.closing { opacity: 0; filter: blur(10px); pointer-events: none; }
