:root {
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --accent: #d9ff4a;
  --accent-strong: #ffcf46;
  --ink: #f8fff7;
  --muted: #b7c8bf;
  --panel: rgb(4 10 12 / 82%);
  --panel-border: rgb(255 255 255 / 18%);
}

* {
  box-sizing: border-box;
}

html,
body {
  block-size: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  background: #040706;
  color: var(--ink);
}

button {
  font: inherit;
}

.sportsbook-frame {
  block-size: 100svh;
  border: 0;
  inline-size: 100vw;
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: 0;
}

.page-backdrop {
  background:
    radial-gradient(circle at 18% 18%, rgb(217 255 74 / 7%), transparent 28%),
    radial-gradient(circle at 78% 18%, rgb(255 207 70 / 6%), transparent 30%),
    linear-gradient(135deg, rgb(2 8 7 / 30%), rgb(3 9 12 / 42%));
  backdrop-filter: blur(2.4px) saturate(1.02);
  inset: 0;
  position: fixed;
  z-index: 1;
}

.iframe-click-guard {
  inset: 0;
  position: fixed;
  z-index: 2;
}

.experience {
  display: grid;
  inline-size: 100vw;
  inset: 0;
  padding: clamp(18px, 4vw, 52px);
  place-items: center;
  position: fixed;
  z-index: 3;
}

.game-dialog {
  background:
    linear-gradient(180deg, rgb(255 255 255 / 11%), transparent 36%),
    var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  box-shadow:
    0 32px 90px rgb(0 0 0 / 48%),
    inset 0 1px 0 rgb(255 255 255 / 16%);
  display: grid;
  gap: clamp(18px, 2.5vw, 28px);
  inline-size: min(980px, calc(100vw - 32px));
  max-block-size: calc(100svh - 82px);
  overflow: hidden;
  padding: clamp(20px, 3vw, 34px);
  position: relative;
  transform: translateY(0) scale(1);
  transition:
    block-size 560ms cubic-bezier(0.2, 0.86, 0.22, 1),
    inline-size 560ms cubic-bezier(0.2, 0.86, 0.22, 1),
    max-block-size 560ms cubic-bezier(0.2, 0.86, 0.22, 1),
    padding 560ms cubic-bezier(0.2, 0.86, 0.22, 1),
    transform 560ms cubic-bezier(0.2, 0.86, 0.22, 1);
}

.experience[data-state="choosing"] .game-dialog {
  overflow-y: auto;
}

.game-dialog::before {
  background: linear-gradient(
    90deg,
    transparent,
    rgb(217 255 74 / 52%),
    rgb(255 207 70 / 58%),
    transparent
  );
  block-size: 1px;
  content: "";
  inline-size: 100%;
  inset-block-start: 0;
  inset-inline-start: 0;
  position: absolute;
}

.back-button {
  align-items: center;
  background: rgb(3 8 9 / 72%);
  block-size: 44px;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 999px;
  box-shadow:
    0 12px 32px rgb(0 0 0 / 38%),
    inset 0 1px 0 rgb(255 255 255 / 14%);
  color: var(--ink);
  cursor: pointer;
  display: inline-grid;
  font-size: 1.35rem;
  font-weight: 850;
  inline-size: 44px;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  line-height: 1;
  opacity: 0;
  place-items: center;
  pointer-events: none;
  position: absolute;
  transform: translateX(-4px);
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    opacity 220ms ease,
    transform 220ms ease;
  z-index: 8;
}

.back-button:hover,
.back-button:focus-visible {
  background: rgb(13 23 23 / 88%);
  border-color: rgb(217 255 74 / 56%);
  outline: none;
}

.dialog-heading {
  display: grid;
  gap: 8px;
  margin-block-end: clamp(14px, 2.4vw, 26px);
  max-block-size: 150px;
  opacity: 1;
  overflow: hidden;
  place-items: center;
  text-align: center;
  transition:
    max-block-size 360ms ease,
    opacity 260ms ease,
    transform 360ms cubic-bezier(0.2, 0.86, 0.22, 1);
}

.eyebrow {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  line-height: 1;
  margin: 0;
  text-transform: uppercase;
}

h1 {
  color: var(--ink);
  font-size: clamp(1.85rem, 4.7vw, 4.15rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.9;
  margin: 0;
  text-wrap: balance;
}

.cta-grid {
  display: grid;
  align-items: start;
  gap: clamp(16px, 2.4vw, 24px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-block-size: 420px;
  opacity: 1;
  overflow: hidden;
  transform: translateY(0) scale(1);
  transition:
    max-block-size 500ms cubic-bezier(0.2, 0.86, 0.22, 1),
    opacity 320ms ease,
    transform 420ms cubic-bezier(0.2, 0.86, 0.22, 1),
    filter 320ms ease;
}

.game-card {
  aspect-ratio: 16 / 9;
  background: #08100f;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 8px;
  box-shadow: 0 20px 42px rgb(0 0 0 / 34%);
  cursor: pointer;
  display: block;
  inline-size: 100%;
  isolation: isolate;
  min-block-size: 0;
  min-inline-size: 0;
  overflow: hidden;
  padding: 0;
  position: relative;
  transform: translateY(0);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.game-card::after {
  background: linear-gradient(112deg, transparent 0 38%, rgb(255 255 255 / 34%), transparent 62% 100%);
  content: "";
  inset: 0;
  opacity: 0;
  position: absolute;
  transform: translateX(-45%);
  transition:
    opacity 180ms ease,
    transform 500ms cubic-bezier(0.2, 0.86, 0.22, 1);
  z-index: 2;
}

.game-card:hover,
.game-card:focus-visible {
  border-color: rgb(217 255 74 / 72%);
  box-shadow:
    0 26px 64px rgb(0 0 0 / 48%),
    0 0 0 1px rgb(217 255 74 / 26%);
  outline: none;
  transform: translateY(-4px);
}

.game-card:hover::after,
.game-card:focus-visible::after {
  opacity: 1;
  transform: translateX(45%);
}

.game-card img {
  aspect-ratio: 16 / 9;
  block-size: 100%;
  display: block;
  inline-size: 100%;
  object-fit: cover;
}

.game-card.is-disabled {
  cursor: default;
  filter: grayscale(0.36) saturate(0.68);
  opacity: 0.54;
}

.game-card.is-disabled:hover {
  border-color: rgb(255 255 255 / 18%);
  box-shadow: 0 20px 42px rgb(0 0 0 / 34%);
  transform: none;
}

.badge {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border: 1px solid rgb(255 255 255 / 36%);
  border-radius: 999px;
  color: #101300;
  font-size: clamp(0.68rem, 1.4vw, 0.82rem);
  font-weight: 950;
  inset-block-start: 12px;
  inset-inline-end: 12px;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 8px 10px;
  position: absolute;
  text-transform: uppercase;
  z-index: 3;
}

.game-viewport {
  block-size: 0;
  display: grid;
  inline-size: 100%;
  min-block-size: 0;
  opacity: 0;
  overflow: hidden;
  position: relative;
  transform: scale(0.96);
  transition:
    block-size 560ms cubic-bezier(0.2, 0.86, 0.22, 1),
    opacity 320ms ease 120ms,
    transform 560ms cubic-bezier(0.2, 0.86, 0.22, 1);
}

.game-container {
  align-items: center;
  background:
    radial-gradient(circle at 50% 0, rgb(217 255 74 / 15%), transparent 36%),
    #07100f;
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  min-block-size: 0;
  overflow: auto;
  place-items: center;
}

.launch-status {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 760;
  inset: 0;
  margin: auto;
  padding: 22px;
  place-self: center;
  position: absolute;
  text-align: center;
}

.experience[data-state="launching"] .cta-grid,
.experience[data-state="playing"] .cta-grid,
.experience[data-state="failed"] .cta-grid {
  block-size: 0;
  filter: blur(8px);
  max-block-size: 0;
  min-block-size: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-16px) scale(0.95);
}

.experience[data-state="launching"] .dialog-heading,
.experience[data-state="playing"] .dialog-heading,
.experience[data-state="failed"] .dialog-heading {
  block-size: 0;
  max-block-size: 0;
  min-block-size: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
}

.experience[data-state="launching"] .game-dialog,
.experience[data-state="playing"] .game-dialog,
.experience[data-state="failed"] .game-dialog {
  block-size: min(768px, calc(100svh - 82px));
  display: flex;
  flex-direction: column;
  gap: 0;
  inline-size: min(1024px, calc(100vw - 32px));
  padding: 0;
}

.experience[data-state="launching"] .back-button,
.experience[data-state="playing"] .back-button,
.experience[data-state="failed"] .back-button {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.experience[data-state="launching"] .game-viewport,
.experience[data-state="playing"] .game-viewport,
.experience[data-state="failed"] .game-viewport {
  block-size: auto;
  flex-basis: 100%;
  flex: 1;
  min-inline-size: 0;
  opacity: 1;
  transform: scale(1);
}

.experience[data-state="launching"] .game-container,
.experience[data-state="playing"] .game-container,
.experience[data-state="failed"] .game-container {
  block-size: 100%;
  inline-size: 100%;
}

.experience[data-state="playing"] .launch-status {
  display: none;
}

.powered {
  color: rgb(248 255 247 / 68%);
  font-size: 0.78rem;
  font-weight: 720;
  inset-block-end: max(12px, env(safe-area-inset-bottom));
  inset-inline: 0;
  letter-spacing: 0;
  pointer-events: none;
  position: fixed;
  text-align: center;
  text-shadow: 0 2px 14px rgb(0 0 0 / 74%);
  z-index: 4;
}

@media (max-width: 760px) {
  .experience {
    padding: 14px;
  }

  .game-dialog {
    gap: 16px;
    max-block-size: calc(100svh - 64px);
    padding: 18px;
  }

  .cta-grid {
    gap: 10px;
    grid-template-columns: 1fr;
    max-block-size: none;
    overflow: visible;
  }

  h1 {
    font-size: clamp(2rem, 10.5vw, 3.4rem);
  }

  .experience[data-state="launching"],
  .experience[data-state="playing"],
  .experience[data-state="failed"] {
    padding: 0;
  }

  .experience[data-state="launching"] .game-dialog,
  .experience[data-state="playing"] .game-dialog,
  .experience[data-state="failed"] .game-dialog {
    block-size: 100svh;
    border-radius: 0;
    inline-size: 100vw;
    max-block-size: 100svh;
    padding: 0;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
