/* Age gate */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background:
    radial-gradient(ellipse 80% 55% at 50% 20%, rgba(45, 212, 191, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 70% 70%, rgba(103, 232, 249, 0.1), transparent 50%),
    rgba(2, 8, 14, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.age-gate__panel {
  width: min(440px, 100%);
  text-align: center;
  padding: 2.4rem 1.85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(12, 36, 52, 0.88), rgba(4, 14, 22, 0.96));
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow:
    inset 0 1px 0 rgba(236, 254, 255, 0.08),
    0 0 80px rgba(45, 212, 191, 0.16),
    0 24px 48px rgba(0, 0, 0, 0.45);
  animation: gate-in 0.5s var(--ease);
}

@keyframes gate-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.age-gate__mark {
  width: 68px;
  height: 68px;
  margin: 0 auto 1.1rem;
  filter: drop-shadow(0 0 20px var(--glow-soft));
  animation: soft-float 5s ease-in-out infinite;
}

.age-gate__title {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 4vw, 1.95rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.age-gate__text {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.65rem;
}

.age-gate__legal {
  color: var(--aurora-ice);
  font-size: 0.94rem;
  margin-bottom: 0.65rem;
}

.age-gate__notice {
  color: var(--text-dim);
  font-size: 0.82rem;
  margin-bottom: 1.6rem;
  line-height: 1.55;
}

.age-gate__yes {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  padding: 0.9rem 2.1rem;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--aurora-cyan), var(--aurora-teal), var(--aurora-mint), var(--aurora-cyan));
  background-size: 220% 100%;
  animation: cta-shimmer 4s linear infinite;
  color: #021018;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  box-shadow: 0 0 32px var(--glow-soft);
}

.age-gate__yes:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 44px var(--glow-strong);
}

/* Shell */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(103, 232, 249, 0.12);
  background: rgba(4, 12, 20, 0.72);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}

.site-header__inner,
.site-footer__inner,
.section-inner {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.brand img {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 0 10px rgba(45, 212, 191, 0.35));
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}

.nav a:hover,
.nav a.is-active {
  color: var(--aurora-ice);
  background: rgba(103, 232, 249, 0.1);
  box-shadow: inset 0 0 0 1px rgba(103, 232, 249, 0.15);
}

.credit-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(45, 212, 191, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--aurora-cyan);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(236, 254, 255, 0.06);
}

.credit-pill span {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

main.view {
  flex: 1;
  animation: view-in 0.45s var(--ease);
}

@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Hero - full-bleed, brand-first */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero__sky {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0%, rgba(2, 8, 14, 0.08) 40%, rgba(2, 8, 14, 0.78) 78%, rgba(2, 8, 14, 0.96) 100%),
    radial-gradient(ellipse 100% 60% at 50% -5%, rgba(45, 212, 191, 0.32), transparent 58%),
    radial-gradient(ellipse 55% 40% at 12% 35%, rgba(103, 232, 249, 0.22), transparent 62%),
    radial-gradient(ellipse 50% 35% at 88% 30%, rgba(167, 243, 208, 0.16), transparent 58%),
    radial-gradient(ellipse 70% 30% at 45% 50%, rgba(20, 184, 166, 0.12), transparent 65%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='280'%3E%3Ccircle cx='24' cy='36' r='1.1' fill='%23ecfeff' opacity='.4'/%3E%3Ccircle cx='90' cy='78' r='.85' fill='%23fff' opacity='.28'/%3E%3Ccircle cx='170' cy='44' r='1.2' fill='%2367e8f9' opacity='.35'/%3E%3Ccircle cx='220' cy='130' r='.7' fill='%23fff' opacity='.22'/%3E%3Ccircle cx='48' cy='170' r='1' fill='%23a7f3d0' opacity='.3'/%3E%3Ccircle cx='140' cy='210' r='.65' fill='%23fff' opacity='.2'/%3E%3Ccircle cx='250' cy='60' r='.9' fill='%232dd4bf' opacity='.25'/%3E%3C/svg%3E");
  animation: hero-aurora 14s ease-in-out infinite alternate;
}

.hero__sky::before {
  content: "";
  position: absolute;
  inset: -5% 0 40%;
  background:
    linear-gradient(105deg, transparent 20%, rgba(103, 232, 249, 0.18) 40%, rgba(45, 212, 191, 0.28) 52%, rgba(167, 243, 208, 0.14) 62%, transparent 80%);
  animation: aurora-shimmer 9s ease-in-out infinite;
  mix-blend-mode: screen;
  filter: blur(18px);
  pointer-events: none;
}

.hero__sky::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 100%, rgba(2, 8, 14, 0.85), transparent 55%);
  pointer-events: none;
}

@keyframes hero-aurora {
  0% {
    filter: brightness(1) saturate(1);
    transform: scale(1);
  }
  100% {
    filter: brightness(1.12) saturate(1.15);
    transform: scale(1.03);
  }
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 3.5rem 0 5.5rem;
}

.hero__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  animation: soft-float 7s ease-in-out infinite;
}

.hero__brand img {
  width: 80px;
  height: 80px;
  filter: drop-shadow(0 0 32px var(--glow-soft));
  flex-shrink: 0;
}

.hero__brand-name {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 4.6rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.035em;
  background: linear-gradient(
    115deg,
    var(--aurora-ice) 0%,
    var(--aurora-cyan) 38%,
    var(--aurora-teal) 68%,
    var(--aurora-mint) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 40px rgba(45, 212, 191, 0.25));
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  font-weight: 500;
  max-width: 26ch;
  margin-bottom: 0.9rem;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.hero__lead {
  max-width: 40ch;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.85rem;
  font-weight: 300;
  line-height: 1.6;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.45rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 0.22s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.22s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: linear-gradient(
    115deg,
    var(--aurora-cyan),
    var(--aurora-teal),
    var(--aurora-mint),
    var(--aurora-cyan)
  );
  background-size: 220% 100%;
  animation: cta-shimmer 3.5s linear infinite, pulse-glow 3s ease-in-out infinite;
  color: #021018;
  box-shadow: 0 0 28px var(--glow-soft);
}

.btn--primary:hover {
  box-shadow: 0 0 42px var(--glow-strong);
}

.btn--ghost {
  border: 1px solid var(--line);
  color: var(--aurora-ice);
  background: rgba(10, 30, 44, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(236, 254, 255, 0.06);
}

.btn--ghost:hover {
  border-color: var(--aurora-cyan);
  background: rgba(45, 212, 191, 0.1);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  animation: none;
}

/* Sections */
.section {
  padding: 4.75rem 0;
}

.section--tight {
  padding: 3.25rem 0;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.6vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.7rem;
  line-height: 1.15;
}

.section__lead {
  color: var(--text-muted);
  max-width: 56ch;
  margin-bottom: 2.1rem;
  font-weight: 300;
  font-size: 1.02rem;
}

.compliance-strip {
  border-block: 1px solid var(--line);
  background: rgba(6, 20, 30, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1.35rem 0;
}

.compliance-strip__inner {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
  display: grid;
  gap: 0.8rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.compliance-strip strong {
  color: var(--aurora-cyan);
  font-weight: 600;
}

.feature-list {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .feature-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.feature-list article {
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    inset 0 1px 0 rgba(236, 254, 255, 0.05),
    0 10px 28px rgba(0, 0, 0, 0.2);
  transition: border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}

.feature-list article:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 rgba(236, 254, 255, 0.08),
    0 16px 36px rgba(0, 0, 0, 0.28),
    0 0 24px rgba(45, 212, 191, 0.08);
}

.feature-list h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.feature-list p {
  color: var(--text-muted);
  font-size: 0.94rem;
  font-weight: 300;
}

.game-links {
  display: grid;
  gap: 1.15rem;
}

@media (min-width: 640px) {
  .game-links {
    grid-template-columns: 1fr 1fr;
  }
}

.game-link {
  display: block;
  padding: 1.5rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(14, 40, 56, 0.55), rgba(6, 18, 28, 0.65));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    inset 0 1px 0 rgba(236, 254, 255, 0.05),
    0 12px 32px rgba(0, 0, 0, 0.22);
  transition: border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}

.game-link:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 rgba(236, 254, 255, 0.08),
    0 18px 40px rgba(0, 0, 0, 0.3),
    0 0 28px rgba(45, 212, 191, 0.1);
}

.game-link:hover h3 {
  color: var(--aurora-cyan);
}

.game-link h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin-bottom: 0.45rem;
  letter-spacing: -0.02em;
  transition: color 0.2s;
}

.game-link p {
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  font-weight: 300;
  font-size: 0.95rem;
}

.game-link .link-label {
  color: var(--aurora-cyan);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.prose {
  max-width: 68ch;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 1.85rem 0 0.65rem;
  letter-spacing: -0.02em;
}

.prose p,
.prose li {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-weight: 300;
}

.prose ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.prose a {
  color: var(--aurora-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-banner {
  padding: 3.25rem 0 1.5rem;
  position: relative;
}

.page-banner::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 140px;
  background: radial-gradient(ellipse 60% 100% at 30% 0%, rgba(45, 212, 191, 0.12), transparent 70%);
  pointer-events: none;
}

.page-banner h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.2vw, 2.65rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.55rem;
  line-height: 1.1;
  position: relative;
}

.page-banner .muted {
  position: relative;
  font-weight: 300;
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid rgba(103, 232, 249, 0.12);
  padding: 2.6rem 0 2.1rem;
  background: rgba(2, 8, 14, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-footer__inner {
  display: grid;
  gap: 1.2rem;
}

.site-footer__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  background: linear-gradient(115deg, var(--aurora-ice), var(--aurora-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-footer__operator {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.site-footer p {
  color: var(--text-dim);
  font-size: 0.85rem;
  max-width: 70ch;
  font-weight: 300;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.site-footer__links a:hover {
  color: var(--aurora-cyan);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  color: var(--aurora-cyan);
  background: rgba(10, 30, 44, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: rgba(4, 12, 20, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.75rem 1rem;
  }

  .site-header__inner {
    position: relative;
  }

  .hero__brand {
    flex-wrap: wrap;
  }

  .hero__brand img {
    width: 64px;
    height: 64px;
  }

  .hero__content {
    padding: 2.5rem 0 4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  #app::after,
  .hero__sky,
  .hero__sky::before,
  .hero__brand,
  .age-gate__mark,
  .btn--primary,
  .age-gate__yes {
    animation: none !important;
  }
}
