/*
  Goldenchalicer (ax) Design System — v3
  - Neon arcade: deep-space + violet/cyan neon accents
  - Decorative imagery moved to CSS backgrounds
  - Strong differentiation: asymmetrical grids, animated neon lines
  - Casino micro-interactions: tracers, sparkles, sheen
  - Accessibility + prefers-reduced-motion
*/

/* CSS Reset (modern) */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body,
h1,
h2,
h3,
h4,
h5,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}
ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:root {
  /* Color System */
  --ax-bg: hsl(260 62% 4%);
  --ax-bg-2: hsl(250 40% 8%);
  --ax-surface: hsl(252 32% 10%);
  --ax-text: hsl(0 0% 98%);
  --ax-muted: hsl(0 0% 74%);
  --ax-primary: hsl(276 100% 66%);
  --ax-primary-600: hsl(274 100% 60%);
  --ax-primary-700: hsl(274 100% 50%);
  --ax-accent: hsl(190 95% 55%);
  --ax-accent-600: hsl(188 95% 48%);
  --ax-success: hsl(158 80% 42%);
  --ax-warning: hsl(44 100% 50%);
  --ax-danger: hsl(8 90% 60%);

  /* Glows */
  --glow-violet: 0 0 32px rgba(198, 78, 255, 0.35);
  --glow-cyan: 0 0 28px rgba(0, 220, 255, 0.35);

  /* Typography */
  --ff-display: "Chakra Petch", system-ui, -apple-system, Segoe UI, Roboto,
    sans-serif;
  --ff-base: "IBM Plex Sans", system-ui, -apple-system, Segoe UI, Roboto,
    sans-serif;
  --fs-900: clamp(2.2rem, 1.6rem + 3.2vw, 4rem);
  --fs-800: clamp(1.6rem, 1.2rem + 2vw, 2.6rem);
  --fs-700: clamp(1.25rem, 1.1rem + 0.8vw, 1.75rem);
  --fs-600: 1.125rem;
  --fs-500: 1rem;
  --fs-400: 0.9375rem;

  /* Spacing */
  --sp-0: 0;
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-7: 2rem;
  --sp-8: 2.5rem;
  --sp-9: 3rem;

  /* Radius */
  --r-1: 8px;
  --r-2: 14px;
  --r-3: 22px;

  /* Easing */
  --e-in: cubic-bezier(0.32, 0, 0.67, 0);
  --e-out: cubic-bezier(0.33, 1, 0.68, 1);
  --e-smooth: cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ax-body {
  background: var(--ax-bg);
  color: var(--ax-text);
  font-family: var(--ff-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-top: 80px;
}

/* Animated neon line network over body (under hero bg) */
.ax-body::before {
  content: "";
  position: fixed;
  inset: -10% -10% -10% -10%;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)),
    repeating-linear-gradient(
      115deg,
      rgba(0, 255, 255, 0.07) 0 2px,
      transparent 2px 40px
    ),
    repeating-linear-gradient(
      25deg,
      rgba(168, 76, 255, 0.07) 0 2px,
      transparent 2px 36px
    );
  mix-blend-mode: screen;
  z-index: 0;
  animation: linesMove 16s linear infinite;
}
@keyframes linesMove {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-2%, -2%, 0);
  }
}

/* Lock content until age verified */
.ax-age-lock header,
.ax-age-lock main,
.ax-age-lock footer {
  filter: blur(4px) saturate(0.85);
  pointer-events: none !important;
  user-select: none !important;
}

/* Utilities */
.ax-container {
  width: min(1160px, 100% - 2rem);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}
.sr-only {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
.ax-note {
  color: var(--ax-muted);
  font-size: var(--fs-400);
}
.ax-h {
  font: 700 var(--fs-800) / 1.2 var(--ff-display);
  letter-spacing: 0.5px;
}
.ax-sub {
  color: var(--ax-muted);
  margin-top: var(--sp-2);
}

/* Skip link */
.ax-skip {
  position: absolute;
  left: -9999px;
  top: -9999px;
  background: var(--ax-accent);
  color: #001018;
  padding: 0.5rem 1rem;
  border-radius: var(--r-1);
  box-shadow: var(--glow-cyan);
  z-index: 10000;
}
.ax-skip:focus {
  left: 1rem;
  top: 1rem;
}

/* Focus styles */
:focus-visible {
  outline: 3px solid color-mix(in lch, var(--ax-accent), white 10%);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Header / Nav */
.ax-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4));
  backdrop-filter: saturate(120%) blur(6px);
}
.ax-nav {
  padding-block: 0.75rem;
}
.ax-nav__wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.ax-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 700 1.25rem/1 var(--ff-display);
  letter-spacing: 0.6px;
  color: var(--ax-text);
  padding: 0.5rem 0.25rem;
}
.ax-logo img {
  width: 40px;
  height: 40px;
  display: inline-block;
  border-radius: 6px;
  filter: drop-shadow(0 0 12px rgba(0, 220, 255, 0.35));
}
.ax-nav__toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  color: var(--ax-text);
}
.ax-nav__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ax-text);
  border-radius: 2px;
  transition: transform 0.24s var(--e-smooth), opacity 0.18s var(--e-out);
}
.ax-nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.ax-nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.ax-nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.ax-nav__menu {
  display: none;
  gap: 0.5rem;
  align-items: center;
}
.ax-nav__link {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0.75rem;
  color: var(--ax-text);
  border-radius: 8px;
  transition: color 0.18s var(--e-out), background 0.18s var(--e-out);
}
.ax-nav__link:hover {
  color: var(--ax-text);
  background: rgba(255, 255, 255, 0.08);
}
/* Neon tracer underline */
.ax-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 6px;
  height: 2px;
  background: linear-gradient(90deg, var(--ax-accent), var(--ax-primary));
  box-shadow: var(--glow-cyan);
  transition: right 0.35s var(--e-out);
}
.ax-nav__link:hover::after {
  right: 0;
}
.ax-nav__cta {
  margin-left: 0.5rem;
}

@media (min-width: 900px) {
  .ax-nav__toggle {
    display: none;
  }
  .ax-nav__menu {
    display: flex;
  }
}

/* Mobile menu panel */
@media (max-width: 899.98px) {
  .ax-nav__menu {
    position: absolute;
    inset: calc(64px) 0 auto 0;
    display: grid;
    grid-auto-rows: minmax(44px, auto);
    padding: 0.75rem;
    background: rgba(10, 0, 32, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
    transform-origin: top;
    transform: scaleY(0.96);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.22s var(--e-out), opacity 0.22s var(--e-out);
  }
  .ax-nav__menu.is-open {
    opacity: 1;
    transform: scaleY(1);
    pointer-events: auto;
  }
}

/* Buttons */
.ax-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
}
.ax-actions--tight {
  gap: 0.4rem;
}
.ax-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: var(--r-2);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.18),
    rgba(255, 255, 255, 0.1)
  );
  color: var(--ax-text);
  transition: transform 0.18s var(--e-out), box-shadow 0.18s var(--e-out),
    border-color 0.18s var(--e-out);
  overflow: hidden;
}
.ax-btn:hover {
  transform: translateY(-1px);
}
.ax-btn--sm {
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  font-size: 0.9375rem;
}
.ax-btn--primary {
  background: linear-gradient(
    180deg,
    color-mix(in hsl, var(--ax-primary) 85%, white 5%),
    rgba(255, 255, 255, 0.12)
  );
  border-color: color-mix(in hsl, var(--ax-primary) 60%, black 20%);
  box-shadow: var(--glow-violet);
}
.ax-btn--primary:hover {
  box-shadow: 0 0 0 3px rgba(198, 78, 255, 0.18), var(--glow-violet);
}
.ax-btn--accent {
  background: linear-gradient(
    180deg,
    color-mix(in hsl, var(--ax-accent) 85%, white 5%),
    rgba(255, 255, 255, 0.12)
  );
  border-color: color-mix(in hsl, var(--ax-accent) 60%, black 20%);
  box-shadow: var(--glow-cyan);
  color: #001018;
  font-weight: 600;
}
.ax-btn--accent:hover {
  box-shadow: 0 0 0 3px rgba(0, 220, 255, 0.2), var(--glow-cyan);
}
.ax-btn--ghost {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--ax-text);
}

/* Sheen + sparkles */
.ax-btn::after {
  content: "";
  position: absolute;
  inset: -200% -20% auto -20%;
  height: 200%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0.28) 50%,
    rgba(255, 255, 255, 0) 60%
  );
  transform: translateX(-60%);
  pointer-events: none;
}
.ax-btn:hover::after {
  animation: sheen 1s var(--e-out);
}
.ax-btn::before {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.9),
    rgba(255, 255, 255, 0)
  );
  top: -8px;
  left: -8px;
  filter: drop-shadow(0 0 10px rgba(0, 220, 255, 0.8));
  opacity: 0;
}
.ax-btn:hover::before {
  animation: sparkle 0.9s var(--e-out) forwards;
}
@keyframes sheen {
  to {
    transform: translateX(60%);
  }
}
@keyframes sparkle {
  0% {
    opacity: 0;
    transform: translate(0, 0);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(140%, 180%);
  }
}

/* Play button */
.ax-btn--play {
  font-weight: 700;
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  background: radial-gradient(
      120% 120% at 30% 30%,
      rgba(255, 255, 255, 0.25),
      rgba(255, 255, 255, 0.1) 40%,
      rgba(255, 255, 255, 0.06) 60%
    ),
    linear-gradient(90deg, var(--ax-primary) 0%, var(--ax-accent) 100%);
  color: #001018;
  border: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1), var(--glow-violet),
    var(--glow-cyan);
}
.ax-btn--play:hover {
  animation: pulse 1.2s infinite alternate ease-in-out;
}
@keyframes pulse {
  from {
    transform: translateY(-1px) scale(1);
  }
  to {
    transform: translateY(-2px) scale(1.02);
  }
}

/* Hero */
.ax-hero {
  position: relative;
  isolation: isolate;
  z-index: 2;
  padding-block: clamp(3rem, 6vw, 7rem);
}
.ax-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.58;
  mask-image: linear-gradient(to bottom, #000, #000 70%, transparent);
  pointer-events: none;
}
.ax-hero__bg img {
  display: none !important;
}
.ax-hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center bottom;
  filter: saturate(1.15) brightness(0.9);
}
/* Per-page hero backgrounds */
.ax-hero[data-bg="grid"] .ax-hero__bg::before {
  background-image: url("../images/neon-arcade-grid-infinite-floor-cyberpunk-violet-cyan-glow-minimal.webp");
}
.ax-hero[data-bg="waves"] .ax-hero__bg::before {
  background-image: url("../images/hero-about-neon-arcade-waves-violet-cyan-fog.webp");
}
.ax-hero__content {
  display: grid;
  gap: var(--sp-6);
  max-width: 900px;
  position: relative;
  z-index: 4;
}
.ax-hero__title {
  font: 700 var(--fs-900) / 1.05 var(--ff-display);
  letter-spacing: 0.4px;
}
.ax-hero__kicker {
  display: block;
  color: var(--ax-accent);
  font-weight: 600;
  margin-bottom: var(--sp-1);
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
}
.ax-hero__brand {
  display: block;
  color: var(--ax-primary);
  text-shadow: 0 0 24px rgba(198, 78, 255, 0.35);
}
.ax-testimonial__author img {
  border-radius: 50%;
  border: 1px solid var(--ax-primary-600);
}
.ax-hero__sub {
  display: block;
  color: var(--ax-text);
  font-size: var(--fs-600);
  margin-top: var(--sp-2);
}
.ax-hero__desc {
  color: var(--ax-text);
  max-width: 60ch;
}
.ax-hero__features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: var(--sp-2);
}
/* Redesigned feature icon (vector neon glyph) */
.ax-feature {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 0.6rem 0.75rem;
}
.ax-feature__icon {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid color-mix(in hsl, var(--ax-accent), white 20%);
  box-shadow: var(--glow-cyan);
  overflow: hidden;
}
.ax-feature__icon::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px solid color-mix(in hsl, var(--ax-primary), white 10%);
  box-shadow: 0 0 8px rgba(0, 220, 255, 0.35);
}
.ax-feature__icon::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 2px;
  background: linear-gradient(90deg, var(--ax-accent), var(--ax-primary));
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(40deg);
  border-radius: 2px;
}

/* Benefits */
.ax-benefits {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.ax-benefits__grid {
  margin-top: var(--sp-5);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.ax-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.14),
    rgba(255, 255, 255, 0.08)
  );
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--r-3);
  padding: 1.25rem;
  transition: transform 0.2s var(--e-out), box-shadow 0.2s var(--e-out);
  backdrop-filter: blur(4px);
}
.ax-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35), var(--glow-violet);
}
/* Vector-style icon for card */
.ax-card__icon {
  position: relative;
  width: 46px;
  height: 46px;
  margin-bottom: 0.75rem;
}
.ax-card__icon::before {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  background: linear-gradient(135deg, var(--ax-primary), var(--ax-accent));
  box-shadow: var(--glow-violet), var(--glow-cyan);
  border-radius: 10px;
}
.ax-card__icon::after {
  content: "";
  position: absolute;
  inset: 4px;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  background: rgba(0, 0, 0, 0.35);
}
.ax-card__h {
  font: 700 var(--fs-700) / 1.2 var(--ff-display);
  margin-bottom: 0.25rem;
}
.ax-card__p {
  color: var(--ax-muted);
}

@media (max-width: 899.98px) {
  .ax-benefits__grid {
    grid-template-columns: 1fr;
  }
  .ax-hero__features {
    grid-template-columns: 1fr;
  }
}

/* Games */
.ax-games {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.ax-section__head {
  display: grid;
  gap: 0.4rem;
}
.ax-games__grid {
  margin-top: var(--sp-6);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  grid-auto-flow: dense;
}
.ax-game {
  position: relative;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.14),
    rgba(255, 255, 255, 0.08)
  );
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--r-3);
  overflow: hidden;
  transition: transform 0.2s var(--e-out), box-shadow 0.2s var(--e-out);
  backdrop-filter: blur(4px);
  display: grid;
  grid-auto-rows: auto 1fr;
}
.ax-game:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35), var(--glow-cyan);
}
.ax-game__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  z-index: 3;
  pointer-events: none;
}
.ax-game__media {
  position: relative;
  padding: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.ax-game__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
}
.ax-game__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(
    60% 60% at 50% 50%,
    rgba(0, 0, 0, 0) 30%,
    rgba(0, 0, 0, 0.55)
  );
  opacity: 0;
  transition: opacity 0.2s var(--e-out);
  z-index: 2;
}
.ax-game:hover .ax-game__overlay {
  opacity: 1;
}
.ax-game__info {
  padding: 1rem;
  display: grid;
  gap: 0.6rem;
}
.ax-game__title {
  font: 700 1.125rem/1.25 var(--ff-display);
}
.ax-game__rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ax-muted);
}
/* Always show 5 filled neon stars */
.ax-stars {
  position: relative;
  width: auto;
  height: 1.25em;
  font-size: 1.05rem;
  letter-spacing: 2px;
}
.ax-stars::before {
  content: "★★★★★";
  background: linear-gradient(90deg, var(--ax-accent), var(--ax-primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ax-rating__text {
  font-size: 0.875rem;
  color: var(--ax-muted);
}
.ax-game__desc {
  color: var(--ax-muted);
}
.ax-game__stats {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.ax-stat {
  padding: 0.15rem 0.5rem;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: var(--ax-muted);
  font-size: 0.85rem;
}

@media (min-width: 1024px) {
  .ax-games__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: auto;
  }
  /* Reset manual spanning/placement to avoid oversized first card */
  .ax-games__grid > .ax-game:nth-child(1),
  .ax-games__grid > .ax-game:nth-child(2),
  .ax-games__grid > .ax-game:nth-child(3) {
    grid-column: auto;
    grid-row: auto;
    min-height: auto;
    display: grid;
    grid-auto-rows: auto 1fr;
  }
  .ax-game__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}
@media (max-width: 1023.98px) {
  .ax-games__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 639.98px) {
  .ax-games__grid {
    grid-template-columns: 1fr;
  }
}

/* Testimonials */
.ax-testimonials {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.ax-testimonials__grid {
  margin-top: var(--sp-6);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.ax-testimonial {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.14),
    rgba(255, 255, 255, 0.08)
  );
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--r-3);
  padding: 1rem;
  display: grid;
  gap: 0.6rem;
  backdrop-filter: blur(4px);
}
.ax-testimonial__author {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.ax-author__name {
  font-weight: 600;
}
.ax-author__badge {
  color: var(--ax-muted);
  font-size: 0.875rem;
}

@media (max-width: 1023.98px) {
  .ax-testimonials__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 639.98px) {
  .ax-testimonials__grid {
    grid-template-columns: 1fr;
  }
}

/* Leaderboard */
.ax-leaderboard {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.ax-leaderboard__list {
  margin-top: var(--sp-6);
  display: grid;
  gap: 0.6rem;
}
.ax-leaderboard__item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 0.8rem;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.14),
    rgba(255, 255, 255, 0.08)
  );
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 0.75rem;
  backdrop-filter: blur(4px);
}
.ax-rank {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 700;
}
.ax-leaderboard__item.is-gold .ax-rank {
  background: linear-gradient(135deg, #f0c75e, #b98a0e);
  color: #1a1200;
}
.ax-leaderboard__item.is-silver .ax-rank {
  background: linear-gradient(135deg, #d7dee2, #8a949b);
  color: #0d1216;
}
.ax-leaderboard__item.is-bronze .ax-rank {
  background: linear-gradient(135deg, #e1b089, #8b4e2c);
  color: #1a0e08;
}
.ax-player__name {
  font-weight: 600;
}
.ax-player__win,
.ax-game__played {
  color: var(--ax-muted);
  font-size: 0.9375rem;
}

/* Accordion */
.ax-faq {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.ax-accordion {
  margin-top: var(--sp-6);
  display: grid;
  gap: 0.6rem;
}
.ax-accordion__item {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.18),
    rgba(255, 255, 255, 0.12)
  );
}
.ax-accordion__q {
  width: 100%;
  background: transparent;
  text-align: left;
  padding: 0.9rem 1rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
}
.ax-accordion__icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}
.ax-accordion__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.24s var(--e-out);
}
.ax-accordion__a > * {
  overflow: hidden;
  padding-inline: 1rem;
  color: var(--ax-muted);
}
.ax-accordion__item.is-open .ax-accordion__a {
  grid-template-rows: 1fr;
  padding-bottom: 0.9rem;
  padding-top: 0.9rem;
}

/* CTA */
.ax-cta {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.ax-cta__content {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.14),
    rgba(255, 255, 255, 0.08)
  );
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--r-3);
  padding: 1.25rem;
  display: grid;
  gap: 0.6rem;
  box-shadow: var(--glow-violet);
  backdrop-filter: blur(4px);
}
.ax-cta__title {
  font: 700 var(--fs-800) / 1.2 var(--ff-display);
}
.ax-cta__subtitle {
  color: var(--ax-muted);
}
.ax-cta__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.ax-cta__badges > span {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  color: var(--ax-muted);
}

/* Disclaimer */
.ax-disclaimer {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.ax-disclaimer__logos {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}
.ax-disclaimer__content {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 1rem;
  display: grid;
  gap: 0.6rem;
  backdrop-filter: blur(4px);
}
.ax-disclaimer__resources ul {
  margin: 0.25rem 0 0 1rem;
}
.ax-disclaimer__resources li {
  position: relative;
  margin: 0.3rem 0 0.3rem 0.25rem;
  color: var(--ax-muted);
  padding-left: 1rem;
}
.ax-disclaimer__resources li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--ax-accent), var(--ax-primary));
  box-shadow: var(--glow-cyan);
  transform: rotate(45deg);
}

/* Footer */
.ax-footer {
  padding-block: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0));
}
.ax-footer__content {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.ax-footer__links {
  display: grid;
  gap: 0.25rem;
}
.ax-footer__links li {
  position: relative;
  padding-left: 1rem;
}
.ax-footer__links li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: color-mix(in hsl, var(--ax-accent), white 10%);
  box-shadow: var(--glow-cyan);
}
.ax-support,
.ax-cert__text {
  color: var(--ax-muted);
}
.ax-footer__bottom {
  margin-top: 1rem;
  color: var(--ax-muted);
  text-align: center;
  font-size: 0.9375rem;
}

@media (max-width: 899.98px) {
  .ax-footer__content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 599.98px) {
  .ax-footer__content {
    grid-template-columns: 1fr;
  }
}

/* Cookie banner */
.ax-cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: none;
}
.ax-cookie.is-visible {
  display: block;
}
.ax-cookie__content {
  margin: 0.75rem auto;
  width: min(900px, 100% - 1.5rem);
  background: rgba(10, 0, 32, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 0.6rem 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  backdrop-filter: blur(8px);
}

/* Modals */
.ax-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: none;
  place-items: center;
  background: rgba(2, 0, 12, 0.75);
  backdrop-filter: blur(8px) saturate(120%);
}
.ax-modal.is-active {
  display: grid;
}
.ax-modal__panel {
  width: min(720px, 92%);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.14),
    rgba(255, 255, 255, 0.08)
  );
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  box-shadow: var(--glow-violet), var(--glow-cyan);
}

/* Modal head centered row */
.ax-modal__head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
}
.ax-modal__head h2 {
  margin: 0;
  text-align: center;
}
.ax-modal__close {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

/* Game modal specific */
.ax-modal.ax-game .ax-modal__panel {
  width: min(980px, 94%);
  max-height: 92vh;
}
.ax-modal.ax-game .ax-modal__body {
  padding: 1rem;
  max-height: none;
  overflow: visible;
}
#game-container {
  margin: 0.5rem 0 1rem;
}

/* Age modal */
.ax-age__title {
  font: 700 var(--fs-700) / 1.2 var(--ff-display);
}
.ax-age__subtitle,
.ax-age__disclaimer {
  color: var(--ax-muted);
}
.ax-age .ax-modal__panel {
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
}
.ax-age__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ax-age__logo img {
  height: 70px;
  width: 70px;
  display: inline-block;
}

/* Registration modal */
.ax-auth .ax-modal__head,
.ax-auth .ax-modal__foot {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.ax-auth .ax-modal__foot {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: none;
}
/* Game modal head/foot to match registration modal */
.ax-game .ax-modal__head,
.ax-game .ax-modal__foot {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.ax-game .ax-modal__foot {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: none;
}
.ax-modal__close {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.4rem 0.6rem;
  border-radius: 10px;
}
.ax-modal__body {
  padding: 1rem;
  max-height: min(70vh, 680px);
  overflow: auto;
}

/* Forms */
.ax-form {
  display: grid;
  gap: 0.75rem;
}
.ax-field {
  display: grid;
  gap: 0.35rem;
}
.ax-field label {
  font-weight: 600;
}
.ax-field input,
.ax-field textarea {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  color: var(--ax-text);
}
.ax-field input:focus,
.ax-field textarea:focus {
  border-color: color-mix(in lch, var(--ax-accent), white 10%);
  box-shadow: var(--glow-cyan);
}
.ax-hint {
  color: var(--ax-muted);
  font-size: 0.875rem;
}
.ax-field__error {
  color: #ff8a8a;
  font-size: 0.9rem;
  min-height: 1em;
}
.ax-field--check {
  display: grid;
  gap: 0.35rem;
}
.ax-check {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  color: var(--ax-muted);
}
/* Custom checkboxes */
.ax-check input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
}
.ax-check input[type="checkbox"]:focus {
  outline: 2px solid color-mix(in hsl, var(--ax-accent), white 10%);
  outline-offset: 2px;
}
.ax-check input[type="checkbox"]::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--ax-accent), var(--ax-primary));
  transform: scale(0);
  transition: transform 0.15s var(--e-out);
}
.ax-check input[type="checkbox"]:checked::after {
  transform: scale(1);
}
.ax-status {
  color: var(--ax-muted);
  font-size: 0.9rem;
}
.ax-form__error {
  color: #ff8a8a;
  min-height: 1.1rem;
}

/* Opacity overrides: make blocks less transparent */
.ax-card,
.ax-game,
.ax-testimonial,
.ax-leaderboard__item,
.ax-cta__content {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.14)
  );
}
.ax-disclaimer__content {
  background: rgba(255, 255, 255, 0.12);
}
/* Hero buttons less transparent */
.ax-hero .ax-btn--primary {
  background: linear-gradient(
    180deg,
    color-mix(in hsl, var(--ax-primary) 90%, white 8%),
    rgba(255, 255, 255, 0.18)
  );
}
.ax-hero .ax-btn--accent {
  background: linear-gradient(
    180deg,
    color-mix(in hsl, var(--ax-accent) 90%, white 8%),
    rgba(255, 255, 255, 0.18)
  );
}

/* Accessibility: prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* Toast region additional styling */
#ax-toasts > div {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 8px 30px rgba(0, 0, 0, 0.35), 0 0 24px rgba(0, 220, 255, 0.22);
}
@media (max-width: 899.98px) {
  .ax-modal__head {
    justify-content: flex-start;
    font-size: 0.9rem;
  }
}
