/* === home.css === */
/*
  Home hero banner: direct section implementation.
  Reference behavior: full-width media mounted inside the section, 75svh desktop height, bottom fade, and AOS-like reveal motion.
  Visual wrapper/card is intentionally avoided.
*/
:root {
  --home-hero-height: clamp(520px, 75svh, 860px);
  --home-hero-content-max: 1180px;
  --home-hero-edge: clamp(16px, 5vw, 72px);
  --home-hero-media-ratio: 16 / 9;
}

.rtp-home-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(10px, 1.35vw, 18px);
  width: 100%;
  height: var(--home-hero-height);
  min-height: 500px;
  max-height: 860px;
  padding-inline: max(var(--home-hero-edge), env(safe-area-inset-left));
  padding-block: clamp(54px, 7vw, 112px) clamp(64px, 8vw, 124px);
  overflow: hidden;
  color: var(--text, #fff);
  background:
    radial-gradient(circle at 18% 18%, color-mix(in srgb, var(--accent-2, #0ea4eb) 24%, transparent), transparent 34%),
    radial-gradient(circle at 82% 16%, rgba(255,255,255,.10), transparent 28%),
    linear-gradient(180deg, #101014 0%, #07080d 100%);
}

.rtp-home-hero::before,
.rtp-home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.rtp-home-hero::before {
  background:
    linear-gradient(90deg,
      rgba(4,6,14,.72) 0%,
      rgba(4,6,14,.50) 32%,
      rgba(4,6,14,.14) 68%,
      rgba(4,6,14,.42) 100%),
    linear-gradient(180deg,
      rgba(4,6,14,.12) 0%,
      rgba(4,6,14,.10) 44%,
      rgba(4,6,14,.56) 100%),
    radial-gradient(ellipse at 50% 118%, rgba(0,85,254,.20), transparent 56%);
}

.rtp-home-hero::after {
  top: auto;
  height: min(32%, 220px);
  background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--theme-bg, #101014) 74%, transparent) 74%, var(--theme-bg, #101014) 100%);
}

.rtp-home-hero__poster,
.rtp-home-hero__video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border: 0;
  opacity: .76;
  filter: saturate(1.12) contrast(1.05) brightness(1.14);
  transform: translateZ(0) scale(1.001);
  transform-origin: center;
}

.rtp-home-hero__poster {
  transition: opacity .65s ease, filter .65s ease, transform 7.5s ease;
}

.rtp-home-hero__video {
  opacity: 0;
  transition: opacity .52s ease;
}

.rtp-home-hero[data-video-ready="true"] .rtp-home-hero__video {
  opacity: .76;
}

.rtp-home-hero[data-video-ready="true"] .rtp-home-hero__poster {
  opacity: .18;
}

.rtp-home-hero.is-switching .rtp-home-hero__poster,
.rtp-home-hero.is-switching .rtp-home-hero__video {
  opacity: .20;
}

.rtp-home-hero.is-animated .rtp-home-hero__poster,
.rtp-home-hero.is-animated .rtp-home-hero__video {
  transform: translateZ(0) scale(1.035);
}

.rtp-home-hero__eyebrow {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 26px;
  padding: 0 11px;
  border: 1px solid color-mix(in srgb, var(--text, #fff) 14%, transparent);
  border-radius: 999px;
  color: color-mix(in srgb, var(--text, #fff) 86%, transparent);
  background: color-mix(in srgb, var(--theme-bg, #101014) 28%, transparent);
  font-size: clamp(9px, .68vw, 11px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: .088em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.rtp-home-hero__title {
  position: relative;
  z-index: 1;
  max-width: min(760px, 100%);
  margin: 0;
  color: var(--text, #fff);
  font-size: clamp(42px, 7.1vw, 96px);
  font-weight: 950;
  line-height: .92;
  letter-spacing: -.066em;
  text-wrap: balance;
  text-shadow: 0 18px 44px rgba(0,0,0,.38);
}

.rtp-home-hero__lead {
  position: relative;
  z-index: 1;
  max-width: 54ch;
  margin: 0;
  color: color-mix(in srgb, var(--text, #fff) 82%, transparent);
  font-size: clamp(12.5px, 1.06vw, 16px);
  font-weight: 620;
  line-height: 1.48;
  text-wrap: pretty;
  text-shadow: 0 10px 26px rgba(0,0,0,.32);
}

.rtp-home-hero__actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: clamp(2px, .48vw, 7px);
}

.rtp-home-hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,.46);
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(180deg, rgba(238,239,241,.94), rgba(196,198,204,.90));
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .018em;
  line-height: 1.08;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  text-shadow: 0 1px 1px rgba(0,0,0,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.86), inset 0 -1px 0 rgba(0,0,0,.10), 0 0 1rem rgba(0,0,0,.125);
  transition: border-color .14s ease, background .14s ease, color .14s ease, outline-color .14s ease;
}

.rtp-home-hero__button:hover,
.rtp-home-hero__button:focus-visible {
  color: #fff;
  border-color: var(--interactive-soft-border-hover, rgba(255,255,255,.46));
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(211,213,219,.94));
  outline-color: var(--kdiqx31h, rgba(255,255,255,.35));
  outline-offset: var(--kdiqx353, .1875rem);
  outline-width: var(--kdiqx354, .1875rem);
  outline-style: solid;
  transform: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.86), inset 0 -1px 0 rgba(0,0,0,.10), 0 0 1rem rgba(0,0,0,.125);
  filter: none;
}

.rtp-home-hero__button:active {
  transform: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.86), inset 0 -1px 0 rgba(0,0,0,.10), 0 0 1rem rgba(0,0,0,.125);
}

.rtp-home-hero__button--primary {
  border-color: rgba(255,255,255,.54);
  color: #fff;
  background: linear-gradient(180deg, rgba(238,239,241,.96), rgba(194,196,202,.92));
}

.rtp-home-hero__button--primary:hover,
.rtp-home-hero__button--primary:focus-visible {
  border-color: var(--interactive-soft-border-hover, rgba(255,255,255,.52));
  color: #fff;
  background: linear-gradient(180deg, rgba(255,255,255,.99), rgba(211,213,219,.96));
}

.rtp-home-hero__actions:has(.rtp-home-hero__button[hidden]) {
  gap: 0;
}

.rtp-home-hero__actions:has(.rtp-home-hero__button[hidden]) .rtp-home-hero__button--primary {
  min-width: clamp(156px, 13vw, 220px);
}

.rtp-home-hero__button[hidden],
.rtp-home-hero__eyebrow[hidden],
.rtp-home-hero__lead[hidden] {
  display: none !important;
}

/* Lightweight AOS-compatible animation subset used by the reference files. */
.rtp-home-hero [data-aos] {
  opacity: 0;
  transition-property: transform, opacity;
  transition-timing-function: cubic-bezier(.22, .61, .36, 1);
  transition-duration: var(--aos-duration, 900ms);
  transition-delay: var(--aos-delay, 0ms);
}

.rtp-home-hero [data-aos="fade-right"],
.rtp-home-hero [data-aos="fade-slide-right"] { transform: translate3d(-40%, 0, 0); }
.rtp-home-hero [data-aos="fade-left"],
.rtp-home-hero [data-aos="fade-slide-left"] { transform: translate3d(40%, 0, 0); }
.rtp-home-hero [data-aos="fade-up"],
.rtp-home-hero [data-aos="fade-slide-up"] { transform: translate3d(0, 38%, 0); }
.rtp-home-hero [data-aos="fade-down"],
.rtp-home-hero [data-aos="fade-slide-down"] { transform: translate3d(0, -38%, 0); }
.rtp-home-hero [data-aos="fade-zoom-in"] { transform: scale(.92); }
.rtp-home-hero [data-aos].aos-animate {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

@media (max-width: 900px) {
  :root {
    --home-hero-height: clamp(360px, 58svh, 560px);
  }

  .rtp-home-hero {
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-height: 350px;
    padding-inline: max(16px, env(safe-area-inset-left));
    padding-block: 72px 74px;
    text-align: center;
  }

  .rtp-home-hero::before {
    background:
      linear-gradient(180deg, rgba(4,6,14,.08) 0%, rgba(4,6,14,.28) 36%, rgba(4,6,14,.78) 100%),
      radial-gradient(ellipse at 50% 100%, rgba(0,85,254,.18), transparent 58%);
  }

  .rtp-home-hero__poster,
  .rtp-home-hero__video {
    object-position: 58% center;
    opacity: .72;
    filter: saturate(1.08) contrast(1.02) brightness(1.12);
  }

  .rtp-home-hero[data-video-ready="true"] .rtp-home-hero__video {
    opacity: .72;
  }

  .rtp-home-hero__eyebrow {
    min-height: 23px;
    padding-inline: 9px;
    font-size: 8.8px;
    letter-spacing: .072em;
  }

  .rtp-home-hero__title {
    max-width: min(14ch, 100%);
    margin-inline: auto;
    font-size: clamp(29px, 11.1vw, 48px);
    line-height: .94;
    letter-spacing: -.056em;
    text-align: center;
  }

  .rtp-home-hero__lead {
    max-width: min(38ch, 100%);
    margin-inline: auto;
    font-size: 11.8px;
    line-height: 1.38;
    text-align: center;
  }

  .rtp-home-hero__actions {
    justify-content: center;
    gap: 6px;
    width: min(100%, 380px);
    max-width: 100%;
    margin-inline: auto;
  }

  .rtp-home-hero__button {
    width: 100%;
    min-height: 33px;
    padding-inline: 12px;
    border-radius: 10px;
    font-size: 9.5px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.86), inset 0 -1px 0 rgba(0,0,0,.10), 0 8px 17px rgba(0,0,0,.20);
  }
}

@media (max-width: 420px) {
  :root {
    --home-hero-height: clamp(334px, 56svh, 500px);
  }

  .rtp-home-hero {
    gap: 7px;
    min-height: 330px;
    padding-inline: max(14px, env(safe-area-inset-left));
    padding-block: 66px 68px;
  }

  .rtp-home-hero__title {
    font-size: clamp(27px, 10.7vw, 42px);
  }

  .rtp-home-hero__lead {
    max-width: min(34ch, 100%);
    font-size: 11px;
  }

  .rtp-home-hero__button {
    min-height: 32px;
    padding-inline: 10px;
    font-size: 9px;
  }
}

@media (max-width: 360px) {
  .rtp-home-hero {
    padding-block-end: 66px;
  }

  .rtp-home-hero__lead {
    max-width: min(31ch, 100%);
  }

  .rtp-home-hero__actions {
    gap: 5px;
  }

  .rtp-home-hero__button {
    min-height: 31px;
    padding-inline: 9px;
    font-size: 8.8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rtp-home-hero__video {
    display: none;
  }

  .rtp-home-hero__poster,
  .rtp-home-hero__button,
  .rtp-home-hero [data-aos] {
    transition: none !important;
    transform: none !important;
  }

  .rtp-home-hero [data-aos] {
    opacity: 1 !important;
  }
}

/* Hero carousel controls: matched to the existing card-game carousel button language. */
@keyframes rtpHeroDotProgress {
  from { transform: scale3d(0, 1, 1); }
  to { transform: scale3d(1, 1, 1); }
}

.rtp-home-hero[data-autoplay-paused="true"] .rtp-home-hero__dot-progress {
  animation-play-state: paused;
}

.rtp-home-hero__nav.carousel-control.sjyt1d3 {
  --_147h8yx2: clamp(40px, 3.15vw, 52px);
  --_147h8yx0: transparent;
  --_147h8yx3: rgba(236, 237, 238, .26);
  --sjyt1d1: rgba(236, 237, 238, .26);
  --sjyt1d0: blur(.86rem) saturate(145%);
  --_147h8yx4: none;
  position: absolute !important;
  top: 50% !important;
  bottom: auto !important;
  z-index: 7;
  display: flex !important;
  width: var(--_147h8yx2) !important;
  min-width: var(--_147h8yx2) !important;
  max-width: var(--_147h8yx2) !important;
  height: var(--_147h8yx2) !important;
  min-height: var(--_147h8yx2) !important;
  max-height: var(--_147h8yx2) !important;
  flex: 0 0 var(--_147h8yx2);
  aspect-ratio: 1 / 1;
  border-radius: var(--kdiqx35b, .5rem) !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: translate3d(0, -50%, 0) !important;
  translate: none !important;
  float: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none;
  transition: opacity .18s ease, visibility .18s ease, outline-color .15s ease, box-shadow .15s ease, background-color .15s ease;
  will-change: auto;
}

@media (pointer: fine) {
  .rtp-home-hero > .rtp-home-hero__nav.carousel-control.sjyt1d3:not([aria-disabled="true"]):not([disabled]):hover,
  .rtp-home-hero > .rtp-home-hero__nav.carousel-control.sjyt1d3:focus-visible {
    --_147h8yx4: none;
    top: 50% !important;
    bottom: auto !important;
    margin: 0 !important;
    transform: translate3d(0, -50%, 0) !important;
    translate: none !important;
  }
}

.rtp-home-hero > .rtp-home-hero__nav--prev.carousel-control.sjyt1d3 {
  left: clamp(10px, 1.8vw, 28px) !important;
  right: auto !important;
  inset-inline-start: clamp(10px, 1.8vw, 28px) !important;
  inset-inline-end: auto !important;
}

.rtp-home-hero > .rtp-home-hero__nav--next.carousel-control.sjyt1d3 {
  left: auto !important;
  right: clamp(10px, 1.8vw, 28px) !important;
  inset-inline-start: auto !important;
  inset-inline-end: clamp(10px, 1.8vw, 28px) !important;
}

.rtp-home-hero__nav[hidden],
.rtp-home-hero__carousel[hidden],
.rtp-home-hero__play[hidden] {
  display: none !important;
}

.rtp-home-hero__nav:not([hidden]) {
  display: flex !important;
}

.rtp-home-hero[data-controls-visible="true"] .rtp-home-hero__nav:not([hidden]),
.rtp-home-hero:not([data-hero-count="1"]):hover .rtp-home-hero__nav:not([hidden]),
.rtp-home-hero:not([data-hero-count="1"]):focus-within .rtp-home-hero__nav:not([hidden]) {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto;
}

.rtp-home-hero__nav .carousel-control-icon {
  width: clamp(18px, 1.35vw, 23px) !important;
  height: clamp(18px, 1.35vw, 23px) !important;
}

.rtp-home-hero__nav.carousel-control.sjyt1d3 > .carousel-control-icon,
.rtp-home-hero__nav.carousel-control.sjyt1d3:hover > .carousel-control-icon,
.rtp-home-hero__nav.carousel-control.sjyt1d3:focus-visible > .carousel-control-icon {
  animation: none !important;
  transform: translate3d(0, 0, 0) !important;
}

.rtp-home-hero__carousel {
  --hero-progress-duration: 3000ms;
  position: absolute;
  z-index: 8;
  left: 50%;
  bottom: clamp(14px, 2.2vw, 32px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  max-width: calc(100% - 28px);
  min-height: 29px;
  padding: .18rem .26rem .18rem .36rem;
  border: 1px solid rgba(255,255,255,.125);
  border-radius: 999px;
  background: rgba(255,255,255,.072);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,.14), inset 0 1px 0 rgba(255,255,255,.105);
  backdrop-filter: blur(.56rem) saturate(128%);
  -webkit-backdrop-filter: blur(.56rem) saturate(128%);
  transform: translate3d(-50%, 0, 0);
  transition: background-color .22s ease, border-color .22s ease, box-shadow .22s ease, opacity .22s ease;
}

.rtp-home-hero__carousel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.025));
  pointer-events: none;
}

.rtp-home-hero__dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .24rem;
  min-width: 0;
  min-height: 18px;
  padding-inline: 0;
  overflow: hidden;
}

.rtp-home-hero__dot {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  width: 12px;
  height: 4px;
  min-width: 12px;
  padding: 0;
  border: 0;
  border-radius: 999rem;
  overflow: hidden;
  background: rgba(255,255,255,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  cursor: pointer;
  touch-action: manipulation;
  transition: width .24s cubic-bezier(.22,.61,.36,1), background-color .2s ease, opacity .2s ease;
}

.rtp-home-hero__dot:hover,
.rtp-home-hero__dot:focus-visible {
  background: rgba(255,255,255,.38);
  outline: 2px solid rgba(255,255,255,.24);
  outline-offset: 3px;
}

.rtp-home-hero__dot[aria-current="true"] {
  width: clamp(32px, 3vw, 44px);
  background: rgba(255,255,255,.16);
}

.rtp-home-hero__dot-progress {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255,255,255,.92), rgba(255,255,255,.60));
  transform: scale3d(0, 1, 1);
  transform-origin: left center;
  backface-visibility: hidden;
  will-change: transform;
  animation: rtpHeroDotProgress var(--hero-progress-duration, 3000ms) linear forwards;
}

.rtp-home-hero__play.carousel-control.sjyt1d3 {
  --_147h8yx2: 1.02rem;
  --_147h8yx0: transparent;
  --_147h8yx3: rgba(236, 237, 238, .24);
  --sjyt1d1: rgba(236, 237, 238, .24);
  --sjyt1d0: blur(.56rem) saturate(130%);
  position: relative !important;
  inset: auto !important;
  flex: 0 0 var(--_147h8yx2);
  width: var(--_147h8yx2) !important;
  min-width: var(--_147h8yx2) !important;
  height: var(--_147h8yx2) !important;
  min-height: var(--_147h8yx2) !important;
  border-radius: 999px !important;
  margin: 0 !important;
  transform: none !important;
  translate: none !important;
}

.rtp-home-hero__play .carousel-control-icon {
  width: .46rem !important;
  height: .46rem !important;
  opacity: .92;
}

.rtp-home-hero__play .carousel-control-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.rtp-home-hero__play .carousel-control-icon svg rect,
.rtp-home-hero__play .carousel-control-icon svg path {
  fill: currentColor;
}

.rtp-home-hero[data-hero-count="1"] .rtp-home-hero__nav,
.rtp-home-hero[data-hero-count="1"] .rtp-home-hero__carousel {
  display: none !important;
}

@media (max-width: 900px) {
  .rtp-home-hero {
    padding-block-end: 74px;
  }

  .rtp-home-hero__nav.carousel-control.sjyt1d3 {
    --_147h8yx2: 38px;
  }

  .rtp-home-hero > .rtp-home-hero__nav--prev.carousel-control.sjyt1d3 {
    left: 8px !important;
    right: auto !important;
    inset-inline-start: 8px !important;
    inset-inline-end: auto !important;
  }

  .rtp-home-hero > .rtp-home-hero__nav--next.carousel-control.sjyt1d3 {
    left: auto !important;
    right: 8px !important;
    inset-inline-start: auto !important;
    inset-inline-end: 8px !important;
  }

  .rtp-home-hero__carousel {
    bottom: 12px;
    gap: .24rem;
    min-height: 24px;
    padding: .13rem .2rem .13rem .28rem;
    border-radius: 999px;
    background: rgba(255,255,255,.062);
    border-color: rgba(255,255,255,.105);
    box-shadow: 0 6px 14px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.08);
  }

  .rtp-home-hero__dot {
    width: 9px;
    min-width: 9px;
    height: 3.5px;
  }

  .rtp-home-hero__dot[aria-current="true"] {
    width: 22px;
  }

  .rtp-home-hero__play.carousel-control.sjyt1d3 {
    --_147h8yx2: .96rem;
  }

  .rtp-home-hero__play .carousel-control-icon {
    width: .42rem !important;
    height: .42rem !important;
  }
}

@media (max-width: 420px) {
  .rtp-home-hero {
    padding-block-end: 68px;
  }

  .rtp-home-hero__nav.carousel-control.sjyt1d3 {
    --_147h8yx2: 34px;
  }

  .rtp-home-hero__nav .carousel-control-icon {
    width: 17px !important;
    height: 17px !important;
  }

  .rtp-home-hero__carousel {
    bottom: 10px;
    max-width: calc(100% - 22px);
    gap: .16rem;
    min-height: 21px;
    padding: .1rem .15rem .1rem .22rem;
  }

  .rtp-home-hero__dot {
    width: 8px;
    min-width: 8px;
    height: 3px;
  }

  .rtp-home-hero__dot[aria-current="true"] {
    width: 20px;
  }

  .rtp-home-hero__play.carousel-control.sjyt1d3 {
    --_147h8yx2: .92rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rtp-home-hero__dot-progress {
    animation: none !important;
    transform: scale3d(1, 1, 1) !important;
  }
}
