#slot-widget {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  font-family: var(--font);
}
@media (max-width: 700px) {
  #slot-widget { left: 16px; bottom: 16px; }
}

#slot-toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: linear-gradient(135deg, #b87d10 0%, #e8a820 30%, #ffe066 55%, #f0b429 75%, #a87820 100%);
  animation: slot-btn-pulse 3.5s ease-in-out infinite;
  color: #1a0e00;
  border: 1px solid rgba(255,220,80,.3);
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(240,180,41,.35), inset 0 1px 0 rgba(255,240,150,.4);
  letter-spacing: .04em;
  transition: transform .15s, box-shadow .2s;
}
#slot-toggle:hover {
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 8px 28px rgba(240,180,41,.55), inset 0 1px 0 rgba(255,240,150,.5);
}
#slot-toggle-icon { display: block; font-size: 1.15rem; line-height: 1; }
#slot-toggle-label {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

@keyframes slot-btn-pulse {
  0%, 100% { box-shadow: 0 4px 24px rgba(240,180,41,.55), 0 0 0 0 rgba(240,180,41,.35); }
  50%       { box-shadow: 0 6px 32px rgba(240,180,41,.75), 0 0 0 8px rgba(240,180,41,0); }
}

#slot-panel {
  display: none;
  position: absolute;
  bottom: 62px;
  left: 0;
  width: 280px;
  background: linear-gradient(160deg, #1a0f10, #12080a);
  border: 1px solid rgba(240,180,41,.45);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 16px 56px rgba(0,0,0,.75), 0 0 32px rgba(240,180,41,.12);
  animation: slot-panel-in .25s ease;
}
#slot-panel.open { display: block; }

@keyframes slot-panel-in {
  from { opacity: 0; transform: translateY(14px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

#slot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
#slot-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .04em;
  text-shadow: 0 0 12px rgba(240,180,41,.5);
}
#slot-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color .2s, background .2s;
  line-height: 1;
}
#slot-close:hover { color: var(--text); background: rgba(255,255,255,.07); }

#slot-reels {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 14px;
}
#slot-widget .reel {
  width: 72px;
  height: 72px;
  background: #0a0508;
  border: 2px solid rgba(240,180,41,.3);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: inset 0 2px 10px rgba(0,0,0,.6);
}
#slot-widget .reel-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: none;
}
#slot-widget .reel-inner span {
  font-size: 2.2rem;
  line-height: 72px;
  display: block;
  height: 72px;
  text-align: center;
}
#slot-widget .reel.spinning .reel-inner {
  animation: reel-spin .12s steps(1) infinite;
}
@keyframes reel-spin {
  0%   { transform: translateY(0); }
  25%  { transform: translateY(-72px); }
  50%  { transform: translateY(-144px); }
  75%  { transform: translateY(-216px); }
  100% { transform: translateY(0); }
}

#slot-result {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  min-height: 22px;
  margin-bottom: 12px;
  color: var(--muted);
  letter-spacing: .03em;
}
#slot-result.win   { color: var(--green); text-shadow: 0 0 10px rgba(62,207,130,.5); }
#slot-result.lose  { color: var(--muted); }
#slot-result.jackpot { color: var(--gold); text-shadow: 0 0 16px rgba(240,180,41,.7); font-size: 1rem; }

#slot-spin-btn {
  width: 100%;
  padding: 11px;
  background: linear-gradient(135deg, var(--crimson), var(--crimson2));
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: .05em;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(192,24,42,.5);
  transition: transform .15s, box-shadow .15s, opacity .2s;
}
#slot-spin-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(192,24,42,.7);
}
#slot-spin-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

#slot-spins-left {
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 10px;
  letter-spacing: .02em;
}

@keyframes reel-land {
  0%   { transform: scale(1.18); }
  60%  { transform: scale(.95); }
  100% { transform: scale(1); }
}
#slot-widget .reel.land { animation: reel-land .3s ease forwards; }

@keyframes win-flash {
  0%, 100% { border-color: rgba(62,207,130,.4); box-shadow: inset 0 2px 10px rgba(0,0,0,.6); }
  50%       { border-color: var(--green); box-shadow: inset 0 2px 10px rgba(0,0,0,.6), 0 0 14px rgba(62,207,130,.5); }
}
#slot-widget .reel.win-reel { animation: win-flash .5s ease 3; }

@keyframes jackpot-flash {
  0%, 100% { border-color: rgba(240,180,41,.3); }
  50%       { border-color: var(--gold); box-shadow: inset 0 2px 10px rgba(0,0,0,.6), 0 0 18px rgba(240,180,41,.6); }
}
#slot-widget .reel.jackpot-reel { animation: jackpot-flash .4s ease 4; }

#slot-claim a {
  display: block;
  text-align: center;
  margin-top: 6px;
  font-size: 0.72rem;
  padding: 9px 14px;
  font-family: var(--font);
}
