:root {
  --bg: #060F17;
  --surface: #0E1D2B;
  --surface-alt: #13283B;
  --border: rgba(34, 211, 238, 0.18);
  --border-strong: rgba(34, 211, 238, 0.35);
  --accent: #22D3EE;
  --accent-hover: #06B6D4;
  --accent2: #FACC15;
  --accent2-hover: #EAB308;
  --text: #ECFEFF;
  --text-soft: #CBD5E1;
  --text-muted: #94A3B8;
  --danger: #F87171;
  --success: #34D399;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --max-w: 1220px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Nunito Sans', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  background-image: radial-gradient(circle at 18% 0%, rgba(34, 211, 238, 0.10) 0%, transparent 45%),
                    radial-gradient(circle at 85% 15%, rgba(250, 204, 21, 0.06) 0%, transparent 40%);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Chakra Petch', system-ui, sans-serif;
  line-height: 1.25;
  margin-top: 0;
  color: var(--text);
}

h1 { font-size: clamp(1.75rem, 3.2vw, 2.55rem); font-weight: 700; margin-bottom: 1rem; }
h2 { font-size: clamp(1.35rem, 2.2vw, 1.85rem); font-weight: 700; margin-top: 2.25rem; margin-bottom: 0.85rem; }
h3 { font-size: 1.2rem; font-weight: 600; margin-top: 1.5rem; margin-bottom: 0.6rem; color: var(--accent); }

p { margin: 0 0 1.05rem; color: var(--text-soft); }
ul, ol { margin: 0 0 1.2rem; padding-left: 1.35rem; color: var(--text-soft); }
li { margin-bottom: 0.45rem; }

a { color: var(--accent); text-decoration: none; transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease; }
a:hover { color: var(--accent2); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* 21+ Top Compliance Bar */
.compliance-bar {
  background: #040A10;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 0.45rem 0;
}
.compliance-bar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.compliance-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent2);
  font-weight: 600;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 15, 23, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 1rem;
}
.brand-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand-logo img { display: block; height: 38px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}
.main-nav a {
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.94rem;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { color: var(--accent); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.btn-ghost-sm, .btn-gold-sm, .btn-primary-cta, .btn-secondary-guide {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  border-radius: 9999px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn-ghost-sm {
  padding: 0.5rem 1rem;
  min-height: 40px;
  font-size: 0.88rem;
  color: var(--text);
  border: 1px solid var(--border-strong);
  background: transparent;
}
.btn-ghost-sm:hover { border-color: var(--accent); color: var(--accent); }

.btn-gold-sm {
  padding: 0.5rem 1.15rem;
  min-height: 40px;
  font-size: 0.88rem;
  color: #060F17;
  background: var(--accent2);
  border: 1px solid var(--accent2);
}
.btn-gold-sm:hover { background: var(--accent2-hover); color: #060F17; }

.btn-primary-cta {
  padding: 0.8rem 1.65rem;
  min-height: 48px;
  font-size: 1rem;
  color: #060F17;
  background: var(--accent2);
  box-shadow: 0 6px 20px rgba(250, 204, 21, 0.25);
}
.btn-primary-cta:hover { background: var(--accent2-hover); color: #060F17; transform: translateY(-1px); }

.btn-secondary-guide {
  padding: 0.8rem 1.55rem;
  min-height: 48px;
  font-size: 1rem;
  color: var(--text);
  background: var(--surface-alt);
  border: 1px solid var(--border-strong);
}
.btn-secondary-guide:hover { border-color: var(--accent); color: var(--accent); }

.mobile-toggle {
  display: none;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.7rem;
  font-size: 1.15rem;
  cursor: pointer;
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 0.85rem 0 0.25rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span.sep { margin: 0 0.4rem; opacity: 0.6; }

/* Hero Section + 3-Slide Carousel */
.hero-section {
  padding: 2.25rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 2rem;
  align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  letter-spacing: 0.04em;
}
.hero-lead {
  font-size: 1.06rem;
  color: var(--text-soft);
  margin-bottom: 1.4rem;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.4rem;
}
.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}
.hero-trust-row span {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
}

/* Carousel */
.carousel-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  position: relative;
}
.carousel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.carousel-title {
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent);
}
.carousel-controls { display: flex; gap: 0.45rem; }
.carousel-btn {
  background: var(--surface-alt);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 700;
}
.carousel-btn:hover { border-color: var(--accent); color: var(--accent); }

.carousel-slide { display: none; }
.carousel-slide.active { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }

.game-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.game-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 6;
  overflow: hidden;
  background: var(--surface-alt);
}
.game-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.game-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(6, 15, 23, 0.88);
  color: var(--accent2);
  border: 1px solid rgba(250, 204, 21, 0.45);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
}
.game-meta {
  padding: 0.65rem 0.7rem;
}
.game-meta strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 0.2rem;
}
.game-meta span {
  font-size: 0.76rem;
  color: var(--text-muted);
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.85rem;
}
.carousel-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface-alt);
  cursor: pointer;
  padding: 0;
  position: relative;
}
.carousel-dot::after {
  content: "";
  position: absolute;
  inset: -12px;
}
.carousel-dot.active { background: var(--accent); border-color: var(--accent); }

/* Main Content Layout */
.content-wrap {
  padding: 2rem 0 3rem;
}
.article-shell {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 2.25rem;
  align-items: start;
}
.article-main {
  min-width: 0;
}
.article-sidebar {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.card-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}
.card-box h3 { margin-top: 0; font-size: 1.08rem; }

/* PAA Answer Capsule */
.answer-capsule {
  background: linear-gradient(135deg, rgba(14, 29, 43, 0.96), rgba(19, 40, 59, 0.88));
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.15rem;
  margin: 0.75rem 0 1.25rem;
  color: var(--text);
}

/* Responsive Tables */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  margin: 1.25rem 0 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 540px;
  font-size: 0.94rem;
}
th, td {
  padding: 0.78rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
th {
  background: var(--surface-alt);
  color: var(--accent);
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
}
tr:last-child td { border-bottom: none; }

.status-ok { color: var(--success); font-weight: 700; }
.status-warn { color: var(--accent2); font-weight: 700; }

/* Hub Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0 1.75rem;
}
.link-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  color: var(--text);
}
.link-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.link-card strong {
  display: block;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 1.02rem;
  color: var(--accent);
  margin-bottom: 0.35rem;
}
.link-card span {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Showcase Games Grid */
.games-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.25rem 0 1.75rem;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin: 1.25rem 0 1.75rem;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  padding: 1rem 1.15rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-q:hover { color: var(--accent); }
.faq-a {
  padding: 0 1.15rem 1rem;
  color: var(--text-soft);
  font-size: 0.96rem;
  display: none;
}
.faq-item.open .faq-a { display: block; }
.faq-icon { color: var(--accent); font-weight: 700; }

/* E-E-A-T Author Box */
.author-box {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 2rem;
}
.author-box strong {
  color: var(--accent2);
  font-family: 'Chakra Petch', sans-serif;
  font-size: 1.05rem;
}

/* 3-Row Authority Footer */
.site-footer {
  background: #040A10;
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 1.75rem;
  margin-top: 2rem;
}
.footer-row-1 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.footer-col h4 {
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col li { margin-bottom: 0.42rem; }
.footer-col a {
  color: var(--text-muted);
  font-size: 0.88rem;
}
.footer-col a:hover { color: var(--text); }

.footer-row-2 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--border);
}
.footer-row-2 img {
  height: 36px;
  width: auto;
  display: block;
}

.footer-row-3 {
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.footer-row-3 p {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

/* Responsive Breakpoints */
@media (max-width: 980px) {
  .hero-grid, .article-shell { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .footer-row-1 { grid-template-columns: repeat(2, 1fr); }
  .main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border-strong);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.25rem;
    gap: 0.75rem;
  }
  .main-nav.open { display: flex; }
  .mobile-toggle { display: inline-flex; }
}

@media (max-width: 640px) {
  .games-showcase-grid { grid-template-columns: repeat(2, 1fr); }
  .carousel-slide.active { grid-template-columns: repeat(3, 1fr); gap: 0.45rem; }
  .footer-row-1 { grid-template-columns: 1fr; }
  .header-actions .btn-ghost-sm { display: none; }
}
