:root[data-theme="dark"] .home {
  --rv-h: 479px;
  --rv-bleed: 1.30;
}
@media (max-width: 900px) { :root[data-theme="dark"] .home { --rv-bleed: 1.25; } }

.rv-media, .rv-toggle { display: none; }
:root[data-theme="dark"] .home .rv-media {
  display: block; position: absolute; z-index: -1; top: 0; left: 0; right: 0;
  height: calc(var(--rv-h) * var(--rv-bleed)); overflow: hidden; pointer-events: none;
  background: #14171a url("/static/video/hero/poster.jpg?v=3") 50% 40% / cover no-repeat;

  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 52%, rgba(0,0,0,.985) 55%, rgba(0,0,0,.95) 58%, rgba(0,0,0,.89) 61%,
      rgba(0,0,0,.81) 64%, rgba(0,0,0,.72) 67%, rgba(0,0,0,.62) 70%, rgba(0,0,0,.52) 73%, rgba(0,0,0,.42) 76%, rgba(0,0,0,.33) 79%,
      rgba(0,0,0,.245) 82%, rgba(0,0,0,.17) 85%, rgba(0,0,0,.105) 88%, rgba(0,0,0,.055) 91%, rgba(0,0,0,.022) 94%, rgba(0,0,0,.005) 97%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 52%, rgba(0,0,0,.985) 55%, rgba(0,0,0,.95) 58%, rgba(0,0,0,.89) 61%,
      rgba(0,0,0,.81) 64%, rgba(0,0,0,.72) 67%, rgba(0,0,0,.62) 70%, rgba(0,0,0,.52) 73%, rgba(0,0,0,.42) 76%, rgba(0,0,0,.33) 79%,
      rgba(0,0,0,.245) 82%, rgba(0,0,0,.17) 85%, rgba(0,0,0,.105) 88%, rgba(0,0,0,.055) 91%, rgba(0,0,0,.022) 94%, rgba(0,0,0,.005) 97%, transparent 100%);
}
@media (max-width: 599px) {
  :root[data-theme="dark"] .home .rv-media { background-image: url("/static/video/hero/poster-960.jpg?v=3"); background-position: 62% 40%; }
}
:root[data-theme="dark"] .home .rv-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%;
}
@media (max-width: 599px) { :root[data-theme="dark"] .home .rv-video { object-position: 62% 40%; } }

:root[data-theme="dark"] .home .rv-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(20,23,26,.72) 0, rgba(20,23,26,.62) max(20px, calc(50% - 600px + 480px)), rgba(20,23,26,.18) calc(50% + 260px), rgba(20,23,26,.10) 100%),
    linear-gradient(180deg, rgba(20,23,26,.30) 0%, rgba(20,23,26,0) 22%, rgba(20,23,26,0) 46%, rgba(20,23,26,.22) 58%,
      rgba(20,23,26,.42) 68%, rgba(20,23,26,.58) 78%, rgba(20,23,26,.68) 88%, rgba(20,23,26,.72) 100%);
}
@media (max-width: 900px) {
  :root[data-theme="dark"] .home .rv-veil {
    background: linear-gradient(180deg, rgba(20,23,26,.66) 0, rgba(20,23,26,.62) 60%, rgba(20,23,26,.70) 80%, rgba(20,23,26,.78) 100%);
  }
}

:root[data-theme="dark"] .home main.home-main::before,
:root[data-theme="dark"] .home main.home-main::after,
:root[data-theme="dark"] .home .hero::before,
:root[data-theme="dark"] .home .hero::after { content: none; }

@media (min-width: 1600px) {
  :root[data-theme="dark"] .home .hero { min-height: max(68vh, 520px); padding-block: 64px; align-items: center; }
  :root[data-theme="dark"] .home .hero-photo { align-self: center; min-height: 0; width: 100%; height: min(calc(max(68vh, 520px) - 128px), 640px); }
}

@media (min-width: 1600px) {
  :root[data-theme="dark"] .home .hero .intro { position: relative; isolation: isolate; }
  :root[data-theme="dark"] .home .hero .intro::before {
    content: ""; position: absolute; z-index: -1; inset: -14px -28px -14px -24px; pointer-events: none;
    border-radius: 32px; background: rgba(20,23,26,.34); filter: blur(18px);
  }
}

:root[data-theme="dark"] .home .rv-toggle {
  display: grid; place-items: center; position: absolute; z-index: 2;
  top: calc(var(--rv-h) - 46px); right: max(12px, calc(50% - 600px));
  width: 44px; height: 44px; padding: 0; margin: 0; border: 0; border-radius: 50%;
  background: transparent; color: #eceee9; cursor: pointer;
}
:root[data-theme="dark"] .home .rv-toggle::before {
  content: ""; position: absolute; inset: 6px; border-radius: 50%;
  background: rgba(20,23,26,.66); border: 1px solid rgba(211,179,234,.34);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .15s, border-color .15s;
}
:root[data-theme="dark"] .home .rv-toggle:hover::before { background: rgba(20,23,26,.86); border-color: rgba(211,179,234,.6); }
:root[data-theme="dark"] .home .rv-toggle:focus-visible { outline: 3px solid #d3b3ea; outline-offset: -1px; }
:root[data-theme="dark"] .home .rv-toggle svg { position: relative; width: 14px; height: 14px; }
.rv-toggle .i-play { display: none; }
.rv-toggle[aria-pressed="true"] .i-play { display: block; }
.rv-toggle[aria-pressed="true"] .i-pause { display: none; }
@media (max-width: 900px) { :root[data-theme="dark"] .home .rv-toggle { top: 4px; right: 4px; } }

@media (prefers-reduced-motion: reduce) {
  :root[data-theme="dark"] .home .rv-video, :root[data-theme="dark"] .home .rv-toggle { display: none; }
}
@media (prefers-reduced-data: reduce) {
  :root[data-theme="dark"] .home .rv-video, :root[data-theme="dark"] .home .rv-toggle { display: none; }
}

@media print, (forced-colors: active) {
  :root[data-theme="dark"] .home .rv-media, :root[data-theme="dark"] .home .rv-toggle { display: none; }
}
:root[data-theme="dark"] .home.rv-still .rv-video, :root[data-theme="dark"] .home.rv-still .rv-toggle { display: none; }

@media (min-width: 1600px) {
  :root[data-theme="dark"] .home main .comparison-band h2,
  :root[data-theme="dark"] .home main .comparison-band .how-note,
  :root[data-theme="dark"] .home main .comparison-band li,
  :root[data-theme="dark"] .home main .games .section-heading h2,
  :root[data-theme="dark"] .home main .games .text-link {
    background-color: transparent; box-shadow: none;

    background-image: radial-gradient(ellipse at center, color-mix(in srgb, var(--bg) 55%, transparent) 0%, transparent 70%);
  }
  :root[data-theme="dark"] .home main .comparison-band::before { content: none; }

  :root[data-theme="dark"] body .home main .hero::before,
  :root[data-theme="dark"] body .home main .hero::after { content: none; }
}
