/* Slot stage — Luxora VIP drum like reference art */

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

.slot-stage {
  position: relative;
  flex: 1;
  padding: clamp(1.5rem, 4vw, 2.75rem) 1.25rem 3rem;
  overflow: hidden;
  background-color: #05020c;
  background-image: url("../assets/slot-stage-bg.jpg");
  background-position: center center;
  background-size: cover;
}

.slot-stage__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 2, 12, 0.45) 0%, rgba(5, 2, 12, 0.2) 35%, rgba(5, 2, 12, 0.55) 100%),
    radial-gradient(ellipse 60% 50% at 50% 40%, transparent 20%, rgba(5, 2, 12, 0.45) 100%);
}

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

/* Equal side tracks keep the drum column optically centered */
.slot-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 720px) minmax(0, 1fr);
  gap: 1rem 1rem;
  align-items: start;
}

.slot-side {
  grid-column: 1;
  justify-self: end;
  align-self: start;
  width: min(228px, 100%);
  position: relative;
  z-index: 2;
}

.slot-side__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1rem 0.85rem 0.95rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 228, 150, 0.55);
  background:
    radial-gradient(ellipse 90% 55% at 50% -10%, rgba(255, 214, 120, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 100%, rgba(140, 40, 70, 0.35), transparent 55%),
    radial-gradient(ellipse 60% 45% at 0% 80%, rgba(90, 40, 140, 0.4), transparent 50%),
    linear-gradient(165deg, #2a1448 0%, #12081f 42%, #1a0a14 100%);
  box-shadow:
    0 0 0 2px #8a6a1a,
    0 0 0 3px rgba(255, 236, 170, 0.35),
    0 18px 40px rgba(0, 0, 0, 0.55),
    0 0 32px rgba(212, 175, 55, 0.22),
    inset 0 1px 0 rgba(255, 240, 190, 0.35),
    inset 0 -10px 28px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  isolation: isolate;
}

.slot-side__panel::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background:
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 7px,
      rgba(255, 220, 140, 0.018) 7px,
      rgba(255, 220, 140, 0.018) 8px
    );
  pointer-events: none;
  z-index: 0;
}

.slot-side__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(135deg, rgba(255, 240, 190, 0.14) 0%, transparent 28%),
    linear-gradient(315deg, rgba(255, 200, 120, 0.08) 0%, transparent 30%);
  pointer-events: none;
  z-index: 0;
}

.slot-side__crest {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0.1rem;
}

.slot-side__crest-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(212, 175, 55, 0.55),
    rgba(255, 236, 170, 0.85),
    rgba(212, 175, 55, 0.55),
    transparent
  );
}

.slot-side__crest-label {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #f0d060;
  text-shadow: 0 0 12px rgba(240, 208, 96, 0.45);
}

.slot-side .slot-console__row {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
  padding: 0.75rem 0.6rem 0.7rem;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.38);
  background:
    linear-gradient(180deg, rgba(255, 230, 160, 0.06), transparent 40%),
    linear-gradient(180deg, rgba(18, 8, 32, 0.92), rgba(6, 2, 14, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 170, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.45),
    inset 0 0 22px rgba(80, 30, 120, 0.2),
    0 6px 14px rgba(0, 0, 0, 0.28);
}

.slot-side .slot-console__row--bet {
  padding-bottom: 0.8rem;
}

.slot-side .slot-console__label {
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  color: #e0c060;
}

.slot-side .mode-btn {
  min-width: 0;
  width: 100%;
  padding: 0.58rem 0.65rem;
  border-radius: 10px;
  border: 1.5px solid rgba(240, 208, 96, 0.7);
  background:
    linear-gradient(180deg, rgba(110, 60, 160, 0.95) 0%, rgba(42, 18, 72, 0.98) 48%, rgba(18, 8, 36, 1) 100%);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.4),
    0 0 16px rgba(212, 175, 55, 0.18),
    inset 0 1px 0 rgba(255, 236, 170, 0.2);
}

.slot-side .mode-btn.is-active,
.slot-side .mode-btn:hover:not(:disabled) {
  border-color: #fff4c4;
  background:
    linear-gradient(180deg, rgba(150, 90, 200, 0.98) 0%, rgba(60, 28, 100, 0.98) 50%, rgba(28, 12, 48, 1) 100%);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.4),
    0 0 22px rgba(240, 208, 96, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.slot-side .bet-controls {
  gap: 0.55rem;
  width: 100%;
}

.slot-side .chip-btn {
  width: 2.35rem;
  height: 2.35rem;
  flex-shrink: 0;
  border-width: 2px;
  border-color: #d4af37;
  background:
    radial-gradient(circle at 32% 28%, #7a4aa0, #2a1438 55%, #12081c 100%);
  font-size: 1.05rem;
  box-shadow:
    0 3px 10px rgba(0, 0, 0, 0.4),
    0 0 12px rgba(212, 175, 55, 0.25),
    inset 0 1px 0 rgba(255, 236, 170, 0.25);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.slot-side .chip-btn:not(:disabled):hover {
  border-color: #fff4c4;
  transform: translateY(-1px);
  box-shadow:
    0 5px 14px rgba(0, 0, 0, 0.45),
    0 0 18px rgba(240, 208, 96, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.slot-side .bet-value {
  flex: 1;
  min-width: 0;
  padding: 0.35rem 0.4rem;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background:
    linear-gradient(180deg, rgba(40, 18, 10, 0.95), rgba(12, 6, 4, 0.98));
  box-shadow:
    inset 0 2px 8px rgba(0, 0, 0, 0.55),
    inset 0 0 16px rgba(212, 175, 55, 0.12),
    0 0 14px rgba(240, 208, 96, 0.15);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #ffe08a;
  text-shadow: 0 0 16px rgba(240, 208, 96, 0.55);
}

.slot-side .slot-console__total {
  margin-top: 0.35rem;
  width: 100%;
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.32);
  background: linear-gradient(90deg, rgba(80, 40, 10, 0.35), rgba(40, 20, 8, 0.55), rgba(80, 40, 10, 0.35));
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffe9a8;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.35);
}

.slot-main {
  grid-column: 2;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.combo-chat {
  grid-column: 3;
  justify-self: start;
  align-self: start;
  width: min(280px, 100%);
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

.slot-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

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

.slot-rules-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: 1.5px solid #f0d060;
  background:
    linear-gradient(180deg, rgba(74, 40, 120, 0.95), rgba(22, 10, 42, 0.98));
  color: #ffe9a8;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow:
    0 0 18px rgba(212, 175, 55, 0.28),
    inset 0 1px 0 rgba(255, 236, 170, 0.18);
  transition: transform 0.12s ease, border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.slot-rules-btn:hover {
  color: #fff6c8;
  border-color: #fff4c4;
  text-decoration: none;
  box-shadow:
    0 0 24px rgba(240, 208, 96, 0.42),
    inset 0 1px 0 rgba(255, 236, 170, 0.28);
}

.slot-rules-btn:active {
  transform: translateY(1px);
}

/* Live credits board above the drum */
.slot-scoreboard {
  display: flex;
  justify-content: center;
  margin: 0 0 1.35rem;
}

.slot-scoreboard__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  min-width: min(340px, 100%);
  padding: 0.95rem 1.85rem 1.1rem;
  border-radius: 16px;
  border: 2px solid #d4af37;
  background:
    linear-gradient(180deg, rgba(18, 8, 36, 0.96), rgba(6, 2, 14, 0.98)),
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(107, 47, 181, 0.28), transparent 65%);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.45),
    0 0 28px rgba(212, 175, 55, 0.28),
    inset 0 0 24px rgba(107, 47, 181, 0.18);
}

.slot-scoreboard__label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c9a227;
}

.slot-scoreboard__readout {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.slot-scoreboard__icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(240, 208, 96, 0.55);
  box-shadow: 0 0 12px rgba(240, 208, 96, 0.35);
}

.slot-scoreboard__value {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.5vw, 2.35rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: #ffe08a;
  text-shadow: 0 0 18px rgba(240, 208, 96, 0.55);
  line-height: 1;
}

.slot-scoreboard__value.balance-pulse,
[data-balance].balance-pulse {
  animation: balancePulse 0.7s ease;
}

@keyframes balancePulse {
  0% {
    transform: scale(1);
    color: #ffe08a;
    text-shadow: 0 0 18px rgba(240, 208, 96, 0.55);
  }
  35% {
    transform: scale(1.18);
    color: #fff6c8;
    text-shadow: 0 0 28px rgba(255, 236, 170, 0.85);
  }
  100% {
    transform: scale(1);
    color: #ffe08a;
    text-shadow: 0 0 18px rgba(240, 208, 96, 0.55);
  }
}

/* Combo chat — right of drums, fixed compact height; feed scrolls */
.combo-chat {
  width: min(280px, 100%);
  max-width: 280px;
  height: 280px;
  max-height: 280px;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  border: 2px solid #d4af37;
  background:
    linear-gradient(165deg, rgba(36, 16, 68, 0.96), rgba(8, 4, 18, 0.98)),
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(212, 175, 55, 0.12), transparent 60%);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.45),
    0 0 22px rgba(107, 47, 181, 0.22);
  overflow: hidden;
}

.slot-layout.is-dual .combo-chat {
  height: 360px;
  max-height: 360px;
}

.combo-chat__head {
  flex: 0 0 auto;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.28);
  background: rgba(0, 0, 0, 0.22);
}

.combo-chat__title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c9a227;
}

.combo-chat__feed {
  flex: 1 1 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.75rem 0.7rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  scroll-behavior: smooth;
}

.combo-chat__empty {
  margin: auto 0;
  padding: 0.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: #a89bb8;
}

.combo-chat__msg {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-self: stretch;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(0, 0, 0, 0.32);
  box-shadow: 0 0 14px rgba(240, 208, 96, 0.12);
  animation: comboChatIn 0.35s ease;
}

.combo-chat__label {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
  color: #ffe9a8;
  letter-spacing: 0.02em;
}

.combo-chat__amount {
  font-size: 0.9rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #f0d060;
  text-shadow: 0 0 12px rgba(240, 208, 96, 0.35);
}

@keyframes comboChatIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Drum art (roll.png) + symbol windows overlaid */
.slot-drums {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.25rem;
}

.slot-machine {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  isolation: isolate;
  filter: drop-shadow(0 22px 36px rgba(0, 0, 0, 0.55))
    drop-shadow(0 0 28px rgba(212, 175, 55, 0.25));
  transition: max-width 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

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

.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;
  /* drop solid black plate of the PNG onto dark stage */
  mix-blend-mode: lighten;
}

.reels {
  position: absolute;
  z-index: 2;
  left: 12.6%;
  right: 12.6%;
  top: 20%;
  bottom: 20%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.1%;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

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

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

/* While spinning the strip grows taller than the window */
.reel.spinning .reel-strip {
  bottom: auto;
}

.reel-cell {
  box-sizing: border-box;
  flex: 0 0 100%;
  height: 100%;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.reel.spinning .reel-cell {
  flex: 0 0 auto;
  height: auto;
  min-height: 0;
}

.reel:first-child .reel-symbol,
.reel:nth-child(2) .reel-symbol {
  left: 7%;
}

.reel:last-child .reel-symbol {
  left: -7%;
}

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

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

@keyframes winPulse {
  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.45));
  }
  50% {
    transform: scale(1.08);
    filter: drop-shadow(0 0 16px rgba(255, 236, 170, 0.85));
  }
}

/* Spin under drum */
.slot-console {
  margin: 0 auto;
  max-width: 440px;
  padding: 1.15rem 1.15rem;
  border-radius: 18px;
  border: 2px solid #d4af37;
  background:
    linear-gradient(165deg, rgba(36, 16, 68, 0.96), rgba(8, 4, 18, 0.98) 55%, rgba(20, 10, 8, 0.95)),
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(212, 175, 55, 0.14), transparent 60%);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.5),
    0 0 28px rgba(107, 47, 181, 0.28),
    inset 0 1px 0 rgba(255, 236, 170, 0.14);
}

.slot-console--spin {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 420px;
  margin: 0.65rem auto 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.slot-console__row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
  padding: 0.85rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: rgba(0, 0, 0, 0.28);
  box-shadow: inset 0 0 18px rgba(107, 47, 181, 0.12);
}

.slot-console__row--mode {
  padding: 0.7rem 0.9rem;
}

.slot-console__label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c9a227;
}

.slot-console__bet-hint {
  margin-left: 0.35rem;
  letter-spacing: 0.08em;
  color: #a89bb8;
  font-weight: 600;
  text-transform: none;
}

.slot-console__total {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffe08a;
  letter-spacing: 0.04em;
}

.mode-btn {
  appearance: none;
  min-width: 8.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid rgba(212, 175, 55, 0.65);
  background: linear-gradient(180deg, rgba(74, 40, 120, 0.95), rgba(22, 10, 42, 0.98));
  color: #ffe9a8;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.2);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.mode-btn:hover:not(:disabled),
.mode-btn.is-active {
  border-color: #fff4c4;
  color: #fff6c8;
  box-shadow: 0 0 20px rgba(240, 208, 96, 0.35);
}

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

.bet-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
}

.bet-controls .bet-value {
  min-width: 5.75rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--accent-bright);
  text-shadow: 0 0 14px rgba(240, 208, 96, 0.4);
}

.chip-btn {
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #5a3878, #1a1028);
  color: var(--accent-bright);
  font-weight: 700;
  font-size: 1.15rem;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.2);
}

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

/* Spin uses btn-play look from layout.css; full width under drum */
.spin-btn {
  width: 100%;
  min-width: 0;
  max-width: none;
}


/* —— Tablet slot —— */
@media (max-width: 1100px) {
  .slot-layout {
    grid-template-columns: minmax(0, 200px) minmax(0, 1fr) minmax(0, 240px);
    gap: 0.75rem;
  }

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

  .combo-chat {
    width: min(240px, 100%);
    max-width: 240px;
  }

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

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

@media (max-width: 980px) {
  .slot-stage {
    overflow-x: hidden;
    overflow-y: visible;
    padding: 1.15rem max(0.85rem, env(safe-area-inset-right)) max(2rem, env(safe-area-inset-bottom)) max(0.85rem, env(safe-area-inset-left));
  }

  .slot-stage__inner {
    width: 100%;
  }

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

  .slot-scoreboard {
    margin-bottom: 1rem;
  }

  .slot-scoreboard__panel {
    min-width: min(280px, 100%);
    padding: 0.75rem 1.35rem 0.85rem;
  }

  .slot-scoreboard__value {
    font-size: clamp(1.55rem, 5vw, 2rem);
  }

  .slot-layout {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 0.85rem;
  }

  .slot-side,
  .slot-main,
  .combo-chat {
    grid-column: 1;
    justify-self: stretch;
    width: 100%;
    max-width: min(640px, 100%);
    margin-left: auto;
    margin-right: auto;
  }

  .slot-side {
    align-self: stretch;
    width: 100%;
    order: 1;
  }

  .slot-main {
    order: 2;
  }

  .combo-chat {
    order: 3;
    position: relative;
    inset: auto;
    height: 220px;
    max-height: 220px;
    max-width: min(640px, 100%);
    width: 100%;
  }

  .slot-layout.is-dual .combo-chat {
    height: 260px;
    max-height: 260px;
  }

  .slot-side__panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    align-items: stretch;
  }

  .slot-side__crest {
    grid-column: 1 / -1;
  }

  .slot-side .slot-console__row {
    margin-bottom: 0;
    height: 100%;
  }

  .slot-console--spin {
    max-width: min(420px, 100%);
    margin-top: 0.85rem;
    position: sticky;
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    z-index: 8;
  }

  .slot-drums {
    margin-bottom: 0.75rem;
  }

  .slot-drums.is-dual {
    gap: 0.5rem;
  }

  .slot-drums.is-dual .slot-machine {
    max-width: min(520px, 94vw);
  }
}

@media (max-width: 720px) {
  .slot-rules-btn {
    min-height: 2.35rem;
    padding: 0.45rem 0.95rem;
    font-size: 0.75rem;
  }

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

  .combo-chat {
    height: 200px;
    max-height: 200px;
  }

  .slot-layout.is-dual .combo-chat {
    height: 230px;
    max-height: 230px;
  }
}

@media (max-width: 520px) {
  .slot-scoreboard__panel {
    min-width: 100%;
  }

  .slot-side__panel {
    grid-template-columns: 1fr;
  }

  .slot-drums.is-dual .slot-machine {
    max-width: min(360px, 92vw);
  }

  .slot-machine {
    max-width: min(100%, 420px);
  }

  .reels {
    left: 12.2%;
    right: 12.2%;
    top: 21%;
    bottom: 21%;
    gap: 1.8%;
  }

  .reel-symbol {
    height: 40%;
    max-width: 56%;
  }

  .slot-side .chip-btn {
    width: 2.5rem;
    height: 2.5rem;
  }

  .mode-btn,
  .chip-btn,
  .spin-btn {
    touch-action: manipulation;
  }

  .chip-btn {
    min-width: 44px;
    min-height: 44px;
  }

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

  .spin-btn {
    min-height: 52px;
    width: 100%;
  }
}

/* Tablet slot layout */
@media (min-width: 721px) and (max-width: 1100px) {
  .mode-btn,
  .chip-btn,
  .spin-btn {
    touch-action: manipulation;
    min-height: 44px;
  }

  .chip-btn {
    min-width: 44px;
  }
}

.mode-btn.is-pressed,
.chip-btn.is-pressed,
.spin-btn.is-pressed {
  transform: scale(0.97);
}
