/* ---------- Hero carousel ---------- */
.hero {
  position: relative; height: clamp(340px, 31vw, 540px);
  overflow: hidden; background: #0a0c11; isolation: isolate; touch-action: pan-y;
}
.slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity .7s ease, visibility 0s linear .7s;
}
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .7s ease, visibility 0s; }
.slide:not(.is-active) * { animation-play-state: paused !important; }
.slide-art { position: absolute; inset: 0; overflow: hidden; }
.slide-art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(8,9,14,.86) 0%, rgba(8,9,14,.55) 30%, rgba(8,9,14,0) 56%);
}
.visual {
  position: absolute; top: 0; bottom: 0; right: 3%; width: 58%;
  display: grid; place-items: center;
}

.slide-copy {
  position: absolute; z-index: 2; left: 0; top: 0; bottom: 0; width: min(58%, 860px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(12px, 1.5vw, 24px); text-align: center;
  padding: 24px 16px 40px clamp(64px, 6vw, 110px);
}
.slide.is-active .slide-copy > * { animation: rise .6s cubic-bezier(.2, .8, .2, 1); }
.slide.is-active .slide-copy > :nth-child(2) { animation-delay: .06s; }
.slide.is-active .slide-copy > :nth-child(3) { animation-delay: .12s; }
@keyframes rise { from { transform: translateY(14px); } to { transform: none; } }

.ribbon { display: inline-flex; align-items: stretch; gap: 6px; font: 800 italic clamp(13px, 1.1vw, 18px)/1 var(--font-display); text-transform: uppercase; }
.ribbon i { width: 9px; background: var(--signal); transform: skewX(-14deg); }
.ribbon b {
  font-weight: inherit; padding: .5em 1.3em .42em; color: #fff;
  background: linear-gradient(180deg, var(--signal-hi), var(--signal));
  transform: skewX(-14deg);
}
.ribbon b span { display: inline-block; transform: skewX(14deg); }
.headline {
  margin: 0; max-width: 14ch; text-wrap: balance;
  font: 900 italic clamp(34px, 4.3vw, 74px)/.98 var(--font-display);
  text-transform: uppercase; letter-spacing: -.01em; color: #fff;
  text-shadow: 0 4px 0 rgba(0,0,0,.35), 0 10px 30px rgba(0,0,0,.6);
}
.cta {
  position: relative; border: 0; cursor: pointer;
  padding: .62em 2.2em .58em;
  font: 900 italic clamp(20px, 2.2vw, 36px)/1 var(--font-display); text-transform: uppercase; color: #16120a;
  background:
    repeating-linear-gradient(180deg, rgba(255,255,255,0) 0 55%, rgba(255,255,255,.22) 55% 58%, rgba(255,255,255,0) 58% 64%),
    linear-gradient(180deg, #ffe27a 0%, #ffc928 45%, #f2a50d 100%);
  transform: skewX(-14deg);
  box-shadow: 6px 6px 0 #b8740a, 0 14px 30px rgba(0,0,0,.45);
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.cta > span { display: inline-block; transform: skewX(14deg); }
.cta:hover { filter: brightness(1.06); transform: skewX(-14deg) translateY(-2px); }
.cta:active { transform: skewX(-14deg) translate(3px, 3px); box-shadow: 3px 3px 0 #b8740a; }
.fine { margin: 0; font-size: 12px; line-height: 1.4; color: rgba(255,255,255,.72); max-width: 52ch; }

.hero-nav {
  position: absolute; top: 50%; z-index: 3; transform: translateY(-50%);
  width: 44px; height: 64px; display: grid; place-items: center;
  background: none; border: 0; color: #fff; opacity: .8; cursor: pointer;
}
.hero-nav .ico { width: 40px; height: 40px; stroke-width: 2.4; }
.hero-nav:hover { opacity: 1; }
.hero-nav--prev { left: calc(6px + env(safe-area-inset-left, 0px)); }
.hero-nav--next { right: calc(6px + env(safe-area-inset-right, 0px)); }
.hero-dots { position: absolute; z-index: 3; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; gap: 4px; }
.dot { width: 26px; height: 20px; padding: 0; display: grid; place-items: center; background: none; border: 0; cursor: pointer; }
.dot::before { content: ""; width: 100%; height: 5px; background: rgba(255,255,255,.55); transition: background .2s; }
.dot[aria-current="true"]::before { background: var(--flag); }

/* Slide 1: race car on the infield */
.art-race {
  background:
    radial-gradient(ellipse 60% 55% at 62% -8%, rgba(255,255,255,.2), transparent 70%),
    linear-gradient(180deg, #16181d 0%, #0f1114 46%, #0b0d0f 100%);
}
.bokeh {
  position: absolute; inset: 0 0 40% 0; filter: blur(1.5px);
  background:
    radial-gradient(circle at 6% 30%, rgba(255,231,180,.55) 0 2px, transparent 5px),
    radial-gradient(circle at 14% 18%, rgba(255,231,180,.4) 0 3px, transparent 7px),
    radial-gradient(circle at 23% 34%, rgba(200,220,255,.4) 0 2px, transparent 6px),
    radial-gradient(circle at 37% 14%, rgba(255,231,180,.5) 0 3px, transparent 7px),
    radial-gradient(circle at 48% 28%, rgba(255,255,255,.35) 0 2px, transparent 6px),
    radial-gradient(circle at 58% 10%, rgba(255,231,180,.55) 0 4px, transparent 9px),
    radial-gradient(circle at 71% 22%, rgba(200,220,255,.45) 0 3px, transparent 7px),
    radial-gradient(circle at 83% 12%, rgba(255,231,180,.5) 0 3px, transparent 8px),
    radial-gradient(circle at 93% 30%, rgba(255,255,255,.35) 0 2px, transparent 6px);
}
.watermark {
  position: absolute; top: 6%; left: -6%; display: flex; gap: .4em; white-space: nowrap;
  font: 900 italic clamp(70px, 10vw, 190px)/1 var(--font-display);
  color: rgba(255,255,255,.05); -webkit-text-stroke: 1px rgba(255,255,255,.08);
  transform: perspective(800px) rotateY(-18deg) rotateX(8deg); transform-origin: left center;
  filter: blur(1.2px);
}
.grass {
  position: absolute; left: 0; right: 0; bottom: 0; height: 52%;
  background:
    radial-gradient(ellipse 45% 55% at 66% 72%, rgba(255,255,255,.13), transparent 70%),
    linear-gradient(180deg, rgba(11,13,15,.95) 0%, rgba(11,13,15,0) 42%),
    repeating-linear-gradient(100deg, #2d6a20 0 7%, #37792a 7% 14%);
}
.visual--car { align-items: end; padding-bottom: 4%; }
.car { width: 100%; max-width: 780px; height: auto; transform: rotate(-3deg); filter: drop-shadow(0 18px 18px rgba(0,0,0,.5)); }
.car-text { font: 900 italic 22px var(--font-display); fill: #fff; letter-spacing: .02em; }
.spokes { transform-box: fill-box; transform-origin: center; animation: rot .9s linear infinite reverse; }
.streaks path { stroke-dasharray: 60 180; animation: streak 1s linear infinite; }
@keyframes streak { to { stroke-dashoffset: -240; } }
@keyframes rot { to { transform: rotate(360deg); } }

/* Slide 2: slot machine */
.art-reels { background: radial-gradient(circle at 68% 50%, #7a1b8f 0%, #3a0c4c 38%, #14051c 75%); }
.sunburst {
  position: absolute; left: 50%; top: 50%; width: 150%; aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%;
  background: repeating-conic-gradient(rgba(255,255,255,.08) 0 6deg, transparent 6deg 12deg);
  -webkit-mask-image: radial-gradient(circle, #000 0 18%, transparent 62%);
  mask-image: radial-gradient(circle, #000 0 18%, transparent 62%);
  animation: rot 60s linear infinite;
}
.machine {
  position: relative; width: min(100%, 470px); aspect-ratio: 1.38; container-type: inline-size;
  border-radius: 6% / 8%;
  background: linear-gradient(180deg, #ff3b52, #b30f25 55%, #6e0715);
  box-shadow: inset 0 0 0 1.4cqi #ffcf4a, inset 0 0 0 2.4cqi #7a0816, 0 30px 60px rgba(0,0,0,.6), 0 0 80px rgba(255,60,120,.35);
  transform: perspective(900px) rotateY(-14deg) rotateX(4deg);
}
.lights {
  position: absolute; left: 6%; right: 6%; top: 1.6%; height: 2.6cqi;
  background: radial-gradient(circle, #fff3a6 0 40%, transparent 46%) 0 0 / 4cqi 100% repeat-x;
  animation: chase .8s steps(2) infinite;
}
@keyframes chase { to { background-position: 4cqi 0; } }
.machine-top {
  position: absolute; left: 8%; right: 8%; top: 6%; height: 13%;
  display: grid; place-items: center; border-radius: 3cqi;
  font: 400 7cqi/1 "Luckiest Guy", "Arial Black", sans-serif; letter-spacing: .06em; color: #ffe36e;
  text-shadow: 0 .08em 0 #7a0816; background: #2a0510; box-shadow: inset 0 0 0 .6cqi #ffcf4a;
}
.reels {
  position: absolute; left: 7%; right: 7%; top: 24%; bottom: 9%;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4cqi; padding: 2cqi;
  background: #1a0309; border-radius: 3cqi; box-shadow: inset 0 0 0 .6cqi #ffcf4a;
}
.reel {
  position: relative; overflow: hidden; border-radius: 2cqi;
  background: linear-gradient(180deg, #d9d3c4, #fffdf6 30%, #fffdf6 70%, #d9d3c4);
}
.reel::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.35), transparent 28%, transparent 72%, rgba(0,0,0,.35));
}
.strip { position: absolute; left: 0; right: 0; top: 0; height: 1000%; display: grid; grid-template-rows: repeat(10, 1fr); }
.slide.is-active .strip { animation: reelSpin 4.2s cubic-bezier(.2, .7, .25, 1) infinite; }
.reel:nth-child(2) .strip { animation-delay: .18s; }
.reel:nth-child(3) .strip { animation-delay: .36s; }
@keyframes reelSpin {
  0%, 12% { transform: translateY(0); }
  45%, 100% { transform: translateY(-90%); }
}
.sym {
  display: grid; place-items: center;
  font: 400 21cqi/1 "Luckiest Guy", "Arial Black", sans-serif; color: #d3112b; text-shadow: 0 .05em 0 #7a0816;
}
.sym .ico { width: 15cqi; height: 15cqi; fill: currentColor; stroke: rgba(0,0,0,.3); stroke-width: 1.2; }
.sym--star { color: #f5b400; }
.sym--gem { color: #1aa3d9; }
.sym--bar span {
  font-size: 7.5cqi; color: #1b1b1b; text-shadow: none;
  border: .14em solid #1b1b1b; padding: .1em .25em 0; border-radius: .18em;
}
.lever {
  position: absolute; right: -4.5%; top: 26%; width: 2.2%; height: 36%; border-radius: 2cqi;
  background: linear-gradient(90deg, #8d8d8d, #eee, #8d8d8d);
}
.lever::before {
  content: ""; position: absolute; top: -6cqi; left: 50%; translate: -50% 0;
  width: 7cqi; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff8a96, #c8102e 60%);
}

/* Slide 3: cashback chips */
.art-cash { background: radial-gradient(circle at 70% 45%, #127a83, #062a33 55%, #04131a); }
.chip {
  position: relative; border-radius: 50%; aspect-ratio: 1;
  display: grid; place-items: center; container-type: inline-size;
  background:
    radial-gradient(circle, transparent 0 63%, rgba(0,0,0,.25) 63.5% 65%, transparent 65.5%),
    repeating-conic-gradient(from -7.5deg, #f4f4f4 0 15deg, var(--chip) 15deg 45deg);
  box-shadow: 0 0 0 2px rgba(0,0,0,.25), 0 24px 50px rgba(0,0,0,.55);
}
.chip::before {
  content: ""; position: absolute; inset: 17%; border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, var(--chip-hi), var(--chip) 62%);
  border: 2px dashed rgba(255,255,255,.65);
  box-shadow: 0 0 0 4px var(--chip), inset 0 2px 8px rgba(0,0,0,.25);
}
.chip > span {
  position: relative; font: 900 italic 24cqi/1 var(--font-display); color: #fff;
  letter-spacing: -.02em; text-shadow: 0 .05em 0 rgba(0,0,0,.35);
}
.chip--main { --chip: #e8162e; --chip-hi: #ff6a7a; height: 74%; transform: rotate(-8deg); }
.chip--a { --chip: #1667d9; --chip-hi: #5ea0ff; position: absolute; height: 30%; left: 6%; top: 10%; transform: rotate(18deg); animation: float 6s ease-in-out infinite; }
.chip--b { --chip: #141414; --chip-hi: #3a3a3a; position: absolute; height: 24%; right: 6%; bottom: 10%; animation: float 7s ease-in-out infinite reverse; }
@keyframes float { 50% { translate: 0 -12px; } }

/* Slide 4: slot race */
.art-flag { background: radial-gradient(circle at 70% 55%, #4a3407 0%, #1a1203 45%, #090703 80%); }
.checker {
  position: absolute; top: -15%; right: -12%; width: 70%; height: 130%; opacity: .32;
  background:
    linear-gradient(90deg, rgba(0,0,0,.45), transparent 18%, rgba(0,0,0,.35) 36%, transparent 54%, rgba(0,0,0,.4) 72%, transparent 90%),
    conic-gradient(#ececec 25%, #121212 0 50%, #ececec 0 75%, #121212 0) 0 0 / 64px 64px;
  transform: perspective(900px) rotateY(-38deg) rotateZ(-10deg);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%);
  mask-image: linear-gradient(90deg, transparent, #000 35%);
}
.trophy-glow {
  position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,201,40,.42), transparent 65%);
}
.trophy { position: relative; height: 84%; width: auto; filter: drop-shadow(0 20px 30px rgba(0,0,0,.6)); }

/* ---------- Hero on phones ---------- */
@media (max-width: 759px) {
  .hero { height: 500px; }
  .slide-art::after { background: linear-gradient(0deg, rgba(8,9,14,.94) 0%, rgba(8,9,14,.72) 38%, rgba(8,9,14,0) 62%); }
  .visual { left: 0; right: 0; width: auto; bottom: auto; height: 58%; }
  .visual--car { padding-bottom: 0; align-items: center; }
  .slide-copy {
    top: auto; right: 0; width: auto; justify-content: flex-end; gap: 12px;
    padding: 16px var(--gut-r) 44px var(--gut-l);
  }
  .headline { font-size: clamp(32px, 9vw, 44px); }
  .cta { font-size: 22px; }
  .fine { font-size: 11.5px; }
  .hero-nav { display: none; }
  .machine { width: min(80%, 330px); }
}
