/* ============================================
   Gordyus Studio — Design System
   ============================================ */

/* --- Custom Properties --- */
:root {
  /* Brand */
  --brand-dark: #0f0f1a;
  --brand-accent: #ff6b35;
  --brand-light: #f8f9fa;

  /* LD1 — Nature/Cartoon */
  --ld1-green: #4a7c3f;
  --ld1-sky: #87ceeb;
  --ld1-earth: #6b4226;
  --ld1-fire: #ff8c00;
  --ld1-red: #c0392b;
  --ld1-yellow: #f1c40f;

  /* LD2 — Modern/Canyon */
  --ld2-navy: #1b2838;
  --ld2-blue: #2980b9;
  --ld2-gold: #f39c12;
  --ld2-red: #a0522d;
  --ld2-cyan: #00bfff;

  /* Daily Minesweeper — Teal/Clean */
  --dm-teal: #167366;
  --dm-teal-dark: #0f5249;
  --dm-teal-light: #1e9980;
  --dm-bg: #0d1f1c;
  --dm-surface: #122b27;
  --dm-flag: #e53e3e;
  --dm-mine: #1a202c;

  /* QuelMot — Cerebral/Dark */
  --qm-bg: #0F1923;
  --qm-surface: #162433;
  --qm-accent: #4FC3F7;
  --qm-accent-dark: #2196F3;
  --qm-text-muted: #8B9EB7;
  --qm-icy: #A8D8EA;
  --qm-cold: #5B9BD5;
  --qm-warm: #FFD93D;
  --qm-hot: #FF8C42;
  --qm-burning: #FF4444;
  --qm-found: #FFD700;

  /* Neutrals */
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;

  /* Typography */
  --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;
  --font-size-5xl: 3.5rem;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Borders & Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.18);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.2);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--brand-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: #e55a28;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--gray-900);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }

@media (min-width: 768px) {
  h1 { font-size: var(--font-size-5xl); }
  h2 { font-size: var(--font-size-4xl); }
}

/* --- Utility Classes --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

/* --- Navigation --- */
.nav {
  background: var(--brand-dark);
  padding: var(--space-md) 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: var(--font-size-xl);
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav-logo__icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: block;
  flex-shrink: 0;
}

.nav-logo:hover {
  color: var(--brand-accent);
}

/* Language switcher */
.lang-switcher {
  position: relative;
  margin-left: var(--space-lg);
}
.lang-switcher__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-family: inherit;
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}
.lang-switcher__btn:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.3); }
.lang-switcher__btn::after {
  content: '';
  border-style: solid;
  border-width: 5px 4px 0 4px;
  border-color: currentColor transparent transparent transparent;
  transition: transform var(--transition-fast);
}
.lang-switcher.open .lang-switcher__btn::after { transform: rotate(180deg); }
.lang-switcher__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 150px;
  background: var(--brand-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-xs) 0;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: all var(--transition-fast);
  z-index: 50;
}
.lang-switcher.open .lang-switcher__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-switcher__menu a {
  display: block;
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--font-size-sm);
  color: var(--gray-300);
  text-decoration: none;
}
.lang-switcher__menu a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.lang-switcher__menu a.active { color: var(--brand-accent); font-weight: 600; }

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
  align-items: center;
}

.nav-links a {
  color: var(--gray-300);
  font-size: var(--font-size-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--brand-accent);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: var(--transition-fast);
}

@media (max-width: 767px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    padding-top: var(--space-md);
    gap: var(--space-md);
  }

  .nav-links.open {
    display: flex;
  }

  /* Switcher sits at the left edge on mobile — open the menu rightward
     so it doesn't overflow off-screen to the left. */
  .lang-switcher {
    margin-left: 0;
  }
  .lang-switcher__menu {
    left: 0;
    right: auto;
  }
}

/* --- Hero Section --- */
.hero {
  padding: var(--space-4xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  margin-bottom: var(--space-lg);
}

.hero .subtitle {
  font-size: var(--font-size-lg);
  color: var(--gray-600);
  max-width: 640px;
  margin: 0 auto var(--space-2xl);
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Home hero — gradient background */
body.page-home .hero {
  background: linear-gradient(135deg, var(--brand-dark) 0%, #1a1a2e 50%, #16213e 100%);
  color: #fff;
}

body.page-home .hero h1 {
  color: #fff;
}

body.page-home .hero .subtitle {
  color: var(--gray-400);
}

/* LD1 hero */
body.page-ld1 .hero {
  background:
    radial-gradient(ellipse 55% 45% at 70% 30%, rgba(255, 160, 0, 0.12) 0%, transparent 60%),
    linear-gradient(135deg, var(--ld1-green) 0%, #2d5a27 60%, var(--ld1-earth) 100%);
  color: #fff;
}

body.page-ld1 .hero h1 {
  color: #fff;
}

body.page-ld1 .hero .subtitle {
  color: var(--ld1-sky);
}

/* LD2 hero */
body.page-ld2 .hero {
  background:
    radial-gradient(ellipse 60% 45% at 65% 35%, rgba(0, 191, 255, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse 40% 35% at 30% 70%, rgba(243, 156, 18, 0.08) 0%, transparent 55%),
    linear-gradient(135deg, var(--ld2-navy) 0%, #1e3a5f 60%, #0d1b2a 100%);
  color: #fff;
}

body.page-ld2 .hero h1 {
  color: #fff;
}

body.page-ld2 .hero .subtitle {
  color: var(--ld2-cyan);
}

/* Blog hero */
body.page-blog .hero {
  background: var(--gray-900);
  padding: var(--space-3xl) 0;
  color: #fff;
}

body.page-blog .hero h1 {
  color: #fff;
  font-size: var(--font-size-3xl);
}

/* --- CTA Button --- */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.75rem;
  font-size: var(--font-size-base);
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  line-height: 1.4;
}

.cta-button--primary {
  background: var(--brand-accent);
  color: #fff;
  border-color: var(--brand-accent);
}

.cta-button--primary:hover {
  background: #e55a28;
  border-color: #e55a28;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.cta-button--secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.cta-button--secondary:hover {
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
}

.cta-button--dark {
  background: var(--brand-dark);
  color: #fff;
  border-color: var(--brand-dark);
}

.cta-button--dark:hover {
  background: var(--gray-800);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* --- Game Cards --- */
.games-section {
  padding: var(--space-4xl) 0;
}

.games-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}

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

.game-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(255, 255, 255, 0.18);
}

.game-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-sm);
  color: var(--gray-500);
  position: relative;
  overflow: hidden;
}

.game-card--ld1 .game-card__image {
  background: linear-gradient(135deg, var(--ld1-sky), var(--ld1-green));
}

.game-card--ld2 .game-card__image {
  background: linear-gradient(135deg, var(--ld2-navy), var(--ld2-blue));
}

.game-card__body {
  padding: var(--space-xl);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.game-card__badge {
  display: inline-block;
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
  width: fit-content;
}

.game-card--ld1 .game-card__badge {
  background: rgba(74, 124, 63, 0.12);
  color: var(--ld1-green);
}

.game-card--ld2 .game-card__badge {
  background: rgba(41, 128, 185, 0.12);
  color: var(--ld2-blue);
}

.game-card__title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-sm);
  color: #fff;
}

.game-card__desc {
  color: var(--gray-400);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-lg);
  flex: 1;
}

.game-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.game-card__stat {
  font-size: var(--font-size-sm);
  color: var(--gray-400);
  font-weight: 500;
}

.game-card__cta {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--brand-accent);
  letter-spacing: 0.3px;
}

/* --- Feature Grid --- */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  padding: var(--space-3xl) 0;
}

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

@media (min-width: 1200px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-grid__item {
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.feature-grid__item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.feature-grid__icon {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-md);
}

.feature-grid__title {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-sm);
}

.feature-grid__desc {
  color: var(--gray-600);
  font-size: var(--font-size-sm);
}

/* --- FAQ Section --- */
.faq-section {
  padding: var(--space-4xl) 0;
}

.faq-section h2 {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.faq-item {
  border-bottom: 1px solid var(--gray-200);
  padding: var(--space-lg) 0;
}

.faq-item summary {
  font-weight: 600;
  font-size: var(--font-size-lg);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  color: var(--gray-800);
  transition: color var(--transition-fast);
}

.faq-item summary:hover {
  color: var(--brand-accent);
}

.faq-item summary::after {
  content: '+';
  font-size: var(--font-size-xl);
  font-weight: 300;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.faq-item[open] summary::after {
  content: '-';
}

.faq-item__answer {
  padding-top: var(--space-md);
  color: var(--gray-600);
  line-height: 1.7;
  max-width: 720px;
}

/* --- Play Store Badge --- */
.play-store-badge {
  display: inline-block;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.play-store-badge img {
  height: 64px;
  width: auto;
}

.play-store-badge:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/* --- Section Styling --- */
.section {
  padding: var(--space-4xl) 0;
}

.section--gray {
  background: var(--gray-100);
}

.section--dark {
  background: var(--brand-dark);
  color: #fff;
}

.section--dark h2,
.section--dark h3 {
  color: #fff;
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section__header p {
  color: var(--gray-600);
  max-width: 600px;
  margin: var(--space-md) auto 0;
  font-size: var(--font-size-lg);
}

.section--dark .section__header p {
  color: var(--gray-400);
}

/* --- About Section --- */
.about-section {
  padding: var(--space-4xl) 0;
  background: var(--gray-100);
}

.about-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  color: var(--gray-600);
  font-size: var(--font-size-lg);
  line-height: 1.8;
}

/* --- Footer --- */
.footer {
  background: var(--brand-dark);
  color: var(--gray-400);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

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

.footer-brand {
  font-size: var(--font-size-xl);
  font-weight: 800;
  color: #fff;
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-desc {
  font-size: var(--font-size-sm);
  line-height: 1.7;
  max-width: 320px;
}

.footer h4 {
  color: #fff;
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-md);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  color: var(--gray-400);
  font-size: var(--font-size-sm);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--brand-accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: var(--font-size-sm);
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.fade-in-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in-children.visible > *:nth-child(1) { transition-delay: 0s; }
.fade-in-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.fade-in-children.visible > *:nth-child(3) { transition-delay: 0.2s; }
.fade-in-children.visible > *:nth-child(4) { transition-delay: 0.3s; }

.fade-in-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Subtle pulse for CTA */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(255, 107, 53, 0); }
}

.cta-button--primary.pulse {
  animation: pulse-glow 2s infinite;
}

/* --- Page-specific accent overrides --- */
body.page-ld1 a { color: var(--ld1-green); }
body.page-ld1 a:hover { color: #3a6332; }
body.page-ld1 .cta-button--primary {
  background: var(--ld1-green);
  border-color: var(--ld1-green);
}
body.page-ld1 .cta-button--primary:hover {
  background: #3a6332;
  border-color: #3a6332;
}

/* QuelMot hero */
body.page-qm .hero {
  background:
    radial-gradient(ellipse 70% 55% at 50% 35%, rgba(79, 195, 247, 0.12) 0%, transparent 65%),
    radial-gradient(ellipse 40% 30% at 80% 70%, rgba(229, 115, 115, 0.08) 0%, transparent 55%),
    linear-gradient(135deg, var(--qm-bg) 0%, var(--qm-surface) 60%, #0d1b2a 100%);
  color: #fff;
}

body.page-qm .hero h1 { color: #fff; }
body.page-qm .hero .subtitle { color: var(--qm-text-muted); }

body.page-qm a { color: var(--qm-accent); }
body.page-qm a:hover { color: var(--qm-accent-dark); }
body.page-qm .cta-button--primary {
  background: var(--qm-accent);
  border-color: var(--qm-accent);
  color: var(--qm-bg);
}
body.page-qm .cta-button--primary:hover {
  background: var(--qm-accent-dark);
  border-color: var(--qm-accent-dark);
  color: #fff;
}

/* Daily Minesweeper hero */
body.page-dm .hero {
  background:
    radial-gradient(ellipse 65% 50% at 50% 40%, rgba(22, 115, 102, 0.18) 0%, transparent 60%),
    linear-gradient(135deg, var(--dm-bg) 0%, var(--dm-surface) 60%, #0a1a17 100%);
  color: #fff;
}

body.page-dm .hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(22, 115, 102, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 115, 102, 0.06) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  z-index: 0;
}

body.page-dm .hero .container { position: relative; z-index: 1; }

body.page-dm .hero h1 { color: #fff; }
body.page-dm .hero .subtitle { color: rgba(255, 255, 255, 0.65); }

body.page-dm a { color: var(--dm-teal-light); }
body.page-dm a:hover { color: var(--dm-teal); }
body.page-dm .cta-button--primary {
  background: var(--dm-teal);
  border-color: var(--dm-teal);
  color: #fff;
}
body.page-dm .cta-button--primary:hover {
  background: var(--dm-teal-dark);
  border-color: var(--dm-teal-dark);
  color: #fff;
}

/* Daily Minesweeper game card */
.game-card--dm .game-card__image {
  background: linear-gradient(135deg, var(--dm-bg), var(--dm-teal));
}

.game-card--dm .game-card__badge {
  background: rgba(22, 115, 102, 0.15);
  color: var(--dm-teal);
}

/* QuelMot game card */
.game-card--qm .game-card__image {
  background: linear-gradient(135deg, var(--qm-bg), var(--qm-accent-dark));
}

.game-card--qm .game-card__badge {
  background: rgba(79, 195, 247, 0.12);
  color: var(--qm-accent);
}

body.page-qm .screenshot-placeholder {
  background: linear-gradient(145deg, var(--qm-bg), var(--qm-surface));
}

/* Temperature bar */
.temp-bar {
  height: 8px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--qm-icy), var(--qm-cold), var(--qm-warm), var(--qm-hot), var(--qm-burning), var(--qm-found));
  margin: var(--space-lg) 0;
}

.temp-demo {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
}

.temp-demo__item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-sm);
  color: var(--gray-600);
}

.temp-demo__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

body.page-ld2 a { color: var(--ld2-blue); }
body.page-ld2 a:hover { color: #1f6da0; }
body.page-ld2 .cta-button--primary {
  background: var(--ld2-blue);
  border-color: var(--ld2-blue);
}
body.page-ld2 .cta-button--primary:hover {
  background: #1f6da0;
  border-color: #1f6da0;
}

/* --- Grid Layouts --- */
.grid {
  display: grid;
  gap: var(--space-xl);
}

.grid-1 { grid-template-columns: 1fr; max-width: 600px; margin: 0 auto; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-5 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

/* --- Hero Extended --- */
.hero-content { position: relative; }

.hero-tagline {
  font-size: var(--font-size-xl);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: var(--space-sm);
}

.hero-sub {
  font-size: var(--font-size-lg);
  color: var(--gray-400);
  margin-bottom: var(--space-2xl);
}

body.page-ld2 .hero-sub { color: var(--ld2-cyan); }

.hero-image-placeholder {
  width: 100%;
  max-width: 700px;
  aspect-ratio: 16 / 9;
  background: linear-gradient(145deg, var(--ld2-red), var(--ld2-navy));
  border-radius: var(--radius-lg);
  border: 3px solid rgba(255, 255, 255, 0.15);
  margin: var(--space-2xl) auto 0;
}

/* --- Section Extras --- */
.section-sub {
  color: var(--gray-600);
  font-size: var(--font-size-lg);
  text-align: center;
  max-width: 600px;
  margin: var(--space-sm) auto var(--space-2xl);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  text-decoration: none;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.btn:hover { transform: scale(1.04); opacity: 0.9; }

.btn-play img { height: 52px; width: auto; }
.btn-large img { height: 72px; }

/* --- Feature / Bomb / World / Upgrade Cards --- */
.feature-card,
.bomb-card,
.upgrade-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.feature-card:hover,
.bomb-card:hover,
.upgrade-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.feature-card h3,
.bomb-card h3,
.upgrade-card h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-sm);
}

.feature-card p,
.bomb-card p,
.upgrade-card p {
  color: var(--gray-600);
  font-size: var(--font-size-sm);
  line-height: 1.6;
}

.feature-icon {
  font-size: var(--font-size-3xl);
  display: block;
  margin-bottom: var(--space-md);
}

.bomb-card {
  border-left: 4px solid var(--ld2-blue);
}

.upgrade-note {
  text-align: center;
  color: var(--gray-600);
  font-size: var(--font-size-sm);
  margin-top: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- World Cards --- */
.world-card {
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  color: #fff;
  background: var(--gray-800);
  text-align: center;
  transition: transform var(--transition-base);
}

.world-card:hover { transform: translateY(-3px); }
.world-card h3 { color: #fff; margin-bottom: var(--space-sm); }
.world-card p { font-size: var(--font-size-sm); opacity: 0.85; }

.world-canyon { background: linear-gradient(135deg, #a0522d, #8b3a3a); }
.world-egypt { background: linear-gradient(135deg, #c9a84c, #8b6914); }

/* --- Screenshot Gallery --- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-md);
}

.screenshot-placeholder {
  aspect-ratio: 9 / 16;
  background: linear-gradient(145deg, var(--gray-300), var(--gray-200));
  border-radius: var(--radius-md);
  min-height: 200px;
}

body.page-ld2 .screenshot-placeholder {
  background: linear-gradient(145deg, var(--ld2-navy), var(--ld2-blue));
}

.screenshot-img {
  width: 100%;
  border-radius: var(--radius-md);
  display: block;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.screenshot-img:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}

/* --- CTA Section --- */
.cta-content {
  text-align: center;
  padding: var(--space-2xl) 0;
}

.cta-content h2 { margin-bottom: var(--space-sm); }
.cta-content p { color: var(--gray-600); margin-bottom: var(--space-xl); font-size: var(--font-size-lg); }

.section.cta {
  background: linear-gradient(135deg, var(--gray-900), var(--brand-dark));
  color: #fff;
}

.section.cta h2 { color: #fff; }
.section.cta p { color: var(--gray-400); }

/* --- Related Card --- */
.related-card {
  display: block;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-decoration: none;
  color: #fff;
  transition: transform var(--transition-base), border-color var(--transition-base);
}

.related-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.related-card h3 { margin-bottom: var(--space-sm); color: #fff; }
.related-card p { color: var(--gray-400); font-size: var(--font-size-sm); margin-bottom: var(--space-md); }

.related-badge {
  display: inline-block;
  background: rgba(74, 124, 63, 0.12);
  color: var(--ld1-green);
  font-size: var(--font-size-xs);
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- FAQ List --- */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

/* --- Footer Variants --- */
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: var(--font-size-sm);
}

.footer-inner .footer-links {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
}

/* --- Nav Dropdown --- */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  background: none;
  border: none;
  color: var(--gray-300);
  font-size: var(--font-size-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}

.nav-dropdown-toggle:hover { color: var(--brand-accent); }

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--brand-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: var(--space-sm) 0;
  min-width: 220px;
  list-style: none;
  box-shadow: var(--shadow-lg);
  z-index: 110;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-menu.open { display: block; }

.nav-dropdown-menu a {
  display: block;
  padding: var(--space-sm) var(--space-lg);
  white-space: nowrap;
}

/* --- Blog Article Styles --- */
body.page-blog article h2 {
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-lg);
}

body.page-blog article h3 {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

body.page-blog article p {
  margin-bottom: var(--space-md);
  line-height: 1.8;
  color: var(--gray-700);
}

body.page-blog article ul,
body.page-blog article ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-xl);
  color: var(--gray-700);
  line-height: 1.8;
}

body.page-blog article table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-xl) 0;
  font-size: var(--font-size-sm);
}

body.page-blog article th,
body.page-blog article td {
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--gray-200);
  text-align: left;
}

body.page-blog article th {
  background: var(--gray-100);
  font-weight: 600;
}

body.page-blog .breadcrumbs {
  font-size: var(--font-size-sm);
  color: var(--gray-500);
}

body.page-blog .breadcrumbs a { color: var(--gray-400); }
body.page-blog .breadcrumbs a:hover { color: var(--brand-accent); }

/* --- Responsive Adjustments --- */
@media (max-width: 767px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-5 { grid-template-columns: 1fr 1fr; }

  .hero-image-placeholder { margin-top: var(--space-xl); }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .grid-5 { grid-template-columns: 1fr; }
}

/* === HOME SHOWCASE ============================================ */

/* Hero overrides for home */
body.page-home .hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: var(--space-4xl) 0;
}

.hero-eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--brand-accent);
  margin-bottom: var(--space-lg);
}

body.page-home .hero h1 {
  font-size: clamp(2.8rem, 7vw, 6rem);
  line-height: 1.05;
  margin-bottom: var(--space-xl);
  letter-spacing: -1px;
}

.hero-stats {
  display: flex;
  gap: var(--space-3xl);
  margin-top: var(--space-3xl);
  flex-wrap: wrap;
  justify-content: center;
}

.hero-stat__num {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.hero-stat__label {
  display: block;
  font-size: var(--font-size-xs);
  color: var(--gray-500);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
}

/* Showcase section wrapper */
.games-showcase {
  background: var(--brand-dark);
}

/* Each game row */
.game-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.game-row__inner {
  display: flex;
  align-items: center;
  gap: clamp(40px, 8vw, 100px);
  padding: clamp(60px, 10vw, 120px) 0;
}

.game-row--reverse .game-row__inner {
  flex-direction: row-reverse;
}

.game-row__visual {
  flex: 1.3;
  min-width: 0;
}

.game-row__visual--phone {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  padding: 0 var(--space-2xl);
}

.game-row__text {
  flex: 1;
  min-width: 0;
}

/* Landscape device frame */
.screen-mockup {
  border-radius: 14px;
  background: #050505;
  border: 5px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 40px 80px rgba(0, 0, 0, 0.7),
    0 8px 20px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  transform: perspective(1400px) rotateY(8deg) rotateX(3deg);
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.6s ease;
  will-change: transform;
}

.game-row--reverse .screen-mockup {
  transform: perspective(1400px) rotateY(-8deg) rotateX(3deg);
}

.screen-mockup:hover,
.game-row--reverse .screen-mockup:hover {
  transform: perspective(1400px) rotateY(0deg) rotateX(0deg);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 60px 120px rgba(0, 0, 0, 0.7);
}

.screen-mockup img {
  width: 100%;
  display: block;
}

/* Phone mockup */
.phone-mockup {
  width: 240px;
  border-radius: 40px;
  background: #050505;
  border: 7px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 50px 100px rgba(0, 0, 0, 0.8),
    0 8px 20px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  position: relative;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.phone-mockup:hover {
  transform: scale(1.03) translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 70px 120px rgba(0, 0, 0, 0.8);
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 26px;
  background: #050505;
  border-radius: 0 0 18px 18px;
  z-index: 3;
  pointer-events: none;
}

.phone-mockup img {
  width: 100%;
  display: block;
}

/* Text inside showcase (dark bg) */
.game-row__badge {
  display: inline-block;
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--brand-accent);
  margin-bottom: var(--space-md);
}

.game-row__title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
  margin-bottom: var(--space-sm);
  line-height: 1.1;
}

.game-row__tagline {
  font-size: var(--font-size-xl);
  color: var(--gray-400);
  margin-bottom: var(--space-lg);
  font-weight: 400;
}

.game-row__desc {
  font-size: var(--font-size-base);
  color: var(--gray-500);
  line-height: 1.75;
  margin-bottom: var(--space-2xl);
  max-width: 440px;
}

/* Scroll-in animations */
.game-row__visual {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.game-row--reverse .game-row__visual {
  transform: translateX(50px);
}

.game-row__text {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.85s 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.85s 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.game-row--reverse .game-row__text {
  transform: translateX(-50px);
}

.game-row.is-visible .game-row__visual,
.game-row.is-visible .game-row__text {
  opacity: 1;
  transform: translateX(0);
}

/* About section on dark */
.about-showcase {
  background: var(--brand-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: var(--space-4xl) 0;
  text-align: center;
}

.about-showcase h2 { color: #fff; }
.about-showcase p { color: var(--gray-500); max-width: 600px; margin: var(--space-md) auto 0; line-height: 1.8; }

/* Responsive showcase */
@media (max-width: 900px) {
  .game-row__inner,
  .game-row--reverse .game-row__inner {
    flex-direction: column;
    padding: 60px 0;
    gap: var(--space-2xl);
  }

  .game-row__visual {
    transform: translateY(30px) !important;
    width: 100%;
  }

  .game-row__visual--phone {
    padding: 0;
  }

  .game-row__text {
    transform: translateY(30px) !important;
    text-align: center;
  }

  .game-row__desc { max-width: 100%; }

  .screen-mockup,
  .game-row--reverse .screen-mockup {
    transform: none;
  }

  .screen-mockup:hover,
  .game-row--reverse .screen-mockup:hover {
    transform: none;
  }

  .phone-mockup { width: 200px; }

  .hero-stats { gap: var(--space-2xl); }
}

/* --- Lightbox --- */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  padding: var(--space-lg);
}

.lightbox-overlay.open {
  display: flex;
}

.lightbox-overlay img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  cursor: default;
}

.lightbox-close {
  position: fixed;
  top: var(--space-lg);
  right: var(--space-lg);
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
  line-height: 1;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.screenshot-img,
.screenshot-thumb {
  cursor: zoom-in;
}

/* --- Cards & items inside dark sections --- */
.section--dark .feature-grid__item,
.section--dark .feature-card,
.section--dark .bomb-card,
.section--dark .upgrade-card,
.section--dark .mode-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: none;
}

.section--dark .feature-grid__item:hover,
.section--dark .feature-card:hover,
.section--dark .bomb-card:hover,
.section--dark .upgrade-card:hover,
.section--dark .mode-card:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  transform: translateY(-2px);
}

.section--dark .feature-grid__title,
.section--dark .feature-card h3,
.section--dark .bomb-card h3,
.section--dark .upgrade-card h3,
.section--dark .mode-card h3 { color: #fff; }

.section--dark .feature-grid__desc,
.section--dark .feature-card p,
.section--dark .bomb-card p,
.section--dark .upgrade-card p,
.section--dark .mode-card p { color: var(--gray-500); }

.section--dark .section-sub { color: var(--gray-400); }

/* step-card on dark */
.section--dark .step-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.section--dark .step-card h3 { color: #fff; }
.section--dark .step-card p { color: var(--gray-400); }

/* howto-tips on dark */
.section--dark .howto-tips {
  background: rgba(255, 255, 255, 0.04) !important;
  box-shadow: none !important;
}
.section--dark .howto-tips h3 { color: #fff; }
.section--dark .howto-tips .tips-list li { color: var(--gray-400); }

/* review cards on dark */
.section--dark .review-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.section--dark .review-card p,
.section--dark .review-card cite { color: var(--gray-400); }

/* world cards on dark — just reinforce */
.section--dark .world-card { border: 1px solid rgba(255, 255, 255, 0.12); }

/* FAQ on dark */
.section--dark.faq-section h2 { color: #fff; }
.section--dark .faq-item { border-bottom-color: rgba(255, 255, 255, 0.08); }
.section--dark .faq-item summary { color: var(--gray-300); }
.section--dark .faq-item__answer,
.section--dark .faq-item p { color: var(--gray-500); }

/* Screenshots on dark */
.section--dark .screenshot-img,
.section--dark .screenshot-thumb {
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* generic text on dark */
.section--dark p { color: var(--gray-400); }
.section--dark strong { color: var(--gray-200); }
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: #fff; }

/* Prose blocks (demolition city section, etc.) */
.section--dark .prose,
.section--dark [style*="color: var(--gray-700)"] { color: var(--gray-400) !important; }

/* VS comparison table on dark */
.section--dark .vs-table th,
.section--dark .vs-table td { border-color: rgba(255,255,255,0.08); }
.section--dark .vs-table th { background: rgba(255,255,255,0.06); color: #fff; }
.section--dark .vs-table td { color: var(--gray-300); }
.section--dark .vs-table td:first-child { color: var(--gray-200); font-weight: 500; }

/* Semantle advantage cards on dark */
.section--dark [style*="background:#fff"] { background: rgba(255,255,255,0.04) !important; }
.section--dark [style*="box-shadow:var(--shadow-sm)"] { box-shadow: none !important; }

/* ============================================
   CINEMATIC HERO — full-bleed, per-game identity
   ============================================ */
.hero-cine {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  background: #000;
}

/* Background gameplay still — Ken Burns slow zoom */
.hero-cine__bg {
  position: absolute;
  inset: -4%;
  background-size: cover;
  background-position: center;
  z-index: -3;
  animation: heroKenBurns 26s ease-in-out infinite alternate;
  transform-origin: center;
}

@keyframes heroKenBurns {
  from { transform: scale(1.04) translate(0, 0); }
  to   { transform: scale(1.16) translate(-1.5%, -2%); }
}

/* Scrim — readability + identity tint, set per page */
.hero-cine__scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(0deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.45) 42%, rgba(0,0,0,0.15) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.6) 0%, transparent 60%);
}

/* Vignette */
.hero-cine::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  box-shadow: inset 0 0 220px 40px rgba(0,0,0,0.7);
}

.hero-cine__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-4xl);
  max-width: 720px;
}

.hero-cine__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--font-size-xs);
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--space-md);
}
.hero-cine__eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--cine-accent, #fff);
}

.hero-cine__title {
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -1.5px;
  color: #fff;
  margin: 0 0 var(--space-md);
  text-shadow: 0 4px 40px rgba(0,0,0,0.6);
  animation: heroRise 0.7s cubic-bezier(0.16,1,0.3,1) both;
}

.hero-cine__tag {
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-weight: 500;
  color: rgba(255,255,255,0.92);
  margin: 0 0 var(--space-lg);
  max-width: 30ch;
  animation: heroRise 0.7s 0.08s cubic-bezier(0.16,1,0.3,1) both;
}

.hero-cine__meta {
  display: flex;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
  animation: heroRise 0.7s 0.16s cubic-bezier(0.16,1,0.3,1) both;
}
.hero-cine__meta-item { display: flex; flex-direction: column; }
.hero-cine__meta-num {
  font-size: var(--font-size-xl);
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.hero-cine__meta-label {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--cine-accent, rgba(255,255,255,0.6));
  margin-top: 5px;
  font-weight: 600;
}

.hero-cine__actions {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  animation: heroRise 0.7s 0.24s cubic-bezier(0.16,1,0.3,1) both;
}

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

/* Trailer play button */
.hero-trailer-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.3);
  color: #fff;
  font-family: inherit;
  font-size: var(--font-size-sm);
  font-weight: 600;
  padding: 0.7rem 1.3rem 0.7rem 0.7rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}
.hero-trailer-btn:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-2px);
}
.hero-trailer-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--cine-accent, #fff);
  color: #000;
  flex-shrink: 0;
  position: relative;
}
.hero-trailer-btn__icon::before {
  content: '';
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent currentColor;
  margin-left: 3px;
}
.hero-trailer-btn__icon::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--cine-accent, #fff);
  opacity: 0.5;
  animation: pulseRing 2.4s ease-out infinite;
}
@keyframes pulseRing {
  0% { transform: scale(0.85); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* Scroll hint */
.hero-cine__scroll {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 13px;
  background: transparent;
  cursor: pointer;
}
.hero-cine__scroll::before {
  content: '';
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: #fff;
  animation: scrollDot 1.6s ease-in-out infinite;
}
@keyframes scrollDot {
  0%, 100% { opacity: 0; transform: translate(-50%, 0); }
  40% { opacity: 1; }
  80% { opacity: 0; transform: translate(-50%, 14px); }
}

/* ---- Floating sticker layer (CSS-drawn, swappable for PNGs) ---- */
.hero-stickers {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.sticker {
  position: absolute;
  will-change: transform;
}
/* Real PNG cutouts drop in here: <img class="sticker sticker--img" src="..."> */
.sticker--img { display: block; filter: drop-shadow(0 12px 24px rgba(0,0,0,0.5)); }

@keyframes floatDrift {
  0%   { transform: translateY(0) rotate(0deg); }
  50%  { transform: translateY(-26px) rotate(8deg); }
  100% { transform: translateY(0) rotate(0deg); }
}
@keyframes debrisFall {
  0%   { transform: translateY(-12vh) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(108vh) rotate(540deg); opacity: 0; }
}
@keyframes emberRise {
  0%   { transform: translateY(0) scale(1); opacity: 0; }
  15%  { opacity: 1; }
  100% { transform: translateY(-70vh) scale(0.4); opacity: 0; }
}
@keyframes chipRise {
  0%   { transform: translateY(20px); opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { transform: translateY(-60vh); opacity: 0; }
}
@keyframes sparkFlash {
  0%, 100% { opacity: 0; transform: scale(0.6); }
  50% { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-cine__bg,
  .sticker,
  .hero-cine__scroll::before,
  .hero-trailer-btn__icon::after { animation: none !important; }
}

/* ---- Debris / ember primitives ---- */
.deb {
  border-radius: 3px;
  animation: debrisFall linear infinite;
}
.ember {
  border-radius: 50%;
  filter: blur(0.5px);
  animation: emberRise ease-in infinite;
}

/* ====== LD1 identity — earthy demolition ====== */
.hero-cine--ld1 { --cine-accent: var(--ld1-fire); }
.hero-cine--ld1 .hero-cine__scrim {
  background:
    linear-gradient(0deg, rgba(20,12,6,0.94) 0%, rgba(20,12,6,0.4) 45%, rgba(40,24,10,0.1) 100%),
    linear-gradient(90deg, rgba(15,9,4,0.7) 0%, transparent 62%);
}
.hero-cine--ld1 .deb-1 { left: 12%; width: 22px; height: 22px; background: #8a5a2b; animation-duration: 9s; animation-delay: -1s; }
.hero-cine--ld1 .deb-2 { left: 34%; width: 14px; height: 14px; background: #6b4226; animation-duration: 11s; animation-delay: -4s; }
.hero-cine--ld1 .deb-3 { left: 68%; width: 28px; height: 18px; background: #9c7248; animation-duration: 8s; animation-delay: -2.5s; }
.hero-cine--ld1 .deb-4 { left: 82%; width: 16px; height: 16px; background: #7a5230; animation-duration: 12s; animation-delay: -6s; }
.hero-cine--ld1 .deb-5 { left: 54%; width: 12px; height: 12px; background: #b08050; animation-duration: 10s; animation-delay: -3s; }
.hero-cine--ld1 .ember-1 { left: 24%; bottom: 8%; width: 7px; height: 7px; background: var(--ld1-fire); animation-duration: 6s; animation-delay: -1s; }
.hero-cine--ld1 .ember-2 { left: 60%; bottom: 4%; width: 5px; height: 5px; background: var(--ld1-yellow); animation-duration: 7.5s; animation-delay: -3s; }
.hero-cine--ld1 .ember-3 { left: 78%; bottom: 10%; width: 6px; height: 6px; background: var(--ld1-fire); animation-duration: 6.8s; animation-delay: -4.5s; }

/* ====== LD2 identity — TNT blast, electric ====== */
.hero-cine--ld2 { --cine-accent: var(--ld2-cyan); }
.hero-cine--ld2 .hero-cine__scrim {
  background:
    linear-gradient(0deg, rgba(8,16,26,0.95) 0%, rgba(11,24,40,0.45) 45%, rgba(0,40,60,0.12) 100%),
    linear-gradient(90deg, rgba(6,12,22,0.72) 0%, transparent 62%);
}
.hero-cine--ld2 .deb-1 { left: 14%; width: 24px; height: 24px; background: #a0522d; border-radius: 4px; animation-duration: 8.5s; animation-delay: -1s; }
.hero-cine--ld2 .deb-2 { left: 40%; width: 16px; height: 16px; background: #c0623a; animation-duration: 10.5s; animation-delay: -3.5s; }
.hero-cine--ld2 .deb-3 { left: 72%; width: 20px; height: 14px; background: #8a4525; animation-duration: 9s; animation-delay: -5s; }
.hero-cine--ld2 .ember-1 { left: 30%; bottom: 6%; width: 6px; height: 6px; background: var(--ld2-cyan); box-shadow: 0 0 8px var(--ld2-cyan); animation-duration: 6.5s; animation-delay: -1s; }
.hero-cine--ld2 .ember-2 { left: 64%; bottom: 4%; width: 5px; height: 5px; background: var(--ld2-gold); box-shadow: 0 0 8px var(--ld2-gold); animation-duration: 7.8s; animation-delay: -3s; }
.hero-cine--ld2 .spark {
  width: 3px; height: 26px; border-radius: 2px;
  background: linear-gradient(var(--ld2-cyan), transparent);
  box-shadow: 0 0 12px var(--ld2-cyan);
  animation: sparkFlash ease-in-out infinite;
}
.hero-cine--ld2 .spark-1 { left: 22%; top: 30%; animation-duration: 3.2s; animation-delay: -0.5s; }
.hero-cine--ld2 .spark-2 { left: 80%; top: 24%; animation-duration: 4s; animation-delay: -2s; }
.hero-cine--ld2 .spark-3 { left: 56%; top: 18%; animation-duration: 3.6s; animation-delay: -1.2s; }

/* ====== QuelMot identity — semantic temperature chips ====== */
.hero-cine--qm { --cine-accent: var(--qm-accent); }
.hero-cine--qm .hero-cine__bg { display: none; }
.hero-cine--qm {
  background:
    radial-gradient(ellipse 80% 60% at 30% 30%, rgba(79,195,247,0.14), transparent 60%),
    radial-gradient(ellipse 50% 50% at 85% 80%, rgba(255,68,68,0.1), transparent 60%),
    linear-gradient(160deg, #0d1722 0%, var(--qm-bg) 55%, #0a131c 100%);
}
.hero-cine--qm .hero-cine__scrim { display: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: #fff;
  background: var(--qm-surface);
  border: 1px solid rgba(255,255,255,0.08);
  animation: chipRise linear infinite;
  white-space: nowrap;
}
.chip__score {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-xs);
}
.chip-1 { left: 8%;  bottom: -10%; animation-duration: 13s; animation-delay: -2s; }
.chip-2 { left: 70%; bottom: -10%; animation-duration: 16s; animation-delay: -6s; }
.chip-3 { left: 40%; bottom: -10%; animation-duration: 14.5s; animation-delay: -10s; }
.chip-4 { left: 84%; bottom: -10%; animation-duration: 17s; animation-delay: -4s; }
.chip-5 { left: 22%; bottom: -10%; animation-duration: 15s; animation-delay: -12s; }
.chip--icy   { background: rgba(168,216,234,0.16); } .chip--icy .chip__score   { background: var(--qm-icy); color: #08121c; }
.chip--cold  { background: rgba(91,155,213,0.16); }  .chip--cold .chip__score  { background: var(--qm-cold); color: #fff; }
.chip--warm  { background: rgba(255,217,61,0.16); }  .chip--warm .chip__score  { background: var(--qm-warm); color: #3a2c00; }
.chip--hot   { background: rgba(255,140,66,0.16); }  .chip--hot .chip__score   { background: var(--qm-hot); color: #2c1300; }
.chip--burn  { background: rgba(255,68,68,0.18); }   .chip--burn .chip__score  { background: var(--qm-burning); color: #fff; }
.chip--found { background: rgba(255,215,0,0.2); }    .chip--found .chip__score { background: var(--qm-found); color: #2c2400; }

/* ====== Daily Minesweeper identity — drifting cells ====== */
.hero-cine--dm { --cine-accent: var(--dm-teal-light); }
.hero-cine--dm .hero-cine__bg { display: none; }
.hero-cine--dm {
  background:
    radial-gradient(ellipse 70% 55% at 50% 38%, rgba(30,153,128,0.16), transparent 62%),
    linear-gradient(160deg, var(--dm-surface) 0%, var(--dm-bg) 60%, #081512 100%);
}
.hero-cine--dm .hero-cine__scrim { display: none; }
.hero-cine--dm .hero-stickers::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30,153,128,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,153,128,0.06) 1px, transparent 1px);
  background-size: 38px 38px;
}
.cell {
  width: 38px; height: 38px;
  border-radius: 7px;
  background: var(--dm-surface);
  border: 1px solid rgba(30,153,128,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: var(--font-size-base);
  animation: floatDrift ease-in-out infinite;
}
.cell--1 { color: #4a90d9; } .cell--2 { color: #1e9980; } .cell--3 { color: #e07a5f; }
.cell--flag { color: var(--dm-flag); }
.cell-1 { left: 12%; top: 26%; animation-duration: 7s;  animation-delay: -1s; }
.cell-2 { left: 78%; top: 22%; animation-duration: 8.5s; animation-delay: -3s; }
.cell-3 { left: 84%; top: 60%; animation-duration: 7.8s; animation-delay: -2s; }
.cell-4 { left: 16%; top: 64%; animation-duration: 9s;  animation-delay: -5s; }
.cell-5 { left: 64%; top: 70%; animation-duration: 6.6s; animation-delay: -4s; }

/* ====== Studio home identity — cosmic blue ====== */
.hero-cine--studio { --cine-accent: #4f93d8; }
.hero-cine--studio .hero-cine__bg {
  filter: brightness(0.42) saturate(1.15) blur(2px);
}
.hero-cine--studio .hero-cine__scrim {
  background:
    linear-gradient(0deg, rgba(6,10,20,0.9) 0%, rgba(8,14,28,0.6) 50%, rgba(10,20,40,0.42) 100%),
    linear-gradient(90deg, rgba(5,9,18,0.86) 0%, rgba(5,9,18,0.32) 55%, transparent 100%);
}
.hero-cine--studio .star {
  border-radius: 50%;
  background: #fff;
  animation: sparkFlash ease-in-out infinite;
}
.hero-cine--studio .star-1 { left: 18%; top: 28%; width: 3px; height: 3px; animation-duration: 3.4s; animation-delay: -0.5s; }
.hero-cine--studio .star-2 { left: 72%; top: 22%; width: 2px; height: 2px; animation-duration: 4.2s; animation-delay: -2s; }
.hero-cine--studio .star-3 { left: 84%; top: 50%; width: 3px; height: 3px; animation-duration: 3.8s; animation-delay: -1.2s; }
.hero-cine--studio .star-4 { left: 40%; top: 18%; width: 2px; height: 2px; animation-duration: 4.6s; animation-delay: -3s; }
.hero-cine--studio .star-5 { left: 60%; top: 60%; width: 2.5px; height: 2.5px; animation-duration: 3.2s; animation-delay: -2.4s; }

/* Centered showcase variant (QuelMot / Daily Minesweeper) */
.hero-cine--centered { align-items: center; }
.hero-cine--centered .hero-cine__content {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}
.hero-cine--centered .hero-cine__eyebrow { justify-content: center; }
.hero-cine--centered .hero-cine__eyebrow::before { display: none; }
.hero-cine--centered .hero-cine__tag { margin-left: auto; margin-right: auto; }
.hero-cine--centered .hero-cine__meta,
.hero-cine--centered .hero-cine__actions { justify-content: center; }
.hero-cine__panel {
  margin-top: var(--space-2xl);
  animation: heroRise 0.7s 0.32s cubic-bezier(0.16,1,0.3,1) both;
}

/* ---- Trailer modal ---- */
.trailer-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.trailer-modal.open { display: flex; }
.trailer-modal__frame {
  position: relative;
  width: min(1000px, 100%);
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0,0,0,0.7);
  animation: heroRise 0.4s ease both;
}
.trailer-modal__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.trailer-modal__close {
  position: fixed;
  top: var(--space-lg);
  right: var(--space-lg);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.14);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.trailer-modal__close:hover { background: rgba(255,255,255,0.26); }

@media (max-width: 700px) {
  .hero-cine { min-height: 92vh; }
  .hero-cine__meta { gap: var(--space-lg); }
  .hero-cine__actions { gap: var(--space-md); }
  .cell { width: 30px; height: 30px; font-size: var(--font-size-sm); }
}

/* --- Print --- */
@media print {
  .nav, .footer, .cta-button, .play-store-badge { display: none; }
  body { color: #000; background: #fff; }
  .hero { background: none !important; color: #000; padding: var(--space-xl) 0; }
  .hero h1 { color: #000; }
}
