/* AX Theme v1 — unique design system (2025)
   Typography: Space Grotesk (UI), Fraunces (Headings)
   Palette: Deep Night + Violet/Cyan accents
*/
@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Space+Grotesk:wght@400;500;700&display=swap");

:root {
  --ax-bg: #0e0b14;
  --ax-surface: #121826;
  --ax-elev: #1b2233;
  --ax-line: #2a3550;
  --ax-soft: #9fb0d1;
  --ax-text: #eef1f7;
  --ax-sub: #c7d0e6;
  --ax-accent: #8b5cf6; /* violet */
  --ax-accent-2: #06b6d4; /* cyan */
  --ax-warn: #f59e0b; /* amber */
  --ax-good: #22c55e; /* green */
  --ax-radius: 14px;
  --ax-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  --ax-shadow-soft: 0 6px 18px rgba(0, 0, 0, 0.25);
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  background: radial-gradient(
      1200px 800px at 110% -10%,
      rgba(139, 92, 246, 0.15),
      transparent 55%
    ),
    radial-gradient(
      900px 650px at -10% 110%,
      rgba(6, 182, 212, 0.14),
      transparent 60%
    ),
    linear-gradient(180deg, #0e0b14 0%, #0d0f1a 100%);
  background-attachment: fixed, fixed, fixed;
  color: var(--ax-text);
  font: 400 16px/1.6 "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto,
    Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Accessibility */
.ax-skip {
  position: absolute;
  left: -9999px;
}
.ax-skip:focus {
  position: fixed;
  left: 8px;
  top: 8px;
  background: #000;
  color: #fff;
  padding: 10px 12px;
  border-radius: 8px;
  z-index: 9999;
}
:focus-visible {
  outline: 2px dashed rgba(139, 92, 246, 0.6);
  outline-offset: 2px;
}

/* Layout */
.ax-container {
  width: min(1180px, 94%);
  margin-inline: auto;
}
.ax-section {
  padding: clamp(28px, 5vw, 56px) 0;
  content-visibility: auto;
  contain-intrinsic-size: 600px;
}
.ax-grid {
  display: grid;
  gap: 20px;
}
.ax-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Headings */
.ax-h1,
.ax-h2,
.ax-h3 {
  font-family: "Fraunces", ui-serif, Georgia, serif;
  letter-spacing: 0.2px;
}
.ax-h1 {
  font-size: clamp(28px, 4.2vw, 48px);
  line-height: 1.15;
  margin: 0 0 10px;
}
.ax-h2 {
  font-size: clamp(22px, 3vw, 32px);
  margin: 0 0 12px;
}
.ax-h3 {
  font-size: clamp(18px, 2.2vw, 22px);
  margin: 0 0 8px;
}
.ax-lead {
  color: var(--ax-sub);
  font-size: clamp(15px, 2.2vw, 18px);
  margin: 0;
}

/* Buttons */
.ax-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
  border-radius: var(--ax-radius);
  padding: 12px 18px;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.3s ease, background 0.3s ease,
    border-color 0.3s ease;
  border: 1px solid transparent;
}
.ax-btn--primary {
  background: linear-gradient(135deg, var(--ax-accent), var(--ax-accent-2));
  color: #0a0b10;
  box-shadow: var(--ax-shadow);
  border-color: rgba(139, 92, 246, 0.35);
}
.ax-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(139, 92, 246, 0.35);
}
.ax-btn--ghost {
  background: transparent;
  color: var(--ax-text);
  border-color: var(--ax-line);
}
.ax-btn--ghost:hover {
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.4);
}

/* Hero */
.ax-hero {
  background: linear-gradient(
    180deg,
    rgba(18, 24, 38, 0.75),
    rgba(18, 24, 38, 0.35)
  );
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: calc(var(--ax-radius) + 2px);
  padding: clamp(18px, 3.2vw, 28px);
  box-shadow: var(--ax-shadow-soft);
  backdrop-filter: blur(6px) saturate(140%);
}
.ax-hero .ax-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #c6c8ff;
  background: rgba(139, 92, 246, 0.18);
  border: 1px solid rgba(139, 92, 246, 0.35);
  padding: 6px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

/* Rank list — vertical full-width cards */
.ax-rank {
  display: grid;
  gap: 16px;
}
.ax-card {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 16px;
  align-items: center;
  background: var(--ax-surface);
  border: 1px solid var(--ax-line);
  border-radius: var(--ax-radius);
  padding: 14px;
  box-shadow: var(--ax-shadow-soft);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.ax-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    120deg,
    rgba(139, 92, 246, 0.18),
    rgba(6, 182, 212, 0.18)
  );
  mix-blend-mode: overlay;
  opacity: 0.25;
}
.ax-logo {
  padding: 5px;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}
.ax-offer {
  color: #f5e8c7;
  font-weight: 700;
  background: linear-gradient(
    180deg,
    rgba(245, 158, 11, 0.18),
    rgba(245, 158, 11, 0.08)
  );
  border: 1px dashed rgba(245, 158, 11, 0.45);
  border-radius: 10px;
  padding: 8px 10px;
  width: fit-content;
}
.ax-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
}
.ax-badge {
  font-size: 12px;
  font-weight: 700;
  color: #b5d9ff;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.35);
  padding: 4px 8px;
  border-radius: 999px;
}
.ax-score {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ax-sub);
  font-weight: 700;
}
.ax-meter {
  --score: 5;
  width: 120px;
  height: 9px;
  background: linear-gradient(
    90deg,
    var(--ax-good) calc(var(--score) * 20%),
    rgba(255, 255, 255, 0.08) 0
  );
  border-radius: 999px;
}
.ax-pay {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 5px 0;
}
.ax-pay img {
  width: 60px;
  height: 28px;
  object-fit: contain;
  filter: saturate(115%);
}
.ax-cta {
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 8px;
}
.ax-footnote {
  font-size: 12px;
  color: var(--ax-soft);
}

/* Benefits */
.ax-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.ax-benefit {
  background: var(--ax-surface);
  border: 1px solid var(--ax-line);
  border-radius: var(--ax-radius);
  padding: 16px;
  box-shadow: var(--ax-shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.3s ease;
}
.ax-benefit:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(6, 182, 212, 0.22);
}
.ax-ico {
  font-size: 22px;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.25);
  margin-bottom: 8px;
}

/* Accordion */
.ax-accordion details {
  margin-bottom: 10px;
  background: var(--ax-surface);
  border: 1px solid var(--ax-line);
  border-radius: var(--ax-radius);
  overflow: hidden;
}
.ax-accordion summary {
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 700;
  background: #0f1524;
}
.ax-accordion p {
  padding: 0 14px 12px;
  color: var(--ax-sub);
}

/* Reviews */
.ax-reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.ax-review {
  background: var(--ax-surface);
  border: 1px solid var(--ax-line);
  border-radius: var(--ax-radius);
  padding: 14px;
  box-shadow: var(--ax-shadow-soft);
}
.ax-stars {
  --score: 5;
  height: 10px;
  width: 140px;
  background: linear-gradient(
    90deg,
    var(--ax-accent) calc(var(--score) * 20%),
    rgba(255, 255, 255, 0.1) 0
  );
  border-radius: 999px;
  margin-bottom: 8px;
}

/* Casino Games Gallery */
.ax-games {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.ax-game {
  text-align: center;
  background: var(--ax-surface);
  border: 1px solid var(--ax-line);
  border-radius: var(--ax-radius);
  padding: 16px;
  transition: box-shadow 0.3s ease, transform 0.25s ease;
}
.ax-game:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(139, 92, 246, 0.24);
}

/* Charts */
.ax-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.ax-chart {
  background: var(--ax-surface);
  border: 1px solid var(--ax-line);
  border-radius: var(--ax-radius);
  padding: 14px;
  box-shadow: var(--ax-shadow-soft);
}
.ax-bar {
  --val: 50;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--ax-accent) calc(var(--val) * 1%),
    rgba(255, 255, 255, 0.08) 0
  );
  margin-bottom: 8px;
}
.ax-indicator {
  color: var(--ax-sub);
  font-size: 14px;
}

/* Top banner */
.ax-banner {
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.25),
    rgba(6, 182, 212, 0.25)
  );
  color: var(--ax-text);
  padding: 22px;
  border-radius: var(--ax-radius);
  border: 1px solid rgba(139, 92, 246, 0.35);
  box-shadow: var(--ax-shadow);
}

/* Footer */
.ax-footer {
  padding: 28px 0;
  border-top: 1px solid var(--ax-line);
  margin-top: 40px;
  background: rgba(10, 12, 20, 0.85);
  backdrop-filter: blur(8px);
}
.ax-footwrap {
  display: grid;
  gap: 18px;
}
.ax-note {
  background: var(--ax-surface);
  border: 1px solid var(--ax-line);
  border-radius: var(--ax-radius);
  padding: 14px;
  box-shadow: var(--ax-shadow-soft);
}
.ax-footrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
}
.ax-logos {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.ax-logos img {
  height: 30px;
  filter: saturate(118%);
}

/* Uniform badge styling for footer logos (links and standalone image) */
.ax-logos a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(139, 92, 246, 0.25);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease,
    border-color 0.25s ease;
  min-height: 44px;
}
.ax-logos a:hover {
  transform: translateY(-1px);
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 8px 22px rgba(139, 92, 246, 0.18);
}
.ax-logos a:focus-visible {
  outline: 2px solid rgba(139, 92, 246, 0.5);
  outline-offset: 2px;
}
.ax-logos a img {
  height: 28px;
  filter: saturate(118%) contrast(105%);
}
/* Standalone 18+ image gets same badge look */
.ax-logos > img {
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(139, 92, 246, 0.25);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  height: 28px;
}

@media (max-width: 960px) {
  .ax-logos a {
    padding: 4px 8px;
    min-height: 40px;
  }
  .ax-logos a img,
  .ax-logos > img {
    height: 24px;
  }
}
.ax-nav {
  order: -1;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.ax-nav a {
  color: #d7dcf0;
  text-decoration: none;
  border-bottom: 1px dashed transparent;
}
.ax-nav a:hover {
  color: #b7bdf5;
  border-bottom-color: rgba(183, 189, 245, 0.4);
}
.ax-copy {
  text-align: center;
  color: var(--ax-soft);
}

/* Legal article styles */
.ax-article {
  display: block;
}
.ax-p {
  margin: 0 0 10px;
  color: var(--ax-sub);
}
.ax-ul {
  margin: 8px 0 12px;
  padding-left: 18px;
}
.ax-ul li {
  margin: 6px 0;
}
.ax-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--ax-line);
  background: var(--ax-surface);
  border-radius: var(--ax-radius);
  overflow: hidden;
}
.ax-table th,
.ax-table td {
  border-bottom: 1px solid var(--ax-line);
  padding: 10px 12px;
  text-align: left;
}
.ax-table thead th {
  background: #0f1524;
}
.ax-a {
  color: #9dd9ff;
  text-underline-offset: 2px;
}
.ax-a:hover {
  color: #d0f0ff;
}

/* Utilities */
.ax-hide {
  display: none !important;
}
.ax-center {
  text-align: center;
}
.ax-muted {
  color: var(--ax-soft);
}

@media (prefers-reduced-motion: reduce) {
  .ax-btn,
  .ax-benefit,
  .ax-game {
    transition: none;
  }
}

/* Page-specific enrichments for visual uniqueness */
.ax-banner.ax-topchoice {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 16px;
  grid-template-columns: 1.1fr 0.9fr;
}
.ax-topchoice::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  pointer-events: none;
  background: radial-gradient(
      600px 380px at 110% -10%,
      rgba(139, 92, 246, 0.18),
      transparent 55%
    ),
    radial-gradient(
      500px 320px at -10% 120%,
      rgba(6, 182, 212, 0.18),
      transparent 60%
    );
}
.ax-topwrap {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 14px;
  align-items: center;
}
.ax-ribbon {
  position: absolute;
  left: -10px;
  top: 12px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #0c0b10;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: 10px;
  transform: skew(-12deg);
  box-shadow: 0 10px 24px rgba(251, 191, 36, 0.28);
}
.ax-sticker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(139, 92, 246, 0.35);
  font-weight: 700;
}
.ax-mini {
  font-size: 12px;
  color: #9fb0d1;
}
.ax-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.35);
  font-weight: 700;
}
.ax-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}
.ax-card .ax-ribbon {
  z-index: 2;
}
.ax-card .ax-sticker {
  position: absolute;
  right: 12px;
  top: 6px;
  z-index: 2;
}
.ax-games .ax-game strong {
  display: block;
  margin-bottom: 6px;
}

/* Compact variants to reduce whitespace */
.ax-compact-top {
  padding: 18px 0 !important;
}
.ax-compact-list {
  padding: 22px 0 !important;
}
.ax-compact-top .ax-banner.ax-topchoice {
  padding: 20px 14px 14px 14px;
  gap: 12px;
}
.ax-compact-top .ax-sticker {
  padding: 4px 8px;
  font-size: 12px;
}
.ax-compact-top .ax-pill {
  padding: 4px 8px;
  font-size: 12px;
}
.ax-compact-top .ax-highlights {
  gap: 6px;
  margin: 6px 0;
}
.ax-compact-top .ax-ribbon {
  top: 4px;
  padding: 4px 12px;
  font-size: 12px;
}

.ax-compact-list .ax-rank {
  gap: 12px;
}

.ax-compact-list .ax-offer {
  padding: 6px 8px;
  font-size: 14px;
  margin: 6px 0;
}
.ax-compact-list .ax-badges {
  margin: 8px 0;
  gap: 6px;
}
.ax-compact-list .ax-badge {
  font-size: 11px;
  padding: 3px 6px;
}
.ax-compact-list .ax-pay img {
  width: 52px;
  height: 24px;
}
.ax-compact-list .ax-highlights {
  margin: 6px 0;
  gap: 6px;
}
.ax-compact-list .ax-mini,
.ax-compact-list .ax-footnote {
  font-size: 11px;
}

/* Ultra-dense mode to minimize whitespace further */
.ax-dense .ax-section {
  padding: 14px 0;
}
.ax-dense .ax-h1 {
  font-size: clamp(24px, 3.2vw, 40px);
  margin: 0 0 6px;
}
.ax-dense .ax-h2 {
  font-size: clamp(18px, 2.4vw, 26px);
  margin: 0 0 8px;
}
.ax-dense .ax-h3 {
  font-size: clamp(16px, 2vw, 18px);
  margin: 0 0 6px;
}
.ax-dense .ax-lead {
  font-size: 14px;
  line-height: 1.5;
}
.ax-dense .ax-hero {
  padding: 14px;
}
.ax-dense .ax-tag {
  margin-bottom: 6px;
}

/* Top Choice changes per request */
.ax-dense .ax-topwrap {
  grid-template-columns: 200px 1fr !important;
  gap: 8px;
}
.ax-dense .ax-topchoice .ax-logo {
  height: 88px;
}
.ax-dense .ax-toprow {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.ax-dense .ax-topchoice .ax-mini {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}
.ax-mini .ax-btn {
  min-width: 200px;
}
/* Cards: larger logo and row meta */
.ax-dense .ax-card {
  grid-template-columns: 200px 1fr 200px;
  gap: 8px;
  padding: 10px;
}
.ax-cta .ax-btn {
  width: 100%;
}
.ax-dense .ax-rowmeta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 5px 0;
}
.ax-dense .ax-badges,
.ax-dense .ax-highlights {
  margin: 0;
}
.ax-dense .ax-score {
  gap: 6px;
  margin: 0;
}

.ax-dense .ax-games .ax-game {
  padding: 10px;
}
.ax-dense .ax-charts {
  gap: 10px;
}
.ax-dense .ax-chart {
  padding: 10px;
}

/* Mobile ultra-compact: ensure columns and visible logos */
@media (max-width: 960px) {
  .ax-banner.ax-topchoice {
    grid-template-columns: 1fr;
  }
  .ax-dense .ax-section {
    padding: 10px 0;
  }
  .ax-dense .ax-h1 {
    font-size: clamp(20px, 6vw, 28px);
    margin: 0 0 4px;
  }
  .ax-dense .ax-h2 {
    font-size: clamp(16px, 5vw, 22px);
    margin: 0 0 6px;
  }
  .ax-dense .ax-h3 {
    font-size: clamp(14px, 4.5vw, 18px);
    margin: 0 0 4px;
  }
  .ax-dense .ax-lead {
    font-size: 13px;
    line-height: 1.45;
  }

  .ax-topchoice {
    padding: 8px !important;
    gap: 8px !important;
  }
  .ax-topwrap {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  .ax-topchoice .ax-logo {
    height: 96px;
    max-width: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
  }
  .ax-topchoice .ax-sticker,
  .ax-topchoice .ax-pill {
    font-size: 10px;
    padding: 3px 6px;
  }
  .ax-topchoice .ax-mini {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .ax-topchoice .ax-mini .ax-btn {
    width: 100%;
  }
  .ax-topchoice .ax-ribbon {
    position: static;
    transform: none;
    margin-bottom: 6px;
  }

  .ax-rank {
    gap: 8px;
  }
  .ax-card {
    grid-template-columns: 1fr !important;
    padding: 10px;
  }
  .ax-card .ax-logo {
    height: 96px;
    max-width: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto 6px;
  }
  .ax-card .ax-sticker {
    position: static;
    align-self: flex-start;
  }
  .ax-card .ax-ribbon {
    position: static;
    transform: none;
    margin-bottom: 6px;
  }
  .ax-rowmeta {
    gap: 4px;
  }
  .ax-offer {
    font-size: 12px;
    padding: 4px 6px;
  }
  .ax-badge {
    font-size: 10px;
    padding: 2px 5px;
  }
  .ax-pill {
    font-size: 10px;
    padding: 2px 5px;
  }
  .ax-pay img {
    width: 36px;
    height: 16px;
  }
  .ax-footnote,
  .ax-mini {
    font-size: 10px;
  }
}
