/* ============ Velo Slots on the painted plate (design/v2/slots.webp) ============
   Sizes use var(--u) = one plate pixel, so everything scales with the painting. */

/* Reels: the painted cream drums; symbols are drawn on them */
.game-slots .sl-reel {
  overflow: hidden;
  border-radius: calc(12 * var(--u));
  pointer-events: none;
}
.game-slots .sl-sym { position: absolute; left: 0; width: 100%; }
.game-slots .sl-art {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--w, 160) * var(--u));
  height: calc(var(--w, 160) * var(--a, 1) * var(--u));
  background: var(--img) center / 100% 100% no-repeat;
  transform: translate(-50%, calc(-50% + var(--dy, 0%))) scaleY(var(--sq, 0.9));
}
.game-slots .sl-s-7 { --w: 172; --a: 0.943; --img: url("../../img/v2/slots/seven.webp"); }
.game-slots .sl-s-D { --w: 150; --a: 1.013; --img: url("../../img/v2/slots/diamond.webp"); }
.game-slots .sl-s-3 { --w: 138; --a: 1.056; --img: url("../../img/v2/slots/bar3.webp"); }
.game-slots .sl-s-2 { --w: 165; --a: 0.79; --img: url("../../img/v2/slots/bar2.webp"); }
.game-slots .sl-s-B { --w: 182; --a: 0.672; --dy: -13%; --img: url("../../img/v2/slots/bar.webp"); }
.game-slots .sl-s-L { --w: 156; --a: 0.99; --img: url("../../img/v2/slots/bell.webp"); }
.game-slots .sl-s-C { --w: 162; --a: 0.927; --img: url("../../img/v2/slots/cherry.webp"); }

/* Motion blur while a reel runs fast: two faint ghost copies above and below */
.game-slots .sl-art::before,
.game-slots .sl-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  opacity: 0;
}
.game-slots .sl-reel.blur .sl-art { filter: blur(calc(1.8 * var(--u))); scale: 1 1.16; }
.game-slots .sl-reel.blur .sl-art::before { opacity: 0.5; transform: translateY(-12%); filter: blur(calc(2.5 * var(--u))); }
.game-slots .sl-reel.blur .sl-art::after { opacity: 0.5; transform: translateY(12%); filter: blur(calc(2.5 * var(--u))); }

/* Winning symbols glow; the others step back while lines are shown */
.game-slots .sl-showing .sl-sym .sl-art { transition: filter 0.25s; }
.game-slots .sl-showing .sl-sym:not(.win) .sl-art { filter: brightness(0.62) saturate(0.7); }
.game-slots .sl-sym.win::before {
  content: "";
  position: absolute;
  inset: 3% 4%;
  border-radius: calc(16 * var(--u));
  background: radial-gradient(ellipse at center, rgba(255, 236, 150, 0.85), rgba(255, 200, 70, 0.35) 55%, rgba(255, 180, 40, 0.1) 80%);
  box-shadow: inset 0 0 0 calc(5 * var(--u)) #FFD45A, inset 0 0 calc(16 * var(--u)) rgba(255, 170, 30, 0.8), 0 0 calc(22 * var(--u)) rgba(255, 200, 80, 0.8);
  animation: sl-cell 0.7s ease-in-out infinite alternate;
}
.game-slots .sl-sym.win .sl-art {
  filter: drop-shadow(0 0 calc(4 * var(--u)) #FFF3C0) drop-shadow(0 0 calc(12 * var(--u)) rgba(255, 190, 40, 0.95));
  animation: sl-pop 0.7s ease-in-out infinite alternate;
}
@keyframes sl-pop { to { scale: 1.07; } }
@keyframes sl-cell { from { opacity: 0.65; } }

/* Win lines drawn over the window */
.game-slots .sl-lines { pointer-events: none; z-index: 2; }
.game-slots .sl-lines svg { width: 100%; height: 100%; overflow: visible; }
.game-slots .sl-lines polyline { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.game-slots .sl-lines .sh { stroke: rgba(30, 6, 0, 0.55); stroke-width: 22; }
.game-slots .sl-lines .ln {
  stroke-width: 12;
  stroke-dasharray: 1400;
  filter: drop-shadow(0 0 4px rgba(255, 240, 180, 0.95)) drop-shadow(0 0 10px rgba(255, 200, 80, 0.7));
  animation: sl-draw 0.45s ease-out;
}
@keyframes sl-draw { from { stroke-dashoffset: 1400; } to { stroke-dashoffset: 0; } }
.game-slots .vg-plate-fine { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: calc(20 * var(--u)); font-weight: 400; color: #B3A6C9; white-space: pre; }
.game-slots .sl-reelhit { z-index: 3; -webkit-touch-callout: none; }

/* CREDIT · BET · WIN values (labels are painted) */
.game-slots .sl-num {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
  font-family: Baskerville, "Libre Baskerville", "Book Antiqua", Palatino, "Palatino Linotype", "Noto Serif", "Times New Roman", serif;
  font-weight: 700;
  font-size: calc(58 * var(--u));
  line-height: 1;
  white-space: nowrap;
  letter-spacing: -0.01em;
  font-variant-numeric: lining-nums;
  -webkit-text-stroke: calc(1.6 * var(--u)) rgba(255, 214, 90, 0.9);
  background: linear-gradient(180deg, #FFF3A6 10%, #FFD443 42%, #EFA21E 74%, #FFCF4F 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 calc(2 * var(--u)) 0 rgba(40, 12, 0, 0.85)) drop-shadow(0 0 calc(6 * var(--u)) rgba(255, 190, 80, 0.25));
}
.game-slots .sl-won.hot { animation: sl-hot 0.5s ease-in-out 4 alternate; }
@keyframes sl-hot { to { filter: drop-shadow(0 calc(2 * var(--u)) 0 rgba(40, 12, 0, 0.85)) drop-shadow(0 0 calc(18 * var(--u)) rgba(255, 210, 90, 0.95)); } }
.game-slots .sl-panel { z-index: 1; border-radius: calc(30 * var(--u)); }

/* − [bet] + */
.game-slots .sl-betbox {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
  font-family: Baskerville, "Libre Baskerville", "Book Antiqua", Palatino, "Palatino Linotype", "Noto Serif", "Times New Roman", serif;
  font-weight: 700;
  font-size: calc(56 * var(--u));
  line-height: 1;
  color: #FBE7B0;
  -webkit-text-stroke: calc(1.4 * var(--u)) #FBE7B0;
  text-shadow: 0 calc(2 * var(--u)) calc(3 * var(--u)) rgba(0, 0, 0, 0.8), 0 0 calc(8 * var(--u)) rgba(255, 200, 100, 0.3);
}
.game-slots .sl-step { z-index: 2; border-radius: calc(36 * var(--u)); }
.game-slots .sl-step:active:not(:disabled) { background: rgba(255, 255, 255, 0.16); }
.game-slots .sl-step:disabled { background: rgba(10, 2, 20, 0.55); }

/* SPIN: the painted button; a light overlay when pressed, dimmed while the reels run */
.game-slots .sl-spin { z-index: 2; border-radius: 50%; transition: transform 0.08s; }
.game-slots .sl-spin::before {
  content: "";
  position: absolute;
  inset: 5% 4%;
  border-radius: 50%;
  background: transparent;
  transition: background 0.15s;
}
.game-slots .sl-spin:active::before { background: rgba(255, 255, 255, 0.16); }
.game-slots .sl-spin:active { transform: scale(0.985); }
.game-slots .sl-spin.busy::before { background: rgba(10, 2, 20, 0.35); }
.game-slots .sl-spin.auto { animation: sl-auto 0.9s ease-in-out infinite alternate; }
@keyframes sl-auto { to { filter: drop-shadow(0 0 calc(22 * var(--u)) rgba(200, 120, 255, 0.9)); } }
.game-slots .sl-auto {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 17%;
  text-align: center;
  font-family: var(--font);
  font-weight: 700;
  font-size: calc(22 * var(--u));
  letter-spacing: 0.08em;
  color: #FFE9A3;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}

/* Paytable (shown in the help overlay, outside the game area) */
.sl-help p { margin: 0 0 8px; }
.sl-paytable { margin: 0 0 8px; }
.sl-paytable th { font-size: 12px; font-weight: 600; color: var(--muted); text-align: right; padding: 0 4px 2px; }
.sl-paytable td { vertical-align: middle; }
.sl-paytable td small { color: var(--muted); font-size: 12px; }
.sl-pt-sym { width: 30px; height: 26px; object-fit: contain; vertical-align: middle; margin-right: 3px; }
.sl-small { font-size: 12.5px; color: var(--muted); margin: 6px 0 !important; }
.sl-lines-help { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 0 0 8px; }
.sl-lines-help span { display: flex; flex-direction: column; align-items: center; font-size: 11px; color: var(--muted); }
.sl-lines-help i { font-style: normal; }
.sl-mini { width: 100%; max-width: 40px; }
