/* ============================================================
   AllGaming CA — styles.css
   Minimal Editorial Design System
   allgaminginca.com
   ============================================================ */

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  --color-primary:        #0D9488;
  --color-primary-dark:   #0B7C72;
  --color-primary-light:  #14B8A6;
  --color-accent:         #0D9488;
  --color-accent-dark:    #0B7C72;
  --color-bg:             #FFFFFF;
  --color-surface:        #F9FAFB;
  --color-text:           #111111;
  --color-text-muted:     #6B7280;
  --color-border:         #E5E5E5;

  --font-body:            'Inter', sans-serif;
  --font-url:             'https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap';

  --fw-light:             300;
  --fw-regular:           400;
  --fw-medium:            500;
  --fw-semibold:          600;
  --fw-bold:              700;

  --fs-base:              18px;
  --fs-sm:                0.875rem;
  --fs-md:                1rem;
  --fs-lg:                1.125rem;
  --fs-xl:                1.25rem;
  --fs-2xl:               1.5rem;
  --fs-3xl:               2rem;
  --fs-4xl:               clamp(2.5rem, 5vw, 3.5rem);
  --fs-hero:              clamp(3rem, 7vw, 5rem);

  --lh-tight:             1.25;
  --lh-snug:              1.45;
  --lh-base:              1.7;
  --lh-relaxed:           1.85;

  --max-w:                1040px;
  --max-w-prose:          720px;

  --sp-1:                 4px;
  --sp-2:                 8px;
  --sp-3:                 16px;
  --sp-4:                 24px;
  --sp-5:                 32px;
  --sp-6:                 48px;
  --sp-7:                 64px;
  --sp-8:                 96px;
  --sp-9:                 128px;

  --section-pad:          clamp(64px, 10vw, 128px);
  --transition:           all 0.25s ease;
  --radius:               0px;
  --shadow:               none;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--fs-base);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

img, video, iframe, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
  line-height: var(--lh-tight);
  font-weight: var(--fw-bold);
  color: var(--color-text);
}

p {
  line-height: var(--lh-base);
}

/* ── Utilities ──────────────────────────────────────────────── */
.ag-frame {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--sp-4);
  padding-right: var(--sp-4);
}

.ag-sect {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
}

.ag-sect-head {
  margin-bottom: var(--sp-7);
}

.ag-sect-head h2 {
  font-size: var(--fs-4xl);
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
  line-height: var(--lh-tight);
  margin-bottom: var(--sp-3);
}

.ag-sect-head p {
  font-size: var(--fs-lg);
  color: var(--color-text-muted);
  max-width: 560px;
  line-height: var(--lh-relaxed);
}

.ag-label {
  display: inline-block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--sp-3);
}

.ag-accent-text {
  color: var(--color-primary);
}

.ag-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;
}

hr.ag-rule {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--sp-8) 0;
}

/* ── Scroll Reveal ──────────────────────────────────────────── */
.ag-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.ag-reveal.ag-reveal-on {
  opacity: 1;
  transform: translateY(0);
}

/* ── Buttons ────────────────────────────────────────────────── */
.ag-btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-md);
  font-weight: var(--fw-medium);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: var(--transition);
  border-radius: var(--radius);
  text-align: center;
  white-space: nowrap;
}

.ag-btn-fill {
  background-color: var(--color-primary);
  color: #FFFFFF;
  padding: 14px 32px;
  border: 1px solid var(--color-primary);
}

.ag-btn-fill:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #FFFFFF;
}

.ag-btn-line {
  background-color: transparent;
  color: var(--color-primary);
  padding: 14px 32px;
  border: 1px solid var(--color-primary);
}

.ag-btn-line:hover {
  background-color: var(--color-primary);
  color: #FFFFFF;
}

.ag-btn-text {
  background: none;
  border: none;
  padding: 0;
  color: var(--color-text);
  font-weight: var(--fw-medium);
  position: relative;
  display: inline-block;
}

.ag-btn-text::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-primary);
  transition: width 0.25s ease;
}

.ag-btn-text:hover {
  color: var(--color-primary);
}

.ag-btn-text:hover::after {
  width: 100%;
}

.ag-btn-accent {
  background-color: var(--color-accent);
  color: #FFFFFF;
  padding: 14px 32px;
  border: 1px solid var(--color-accent);
}

.ag-btn-accent:hover {
  background-color: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
}

.ag-btn-wide {
  padding: 18px 56px;
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
}

/* ── Header ─────────────────────────────────────────────────── */
.ag-header {
  position: static;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
}

.ag-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.ag-header-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  letter-spacing: -0.01em;
  text-decoration: none;
}

.ag-header-logo:hover {
  color: var(--color-primary);
}

.ag-header-logo-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.ag-header-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}

.ag-header-nav a {
  font-size: var(--fs-md);
  font-weight: var(--fw-medium);
  color: var(--color-text-muted);
  letter-spacing: 0.01em;
}

.ag-header-nav a:hover,
.ag-header-nav a.active {
  color: var(--color-primary);
}

.ag-header-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  transition: var(--transition);
  flex-shrink: 0;
}

.ag-header-menu-btn span {
  display: block;
  width: 22px;
  height: 1.5px;
  background-color: var(--color-text);
  transition: var(--transition);
  transform-origin: center;
}

.ag-header-menu-btn:hover span {
  background-color: var(--color-primary);
}

.ag-header-menu-btn.is-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.ag-header-menu-btn.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.ag-header-menu-btn.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ── Full-Screen Nav Overlay ────────────────────────────────── */
.ag-header-overlay {
  position: fixed;
  inset: 0;
  background-color: var(--color-bg);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.ag-header-overlay.is-visible {
  opacity: 1;
  pointer-events: all;
}

.ag-header-overlay .ag-overlay-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--color-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
}

.ag-header-overlay .ag-overlay-close:hover {
  color: var(--color-primary);
}

.ag-header-overlay nav {
  text-align: center;
}

.ag-header-overlay nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.ag-header-overlay nav a {
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
  color: var(--color-text);
  text-decoration: none;
  transition: var(--transition);
  line-height: 1.2;
  display: inline-block;
}

.ag-header-overlay nav a:hover {
  color: var(--color-primary);
}

.ag-overlay-brand {
  position: absolute;
  top: 24px;
  left: 24px;
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.ag-overlay-footer {
  position: absolute;
  bottom: 32px;
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  text-align: center;
}

/* ── Hero ───────────────────────────────────────────────────── */
.ag-hero {
  padding-top: var(--sp-9);
  padding-bottom: var(--sp-9);
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.ag-hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.ag-hero-title {
  font-size: var(--fs-hero);
  font-weight: var(--fw-bold);
  letter-spacing: -0.03em;
  line-height: var(--lh-tight);
  color: var(--color-text);
  margin-bottom: var(--sp-4);
}

.ag-hero-rule {
  width: 48px;
  height: 2px;
  background-color: var(--color-primary);
  margin: var(--sp-4) auto;
  border: none;
}

.ag-hero-sub {
  font-size: var(--fs-xl);
  font-weight: var(--fw-light);
  color: var(--color-text-muted);
  line-height: var(--lh-relaxed);
  max-width: 560px;
  margin: 0 auto var(--sp-6);
}

.ag-hero-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-5);
  flex-wrap: wrap;
}

.ag-hero-links .ag-btn-text {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  color: var(--color-primary);
}

.ag-hero-links .ag-btn-text::after {
  background-color: var(--color-primary);
}

.ag-hero-links .ag-btn-text:hover {
  color: var(--color-primary-dark);
}

.ag-hero-links .ag-btn-secondary-text {
  font-size: var(--fs-lg);
  font-weight: var(--fw-medium);
  color: var(--color-text-muted);
  position: relative;
  display: inline-block;
}

.ag-hero-links .ag-btn-secondary-text::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-text-muted);
  transition: width 0.25s ease;
}

.ag-hero-links .ag-btn-secondary-text:hover::after {
  width: 100%;
}

/* ── Game Section ───────────────────────────────────────────── */
.ag-game-sect {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
  border-bottom: 1px solid var(--color-border);
}

.ag-game-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
}

.ag-game-box {
  position: relative;
  border: 1px solid var(--color-border);
  background-color: var(--color-surface);
  overflow: hidden;
  line-height: 0;
}

.ag-game-box iframe {
  width: 100%;
  display: block;
  border: none;
}

.ag-game-screen {
  width: 100%;
  min-height: 500px;
  display: block;
  border: none;
}

.ag-game-expand {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
  border-radius: 0;
}

.ag-game-expand:hover {
  background-color: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
}

.ag-game-meta {
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.ag-game-meta h2 {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
}

.ag-game-meta p {
  color: var(--color-text-muted);
  font-size: var(--fs-md);
  margin-top: var(--sp-2);
}

.ag-game-disclaimer {
  margin-top: var(--sp-5);
  padding: var(--sp-4);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-primary);
  background-color: var(--color-surface);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: var(--lh-relaxed);
}

/* ── Features 2×2 Grid ──────────────────────────────────────── */
.ag-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  border: 1px solid var(--color-border);
  background-color: var(--color-border);
}

.ag-tile {
  background-color: var(--color-bg);
  padding: var(--sp-7) var(--sp-6);
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.ag-tile:hover {
  border-left-color: var(--color-primary);
}

.ag-tile-icon {
  font-size: 1.75rem;
  margin-bottom: var(--sp-3);
  line-height: 1;
}

.ag-tile h3 {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  margin-bottom: var(--sp-2);
  letter-spacing: -0.01em;
}

.ag-tile p {
  font-size: var(--fs-md);
  color: var(--color-text-muted);
  line-height: var(--lh-relaxed);
}

/* ── Steps / How It Works ───────────────────────────────────── */
.ag-steps-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--color-border);
}

.ag-step-row {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-6);
  padding: var(--sp-6) 0;
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition);
}

.ag-step-row:hover .ag-step-num {
  color: var(--color-primary-dark);
}

.ag-step-num {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  line-height: 1;
  flex-shrink: 0;
  width: 80px;
  letter-spacing: -0.03em;
  transition: var(--transition);
}

.ag-step-content {
  flex: 1;
  padding-top: 4px;
}

.ag-step-content h3 {
  font-size: var(--fs-xl);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--sp-2);
  letter-spacing: -0.01em;
}

.ag-step-content p {
  color: var(--color-text-muted);
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
}

/* ── Stats Row ──────────────────────────────────────────────── */
.ag-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid var(--color-border);
  background-color: var(--color-border);
}

.ag-stat-item {
  background-color: var(--color-bg);
  padding: var(--sp-7) var(--sp-5);
  text-align: center;
}

.ag-stat-value {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  line-height: 1.1;
  letter-spacing: -0.03em;
  display: block;
  margin-bottom: var(--sp-2);
}

.ag-stat-label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
}

/* ── FAQ Accordion ──────────────────────────────────────────── */
.ag-faq-list {
  border-top: 1px solid var(--color-border);
  max-width: var(--max-w-prose);
  margin: 0 auto;
}

.ag-faq-item {
  border-bottom: 1px solid var(--color-border);
}

.ag-faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) 0;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-weight: var(--fw-medium);
  font-size: var(--fs-lg);
  color: var(--color-text);
  transition: var(--transition);
  line-height: var(--lh-snug);
}

.ag-faq-trigger:hover {
  color: var(--color-primary);
}

.ag-faq-trigger[aria-expanded="true"] {
  color: var(--color-primary);
}

.ag-faq-arrow {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  color: var(--color-text-muted);
  font-size: 1rem;
}

.ag-faq-trigger[aria-expanded="true"] .ag-faq-arrow {
  transform: rotate(180deg);
  color: var(--color-primary);
}

.ag-faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.ag-faq-panel.is-open {
  max-height: 600px;
}

.ag-faq-answer {
  padding-bottom: var(--sp-4);
  font-size: var(--fs-md);
  color: var(--color-text-muted);
  line-height: var(--lh-relaxed);
}

.ag-faq-answer a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* ── CTA Band ───────────────────────────────────────────────── */
.ag-cta-band {
  background-color: var(--color-primary);
  padding: var(--section-pad) 0;
  text-align: center;
}

.ag-cta-band .ag-label {
  color: rgba(255, 255, 255, 0.7);
}

.ag-cta-band h2 {
  font-size: var(--fs-4xl);
  font-weight: var(--fw-bold);
  color: #FFFFFF;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-3);
}

.ag-cta-band p {
  font-size: var(--fs-lg);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--sp-6);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: var(--lh-relaxed);
}

.ag-cta-band .ag-btn-fill {
  background-color: #FFFFFF;
  color: var(--color-primary);
  border-color: #FFFFFF;
}

.ag-cta-band .ag-btn-fill:hover {
  background-color: rgba(255, 255, 255, 0.88);
  border-color: rgba(255, 255, 255, 0.88);
}

/* ── Article / Prose Section ────────────────────────────────── */
.ag-article-sect {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
  border-top: 1px solid var(--color-border);
}

.ag-article-prose {
  max-width: var(--max-w-prose);
  margin: 0 auto;
}

.ag-article-prose h2 {
  font-size: var(--fs-4xl);
  font-weight: var(--fw-bold);
  letter-spacing: -0.025em;
  line-height: var(--lh-tight);
  margin-bottom: var(--sp-5);
}

.ag-article-prose h3 {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.015em;
  margin-top: var(--sp-7);
  margin-bottom: var(--sp-3);
}

.ag-article-prose p {
  font-size: var(--fs-md);
  color: var(--color-text-muted);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--sp-4);
}

.ag-article-prose p:last-child {
  margin-bottom: 0;
}

.ag-article-prose strong {
  color: var(--color-text);
  font-weight: var(--fw-semibold);
}

.ag-article-prose a {
  color: var(--color-primary);
  text-decoration: underline;
}

.ag-article-prose a:hover {
  color: var(--color-primary-dark);
}

.ag-article-prose ul {
  list-style: disc;
  padding-left: var(--sp-5);
  margin-bottom: var(--sp-4);
}

.ag-article-prose ul li {
  margin-bottom: var(--sp-2);
  color: var(--color-text-muted);
  line-height: var(--lh-relaxed);
}

.ag-article-prose blockquote {
  border-left: 3px solid var(--color-primary);
  padding-left: var(--sp-4);
  margin: var(--sp-6) 0;
  color: var(--color-text-muted);
  font-size: var(--fs-lg);
  font-weight: var(--fw-light);
  line-height: var(--lh-relaxed);
}

/* ── Legal Pages ────────────────────────────────────────────── */
.ag-legal-wrap {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--sp-8);
  align-items: flex-start;
  padding-top: var(--sp-8);
  padding-bottom: var(--sp-9);
}

.ag-legal-toc {
  position: sticky;
  top: var(--sp-6);
}

.ag-legal-toc h4 {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: var(--sp-3);
}

.ag-legal-toc ul {
  list-style: none;
  padding: 0;
  border-left: 1px solid var(--color-border);
}

.ag-legal-toc ul li a {
  display: block;
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  border-left: 2px solid transparent;
  margin-left: -1px;
  transition: var(--transition);
}

.ag-legal-toc ul li a:hover {
  color: var(--color-primary);
  border-left-color: var(--color-primary);
}

.ag-legal-body section {
  margin-bottom: var(--sp-7);
  padding-bottom: var(--sp-7);
  border-bottom: 1px solid var(--color-border);
}

.ag-legal-body section:last-child {
  border-bottom: none;
}

.ag-legal-body h2 {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  margin-bottom: var(--sp-4);
  letter-spacing: -0.02em;
}

.ag-legal-body h3 {
  font-size: var(--fs-xl);
  font-weight: var(--fw-semibold);
  margin-top: var(--sp-5);
  margin-bottom: var(--sp-3);
}

.ag-legal-body p {
  color: var(--color-text-muted);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--sp-3);
}

.ag-legal-body ul {
  list-style: disc;
  padding-left: var(--sp-5);
  margin-bottom: var(--sp-4);
}

.ag-legal-body ul li {
  color: var(--color-text-muted);
  margin-bottom: var(--sp-2);
  line-height: var(--lh-relaxed);
}

/* ── Contact Page ───────────────────────────────────────────── */
.ag-contact-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: flex-start;
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
}

.ag-contact-form-box {
  padding: var(--sp-7);
  border: 1px solid var(--color-border);
}

.ag-contact-form-box h2 {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-6);
}

.ag-contact-field {
  margin-bottom: var(--sp-4);
}

.ag-contact-field label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--sp-2);
}

.ag-contact-field input,
.ag-contact-field textarea,
.ag-contact-field select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  background-color: var(--color-bg);
  color: var(--color-text);
  font-size: var(--fs-md);
  outline: none;
  transition: var(--transition);
  border-radius: 0;
  appearance: none;
}

.ag-contact-field input:focus,
.ag-contact-field textarea:focus,
.ag-contact-field select:focus {
  border-color: var(--color-primary);
}

.ag-contact-field textarea {
  resize: vertical;
  min-height: 140px;
}

.ag-contact-ok {
  display: none;
  padding: var(--sp-4);
  border: 1px solid var(--color-primary);
  border-left: 3px solid var(--color-primary);
  background-color: var(--color-surface);
  color: var(--color-primary);
  font-weight: var(--fw-medium);
  margin-top: var(--sp-4);
}

.ag-contact-ok.is-visible {
  display: block;
}

.ag-contact-info-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.ag-contact-info-card {
  padding: var(--sp-5);
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

.ag-contact-info-card:hover {
  border-left-color: var(--color-primary);
  border-left-width: 3px;
}

.ag-contact-info-icon {
  font-size: 1.5rem;
  margin-bottom: var(--sp-3);
  line-height: 1;
}

.ag-contact-info-card h4 {
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--sp-2);
}

.ag-contact-info-card p,
.ag-contact-info-card a {
  font-size: var(--fs-md);
  color: var(--color-text-muted);
}

.ag-contact-info-card a:hover {
  color: var(--color-primary);
}

/* ── Toast Notifications ────────────────────────────────────── */
.ag-notif-area {
  position: fixed;
  top: var(--sp-4);
  right: var(--sp-4);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  max-width: 340px;
  width: 100%;
}

.ag-notif {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-primary);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--color-text);
  line-height: var(--lh-snug);
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.ag-notif.is-shown {
  opacity: 1;
  transform: translateX(0);
}

.ag-notif.is-error {
  border-left-color: #DC2626;
}

.ag-notif.is-success {
  border-left-color: var(--color-primary);
}

/* ── Age Verification Modal ─────────────────────────────────── */
.ag-age-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(17, 17, 17, 0.85);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
}

.ag-age-overlay.is-hidden {
  display: none;
}

.ag-age-box {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: var(--sp-8) var(--sp-7);
  max-width: 480px;
  width: 100%;
  text-align: center;
}

.ag-age-icon {
  font-size: 2.5rem;
  margin-bottom: var(--sp-4);
  line-height: 1;
}

.ag-age-box h2 {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-3);
}

.ag-age-box p {
  color: var(--color-text-muted);
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--sp-6);
}

.ag-age-actions {
  display: flex;
  gap: var(--sp-3);
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Cookie Banner ──────────────────────────────────────────── */
.ag-cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--color-bg);
  border-top: 1px solid var(--color-border);
  z-index: 8000;
  padding: var(--sp-4) 0;
}

.ag-cookie-bar.is-hidden {
  display: none;
}

.ag-cookie-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  flex-wrap: wrap;
}

.ag-cookie-inner p {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: var(--lh-snug);
  flex: 1;
}

.ag-cookie-inner a {
  color: var(--color-primary);
  text-decoration: underline;
}

.ag-cookie-actions {
  display: flex;
  gap: var(--sp-2);
  flex-shrink: 0;
}

/* ── Footer ─────────────────────────────────────────────────── */
.ag-footer {
  border-top: 1px solid var(--color-border);
  padding-top: var(--sp-8);
  padding-bottom: var(--sp-6);
}

.ag-footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-4);
}

.ag-footer-brand {
  text-align: center;
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid var(--color-border);
}

.ag-footer-brand .ag-brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  margin-bottom: var(--sp-3);
  text-decoration: none;
}

.ag-footer-brand .ag-brand-logo:hover {
  color: var(--color-primary);
}

.ag-footer-brand p {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  max-width: 420px;
  margin: 0 auto var(--sp-3);
  line-height: var(--lh-relaxed);
}

.ag-footer-age {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  font-weight: var(--fw-medium);
}

.ag-footer-links-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}

.ag-footer-col h4 {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text);
  margin-bottom: var(--sp-3);
}

.ag-footer-col ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.ag-footer-col ul li a {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

.ag-footer-col ul li a:hover {
  color: var(--color-primary);
}

.ag-footer-bottom {
  text-align: center;
}

.ag-footer-fine {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: var(--lh-relaxed);
  max-width: 640px;
  margin: 0 auto var(--sp-3);
}

.ag-footer-bottom p {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

.ag-footer-bottom a {
  color: var(--color-text-muted);
  text-decoration: underline;
}

.ag-footer-bottom a:hover {
  color: var(--color-primary);
}

/* ── Page Header (inner pages) ──────────────────────────────── */
.ag-page-head {
  padding: var(--sp-9) 0 var(--sp-7);
  border-bottom: 1px solid var(--color-border);
}

.ag-page-head h1 {
  font-size: var(--fs-hero);
  font-weight: var(--fw-bold);
  letter-spacing: -0.03em;
  line-height: var(--lh-tight);
  margin-bottom: var(--sp-3);
}

.ag-page-head p {
  font-size: var(--fs-xl);
  color: var(--color-text-muted);
  max-width: 560px;
  line-height: var(--lh-relaxed);
}

/* ── Surface Sections ───────────────────────────────────────── */
.ag-sect-surface {
  background-color: var(--color-surface);
}

/* ── Inline text link ───────────────────────────────────────── */
a.ag-link {
  color: var(--color-primary);
  text-decoration: underline;
  transition: var(--transition);
}

a.ag-link:hover {
  color: var(--color-primary-dark);
}

/* ── Thin HR divider ────────────────────────────────────────── */
.ag-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  width: 100%;
}

/* ── Centered narrow layout ─────────────────────────────────── */
.ag-prose-center {
  max-width: var(--max-w-prose);
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet — 900px */
@media (max-width: 900px) {
  .ag-legal-wrap {
    grid-template-columns: 1fr;
  }

  .ag-legal-toc {
    display: none;
  }

  .ag-contact-duo {
    grid-template-columns: 1fr;
  }

  .ag-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .ag-footer-links-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile — 640px */
@media (max-width: 640px) {
  :root {
    --section-pad: 64px;
  }

  .ag-grid-2x2 {
    grid-template-columns: 1fr;
  }

  .ag-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .ag-footer-links-row {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .ag-step-row {
    flex-direction: column;
    gap: var(--sp-3);
  }

  .ag-step-num {
    width: auto;
    font-size: 2.5rem;
  }

  .ag-hero-title {
    font-size: clamp(2.25rem, 10vw, 3.5rem);
  }

  .ag-hero-links {
    flex-direction: column;
    gap: var(--sp-3);
  }

  .ag-age-box {
    padding: var(--sp-6) var(--sp-4);
  }

  .ag-contact-form-box {
    padding: var(--sp-4);
  }

  .ag-game-meta {
    flex-direction: column;
  }
}

/* Mobile — 480px */
@media (max-width: 480px) {
  .ag-stats-row {
    grid-template-columns: 1fr 1fr;
  }

  .ag-cookie-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .ag-cookie-actions {
    width: 100%;
  }

  .ag-age-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ag-age-actions .ag-btn {
    width: 100%;
    text-align: center;
  }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .ag-header,
  .ag-cookie-bar,
  .ag-age-overlay,
  .ag-header-overlay,
  .ag-notif-area,
  .ag-game-sect,
  .ag-cta-band {
    display: none !important;
  }

  body {
    color: #000;
    font-size: 12pt;
    line-height: 1.6;
  }

  a {
    color: #000;
    text-decoration: none;
  }

  .ag-frame {
    max-width: 100%;
    padding: 0;
  }

  .ag-sect {
    padding-top: 32pt;
    padding-bottom: 32pt;
  }

  h1, h2, h3 {
    page-break-after: avoid;
  }

  p, li {
    page-break-inside: avoid;
  }

  .ag-footer {
    border-top: 1pt solid #ccc;
  }
}
