/* Load after the existing casino styles. Everything is scoped to Sauce Slots. */
.game-stage:has(.sauce-slots) {
  background: radial-gradient(ellipse at 50% 20%, #49245d55, transparent 67%), #102333;
}
.stage-inner:has(> .sauce-slots) { padding: 24px 22px; min-height: 0; }
.sauce-slots {
  --slot-cell: 94px;
  --slot-gold: #f6d88e;
  box-sizing: border-box;
  isolation: isolate;
  width: 100%;
  max-width: 550px;
  min-width: 0;
  margin: auto;
  padding: 20px 18px 8px;
  border: 1px solid #877a9d;
  border-radius: 20px;
  background: radial-gradient(ellipse at 50% 0, #774d8155, transparent 60%), linear-gradient(145deg, #363043, #191a29 53%, #292636);
  box-shadow: inset 0 1px #fff5, inset 0 -4px #080d1a, 0 12px 30px #050c1c66;
  color: #f7efff;
  font-family: var(--font-ui, system-ui, sans-serif);
  text-align: center;
  position: relative;
}
.sauce-slots::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid #c6a9dc22;
  border-radius: 15px;
  pointer-events: none;
}
.sauce-slots .slot-marquee { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.sauce-slots .slots-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #fff5e2;
  font: 800 clamp(21px, 2.5vw, 29px)/1 var(--font-ui, system-ui, sans-serif);
  letter-spacing: -0.8px;
  text-align: left;
  white-space: nowrap;
}
.sauce-slots .slots-brand b { color: #dfb6ff; font-weight: 800; }
.sauce-slots .slots-brand small { display: block; margin-top: 8px; color: #b7a8c7; font: 600 8px/1.1 var(--font-ui, system-ui, sans-serif); letter-spacing: 2.1px; }
.sauce-slots .slot-brand-mark { display: grid; place-items: center; width: 37px; height: 37px; flex: none; color: var(--slot-gold); border: 1px solid #c9a55f88; border-radius: 10px; background: linear-gradient(135deg, #77614155, #32273e); box-shadow: inset 0 1px #fff2; }
.sauce-slots .slot-brand-mark svg { width: 26px; height: 26px; }
.sauce-slots .slot-line-badge { flex: none; padding-left: 13px; border-left: 1px solid #a790bd44; color: #e5d5f5; font: 650 19px/1 var(--font-ui, system-ui, sans-serif); font-variant-numeric: tabular-nums; }
.sauce-slots .slot-line-badge small { display: block; margin-top: 5px; color: #b4a4c2; font-size: 7px; font-weight: 600; letter-spacing: 1.3px; }
.sauce-slots .reel-frame {
  position: relative;
  padding: 9px;
  border: 1px solid #c2a6c4;
  border-radius: 13px;
  background: linear-gradient(135deg, #b9a5be, #61526b 12%, #231c33 34%, #79677d 75%, #d0b0ac);
  box-shadow: 0 0 0 3px #080e1d, inset 0 1px #fff7, 0 8px 18px #0005;
}
.sauce-slots .slot-cabinet-light { position: absolute; top: -3px; left: 24%; right: 24%; height: 2px; border-radius: 4px; background: #d2a7f5; box-shadow: 0 0 11px #c58bff99; pointer-events: none; }
.sauce-slots .reels {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  height: calc(var(--slot-cell) * 3);
  overflow: hidden;
  padding: 0;
  border-radius: 7px;
  background: #0b0e1b;
}
.sauce-slots .reel { position: relative; min-width: 0; height: 100%; overflow: hidden; border: 0; border-radius: 5px; background: linear-gradient(90deg, #151528, #242035 50%, #151528); box-shadow: inset 1px 0 #e9caff19, inset -1px 0 #e9caff19; }
.sauce-slots .reel .reel-strip { display: flex; flex-direction: column; width: 100%; height: auto; animation: none; transition: none; filter: none; will-change: auto; }
.sauce-slots.is-spinning .reel-strip { will-change: transform; }
.sauce-slots .slot-symbol {
  box-sizing: border-box;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 var(--slot-cell);
  width: 100%;
  height: var(--slot-cell);
  min-height: var(--slot-cell);
  padding: 7px;
  opacity: 1;
  transform: none;
  transition: opacity 180ms ease, filter 180ms ease;
}
.sauce-slots .slot-symbol[data-slot-row="0"], .sauce-slots .slot-symbol[data-slot-row="2"] { opacity: 0.57; filter: saturate(0.75); }
.sauce-slots .slot-symbol > .slot-jewel {
  --jewel: #6eeac0;
  --jewel-dark: #133c38;
  position: relative;
  display: block;
  box-sizing: border-box;
  width: min(88%, 84px);
  height: calc(var(--slot-cell) - 15px);
  max-height: 84px;
  overflow: visible;
  border: 1px solid var(--jewel);
  border-radius: 15px 15px 22px 22px;
  padding: 4px;
  background: linear-gradient(135deg, #fff9, transparent 22%, #0007 70%, #fff4), var(--jewel-dark);
  box-shadow: inset 0 0 0 2px #ffffff12, 0 3px 0 #050916, 0 0 13px color-mix(in srgb, var(--jewel) 16%, transparent);
}
.sauce-slots .slot-symbol > .slot-jewel--king { --jewel: #ffe097; --jewel-dark: #6d4720; border-radius: 15px 15px 24px 24px; }
.sauce-slots .slot-symbol > .slot-jewel--shades { --jewel: #75eaff; --jewel-dark: #155067; border-radius: 9px; }
.sauce-slots .slot-symbol > .slot-jewel--party { --jewel: #ff91d7; --jewel-dark: #6c2458; border-radius: 22px 8px 22px 8px; }
.sauce-slots .slot-symbol > .slot-jewel--cowboy { --jewel: #bc9aff; --jewel-dark: #45316e; border-radius: 8px 22px 8px 22px; }
.sauce-slots .slot-symbol > .slot-jewel--sauce { --jewel: #6ce8ba; --jewel-dark: #144e44; border-radius: 50% 50% 38% 38%; }
.sauce-slots .slot-portrait { position: absolute; inset: 4px; display: block; overflow: hidden; border: 1px solid #fff4; border-radius: inherit; background: var(--jewel-dark); }
.sauce-slots .slot-portrait .charles-portrait { display: block; width: 100%; height: 100%; border-radius: inherit; filter: saturate(0.9) contrast(1.06); }
.sauce-slots .slot-portrait::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 9px #03061455; background: linear-gradient(145deg, #fff2, transparent 40%, color-mix(in srgb, var(--jewel) 24%, transparent)); pointer-events: none; }
.sauce-slots .slot-emblem { display: grid; place-items: center; position: absolute; z-index: 1; width: 21px; height: 21px; right: -5px; bottom: -3px; border: 1px solid var(--jewel); border-radius: 6px; color: var(--jewel); background: linear-gradient(135deg, var(--jewel-dark), #121322); box-shadow: 0 2px 5px #0009, inset 0 1px #fff3; }
.sauce-slots .slot-emblem svg { width: 15px; height: 15px; }
.sauce-slots .slot-jewel--king .slot-emblem { top: -8px; bottom: auto; right: calc(50% - 14px); width: 28px; height: 23px; border-radius: 7px; background: linear-gradient(135deg, #fff0b4, #af772d); color: #4f2c18; border-color: #ffe5a1; }
.sauce-slots .slot-jewel--king .slot-emblem svg { width: 21px; height: 21px; }
.sauce-slots .slot-facet { position: absolute; inset: -1px; border: 1px solid #fff2; border-radius: inherit; pointer-events: none; }
.sauce-slots .reel-shade { z-index: 2; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(#0c0c19aa, transparent 25%, transparent 75%, #0c0c19aa); box-shadow: inset 0 8px 10px #0003, inset 0 -8px 10px #0003; }
.sauce-slots .payline { z-index: 3; position: absolute; top: 50%; left: 4px; right: 4px; height: 0; border: 0; border-top: 1px solid #f1d6a545; box-shadow: none; pointer-events: none; }
.sauce-slots .payline::before, .sauce-slots .payline::after { content: ''; position: absolute; top: -4px; width: 7px; height: 7px; background: #d7bb83; transform: rotate(45deg); box-shadow: 0 0 6px #e8c88b55; }
.sauce-slots .payline::before { left: -9px; }
.sauce-slots .payline::after { right: -9px; }
.sauce-slots .payline i { position: absolute; top: calc(var(--slot-cell) / -2 + 3px); height: calc(var(--slot-cell) - 6px); width: 7px; border: solid #d9b67477; }
.sauce-slots .payline i:first-child { left: 6px; border-width: 1px 0 1px 2px; border-radius: 4px 0 0 4px; }
.sauce-slots .payline i:last-child { right: 6px; border-width: 1px 2px 1px 0; border-radius: 0 4px 4px 0; }
.sauce-slots .slot-readout { display: grid; place-items: center; min-height: 43px; margin-top: 4px; }
.sauce-slots .slot-message { display: block; grid-area: 1 / 1; margin: 0; padding: 8px 0 3px; font-size: 9px; font-weight: 650; line-height: 1.2; letter-spacing: 2px; color: #c0afce; }
.sauce-slots .slot-payout { grid-area: 1 / 1; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; padding: 5px 16px; border: 1px solid #edcb8244; border-radius: 7px; color: #fff1c3; background: linear-gradient(105deg, #6d4b2633, #b78b4033, #6d4b2611); }
.sauce-slots .slot-payout-label { font-size: 9px; font-weight: 750; letter-spacing: 1.5px; }
.sauce-slots .slot-payout strong { display: flex; align-items: center; gap: 7px; font-size: 25px; font-weight: 750; line-height: 1; letter-spacing: -0.7px; font-variant-numeric: tabular-nums; }
.sauce-slots .slot-payout strong small { margin-left: 2px; color: #edd6a7; font-size: 15px; }
.sauce-slots .slot-payout .coin-mark { display: inline-flex; width: 21px; height: 21px; }
.sauce-slots .slot-readout [hidden] { display: none; }
.sauce-slots .reel.spinning .reel-strip { filter: blur(1px); }
.sauce-slots .reel.is-braking .reel-strip { filter: blur(0.2px); }
.sauce-slots.is-spinning .slot-symbol { opacity: 0.8; filter: none; transition: none; }
.sauce-slots.is-spinning .slot-cabinet-light { background: #f0c7ff; box-shadow: 0 0 16px #c58bff; }
.sauce-slots.has-win .payline { border-color: #ffe5a3aa; box-shadow: 0 0 9px #ffd76f88; }
.sauce-slots.has-win .payline::before, .sauce-slots.has-win .payline::after { background: #fff1b9; box-shadow: 0 0 9px #ffe399; }
.sauce-slots.has-win .payline i { border-color: #ffeaad; }
.sauce-slots.has-win .slot-cabinet-light { background: #fff0b0; box-shadow: 0 0 14px #ffdd83aa; }
.sauce-slots .slot-symbol.is-winning { opacity: 1; filter: brightness(1.18) saturate(1.14); }
.sauce-slots .slot-symbol.is-winning > .slot-jewel { box-shadow: inset 0 0 0 1px #fff8, 0 0 0 1px var(--jewel), 0 0 16px color-mix(in srgb, var(--jewel) 55%, transparent), 0 4px 9px #0006; }
.sauce-slots.has-win .slot-symbol[data-slot-row="1"]:not(.is-winning) { opacity: 0.6; }
.sauce-slots.has-win .slot-payout { animation: sauce-slot-payout-in 300ms cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes sauce-slot-payout-in { from { opacity: 0; transform: translateY(5px) scale(0.97); } to { opacity: 1; transform: none; } }

@media (max-width: 1000px) and (min-width: 701px) {
  .sauce-slots { --slot-cell: 79px; padding: 16px 12px 5px; }
  .sauce-slots .slot-brand-mark { display: none; }
  .sauce-slots .slots-brand { font-size: 22px; }
  .sauce-slots .slots-brand small { font-size: 7px; letter-spacing: 1.4px; }
}
@media (max-width: 700px) {
  .game-workspace:has(.sauce-slots), .game-stage:has(.sauce-slots) { min-height: 0; }
  .stage-inner:has(> .sauce-slots) { min-height: 0; padding: 13px 12px 9px; }
  .sauce-slots { --slot-cell: 65px; max-width: 370px; padding: 12px 12px 3px; border-radius: 14px; }
  .sauce-slots::before { inset: 4px; border-radius: 10px; }
  .sauce-slots .slot-marquee { gap: 9px; margin-bottom: 11px; }
  .sauce-slots .slots-brand { gap: 7px; font-size: 22px; letter-spacing: -0.7px; }
  .sauce-slots .slots-brand small { margin-top: 5px; font-size: 6px; letter-spacing: 1.2px; }
  .sauce-slots .slot-brand-mark { width: 28px; height: 30px; border-radius: 7px; }
  .sauce-slots .slot-brand-mark svg { width: 21px; height: 21px; }
  .sauce-slots .slot-line-badge { padding-left: 9px; font-size: 16px; }
  .sauce-slots .slot-line-badge small { font-size: 6px; letter-spacing: 0.7px; }
  .sauce-slots .reel-frame { padding: 6px; border-radius: 9px; }
  .sauce-slots .reels { gap: 5px; border-radius: 5px; }
  .sauce-slots .slot-symbol { padding: 6px; }
  .sauce-slots .slot-symbol > .slot-jewel { width: min(89%, 64px); height: calc(var(--slot-cell) - 12px); padding: 3px; }
  .sauce-slots .slot-portrait { inset: 3px; }
  .sauce-slots .slot-emblem { width: 17px; height: 17px; right: -4px; bottom: -2px; border-radius: 4px; }
  .sauce-slots .slot-emblem svg { width: 12px; height: 12px; }
  .sauce-slots .slot-jewel--king .slot-emblem { top: -6px; right: calc(50% - 11px); width: 22px; height: 18px; border-radius: 5px; }
  .sauce-slots .slot-jewel--king .slot-emblem svg { width: 17px; height: 17px; }
  .sauce-slots .slot-readout { min-height: 33px; margin-top: 3px; }
  .sauce-slots .slot-message { font-size: 8px; letter-spacing: 1.4px; padding-top: 5px; }
  .sauce-slots .slot-payout { gap: 10px; padding: 4px 12px; }
  .sauce-slots .slot-payout-label { font-size: 8px; letter-spacing: 1px; }
  .sauce-slots .slot-payout strong { font-size: 20px; }
  .sauce-slots .slot-payout strong small { font-size: 12px; }
  .sauce-slots .slot-payout .coin-mark { width: 17px; height: 17px; }
  .game-workspace:has(.sauce-slots) .game-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; padding: 10px; }
  .game-workspace:has(.sauce-slots) .game-controls > .bet-area { min-width: 0; grid-column: 1; grid-row: 1 / 3; }
  .game-workspace:has(.sauce-slots) .game-controls > [data-paytable] { grid-column: 2; grid-row: 1; min-height: 44px; align-self: end; }
  .game-workspace:has(.sauce-slots) .game-controls > [data-bet] { grid-column: 2; grid-row: 2; min-height: 44px; }
  .game-workspace:has(.sauce-slots) .game-controls .bet-input-wrap input { min-height: 42px; font-size: 16px; }
  .game-workspace:has(.sauce-slots) .game-controls .bet-adjust button { min-height: 38px; }
}
/* Short phones: keep all three rows and the bet/spin panel above the bottom nav. */
@media (max-width: 700px) and (max-height: 740px) {
  .stage-inner:has(> .sauce-slots) { padding: 10px 11px 8px; }
  .sauce-slots { --slot-cell: 56px; max-width: 350px; padding: 10px 11px 2px; }
  .sauce-slots .slot-marquee { margin-bottom: 9px; }
  .sauce-slots .slots-brand { font-size: 21px; }
  .sauce-slots .slot-readout { min-height: 30px; }
  .sauce-slots .slot-payout { padding-top: 3px; padding-bottom: 3px; }
  .game-workspace:has(.sauce-slots) .round-result { min-height: 44px; padding-top: 8px; padding-bottom: 8px; }
}
@media (max-width: 359px) {
  .sauce-slots .slot-brand-mark { display: none; }
  .sauce-slots .slots-brand { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .sauce-slots *, .sauce-slots *::before, .sauce-slots *::after { animation: none !important; transition: none !important; }
}
