/* ── TOAST ── */
.game-toast {
  position: fixed; bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: rgba(14,10,32,.97); border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px; padding: 10px 20px;
  font-size: .82rem; font-weight: 700; color: #fff;
  opacity: 0; transition: all .25s; z-index: 999; white-space: nowrap;
}
.game-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }


/* ════════════════════════════════════════════════
   TRAGAMONEDAS
════════════════════════════════════════════════ */

.slots-hero {
  text-align: center; margin-bottom: 20px; position: relative;
}
.slots-hero-glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 220px; height: 60px;
  background: radial-gradient(ellipse, rgba(168,85,247,.28) 0%, transparent 70%);
  filter: blur(22px); pointer-events: none;
}
.slots-hero-title {
  font-size: 1.6rem; font-weight: 900; color: #fff;
  letter-spacing: -.02em; margin-bottom: 6px;
  text-shadow: 0 0 28px rgba(168,85,247,.55), 0 0 56px rgba(168,85,247,.18);
}
.slots-hero-sub { font-size: .8rem; color: rgba(220,239,255,.45); }

/* ── MACHINE ── */
.slots-machine {
  background: linear-gradient(160deg, #1a0a3c 0%, #0c0520 45%, #130628 100%);
  border: 2px solid rgba(139,92,246,.45);
  border-radius: 28px; padding: 16px 20px 20px;
  box-shadow:
    0 0 60px rgba(139,92,246,.18),
    0 0 0 1px rgba(139,92,246,.08),
    inset 0 1px 0 rgba(255,255,255,.07);
  position: relative; overflow: hidden;
}
.slots-machine::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 0%,   rgba(168,85,247,.14) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(99,40,180,.1)   0%, transparent 55%);
}

/* ── LIGHTS BAR ── */
.slots-lights {
  display: flex; justify-content: space-around; align-items: center;
  margin: 0 -4px 14px;
}
.slots-lights--bottom { margin: 14px -4px 0; }
.slots-lights span {
  width: 8px; height: 8px; border-radius: 50%;
  background: #ffc837;
  box-shadow: 0 0 7px rgba(255,200,55,.9), 0 0 14px rgba(255,200,55,.4);
  animation: lightBlink 1.6s ease-in-out infinite;
}
.slots-lights span:nth-child(2) { animation-delay: .18s; }
.slots-lights span:nth-child(3) { animation-delay: .36s; }
.slots-lights span:nth-child(4) { animation-delay: .54s; }
.slots-lights span:nth-child(5) { animation-delay: .72s; }
.slots-lights span:nth-child(6) { animation-delay: .90s; }
.slots-lights span:nth-child(7) { animation-delay: 1.08s; }
.slots-lights span:nth-child(8) { animation-delay: 1.26s; }
.slots-lights span:nth-child(9) { animation-delay: 1.44s; }
@keyframes lightBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: .18; }
}

/* ── JACKPOT DISPLAY ── */
.slots-jackpot {
  text-align: center; margin-bottom: 14px;
  background: rgba(255,200,55,.06);
  border: 1px solid rgba(255,200,55,.22);
  border-radius: 12px; padding: 8px 14px;
}
.jackpot-label {
  font-size: .6rem; font-weight: 800; color: rgba(255,200,55,.55);
  text-transform: uppercase; letter-spacing: .18em; margin-bottom: 3px;
}
.jackpot-val {
  font-size: 1.15rem; font-weight: 900; color: #ffc837;
  animation: jackpotPulse 2.2s ease-in-out infinite;
}
@keyframes jackpotPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .6; }
}

/* ── REELS WINDOW ── */
.slots-window {
  background: linear-gradient(180deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.5) 100%);
  border: 1.5px solid rgba(255,255,255,.1);
  border-radius: 20px; padding: 10px; margin-bottom: 14px;
  display: flex; gap: 8px; position: relative;
  box-shadow: inset 0 3px 10px rgba(0,0,0,.6), inset 0 -2px 6px rgba(0,0,0,.4);
}
.slots-window::after {
  content: ''; position: absolute; inset: 0; border-radius: 20px;
  background: linear-gradient(to bottom,
    rgba(0,0,0,.55) 0%, transparent 22%, transparent 78%, rgba(0,0,0,.55) 100%);
  pointer-events: none; z-index: 2;
}

/* ── INDIVIDUAL REEL ── */
.slot-reel {
  flex: 1; height: 110px; border-radius: 14px;
  background: linear-gradient(180deg, rgba(28,18,58,.92) 0%, rgba(14,9,32,.92) 100%);
  border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 3.2rem; line-height: 1; position: relative;
  overflow: hidden;
  transition: background .25s, border-color .25s;
  box-shadow: inset 0 2px 6px rgba(0,0,0,.5);
}
.slot-reel.spinning {
  animation: reelShake .07s linear infinite;
  filter: blur(2px);
}
.slot-reel.win {
  background: linear-gradient(180deg, rgba(255,200,55,.2) 0%, rgba(255,200,55,.08) 100%);
  border-color: rgba(255,200,55,.55);
  box-shadow: 0 0 22px rgba(255,200,55,.3), inset 0 2px 6px rgba(0,0,0,.3);
  animation: reelWin .55s cubic-bezier(.34,1.56,.64,1);
}
@keyframes reelShake {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-2px); }
}
@keyframes reelWin {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.13); }
  100% { transform: scale(1); }
}

/* ── PAY LINE ── */
.slots-line {
  position: absolute; left: 14px; right: 14px;
  top: 50%; transform: translateY(-50%);
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(168,85,247,.8) 20%,
    rgba(208,40,232,.9) 50%, rgba(168,85,247,.8) 80%, transparent);
  z-index: 3; pointer-events: none;
  box-shadow: 0 0 10px rgba(168,85,247,.5);
}

/* ── PAYTABLE ── */
.paytable {
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(139,92,246,.18);
  border-radius: 18px; padding: 14px 16px; margin-top: 14px;
}
.paytable-title {
  font-size: .64rem; font-weight: 800; color: rgba(220,239,255,.38);
  text-transform: uppercase; letter-spacing: .14em; margin-bottom: 10px;
}
.paytable-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 10px; border-radius: 9px; font-size: .78rem; margin-bottom: 3px;
}
.paytable-row--jackpot {
  background: rgba(255,200,55,.09); border: 1px solid rgba(255,200,55,.2);
}
.paytable-row--last { border-top: 1px solid rgba(255,255,255,.05); margin-top: 4px; padding-top: 8px; }
.paytable-syms { letter-spacing: .12em; }
.paytable-syms--text { font-size: .75rem; color: rgba(220,239,255,.55); letter-spacing: 0; }
.paytable-prize          { font-weight: 800; color: #ffc837; }
.paytable-prize--jackpot { color: #ffc837; font-size: .88rem; }
.paytable-prize--high    { color: #c084fc; }
.paytable-prize--mid     { color: #67e8f9; }
.paytable-prize--low     { color: rgba(220,239,255,.6); }


/* ════════════════════════════════════════════════
   RULETA
════════════════════════════════════════════════ */

.roulette-hero {
  text-align: center; margin-bottom: 14px;
  position: relative; overflow: hidden;
}
.roulette-hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 90% 70% at 50% 60%, rgba(139,92,246,.22) 0%, transparent 70%);
  filter: blur(18px);
}
.roulette-hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,200,55,.1); border: 1px solid rgba(255,200,55,.32);
  border-radius: 999px; padding: 4px 13px; margin-bottom: 8px;
  font-size: .68rem; font-weight: 800; color: #ffc837;
  text-transform: uppercase; letter-spacing: .14em;
  position: relative;
}
.roulette-hero-badge::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: 0 0 18px rgba(255,200,55,.4);
  opacity: 0; pointer-events: none;
  animation: badgePulse 2.4s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { opacity: 0; }
  50%       { opacity: 1; }
}
.roulette-hero-title {
  position: relative; font-size: 1.9rem; font-weight: 900;
  letter-spacing: -.03em; margin-bottom: 6px;
  background: linear-gradient(135deg, #e879f9 0%, #a78bfa 45%, #60a5fa 85%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 14px rgba(168,85,247,.55));
  animation: titleGlow 3s ease-in-out infinite alternate;
}
@keyframes titleGlow {
  0%   { filter: drop-shadow(0 0 10px rgba(168,85,247,.5)); }
  100% { filter: drop-shadow(0 0 24px rgba(96,165,250,.8)); }
}
.roulette-hero-sub {
  font-size: .8rem; color: rgba(196,181,253,.7); letter-spacing: .2px;
}

/* ── WHEEL ── */
.wheel-container {
  position: relative; display: flex;
  align-items: center; justify-content: center;
  margin: 4px auto 16px; width: fit-content; padding: 18px;
}
.wheel-container::before {
  content: ''; position: absolute;
  inset: -10px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,.28) 0%, transparent 68%);
  animation: wheelAura 2.8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes wheelAura {
  0%, 100% { opacity: .55; }
  50%       { opacity: 1;   }
}
.wheel-pointer {
  position: absolute; top: 2px; left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  filter: drop-shadow(0 0 8px rgba(255,200,55,.9)) drop-shadow(0 2px 5px rgba(0,0,0,.6));
}
#wheelCanvas {
  border-radius: 50%;
  box-shadow:
    0 0 0 3px rgba(255,255,255,.08),
    0 0 0 8px rgba(109,40,217,.28),
    0 0 40px rgba(139,92,246,.55),
    0 0 80px rgba(139,92,246,.25),
    0 0 120px rgba(168,85,247,.12);
  display: block; position: relative; z-index: 1;
}

/* ── LEGEND ── */
.roulette-legend {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px; margin-top: 18px;
}
.legend-item {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-left-width: 3px;
  border-radius: 12px; padding: 9px 10px;
  transition: background .15s, border-color .2s, transform .15s;
}
.legend-item:active { transform: scale(.97); background: rgba(255,255,255,.06); }
.legend-dot   { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.legend-icon  { font-size: .9rem; flex-shrink: 0; }
.legend-label { font-size: .72rem; font-weight: 700; color: rgba(220,239,255,.8); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.legend-coins { font-size: .72rem; font-weight: 900; color: #ffc837; flex-shrink: 0; }
