:root {
  --bg: #06111f;
  --bg-soft: #0c1830;
  --surface: rgba(16, 28, 49, 0.92);
  --surface-strong: #13223c;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f8ff;
  --muted: #a9b8d1;
  --muted-strong: #d8e2f4;
  --accent: #81ffbc;
  --accent-alt: #ff9669;
  --accent-third: #4ad8ff;
  --danger: #ff7c89;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --container: 1180px;
  --header-height: 92px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-width: 320px;
  font-family: "Segoe UI Variable", "Trebuchet MS", "Gill Sans", sans-serif;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(74, 216, 255, 0.14), transparent 32%),
    radial-gradient(circle at 85% 18%, rgba(255, 150, 105, 0.12), transparent 18%),
    radial-gradient(circle at 10% 88%, rgba(129, 255, 188, 0.12), transparent 24%),
    linear-gradient(180deg, #06101d 0%, #071425 52%, #06111f 100%);
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.ambient-spheres {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambient-sphere {
  position: absolute;
  top: calc(var(--top, 50) * 1%);
  left: calc(var(--left, 50) * 1%);
  width: calc(var(--size, 120) * 1px);
  height: calc(var(--size, 120) * 1px);
  border-radius: 50%;
  opacity: var(--opacity, 0.08);
  background:
    radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.32), transparent 26%),
    radial-gradient(circle at 35% 35%, var(--sphere-core, rgba(129, 255, 188, 0.3)), transparent 58%),
    radial-gradient(circle at 65% 68%, rgba(74, 216, 255, 0.08), transparent 72%);
  box-shadow:
    inset 0 0 18px rgba(255, 255, 255, 0.08),
    0 0 28px rgba(74, 216, 255, 0.05);
  filter: blur(calc(var(--blur, 0) * 1px));
  animation:
    sphereFloat var(--duration, 18s) ease-in-out infinite,
    spherePulse calc(var(--duration, 18s) * 0.9) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

body.is-locked {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

iframe {
  border: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.section {
  position: relative;
  padding: 54px 0;
}

.section-accent::before,
.hero::before,
.sub-hero::before,
.legal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 22%, rgba(129, 255, 188, 0.12), transparent 20%),
    radial-gradient(circle at 76% 16%, rgba(255, 150, 105, 0.14), transparent 18%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  background: rgba(6, 17, 31, 0.82);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 8px 22px rgba(129, 255, 188, 0.26));
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.site-nav a {
  position: relative;
  padding: 12px 16px;
  border-radius: 999px;
  color: var(--muted-strong);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--text);
}

.hero-grid,
.sub-hero-grid,
.about-grid,
.story-grid,
.contact-grid,
.faq-layout {
  display: grid;
  gap: 28px;
}

.hero-grid,
.sub-hero-grid,
.about-grid,
.contact-grid {
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
}

.story-grid {
  grid-template-columns: 0.95fr 0.95fr;
  align-items: start;
}

.faq-layout {
  grid-template-columns: 0.92fr 1.08fr;
  align-items: start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

h1,
h2,
h3,
strong {
  margin-top: 0;
  font-family: "Trebuchet MS", "Arial Black", sans-serif;
}

p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(3rem, 6vw, 5.45rem);
  line-height: 0.96;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero-text,
.section-heading p,
.panel-copy p,
.legal-card p,
.legal-card li {
  color: var(--muted);
}

.hero-text {
  max-width: 650px;
  font-size: 1.08rem;
}

.hero-actions,
.age-gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 24px;
}

.button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  letter-spacing: 0.02em;
  background-size: 220% 220%;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.button:hover {
  transform: translateY(-3px) scale(1.01);
}

.button-primary {
  color: #04121d;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.36), transparent 26%),
    linear-gradient(135deg, var(--accent) 0%, #a8ffd0 34%, #4ad8ff 66%, var(--accent-alt) 100%);
  box-shadow: 0 18px 36px rgba(129, 255, 188, 0.22);
  animation: buttonGradientFlow 7s linear infinite;
}

.button-ghost,
.button-secondary {
  border-color: rgba(74, 216, 255, 0.32);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.14), transparent 22%),
    linear-gradient(135deg, rgba(74, 216, 255, 0.12), rgba(255, 150, 105, 0.08), rgba(129, 255, 188, 0.1));
  color: var(--text);
  animation: buttonGradientFlow 11s linear infinite;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-points li,
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-strong);
  font-size: 0.9rem;
}

.hero-visual {
  position: relative;
  min-height: 620px;
  display: grid;
  place-items: center;
}

.hero-visual img {
  position: relative;
  z-index: 3;
  width: min(560px, 100%);
  filter: drop-shadow(0 34px 70px rgba(0, 0, 0, 0.46));
}

.hero-orbit {
  position: absolute;
  border: 2px solid rgba(74, 216, 255, 0.35);
  border-radius: 50%;
}

.hero-orbit-one {
  top: 60px;
  right: 28px;
  width: 460px;
  height: 460px;
  border-color: rgba(129, 255, 188, 0.28);
}

.hero-orbit-two {
  left: 36px;
  bottom: 80px;
  width: 300px;
  height: 300px;
  border-style: dashed;
  border-color: rgba(255, 150, 105, 0.34);
}

.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.hero-visual::before {
  top: 70px;
  left: 30px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(74, 216, 255, 0.38) 0%, rgba(74, 216, 255, 0) 72%);
}

.hero-visual::after {
  right: 4px;
  bottom: 10px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 150, 105, 0.28) 0%, rgba(255, 150, 105, 0) 72%);
}

.floating-badge {
  position: absolute;
  z-index: 4;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 25, 43, 0.84);
  box-shadow: var(--shadow);
  font-weight: 700;
  animation: badgeFloat 6.5s ease-in-out infinite;
}

.badge-top {
  top: 80px;
  left: -8px;
}

.badge-bottom {
  right: 0;
  bottom: 105px;
  animation-delay: -2.8s;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
  text-align: center;
}

.section-heading-left {
  text-align: left;
}

.section-heading h2,
.sub-hero h1,
.legal-hero h1 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.04;
}

.compact-heading {
  margin-bottom: 24px;
}

.panel,
.game-card,
.policy-card,
.story-card,
.compliance-card,
.legal-card,
.faq-item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background-size: 180% 180%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  animation: surfaceShift 14s ease-in-out infinite;
}

.panel::before,
.game-card::before,
.policy-card::before,
.story-card::before,
.compliance-card::before,
.legal-card::before,
.faq-item::before {
  content: "";
  position: absolute;
  inset: -32% auto -32% -36%;
  width: 58%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: translateX(-180%) rotate(12deg);
  animation: surfaceSweep 13s ease-in-out infinite;
  pointer-events: none;
}

.panel::after,
.game-card::after,
.policy-card::after,
.story-card::after,
.compliance-card::after,
.legal-card::after,
.faq-item::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.panel:hover,
.game-card:hover,
.policy-card:hover,
.story-card:hover,
.compliance-card:hover,
.faq-item:hover {
  transform: translateY(-7px);
  border-color: var(--line-strong);
  box-shadow:
    0 26px 64px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(74, 216, 255, 0.05);
}

.panel-copy,
.compliance-card,
.legal-card {
  padding: 34px;
}

.panel-image img,
.story-image-panel img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.feature-card {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
}

.feature-card strong {
  display: block;
  margin-bottom: 8px;
}

.feature-card span {
  color: var(--muted);
}

.story-stack {
  display: grid;
  gap: 18px;
}

.story-card {
  padding: 26px;
}

.story-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(129, 255, 188, 0.22), rgba(74, 216, 255, 0.18));
  color: var(--accent);
  font-weight: 800;
}

.game-grid,
.policy-grid {
  display: grid;
  gap: 24px;
}

.game-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.policy-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.game-card {
  display: flex;
  flex-direction: column;
}

.game-image-wrap {
  padding: 18px 18px 0;
}

.game-image-wrap img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 24px;
}

.game-card-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  flex: 1;
}

.game-card-body h2,
.game-card-body h3 {
  margin-bottom: 0;
  font-size: 1.6rem;
}

.game-card-body p {
  color: var(--muted);
  flex: 1;
}

.policy-card {
  display: block;
  min-height: 180px;
  padding: 26px;
}

.policy-card span {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.policy-card strong {
  display: block;
  font-size: 1.15rem;
  line-height: 1.4;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-question {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 20px 22px;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  font-size: 1.02rem;
  font-weight: 700;
}

.faq-question::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-size: 1.2rem;
}

.faq-question[aria-expanded="true"]::after {
  content: "-";
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-answer p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--muted);
  position: relative;
  z-index: 1;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 10px;
  color: var(--muted-strong);
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  outline: none;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(74, 216, 255, 0.6);
  box-shadow: 0 0 0 4px rgba(74, 216, 255, 0.12);
}

.form-message {
  min-height: 24px;
  margin: 2px 0 0;
  color: var(--accent);
  font-weight: 700;
}

.form-message.is-error {
  color: var(--danger);
}

.support-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.support-strip strong {
  display: block;
  margin-bottom: 6px;
}

.support-strip span,
.support-strip a,
.legal-card a,
.site-footer a {
  color: var(--accent);
}

.sub-hero {
  padding-top: 70px;
}

.compliance-card ul,
.legal-card ul {
  margin: 14px 0 0;
  padding-left: 22px;
  color: var(--muted);
}

.legal-card h2 {
  margin: 28px 0 10px;
  font-size: 1.5rem;
}

.legal-card h2:first-of-type {
  margin-top: 0;
}

.game-shell {
  min-height: calc(100vh - var(--header-height));
}

.game-shell iframe {
  display: block;
  width: 100%;
  min-height: calc(100vh - var(--header-height) - 220px);
  height: calc(100vh - var(--header-height) - 220px);
  background: #07101e;
}

.site-footer {
  margin-top: 18px;
  padding: 44px 0 24px;
  border-top: 1px solid var(--line);
  background: rgba(4, 11, 20, 0.78);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 24px;
}

.compact-footer {
  grid-template-columns: 1.5fr 1fr 1fr;
}

.footer-brand {
  margin-bottom: 18px;
}

.footer-brand-block p,
.footer-meta p,
.site-footer li {
  color: var(--muted);
}

.site-footer h3 {
  margin: 0 0 16px;
  font-size: 1rem;
}

.site-footer ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-meta {
  display: grid;
  gap: 8px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2, 7, 14, 0.84);
  backdrop-filter: blur(18px);
}

.age-gate-card {
  width: min(720px, 100%);
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 34px;
  background:
    radial-gradient(circle at top right, rgba(255, 150, 105, 0.18), transparent 28%),
    radial-gradient(circle at top left, rgba(129, 255, 188, 0.14), transparent 28%),
    var(--surface-strong);
  box-shadow: var(--shadow);
}

.age-gate-card h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
  text-transform: uppercase;
}

.age-gate-card p {
  color: var(--muted);
}

.age-gate-list {
  display: grid;
  gap: 12px;
  margin: 22px 0;
  padding-left: 20px;
  color: var(--muted-strong);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes buttonGradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes surfaceSweep {
  0%,
  16% {
    transform: translateX(-180%) rotate(12deg);
  }
  45%,
  100% {
    transform: translateX(330%) rotate(12deg);
  }
}

@keyframes surfaceShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes badgeFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -10px, 0);
  }
}

@keyframes sphereFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  25% {
    transform: translate3d(var(--drift-x, 26px), var(--drift-y, -54px), 0) scale(1.04);
  }
  50% {
    transform: translate3d(var(--drift-x-alt, -16px), var(--drift-y-alt, -72px), 0) scale(0.97);
  }
  75% {
    transform: translate3d(var(--drift-x-soft, 10px), var(--drift-y-soft, -26px), 0) scale(1.02);
  }
}

@keyframes spherePulse {
  0%,
  100% {
    opacity: calc(var(--opacity, 0.08) * 0.72);
  }
  50% {
    opacity: var(--opacity, 0.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 1180px) {
  .hero-grid,
  .sub-hero-grid,
  .about-grid,
  .story-grid,
  .contact-grid,
  .faq-layout,
  .footer-grid,
  .compact-footer {
    grid-template-columns: 1fr;
  }

  .policy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-visual {
    min-height: 500px;
  }

  .badge-top {
    left: 8px;
  }
}

@media (max-width: 860px) {
  :root {
    --header-height: 84px;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 16px;
    left: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(7, 18, 33, 0.98);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: 0.25s ease;
  }

  .site-header.nav-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    width: 100%;
  }

  .game-grid,
  .policy-grid,
  .feature-list,
  .support-strip {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 46px 0;
  }

  .hero-visual {
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
  }

  .hero-orbit-one {
    top: 34px;
    right: 8px;
    width: 300px;
    height: 300px;
  }

  .hero-orbit-two {
    left: 0;
    bottom: 54px;
    width: 220px;
    height: 220px;
  }

  .floating-badge {
    position: static;
    display: inline-flex;
    margin: 8px 8px 0 0;
  }

  .panel-copy,
  .compliance-card,
  .legal-card,
  .age-gate-card {
    padding: 24px;
  }

  .game-shell iframe {
    min-height: calc(100vh - var(--header-height) - 190px);
    height: calc(100vh - var(--header-height) - 190px);
  }
}

@media (max-width: 560px) {
  .container {
    width: min(var(--container), calc(100% - 22px));
  }

  h1 {
    font-size: clamp(2.45rem, 12vw, 4rem);
  }

  .button,
  .button-primary,
  .button-secondary,
  .button-ghost {
    width: 100%;
  }

  .hero-actions,
  .hero-points,
  .age-gate-actions {
    display: grid;
  }

  .game-shell iframe {
    min-height: calc(100vh - var(--header-height) - 170px);
    height: calc(100vh - var(--header-height) - 170px);
  }
}
