/* ==========================================================================
   Sugar Rush clone — stylesheet
   Stage: 1280x720 design space, scaled to fit the window by js/ui.js.
   Theme switch: body.free-spins swaps the palette variables (purple).
   Speed: body.speed-normal|quick|turbo tune the animation timing variables.
   Renderer hooks (classes it toggles): .cell.win-outline, .cell.marked,
   .cell.mult, .cell.has-scatter, .sym.pulse, .sym.burst, .sym.drop-in,
   .sym.drop-out, .sym.fall, .sym.reel-hint, .ticket.pop, .dust (+ children),
   .win-label, .scatter-ribbon; .cell.win-outline.mult lifts the ticket above the symbol
   ========================================================================== */

:root {
  --font-heavy: "Baloo 2", "Fredoka", "Arial Rounded MT Bold", "Nunito", "Noto Sans", "Segoe UI", Arial, sans-serif;
  --font-cond: "Oswald", "Bebas Neue", "Noto Sans Condensed", "Noto Sans", "Arial Narrow", Arial, sans-serif;
  --font-ui: "Segoe UI", "Noto Sans", Arial, sans-serif;

  /* board geometry */
  --cols: 7; --rows: 7;
  --cell-w: 120px; --cell-h: 79px;

  /* --- base game palette --- */
  --sky1: #7fc9f8; --sky2: #a9d9fa; --sky3: #cfe6fb; --sky4: #f7c1e3;
  --ground1: #f47cb9; --ground2: #ffb6da; --groundfar1: #ffc7e6; --groundfar2: #f7a2d1;
  --hill: #ff9ccf;
  --cab-hi: #cfeafd; --cab-body: #9fd3f5; --cab-edge: #5fa9e4; --cab-inner: #7dbdee; --cab-pipe: #7fc1ee; --cab-pipe-hi: #dff3ff;
  --cab-strip: #2f5f9c; --plinth-hi: #6fa8e2; --plinth: #4f8fd0; --shelf: #6aa6e0;
  --board1: rgba(206, 234, 255, 0.86); --board2: rgba(255, 205, 232, 0.86); --board-sep: rgba(255, 255, 255, 0.55);
  --hud1: #2c3070; --hud2: #141548; --hud-edge: #5a5fb0; --rail1: #262a6a; --rail2: #12133f;
  --sign: #e94ec0; --sign-dark: #c22c99; --sign-hi: #ff7fd6;
  --gold: #f5c542; --gold-dark: #d99a17; --cream: #fff2b3;
  --win-glow: #ffb340;
  --glass1: rgba(255, 255, 255, 0.34); --glass2: rgba(220, 235, 255, 0.14); --glass3: rgba(255, 200, 235, 0.22);

  /* --- animation timing (overridden by speed classes) --- */
  --col-stagger: 120ms; --row-stagger: 70ms;
  --drop-dur: 460ms; --dropout-dur: 380ms; --dropout-stagger: 40ms;
  --fall-dur: 360ms; --burst-dur: 380ms; --pulse-dur: 620ms;
}
body.free-spins {
  /* vivid magenta / violet like free_spins_mid.png */
  --sky1: #b93cf5; --sky2: #cb63f6; --sky3: #e58cf7; --sky4: #f0a6f0;
  --ground1: #c92fb5; --ground2: #f07dd0; --groundfar1: #e9a4ef; --groundfar2: #d97bdc; --hill: #e88be0;
  --cab-hi: #d3c4fb; --cab-body: #a48cf0; --cab-edge: #6a4fd0; --cab-inner: #8f74e2; --cab-pipe: #9a84ea; --cab-pipe-hi: #e6dcff;
  --cab-strip: #3f2f95; --plinth-hi: #8268df; --plinth: #5f44c4; --shelf: #7d63d8;
  --board1: rgba(222, 205, 250, 0.9); --board2: rgba(238, 205, 250, 0.9); --board-sep: rgba(255, 255, 255, 0.5);
  --hud1: #4a3b93; --hud2: #281f5c; --hud-edge: #7b6bc4; --rail1: #3d3178; --rail2: #251c52;
  --glass1: rgba(120, 70, 190, 0.55); --glass2: rgba(70, 30, 140, 0.55); --glass3: rgba(150, 60, 200, 0.6);
}
body.speed-quick { --col-stagger: 70ms; --row-stagger: 42ms; --drop-dur: 360ms; --dropout-dur: 300ms; --dropout-stagger: 25ms; --fall-dur: 280ms; --burst-dur: 300ms; --pulse-dur: 500ms; }
body.speed-turbo { --col-stagger: 30ms; --row-stagger: 18ms; --drop-dur: 260ms; --dropout-dur: 220ms; --dropout-stagger: 12ms; --fall-dur: 200ms; --burst-dur: 220ms; --pulse-dur: 400ms; }

/* ---------- viewport / stage scaling ---------- */
html, body { margin: 0; padding: 0; height: 100%; background: #0b1230; overflow: hidden; }
body { font-family: var(--font-ui); -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
#viewport { position: fixed; inset: 0; overflow: hidden; background: #0b1230; }
#stage {
  position: absolute; left: 0; top: 0; width: 1280px; height: 720px;
  transform-origin: 0 0; overflow: hidden;
  background: var(--sky1);
  font-family: var(--font-heavy);
}
#stage > svg, #stage > div { position: absolute; }
#stage.dialog-open #message { visibility: hidden; }
button { font-family: inherit; cursor: pointer; border: 0; padding: 0; background: none; color: inherit; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }

/* ---------- background ---------- */
#bgSky {
  left: 0; top: 0; width: 1280px; height: 720px; z-index: 0;
  background:
    radial-gradient(ellipse 60% 30% at 50% 60%, rgba(255, 190, 230, 0.55), rgba(255, 190, 230, 0) 70%),
    linear-gradient(180deg, var(--sky1) 0%, var(--sky2) 30%, var(--sky3) 55%, var(--sky4) 100%);
  transition: background 700ms ease;
}
#bgScene { left: 0; top: 0; z-index: 1; }
#bgScene .gs-ground1 { stop-color: var(--ground1); } #bgScene .gs-ground2 { stop-color: var(--ground2); }
#bgScene .gs-groundfar1 { stop-color: var(--groundfar1); } #bgScene .gs-groundfar2 { stop-color: var(--groundfar2); }
#bgScene .ground-hill { fill: var(--hill); }
#bgScene stop, #bgScene .ground-hill, #cabinet stop, #cabinet rect, #cabinet circle, #cabinet path { transition: stop-color 700ms ease, fill 700ms ease, stroke 700ms ease; }

/* ---------- cabinet ---------- */
#cabinet { left: 0; top: 0; z-index: 2; pointer-events: none; }
#cabinet .gs-cab-hi { stop-color: var(--cab-hi); } #cabinet .gs-cab-body { stop-color: var(--cab-body); }
#cabinet .gs-cab-edge { stop-color: var(--cab-edge); }
#cabinet .gs-plinth-hi { stop-color: var(--plinth-hi); } #cabinet .gs-plinth { stop-color: var(--plinth); }
#cabinet .cab-body-shape { stroke: var(--cab-edge); stroke-width: 3; }
#cabinet .cab-inner-shape { fill: var(--cab-inner); }
#cabinet .cab-side-shape { stroke: var(--cab-edge); stroke-width: 2; }
#cabinet .cab-strip-shape { fill: var(--cab-strip); }
#cabinet .cab-shelf-shape { fill: var(--shelf); stroke: var(--cab-edge); stroke-width: 1.5; }
#cabinet .cab-knobs circle { fill: var(--cab-edge); }
#cabinet .cab-pipe { fill: none; stroke: var(--cab-pipe); stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; }
#cabinet .cab-pipe-hi { fill: none; stroke: var(--cab-pipe-hi); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0.85; }
#cabinet .cab-pipe-lo { fill: none; stroke: var(--cab-edge); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: 0.6; }
#cabinet .cab-frame { fill: none; stroke: var(--cab-edge); stroke-width: 10; stroke-linejoin: round; }
#cabinet .cab-frame-hi { fill: none; stroke: var(--cab-pipe-hi); stroke-width: 2; stroke-linejoin: round; opacity: 0.7; }
#cabinet .cab-pinkbtn { fill: #f06ab9; stroke: #b9368c; stroke-width: 2; }
#cabinet .cab-purplebtn { fill: #9a5cf0; stroke: #6a30c0; stroke-width: 2; }
#cabinet .cab-vent { fill: #7d8db0; stroke: #55648c; stroke-width: 2; }

/* ---------- icing ---------- */
#icing { left: 190px; top: 10px; z-index: 5; pointer-events: none; overflow: visible; }

/* ---------- board ---------- */
#board {
  left: 214px; top: 64px; width: 840px; height: 553px; z-index: 3;
  display: grid; grid-template-columns: repeat(7, var(--cell-w)); grid-template-rows: repeat(7, var(--cell-h));
  overflow: hidden; border-radius: 4px;
  background:
    repeating-linear-gradient(90deg, transparent 0 119px, var(--board-sep) 119px 120px),
    linear-gradient(180deg, var(--board1), var(--board2));
  box-shadow: inset 0 0 40px rgba(255, 255, 255, 0.35);
  transition: background 700ms ease;
}
#boardFx { left: 214px; top: 64px; width: 840px; height: 553px; z-index: 4; pointer-events: none; overflow: visible; }
/* every symbol starts 1.5 cells above the board top (see .sym.drop-in) */
.cell { position: relative; width: var(--cell-w); height: var(--cell-h); --from: calc(-1 * (var(--row) + 1.5) * var(--cell-h)); }
/* the rocket is taller than its cell; upper scatter cells paint above lower
   ones so a SCATTER ribbon is never hidden behind the rocket nose below it */
.cell.has-scatter { z-index: calc(20 - var(--row)); }
.cell > div { position: absolute; }
/* ticket / mark fill ~90% of the cell (a small gap shows the board between tickets like the reference) */
.cell .mark, .cell .ticket { left: 5px; top: 4px; right: 5px; bottom: 4px; }
/* symbol box: 104x76px centred in the 120x79 cell — the square art (drawn to
   the edge of its viewBox, cast shadow included) paints ~62-68px, i.e. ~80-85%
   of the cell height with a clear gap between rows like the reference */
.cell .sym { left: 50%; top: 50%; width: 104px; height: 76px; margin: -38px 0 0 -52px; display: flex; align-items: center; justify-content: center; will-change: transform; }
.cell .sym > svg, .cell .sym > img { width: 100%; height: 100%; display: block; overflow: visible; }
/* the scatter rocket is ~1.5 cells tall (scaled on the art, so the drop-in /
   fall keyframes on .sym are unaffected) */
.cell.has-scatter .sym > svg { transform: scale(1.22); transform-origin: 50% 54%; }
.cell .fx { inset: 0; pointer-events: none; overflow: visible; }

/* mark = faint golden ghost ticket (1st explosion): the renderer injects markSVG() */
.cell .mark { opacity: 0; transition: opacity 350ms ease; }
.cell .mark > svg { width: 100%; height: 100%; display: block; }
.cell .mark:not(.has-svg) {
  border-radius: 6px;
  background:
    radial-gradient(circle at 0 50%, transparent 0 5px, #fbe38a 5px) left / 8px 16px repeat-y,
    radial-gradient(circle at 100% 50%, transparent 0 5px, #fbe38a 5px) right / 8px 16px repeat-y,
    linear-gradient(180deg, #fffbe6, #ffefb8 55%, #ffe08a);
  background-repeat: repeat-y, repeat-y, no-repeat;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.8), 0 0 10px rgba(255, 240, 180, 0.6);
}
.cell.marked .mark { opacity: 0.35; }
/* ticket = multiplier badge holder (renderer injects multiplierBadgeSVG(value)) */
.cell .ticket { display: none; z-index: 1; }
.cell .ticket > svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 3px 3px rgba(60, 20, 0, 0.45)); }
.cell.mult .ticket { display: block; }
.cell.mult .mark { opacity: 0; }
.cell .sym { z-index: 2; }
.cell .fx { z-index: 3; }
/* a winning cluster sitting on multiplier spots: the tickets pop above the
   symbols so the x-values stay readable during the highlight */
.cell.win-outline.mult .ticket { z-index: 3; }
.cell.win-outline.mult .sym { opacity: 0.38; }
.cell .sym { transition: opacity 180ms ease; }
/* CSS fallback ticket (used by the intro when symbols.js is absent) */
.ticket-css {
  position: absolute; inset: 0; border-radius: 6px; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 0 50%, transparent 0 5px, #f7c93c 5px) left / 8px 16px repeat-y,
    radial-gradient(circle at 100% 50%, transparent 0 5px, #f7c93c 5px) right / 8px 16px repeat-y,
    linear-gradient(180deg, #fff3b0, #ffd54a 55%, #f6a623);
  background-repeat: repeat-y, repeat-y, no-repeat;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55), 0 3px 4px rgba(60, 20, 0, 0.35);
  font-family: var(--font-heavy); font-weight: 900; font-size: 34px; letter-spacing: -1px;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.8); text-shadow: 0 2px 0 rgba(120, 50, 0, 0.35);
}
.ticket-css::before, .ticket-css::after { content: ""; position: absolute; top: 6px; bottom: 6px; width: 1px; border-left: 1px dashed rgba(255, 255, 255, 0.8); }
.ticket-css::before { left: 10px; } .ticket-css::after { right: 10px; }
.ticket-css.t-low { color: #f25a1e; } .ticket-css.t-mid { color: #e6162d; } .ticket-css.t-high { color: #8a2be2; }

/* --- win outline (golden glowing border per winning cell) --- */
.cell.win-outline::after {
  content: ""; position: absolute; inset: 3px; border-radius: 6px; pointer-events: none; z-index: 4;
  border: 3px solid var(--win-glow);
  box-shadow: 0 0 10px 2px rgba(255, 190, 70, 0.75), inset 0 0 12px rgba(255, 200, 90, 0.55);
  animation: outline-glow 650ms ease-in-out infinite alternate;
}
@keyframes outline-glow { from { box-shadow: 0 0 6px 1px rgba(255, 190, 70, 0.55), inset 0 0 6px rgba(255, 200, 90, 0.4); border-color: #ffd070; } to { box-shadow: 0 0 16px 4px rgba(255, 180, 60, 0.95), inset 0 0 16px rgba(255, 200, 90, 0.7); border-color: #ff9a2e; } }

/* --- symbol animations --- */
.sym.pulse { animation: sym-pulse var(--pulse-dur) ease-in-out infinite; }
@keyframes sym-pulse { 0%, 100% { transform: scale(1); filter: brightness(1); } 50% { transform: scale(1.08); filter: brightness(1.12) drop-shadow(0 0 8px rgba(255, 255, 255, 0.95)); } }

.sym.burst { animation: sym-burst var(--burst-dur) ease-out forwards; }
@keyframes sym-burst { 0% { transform: scale(1); opacity: 1; } 30% { transform: scale(1.18); opacity: 1; filter: brightness(1.5); } 100% { transform: scale(0.15); opacity: 0; filter: brightness(1.6); } }

/* Column drop-in: every symbol starts 1.5 cells above the frame (--from on the
   .cell) and falls at a constant speed, so a symbol bound for row r travels
   r + 1.5 cells and its animation lasts that fraction of --drop-dur (the
   bottom row's 7.5-cell fall). Rows are released bottom-up --row-stagger
   apart: the column spreads out and lands bottom first, like the reference.
   The renderer overrides --from / delay / duration inline for tumble refills. */
.sym.drop-in {
  animation: sym-drop-in var(--drop-dur) both;
  animation-duration: calc(var(--drop-dur) * (var(--row) + 1.5) / (var(--rows) + 0.5));
  animation-delay: calc(var(--col) * var(--col-stagger) + (var(--rows) - 1 - var(--row)) * var(--row-stagger));
}
@keyframes sym-drop-in {
  0% { transform: translateY(var(--from)); animation-timing-function: linear; }
  72% { transform: translateY(0) scale(1, 1); animation-timing-function: ease-out; }
  82% { transform: translateY(6px) scale(1.1, 0.84); animation-timing-function: ease-in-out; }
  92% { transform: translateY(-4px) scale(0.96, 1.05); }
  100% { transform: translateY(0) scale(1, 1); }
}
/* drop-out through the bottom of the board (board has overflow hidden) */
.sym.drop-out { animation: sym-drop-out var(--dropout-dur) cubic-bezier(0.5, 0, 1, 0.6) forwards; animation-delay: calc(var(--col) * var(--dropout-stagger)); }
@keyframes sym-drop-out { 0% { transform: translateY(0); } 100% { transform: translateY(calc((var(--rows) + 1) * var(--cell-h))); } }
/* tumble fall: survivor moving down by --from (negative px) to its new cell */
.sym.fall { animation: sym-fall var(--fall-dur) both; }
@keyframes sym-fall {
  0% { transform: translateY(var(--from)); animation-timing-function: cubic-bezier(0.5, 0, 1, 0.6); }
  78% { transform: translateY(0) scale(1, 1); animation-timing-function: ease-out; }
  88% { transform: translateY(4px) scale(1.07, 0.9); }
  100% { transform: translateY(0) scale(1, 1); }
}
/* hint symbol flying past a column (renderer appends .sym.reel-hint to the row-0
   cell); fill-mode "both" parks it above the frame until its delay elapses */
.sym.reel-hint { animation: sym-hint var(--drop-dur) linear both; opacity: 0.85; }
@keyframes sym-hint { from { transform: translateY(-170px); } to { transform: translateY(640px); } }

/* --- ticket pop --- */
.ticket.pop, .ticket-css.pop { animation: ticket-pop 480ms cubic-bezier(0.2, 1.7, 0.4, 1) both; }
@keyframes ticket-pop { 0% { transform: scale(0.3); filter: brightness(1.8); } 60% { transform: scale(1.18); } 100% { transform: scale(1); filter: brightness(1); } }
.ticket.glow { animation: ticket-glow 500ms ease-in-out infinite alternate; }
@keyframes ticket-glow { from { filter: brightness(1); } to { filter: brightness(1.45) drop-shadow(0 0 10px #ffe07a); } }

/* --- sugar dust particles --- */
.dust { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.dust::before { content: ""; position: absolute; left: -40px; top: -40px; width: 80px; height: 80px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(255, 215, 240, 0.85) 30%, rgba(255, 150, 210, 0) 70%);
  animation: dust-puff 450ms ease-out forwards; }
/* the pink sugar cloud that stays on the exploded cell for a moment */
.dust::after { content: ""; position: absolute; left: -50px; top: -38px; width: 100px; height: 76px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 150, 210, 0.75) 0%, rgba(255, 170, 220, 0.55) 40%, rgba(255, 170, 220, 0) 72%);
  animation: dust-cloud 720ms ease-out forwards; }
@keyframes dust-puff { 0% { transform: scale(0.3); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes dust-cloud { 0% { transform: scale(0.5); opacity: 0.2; } 25% { transform: scale(1); opacity: 1; } 60% { opacity: 0.85; } 100% { transform: scale(1.35); opacity: 0; } }
.dust i { position: absolute; left: 0; top: 0; width: var(--s, 10px); height: var(--s, 10px); margin: calc(var(--s, 10px) / -2); border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff, var(--c, #fff) 70%); box-shadow: 0 0 6px var(--c, #fff);
  animation: dust-fly var(--d, 700ms) cubic-bezier(0.1, 0.5, 0.3, 1) forwards; }
@keyframes dust-fly { 0% { transform: translate(0, 0) scale(1); opacity: 1; } 55% { opacity: 0.9; } 100% { transform: translate(var(--dx, 0px), var(--dy, 0px)) scale(0.2); opacity: 0; } }

/* --- cluster win label (in #boardFx) --- */
.win-label {
  position: absolute; transform: translate(-50%, -50%); white-space: nowrap; pointer-events: none;
  font-family: var(--font-heavy); font-weight: 900; font-size: 40px; color: #fff; letter-spacing: -1px;
  -webkit-text-stroke: 1.5px #1b2f6b; paint-order: stroke fill;
  text-shadow: 0 0 2px #1b2f6b, 0 0 2px #1b2f6b, 0 3px 0 #1b2f6b, 0 5px 8px rgba(0, 0, 0, 0.5);
  animation: label-in 300ms cubic-bezier(0.2, 1.6, 0.4, 1) both;
}
.win-label.out { animation: label-out 250ms ease-in forwards; }
@keyframes label-in { from { transform: translate(-50%, -50%) scale(0.2); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
@keyframes label-out { to { transform: translate(-50%, -80%) scale(0.8); opacity: 0; } }

/* --- scatter ribbon: pink swallowtail banner across the rocket body, kept
   inside the lower third of its own cell (stacked scatters never overlap) --- */
.scatter-ribbon, .scatter-ribbon-static {
  position: absolute; left: 50%; bottom: 3px; transform: translateX(-50%) rotate(-3deg); width: 104px; height: 25px; line-height: 25px; box-sizing: border-box;
  text-align: center; white-space: nowrap;
  font-family: var(--font-heavy); font-weight: 900; font-size: 15.5px; letter-spacing: 0.4px; color: #fff;
  -webkit-text-stroke: 1.6px #6a0d6e; paint-order: stroke fill;
  text-shadow: 0 1.5px 0 #6a0d6e, 0 0 6px rgba(255, 255, 255, 0.8), 0 0 10px #9ff3ff;
  animation: ribbon-in 380ms cubic-bezier(0.2, 1.6, 0.4, 1) both;
}
/* banner = dark-purple rim (::before, 3px larger) under the magenta face (::after) */
.scatter-ribbon::before, .scatter-ribbon-static::before {
  content: ""; position: absolute; inset: -2.5px; z-index: -2; background: #6a0d6e;
  clip-path: polygon(0 0, 100% 0, 91% 50%, 100% 100%, 0 100%, 9% 50%);
  filter: drop-shadow(0 0 6px #fff) drop-shadow(0 0 12px #7ff) drop-shadow(0 2px 2px rgba(80, 0, 60, 0.6));
}
.scatter-ribbon::after, .scatter-ribbon-static::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, #ff7ee0 0%, #d02ec0 55%, #b0189e 100%);
  clip-path: polygon(0 0, 100% 0, 91% 50%, 100% 100%, 0 100%, 9% 50%);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.35);
}
.cell.scatter-glow .sym > svg { filter: drop-shadow(0 0 10px #7ff) drop-shadow(0 0 18px #4cf); }
@keyframes ribbon-in { from { transform: translateX(-50%) rotate(-3deg) scale(0); } to { transform: translateX(-50%) rotate(-3deg) scale(1); } }

/* ---------- candy text (SVG <use> layers) ---------- */
.candy-text { font-family: var(--font-heavy); font-weight: 900; }
.ct-outer { fill: none; stroke: #5a2d8c; stroke-width: 14px; stroke-linejoin: round; stroke-linecap: round; paint-order: stroke; }
.ct-outer.thick { stroke-width: 26px; }
.ct-outer.brown { stroke: #8a4a12; } .ct-outer.purple { stroke: #5a2d8c; } .ct-outer.navy { stroke: #2b1a5e; }
.ct-extrude { fill: #3a1660; stroke: #3a1660; stroke-width: 12px; stroke-linejoin: round; paint-order: stroke; }
.ct-extrude.thick { stroke-width: 26px; }
.ct-outer.purple.thick { stroke: #7a3fc9; }
.ct-extrude.brown { fill: #8a4a12; stroke: #8a4a12; }
.ct-fill { stroke: #fff; stroke-width: 6px; stroke-linejoin: round; paint-order: stroke; }
.ct-fill.cream { fill: #fff2b3; } .ct-fill.pink { fill: #ff9ad5; } .ct-fill.white { fill: #fff; }
.ct-fill.thick { stroke-width: 12px; }
.ct-sprinkles { fill: #fff; opacity: 0.85; }
.logo-text { font-family: var(--font-heavy); font-weight: 900; letter-spacing: -2px; }
/* (the intro clones the logo svg, so these rules cover .intro-logo as well) */
#logo .ct-outer, .intro-logo .ct-outer { stroke-width: 9px; } #logo .ct-fill, .intro-logo .ct-fill { stroke-width: 5px; }
#logo .ct-extrude, .intro-logo .ct-extrude { stroke-width: 9px; fill: #4a2390; stroke: #4a2390; }
.ct-outer.rush { stroke: #7a1560; } .ct-extrude.rush { fill: #7a1560; stroke: #7a1560; }
.ct-gloss { fill: url(#gGlossV); stroke: none; pointer-events: none; }

/* ---------- BUY FREE SPINS sign ---------- */
#buySign { left: 24px; top: 46px; width: 162px; height: 228px; z-index: 6; cursor: pointer; outline: none; transition: transform 150ms; }
#buySign:hover .sign-panel { filter: brightness(1.08); }
#buySign:active { transform: scale(0.97); }
#buySign.disabled { cursor: default; pointer-events: none; }
#buySign.disabled[data-mode="buy"] .sign-frame { filter: saturate(0.6) brightness(0.85); }
.sign-frame {
  position: absolute; left: 0; top: 14px; width: 162px; height: 214px; border-radius: 12px; padding: 8px; box-sizing: border-box;
  background: repeating-linear-gradient(45deg, #ff3b5c 0 8px, #fff 8px 16px);
  box-shadow: 0 6px 12px rgba(60, 10, 60, 0.35), inset 0 0 0 2px rgba(255, 255, 255, 0.5);
}
.sign-panel {
  position: relative; width: 100%; height: 100%; border-radius: 8px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 20%, var(--sign-hi), var(--sign) 60%, var(--sign-dark));
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.25), inset 0 -20px 30px rgba(120, 10, 90, 0.35);
}
.sign-text { position: absolute; left: -1px; top: 20px; width: 150px; height: 130px; overflow: visible; }
.sign-text .ct-outer { stroke: #9a4a14; stroke-width: 7px; } .sign-text .ct-fill { stroke-width: 0; }
.sign-text .ct-extrude { fill: #8a4a10; stroke: #8a4a10; stroke-width: 7px; }
.sign-text .candy-text { letter-spacing: 1px; }
#buySign[data-mode="bonus"] .sign-text { top: 28px; }
/* gold pill with a candy-cane rim: the wrapper carries the stripes, the inner span the gold */
.sign-pill {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); padding: 3px; box-sizing: border-box;
  border-radius: 22px; text-align: center; white-space: nowrap;
  background: repeating-linear-gradient(45deg, #ff5a3a 0 5px, #fff 5px 10px);
  box-shadow: 0 3px 6px rgba(80, 20, 0, 0.35);
}
.sign-pill > span {
  position: relative; display: block; min-width: 96px; padding: 0 12px; height: 34px; line-height: 34px; border-radius: 19px; box-sizing: border-box;
  background: radial-gradient(ellipse at 50% 20%, #fff8c0, #ffd54a 45%, #f5a623 100%);
  box-shadow: inset 0 2px 0 #fff, inset 0 -3px 4px rgba(200, 90, 0, 0.35), 0 0 0 1px #e0741a;
  font-family: var(--font-heavy); font-weight: 900; font-size: 30px; color: #e8232a; letter-spacing: 0.5px;
  -webkit-text-stroke: 1.5px #fff; paint-order: stroke fill; text-shadow: 0 2px 0 #9c0f14, 0 3px 3px rgba(0, 0, 0, 0.35);
}
.sign-pill > span::after { content: ""; position: absolute; left: 10px; right: 10px; top: 3px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.5); pointer-events: none; }
#buySign[data-mode="bonus"] .sign-pill { display: none; }
#buySign[data-mode="fsleft"] .sign-pill > span { font-size: 34px; }
.sign-icing { position: absolute; left: -7px; top: 0; pointer-events: none; overflow: visible; }
.sign-bracket { position: absolute; right: -12px; top: 60px; width: 16px; height: 150px; }
.sign-bracket::before { content: ""; position: absolute; left: 3px; top: 0; bottom: 0; width: 8px; background: linear-gradient(90deg, #d97a2a, #ffc56b, #c8661f); border-radius: 4px; }
.sign-bracket i { position: absolute; left: -1px; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffd58a, #ff8a2a 55%, #c8661f); box-shadow: 0 2px 3px rgba(0, 0, 0, 0.4), inset 0 -2px 2px rgba(120, 50, 0, 0.35); }
.sign-bracket i:first-child { top: -6px; } .sign-bracket i:last-child { bottom: -6px; }

/* ---------- glass windows / win log ---------- */
.glass-window {
  border-radius: 8px; box-sizing: border-box; border: 7px solid var(--cab-edge); z-index: 6;
  background: linear-gradient(160deg, var(--glass1), var(--glass2) 45%, var(--glass3));
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.4), inset 0 0 0 1.5px rgba(70, 50, 150, 0.4), inset 0 0 0 3px rgba(255, 255, 255, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.4), 0 4px 10px rgba(30, 60, 120, 0.3);
  overflow: hidden; transition: background 700ms ease, border-color 700ms ease;
}
.glass-shine { position: absolute; left: -30%; top: -10%; width: 60%; height: 140%; transform: rotate(18deg); pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0)); }
.glass-window .glass-shelf { position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: linear-gradient(180deg, #ff8fd0, #e94ec0); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.5); }
.glass-window > svg.glass-content { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
#winLog { left: 22px; top: 336px; width: 170px; height: 166px; }
#winLog .glass-content { opacity: 1; transition: opacity 300ms; }
#winLog .glass-shelf { display: none; }        /* the claw box is glass all the way down */
#winLog.active .glass-content { opacity: 0; }
#winLogRows { position: absolute; left: 4px; right: 4px; bottom: 5px; display: flex; flex-direction: column-reverse; gap: 3px; }
#winLog.active { background: linear-gradient(180deg, #d4c2f8, #a98cf0); border-color: #6fa0ff; }
#winLog.active .glass-shelf, #winLog.active .glass-shine { display: none; }
.log-row {
  display: flex; align-items: center; gap: 4px; height: 22px; padding: 0 6px; border-radius: 11px;
  background: linear-gradient(180deg, #e55ad4, #d93fc4 60%, #c02fae); border: 1px solid #ff9df0; box-sizing: border-box;
  box-shadow: 0 1px 2px rgba(60, 0, 60, 0.5);
  font-family: var(--font-heavy); font-weight: 900; font-size: 15px; color: #fff2b3; text-shadow: 0 1px 0 #5a1466, 0 0 2px #5a1466;
  animation: logrow-in 260ms cubic-bezier(0.2, 1.5, 0.4, 1) both;
}
@keyframes logrow-in { from { transform: translateY(10px) scale(0.8); opacity: 0; } to { transform: none; opacity: 1; } }
.log-row .lsize { min-width: 12px; text-align: right; }
.log-row .licon { width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; }
.log-row .licon > svg { width: 100%; height: 100%; display: block; }
.log-row .licon > i { display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--c, #fff); }
.log-row .lmult { color: #ff3b3b; -webkit-text-stroke: 1px #fff; paint-order: stroke fill; text-shadow: 0 1px 0 #5a1466; }
.log-row .lamt { margin-left: auto; color: #fff; }
#rightWindow { left: 1078px; top: 336px; width: 76px; height: 166px; }

/* ---------- logo ---------- */
#logo { left: 1070px; top: 44px; width: 200px; height: 150px; z-index: 6; pointer-events: none; }
#logo svg { overflow: visible; }

/* ---------- HUD ---------- */
#hud {
  left: 104px; top: 636px; width: 1072px; height: 84px; z-index: 7; border-radius: 30px 30px 0 0;
  background: linear-gradient(180deg, var(--hud1), var(--hud2) 70%);
  box-shadow: inset 0 3px 0 var(--hud-edge), inset 0 12px 20px rgba(0, 0, 0, 0.25);
  transition: background 700ms ease;
}
#hud > * { position: absolute; }
.rails { left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.rails i { position: absolute; top: 36px; width: 106px; height: 28px; border-radius: 14px;
  background: linear-gradient(180deg, var(--rail1), var(--rail2)); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.12), 0 2px 3px rgba(0, 0, 0, 0.4); }
.rails i::after { content: ""; position: absolute; left: 34px; top: 8px; width: 38px; height: 12px; border-radius: 6px; background: rgba(0, 0, 0, 0.35); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6); }

.hud-btn { color: #fff; display: inline-flex; align-items: center; justify-content: center; transition: transform 120ms ease, filter 120ms ease, opacity 200ms; }
.hud-btn:hover { filter: brightness(1.2); }
.hud-btn:active { transform: scale(0.94); }
.hud-btn:disabled, .hud-btn.disabled { opacity: 0.35; pointer-events: none; }
.hud-btn.round { width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #2c3b62, #131b33 75%); border: 2px solid #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); }
.hud-btn.round.small { width: 26px; height: 26px; border-width: 1.5px; }
#menuBtn { left: 26px; top: 4px; }
#soundBtn { left: 26px; top: 36px; }
#soundBtn .snd-mute { display: none; } #soundBtn.muted .snd-mute { display: block; } #soundBtn.muted .snd-wave { display: none; }
#infoBtn { left: 57px; top: 11px; }
.ico-menu { display: flex; flex-direction: column; gap: 3px; } .ico-menu i { display: block; width: 12px; height: 2px; background: #fff; border-radius: 1px; }
.ico-info { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 700; font-size: 28px; line-height: 1; margin-top: -3px; }
.ico-minus, .ico-plus { position: relative; width: 18px; height: 18px; }
.ico-minus::before, .ico-plus::before, .ico-plus::after { content: ""; position: absolute; background: #fff; border-radius: 1px; }
.ico-minus::before, .ico-plus::before { left: 0; top: 8px; width: 18px; height: 2.5px; }
.ico-plus::after { left: 8px; top: 0; width: 2.5px; height: 18px; }

.readout { display: flex; align-items: baseline; gap: 8px; font-family: var(--font-cond); font-stretch: condensed; text-transform: uppercase; }
.readout .lbl { width: 62px; text-align: right; color: var(--gold); font-weight: 900; font-size: 17px; letter-spacing: 0.3px; text-shadow: 0 1px 0 #6b3d00; }
.readout .val { color: #fff; font-weight: 700; font-size: 20px; font-family: var(--font-heavy); font-stretch: normal; text-shadow: 0 1px 1px rgba(0, 0, 0, 0.6); }
#credit { left: 124px; top: 8px; }
#bet { left: 124px; top: 32px; }

/* message line: tall condensed heavy face (the reference is ~1.3x taller than wide) */
#message { left: 230px; top: -2px; width: 600px; text-align: center; pointer-events: none; transform: scaleX(0.84); transform-origin: 50% 50%; }
#msgMain { font-family: var(--font-cond); font-stretch: condensed; font-weight: 900; font-size: 42px; line-height: 46px; color: #fff; text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap;
  text-shadow: 0 2px 0 #10162b, 0 3px 6px rgba(0, 0, 0, 0.55); transition: transform 120ms; }
#msgMain .gold, #msgSub .gold { color: var(--gold); }
#msgMain.bump { animation: msg-bump 220ms ease-out; }
@keyframes msg-bump { 0% { transform: scale(1.12); } 100% { transform: scale(1); } }
#msgSub { font-family: var(--font-cond); font-stretch: condensed; font-weight: 900; font-size: 22px; line-height: 26px; color: #fff; text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; text-shadow: 0 2px 0 #10162b, 0 2px 4px rgba(0, 0, 0, 0.5); min-height: 26px; }
#msgSub .icon { display: inline-block; width: 28px; height: 28px; vertical-align: -7px; margin: 0 4px; transform: scaleX(1.19); }
#msgMain .icon { display: inline-block; width: 42px; height: 42px; vertical-align: -10px; margin: 0 4px; transform: scaleX(1.19); }
#msgMain .icon > svg { width: 100%; height: 100%; display: block; overflow: visible; }
#msgSub .icon > svg { width: 100%; height: 100%; display: block; overflow: visible; }
#message.compact #msgMain { font-size: 26px; line-height: 30px; margin-top: 26px; }
#message.counting #msgMain { color: #fff; }

#betDown { left: 752px; top: -8px; }
#betUp { left: 944px; top: -8px; }
#spinBtn { left: 814px; top: -44px; width: 114px; height: 114px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #1a2038, #05070f 72%); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.55); }
#spinBtn .spin-ring { position: absolute; inset: 4px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35); pointer-events: none; }
#spinBtn .spin-arrows { position: absolute; left: 50%; top: 50%; width: 80px; height: 80px; margin: -40px 0 0 -40px; transition: transform 300ms; }
#spinBtn .spin-crown { position: absolute; left: -12px; top: -6px; transform: rotate(-28deg); filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5)); }
#spinBtn .spin-stop { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 9px; border: 4px solid #e0304a; box-shadow: 0 0 10px rgba(255, 60, 90, 0.6), inset 0 0 10px rgba(255, 60, 90, 0.35); display: none; }
#spinBtn.spinning .spin-arrows, #spinBtn.stop .spin-arrows { display: none; }
#spinBtn.spinning .spin-stop, #spinBtn.stop .spin-stop { display: block; }
#spinBtn.spinning { pointer-events: none; }
#spinBtn.spinning .spin-stop { opacity: 0.6; }
#spinBtn.stop .spin-stop { animation: stop-pulse 900ms ease-in-out infinite alternate; }
@keyframes stop-pulse { from { transform: scale(1); } to { transform: scale(1.08); } }
#spinBtn.idle:hover .spin-arrows { transform: rotate(40deg); }
#spinBtn.disabled { pointer-events: none; } #spinBtn.disabled .spin-arrows { opacity: 0.4; }

.hud-btn.pill { height: 24px; padding: 0 12px 0 22px; border-radius: 12px; background: #0d1327; border: 2px solid #fff; font-family: var(--font-heavy); font-weight: 900; font-size: 13px; letter-spacing: 0.5px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); white-space: nowrap; }
#autoBtn { left: 821px; top: 50px; width: 116px; box-sizing: border-box; justify-content: flex-end; padding-right: 20px; }
#autoBtn::before, #autoBtn::after { content: "\203A\203A\203A"; position: absolute; top: -1px; font-size: 11px; letter-spacing: -2px; line-height: 20px; opacity: 0.9; }
#autoBtn::before { left: 6px; } #autoBtn::after { right: 8px; transform: scaleX(-1); }
#autoBtn.active { background: #7a1030; border-color: #ffb3c1; }
.hud-btn.pill-small { height: 22px; padding: 0 6px; border-radius: 11px; background: #0d1327; border: 2px solid #fff; font-size: 14px; line-height: 1; gap: 0; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); }
#speedBtn { left: 808px; top: 51px; z-index: 2; min-width: 30px; box-sizing: border-box; }
#speedBtn .chev { font-weight: 900; font-size: 19px; line-height: 1; margin: 0 -3px; opacity: 0.3; transition: opacity 150ms; margin-top: -2px; }
#speedBtn[data-speed="normal"] .chev:nth-child(1) { opacity: 1; }
#speedBtn[data-speed="quick"] .chev:nth-child(-n+2) { opacity: 1; }
#speedBtn[data-speed="turbo"] .chev { opacity: 1; color: #ffd23f; }
#hudRightBtn { left: 926px; top: 51px; width: 30px; box-sizing: border-box; opacity: 0.6; }
#hudRightBtn .chev { font-size: 19px; line-height: 1; margin-top: -2px; }

/* ---------- settings popover ---------- */
.popover { left: 120px; top: 380px; width: 250px; padding: 12px 14px 14px; box-sizing: border-box; z-index: 30; border-radius: 12px;
  background: rgba(16, 20, 40, 0.94); border: 2px solid rgba(255, 255, 255, 0.5); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); color: #fff;
  animation: pop-in 180ms cubic-bezier(0.2, 1.4, 0.4, 1) both; }
@keyframes pop-in { from { transform: translateY(14px) scale(0.92); opacity: 0; } to { transform: none; opacity: 1; } }
.popover-title { font-family: var(--font-heavy); font-weight: 900; font-size: 18px; letter-spacing: 1px; margin-bottom: 8px; color: var(--gold); }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; font-family: var(--font-heavy); font-weight: 700; font-size: 14px; letter-spacing: 0.5px; cursor: pointer; }
.toggle-row input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle-row .switch { position: relative; width: 44px; height: 22px; border-radius: 11px; background: #3a4262; transition: background 150ms; flex: none; }
.toggle-row .switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left 150ms; }
.toggle-row input:checked + .switch { background: #2fb84a; }
.toggle-row input:checked + .switch::after { left: 25px; }
.toggle-row.light { color: #fff; font-size: 16px; padding: 10px 0 0; justify-content: center; gap: 16px; }
.menu-link { display: block; width: 100%; margin-top: 8px; padding: 8px 0; border-radius: 8px; background: #26334f; color: #fff; font-family: var(--font-heavy); font-weight: 900; font-size: 14px; letter-spacing: 1px; border: 1.5px solid rgba(255, 255, 255, 0.5); }
.menu-link:hover { background: #33446a; }

/* ---------- overlays ---------- */
.overlay { left: 0; top: 0; width: 1280px; height: 720px; z-index: 20; animation: overlay-in 220ms ease both; }
.overlay.dim { background: linear-gradient(180deg, rgba(6, 8, 24, 0.55) 0, rgba(6, 8, 24, 0.55) 636px, rgba(6, 8, 24, 0) 636px); }
.overlay.closing { animation: overlay-out 200ms ease forwards; pointer-events: none; }
@keyframes overlay-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes overlay-out { to { opacity: 0; } }
.modal-panel { animation: modal-in 280ms cubic-bezier(0.2, 1.4, 0.4, 1) both; }
@keyframes modal-in { from { transform: scale(0.72); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.overlay.closing .modal-panel { animation: modal-out 180ms ease-in forwards; }
@keyframes modal-out { to { transform: scale(0.8); opacity: 0; } }

/* ---------- toast ---------- */
#toast { left: 50%; top: 300px; transform: translateX(-50%); padding: 14px 28px; border-radius: 14px; z-index: 40; background: rgba(16, 20, 40, 0.92); border: 2px solid #fff; color: #fff; font-family: var(--font-heavy); font-weight: 900; font-size: 22px; letter-spacing: 1px; text-transform: uppercase; animation: pop-in 200ms ease both; pointer-events: none; white-space: nowrap; }

/* ---------- intro ---------- */
#intro { background: linear-gradient(180deg, #8fd0ff 0%, #bfe4ff 45%, #ffc4e6 100%); overflow: hidden; }
.intro-sky { position: absolute; inset: 0; overflow: hidden; }
.intro-rays { position: absolute; left: 50%; top: 45%; width: 2600px; height: 2600px; margin: -1300px 0 0 -1300px; opacity: 0.6;
  background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0) 0deg 9deg, rgba(255, 255, 255, 0.35) 9deg 18deg); animation: rays-rot 60s linear infinite; }
.intro-sky::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 260px;
  background: linear-gradient(180deg, rgba(244, 124, 185, 0) 0%, #f47cb9 45%, #ffb6da 100%); border-radius: 50% 50% 0 0 / 60px 60px 0 0; }
.intro-ground { position: absolute; left: 0; top: 0; pointer-events: none; }
.intro-left { position: absolute; left: 40px; top: 6px; width: 840px; height: 710px; }
.intro-logo { position: absolute; left: 290px; top: -6px; width: 260px; height: 150px; z-index: 3; }
.intro-logo svg { width: 100%; height: 100%; overflow: visible; }
.intro-cab { position: absolute; left: 60px; top: 100px; width: 720px; height: 460px; border-radius: 22px; background: linear-gradient(180deg, #cfeafd, #9fd3f5); border: 3px solid #5fa9e4; box-shadow: 0 10px 30px rgba(20, 50, 120, 0.35); }
.intro-cab::before { content: ""; position: absolute; left: 12px; right: 12px; top: 10px; bottom: 10px; border-radius: 10px; background: #7dbdee; }
.intro-cab::after { content: ""; position: absolute; left: -10px; right: -10px; bottom: -34px; height: 56px; border-radius: 18px; background: linear-gradient(180deg, #6fa8e2, #3b6fb0); z-index: -1; }
.intro-side { position: absolute; top: 200px; width: 78px; height: 300px; border-radius: 12px; background: linear-gradient(90deg, #5fa9e4, #cfeafd 25%, #9fd3f5); border: 2px solid #5fa9e4; z-index: -1; box-shadow: 0 8px 20px rgba(20, 50, 120, 0.3); }
.intro-side.l { left: -66px; } .intro-side.r { right: -66px; }
.intro-side .iwin { position: absolute; left: 9px; top: 40px; width: 56px; height: 120px; border-radius: 6px; border: 5px solid #5fa9e4; box-sizing: border-box; background: linear-gradient(160deg, rgba(255, 255, 255, 0.55), rgba(220, 235, 255, 0.25) 45%, rgba(255, 200, 235, 0.3)); overflow: hidden; }
.intro-side .iwin svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.intro-side .ibtn { position: absolute; left: 24px; bottom: 30px; width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffb4e6, #e94ec0 70%); border: 2px solid #b9368c; }
.intro-side .ivent { position: absolute; left: 22px; bottom: 6px; width: 20px; height: 20px; border-radius: 50%; background: #7d8db0; border: 2px solid #55648c; }
.intro-icing { position: absolute; left: -6px; top: -36px; width: 732px; height: 66px; z-index: 2; }
.intro-icing svg { width: 100%; height: 100%; overflow: visible; }
.intro-board { position: absolute; left: 20px; top: 20px; width: 680px; height: 420px; display: grid; grid-template-columns: repeat(7, 1fr); grid-template-rows: repeat(7, 1fr); overflow: hidden; border-radius: 4px;
  background: repeating-linear-gradient(90deg, transparent 0 calc(680px / 7 - 1px), rgba(255, 255, 255, 0.55) calc(680px / 7 - 1px) calc(680px / 7)), linear-gradient(180deg, rgba(206, 234, 255, 0.86), rgba(255, 205, 232, 0.86)); }
.icell { position: relative; }
.icell .ticket-css, .icell .iticket { position: absolute; inset: 0 1px; }
.icell .iticket > svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 2px 2px rgba(60, 20, 0, 0.35)); }
.icell .mark > svg { width: 100%; height: 100%; display: block; }
.icell .isym { position: absolute; left: 50%; top: 50%; width: 84px; height: 58px; margin: -29px 0 0 -42px; display: flex; align-items: center; justify-content: center; }
.icell .isym > svg { width: 100%; height: 100%; display: block; overflow: visible; }
.icell .ticket-css { font-size: 34px; }
.intro-board.slide-1 .iticket, .intro-board.slide-1 .ticket-css { animation: ticket-pop 500ms cubic-bezier(0.2, 1.6, 0.4, 1) both; animation-delay: calc(var(--i) * 25ms); }
.intro-dots { position: absolute; left: 0; width: 840px; top: 576px; display: flex; justify-content: center; gap: 22px; }
.intro-dots .dot { width: 22px; height: 22px; border-radius: 50%; border: 3px solid #fff; box-sizing: border-box; background: #ff9ad5; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); cursor: pointer; }
.intro-dots .dot.active { background: #ffd23f; }
.intro-caption { position: absolute; left: 0; width: 840px; top: 612px; text-align: center; font-family: var(--font-heavy); font-weight: 900; font-size: 34px; line-height: 44px; text-transform: uppercase; letter-spacing: 0.5px; }
.intro-caption .cap-line { position: relative; }
.intro-caption .cap-line::before, .intro-caption .cap-line::after { content: attr(data-text); position: absolute; left: 0; right: 0; top: 0; }
.intro-caption .cap-line::before { color: #7a2d00; -webkit-text-stroke: 9px #7a2d00; text-shadow: 0 4px 0 #7a2d00, 0 7px 10px rgba(60, 0, 60, 0.45); z-index: 0; }
.intro-caption .cap-line::after { color: #fff; -webkit-text-stroke: 4.5px #fff; z-index: 1; }
.intro-caption .cap-line > span { position: relative; z-index: 2; background: linear-gradient(180deg, #ffe36b 30%, #ff9a1e 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.intro-right { position: absolute; left: 900px; top: 40px; width: 330px; height: 660px; }
.intro-rocket { position: absolute; left: 0; top: 0; overflow: visible; filter: drop-shadow(0 12px 16px rgba(60, 0, 60, 0.4)); }
.rocket-bob { animation: rocket-bob 3s ease-in-out infinite; transform-origin: 0 100px; }
@keyframes rocket-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.intro-spin { position: absolute; left: 100px; top: 296px; width: 130px; height: 130px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #1a1a2e, #05050c 72%); box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5); color: #fff; }
.intro-spin .spin-ring { position: absolute; inset: 4px; border-radius: 50%; border: 5px solid #fff; }
.intro-spin .spin-arrows { position: absolute; left: 50%; top: 50%; margin: -35px 0 0 -35px; }
.intro-spin .spin-crown { position: absolute; left: -8px; top: -4px; transform: rotate(-28deg); }
.intro-spin:hover .spin-arrows { transform: rotate(40deg); transition: transform 300ms; }
.volatility-badge { position: absolute; left: 72px; top: 490px; display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 16px 0 6px; border-radius: 15px; background: #111; color: #fff; font-family: var(--font-heavy); font-weight: 700; font-size: 14px; letter-spacing: 0.5px; white-space: nowrap; }
.volatility-badge b { font-weight: 900; }
.volatility-badge .vol-icon { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--gold); color: var(--gold); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; box-sizing: border-box; }
.volatility-badge.inline { position: static; margin: 4px auto 8px; display: flex; width: max-content; }
.intro-check { position: absolute; left: 30px; top: 540px; display: flex; align-items: center; gap: 10px; cursor: pointer; font-family: var(--font-heavy); font-weight: 900; font-size: 16px; color: #ffe259; text-shadow: 0 2px 0 #7a3e12, 0 3px 6px rgba(0, 0, 0, 0.4); letter-spacing: 0.5px; white-space: nowrap; }
.intro-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.intro-check .box { width: 26px; height: 26px; border-radius: 5px; border: 3px solid #ffd23f; background: #3b2a8a; box-sizing: border-box; position: relative; flex: none; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35); }
.intro-check input:checked + .box::after { content: ""; position: absolute; left: 6px; top: 1px; width: 7px; height: 13px; border: solid #ffd23f; border-width: 0 3px 3px 0; transform: rotate(45deg); }

/* ---------- info modal ---------- */
.info-panel { position: absolute; left: 128px; top: 15px; width: 1008px; height: 588px; border-radius: 8px; background: rgba(14, 14, 24, 0.93); color: #fff; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); font-family: var(--font-ui); }
.info-close { position: absolute; right: 0; top: 0; width: 58px; height: 68px; border-radius: 0 8px 0 8px; background: #1e1e2c; color: #fff; font-size: 34px; font-weight: 300; line-height: 1; z-index: 2; }
.info-close:hover { background: #2b2b3f; }
.info-pages { position: absolute; left: 20px; right: 20px; top: 22px; bottom: 60px; overflow: hidden; }
.info-page { display: none; text-align: center; font-size: 15.5px; line-height: 1.22; }
.info-page.active { display: block; }
.info-page h2 { font-size: 22px; font-weight: 500; letter-spacing: 0.5px; margin: 8px 0 4px; }
.info-page h2.spaced { margin-top: 36px; }
.info-page p { margin: 3px 30px; }
.info-page p.gap { margin-top: 20px; }
.info-page .maxWinText { font-weight: 600; }
.pay-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: 12px 10px 4px; }
.pay-col { display: flex; flex-direction: column; align-items: center; }
.pay-col .pay-icon { width: 100px; height: 90px; display: flex; align-items: center; justify-content: center; }
.pay-col .pay-icon > svg { width: 90px; height: 90px; display: block; }
.pay-col .pay-icon > i { display: block; width: 56px; height: 56px; border-radius: 14px; background: var(--c, #fff); }
.pay-col table { border-collapse: collapse; font-size: 15.5px; line-height: 17.5px; }
.pay-col td { padding: 0 4px; white-space: nowrap; }
.pay-col td:first-child { text-align: right; }
.pay-col td:last-child { text-align: left; }
.scatter-row { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 10px; text-align: left; }
.scatter-icon { position: relative; width: 110px; height: 118px; display: flex; align-items: center; justify-content: center; }
.scatter-icon > svg { width: 84px; height: 84px; display: block; overflow: visible; filter: drop-shadow(0 0 8px #fff); margin-top: -10px; }
.scatter-icon > i { display: block; width: 50px; height: 76px; border-radius: 25px 25px 8px 8px; background: linear-gradient(180deg, #ffd0e8, #ff5fa2 60%, #e0304a); }
.scatter-icon .scatter-ribbon-static { bottom: 4px; width: 112px; height: 32px; line-height: 32px; font-size: 18px; -webkit-text-stroke: 2px #6a0d6e; animation: none; }
.info-nav { position: absolute; left: 50px; bottom: 26px; display: flex; align-items: center; gap: 14px; }
.nav-arrow { width: 0; height: 0; border-style: solid; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.5)); }
.nav-arrow.left { border-width: 20px 32px 20px 0; border-color: transparent #6fe23a transparent transparent; }
.nav-arrow.right { border-width: 20px 0 20px 32px; border-color: transparent transparent transparent #6fe23a; }
.nav-arrow:hover { filter: brightness(1.2) drop-shadow(0 2px 2px rgba(0, 0, 0, 0.5)); }
.nav-x { color: #6fe23a; font-size: 44px; font-weight: 900; line-height: 1; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.5)); }
.info-pageno { position: absolute; right: 50px; bottom: 40px; font-size: 14px; font-weight: 600; }
.mini-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 5px; margin: 0 2px; border-radius: 11px; border: 1.5px solid #fff; font-style: normal; font-size: 13px; line-height: 1; vertical-align: -5px; box-sizing: border-box; }
.mini-btn.wide { border-radius: 11px; padding: 0 10px; font-size: 12px; font-weight: 700; }
.mini-arrow { display: inline-block; width: 0; height: 0; border-style: solid; vertical-align: -3px; margin: 0 4px; }
.mini-arrow.left { border-width: 8px 14px 8px 0; border-color: transparent #6fe23a transparent transparent; }
.mini-arrow.right { border-width: 8px 0 8px 14px; border-color: transparent transparent transparent #6fe23a; }
.mini-x { color: #6fe23a; font-weight: 900; font-style: normal; font-size: 20px; margin: 0 4px; }

/* ---------- candy panel (buy / autoplay): thick orange/white candy-cane rim with a pink glow ---------- */
.candy-panel { position: absolute; left: 50%; top: 150px; width: 680px; transform-origin: 50% 50%; border-radius: 22px; padding: 12px; box-sizing: border-box;
  background: repeating-linear-gradient(45deg, #f26a1e 0 12px, #fff 12px 24px); box-shadow: 0 0 24px 6px #ff7ad9, 0 0 60px 10px rgba(255, 110, 220, 0.55), 0 12px 30px rgba(0, 0, 0, 0.45); margin-left: -340px; }
.candy-panel .panel-inner { position: relative; border-radius: 10px; min-height: 320px; overflow: hidden; text-align: center;
  background: radial-gradient(ellipse at 50% 15%, #f7a6f7, #e57cf0 55%, #d55fe0); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.35), inset 0 -30px 40px rgba(120, 10, 120, 0.3); }
.candy-panel .panel-inner::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.35;
  background: radial-gradient(circle at 20% 30%, #fff 0 12px, transparent 13px), radial-gradient(circle at 75% 20%, #fff 0 8px, transparent 9px), radial-gradient(circle at 60% 75%, #fff 0 14px, transparent 15px), radial-gradient(circle at 15% 80%, #fff 0 9px, transparent 10px), radial-gradient(circle at 90% 60%, #fff 0 10px, transparent 11px); }
.panel-icing { position: absolute; left: -10px; top: -22px; z-index: 2; pointer-events: none; overflow: visible; }
.buy-title { display: block; margin: 8px auto -10px; overflow: visible; }
.gold-pill { display: inline-block; position: relative; padding: 6px; border-radius: 37px; background: repeating-linear-gradient(45deg, #f26a1e 0 6px, #fff 6px 12px); box-shadow: 0 4px 10px rgba(80, 20, 0, 0.35); }
.gold-pill > span { position: relative; display: block; padding: 0 30px; height: 60px; line-height: 60px; border-radius: 30px; background: radial-gradient(ellipse at 50% 15%, #fff8c0, #ffd54a 45%, #f5a623 100%);
  box-shadow: inset 0 2px 0 #fff, inset 0 -4px 6px rgba(200, 90, 0, 0.35), 0 0 0 2px #e0741a; font-family: var(--font-heavy); font-weight: 900; font-size: 40px; color: #fff; letter-spacing: 0.5px; -webkit-text-stroke: 2px #e8232a; paint-order: stroke fill; text-shadow: 0 3px 0 #b3121a, 0 4px 4px rgba(0, 0, 0, 0.35); }
.gold-pill > span::after { content: ""; position: absolute; left: 14px; right: 14px; top: 5px; height: 12px; border-radius: 6px; background: rgba(255, 255, 255, 0.5); pointer-events: none; }
.buy-warn { margin: 14px 0 -4px; font-family: var(--font-heavy); font-weight: 900; font-size: 20px; letter-spacing: 1px; color: #fff; text-shadow: 0 2px 0 #8a103a, 0 0 8px rgba(255, 60, 100, 0.8); animation: blink 1.2s ease-in-out infinite; }
.buy-actions { display: flex; justify-content: center; gap: 250px; margin: -10px 0 22px; }
.buy-actions.single { gap: 0; margin: 14px 0 22px; }
.glossy { position: relative; width: 120px; height: 64px; border-radius: 16px; color: #fff; font-size: 36px; font-weight: 900; font-family: var(--font-heavy); line-height: 1; box-shadow: 0 5px 0 rgba(0, 0, 0, 0.35), 0 8px 12px rgba(0, 0, 0, 0.3), inset 0 3px 0 rgba(255, 255, 255, 0.55), inset 0 -5px 0 rgba(0, 0, 0, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.25); text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35); transition: transform 100ms, filter 100ms; }
.glossy > svg { width: 46px; height: 46px; display: block; overflow: visible; }
.glossy::after { content: ""; position: absolute; left: 8px; right: 8px; top: 4px; height: 24px; border-radius: 12px 12px 10px 10px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.05)); pointer-events: none; }
.glossy:hover { filter: brightness(1.1); } .glossy:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35), 0 4px 8px rgba(0, 0, 0, 0.3), inset 0 3px 0 rgba(255, 255, 255, 0.5); }
.glossy.red { background: linear-gradient(180deg, #ff6b7f, #e8253f 55%, #b8102a); border: 3px solid #ffd0d6; }
.glossy.green { background: linear-gradient(180deg, #9dff6a, #3fbf2a 55%, #22841a); border: 3px solid #d6ffc4; }
.glossy:disabled, .glossy.disabled { filter: saturate(0.3) brightness(0.7); cursor: default; pointer-events: none; }
.buy-panel .buy-actions { margin-top: 12px; }
.buy-footer { position: absolute; left: 0; width: 1280px; top: 640px; text-align: center; pointer-events: none; }   /* clicks beside the stepper still count as "outside the dialog" */
.buy-footer .bet-stepper button { pointer-events: auto; }
.buy-footer .lbl { font-family: var(--font-heavy); font-weight: 900; font-size: 16px; color: #fff; letter-spacing: 0.5px; text-shadow: 0 2px 2px rgba(0, 0, 0, 0.6); }
.bet-stepper { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 2px; }
.bet-stepper .bet-box { min-width: 116px; height: 40px; line-height: 40px; border-radius: 6px; background: linear-gradient(180deg, #2b3a60, #182140); border: 1px solid #5f78ab; color: #fff; font-family: var(--font-heavy); font-weight: 700; font-size: 20px; }
.panel-title { margin: 22px 0 4px; font-family: var(--font-heavy); font-weight: 900; font-size: 44px; color: #fff2b3; letter-spacing: 2px; -webkit-text-stroke: 1.5px #8a4a12; paint-order: stroke fill; text-shadow: 0 4px 0 #8a4a12, 0 6px 10px rgba(60, 0, 60, 0.45); }
.auto-sub { font-family: var(--font-heavy); font-weight: 900; font-size: 16px; color: #fff; letter-spacing: 1px; text-shadow: 0 2px 0 rgba(120, 10, 120, 0.5); margin-bottom: 10px; }
.auto-grid { display: grid; grid-template-columns: repeat(4, 118px); gap: 10px; justify-content: center; }
.auto-grid button { height: 46px; border-radius: 23px; background: linear-gradient(180deg, #fff1a8, #ffd54a 50%, #f6a623); border: 3px solid #e0741a; color: #fff; font-family: var(--font-heavy); font-weight: 900; font-size: 24px; -webkit-text-stroke: 1px #e8590c; text-shadow: 0 2px 0 #e8590c; box-shadow: 0 3px 6px rgba(80, 20, 0, 0.35), inset 0 2px 0 #fff; transition: transform 100ms, filter 100ms; }
.auto-grid button:hover { filter: brightness(1.08); transform: translateY(-2px); }
.auto-grid button:active { transform: translateY(1px); }

/* ---------- splash screens (big win / free spins) ---------- */
.overlay.splash { cursor: pointer; overflow: hidden; }
/* everything but the HUD is darkened: the backdrop covers the whole stage and
   the HUD is lifted above the splash (#stage.splash-open, set by UI) */
.overlay.splash .splash-bg { position: absolute; left: 0; right: 0; top: 0; bottom: 0; opacity: 0.9; background: radial-gradient(ellipse at 50% 45%, #1f3bb8 0%, #0d1a66 40%, #060a2e 100%); }
#stage.splash-open #hud { z-index: 21; pointer-events: none; }
.overlay.splash .splash-bg.pink { background: radial-gradient(ellipse at 50% 45%, #a0247f 0%, #5a1466 45%, #1c0a3a 100%); }
.splash-rays { position: absolute; left: 0; top: 0; overflow: visible; }
.rays-spin { animation: rays-rot 30s linear infinite; transform-origin: 0 0; }
@keyframes rays-rot { to { transform: rotate(360deg); } }
.splash-ring { position: absolute; left: 50%; top: 50%; width: 1080px; height: 600px; margin: -300px 0 0 -540px; border-radius: 50%; border: 7px solid rgba(140, 220, 255, 0.85); box-shadow: 0 0 30px 6px rgba(120, 200, 255, 0.7), inset 0 0 50px 10px rgba(120, 200, 255, 0.35); animation: ring-pulse 2.4s ease-in-out infinite; }
@keyframes ring-pulse { 0%, 100% { transform: scale(1); opacity: 0.9; } 50% { transform: scale(1.04); opacity: 1; } }
.fs-frame { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.fs-frame .rhombus { fill: none; stroke: #ff6fd8; stroke-width: 5; stroke-linejoin: round; filter: drop-shadow(0 0 10px #ff5ac8) drop-shadow(0 0 22px rgba(255, 90, 200, 0.7)); animation: ring-pulse 2.6s ease-in-out infinite; transform-origin: 640px 360px; }
.fs-frame .rhombus.inner { stroke-width: 2; opacity: 0.7; }
.splash-sparkles { position: absolute; left: 0; top: 0; pointer-events: none; }
.twinkle { animation: twinkle 1.8s ease-in-out infinite; animation-delay: var(--d, 0s); transform-box: fill-box; transform-origin: center; }
@keyframes twinkle { 0%, 100% { opacity: 0.2; } 50% { opacity: 1; } }
.splash-content { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.splash-title { overflow: visible; animation: title-in 600ms cubic-bezier(0.2, 1.5, 0.4, 1) both; }
.splash-title .star-l, .splash-title .star-r, .fs-congrats .star-l, .fs-congrats .star-r { animation: star-spin 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.splash-title .star-r, .fs-congrats .star-r { animation-delay: 0.6s; }
@keyframes star-spin { 0%, 100% { transform: rotate(-10deg) scale(1); } 50% { transform: rotate(10deg) scale(1.12); } }
@keyframes title-in { from { transform: scale(0.2) rotate(-8deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }
.splash-title-text { letter-spacing: 2px; }
.candy-pill { position: relative; width: 560px; height: 110px; border-radius: 55px; padding: 8px; box-sizing: border-box; margin-top: 30px;
  background: repeating-linear-gradient(45deg, #f26a1e 0 10px, #fff 10px 20px); box-shadow: 0 0 30px 4px rgba(255, 120, 230, 0.55), 0 10px 24px rgba(0, 0, 0, 0.45); animation: pill-in 500ms cubic-bezier(0.2, 1.5, 0.4, 1) both; animation-delay: 150ms; }
.candy-pill::before { content: ""; position: absolute; inset: 8px; border-radius: 47px; background: radial-gradient(ellipse at 50% 10%, #ff9bf0, #e05ad8 60%, #b5339f); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.35), inset 0 -18px 24px rgba(120, 10, 120, 0.35); }
@keyframes pill-in { from { transform: scale(0.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.candy-pill .pill-icing { position: absolute; left: 4px; top: -12px; width: 552px; height: 64px; z-index: 1; pointer-events: none; overflow: visible; }
.candy-pill .pill-text { z-index: 2; }
.candy-pill .pill-text { position: absolute; left: 20px; top: 0; overflow: visible; }
.count-pill.ticking .pill-text { animation: count-tick 90ms ease-out; }
@keyframes count-tick { from { transform: scale(1.03); } to { transform: scale(1); } }
.fs-line { overflow: visible; animation: title-in 500ms cubic-bezier(0.2, 1.5, 0.4, 1) both; animation-delay: 100ms; }
.fs-congrats { overflow: visible; animation: title-in 600ms cubic-bezier(0.2, 1.5, 0.4, 1) both; }
.fs-content { gap: 0; }
.fs-content .candy-pill { margin-top: 18px; }
.fs-content .press-anywhere { margin-top: 12px; }
.press-anywhere { margin-top: 26px; font-family: var(--font-heavy); font-weight: 900; font-size: 26px; color: #ffe259; text-transform: none; font-variant: small-caps; letter-spacing: 1px; text-shadow: 0 2px 0 #7a3e12, 0 3px 8px rgba(0, 0, 0, 0.5); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
#fsScreen .press-anywhere { visibility: hidden; }
#fsScreen.ready .press-anywhere { visibility: visible; }
.overlay.popup { pointer-events: none; display: flex; align-items: center; justify-content: center; }
.retrig-pill { animation: retrig-in 400ms cubic-bezier(0.2, 1.6, 0.4, 1) both; }
@keyframes retrig-in { from { transform: scale(0.2) rotate(-6deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }
.overlay.popup.closing .retrig-pill { animation: modal-out 220ms ease-in forwards; }

/* --- coins --- */
#coinLayer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.coin { position: absolute; top: -100px; left: var(--x, 50%); width: var(--s, 60px); height: var(--s, 60px); animation: coin-fall var(--d, 2.2s) cubic-bezier(0.3, 0, 0.8, 0.5) var(--delay, 0s) both; }
.coin > svg { width: 100%; height: 100%; display: block; overflow: visible; animation: coin-flip var(--f, 700ms) linear infinite; filter: drop-shadow(0 6px 5px rgba(0, 0, 0, 0.5)); }
@keyframes coin-fall { 0% { transform: translateY(0) rotate(0deg); opacity: 0; } 8% { opacity: 1; } 100% { transform: translateY(880px) rotate(var(--r, 360deg)); opacity: 1; } }
@keyframes coin-flip { 0% { transform: perspective(160px) rotateY(0deg); } 100% { transform: perspective(160px) rotateY(360deg); } }
.coin.star > svg { animation: none; }

/* ---------- misc utility ---------- */
.no-anim, .no-anim * { animation: none !important; transition: none !important; }
.hidden-fade { opacity: 0; pointer-events: none; }
