/* Preview-only Lapdee-inspired background. */
html,
body {
  background: #2f0704;
}

.site-canvas {
  isolation: isolate;
  background-color: #5e0f0b;
  background-image:
    radial-gradient(circle at 8% 13%, rgba(255, 228, 116, 0.72) 0 7px, rgba(177, 105, 22, 0.66) 8px 13px, transparent 14px),
    radial-gradient(circle at 94% 69%, rgba(255, 214, 77, 0.42) 0 14px, rgba(151, 83, 13, 0.48) 15px 22px, transparent 23px),
    radial-gradient(ellipse 86% 48% at 50% 25%, rgba(226, 92, 45, 0.55), transparent 70%),
    radial-gradient(ellipse 125% 72% at 50% 100%, rgba(255, 190, 60, 0.24), transparent 61%),
    linear-gradient(180deg, #570c08 0%, #8f1a12 42%, #4a0a07 100%);
  background-repeat: no-repeat;
  background-size: auto;
}

.site-canvas::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 95%, transparent 0 182px, rgba(246, 195, 60, 0.09) 184px 186px, transparent 188px 238px, rgba(246, 195, 60, 0.06) 240px 242px, transparent 244px),
    linear-gradient(112deg, transparent 0 12%, rgba(255, 226, 128, 0.045) 12.2% 12.6%, transparent 12.8% 86%, rgba(255, 226, 128, 0.04) 86.2% 86.6%, transparent 86.8%);
}

.header,
.header-spacer,
.slot-wrapper,
.spin-action {
  position: relative;
  z-index: 1;
}

.header {
  isolation: isolate;
}

.header::before {
  position: absolute;
  inset: -12px 10px -8px;
  z-index: -1;
  content: "";
  pointer-events: none;
  border: 3px solid #6d3d19;
  border-radius: 9px;
  outline: 1px solid #f3c53d;
  outline-offset: -5px;
  background:
    radial-gradient(ellipse at 50% 5%, rgba(255, 224, 126, 0.16), transparent 65%),
    linear-gradient(180deg, #a4271a 0%, #74120d 64%, #4e0b08 100%);
  box-shadow:
    inset 0 4px 0 rgba(255, 184, 79, 0.16),
    inset 0 -8px 16px rgba(0, 0, 0, 0.34),
    0 5px 14px rgba(38, 5, 3, 0.42);
}

.heading {
  color: #fff0b3;
  font-weight: 700;
  text-shadow: 0 2px 2px rgba(0, 0, 0, 0.8), 0 0 12px rgba(246, 197, 61, 0.35);
}

.jackpot-box {
  border: 1px solid #d99b21;
  border-radius: 4px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 215, 93, 0.14), transparent 70%),
    linear-gradient(180deg, rgba(144, 27, 17, 0.96), rgba(84, 14, 9, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 235, 163, 0.35),
    inset 0 -8px 18px rgba(0, 0, 0, 0.28),
    0 4px 16px rgba(32, 5, 3, 0.46);
  color: #fff2bd;
  text-shadow: 0 2px 1px rgba(0, 0, 0, 0.82);
}

.slot-wrapper::before {
  position: absolute;
  top: -8px;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 517px;
  content: "";
  pointer-events: none;
  border: 10px solid #6d3d19;
  border-radius: 14px;
  outline: 3px solid #d99b21;
  outline-offset: -4px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.28), transparent 13%, transparent 87%, rgba(0, 0, 0, 0.32)),
    repeating-linear-gradient(90deg, #24904a 0 38px, #1f843f 38px 76px);
  box-shadow:
    inset 0 0 38px rgba(0, 0, 0, 0.52),
    inset 0 5px 0 rgba(255, 210, 120, 0.16),
    0 8px 20px rgba(34, 5, 3, 0.5);
}

.slot-wrapper::after {
  position: absolute;
  top: -8px;
  left: 14px;
  z-index: 0;
  width: calc(100% - 28px);
  height: 9px;
  content: "";
  pointer-events: none;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(90deg, #5a2d0e, #ba7839 22%, #704018 50%, #ba7839 78%, #5a2d0e);
  box-shadow: 0 2px 0 #2e1708;
}

.slot-machine {
  z-index: 1;
}

.spin-button {
  border: 2px solid #9a6410;
  background: linear-gradient(180deg, #fff0a7 0%, #f3c53d 70%, #c98816 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.62), 0 5px 14px rgba(42, 8, 4, 0.5);
  color: #3b2108;
}

.music-toggle {
  border-color: #f3c53d;
  background: rgba(91, 15, 10, 0.92);
  color: #ffeaa7;
}

@media (max-width: 530px) {
  .slot-wrapper::before {
    top: 92px;
    height: 317px;
    border-width: 8px;
    border-radius: 11px;
  }

  .slot-wrapper::after {
    top: 92px;
    left: 12px;
    width: calc(100% - 24px);
    height: 8px;
  }
}

@media (max-width: 530px) and (min-height: 760px) {
  .slot-wrapper {
    margin-top: -20px;
    margin-bottom: -10px;
  }

  .reel {
    transform: scale(0.88);
  }

  .reel-two {
    transform: translateX(-50%) scale(0.88);
  }

  .slot-machine {
    top: 22px;
  }

  .slot-wrapper::before {
    top: 46px;
    height: 433px;
    border-width: 9px;
    border-radius: 12px;
  }

  .slot-wrapper::after {
    top: 2px;
    left: 0;
    width: 100%;
    height: 44px;
    content: "×2      ×4      ×6      ×10";
    border: 3px solid #6d3d19;
    border-radius: 10px 10px 0 0;
    background: linear-gradient(180deg, #b84324 0%, #8f1a12 48%, #56100b 100%);
    box-shadow:
      inset 0 3px 0 rgba(255, 212, 112, 0.2),
      inset 0 -7px 12px rgba(0, 0, 0, 0.34),
      0 3px 0 #2e1708;
    color: #f3c53d;
    font-family: Georgia, serif;
    font-size: 22px;
    font-style: italic;
    font-weight: 800;
    line-height: 38px;
    text-align: center;
    text-shadow: 0 0 9px rgba(255, 214, 79, 0.74), 0 2px 0 rgba(0, 0, 0, 0.7);
    white-space: pre;
  }

  .music-toggle {
    top: 7px;
    right: 8px;
  }
}

@media (max-width: 340px) {
  .heading {
    font-size: 18px;
  }
}
