/* SlotGuard gameplay layer — existing brand palette only. */
main > section:first-of-type {
  isolation: isolate;
  background:
    radial-gradient(circle at 78% 44%, rgba(37, 168, 82, 0.07), transparent 31%),
    radial-gradient(circle at 18% 34%, rgba(37, 168, 82, 0.035), transparent 27%);
}

main > section:first-of-type > div {
  position: relative;
  z-index: 2;
}

main > section:first-of-type::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 520px;
  aspect-ratio: 1;
  right: max(-150px, calc((100vw - 1120px) / 2 - 190px));
  top: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.045);
  background:
    radial-gradient(circle, rgba(37, 168, 82, 0.14) 0 3%, transparent 3.5% 9%, rgba(255, 255, 255, 0.055) 9.5% 10.5%, transparent 11% 24%, rgba(37, 168, 82, 0.08) 24.5% 26%, transparent 26.5% 44%, rgba(255, 255, 255, 0.055) 44.5% 46%, transparent 46.5% 63%, rgba(37, 168, 82, 0.09) 63.5% 66%, transparent 66.5%),
    repeating-conic-gradient(
      from -2deg,
      rgba(37, 168, 82, 0.14) 0 4.3deg,
      rgba(255, 255, 255, 0.025) 4.3deg 8.6deg
    );
  box-shadow:
    inset 0 0 0 18px rgba(255, 255, 255, 0.012),
    inset 0 0 70px rgba(0, 0, 0, 0.3),
    0 0 70px rgba(37, 168, 82, 0.035);
  opacity: 0.66;
  pointer-events: none;
  animation: sg-casino-wheel 36s linear infinite;
}

main > section:first-of-type::after {
  content: "";
  position: absolute;
  z-index: 1;
  right: calc((100vw - 1120px) / 2 + 66px);
  top: 268px;
  width: 9px;
  height: 9px;
  border: 1px solid rgba(242, 243, 247, 0.55);
  border-radius: 50%;
  background: rgba(242, 243, 247, 0.72);
  box-shadow: 0 0 12px rgba(242, 243, 247, 0.38), 0 0 24px rgba(37, 168, 82, 0.2);
  pointer-events: none;
  animation: sg-roulette-ball 7.4s cubic-bezier(.48, .12, .48, .88) infinite;
}

main > section:first-of-type > div > div:first-child {
  position: relative;
}

main > section:first-of-type > div > div:first-child::before,
main > section:first-of-type > div > div:first-child::after {
  white-space: pre;
  position: absolute;
  z-index: -1;
  width: 48px;
  height: 68px;
  padding: 8px 9px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.022);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25), inset 0 1px rgba(255, 255, 255, 0.05);
  color: rgba(125, 227, 166, 0.17);
  font: 500 13px/1.05 "Inter Variable", Inter, sans-serif;
  pointer-events: none;
}

main > section:first-of-type > div > div:first-child::before {
  content: "A\A♠";
  left: -88px;
  top: 38px;
  transform: rotate(-15deg);
  animation: sg-card-left 7.6s ease-in-out infinite;
}

main > section:first-of-type > div > div:first-child::after {
  content: "7\A♣";
  left: -58px;
  top: 31px;
  transform: rotate(7deg);
  animation: sg-card-right 7.6s ease-in-out infinite;
}

main > section:first-of-type h1 {
  text-wrap: balance;
  text-shadow: 0 16px 50px rgba(0, 0, 0, 0.42);
}

main > section:first-of-type [data-placement="hero_badge"] {
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.22), inset 0 1px rgba(255, 255, 255, 0.07);
}

main > section:first-of-type [data-placement="hero"] {
  position: relative;
  overflow: hidden;
}

main > section:first-of-type [data-placement="hero"]::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-135%) skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  animation: sg-cta-shine 5.4s ease-in-out infinite;
}

.glass[role="group"] {
  overflow: clip !important;
  border-color: rgba(255, 255, 255, 0.11);
  background:
    linear-gradient(145deg, rgba(37, 168, 82, 0.035), transparent 45%),
    rgba(255, 255, 255, 0.05);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.43), inset 0 1px rgba(255, 255, 255, 0.1);
}

.glass[role="group"]::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 210px;
  height: 210px;
  right: -88px;
  bottom: -112px;
  border: 1px solid rgba(37, 168, 82, 0.13);
  border-radius: 50%;
  box-shadow:
    0 0 0 16px rgba(37, 168, 82, 0.025),
    0 0 0 36px rgba(37, 168, 82, 0.018);
  pointer-events: none;
}

.glass[role="group"]::after {
  content: "7";
  position: absolute;
  z-index: 0;
  right: 20px;
  bottom: 18px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px dashed rgba(125, 227, 166, 0.22);
  border-radius: 50%;
  color: rgba(125, 227, 166, 0.2);
  font-size: 12px;
  pointer-events: none;
}

.glass[role="group"] [class*="grid-cols-3"] > span {
  display: grid;
  position: relative;
  place-items: center;
  overflow: hidden;
  color: rgba(242, 243, 247, 0.48);
  font: 500 16px/1 "Inter Variable", Inter, sans-serif;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.045);
}

.glass[role="group"] [class*="grid-cols-3"] > span::after {
  opacity: 0.74;
  transform: translateY(0);
  animation: sg-reel-settle 5.8s cubic-bezier(.22, .7, .22, 1) infinite;
}

.glass[role="group"] [class*="grid-cols-3"] > span:nth-child(1)::after { content: "♠"; }
.glass[role="group"] [class*="grid-cols-3"] > span:nth-child(2)::after { content: "7"; animation-delay: 0.12s; }
.glass[role="group"] [class*="grid-cols-3"] > span:nth-child(3)::after { content: "♦"; animation-delay: 0.24s; }
.glass[role="group"] [class*="grid-cols-3"] > span:nth-child(4)::after { content: "♣"; animation-delay: 0.36s; }
.glass[role="group"] [class*="grid-cols-3"] > span:nth-child(5)::after { content: "●"; animation-delay: 0.48s; }
.glass[role="group"] [class*="grid-cols-3"] > span:nth-child(6)::after { content: "♥"; animation-delay: 0.6s; }

main > section:nth-of-type(2) .glass {
  position: relative;
  overflow: hidden;
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

main > section:nth-of-type(2) .glass::after {
  position: absolute;
  right: 17px;
  bottom: 12px;
  color: rgba(242, 243, 247, 0.055);
  font-size: 42px;
  line-height: 1;
  pointer-events: none;
}

main > section:nth-of-type(2) .glass:nth-child(1)::after { content: "♠"; }
main > section:nth-of-type(2) .glass:nth-child(2)::after { content: "♦"; }
main > section:nth-of-type(2) .glass:nth-child(3)::after { content: "♣"; }

main > section:nth-of-type(2) .glass:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.38), inset 0 1px rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

@keyframes sg-casino-wheel {
  to { transform: rotate(360deg); }
}

@keyframes sg-card-left {
  0%, 100% { transform: translateY(0) rotate(-15deg); }
  50% { transform: translateY(-6px) rotate(-12deg); }
}

@keyframes sg-card-right {
  0%, 100% { transform: translateY(0) rotate(7deg); }
  50% { transform: translateY(-9px) rotate(10deg); }
}

@keyframes sg-roulette-ball {
  0% { transform: rotate(0deg) translateX(212px) rotate(0deg); }
  68% { transform: rotate(300deg) translateX(198px) rotate(-300deg); }
  82% { transform: rotate(338deg) translateX(185px) rotate(-338deg); }
  100% { transform: rotate(360deg) translateX(180px) rotate(-360deg); }
}

@keyframes sg-cta-shine {
  0%, 68% { transform: translateX(-135%) skewX(-18deg); }
  86%, 100% { transform: translateX(135%) skewX(-18deg); }
}

@keyframes sg-reel-settle {
  0%, 74%, 100% { opacity: 0.74; transform: translateY(0) scale(1); filter: blur(0); }
  78% { opacity: 0; transform: translateY(-65%) scale(0.92); filter: blur(1px); }
  79% { opacity: 0; transform: translateY(65%) scale(0.92); filter: blur(1px); }
  88% { opacity: 0.85; transform: translateY(0) scale(1.06); filter: blur(0); }
}

@media (max-width: 900px) {
  main > section:first-of-type::before {
    width: 390px;
    right: -210px;
    top: 230px;
    opacity: 0.5;
  }

  main > section:first-of-type::after {
    display: none;
  }

  main > section:first-of-type > div > div:first-child::before,
  main > section:first-of-type > div > div:first-child::after {
    display: none;
  }
}

@media (max-width: 640px) {
  main > section:first-of-type {
    background: radial-gradient(circle at 82% 60%, rgba(37, 168, 82, 0.055), transparent 32%);
  }

  .glass[role="group"]::after {
    display: none;
  }

  main > section:nth-of-type(2) .glass:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  main > section:first-of-type::before,
  main > section:first-of-type::after,
  main > section:first-of-type > div > div:first-child::before,
  main > section:first-of-type > div > div:first-child::after,
  main > section:first-of-type [data-placement="hero"]::after,
  .glass[role="group"] [class*="grid-cols-3"] > span::after {
    animation: none !important;
  }
}
