.reels {
  gap: 0;
  padding: 7px;
  border: 0;
  border-radius: 15px;
  background: linear-gradient(#f4b735, #9e4b0d);
  box-shadow: inset 0 0 24px #0008, 0 0 0 1px #ffdc71;
}

.reel {
  position: relative;
  overflow: hidden;
  gap: 0;
  padding: 3px 5px;
  background: linear-gradient(180deg, #25092e, #4f0750 48%, #23072d);
  border-right: 3px solid #df8d22;
  box-shadow: inset 0 18px 26px #0007, inset 0 -18px 26px #0007;
}

.reel-track {
  position: absolute;
  inset: 0;
  height: 400%;
  display: grid;
  grid-template-rows: repeat(12, 1fr);
  transform: translate3d(0, 0, 0);
  will-change: transform;
  backface-visibility: hidden;
  contain: layout paint style;
}

.reel.rolling .reel-track {
  transform: translate3d(0, -75%, 0);
  transition: transform 1.75s cubic-bezier(.08,.72,.18,1);
}

.reel:nth-child(2).rolling .reel-track { transition-duration: 2.25s; }
.reel:nth-child(3).rolling .reel-track { transition-duration: 2.85s; }

.reel.rolling:not(.stopped) .coin-symbol {
  filter: none;
  opacity: 1;
  transform: translateZ(0);
}

.reel.rolling:not(.stopped):after {
  display: none;
}

.reel:first-child { border-radius: 9px 0 0 9px; }
.reel:last-of-type { border-right: 0; border-radius: 0 9px 9px 0; }

.symbol {
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.coin-symbol {
  width: 76px;
  font-size: 12px;
  line-height: .88;
  box-shadow: 0 0 0 3px #743b0c, 0 7px 14px #0009, 0 0 18px #ffac2955;
}

.coin-symbol.mystery {
  background: radial-gradient(circle at 40% 28%, #ffd06f, #f04a25 42%, #681017 78%);
  border-color: #ff965e;
  color: #fff4c6;
  text-shadow: 0 2px #781016;
  font-size: 10px;
}

.coin-symbol.blank {
  background: radial-gradient(circle at 42% 28%, #ff815c, #d82c20 50%, #741015 80%);
  border-color: #ff9b61;
}

.coin-symbol.blank span { display: none; }

/* Reference-faithful artwork: the classic layout, with only softer framing. */
.app {
  padding-top: 8px;
  background:
    radial-gradient(circle at 50% 8%, #a50c07 0, #6c0505 23%, transparent 51%),
    linear-gradient(180deg, #530002 0%, #9c0904 47%, #ff3a08 100%);
}

.hero { height: 176px; display: grid; place-items: center; }
.brand-logo {
  display: block;
  width: min(94%, 438px);
  height: 176px;
  object-fit: contain;
  filter: drop-shadow(0 8px 10px #490000aa);
}

.machine {
  padding: 8px;
  border: 3px solid #ffb61f;
  border-radius: 22px;
  background: linear-gradient(145deg, #ffdd59, #b95a08 45%, #ffbd2c);
  box-shadow: 0 14px 35px #3b0000a8, inset 0 1px #fff4a8;
}

.reels { height: 430px; }
.symbol { min-height: 0; }
.coin-symbol {
  width: min(92px, 84%);
  border: 0;
  box-shadow: 0 7px 15px #16000aa0, 0 0 14px #ff9b224f;
  background-image: url('assets/coin-symbols.png');
  background-repeat: no-repeat;
  background-size: 300% 200%;
  overflow: hidden;
}
.coin-symbol:before { display: none; }
.coin-symbol span { opacity: 0; }
.coin-symbol.minor { background-position: 0 0; }
.coin-symbol.blank {
  background-image: url('assets/coin-symbols.png');
  background-size: 300% 200%;
  background-position: 50% 0;
}
.coin-symbol.major { background-position: 100% 0; }
.coin-symbol.mini { background-position: 0 100%; }
.coin-symbol.mystery { background-image: url('assets/coin-symbols.png'); background-size: 300% 200%; background-position: 50% 100%; }
.coin-symbol:not(.minor):not(.blank):not(.major):not(.mini):not(.mystery) { background-position: 100% 100%; }
.coin-symbol.jackpot { animation: jackpotGlow .72s ease-in-out infinite alternate; }

.reels.won {
  overflow: visible;
}
.reels.won:before {
  content: "";
  position: absolute;
  z-index: 2;
  left: 3px;
  right: 3px;
  top: 50%;
  height: 31%;
  transform: translateY(-50%);
  border: 3px solid #fff1a2;
  border-radius: 18px;
  background: linear-gradient(90deg, rgba(255,114,8,.2), rgba(255,234,102,.34), rgba(255,114,8,.2));
  box-shadow: 0 0 13px #fff3ac, 0 0 32px #ffbe29, inset 0 0 25px #ff8b19aa;
  pointer-events: none;
  animation: bigWinBand .52s ease-in-out infinite alternate;
}
.reels.won:after {
  content: var(--big-win-label, "BIG WIN");
  position: absolute;
  z-index: 8;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -235%);
  padding: 5px 18px 6px;
  border: 2px solid #fff0a1;
  border-radius: 999px;
  color: #fff8cc;
  background: linear-gradient(180deg, #ff7517, #b40b08);
  box-shadow: 0 0 14px #ffe56f, 0 4px 12px #310000aa;
  font-size: 14px;
  font-weight: 1000;
  letter-spacing: .12em;
  white-space: nowrap;
  pointer-events: none;
  animation: bigWinBadge .52s ease-in-out infinite alternate;
}
.reels.won .reel > .symbol:nth-child(2) {
  z-index: 5;
  animation: winningCell .52s ease-in-out infinite alternate;
}
.reels.won .reel > .symbol:nth-child(2) .coin-symbol {
  animation: winningCoin .52s ease-in-out infinite alternate;
}
@keyframes bigWinBand {
  from { opacity: .58; filter: brightness(.92); }
  to { opacity: 1; filter: brightness(1.35); box-shadow: 0 0 20px #fff9cf, 0 0 52px #ff9d16, inset 0 0 38px #ffd23fbb; }
}
@keyframes bigWinBadge {
  from { transform: translate(-50%, -235%) scale(.94); }
  to { transform: translate(-50%, -235%) scale(1.08); filter: brightness(1.25); }
}
@keyframes winningCell {
  from { filter: brightness(1); }
  to { filter: brightness(1.38); }
}
@keyframes winningCoin {
  from { transform: scale(1); filter: drop-shadow(0 0 7px #ff7a16); }
  to { transform: scale(1.11); filter: drop-shadow(0 0 18px #fff4a0) drop-shadow(0 0 28px #ff6a0b); }
}

.volcano-scene {
  width: 240px;
  height: 78px;
  margin-top: -7px;
  filter: drop-shadow(0 8px 10px #290000aa);
}
.volcano-scene .mountain {
  bottom: -24px;
  width: 220px;
  height: 100px;
  clip-path: polygon(50% 12%, 60% 24%, 69% 48%, 100% 100%, 0 100%, 31% 48%, 40% 24%);
  background:
    linear-gradient(100deg, transparent 0 43%, #ff5a17 44% 46%, #8d170d 47% 52%, #ff8b1f 53% 55%, transparent 56%),
    linear-gradient(112deg, #26070b 0 34%, #7b1713 35% 49%, #3b090c 50% 72%, #160508 73%);
  filter: drop-shadow(0 -3px 12px #ff351977);
}
.volcano-scene .crater {
  top: 5px;
  width: 67px;
  height: 21px;
  border: 5px solid #5f130f;
  background: radial-gradient(ellipse, #fff2a5 0 14%, #ffb51f 28%, #ff3c0d 55%, #530006 77%);
  box-shadow: 0 0 10px 3px #ffbd35, 0 0 27px 8px #ff3519aa;
}
.volcano-scene .flame {
  bottom: 52px;
  width: 27px;
  height: 54px;
  border-radius: 50% 50% 44% 56% / 70% 70% 30% 30%;
  background: radial-gradient(ellipse at 50% 70%, #fffbd0 0 12%, #ffd33f 23%, #ff6b16 55%, #f2120b 74%, transparent 76%);
  filter: drop-shadow(0 0 8px #ffdc57) drop-shadow(0 0 19px #ff3219);
  mix-blend-mode: screen;
  animation: volcanoFlame .55s ease-in-out infinite alternate;
}
.volcano-scene .flame-a { margin-left: -4px; transform: rotate(8deg); }
.volcano-scene .flame-b { margin-left: -24px; width: 21px; height: 42px; animation-delay: -.24s; }
.volcano-scene:before,
.volcano-scene:after {
  content: "";
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 57px;
  width: 15px;
  height: 36px;
  border-radius: 50% 50% 42% 58% / 72% 72% 28% 28%;
  background: radial-gradient(ellipse at 50% 72%, #fff 0 9%, #ffe66f 20%, #ff7b13 52%, #ef1807 73%, transparent 75%);
  filter: drop-shadow(0 0 12px #ff4a18);
  transform-origin: 50% 100%;
  animation: volcanoFlame .42s ease-in-out infinite alternate-reverse;
}
.volcano-scene:before { margin-left: 13px; transform: rotate(18deg); }
.volcano-scene:after { margin-left: -33px; height: 30px; transform: rotate(-18deg); animation-delay: -.15s; }
.volcano-scene .smoke {
  bottom: 82px;
  width: 28px;
  height: 28px;
  opacity: .3;
  background: #4e3131;
  filter: blur(6px);
  animation: smokeRise 2.1s ease-out infinite;
}
.volcano-scene .smoke-b { animation-delay: -1.05s; }
@keyframes volcanoFlame {
  from { transform: translateY(3px) scale(.84, .93) rotate(-5deg); }
  to { transform: translateY(-4px) scale(1.05, 1.14) rotate(7deg); }
}
@keyframes smokeRise {
  from { transform: translate(-50%, 8px) scale(.55); opacity: .32; }
  to { transform: translate(-50%, -42px) scale(1.65); opacity: 0; }
}
.primary {
  min-height: 64px;
  margin-top: -8px;
  overflow: hidden;
  border: 2px solid #ffd569;
  border-radius: 19px;
  color: #fffdf0;
  background: linear-gradient(135deg, #21a866 0%, #38d881 48%, #13824c 100%);
  box-shadow: 0 10px 25px #26000388, 0 0 20px #37da8060, inset 0 1px #dcffea, inset 0 -2px #075b34aa;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
  animation: ctaBreath 1.9s ease-in-out infinite;
}
.primary span { position: relative; z-index: 2; font-size: 22px; letter-spacing: .09em; text-shadow: 0 2px 4px #064e30; }
.primary:before,
.claim:before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  left: -45%;
  width: 32%;
  transform: skewX(-22deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.42), transparent);
  animation: ctaShine 3.2s ease-in-out infinite;
}
.primary:after,
.claim:after {
  content: "›";
  position: absolute;
  z-index: 2;
  right: 15px;
  top: 50%;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid #ffe8a0aa;
  border-radius: 50%;
  color: #fff8d2;
  background: rgba(5,83,48,.34);
  font-size: 27px;
  line-height: 1;
  box-shadow: inset 0 1px rgba(255,255,255,.2);
}
.primary:hover { filter: brightness(1.06); }
.primary:active {
  transform: translateY(2px) scale(.99);
  box-shadow: 0 5px 14px #2c000666, 0 0 12px #37da8050, inset 0 1px #ddffea;
}

@media(max-height:760px) {
  .hero { height: 142px; }
  .brand-logo { height: 148px; }
  .reels { height: 355px; }
  .volcano-scene { display: none; }
  .primary { margin-top: 12px; }
}

/* Win screen continues the red, gold and purple machine palette. */
.modal {
  background: rgba(43, 0, 4, .82);
  backdrop-filter: blur(12px) saturate(1.15);
}
.modal-card {
  padding: 20px 22px 24px;
  border: 3px solid #ffc83f;
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 13%, #df3218 0, #8f0908 34%, transparent 61%),
    linear-gradient(180deg, #590007 0%, #9d0908 54%, #3c0010 100%);
  box-shadow:
    0 28px 80px #260000,
    0 0 0 5px #9c450b,
    0 0 46px #ff651b66,
    inset 0 1px #fff1a3;
}
.modal-card:after {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: 0;
  border: 1px solid #ffd56375;
  border-radius: 19px;
  pointer-events: none;
}
.modal-brand {
  position: relative;
  z-index: 2;
  display: block;
  width: 230px;
  height: 112px;
  margin: -12px auto -13px;
  object-fit: contain;
  filter: drop-shadow(0 8px 9px #3b0000aa);
}
.modal-kicker {
  margin: 8px 0 5px;
  color: #ffe291;
}
.modal h2 {
  font-size: 58px;
  line-height: .84;
  background: linear-gradient(#fff9bf 0%, #ffd64f 42%, #ff8a16 72%, #f02b13 100%);
  -webkit-background-clip: text;
  filter: drop-shadow(0 4px #681006) drop-shadow(0 0 12px #ffb12966);
}
.congrats { color: #ffe9c2; }
.reward {
  border: 2px solid #f7b72f;
  border-radius: 18px;
  background: linear-gradient(180deg, #5c075e, #25062f);
  box-shadow: inset 0 1px #f6a5ff55, 0 8px 20px #2c000888;
}
.reward strong { color: #fff4ad; }
.reward span { color: #ffc44e; }
.claim {
  overflow: hidden;
  border: 2px solid #ffd569;
  border-radius: 17px;
  color: #fffdf0;
  background: linear-gradient(135deg, #1c9a5c 0%, #37d580 48%, #117745 100%);
  box-shadow: 0 9px 22px #29000488, 0 0 19px #37da8050, inset 0 1px #e4ffec, inset 0 -2px #075b34aa;
  letter-spacing: .055em;
  text-shadow: 0 2px 4px #064e30;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
.claim:hover { filter: brightness(1.06); }
.claim:active {
  transform: translateY(2px) scale(.99);
  box-shadow: 0 5px 14px #29000477, inset 0 1px #e4ffec;
}
@keyframes ctaBreath {
  0%, 100% { transform: scale(1); box-shadow: 0 10px 25px #26000388, 0 0 14px #37da8045, inset 0 1px #dcffea, inset 0 -2px #075b34aa; }
  50% { transform: scale(1.018); box-shadow: 0 12px 29px #26000388, 0 0 28px #51ee9875, inset 0 1px #dcffea, inset 0 -2px #075b34aa; }
}
@keyframes ctaShine {
  0%, 55% { left: -45%; opacity: 0; }
  62% { opacity: 1; }
  82%, 100% { left: 120%; opacity: 0; }
}
.modal-legal { color: #d39a87; }
