/*
 * Sosia Games - Global Stylesheet
 * Version: 1.0.0
 * Author: AI Frontend Developer
 * Date: 2026-01-01
 *
 * This stylesheet defines the core visual language for Sosia Games.
 * It adheres to W3C standards, Google AdSafe compliance, and a premium "RetroArcade" aesthetic.
 * All styles are carefully crafted for accessibility, performance, and a consistent user experience.
 */

/* CSS Reset & Global Box Sizing */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Root Color Variables - Ocean Deep Theme */
:root {
  --site-bg: #02101f;
  --site-primary: #0096c7;
  --site-secondary: #48cae4;
  --site-accent: #ffd60a;
  --site-text: #cdf0ff;
  /* Layered surfaces (use these for depth — NEVER stack text directly on --site-bg) */
  --surface-1: #0f1c2a;   /* alternating section band */
  --surface-2: #1b2835;   /* cards & panels */
  --surface-3: #2a3643;   /* raised / hover elements */
  --border-soft: #3a4550; /* 1px hairline borders & dividers */
  --hero-glow: #014c6b;   /* hero gradient companion to --site-primary */
  --accent-soft: #30341b; /* 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: #02101f !important; }
body { color: #eef2f8 !important; background: #02101f !important; }
/* Global minimum font size — nothing on the site may render below 14px */
small, .small, figcaption, sub, sup, .legal, .disclaimer-text, .cts1er-disclosure-bar, .cts1er-footer small { font-size: max(14px, 0.85rem) !important; }
/* SKELETON LAYOUT SAFETY - Protects all text from touching edges */
main > *:not([class*="-hero"]):not([class*="-full-width"]) {
  max-width: 1200px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
  box-sizing: border-box !important;
}

/* Body copy floor — long-form paragraphs, lists & content text never wash out */
main p, main li, main td, .cts1er-content-section, .cts1er-content-section p, .cts1er-content-section li, .cts1er-content-section span, .cts1er-content-section div:not([class]) { color: #eef2f8 !important; }
/* Header / navigation — text must contrast the header (primary) background */
.cts1er-header .cts1er-logo span, .cts1er-header nav a, .cts1er-header nav a:link, .cts1er-header nav a:visited, .cts1er-desktop-nav a, .cts1er-header .cts1er-hamburger { color: #f6f8fc !important; opacity: 1 !important; }
.cts1er-header nav a:hover, .cts1er-desktop-nav a:hover { color: #ffd60a !important; }
/* Hero — readable over images, gradients or solid colour */
.cts1er-hero h1, .cts1er-hero h2, .cts1er-hero-text h1, .cts1er-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); }
.cts1er-hero p, .cts1er-hero-text p, .cts1er-hero li, .cts1er-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); }
.cts1er-game-card { background: #1b2835 !important; }
.cts1er-game-card h1, .cts1er-game-card h2, .cts1er-game-card h3, .cts1er-game-card h4, .cts1er-game-card p, .cts1er-game-card span:not([class]) { color: #f2f5fb !important; }
.cts1er-game-card small, .cts1er-game-card .muted { color: #aeb7ca !important; }
/* Footer — force a dark surface (inline bg would otherwise win) so light text reads */
.cts1er-footer { background: #020c17 !important; }
.cts1er-footer, .cts1er-footer p, .cts1er-footer li, .cts1er-footer span, .cts1er-footer div, .cts1er-footer h1, .cts1er-footer h2, .cts1er-footer h3 { color: #e7ecf5 !important; text-shadow: none !important; }
.cts1er-footer a { color: #ffd60a !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 { 
  overflow-x: hidden !important; 
  width: auto !important; 
  max-width: 100% !important; 
  margin: 0 !important; 
  padding: 0 !important; 
}
body { position: relative; }
img, canvas, iframe, video, svg, table, pre { max-width: 100% !important; height: auto; }
.cts1er-hero, .cts1er-game-grid, .cts1er-content-section, main, header, footer, section { max-width: 100% !important; box-sizing: border-box !important; }

/* Global Layout & Typography */
html {
  scroll-behavior: smooth;
}

body {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 17px;
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: var(--site-bg); /* Ensure body background is set */
  color: var(--site-text);
}

main {
  flex: 1 0 auto;
  width: 100%;
  box-sizing: border-box;
  animation: fadeInUp 0.65s ease-out both; /* Page fade-in animation */
}

/* Headings - RetroArcade Style */
h1, h2, h3, h4, .cts1er-logo {
  font-family: -apple-system, 'Segoe UI', system-ui, 'Helvetica Neue', Arial, sans-serif;
  color: var(--site-text); /* Default heading color, overridden for accent where specified */
  text-transform: uppercase; /* RetroArcade style */
  font-weight: 800; /* RetroArcade style */
  letter-spacing: 0.08em; /* Heavy letter-spacing for RetroArcade */
  text-shadow: 3px 3px 0 var(--site-accent); /* Chunky offset shadow for RetroArcade */
  -webkit-text-stroke: 1.5px var(--site-primary); /* Text stroke for RetroArcade */
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.01em; /* Override for H1 to be slightly tighter */
  text-shadow: 4px 4px 0 var(--site-accent); /* More pronounced shadow for H1 */
  -webkit-text-stroke: 2px var(--site-primary); /* Thicker stroke for H1 */
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1.2;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.8rem);
}

h4 {
  font-size: clamp(1rem, 1.8vw, 1.4rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-shadow: 2px 2px 0 var(--site-accent);
  -webkit-text-stroke: 1px var(--site-primary);
}

p {
  line-height: 1.7;
  margin-bottom: 1em;
}

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

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

a:hover {
  color: var(--site-accent);
}

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

/* Container for centering content */
.cts1er-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation Styling */
/* Header has inline styles for position, background, etc. We add to it. */
.cts1er-header {
  backdrop-filter: blur(10px); /* Glass effect */
  background: rgba(0, 150, 199, 0.85) !important; /* Reinforce header background with transparency */
}

.cts1er-desktop-nav ul {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
}

.cts1er-desktop-nav a {
  position: relative;
  padding: 6px 4px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--site-text);
  opacity: 0.9;
  transition: opacity 0.2s, color 0.2s;
}

.cts1er-desktop-nav a:hover {
  color: var(--site-accent);
  opacity: 1;
}

/* Nav link hover underline animation */
.cts1er-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: -4px;
  left: 0;
  width: 100%;
}

.cts1er-desktop-nav a:hover::after {
  transform: scaleX(1);
}

.cts1er-hamburger {
  display: none !important; /* Hidden on desktop by default */
}

.cts1er-mobile-menu {
  display: none; /* Hidden by default, JS will toggle */
  background: rgba(2, 16, 31, 0.98) !important; /* Darker overlay */
  color: var(--site-text);
}

.cts1er-mobile-menu ul a {
  color: var(--site-text);
  font-size: 1.5rem;
  font-weight: bold;
  padding: 10px 0;
  display: block;
  transition: color 0.2s ease;
}

.cts1er-mobile-menu ul a:hover {
  color: var(--site-accent);
}

/* Disclosure Bar */
#cts1er-disclosure-bar {
  background: var(--site-primary) !important;
  color: var(--site-text) !important;
  border-bottom: 2px solid var(--site-accent) !important;
}

/* Hero Section - FULL-BLEED-OVERLAY */
.cts1er-hero {
  position: relative;
  min-height: 85vh;
  padding: 160px 40px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  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%);
  overflow: hidden; /* Ensure pseudo-elements don't spill */
}

.cts1er-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;
  animation: slideInHero 1.2s ease-out both; /* Hero entrance animation */
}

.cts1er-hero .cts1er-container {
  position: relative;
  z-index: 3;
}

.cts1er-hero-actions {
  position: relative;
  z-index: 4;
}

.cts1er-pixel-decor {
  position: absolute;
  width: 28px;
  height: 28px;
  z-index: 2;
  pointer-events: none;
  opacity: 0.55;
}

.cts1er-hero-text {
  position: relative;
  z-index: 2;
  flex: 1 1 60%;
  max-width: 780px;
  color: #fff;
}

.cts1er-hero-image {
  position: relative;
  z-index: 2;
  flex: 0 1 46%;
  max-width: 640px;
  width: 100%;
}

.cts1er-hero-image img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.35);
  border: 2px solid color-mix(in srgb, var(--site-accent) 55%, transparent);
  background: rgba(2,16,31,0.2);
}

.cts1er-hero h1 {
  color: #ffffff !important; /* Ensure high contrast */
  text-shadow: 0 4px 15px rgba(0,0,0,0.7), 0 0 5px rgba(0,0,0,0.5);
  animation: slideInHero 0.7s 0.1s ease-out both; /* Hero entrance animation */
}

.cts1er-hero p {
  color: #ffffff !important; /* Ensure high contrast */
  font-size: 1.15rem;
  margin-top: 20px;
  margin-bottom: 40px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  animation: slideInHero 0.7s 0.25s ease-out both; /* Hero entrance animation */
}

/* Buttons */
.cts1er-btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  background: linear-gradient(45deg, var(--site-accent) 0%, #ffeb3b 100%);
  color: #000000; /* Black text on accent button for contrast */
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  animation: btnGlow 2.5s ease-in-out infinite; /* Button glow pulse */
}

.cts1er-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4), 0 0 25px rgba(255,214,10,0.6);
}

/* Trust Badges / Pill Chips */
.cts1er-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 25px;
  background: var(--surface-2);
  color: var(--site-text);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--border-soft);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.cts1er-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3), 0 0 15px rgba(72,202,228,0.3);
}

.cts1er-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.7s ease;
  z-index: -1;
}

.cts1er-badge:hover::before {
  left: 100%;
}

/* Section Styling - MODULAR-COLOR-ISLANDS */
section {
  border-radius: 28px;
  padding: 72px 40px;
  margin: 32px auto;
  max-width: 1200px; /* Ensure sections are contained */
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border-soft); /* Hairline top divider */
  border-bottom: 1px solid var(--border-soft);
}

/* Alternating section backgrounds */
section:nth-of-type(odd) {
  background-color: var(--surface-1);
}

section:nth-of-type(even) {
  background-color: var(--site-bg); /* Use site-bg for contrast */
}

/* One tinted island */
section.cts1er-accent-section {
  background: linear-gradient(180deg, var(--surface-1), var(--accent-soft));
  border-color: color-mix(in srgb, var(--site-accent) 30%, transparent);
}

/* Eyebrow / Kicker Label */
.cts1er-eyebrow {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--site-accent);
  font-weight: 700;
  margin-bottom: 10px;
}

/* Games Grid - EDITORIAL-MAGAZINE-ROWS */
.cts1er-game-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 1100px;
  margin: 70px auto;
  padding: 0 20px;
}

.cts1er-game-card {
  display: flex;
  align-items: stretch;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface-2);
  min-height: 240px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3), 0 0 0 4px var(--site-secondary); /* Thick pixelated border effect */
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  animation: cardEnter 0.5s ease-out both; /* Card stagger animation */
}

/* Card stagger delays */
.cts1er-game-card:nth-child(1) { animation-delay: 0.05s; }
.cts1er-game-card:nth-child(2) { animation-delay: 0.15s; }
.cts1er-game-card:nth-child(3) { animation-delay: 0.25s; }
.cts1er-game-card:nth-child(4) { animation-delay: 0.35s; }
.cts1er-game-card:nth-child(5) { animation-delay: 0.4s; }
.cts1er-game-card:nth-child(6) { animation-delay: 0.45s; }
.cts1er-game-card:nth-child(7) { animation-delay: 0.5s; }
.cts1er-game-card:nth-child(8) { animation-delay: 0.55s; }
.cts1er-game-card:nth-child(9) { animation-delay: 0.6s; }
.cts1er-game-card:nth-child(10) { animation-delay: 0.65s; }


.cts1er-game-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 0 4px var(--site-accent); /* Accent border on hover */
}

.cts1er-game-card-image-wrapper {
  flex: 0 0 42%;
  height: auto; /* Image will scale with card height */
  overflow: hidden;
}

.cts1er-game-card-image-wrapper img {
  width: 100%;
  height: 100%; /* Fill wrapper */
  object-fit: cover;
  transition: transform 0.3s ease;
}

.cts1er-game-card:hover .cts1er-game-card-image-wrapper img {
  transform: scale(1.05);
}

.cts1er-game-card-content {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--site-text);
}

.cts1er-game-card-content h3 {
  margin-bottom: 10px;
  font-size: 1.3rem; /* Card title size */
  font-weight: 700;
  color: var(--site-secondary); /* Use secondary for card titles */
  text-shadow: 2px 2px 0 rgba(0,0,0,0.3);
  -webkit-text-stroke: 0.5px var(--site-primary);
}

.cts1er-game-card-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.cts1er-game-card-content .cts1er-btn {
  align-self: flex-start;
  padding: 8px 20px;
  font-size: 0.85rem;
  border-radius: 30px;
  background: linear-gradient(45deg, var(--site-secondary) 0%, var(--site-primary) 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.cts1er-game-card-content .cts1er-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3), 0 0 15px rgba(72,202,228,0.4);
}

/* Alternate image side for even cards */
.cts1er-game-card:nth-child(even) {
  flex-direction: row-reverse;
}

/* Content Section Styling */
.cts1er-content-section {
  padding: 80px 20px;
  line-height: 1.8;
  font-size: 1.05rem;
  color: var(--site-text);
}

.cts1er-content-section h2 {
  margin-bottom: 30px;
  color: var(--site-text); /* Default for content section headings */
  text-align: left; /* Left-aligned for long-form content */
}

.cts1er-content-section p {
  margin-bottom: 1.5em;
  color: var(--site-text);
  text-align: left; /* Left-aligned for long-form content */
}

.cts1er-content-section ul {
  list-style: disc;
  padding-left: 25px;
  margin-bottom: 1.5em;
}

.cts1er-content-section li {
  margin-bottom: 0.8em;
  color: var(--site-text);
}

/* Footer Styling */
/* Footer has inline styles for padding, background, etc. We add to it. */
.cts1er-footer {
  background: var(--site-bg) !important; /* Ensure dark background */
  color: var(--site-text) !important;
  font-size: 0.95rem;
  text-align: center;
  padding: 60px 20px;
}

.cts1er-footer ul {
  display: flex;
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
  flex-wrap: wrap;
  justify-content: center;
}

.cts1er-footer ul a {
  color: var(--site-text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  font-size: 0.95rem;
}

.cts1er-footer ul a:hover {
  color: var(--site-accent);
}

.cts1er-footer .cts1er-copyright {
  font-size: 0.85rem;
  opacity: 0.7;
  margin-top: 20px;
}

/* Keyframe 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), 0 4px 15px rgba(0,0,0,0.3);
  }
  50% {
    box-shadow: 0 0 22px rgba(255,255,255,0.5), 0 4px 20px rgba(0,0,0,0.4);
  }
}

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

/* Responsive & Mobile Breakpoints */
/* === TABLET (≤1024px) === */
@media (max-width: 1024px) {
  .cts1er-hero { grid-template-columns: 1fr !important; flex-direction: column !important; padding: 80px 5% 60px !important; gap: 40px !important; }
  .cts1er-hero h1 { font-size: clamp(1.8rem, 5vw, 3rem) !important; }
  /* For Editorial-Magazine-Rows, the game grid is already flex-column, but cards might need adjustment */
  .cts1er-game-grid { gap: 30px !important; }
  .cts1er-game-card { flex-direction: column !important; min-height: unset !important; }
  .cts1er-game-card:nth-child(even) { flex-direction: column !important; } /* Reset row-reverse */
  .cts1er-game-card-image-wrapper { flex: 0 0 auto; width: 100%; height: 200px; }
  .cts1er-game-card-content { padding: 30px; }
}
/* === 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; }
  .cts1er-header { padding: 12px 16px !important; position: sticky; top: 0; z-index: 100; }
  .cts1er-desktop-nav { display: none !important; }
  .cts1er-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; }
  .cts1er-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; }
  .cts1er-hero h1, .cts1er-hero-text h1 { font-size: clamp(1.6rem, 7vw, 2.4rem) !important; line-height: 1.2 !important; margin-bottom: 16px !important; }
  .cts1er-hero p, .cts1er-hero-text p { font-size: max(15px, 1rem) !important; }
  .cts1er-hero-image { max-width: 100% !important; width: 100% !important; }
  .cts1er-pixel-decor { width: 20px !important; height: 20px !important; opacity: 0.45 !important; }
  /* For Editorial-Magazine-Rows, cards already stack, but adjust gap/padding */
  .cts1er-game-grid { gap: 20px !important; padding: 0 16px !important; }
  .cts1er-game-card { border-radius: 12px !important; flex-direction: column !important; }
  .cts1er-game-card:nth-child(even) { flex-direction: column !important; } /* Reset row-reverse */
  .cts1er-game-card-image-wrapper { height: 180px !important; width: 100% !important; }
  .cts1er-game-card-content { padding: 20px !important; }
  .cts1er-btn { padding: 12px 24px !important; font-size: max(14px, 0.875rem) !important; }
  .cts1er-content-section { padding: 40px 16px !important; font-size: max(15px, 1rem) !important; }
  .cts1er-footer { padding: 30px 16px !important; font-size: max(14px, 0.875rem) !important; }
  .cts1er-footer ul { flex-direction: column !important; gap: 10px !important; }
  canvas { max-width: 100% !important; height: auto !important; }
  img, video, iframe { max-width: 100% !important; }
  section {
    padding: 50px 20px;
    border-radius: 18px;
    margin: 24px auto;
  }
  h1, h2, h3, h4 {
    letter-spacing: 0.05em; /* Slightly less heavy on mobile */
    text-shadow: 2px 2px 0 var(--site-accent);
    -webkit-text-stroke: 1px var(--site-primary);
  }
}
/* === SMALL MOBILE (≤480px) === */
@media (max-width: 480px) {
  .cts1er-hero h1, .cts1er-hero-text h1 { font-size: clamp(1.4rem, 8vw, 2rem) !important; }
  /* For Editorial-Magazine-Rows, cards are already column, no need for grid-template-columns: 1fr */
  .cts1er-game-card-image-wrapper { height: 160px !important; }
  .cts1er-game-card-content { padding: 15px !important; }
  .cts1er-game-card-content h3 { font-size: 1.1rem; }
  .cts1er-game-card-content p { font-size: 0.9rem; }
  .cts1er-btn { padding: 10px 20px !important; font-size: max(13px, 0.8rem) !important; }
  section { padding: 40px 15px; }
}
/* === DESKTOP ONLY: Hide hamburger === */
@media (min-width: 769px) {
  .cts1er-hamburger { display: none !important; }
  .cts1er-desktop-nav { display: flex !important; }
}