/* Project: Noite do Jogo (unique redesign)
   Dark theme, accessible, mobile-first. 
   Includes new class names while preserving legacy selectors for continuity. 
   Fonts loaded via Google Fonts @import. */

/* ================================================
   Google Fonts
   ================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=DM+Serif+Display:ital@0;1&display=swap');

/* ================================================
   CSS Variables (Root) - Dark Theme Palette
   ================================================ */
:root {
  /* Core Palette */
  --ink-950: #0a0d12;   /* page background */
  --ink-900: #0b1220;   /* deep */
  --ink-800: #111827;   /* surface */
  --ink-700: #1f2937;   /* elevated */
  --ink-600: #374151;   /* borders/subtle */
  --ink-500: #6b7280;   /* muted text */
  --ink-400: #9ca3af;   /* secondary text */
  --ink-300: #d1d5db;   /* light text */
  --ink-200: #e5e7eb;   /* strokes */
  --pure-white: #ffffff;

  /* Accents (Jewel Tones) */
  --accent-primary: #8b5cf6;   /* violet */
  --accent-primary-600: #7c3aed;
  --accent-primary-700: #6d28d9;
  --accent-secondary: #22d3ee; /* cyan */
  --accent-secondary-600: #06b6d4;
  --accent-warn: #f59e0b;      /* amber for notices */
  --accent-danger: #ef4444;    /* error */
  --accent-success: #10b981;   /* success */

  /* Backgrounds */
  --bg-body: var(--ink-950);
  --bg-surface: linear-gradient(180deg, rgba(17,24,39,0.9), rgba(11,18,32,0.95));
  --bg-card: linear-gradient(180deg, rgba(31,41,55,0.85), rgba(17,24,39,0.9));
  --bg-card-solid: #141b26;
  --bg-overlay: rgba(0, 0, 0, 0.7);

  /* Text */
  --text-primary: var(--ink-200);
  --text-secondary: var(--ink-400);
  --text-muted: var(--ink-500);
  --text-inverse: var(--pure-white);

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;

  /* Font Sizes */
  --fs-xs: 0.75rem;     /* 12px */
  --fs-sm: 0.875rem;    /* 14px */
  --fs-base: 1rem;      /* 16px */
  --fs-md: 1.125rem;    /* 18px */
  --fs-lg: 1.25rem;     /* 20px */
  --fs-xl: 1.5rem;      /* 24px */
  --fs-2xl: 1.875rem;   /* 30px */
  --fs-3xl: 2.25rem;    /* 36px */
  --fs-4xl: 3rem;       /* 48px */

  /* Spacing */
  --sp-2: 0.125rem;
  --sp-4: 0.25rem;
  --sp-8: 0.5rem;
  --sp-12: 0.75rem;
  --sp-16: 1rem;
  --sp-20: 1.25rem;
  --sp-24: 1.5rem;
  --sp-32: 2rem;
  --sp-40: 2.5rem;
  --sp-48: 3rem;
  --sp-64: 4rem;
  --sp-96: 6rem;

  /* Radii & Shadows */
  --radius-sm: 0.375rem;  /* 6px */
  --radius-md: 0.625rem;  /* 10px */
  --radius-lg: 0.875rem;  /* 14px */
  --radius-xl: 1.25rem;   /* 20px */
  --radius-2xl: 1.75rem;  /* 28px */
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.25);
  --shadow-md: 0 6px 18px rgba(0,0,0,0.28);
  --shadow-lg: 0 14px 30px rgba(0,0,0,0.35);
  --glow-accent: 0 0 0 rgba(139,92,246,0), 0 0 0 rgba(34,211,238,0);

  /* Z-index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;

  /* Breakpoints (used in media queries) */
  --bp-sm: 576px;
  --bp-md: 768px;
  --bp-lg: 992px;
  --bp-xl: 1200px;
  --bp-2xl: 1400px;

  /* Container widths */
  --container-sm: 540px;
  --container-md: 720px;
  --container-lg: 960px;
  --container-xl: 1140px;
  --container-2xl: 1320px;
}

/* ================================================
   Reset & Base
   ================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-primary);
  font-size: var(--fs-base);
  color: var(--text-primary);
  background: var(--bg-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
img[loading="lazy"] { content-visibility: auto; }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--text-inverse);
  margin: 0 0 var(--sp-16);
}

p { margin: 0 0 var(--sp-16); color: var(--text-secondary); }

a { color: var(--accent-secondary); text-decoration: none; }
a:hover { color: var(--accent-secondary-600); text-decoration: underline; }

button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* Focus styles for accessibility */
:focus-visible {
  outline: 3px solid color-mix(in oklab, var(--accent-secondary) 70%, white 0%);
  outline-offset: 2px;
  border-radius: 6px;
}

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

/* Containers */
.container, .wrap, .header__container, .features__container, .platforms__container,
.features .container, .evaluation__container, .footer__container,
.legal-hero__container, .legal-content__container,
.contact-hero__container, .contact-content__container {
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--sp-16);
}

@media (min-width: 768px) {
  .container, .wrap, .header__container, .features__container, .platforms__container,
  .evaluation__container, .footer__container,
  .legal-hero__container, .legal-content__container,
  .contact-hero__container, .contact-content__container {
    padding: 0 var(--sp-24);
  }
}

/* ================================================
   Skip link
   ================================================ */
.skip-link { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { left: 16px; top: 16px; width: auto; height: auto; padding: 8px 12px; background: var(--accent-secondary); color: #001018; border-radius: 8px; z-index: var(--z-fixed); }

/* ================================================
   Header (new) + legacy mapping
   ================================================ */
.site-header, .header {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: rgba(17,24,39,0.8);
  backdrop-filter: saturate(130%) blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.site-header__bar, .header__container {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-16) 0;
}
.site-header__brand img, .header__logo-img { height: 60px; width: auto; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4)); }

.site-header__nav, .header__nav { display: none; }
@media (min-width: 768px) { .site-header__nav, .header__nav { display: block; } }

.nav-list, .header__nav-list { display: flex; gap: var(--sp-24); list-style: none; margin: 0; padding: 0; }
.nav-link, .header__nav-link {
  position: relative; color: var(--text-secondary); font-weight: 600;
}
.nav-link:hover, .header__nav-link:hover { color: var(--text-inverse); text-decoration: none; }
.nav-link--active::after, .header__nav-link--active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--accent-secondary);
}

.burger, .header__hamburger {
  display: none; flex-direction: column; gap: 5px; width: 28px; height: 24px; background: transparent;
}
.burger span, .header__hamburger-line { height: 2px; background: var(--text-secondary); transition: transform .25s ease, opacity .25s ease; }
.burger.is-open span:nth-child(1), .header__hamburger--open .header__hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2), .header__hamburger--open .header__hamburger-line:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3), .header__hamburger--open .header__hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-drawer, .header__mobile-nav {
  position: fixed; top: 64px; right: -100%; width: min(320px, 86vw); height: calc(100vh - 64px);
  background: var(--ink-800); box-shadow: var(--shadow-lg); transition: right .3s ease; z-index: var(--z-dropdown); display: none;
}
.mobile-drawer.is-open, .header__mobile-nav--open { right: 0; display: flex; }

.mobile-drawer ul, .header__mobile-nav-list { list-style: none; margin: 0; padding: var(--sp-24); }
.mobile-drawer a, .header__mobile-nav-link { display: block; color: var(--text-primary); padding: var(--sp-16); border-radius: var(--radius-md); }
.mobile-drawer a:hover, .header__mobile-nav-link:hover { background: rgba(255,255,255,0.04); text-decoration: none; }

/* ================================================
   Masthead (new) + legacy hero mapping
   ================================================ */
.masthead, .hero {
  position: relative;
  background-image: linear-gradient(rgba(11,18,32,0.65), rgba(11,18,32,0.9)), url('../images/hero.png');
  background-size: cover; background-position: center; background-repeat: no-repeat;
  color: var(--text-inverse); text-align: center;
  padding: var(--sp-48) 0; max-height: none; display: flex; align-items: center;
}
.masthead__inner, .hero__container { max-width: var(--container-lg); margin: 0 auto; padding: 0 var(--sp-16); }
.masthead__title, .hero__heading { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: var(--sp-12); }
.masthead__subtitle, .hero__subheading { font-size: clamp(1rem, 2vw, 1.25rem); opacity: .92; }

/* Animated accent underline */
.masthead__title span { position: relative; display: inline-block; }
.masthead__title span::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 3px; background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary)); border-radius: 3px; filter: drop-shadow(0 0 10px rgba(34,211,238,0.35)); }

/* ================================================
   Brands Grid (new) + legacy platform mapping
   ================================================ */
.brands, .platforms { padding: var(--sp-48) 0; background: radial-gradient(1200px 600px at 50% -100px, rgba(139,92,246,0.08), transparent), var(--bg-body); }
.brands__inner, .platforms__container { max-width: var(--container-xl); margin: 0 auto; padding: 0 var(--sp-16); }

/* Responsive grid ensures at least 1 card visible on mobile */
.brands__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--sp-24); }

/* Brand Tile redesign */
.brand-tile, .platform-card {
  position: relative; isolation: isolate; border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: var(--shadow-md);
  padding: var(--sp-24);
  display: grid; grid-template-columns: 120px 1fr auto; align-items: center; gap: var(--sp-20);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.brand-tile::before, .platform-card::before {
  content: ''; position: absolute; inset: -1px; z-index: -1; border-radius: inherit;
  background: linear-gradient(120deg, rgba(139,92,246,0.35), rgba(34,211,238,0.25));
  opacity: 0; transition: opacity .25s ease;
}
.brand-tile:hover, .platform-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0,0,0,0.45); border-color: rgba(139,92,246,0.35); }
.brand-tile:hover::before, .platform-card:hover::before { opacity: 0.6; }

/* Rank Badge */
.brand-tile__rank, .platform-card__badge {
  position: absolute; top: 10px; left: 10px; z-index: 2; min-width: 34px; text-align: center;
  font-weight: 800; font-size: var(--fs-xs); letter-spacing: 0.6px; color: #06141f;
  background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
  padding: 4px 8px; border-radius: var(--radius-full);
}

/* Logo area */
.brand-tile__logoBox, .platform-card__logo-container {
  width: 120px; height: 120px; border-radius: var(--radius-lg);
  display: grid; place-items: center; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  margin-left: auto;
  margin-right: auto;
}
.brand-tile__logo, .platform-card__logo { max-width: 90%; max-height: 90%; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5)); }

/* Info */
.brand-tile__info { display: grid; gap: 8px; }
.brand-tile__title, .platform-card__title { font-family: var(--font-display); font-weight: 700; color: var(--text-inverse); }
.brand-tile__rating, .platform-card__rating { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.brand-tile__stars i, .platform-card__stars { color: var(--accent-warn); }
.brand-tile__reviews, .platform-card__reviews { font-size: var(--fs-xs); color: var(--ink-400); }

/* Details */
.brand-tile__details { display: grid; gap: 10px; }
.brand-tile__bonus, .platform-card__bonus { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); padding: 10px 12px; border-radius: var(--radius-md); color: var(--ink-300); font-size: var(--fs-sm); }
.brand-tile__features, .platform-card__features { list-style: none; display: flex; gap: 14px; flex-wrap: wrap; padding: 0; margin: 0; }
.brand-tile__features li, .platform-card__feature { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-400); font-size: var(--fs-sm); }
.brand-tile__features i, .platform-card__feature i { color: var(--accent-secondary); }

/* CTA */
.cta-btn, .platform-card__button {
  display: inline-block; font-weight: 800; letter-spacing: .3px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #06141f; padding: 12px 18px; border-radius: 12px; min-width: 140px; text-align: center;
  box-shadow: 0 10px 24px rgba(139,92,246,0.25);
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
.cta-btn:hover, .platform-card__button:hover { text-decoration: none; transform: translateY(-2px) scale(1.01); filter: saturate(1.1); box-shadow: 0 16px 36px rgba(34,211,238,0.25); }
.cta-btn:active, .platform-card__button.clicked { transform: translateY(0) scale(0.98); }

/* Mobile adjustments - ensure at least 1 card visible */
@media (max-width: 767px) {
  .brand-tile, .platform-card { grid-template-columns: 1fr; text-align: center; }
  .brand-tile__cta { justify-self: center; }
  .burger, .header__hamburger{display: flex;}
}

/* ================================================
   Highlights (new) + legacy features mapping
   ================================================ */
.highlights, .features { padding: var(--sp-64) 0; background: var(--bg-surface); }
.highlights__title, .features__heading { text-align: center; color: var(--text-inverse); margin-bottom: var(--sp-32); font-size: clamp(1.6rem, 3vw, 2.25rem); }
.highlights__grid, .features__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--sp-24); }

.highlight-card, .feature {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-xl);
  padding: var(--sp-24);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.highlight-card:hover, .feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.highlight-card__icon, .feature__icon {
  width: 64px; height: 64px; border-radius: var(--radius-full); display: grid; place-items: center; margin: 0 auto var(--sp-16);
  color: #06141f; background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)); font-size: var(--fs-xl);
}
.highlight-card__title, .feature__title { color: var(--text-inverse); margin-bottom: var(--sp-8); font-size: var(--fs-lg); }
.highlight-card__text, .feature__description { color: var(--text-secondary); }

.highlights__note, .features__conclusion { text-align: center; color: var(--ink-400); max-width: 820px; margin: var(--sp-32) auto 0; font-style: italic; }

/* ================================================
   Methodology (new) + legacy evaluation mapping
   ================================================ */
.methodology, .evaluation { padding: var(--sp-64) 0; background: radial-gradient(1200px 600px at 20% -200px, rgba(34,211,238,0.08), transparent), var(--bg-body); }
.methodology__grid, .evaluation__content { display: grid; grid-template-columns: 1fr; gap: var(--sp-24); }
.methodology__card, .evaluation__column { background: var(--bg-card); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius-xl); padding: var(--sp-24); box-shadow: var(--shadow-sm); }
.methodology__title, .evaluation__heading { color: var(--text-inverse); margin-bottom: var(--sp-16); font-size: var(--fs-xl); }
.methodology__text, .evaluation__text { color: var(--ink-400); }

@media (min-width: 768px) {
  .methodology__grid, .evaluation__content { grid-template-columns: repeat(2, 1fr); }
}

/* ================================================
   Legal pages (new names + legacy mapping)
   ================================================ */
.legal-hero { background: radial-gradient(700px 400px at 10% -100px, rgba(139,92,246,0.2), transparent), var(--ink-900); color: var(--text-inverse); text-align: center; padding: var(--sp-64) 0; }
.legal-hero__title { font-size: clamp(2rem, 3vw, 2.5rem); }
.legal-content { padding: var(--sp-48) 0; }
.legal-content__body h2 { color: var(--text-inverse); margin-top: var(--sp-32); margin-bottom: var(--sp-16); }
.legal-content__body h3 { color: var(--ink-300); margin-top: var(--sp-24); margin-bottom: var(--sp-12); }
.legal-content__body p, .legal-content__body li { color: var(--ink-400); }
.legal-content__body ul, .legal-content__body ol { padding-left: var(--sp-24); }

/* ================================================
   Contact page (legacy mapping preserved)
   ================================================ */
.contact-hero { background: var(--ink-900); color: var(--text-inverse); text-align: center; padding: var(--sp-48) 0; }
.contact-hero__title { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.contact-hero__subtitle { color: var(--ink-300); }
.contact-content { padding: var(--sp-48) 0; }
.contact-sections { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--sp-24); margin-bottom: var(--sp-32); }
.contact-section { background: var(--bg-card); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius-xl); padding: var(--sp-24); text-align: center; }
.contact-section__icon { width: 56px; height: 56px; border-radius: 999px; display: grid; place-items: center; margin: 0 auto var(--sp-16); color: #06141f; background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)); }
.contact-section__title { color: var(--text-inverse); }
.contact-section__email { color: var(--ink-200); font-weight: 700; }
.contact-section__description { color: var(--ink-400); }
.contact-info { display: grid; grid-template-columns: 1fr; gap: var(--sp-24); }
@media (min-width: 768px) { .contact-info { grid-template-columns: repeat(2, 1fr); } }
.contact-info__section { background: var(--bg-card); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius-xl); padding: var(--sp-24); }
.contact-info__heading { color: var(--ink-200); }
.contact-info__list { list-style: none; margin: 0; padding: 0; }
.contact-info__list li { display: flex; gap: 8px; color: var(--ink-400); }
.contact-info__list li:before { content: '✓'; color: var(--accent-secondary); font-weight: 800; }
.contact-disclaimer { background: rgba(34,211,238,0.06); border: 1px dashed rgba(34,211,238,0.35); border-left-width: 4px; border-left-style: solid; border-left-color: var(--accent-secondary); padding: var(--sp-24); border-radius: var(--radius-lg); }
.contact-disclaimer__heading { color: var(--ink-200); }

/* ================================================
   Footer (new) + legacy mapping
   ================================================ */
.site-footer, .footer { background: linear-gradient(180deg, #0b1220, #0a0d12); color: var(--ink-300); padding: var(--sp-64) 0 var(--sp-32); }
.site-footer__grid, .footer__content { display: grid; grid-template-columns: 1fr; gap: var(--sp-24); margin-bottom: var(--sp-32); }
.site-footer__brand img, .footer__logo-img { height: 48px; margin-bottom: var(--sp-12); width: auto;}
.site-footer__tagline, .footer__message { color: var(--accent-secondary); font-weight: 700; }
.site-footer__section h3, .footer__heading { color: var(--ink-200); margin-bottom: var(--sp-16); }
.site-footer__links, .footer__links { list-style: none; padding: 0; margin: 0; }
.site-footer__links a, .footer__link { color: var(--ink-400); }
.site-footer__links a:hover, .footer__link:hover { color: var(--accent-secondary); text-decoration: none; }
.site-footer__badges img, .footer__cert-logo { height: 36px; opacity: .9; filter: grayscale(20%); width: auto; }
.site-footer__badges img:hover, .footer__cert-logo:hover { opacity: 1; filter: none; }
.site-footer__bottom, .footer__bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: var(--sp-24); text-align: center; color: var(--ink-500); }
.footer__age-icon { width: 44px; height: 44px; }

@media (min-width: 768px) {
  .site-footer__grid, .footer__content { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

/* ================================================
   Age Gate (new) + legacy mapping
   ================================================ */
.age-gate, .age-popup {
  position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: var(--z-modal);
  background: rgba(0,0,0,0.6);
}
.age-gate__panel, .age-popup__content { width: min(520px, 92vw); background: var(--bg-card); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-2xl); padding: var(--sp-32); text-align: center; box-shadow: var(--shadow-lg); }
.age-gate__icon, .age-popup__icon { width: 84px; height: 84px; margin: 0 auto var(--sp-16); filter: drop-shadow(0 6px 18px rgba(0,0,0,0.5)); }
.age-gate__title, .age-popup__heading { color: var(--ink-200); font-size: var(--fs-2xl); }
.age-gate__text, .age-popup__message { color: var(--ink-400); margin-bottom: var(--sp-24); }
.age-gate__actions, .age-popup__buttons { display: flex; flex-direction: column; gap: var(--sp-12); }

.btn, .age-popup__button { padding: 12px 16px; border-radius: 12px; font-weight: 800; letter-spacing: .2px; transition: transform .15s ease, box-shadow .15s ease, filter .15s ease; }
.btn--primary, .age-popup__button--confirm { background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary)); color: #06141f; }
.btn--primary:hover, .age-popup__button--confirm:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn--ghost, .age-popup__button--decline { background: rgba(255,255,255,0.06); color: var(--ink-200); border: 1px solid rgba(255,255,255,0.08); }
.btn--ghost:hover, .age-popup__button--decline:hover { background: rgba(255,255,255,0.1); }

@media (min-width: 576px) { .age-gate__actions, .age-popup__buttons { flex-direction: row; justify-content: center; } }

/* ================================================
   Utilities
   ================================================ */
.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; }
.text-center { text-align: center; }
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }

/* Loading state */
.loading { position: relative; pointer-events: none; opacity: .7; }
.loading::after { content: ''; position: absolute; top: 50%; left: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border: 2px solid rgba(255,255,255,0.6); border-top-color: transparent; border-radius: 50%; animation: spin 1s linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }

/* Print tweaks */
@media print {
  .site-header, .header, .age-gate, .age-popup, .mobile-drawer, .header__mobile-nav, .site-footer__badges, .footer__responsible-gaming, .footer__bottom { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .brand-tile, .platform-card { break-inside: avoid; box-shadow: none; border: 1px solid #ccc; }
}