/* Slot machine — Vegas luxury (polished) */

@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Montserrat:wght@600;700;800&display=swap");

.slot-svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.slot-screen {
  position: relative;
  padding: 8px 12px 28px;
  overflow-x: hidden;
  background: transparent !important;
  --slot-gold: #ffd700;
  --slot-gold-soft: #ffe566;
  --slot-cyan: #22d3ee;
  --slot-violet: #a78bfa;
}

/* ── Backdrop ── */
.slot-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(ellipse 100% 70% at 50% 100%, rgba(255, 140, 0, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 130% 90% at 50% -15%, rgba(109, 40, 217, 0.55) 0%, transparent 55%),
    radial-gradient(ellipse 80% 55% at 95% 85%, rgba(37, 99, 235, 0.45) 0%, transparent 50%),
    radial-gradient(ellipse 70% 45% at 5% 75%, rgba(168, 85, 247, 0.35) 0%, transparent 45%),
    linear-gradient(175deg, #050818 0%, #12082a 38%, #0a1038 100%);
  pointer-events: none;
}

.slot-bg-rays {
  position: fixed;
  inset: -20%;
  z-index: -2;
  pointer-events: none;
  background:
    conic-gradient(from 200deg at 50% 30%,
      transparent 0deg,
      rgba(255, 215, 0, 0.04) 30deg,
      transparent 60deg,
      rgba(0, 255, 255, 0.03) 120deg,
      transparent 160deg,
      rgba(255, 140, 0, 0.04) 220deg,
      transparent 280deg);
  animation: slotRaysSpin 40s linear infinite;
  opacity: 0.9;
}

@keyframes slotRaysSpin {
  to { transform: rotate(360deg); }
}

.slot-bg-sparkles {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(255, 230, 140, 0.9), transparent),
    radial-gradient(2px 2px at 28% 62%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1.5px 1.5px at 52% 12%, rgba(255, 215, 0, 0.75), transparent),
    radial-gradient(2px 2px at 78% 42%, rgba(255, 230, 140, 0.65), transparent),
    radial-gradient(1px 1px at 88% 78%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(2px 2px at 42% 88%, rgba(255, 215, 0, 0.55), transparent);
  animation: slotSparkleDrift 16s ease-in-out infinite alternate;
}

@keyframes slotSparkleDrift {
  0% { transform: translateY(0); opacity: 0.75; }
  100% { transform: translateY(-10px); opacity: 1; }
}

.slot-bg-orbs {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.slot-bg-orbs::before,
.slot-bg-orbs::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  animation: slotOrbFloat 14s ease-in-out infinite alternate;
}

.slot-bg-orbs::before {
  width: 220px;
  height: 220px;
  left: -40px;
  top: 28%;
  background: rgba(255, 180, 0, 0.18);
}

.slot-bg-orbs::after {
  width: 180px;
  height: 180px;
  right: -30px;
  top: 12%;
  background: rgba(124, 58, 237, 0.22);
  animation-delay: -5s;
}

@keyframes slotOrbFloat {
  0% { transform: translate(0, 0) scale(1); opacity: 0.7; }
  100% { transform: translate(12px, -18px) scale(1.08); opacity: 1; }
}

/* ── Top bar ── */
.slot-top-bar {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  position: relative;
  z-index: 2;
}

.slot-top-bar--title-only {
  grid-template-columns: 40px 1fr 40px;
}

.slot-top-spacer {
  width: 40px;
  height: 40px;
}

.slot-top-title {
  text-align: center;
  font-family: "Bebas Neue", sans-serif;
  font-size: 17px;
  letter-spacing: 0.28em;
  color: rgba(255, 230, 150, 0.9);
  text-shadow:
    0 0 20px rgba(255, 215, 0, 0.35),
    0 1px 0 rgba(0, 0, 0, 0.5);
}

.slot-back-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 215, 0, 0.35);
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.12), rgba(0, 0, 0, 0.55));
  color: #ffd966;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.slot-fullscreen-btn.is-active {
  border-color: rgba(167, 139, 250, 0.75);
  color: #e9d5ff;
  box-shadow: 0 0 18px rgba(167, 139, 250, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.slot-fullscreen-btn .slot-fs-icon-shrink { display: none; }
.slot-fullscreen-btn.is-active .slot-fs-icon-expand { display: none; }
.slot-fullscreen-btn.is-active .slot-fs-icon-shrink { display: block; }

.slot-balance-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(25, 35, 75, 0.95) 0%, rgba(8, 12, 30, 0.98) 100%);
  border: 1.5px solid rgba(255, 215, 0, 0.4);
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.slot-coin-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 30%, #fff4c2, #ffd700 50%, #a67c00);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.55), inset 0 -2px 4px rgba(0, 0, 0, 0.25);
}

.slot-balance-chip strong {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

/* ── Ornate title banner ── */
.slot-title-banner {
  position: relative;
  margin: 2px auto 14px;
  max-width: 360px;
  padding: 13px 46px 15px;
  text-align: center;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 32%),
    linear-gradient(180deg, #1c1240 0%, #0b0720 100%);
  box-shadow:
    0 0 32px rgba(255, 180, 0, 0.28),
    0 10px 28px rgba(0, 0, 0, 0.5),
    inset 0 0 26px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.slot-title-banner::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff4c2, #ffd700 28%, #8b6914 58%, #ffe566 100%);
  z-index: -1;
}

.slot-title-text {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(30px, 9vw, 42px);
  letter-spacing: 0.1em;
  line-height: 1;
  background: linear-gradient(180deg, #fff 0%, #fff4c2 16%, #ffd700 44%, #ff9500 74%, #8b6914 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 #4a3000) drop-shadow(0 0 22px rgba(255, 180, 0, 0.5));
}

.slot-title-gem {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: linear-gradient(135deg, #e9d5ff, #7c3aed 60%, #4c1d95);
  border: 2px solid #ffe566;
  box-shadow: 0 0 14px rgba(167, 139, 250, 0.85), inset 0 0 5px rgba(255, 255, 255, 0.4);
}

.slot-title-flourish {
  position: absolute;
  top: 50%;
  width: 13px;
  height: 13px;
  border-radius: 4px;
  transform: translateY(-50%) rotate(45deg);
  background: linear-gradient(135deg, #d8b4fe, #7c3aed);
  box-shadow: 0 0 9px rgba(167, 139, 250, 0.75);
}

.slot-title-flourish-l { left: 16px; }
.slot-title-flourish-r { right: 16px; }

/* ── Reel side gems ── */
.slot-side-gem {
  position: absolute;
  top: 50%;
  z-index: 7;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  transform: translateY(-50%) rotate(45deg);
  background: linear-gradient(135deg, #e9d5ff, #a855f7 55%, #6b21a8);
  border: 2px solid #ffe566;
  box-shadow:
    0 0 16px rgba(168, 85, 247, 0.85),
    inset 0 0 6px rgba(255, 255, 255, 0.45);
  animation: slotGemPulse 2.4s ease-in-out infinite;
}

.slot-side-gem-l { left: -9px; }
.slot-side-gem-r { right: -9px; animation-delay: -1.2s; }

@keyframes slotGemPulse {
  0%, 100% { box-shadow: 0 0 12px rgba(168, 85, 247, 0.6), inset 0 0 6px rgba(255, 255, 255, 0.4); }
  50% { box-shadow: 0 0 22px rgba(168, 85, 247, 0.95), inset 0 0 8px rgba(255, 255, 255, 0.55); }
}

/* ── Jackpot sign ── */
.slot-jackpot-arch {
  position: relative;
  text-align: center;
  margin: 0 0 12px;
  padding-top: 0;
}

.slot-jackpot-frame {
  width: 100%;
  max-width: 340px;
  height: 52px;
  margin: 0 auto -6px;
  display: block;
}

.slot-arch-path {
  filter: drop-shadow(0 2px 6px rgba(255, 180, 0, 0.35));
}

.slot-arch-bulbs circle {
  fill: #fff8dc;
  filter: drop-shadow(0 0 4px rgba(255, 230, 120, 0.9));
  animation: slotBulbBlink 1.6s ease-in-out infinite;
}

.slot-arch-bulbs circle:nth-child(odd) { animation-delay: 0.25s; }
.slot-arch-bulbs circle:nth-child(3n) { animation-delay: 0.6s; }
.slot-arch-bulbs circle:nth-child(4n) { animation-delay: 0.9s; }

@keyframes slotBulbBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.slot-jackpot-label {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(32px, 9.5vw, 44px);
  letter-spacing: 0.16em;
  line-height: 1;
  margin: 0 0 10px;
  background: linear-gradient(180deg, #fff 0%, #fff4c2 15%, #ffd700 40%, #ff9500 72%, #8b6914 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 0 #4a3000) drop-shadow(0 0 32px rgba(255, 180, 0, 0.55));
  animation: slotJackpotLabelGlow 3s ease-in-out infinite;
}

@keyframes slotJackpotLabelGlow {
  0%, 100% { filter: drop-shadow(0 3px 0 #4a3000) drop-shadow(0 0 24px rgba(255, 180, 0, 0.4)); }
  50% { filter: drop-shadow(0 3px 0 #4a3000) drop-shadow(0 0 40px rgba(255, 215, 0, 0.65)); }
}

.slot-jackpot-box {
  position: relative;
  margin: 0 auto;
  max-width: 300px;
  padding: 16px 22px;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 28%),
    linear-gradient(180deg, #100818 0%, #020106 100%);
  border: 2px solid rgba(255, 215, 0, 0.65);
  box-shadow:
    0 0 40px rgba(255, 180, 0, 0.28),
    0 8px 32px rgba(0, 0, 0, 0.5),
    inset 0 0 36px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.slot-jackpot-box::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffd700, #8b6914, #ffe566, #c9940a);
  z-index: -1;
  opacity: 0.75;
}

.slot-jackpot-shine {
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  animation: slotJackpotShine 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes slotJackpotShine {
  0%, 100% { left: -60%; }
  50% { left: 120%; }
}

.slot-jackpot-value {
  position: relative;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(28px, 8vw, 36px);
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.06em;
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.5),
    0 0 24px rgba(255, 215, 0, 0.35);
  font-variant-numeric: tabular-nums;
}

.slot-jackpot-box.jackpot-pulse .slot-jackpot-value {
  animation: slotJackpotPulse 0.55s ease 3;
}

@keyframes slotJackpotPulse {
  0%, 100% { transform: scale(1); color: #fff; }
  50% { transform: scale(1.07); color: #ffd966; text-shadow: 0 0 28px rgba(255, 215, 0, 0.9); }
}

.slot-jackpot-hint {
  font-size: 11px;
  margin-top: 8px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

.slot-jp-contrib-hint {
  margin: 4px 0 0;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.38);
  text-align: center;
}

/* ── Meta ── */
.slot-meta-row {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.slot-tickets-hint {
  margin: -6px 0 16px;
}

.slot-meta-pill {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, transparent 50%),
    linear-gradient(180deg, rgba(35, 45, 100, 0.8) 0%, rgba(12, 18, 45, 0.92) 100%);
  border: 1px solid rgba(255, 215, 0, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 6px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(6px);
}

.slot-meta-icon {
  font-size: 22px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.slot-meta-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-align: left;
}

.slot-meta-text span {
  font-family: "Montserrat", sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.slot-meta-text strong {
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: #ffd966;
}

/* ── Bet picker ── */
.slot-bet-panel {
  margin-bottom: 14px;
  padding: 16px;
  border-radius: 20px;
  background:
    linear-gradient(155deg, rgba(255, 215, 0, 0.1) 0%, transparent 42%),
    linear-gradient(180deg, rgba(30, 42, 95, 0.85) 0%, rgba(8, 12, 32, 0.95) 100%);
  border: 1px solid rgba(255, 215, 0, 0.32);
  box-shadow:
    0 10px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.slot-bet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.slot-bet-label {
  font-family: "Bebas Neue", sans-serif;
  font-size: 16px;
  letter-spacing: 0.12em;
  color: #ffd966;
}

.slot-bet-jp-hint {
  font-family: "Montserrat", sans-serif;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
}

.slot-bet-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.slot-bet-step {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 215, 0, 0.45);
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.45));
  color: #ffd966;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.12);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.slot-bet-step:active:not(:disabled) {
  transform: scale(0.92);
}

.slot-bet-step:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.slot-bet-display {
  min-width: 120px;
  padding: 10px 18px;
  border-radius: 14px;
  text-align: center;
  background: linear-gradient(180deg, #0a0818 0%, #030208 100%);
  border: 2px solid rgba(255, 215, 0, 0.45);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 215, 0, 0.1);
}

.slot-bet-display strong {
  font-family: "Montserrat", sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.slot-bet-display span {
  margin-left: 4px;
  font-size: 14px;
  color: #ffd966;
}

.slot-bet-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.slot-bet-chip {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.65);
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.slot-bet-chip.active {
  color: #1a0f00;
  border-color: #ffe566;
  background: linear-gradient(180deg, #fff4c2 0%, #ffd700 45%, #c9940a 100%);
  box-shadow:
    0 0 22px rgba(255, 215, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transform: translateY(-1px);
}

.slot-bet-chip:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ── Tabs ── */
.slot-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.slot-tab {
  flex: 1;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.5);
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.slot-tab.active {
  background: linear-gradient(180deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 120, 0, 0.06) 100%);
  border-color: rgba(255, 215, 0, 0.5);
  color: #ffd966;
  box-shadow: 0 0 24px rgba(255, 215, 0, 0.12);
}

.slot-panel[hidden] { display: none !important; }

/* ── Machine frame ── */
.slot-machine-outer {
  position: relative;
  padding: 16px;
  border-radius: 30px;
  background:
    linear-gradient(145deg,
      #fff8dc 0%, #ffe566 8%, #ffd700 18%, #b8860b 32%,
      #ffd700 48%, #8b6914 64%, #ffd700 80%, #c9940a 100%);
  box-shadow:
    0 0 60px rgba(255, 215, 0, 0.35),
    0 24px 56px rgba(0, 0, 0, 0.6),
    inset 0 3px 8px rgba(255, 255, 255, 0.55),
    inset 0 -5px 10px rgba(0, 0, 0, 0.25);
  margin-bottom: 14px;
  transition: box-shadow 0.35s ease;
}

.slot-machine-outer.slot-is-spinning {
  box-shadow:
    0 0 80px rgba(255, 215, 0, 0.45),
    0 0 48px rgba(34, 211, 238, 0.2),
    0 24px 56px rgba(0, 0, 0, 0.6),
    inset 0 3px 8px rgba(255, 255, 255, 0.55);
  animation: slotFramePulse 1.2s ease-in-out infinite;
}

@keyframes slotFramePulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.06); }
}

.slot-machine-outer::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 30px;
  padding: 2px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), transparent 40%, rgba(255, 215, 0, 0.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 5;
}

.slot-machine-outer::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  pointer-events: none;
}

.slot-corner {
  position: absolute;
  width: 44px;
  height: 44px;
  z-index: 4;
  pointer-events: none;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

.slot-corner-tl { top: 8px; left: 8px; }
.slot-corner-tr { top: 8px; right: 8px; }
.slot-corner-bl { bottom: 8px; left: 8px; }
.slot-corner-br { bottom: 8px; right: 8px; }

.slot-machine {
  position: relative;
  padding: 14px 12px 12px;
  border-radius: 22px;
  background:
    radial-gradient(ellipse 90% 50% at 50% -5%, rgba(167, 139, 250, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(34, 211, 238, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, #241050 0%, #12082a 52%, #060414 100%);
  box-shadow: inset 0 8px 28px rgba(0, 0, 0, 0.7);
}

.slot-machine-cap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 215, 0, 0.12) 0%, rgba(0, 0, 0, 0.2) 100%);
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.slot-cap-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffd700;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.8);
  animation: slotBulbBlink 1.2s ease-in-out infinite;
}

.slot-cap-dot:last-child { animation-delay: 0.5s; }

.slot-cap-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 14px;
  letter-spacing: 0.2em;
  color: rgba(255, 215, 0, 0.85);
}

/* ── Reels ── */
.slot-reels-wrap {
  position: relative;
  padding: 12px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, transparent 35%),
    linear-gradient(180deg, #352060 0%, #1a0e38 45%, #0a0618 100%);
  border: 2px solid rgba(255, 215, 0, 0.35);
  box-shadow:
    inset 0 0 48px rgba(0, 0, 0, 0.65),
    inset 0 2px 0 rgba(255, 255, 255, 0.06),
    0 0 28px rgba(124, 58, 237, 0.2);
  margin-bottom: 14px;
}

.slot-reels-wrap::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 14px;
  pointer-events: none;
  z-index: 5;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.35) 0%,
    transparent 22%,
    transparent 78%,
    rgba(0, 0, 0, 0.35) 100%
  );
}

.slot-reels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  height: 88px;
  overflow: hidden;
  border-radius: 14px;
  background: #020106;
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.8);
}

.slot-reel-col {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.4) 0%, transparent 15%, transparent 85%, rgba(0, 0, 0, 0.4) 100%),
    linear-gradient(180deg, #080612 0%, #0f0a22 50%, #080612 100%);
}

.slot-reel-col:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 8%;
  right: 0;
  width: 2px;
  height: 84%;
  background: linear-gradient(180deg, transparent, rgba(255, 215, 0, 0.35), transparent);
  pointer-events: none;
  z-index: 2;
}

.slot-reel-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  will-change: transform;
}

.slot-reel-symbol {
  width: 100%;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 4px 6px;
}

.slot-symbol-stage {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.28) 0%, transparent 40%),
    radial-gradient(circle at 50% 110%, rgba(34, 211, 238, 0.35) 0%, transparent 55%),
    radial-gradient(circle at 50% 50%, #2a1550 0%, #0a0618 100%);
  border: 2px solid rgba(255, 215, 0, 0.4);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.6),
    inset 0 3px 12px rgba(255, 255, 255, 0.1),
    inset 0 -6px 14px rgba(0, 0, 0, 0.5),
    0 0 16px rgba(167, 139, 250, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.slot-symbol-emoji {
  font-size: 40px;
  line-height: 1;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.55));
  transition: transform 0.25s ease, filter 0.25s ease;
}

.slot-symbol-img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 50%;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.55));
  pointer-events: none;
  user-select: none;
}

.slot-pay-icons {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.slot-pay-icon {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 8px;
  vertical-align: middle;
  margin-right: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.slot-reel-col.spinning-fast .slot-symbol-stage {
  animation: slotStageSpin 0.1s linear infinite;
  border-color: rgba(34, 211, 238, 0.55);
  box-shadow:
    0 0 20px rgba(34, 211, 238, 0.35),
    inset 0 0 12px rgba(34, 211, 238, 0.15);
}

@keyframes slotStageSpin {
  0%, 100% { transform: scale(0.95); opacity: 0.85; }
  50% { transform: scale(1.02); opacity: 1; }
}

.slot-reel-col.spinning .slot-reel-strip {
  transition: transform 1.8s cubic-bezier(0.12, 0.85, 0.18, 1);
}

.slot-reel-window {
  position: absolute;
  inset: 76px 0;
  pointer-events: none;
  z-index: 3;
  border-top: 2px solid rgba(0, 255, 255, 0.4);
  border-bottom: 2px solid rgba(0, 255, 255, 0.4);
  background: linear-gradient(180deg,
    rgba(0, 255, 255, 0.08) 0%,
    transparent 25%,
    transparent 75%,
    rgba(0, 255, 255, 0.08) 100%);
  box-shadow:
    inset 0 10px 20px rgba(0, 255, 255, 0.06),
    inset 0 -10px 20px rgba(0, 255, 255, 0.06);
}

.slot-win-line {
  position: absolute;
  left: 5%;
  right: 5%;
  top: 50%;
  height: 4px;
  transform: translateY(-50%);
  z-index: 6;
  pointer-events: none;
  border-radius: 4px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 215, 0, 0.3) 15%,
    #ffe566 35%,
    #fff 50%,
    #ffe566 65%,
    rgba(255, 215, 0, 0.3) 85%,
    transparent 100%);
  box-shadow:
    0 0 16px rgba(255, 215, 0, 0.6),
    0 0 32px rgba(255, 215, 0, 0.25);
  opacity: 0.65;
}

.slot-reel-col.winning .slot-symbol-stage {
  animation: slotSymbolWin 0.5s ease 4;
  border-color: rgba(255, 215, 0, 0.85);
}

.slot-reel-col.winning .slot-symbol-emoji {
  animation: slotEmojiWin 0.5s ease 4;
}

@keyframes slotSymbolWin {
  0%, 100% { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), inset 0 2px 8px rgba(255, 255, 255, 0.06); }
  50% {
    box-shadow:
      0 0 24px rgba(255, 215, 0, 0.7),
      0 0 40px rgba(0, 255, 255, 0.3),
      inset 0 0 16px rgba(255, 215, 0, 0.2);
    transform: scale(1.08);
  }
}

@keyframes slotEmojiWin {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.55)); }
  50% { transform: scale(1.2); filter: drop-shadow(0 0 16px rgba(255, 215, 0, 0.9)); }
}

.slot-panel:has(.slot-reel-col.winning) .slot-win-line {
  opacity: 1;
  animation: slotWinLineFlash 0.5s ease 4;
}

@keyframes slotWinLineFlash {
  0%, 100% { opacity: 0.55; box-shadow: 0 0 12px rgba(255, 215, 0, 0.5); }
  50% { opacity: 1; box-shadow: 0 0 24px rgba(255, 215, 0, 0.9); }
}

/* ── Footer stats bar (balance / bet / win) ── */
.slot-stats-bar {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 8px;
  margin: 12px 0 8px;
  padding: 12px 10px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 215, 0, 0.08) 0%, transparent 40%),
    linear-gradient(180deg, rgba(18, 24, 58, 0.92) 0%, rgba(6, 8, 22, 0.98) 100%);
  border: 1.5px solid rgba(255, 215, 0, 0.35);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.slot-stat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

.slot-stat-bet {
  gap: 4px;
}

.slot-stat-icon {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

.slot-stat-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.slot-stat-label {
  font-family: "Montserrat", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.slot-stat-body strong {
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.slot-stat-win .slot-stat-body strong {
  color: #4ade80;
}

.slot-stat-unit {
  font-size: 10px;
  color: rgba(255, 215, 0, 0.75);
}

.slot-stat-step {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 215, 0, 0.45);
  background: rgba(0, 0, 0, 0.35);
  color: #ffd966;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.slot-stat-step:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.slot-bet-chips--footer {
  margin: 0 0 10px;
  justify-content: center;
}

/* ── Pedestal ── */
.slot-pedestal {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  padding: 18px 8px 12px;
  border-radius: 20px 20px 16px 16px;
  background:
    linear-gradient(180deg, rgba(59, 130, 246, 0.22) 0%, rgba(30, 58, 138, 0.38) 40%, rgba(15, 30, 70, 0.65) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 2px 14px rgba(255, 255, 255, 0.07),
    0 10px 32px rgba(0, 0, 0, 0.4);
}

.slot-pedestal-glow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 48px;
  background: radial-gradient(ellipse, rgba(34, 211, 238, 0.28) 0%, transparent 70%);
  pointer-events: none;
  animation: slotPedestalGlow 2.5s ease-in-out infinite;
}

@keyframes slotPedestalGlow {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.slot-side-btn {
  flex: 0 0 auto;
  width: 68px;
  padding: 0 0 8px;
  border: none;
  background: none;
  font-family: "Montserrat", sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.85);
}

.slot-side-ring {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: transform 0.15s ease;
}

.slot-auto-btn.is-active .slot-side-ring {
  color: #fff;
  background: radial-gradient(circle at 35% 30%, rgba(167, 139, 250, 0.55), rgba(88, 28, 135, 0.95));
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 24px rgba(167, 139, 250, 0.65), inset 0 2px 6px rgba(255, 255, 255, 0.2);
  animation: slotAutoPulse 1.2s ease-in-out infinite;
}

@keyframes slotAutoPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.slot-auto-btn .slot-side-ring {
  color: #c4b5fd;
  background: radial-gradient(circle at 35% 30%, rgba(167, 139, 250, 0.28), rgba(38, 18, 70, 0.92));
  border: 2px solid rgba(167, 139, 250, 0.6);
  box-shadow: 0 0 20px rgba(167, 139, 250, 0.32), inset 0 2px 6px rgba(255, 255, 255, 0.12);
}

.slot-boost-btn .slot-side-ring {
  color: #ffd966;
  background: radial-gradient(circle at 35% 30%, rgba(255, 215, 0, 0.24), rgba(58, 38, 0, 0.92));
  border: 2px solid rgba(255, 215, 0, 0.6);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.32), inset 0 2px 6px rgba(255, 255, 255, 0.12);
}

.slot-gamble-btn .slot-gamble-ring {
  position: relative;
  overflow: hidden;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.28), inset 0 2px 6px rgba(255, 255, 255, 0.12);
}

.slot-gamble-half {
  position: absolute;
  inset: 0;
}

.slot-gamble-half-red {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 50%, transparent 50%);
}

.slot-gamble-half-black {
  background: linear-gradient(315deg, #0f172a 0%, #1e293b 50%, transparent 50%);
}

.slot-gamble-x {
  position: relative;
  z-index: 1;
  font-size: 14px;
  font-weight: 900;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.slot-gamble-btn:not(:disabled) .slot-gamble-ring {
  animation: slotGamblePulse 1.6s ease-in-out infinite;
}

@keyframes slotGamblePulse {
  0%, 100% { box-shadow: 0 0 16px rgba(220, 38, 38, 0.35), 0 0 8px rgba(15, 23, 42, 0.4); }
  50% { box-shadow: 0 0 24px rgba(220, 38, 38, 0.55), 0 0 14px rgba(15, 23, 42, 0.55); }
}

.slot-side-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.slot-spin-wrap {
  position: relative;
  flex: 1;
  max-width: 148px;
  display: flex;
  justify-content: center;
  padding-bottom: 6px;
}

.slot-spin-halo {
  position: absolute;
  inset: -8px -4px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 255, 255, 0.25) 0%, transparent 65%);
  animation: slotHaloPulse 2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes slotHaloPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.slot-spin-btn {
  position: relative;
  width: 100%;
  min-height: 80px;
  padding: 14px 20px;
  border: none;
  cursor: pointer;
  clip-path: polygon(10% 0%, 90% 0%, 100% 50%, 90% 100%, 10% 100%, 0% 50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, transparent 32%),
    linear-gradient(180deg, #0891b2 0%, #0e7490 40%, #064e56 70%, #042f2e 100%);
  box-shadow:
    0 0 40px rgba(34, 211, 238, 0.5),
    0 10px 28px rgba(0, 0, 0, 0.5),
    inset 0 2px 0 rgba(255, 255, 255, 0.25),
    inset 0 -5px 10px rgba(0, 0, 0, 0.35);
  transition: transform 0.12s ease, filter 0.12s ease;
}

.slot-spin-btn::before {
  content: "";
  position: absolute;
  inset: -4px;
  clip-path: polygon(10% 0%, 90% 0%, 100% 50%, 90% 100%, 10% 100%, 0% 50%);
  background: linear-gradient(180deg, #67e8f9 0%, #22d3ee 45%, #0891b2 100%);
  z-index: -1;
  animation: slotSpinBorderGlow 2s ease-in-out infinite;
}

@keyframes slotSpinBorderGlow {
  0%, 100% { opacity: 1; filter: brightness(1); }
  50% { opacity: 0.85; filter: brightness(1.15); }
}

.slot-spin-main {
  font-family: "Bebas Neue", sans-serif;
  font-size: 34px;
  letter-spacing: 0.12em;
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 16px rgba(0, 255, 255, 0.7), 0 2px 0 rgba(0, 0, 0, 0.3);
}

.slot-spin-sub {
  font-family: "Montserrat", sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(167, 243, 252, 0.85);
}

.slot-spin-btn:active:not(:disabled) {
  transform: scale(0.96);
}

.slot-spin-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.4);
}

.slot-spin-btn:disabled + .slot-spin-halo,
.slot-spin-wrap:has(.slot-spin-btn:disabled) .slot-spin-halo {
  opacity: 0;
}

.slot-cost-label {
  text-align: center;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.42);
  margin-top: 10px;
}

/* ── Result ── */
.slot-result {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 12px 0;
  padding: 10px 16px;
  border-radius: 14px;
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.slot-result.win {
  color: #ffd966;
  background: linear-gradient(180deg, rgba(255, 215, 0, 0.12) 0%, rgba(255, 140, 0, 0.04) 100%);
  border-color: rgba(255, 215, 0, 0.35);
  box-shadow: 0 0 28px rgba(255, 215, 0, 0.15);
  text-shadow: 0 0 16px rgba(255, 215, 0, 0.5);
  animation: slotResultPop 0.4s ease;
}

@keyframes slotResultPop {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.slot-result.error {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.25);
}

.slot-result.jackpot-win {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(22px, 6vw, 28px);
  letter-spacing: 0.08em;
  color: #ffd700;
  background:
    linear-gradient(180deg, rgba(255, 215, 0, 0.18) 0%, rgba(255, 100, 0, 0.06) 100%);
  border-color: rgba(255, 215, 0, 0.55);
  box-shadow:
    0 0 40px rgba(255, 215, 0, 0.25),
    inset 0 0 24px rgba(255, 215, 0, 0.08);
  animation: slotJackpotPulse 0.5s ease 5;
}

/* ── Paytable ── */
.slot-paytable {
  margin-top: 6px;
  width: 90%;
  max-width: 90vw;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 215, 0, 0.15);
  padding: 0 14px 10px;
}

.slot-paytable summary {
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  padding: 12px 0;
  list-style: none;
}

.slot-paytable summary::-webkit-details-marker { display: none; }

.slot-paytable table {
  width: 100%;
  font-size: 11px;
  border-collapse: collapse;
}

.slot-paytable th,
.slot-paytable td {
  padding: 7px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
  color: rgba(255, 255, 255, 0.75);
}

.slot-paytable th { color: #ffd966; font-weight: 700; }

/* ── Shop ── */
.slot-shop-lead {
  margin-bottom: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.slot-shop-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.slot-shop-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, transparent 50%),
    linear-gradient(135deg, rgba(35, 45, 100, 0.55) 0%, rgba(12, 18, 45, 0.75) 100%);
  border: 1px solid rgba(255, 215, 0, 0.2);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
}

.slot-shop-emoji {
  font-size: 36px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.12) 0%, rgba(0, 0, 0, 0.3) 100%);
  border: 1px solid rgba(255, 215, 0, 0.2);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.slot-shop-info { flex: 1; min-width: 0; }

.slot-shop-info strong {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #fff;
}

.slot-shop-info small {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  line-height: 1.35;
}

.slot-shop-buy {
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 215, 0, 0.45);
  background: linear-gradient(180deg, rgba(255, 215, 0, 0.22) 0%, rgba(255, 140, 0, 0.08) 100%);
  color: #ffd966;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.12);
}

.slot-shop-buy:disabled,
.slot-shop-buy-pending {
  opacity: 0.55;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.45);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

/* ── Bonus overlay ── */
.slot-bonus-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: radial-gradient(ellipse at center, rgba(40, 25, 80, 0.96) 0%, rgba(0, 0, 0, 0.94) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.slot-bonus-overlay[hidden] { display: none !important; }

.slot-bonus-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 36px;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  background: linear-gradient(180deg, #ffd966, #ff8c00);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 16px rgba(255, 215, 0, 0.5));
}

.slot-bonus-accum {
  font-size: 15px;
  font-weight: 700;
  color: #ffd966;
  margin: 0 0 8px;
}

.slot-fc-lives {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 4px 0 10px;
  min-height: 28px;
}

.slot-fc-life {
  font-size: 22px;
  line-height: 1;
  opacity: 0.35;
  filter: grayscale(0.6);
  transition: opacity 0.25s, transform 0.25s;
}

.slot-fc-life.is-active {
  opacity: 1;
  filter: none;
  transform: scale(1.08);
}

.slot-fc-stage {
  position: relative;
  width: min(92vw, 380px);
  aspect-ratio: 1;
  margin: 8px auto 16px;
}

.slot-fc-perimeter {
  position: absolute;
  inset: 0;
}

.slot-fc-cell {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 2px solid rgba(255, 215, 0, 0.35);
  background: linear-gradient(180deg, rgba(60, 35, 100, 0.95), rgba(20, 10, 40, 0.98));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.slot-fc-cell img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.slot-fc-cell.is-exit {
  border-color: rgba(255, 80, 80, 0.7);
  background: linear-gradient(180deg, rgba(120, 20, 30, 0.95), rgba(40, 8, 12, 0.98));
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #ffb4b4;
}

.slot-fc-cell.is-active {
  border-color: #ffd966;
  box-shadow: 0 0 22px rgba(255, 215, 0, 0.55);
  transform: translate(-50%, -50%) scale(1.12);
  z-index: 3;
}

.slot-fc-cell.is-win {
  border-color: #7dff9a;
  box-shadow: 0 0 24px rgba(80, 255, 140, 0.5);
}

.slot-fc-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 58%;
  padding: 10px;
  border-radius: 16px;
  border: 2px solid rgba(255, 215, 0, 0.45);
  background: rgba(10, 6, 24, 0.88);
  box-shadow: inset 0 0 24px rgba(255, 215, 0, 0.08);
}

.slot-fc-mini-reels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.slot-fc-mini-reel {
  aspect-ratio: 1;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.slot-fc-mini-symbol {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slot-fc-mini-reel img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  transition: transform 0.08s linear, filter 0.08s linear;
}

.slot-fc-mini-reel.spinning-fast {
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: inset 0 0 12px rgba(34, 211, 238, 0.12);
}

.slot-fc-mini-reel.spinning-fast .slot-fc-mini-symbol img {
  animation: slot-fc-mini-blur 0.14s linear infinite;
}

@keyframes slot-fc-mini-blur {
  0% { transform: translateY(-14%) scale(0.92); opacity: 0.65; }
  50% { transform: translateY(14%) scale(1.04); opacity: 1; }
  100% { transform: translateY(-14%) scale(0.92); opacity: 0.65; }
}

.slot-fc-mini-reel.is-landed {
  border-color: rgba(255, 215, 0, 0.45);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.2);
}

.slot-fc-pointer {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffd966;
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.9);
  transform: translate(-50%, -50%);
  z-index: 4;
  pointer-events: none;
}

.slot-fc-spin-btn {
  min-width: 180px;
  padding: 12px 28px;
  border-radius: 999px;
  border: none;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: #1a0a00;
  background: linear-gradient(180deg, #ffe08a, #ff9a1a);
  box-shadow: 0 8px 24px rgba(255, 160, 0, 0.35);
  cursor: pointer;
}

.slot-fc-spin-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

/* ── Payout choice (≥5000) ── */
.slot-payout-choice-overlay {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: radial-gradient(ellipse at center, rgba(20, 10, 50, 0.96), rgba(0, 0, 0, 0.94));
}

.slot-payout-choice-overlay[hidden] { display: none !important; }

.slot-payout-choice-panel {
  width: min(100%, 360px);
  padding: 22px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 215, 0, 0.35);
  background: linear-gradient(180deg, rgba(40, 24, 80, 0.95), rgba(12, 8, 28, 0.98));
  text-align: center;
}

.slot-payout-choice-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 28px;
  letter-spacing: 0.06em;
  margin: 0 0 8px;
  color: #ffd966;
}

.slot-payout-choice-pot {
  font-size: 22px;
  margin: 0 0 12px;
}

.slot-payout-choice-pot strong {
  font-size: 32px;
  color: #fff;
}

.slot-payout-choice-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.slot-payout-choice-btn {
  border: none;
  border-radius: 14px;
  padding: 14px 12px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
}

.slot-payout-choice-live {
  background: linear-gradient(180deg, #f87171, #dc2626);
  color: #fff;
}

.slot-payout-choice-tokens {
  background: linear-gradient(180deg, #ffe566, #d4af37);
  color: #1a0f00;
}

/* ── Entry button (legacy) ── */
.slot-entry-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.12) 0%, rgba(30, 40, 90, 0.4) 100%);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.slot-entry-icon { font-size: 28px; }
.slot-entry-btn span:last-child { margin-left: auto; opacity: 0.5; }

/* ── Intro video ── */
.slot-intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

body.slot-terms-reading .sheet {
  z-index: 310;
}

.slot-intro-overlay[hidden] {
  display: none !important;
}

.slot-intro-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.slot-free-hint {
  margin: 0 12px 8px;
  text-align: center;
  font-size: 12px;
  color: #a7f3d0;
}

.slot-free-hint[hidden] {
  display: none !important;
}

.slot-mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 12px 8px;
}

.slot-mode-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 8px;
  border-radius: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 10, 28, 0.75);
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, color 0.2s;
}

.slot-mode-btn-title {
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.slot-mode-btn-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
}

.slot-mode-btn-sub strong {
  color: #a7f3d0;
  font-weight: 800;
}

.slot-mode-btn.active {
  border-color: rgba(255, 215, 0, 0.65);
  background: linear-gradient(180deg, rgba(255, 215, 0, 0.16) 0%, rgba(18, 24, 58, 0.92) 100%);
  color: #fff;
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.18);
}

.slot-mode-btn[data-spin-mode="free"].active {
  border-color: rgba(52, 211, 153, 0.65);
  background: linear-gradient(180deg, rgba(52, 211, 153, 0.14) 0%, rgba(18, 24, 58, 0.92) 100%);
  box-shadow: 0 0 18px rgba(52, 211, 153, 0.16);
}

.slot-mode-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.slot-mode-hint {
  margin: 0 12px 10px;
  text-align: center;
  font-size: 11px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.5);
}

.slot-skin-stage.slot-mode-free .slot-bet-chips--footer,
.slot-skin-stage.slot-mode-free .slot-stat-bet .slot-stat-step {
  visibility: hidden;
  pointer-events: none;
}

.slot-skin-stage.slot-mode-free .slot-stat-bet .slot-stat-body strong {
  color: #6ee7b7;
}

.slot-skin-stage.slot-mode-free .slot-spin-btn {
  box-shadow:
    0 0 24px rgba(52, 211, 153, 0.35),
    0 8px 28px rgba(0, 0, 0, 0.45);
}

.slot-mute-btn.is-muted .slot-mute-icon-on { display: none; }
.slot-mute-btn:not(.is-muted) .slot-mute-icon-off { display: none; }

.slot-intro-skip {
  position: absolute;
  top: max(12px, env(safe-area-inset-top, 12px));
  right: max(12px, env(safe-area-inset-right, 12px));
  z-index: 1;
  padding: 10px 18px;
  border: 1px solid rgba(255, 215, 0, 0.55);
  border-radius: 999px;
  background: rgba(10, 6, 24, 0.72);
  backdrop-filter: blur(8px);
  color: #ffd966;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.slot-terms-panel {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px max(16px, env(safe-area-inset-right, 16px)) max(20px, env(safe-area-inset-bottom, 20px));
  background: radial-gradient(circle at 50% 20%, rgba(88, 28, 135, 0.35), rgba(0, 0, 0, 0.92) 65%);
}

.slot-terms-panel[hidden] {
  display: none !important;
}

.slot-terms-card {
  width: min(100%, 380px);
  padding: 22px 20px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 215, 0, 0.35);
  background: rgba(12, 8, 28, 0.92);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
  text-align: center;
}

.slot-terms-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 6px 12px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #dc2626, #991b1b);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.06em;
}

.slot-terms-title {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 800;
  color: #fff7d6;
}

.slot-terms-lead {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
}

.slot-terms-read {
  width: 100%;
  margin-bottom: 16px;
}

.slot-terms-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  text-align: left;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
}

.slot-terms-check input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: #ffd966;
}

.slot-terms-accept {
  width: 100%;
}

.slot-terms-accept:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.slot-symbol-stage.slot-card-red {
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.22) 0%, transparent 40%),
    radial-gradient(circle at 50% 110%, rgba(239, 68, 68, 0.45) 0%, transparent 55%),
    linear-gradient(145deg, #7f1d1d 0%, #450a0a 55%, #1a0505 100%);
  border-color: rgba(248, 113, 113, 0.65);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.6),
    inset 0 3px 12px rgba(255, 255, 255, 0.08),
    0 0 18px rgba(239, 68, 68, 0.35);
}

.slot-symbol-stage.slot-card-black {
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 50% 110%, rgba(100, 116, 139, 0.35) 0%, transparent 55%),
    linear-gradient(145deg, #1e293b 0%, #0f172a 55%, #020617 100%);
  border-color: rgba(148, 163, 184, 0.55);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.65),
    inset 0 3px 12px rgba(255, 255, 255, 0.06),
    0 0 14px rgba(15, 23, 42, 0.8);
}

.slot-color-hint {
  margin: -4px 16px 6px;
  font-size: 11px;
  text-align: center;
  color: rgba(255, 214, 102, 0.75);
  letter-spacing: 0.02em;
}

.slot-color-note {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 214, 102, 0.7);
  letter-spacing: 0.02em;
}

/* ── Gamble stage (inline in machine — no full-screen overlay) ── */
.slot-machine--gamble .slot-pedestal,
.slot-machine--gamble .slot-color-hint {
  opacity: 0.35;
  pointer-events: none;
  filter: saturate(0.7);
  transition: opacity 0.25s ease, filter 0.25s ease;
}

.slot-machine--gamble .slot-reels-wrap {
  filter: brightness(0.72) saturate(0.85);
  transition: filter 0.25s ease;
}

.slot-gamble-stage {
  position: relative;
  z-index: 6;
  margin: 8px 10px 0;
  animation: slotGambleStageIn 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.slot-gamble-stage[hidden] {
  display: none !important;
}

.slot-skin .slot-gamble-stage {
  position: absolute;
  top: 52%;
  left: 6%;
  right: 6%;
  z-index: 26;
}

@keyframes slotGambleStageIn {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.slot-gamble-stage-frame {
  position: relative;
  overflow: hidden;
  padding: 14px 12px 12px;
  border-radius: 18px;
  border: 2px solid rgba(255, 215, 0, 0.55);
  background:
    radial-gradient(ellipse at 50% -20%, rgba(255, 215, 0, 0.22), transparent 58%),
    radial-gradient(ellipse at 80% 100%, rgba(220, 38, 38, 0.12), transparent 45%),
    linear-gradient(165deg, #4a2a7a 0%, #241045 42%, #12082a 100%);
  box-shadow:
    0 0 36px rgba(255, 215, 0, 0.22),
    0 12px 28px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.slot-gamble-stage-sparkles {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.14) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 18%, rgba(255, 215, 0, 0.25) 0 1.5px, transparent 3px),
    radial-gradient(circle at 88% 62%, rgba(255, 255, 255, 0.1) 0 1px, transparent 2px);
  opacity: 0.85;
}

.slot-gamble-stage-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.slot-gamble-stage-x {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: "Bebas Neue", sans-serif;
  font-size: 28px;
  letter-spacing: 0.04em;
  color: #fff;
  background: conic-gradient(from 200deg, #ef4444 0 50%, #0f172a 50% 100%);
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 22px rgba(255, 215, 0, 0.35);
  animation: slotGambleXSpin 2.4s ease-in-out infinite;
}

@keyframes slotGambleXSpin {
  0%, 100% { transform: scale(1); box-shadow: 0 0 18px rgba(255, 215, 0, 0.3); }
  50% { transform: scale(1.06); box-shadow: 0 0 28px rgba(255, 215, 0, 0.55); }
}

.slot-gamble-stage-head {
  flex: 1;
  text-align: left;
}

.slot-gamble-stage-title {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: 22px;
  letter-spacing: 0.08em;
  color: #ffd966;
  line-height: 1.1;
}

.slot-gamble-stage-msg {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.78);
}

.slot-gamble-pot {
  margin: 0;
  font-size: 26px;
  color: #fff;
  line-height: 1.1;
}

.slot-gamble-pot strong {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  color: #ffe566;
  text-shadow: 0 0 18px rgba(255, 215, 0, 0.35);
}

.slot-gamble-rounds {
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.slot-gamble-card {
  width: 80px;
  height: 108px;
  margin: 0 auto 12px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 42px;
  font-weight: 700;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5);
  animation: slotGambleFlip 0.45s ease;
}

.slot-gamble-card-red {
  background: linear-gradient(145deg, #ef4444, #991b1b);
  color: #fecaca;
}

.slot-gamble-card-black {
  background: linear-gradient(145deg, #475569, #0f172a);
  color: #e2e8f0;
}

@keyframes slotGambleFlip {
  from { transform: rotateY(90deg) scale(0.85); opacity: 0; }
  to { transform: rotateY(0) scale(1); opacity: 1; }
}

.slot-gamble-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.slot-gamble-take {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 215, 0, 0.65);
  background: linear-gradient(180deg, rgba(255, 215, 0, 0.28), rgba(255, 140, 0, 0.12));
  color: #fff7cc;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255, 215, 0, 0.18);
}

.slot-gamble-pick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.slot-gamble-risk {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 64px;
  padding: 10px 8px;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.slot-gamble-suit {
  font-size: 26px;
  line-height: 1;
}

.slot-gamble-red {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.55), rgba(127, 29, 29, 0.85));
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.25);
}

.slot-gamble-black {
  background: linear-gradient(180deg, rgba(71, 85, 105, 0.65), rgba(15, 23, 42, 0.95));
  box-shadow: 0 0 20px rgba(15, 23, 42, 0.45);
}

.slot-gamble-red:active,
.slot-gamble-black:active,
.slot-gamble-take:active {
  transform: scale(0.97);
}

.slot-gamble-take:disabled,
.slot-gamble-risk:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
}

/* Win offer banner — after spin */
.slot-gamble-offer {
  position: relative;
  overflow: hidden;
  margin-top: 12px;
  padding: 14px 14px 12px;
  border-radius: 16px;
  border: 2px solid rgba(255, 215, 0, 0.5);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255, 215, 0, 0.18), transparent 55%),
    linear-gradient(135deg, #3b2168 0%, #1a0f32 100%);
  box-shadow: 0 8px 28px rgba(255, 215, 0, 0.15);
  animation: slotGambleOfferIn 0.4s ease;
}

@keyframes slotGambleOfferIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.slot-gamble-offer-shine {
  position: absolute;
  inset: -40% auto -40% -30%;
  width: 45%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  transform: skewX(-18deg);
  animation: slotGambleOfferShine 2.8s ease-in-out infinite;
}

@keyframes slotGambleOfferShine {
  0%, 100% { transform: translateX(-120%) skewX(-18deg); }
  45%, 55% { transform: translateX(280%) skewX(-18deg); }
}

.slot-gamble-offer-body {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.slot-gamble-offer-x {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-family: "Bebas Neue", sans-serif;
  font-size: 24px;
  color: #fff;
  background: conic-gradient(from 210deg, #ef4444 0 50%, #0f172a 50% 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.25);
}

.slot-gamble-offer-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.slot-gamble-offer-copy strong {
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #ffd966;
}

.slot-gamble-offer-copy span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.35;
}

.slot-gamble-offer-copy b {
  color: #ffe566;
}

.slot-gamble-offer-btns {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 8px;
}

.slot-gamble-offer-skip {
  padding: 11px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.25);
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.slot-gamble-offer-btn {
  padding: 11px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 215, 0, 0.65);
  background: linear-gradient(180deg, #ffd966, #ff8c00);
  color: #2a1200;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 140, 0, 0.35);
}

.slot-gamble-offer-skip:active,
.slot-gamble-offer-btn:active {
  transform: scale(0.98);
}

/* ── Stats panel ── */
.slot-stats-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 4px 0 12px;
}

.slot-stats-block {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 215, 0, 0.22);
  background: rgba(10, 6, 24, 0.55);
}

.slot-stats-block h3 {
  margin: 0 0 10px;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  color: #ffd966;
}

.slot-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
}

.slot-stats-grid div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.slot-stats-grid span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

.slot-stats-grid strong {
  font-size: 14px;
  color: #fff;
}

.slot-stats-wide {
  grid-column: 1 / -1;
}

.slot-stats-note {
  margin: 10px 0 0;
  font-size: 11px;
  color: rgba(255, 214, 102, 0.75);
}

.slot-stats-buckets {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.slot-stats-buckets li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
}

.slot-stats-buckets strong {
  color: #ffe566;
  font-weight: 600;
  text-align: right;
}

.slot-stats-extra p {
  margin: 0 0 6px;
  font-size: 13px;
}

.slot-stats-refresh {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 215, 0, 0.35);
  background: rgba(255, 215, 0, 0.08);
  color: #ffd966;
  font-weight: 700;
  cursor: pointer;
}

.slot-intro-skip:active {
  transform: scale(0.96);
  background: rgba(20, 12, 40, 0.88);
}

/* ── Bonus / lion intro video overlay ── */
.slot-bonus-video-overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.slot-bonus-video-overlay[hidden] {
  display: none !important;
}

.slot-bonus-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

/* ════════════════════════════════════════════════════════════════════════
   IMAGE SKIN — "LUCKY SPINS" frame (576×1024). The PNG is the frame; live
   reels / buttons / stats are overlaid on its empty (black) placeholders.
   Region positions are CSS variables → easy pixel-tuning.
   ════════════════════════════════════════════════════════════════════════ */
.slot-skin {
  /* Reel band (the 3 ovals) */
  --reels-top: 30.5%;
  --reels-height: 31.5%;
  --reels-left: 9%;
  --reels-right: 9%;
  /* Controls band (AUTO / SPIN / BOOST placeholders) */
  --ctrl-top: 67.5%;
  --ctrl-height: 16.5%;
  --ctrl-left: 6%;
  --ctrl-right: 6%;
  /* Bottom stats bar (covers baked numbers/USDT) */
  --stats-top: 86.3%;
  --stats-left: 3.5%;
  --stats-right: 3.5%;
  --stats-height: 12%;
}

/* Hide the CSS chrome — the image provides all of it. */
.slot-skin .slot-bg-rays,
.slot-skin .slot-bg-orbs,
.slot-skin .slot-bg-sparkles,
.slot-skin .slot-title-banner,
.slot-skin .slot-meta-row,
.slot-skin .slot-tickets-hint,
.slot-skin .slot-bet-panel,
.slot-skin .slot-color-hint,
.slot-skin .slot-machine-cap,
.slot-skin .slot-win-line,
.slot-skin .slot-side-gem,
.slot-skin .slot-corner,
.slot-skin .slot-cost-label,
.slot-skin .slot-bet-chips--footer,
.slot-skin .slot-pedestal-glow,
.slot-skin .slot-spin-halo {
  display: none !important;
}

.slot-skin .slot-top-title { display: none; }

/* Floating back button over the banner */
.slot-skin .slot-top-bar {
  position: absolute;
  top: 6px;
  left: 8px;
  z-index: 30;
  display: block;
  margin: 0;
}

/* Tighten the screen; allow scroll for paytable / admin stats below the frame. */
.slot-skin.slot-screen {
  padding: 4px 2px calc(70px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
}

.slot-skin .slot-tabs {
  position: relative;
  z-index: 25;
  margin-bottom: 10px;
}

/* Jackpot counter above the PNG frame (live pool balance). */
.slot-skin .slot-jackpot-arch {
  margin: 4px auto 10px;
  width: min(calc(100vw - 4px), 100%);
  max-width: min(calc(100vw - 4px), 100%);
}

.slot-skin .slot-jackpot-hint {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
}

.slot-skin .slot-jp-contrib-hint {
  margin-top: 2px;
}

.slot-skin .slot-skin-stage {
  display: block;
  position: relative;
  width: min(calc(100vw - 4px), 100%);
  height: min(calc((100vw - 4px) * 1024 / 576), calc(100dvh - 130px));
  aspect-ratio: 576 / 1024;
  max-width: none;
  margin: 0 auto;
  background: url("/images/slot/frame.png") center / 100% 100% no-repeat;
}

/* Play panel wraps frame + paytable; frame lives in .slot-skin-stage. */
.slot-skin #slotPanelPlay {
  position: relative;
  height: auto;
  aspect-ratio: unset;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  background: none;
}

.slot-skin .slot-paytable {
  width: 90%;
  max-width: 90vw;
  margin: 10px auto 4px;
}

.slot-skin #slotPanelStats {
  padding: 0 4px 16px;
}

/* Default: wrapper is invisible to layout outside skin mode. */
.slot-skin-stage {
  display: contents;
}

/* Strip the CSS frame boxes so children overlay the image directly. */
.slot-skin .slot-machine-outer,
.slot-skin .slot-machine {
  display: contents;
}

/* ── Reels over the 3 ovals ── */
.slot-skin .slot-reels-wrap {
  position: absolute;
  top: var(--reels-top);
  left: var(--reels-left);
  right: var(--reels-right);
  height: var(--reels-height);
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
}
.slot-skin .slot-reels-wrap::after { display: none; }
.slot-skin .slot-reels {
  height: 100%;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  gap: 0;
}
.slot-skin .slot-reel-col { background: transparent; }
.slot-skin .slot-reel-col::after { display: none; }  /* image draws dividers */
.slot-skin .slot-reel-symbol { height: 100%; }
.slot-skin .slot-symbol-stage {
  width: 74%;
  height: 62%;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
.slot-skin .slot-symbol-emoji { font-size: clamp(36px, 11vw, 58px); }
.slot-skin .slot-symbol-img {
  width: 78%;
  height: 78%;
  border-radius: 14px;
}

/* ── Controls band: AUTO | SPIN | BOOST ── */
.slot-skin .slot-pedestal {
  position: absolute;
  top: var(--ctrl-top);
  left: var(--ctrl-left);
  right: var(--ctrl-right);
  height: var(--ctrl-height);
  padding: 0;
  margin: 0;
  background: none;
  border: none;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  z-index: 15;
}
.slot-skin .slot-side-btn { width: 22%; padding: 0; }
.slot-skin .slot-side-ring { width: clamp(40px, 13vw, 60px); height: clamp(40px, 13vw, 60px); }
.slot-skin .slot-spin-wrap { flex: 0 0 42%; max-width: 42%; padding: 0; }
.slot-skin .slot-spin-btn { min-height: 0; height: clamp(58px, 17vw, 88px); }

/* ── Live stats bar over the baked gold bar (covers numbers + USDT) ── */
.slot-skin .slot-stats-bar {
  position: absolute;
  top: var(--stats-top);
  left: var(--stats-left);
  right: var(--stats-right);
  height: var(--stats-height);
  margin: 0;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(20, 14, 4, 0.9), rgba(8, 6, 2, 0.96));
  border: none;
  border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(255, 215, 0, 0.25) inset;
}

/* Win / error feedback as a slim overlay between reels and controls. */
.slot-skin .slot-result {
  position: absolute;
  top: 63.5%;
  left: 14%;
  right: 14%;
  min-height: 0;
  z-index: 20;
  margin: 0;
  padding: 6px 10px;
  font-size: 13px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.55);
}
.slot-skin .slot-result:empty { display: none; }

/* Gamble-offer needs a taller panel — the slim win strip is too small. */
.slot-skin .slot-result.has-gamble-offer {
  top: 48%;
  left: 5%;
  right: 5%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  text-shadow: none;
  animation: none;
  z-index: 25;
}

.slot-skin .slot-result.has-gamble-offer > p {
  margin: 0;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 13px;
  text-align: center;
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid rgba(255, 215, 0, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}

.slot-skin .slot-result.has-gamble-offer .slot-gamble-offer {
  margin-top: 0;
}

/* ── Focus / fullscreen play mode (fixed, no scroll) ── */
body.slot-focus-active {
  overflow: hidden;
}

body.slot-focus-active #app {
  overflow: hidden;
}

body.slot-focus-active .bottom-nav {
  display: none !important;
}

.slot-skin.slot-screen.slot-focus {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  padding:
    max(4px, env(safe-area-inset-top, 0px))
    4px
    max(4px, env(safe-area-inset-bottom, 0px));
}

.slot-skin.slot-focus .slot-jackpot-hint,
.slot-skin.slot-focus .slot-jp-contrib-hint,
.slot-skin.slot-focus .slot-meta-row,
.slot-skin.slot-focus .slot-tickets-hint,
.slot-skin.slot-focus .slot-tabs,
.slot-skin.slot-focus .slot-paytable,
.slot-skin.slot-focus .slot-bet-chips--footer,
.slot-skin.slot-focus .slot-title-banner,
.slot-skin.slot-focus #slotPanelStats {
  display: none !important;
}

.slot-skin.slot-focus .slot-top-bar {
  flex: 0 0 auto;
  margin-bottom: 2px;
}

.slot-skin.slot-focus .slot-jackpot-arch {
  flex: 0 0 auto;
  margin: 0 auto 4px;
  transform: scale(0.82);
  transform-origin: center top;
}

.slot-skin.slot-focus #slotPanelPlay {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 100%;
  max-width: none;
}

.slot-skin.slot-focus .slot-skin-stage {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  max-height: none;
  width: min(calc(100vw - 4px), 100%);
  margin: 0 auto;
}
