:root {
  --site-bg: #05050f;
  --site-primary: #e040fb;
  --site-secondary: #00bcd4;
  --site-accent: #f5f510;
  --site-text: #f0f0ff;
  /* Layered surfaces (use these for depth — NEVER stack text directly on --site-bg) */
  --surface-1: #12121b;   /* alternating section band */
  --surface-2: #1e1e27;   /* cards & panels */
  --surface-3: #2d2d35;   /* raised / hover elements */
  --border-soft: #3c3c44; /* 1px hairline borders & dividers */
  --hero-glow: #682079;   /* hero gradient companion to --site-primary */
  --accent-soft: #30300f; /* faint accent wash for tinted blocks */
  --text-muted: #aeb7ca; /* secondary / supporting text */
}

/* ===== CONTRAST SAFETY NET (MANDATORY — copy verbatim, never remove) ===== */
/* Guarantees readable text on every surface. Computed from theme luminance. */
/* Each rule uses !important so it survives inline styles and model overrides. */
/* Body background is FORCED here so EVERY page (incl. legal/cookie pages) gets the dark
   base — the model sometimes forgets to set it on inner pages, leaving white/transparent
   pages with washed-out text. This guarantees the page background is always correct. */
html { background: var(--site-bg) !important; }
body { color: var(--site-text) !important; background: var(--site-bg) !important; }
/* Global minimum font size — nothing on the site may render below 14px */
small, .small, figcaption, sub, sup, .legal, .disclaimer-text, .cm5jq8-disclosure-bar, .cm5jq8-footer small { font-size: max(14px, 0.85rem) !important; }
/* Body copy floor — long-form paragraphs, lists & content text never wash out */
main p, main li, main td, .cm5jq8-content-section, .cm5jq8-content-section p, .cm5jq8-content-section li, .cm5jq8-content-section span, .cm5jq8-content-section div:not([class]) { color: var(--site-text) !important; }
/* Header / navigation — text must contrast the header (primary) background */
.cm5jq8-header .cm5jq8-logo span, .cm5jq8-header nav a, .cm5jq8-header nav a:link, .cm5jq8-header nav a:visited, .cm5jq8-desktop-nav a, .cm5jq8-header .cm5jq8-hamburger { color: #f6f8fc !important; opacity: 1 !important; }
.cm5jq8-header nav a:hover, .cm5jq8-desktop-nav a:hover { color: var(--site-accent) !important; }
/* Hero — readable over images, gradients or solid colour */
.cm5jq8-hero h1, .cm5jq8-hero h2, .cm5jq8-hero-text h1, .cm5jq8-hero-text h2 { color: #ffffff !important; text-shadow: 0 2px 10px rgba(0,0,0,0.85), 0 0 2px rgba(0,0,0,0.7); }
.cm5jq8-hero p, .cm5jq8-hero-text p, .cm5jq8-hero li, .cm5jq8-hero-subtitle { color: #ffffff !important; text-shadow: 0 2px 10px rgba(0,0,0,0.85), 0 0 2px rgba(0,0,0,0.7); }
.cm5jq8-game-card { background: var(--surface-2) !important; }
.cm5jq8-game-card h1, .cm5jq8-game-card h2, .cm5jq8-game-card h3, .cm5jq8-game-card h4, .cm5jq8-game-card p, .cm5jq8-game-card span:not([class]) { color: #f2f5fb !important; }
.cm5jq8-game-card small, .cm5jq8-game-card .muted { color: var(--text-muted) !important; }
/* Footer — force a dark surface (inline bg would otherwise win) so light text reads */
.cm5jq8-footer { background: #04040b !important; }
.cm5jq8-footer, .cm5jq8-footer p, .cm5jq8-footer li, .cm5jq8-footer span, .cm5jq8-footer div, .cm5jq8-footer h1, .cm5jq8-footer h2, .cm5jq8-footer h3 { color: #e7ecf5 !important; text-shadow: none !important; }
.cm5jq8-footer a { color: var(--site-accent) !important; opacity: 1 !important; }
/* Accessibility: honour reduced-motion preference (WCAG 2.3.3) — disables the decorative animations */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
/* Overflow guard (deterministic) — prevents the "second scrollbar" / horizontal spill no
   matter what the model styles. Any element wider than the viewport is clamped. */
html, body { max-width: 100% !important; overflow-x: hidden !important; }
body { position: relative; }
img, canvas, iframe, video, svg, table, pre { max-width: 100% !important; }
.cm5jq8-hero, .cm5jq8-game-grid, .cm5jq8-content-section, main, header, footer, section { max-width: 100vw !important; box-sizing: border-box !important; }

/* ===== BASE STYLES & TYPOGRAPHY ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 17px; /* Base font size for the entire site */
  scroll-behavior: smooth;
}

body {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  line-height: 1.75;
  overflow-x: hidden; /* Prevent horizontal scrollbars */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
}

main {
  flex: 1;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

h1, h2, h3, h4, .cm5jq8-logo {
  font-family: Verdana, Geneva, 'Segoe UI', Tahoma, sans-serif;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  font-weight: 700;
  margin-bottom: 12px;
}

h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

p {
  margin-bottom: 1.2em;
  font-size: 1rem; /* Inherits from html base */
  line-height: 1.75;
}

a {
  color: var(--site-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #ffffff;
  text-decoration: underline;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

img, canvas, iframe, video, svg {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  box-sizing: border-box;
}

/* ===== LAYOUT CLASSES ===== */
.cm5jq8-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.cm5jq8-hero {
  position: relative;
  min-height: 85vh;
  padding: 160px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  background: linear-gradient(135deg, var(--site-bg) 0%, color-mix(in srgb, var(--site-primary) 55%, var(--site-bg)) 100%);
  z-index: 1;
}

.cm5jq8-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 75% 30%, color-mix(in srgb, var(--site-accent) 35%, transparent) 0%, transparent 55%);
  z-index: 1;
}

.cm5jq8-hero-text {
  position: relative;
  z-index: 2;
  max-width: 700px;
  color: #fff;
}

.cm5jq8-hero-text h1 {
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.85), 0 0 2px rgba(0,0,0,0.7);
  animation: slideInHero 0.7s 0.1s ease-out both;
}

.cm5jq8-hero-text p {
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.85), 0 0 2px rgba(0,0,0,0.7);
  font-size: max(15px, 1rem);
  animation: slideInHero 0.7s 0.25s ease-out both;
}

.cm5jq8-hero-image {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 50%;
}

.cm5jq8-hero-image img {
  aspect-ratio: 16/9;
  max-height: 500px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.cm5jq8-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  max-width: 1300px;
  margin: 60px auto;
  padding: 0 20px;
}

.cm5jq8-game-card {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: var(--surface-2);
  border: 6px solid #000;
  box-shadow: 12px 12px 0px #000; /* Neo-brutalist shadow */
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* Push content to bottom */
  min-height: 320px; /* Minimum height for cards */
}

.cm5jq8-game-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 20px 20px 0px #000; /* Enhanced shadow on hover */
}

.cm5jq8-game-card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-bottom: 6px solid #000; /* Neo-brutalist border */
  filter: grayscale(20%) contrast(120%);
}

.cm5jq8-game-card-content {
  padding: 20px;
  position: relative;
  z-index: 2;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 70%); /* Gradient overlay for text */
  margin-top: -80px; /* Overlap with image */
  flex-grow: 1; /* Allow content to fill remaining space */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.cm5jq8-game-card h3 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-shadow: 0 1px 5px rgba(0,0,0,0.7);
}

.cm5jq8-game-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cm5jq8-btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  background: linear-gradient(45deg, var(--site-accent), color-mix(in srgb, var(--site-accent) 70%, white));
  color: #000000;
  box-shadow: 0 0 8px rgba(255,255,255,0.2);
  animation: btnGlow 2.5s ease-in-out infinite;
}

.cm5jq8-btn:hover {
  background: linear-gradient(45deg, color-mix(in srgb, var(--site-accent) 70%, white), var(--site-accent));
  color: #000000;
  box-shadow: 0 0 22px rgba(255,255,255,0.5);
}

.cm5jq8-content-section {
  padding: 80px 20px;
  line-height: 1.8;
  font-size: 1.05rem;
  background-color: var(--surface-1); /* Alternating section background */
  border-top: 1px solid var(--border-soft);
}

.cm5jq8-content-section h2 {
  text-align: left;
  margin-bottom: 24px;
  color: #ffffff;
}

.cm5jq8-content-section p {
  max-width: 70ch;
  margin-left: auto;
  margin-right: auto;
  font-size: max(15px, 1rem);
  color: var(--site-text);
}

.cm5jq8-content-section .cm5jq8-container {
  text-align: left;
}

.cm5jq8-content-section:nth-child(even) {
  background-color: var(--site-bg); /* Alternating section background */
}

.cm5jq8-content-section:nth-child(3) { /* Specific section for tinted band */
  background: linear-gradient(180deg, var(--surface-1), var(--accent-soft));
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInHero {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cardEnter {
  from { opacity: 0; transform: scale(0.95) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes btnGlow {
  0%,100% { box-shadow: 0 0 8px rgba(255,255,255,0.2); }
  50% { box-shadow: 0 0 22px rgba(255,255,255,0.5); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

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

/* === TABLET (≤1024px) === */
@media (max-width: 1024px) {
  .cm5jq8-hero {
    grid-template-columns: 1fr !important;
    flex-direction: column !important;
    padding: 80px 5% 60px !important;
    gap: 40px !important;
    text-align: center !important;
  }
  .cm5jq8-hero h1 {
    font-size: clamp(1.8rem, 5vw, 3rem) !important;
  }
  .cm5jq8-hero-image {
    display: none !important;
  }
  .cm5jq8-game-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
    gap: 24px !important;
  }
  .cm5jq8-game-card {
    box-shadow: 8px 8px 0px #000; /* Reduced shadow for smaller screens */
  }
  .cm5jq8-game-card:hover {
    box-shadow: 15px 15px 0px #000;
  }
  .cm5jq8-content-section {
    padding: 60px 16px !important;
  }
}

/* === MOBILE (≤768px) === */
@media (max-width: 768px) {
  html, body { font-size: 17px; overflow-x: hidden; }
  small, .small, figcaption, sub, sup, .legal, .disclaimer-text { font-size: max(14px, 0.85rem) !important; }
  .cm5jq8-header { padding: 12px 16px !important; position: sticky; top: 0; z-index: 100; }
  .cm5jq8-desktop-nav { display: none !important; }
  .cm5jq8-hamburger { display: flex !important; align-items: center; justify-content: center; background: transparent; border: 2px solid currentColor; border-radius: 8px; padding: 6px 10px; font-size: 1.4rem; cursor: pointer; color: #f6f8fc; }
  .cm5jq8-hamburger:hover { color: var(--site-accent); }
  .cm5jq8-hero {
    grid-template-columns: 1fr !important;
    flex-direction: column !important;
    padding: 60px 16px 40px !important;
    text-align: center !important;
    gap: 24px !important;
    min-height: unset !important;
    background-attachment: scroll !important;
  }
  .cm5jq8-hero h1, .cm5jq8-hero-text h1 {
    font-size: clamp(1.6rem, 7vw, 2.4rem) !important;
    line-height: 1.2 !important;
    margin-bottom: 16px !important;
  }
  .cm5jq8-hero p, .cm5jq8-hero-text p {
    font-size: max(15px, 1rem) !important;
  }
  .cm5jq8-hero-image {
    display: none !important;
  }
  .cm5jq8-hero img {
    display: none !important;
  }
  .cm5jq8-game-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    padding: 0 12px !important;
    margin-top: 40px !important;
  }
  .cm5jq8-game-card {
    border-radius: 12px !important;
    border-width: 4px !important;
    box-shadow: 6px 6px 0px #000 !important;
  }
  .cm5jq8-game-card:hover {
    box-shadow: 10px 10px 0px #000 !important;
  }
  .cm5jq8-game-card img {
    height: 140px !important;
    border-bottom-width: 4px !important;
  }
  .cm5jq8-game-card-content {
    margin-top: -60px;
    padding: 16px;
  }
  .cm5jq8-btn {
    padding: 12px 24px !important;
    font-size: max(14px, 0.875rem) !important;
  }
  .cm5jq8-content-section {
    padding: 40px 16px !important;
    font-size: max(15px, 1rem) !important;
  }
  .cm5jq8-footer {
    padding: 30px 16px !important;
    font-size: max(14px, 0.875rem) !important;
  }
  .cm5jq8-footer ul {
    flex-direction: column !important;
    gap: 10px !important;
  }
  canvas { max-width: 100% !important; height: auto !important; }
  img, video, iframe { max-width: 100% !important; }
}

/* === SMALL MOBILE (≤480px) === */
@media (max-width: 480px) {
  .cm5jq8-hero h1, .cm5jq8-hero-text h1 {
    font-size: clamp(1.4rem, 8vw, 2rem) !important;
  }
  .cm5jq8-game-grid {
    grid-template-columns: 1fr !important;
  }
  .cm5jq8-game-card img {
    height: 180px !important;
  }
  .cm5jq8-game-card-content {
    margin-top: -70px;
  }
}

/* === DESKTOP ONLY: Hide hamburger === */
@media (min-width: 769px) {
  .cm5jq8-hamburger { display: none !important; }
  .cm5jq8-desktop-nav { display: flex !important; }
}

/* ===== SPECIFIC ELEMENT STYLES ===== */

/* Navigation Link Hover Underline */
.cm5jq8-desktop-nav a {
  position: relative;
  padding: 6px 4px;
  opacity: 0.9;
  transition: opacity 0.2s, color 0.2s ease;
}
.cm5jq8-desktop-nav a::after {
  content: '';
  display: block;
  height: 2px;
  background: var(--site-accent);
  transform: scaleX(0);
  transition: transform 0.25s ease;
  transform-origin: left;
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
}
.cm5jq8-desktop-nav a:hover::after {
  transform: scaleX(1);
}

/* Mobile Menu Overlay */
.cm5jq8-mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background: rgba(0,0,0,0.95);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cm5jq8-mobile-menu button {
  position: absolute;
  top: 20px;
  right: 24px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
}
.cm5jq8-mobile-menu ul {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.cm5jq8-mobile-menu li a {
  color: #f6f8fc;
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 0;
  display: block;
}
.cm5jq8-mobile-menu li a:hover {
  color: var(--site-accent);
}

/* Disclosure Bar */
#cm5jq8-disclosure-bar {
  background: var(--surface-1);
  color: var(--text-muted);
  text-align: center;
  padding: 9px 18px;
  font-size: 0.82em;
  font-weight: 600;
  letter-spacing: 0.3px;
  border-bottom: 1px solid var(--border-soft);
  width: 100%;
  box-sizing: border-box;
}

/* Footer */
.cm5jq8-footer {
  padding: 50px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
  margin-top: auto; /* Push footer to bottom */
  color: var(--site-text);
  font-size: 0.9rem;
}
.cm5jq8-footer h3 {
  margin-bottom: 20px;
  opacity: 0.8;
  font-size: 1.5rem;
  color: #ffffff;
}
.cm5jq8-footer ul {
  display: flex;
  gap: 25px;
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
  flex-wrap: wrap;
  justify-content: center;
  border-bottom: 1px solid rgba(150,150,150,0.2);
  padding-bottom: 20px;
}
.cm5jq8-footer li a {
  color: #e7ecf5;
  text-decoration: none;
  font-weight: 600;
  opacity: 0.9;
  transition: opacity 0.2s, color 0.2s ease;
}
.cm5jq8-footer li a:hover {
  color: var(--site-accent);
  opacity: 1;
}
.cm5jq8-footer-contact p {
  margin-bottom: 8px;
  opacity: 0.9;
}
.cm5jq8-footer-contact strong {
  color: #ffffff;
}
.cm5jq8-footer h4 {
  margin: 0 0 8px 0;
  color: var(--site-accent);
  font-size: 1.2em;
}
.cm5jq8-footer p {
  margin: 0;
  opacity: 0.9;
  font-size: 1em;
  text-align: justify;
}
.cm5jq8-footer p strong {
  color: #ffffff;
}
.cm5jq8-footer a {
  color: var(--site-accent);
  text-decoration: underline;
}
.cm5jq8-footer a:hover {
  color: #ffffff;
}
.cm5jq8-copyright {
  margin-top: 15px;
  text-align: center;
  font-size: 0.82em;
  opacity: 0.78;
  line-height: 1.6;
}
.cm5jq8-copyright strong {
  display: block;
  margin-bottom: 4px;
  opacity: 0.95;
}

/* Trust Badges */
.cm5jq8-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,0.3);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #f6f8fc;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.15);
  margin: 5px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.cm5jq8-badge img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}
.cm5jq8-badge.accent {
  background: color-mix(in srgb, var(--site-accent) 20%, transparent);
  border-color: color-mix(in srgb, var(--site-accent) 40%, transparent);
  color: var(--site-accent);
}
.cm5jq8-badge.accent:hover {
  background: color-mix(in srgb, var(--site-accent) 35%, transparent);
}

/* Specific styling for the hero CTA button */
.cm5jq8-hero .cm5jq8-btn {
  margin-top: 24px;
  font-size: 1rem;
  padding: 14px 32px;
  animation-delay: 0.4s; /* Stagger animation */
}
.cm5jq8-hero .cm5jq8-btn:hover {
  transform: translateY(-3px) scale(1.03);
}

/* Styling for the game card title and description */
.cm5jq8-game-card-content h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.cm5jq8-game-card-content p {
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Add animation delays to game cards */
.cm5jq8-game-card:nth-child(1) { animation-delay: 0.05s; }
.cm5jq8-game-card:nth-child(2) { animation-delay: 0.15s; }
.cm5jq8-game-card:nth-child(3) { animation-delay: 0.25s; }
.cm5jq8-game-card:nth-child(4) { animation-delay: 0.35s; }
.cm5jq8-game-card:nth-child(5) { animation-delay: 0.4s; }
.cm5jq8-game-card:nth-child(n+6) { animation-delay: 0.45s; } /* Stagger for subsequent cards */

/* Apply main page fade-in animation to main content */
main {
  animation: fadeInUp 0.65s ease-out both;
}