.slot-page {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

.slot-stage {
  position: relative;
  flex: 1;
  padding: clamp(1.2rem, 3vw, 2.4rem) 1rem 2.5rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 45% at 50% 30%, rgba(177, 76, 255, 0.18), transparent 60%),
    radial-gradient(ellipse 40% 35% at 80% 70%, rgba(62, 203, 255, 0.1), transparent 55%),
    #05050a;
}

.slot-stage__inner {
  position: relative;
  z-index: 1;
  width: min(1240px, 100%);
  margin: 0 auto;
}

.slot-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  margin-bottom: 1rem;
}

.slot-heading__eyebrow {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 700;
}

.slot-heading h1 {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
}

.slot-scoreboard {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.slot-scoreboard__panel {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(18, 18, 40, 0.9);
  box-shadow: var(--glow-cyan);
}

.slot-scoreboard__label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.slot-scoreboard__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--cyan);
}

.daily-btn {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 59, 92, 0.55);
  background: linear-gradient(180deg, #ff5a78, var(--accent));
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.daily-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.slot-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 760px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.slot-side,
.combo-chat {
  width: min(220px, 100%);
}

.slot-side {
  justify-self: end;
}

.combo-chat {
  justify-self: start;
}

.slot-side__panel,
.combo-chat {
  padding: 1rem 0.85rem;
  border-radius: 16px;
  border: 1px solid var(--border-purple);
  background:
    radial-gradient(ellipse 90% 50% at 50% -10%, rgba(177, 76, 255, 0.2), transparent 55%),
    linear-gradient(165deg, #1a1435, #0b0b18);
  box-shadow: var(--shadow), var(--glow-purple);
}

.slot-console__label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}

.slot-console__row {
  margin-bottom: 0.85rem;
}

.mode-btn,
.chip-btn {
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
}

.mode-btn {
  width: 100%;
  min-height: 44px;
}

.mode-btn.is-active {
  background: linear-gradient(180deg, rgba(177, 76, 255, 0.55), rgba(80, 30, 160, 0.9));
  border-color: var(--purple);
  box-shadow: var(--glow-purple);
}

.bet-controls {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 8px;
  align-items: center;
}

.chip-btn {
  min-height: 44px;
  font-size: 1.25rem;
}

.bet-value {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.slot-console__total {
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.slot-main {
  display: grid;
  gap: 14px;
}

.slot-drums {
  display: grid;
  gap: 12px;
}

.slot-machine {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  isolation: isolate;
  filter:
    drop-shadow(0 22px 36px rgba(0, 0, 0, 0.6))
    drop-shadow(0 0 34px rgba(177, 76, 255, 0.28));
}

.slot-drums.is-dual .slot-machine {
  max-width: 640px;
}

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

.slot-machine > picture {
  display: block;
  width: 100%;
}

.slot-drum__art {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  pointer-events: none;
  mix-blend-mode: lighten;
}

.reels {
  position: absolute;
  z-index: 2;
  left: 15.8%;
  right: 22.2%;
  top: 21%;
  bottom: 16%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.4%;
  margin: 0;
  padding: 0;
  overflow: visible;
}

.reel {
  position: relative;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  border-radius: 4px;
  background: transparent;
}

.reel-strip {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  transform: translateY(0);
  will-change: transform;
}

.reel-cell {
  box-sizing: border-box;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1% 4%;
}

.reel-symbol {
  position: relative;
  z-index: 2;
  display: block;
  width: auto;
  height: 86%;
  max-width: 88%;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
}

.reel:last-child .reel-symbol {
  transform: translateX(14%);
}

.reel:last-child.win-flash .reel-symbol {
  animation: winPulseRight 0.55s ease 2;
}

.reel.win-flash .reel-symbol {
  animation: winPulse 0.55s ease 2;
}

@keyframes winPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
    filter: drop-shadow(0 0 16px rgba(62, 203, 255, 0.9));
  }
}

@keyframes winPulseRight {
  0%,
  100% {
    transform: translateX(14%) scale(1);
  }
  50% {
    transform: translateX(14%) scale(1.1);
    filter: drop-shadow(0 0 16px rgba(62, 203, 255, 0.9));
  }
}

.slot-console--spin {
  display: flex;
  justify-content: center;
}

.spin-btn {
  min-width: min(100%, 240px);
  min-height: 56px;
  font-size: 1.08rem;
}

.combo-chat__head {
  margin-bottom: 8px;
}

.combo-chat__title {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}

.combo-chat__feed {
  max-height: 280px;
  overflow: auto;
  display: grid;
  gap: 8px;
}

.combo-chat__empty {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.combo-chat__msg {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(62, 203, 255, 0.15);
  font-size: 0.86rem;
}

.combo-chat__amount {
  color: var(--cyan);
  font-weight: 700;
  white-space: nowrap;
}

.slot-note {
  width: min(100%, 1240px);
  margin: 14px auto 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 59, 92, 0.25);
  background: rgba(18, 10, 24, 0.8);
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .slot-layout {
    grid-template-columns: 1fr 1fr;
  }

  .slot-main {
    grid-column: 1 / -1;
    order: -1;
  }

  .slot-side,
  .combo-chat {
    width: 100%;
    justify-self: stretch;
  }
}

@media (max-width: 640px) {
  .slot-layout {
    grid-template-columns: 1fr;
  }

  .reels {
    left: 15%;
    right: 21.5%;
    top: 20%;
    bottom: 15%;
  }

  .reel:last-child .reel-symbol {
    transform: translateX(8%);
  }
}
