/* ═══════════════════════════════════════════════════════════════
   POWER PLANT GAMES — Main Stylesheet
   Dark theme with gold accents | Bilingual DE/EN
═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────
   1. VARIABLES
───────────────────────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg:          #080810;
  --bg-card:     #0f0f1a;
  --bg-elevated: #161624;
  --bg-nav:      rgba(8, 8, 16, 0.96);

  /* Gold */
  --gold:           #c8a84b;
  --gold-light:     #e8ca7c;
  --gold-dim:       rgba(200, 168, 75, 0.55);
  --gold-glow:      rgba(200, 168, 75, 0.20);
  --gold-border:    rgba(200, 168, 75, 0.18);
  --gold-border-hv: rgba(200, 168, 75, 0.65);

  /* Text */
  --text:         #e8e0cc;
  --text-muted:   #8a7a5a;
  --text-subtle:  #4a3e2a;

  /* Badges */
  --badge-dev:   #4a6a8a;
  --badge-soon:  #7a5a20;
  --badge-avail: #2a6a3a;

  /* Geometry */
  --radius:    4px;
  --radius-lg: 10px;
  --max-width: 1280px;

  /* Motion */
  --t: 0.3s ease;
  --t-slow: 0.6s ease;

  /* Shadows */
  --shadow:      0 4px 24px rgba(0, 0, 0, 0.55);
  --shadow-card: 0 6px 32px rgba(0, 0, 0, 0.7);
  --glow-gold:   0 0 28px rgba(200, 168, 75, 0.18);
}

/* ─────────────────────────────────────────────────────────────
   2. RESET & BASE
───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Raleway', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--gold); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--gold-light); }

ul, ol { list-style: none; }

h1, h2, h3, h4 {
  font-family: 'Cinzel', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: 0.03em;
}

p { max-width: 70ch; }

/* ─────────────────────────────────────────────────────────────
   3. LANGUAGE TOGGLE LOGIC
───────────────────────────────────────────────────────── */
/* Default: show German; JavaScript sets lang-de or lang-en on <body> */
.lang-en            { display: none; }
.lang-de            { display: inline; }

body.lang-en .lang-de { display: none; }
body.lang-en .lang-en { display: inline; }
body.lang-de .lang-de { display: inline; }
body.lang-de .lang-en { display: none; }

/* Block-level language elements */
div.lang-de, div.lang-en,
p.lang-de,   p.lang-en,
section.lang-de, section.lang-en {
  display: block;
}
body.lang-en div.lang-de,
body.lang-en p.lang-de { display: none; }
body.lang-en div.lang-en,
body.lang-en p.lang-en  { display: block; }
body.lang-de div.lang-en,
body.lang-de p.lang-en  { display: none; }
body.lang-de div.lang-de,
body.lang-de p.lang-de  { display: block; }

/* ─────────────────────────────────────────────────────────────
   4. LAYOUT UTILITIES
───────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 3rem);
}

.section {
  padding-block: clamp(4rem, 8vw, 7rem);
}

/* ─────────────────────────────────────────────────────────────
   5. BUTTONS
───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.65em 1.6em;
  border-radius: var(--radius);
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background var(--t), color var(--t), border-color var(--t), box-shadow var(--t), transform var(--t);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-gold {
  background: var(--gold);
  color: #0a0810;
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: #0a0810;
  box-shadow: 0 4px 16px rgba(200,168,75,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold-dim);
}
.btn-outline:hover {
  background: var(--gold-glow);
  border-color: var(--gold);
  color: var(--gold-light);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: rgba(255,255,255,0.08);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.04);
}

.btn-lg { padding: 0.85em 2.2em; font-size: 0.95rem; }
.btn-sm { padding: 0.4em 1.1em; font-size: 0.8rem; }
.btn-full { width: 100%; justify-content: center; }

/* ─────────────────────────────────────────────────────────────
   6. HEADER
───────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background var(--t), box-shadow var(--t);
  height: 72px;
  display: flex;
  align-items: center;
}

.site-header.scrolled {
  background: var(--bg-nav);
  box-shadow: 0 1px 0 var(--gold-border), 0 4px 24px rgba(0,0,0,0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
}

/* Logo */
.header-logo a,
.logo-text {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}
.logo-text:hover { color: var(--gold-light); }

.header-logo .custom-logo-link img {
  height: 48px;
  width: auto;
  max-width: 220px;
}

/* Nav */
.header-nav {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  font-family: 'Cinzel', serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232, 224, 204, 0.8);
  text-decoration: none;
  position: relative;
  padding-bottom: 3px;
  transition: color var(--t);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--t);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--gold-light);
}
.nav-link:hover::after { width: 100%; }

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ─────────────────────────────────────────────────────────────
   7. LANGUAGE TOGGLE BUTTON
───────────────────────────────────────────────────── */
.lang-toggle {
  background: none;
  border: 1px solid var(--gold-border);
  border-radius: 99px;
  padding: 0.3em 0.85em;
  cursor: pointer;
  transition: border-color var(--t), background var(--t);
  display: flex;
  align-items: center;
  gap: 0.2em;
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.lang-toggle .lt-de,
.lang-toggle .lt-en {
  color: var(--text-muted);
  transition: color var(--t);
}

.lang-toggle .lt-sep {
  color: var(--text-subtle);
}

/* Active language highlighted in gold */
body.lang-de .lang-toggle .lt-de { color: var(--gold); }
body.lang-en .lang-toggle .lt-en { color: var(--gold); }

.lang-toggle:hover {
  border-color: var(--gold-border-hv);
  background: var(--gold-glow);
}
.lang-toggle:hover .lt-de,
.lang-toggle:hover .lt-en {
  color: var(--text);
}
body.lang-de .lang-toggle:hover .lt-de,
body.lang-en .lang-toggle:hover .lt-en { color: var(--gold-light); }

/* ─────────────────────────────────────────────────────────────
   8. MOBILE NAV
───────────────────────────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 32px;
  height: 32px;
}

.nav-toggle-bar {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t), width var(--t);
  transform-origin: left;
}

.nav-toggle.active .nav-toggle-bar:nth-child(1) { transform: rotate(45deg) translate(1px,-1px); }
.nav-toggle.active .nav-toggle-bar:nth-child(2) { opacity: 0; width: 0; }
.nav-toggle.active .nav-toggle-bar:nth-child(3) { transform: rotate(-45deg) translate(1px,1px); }

.mobile-nav {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: var(--bg-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gold-border);
  padding: 1.5rem 1.5rem 2rem;
  z-index: 99;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform var(--t), opacity var(--t);
}

.mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav-link {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  letter-spacing: 0.1em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text);
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-decoration: none;
  transition: color var(--t);
}

.mobile-nav-link:hover { color: var(--gold-light); }

.mobile-lang-toggle {
  margin-top: 1.5rem;
}

/* ─────────────────────────────────────────────────────────────
   9. HERO
───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
}

.hero.has-bg::before {
  content: '';
  position: absolute;
  inset: -5%;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
  filter: brightness(0.55) saturate(0.9);
  transform: scale(1.08);
  transition: transform 8s ease;
  will-change: transform;
}

.hero.has-bg.animate-section::before {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8,8,16,0.25)  0%,
    rgba(8,8,16,0.45) 45%,
    rgba(8,8,16,0.85) 100%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-block: 8rem 4rem;
  padding-inline: 1.5rem;
}

.hero-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--text);
  text-shadow: 0 2px 40px rgba(0,0,0,0.8);
  line-height: 1.05;
  margin-bottom: 0;
}

.hero-title-ornament {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 1.5rem auto;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  color: rgba(232,224,204,0.75);
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 0.5rem;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold-dim);
  animation: bounce 2s ease infinite;
}

.hero-scroll-hint svg {
  width: 24px;
  height: 24px;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ─────────────────────────────────────────────────────────────
   10. SECTION HEADERS
───────────────────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--text);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  padding-bottom: 1rem;
  margin-bottom: 0.75rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 300;
  max-width: 55ch;
  margin-inline: auto;
  line-height: 1.6;
}

.section-cta {
  text-align: center;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.section-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
  border: 1px dashed var(--gold-border);
  border-radius: var(--radius-lg);
}

/* ─────────────────────────────────────────────────────────────
   11. ORNAMENT DIVIDER
───────────────────────────────────────────────────── */
.ornament-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 1rem;
  color: var(--gold);
}

.ornament-divider svg {
  width: 200px;
  height: 24px;
}

/* ─────────────────────────────────────────────────────────────
   12. CARDS — BASE
───────────────────────────────────────────────────── */
.cards-grid {
  display: grid;
  gap: 2rem;
}

.playmats-grid  { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.boardgames-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}

.card:hover {
  border-color: var(--gold-border-hv);
  box-shadow: var(--shadow-card), var(--glow-gold);
  transform: translateY(-4px);
}

/* Card image */
.card-image-wrap {
  display: block;
  overflow: hidden;
  position: relative;
}

.card-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-elevated);
}

.card-image--square {
  aspect-ratio: 1;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}

.card:hover .card-image img {
  transform: scale(1.04);
}

.card-image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-subtle);
}

.card-image--placeholder svg { width: 60px; height: auto; }

.card-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,8,16,0.35) 0%, transparent 50%);
  pointer-events: none;
  transition: opacity var(--t);
}

.card:hover .card-image-overlay { opacity: 0.6; }

/* Card badge */
.card-badge {
  position: absolute;
  top: 0.75rem; right: 0.75rem;
  padding: 0.25em 0.7em;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--badge-dev);
  z-index: 2;
}
.badge--dev   { background: var(--badge-dev); }
.badge--soon  { background: var(--badge-soon); }
.badge--available { background: var(--badge-avail); }

/* Card body */
.card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.75rem;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.card-title a {
  color: var(--text);
  text-decoration: none;
  transition: color var(--t);
}
.card-title a:hover { color: var(--gold-light); }

.card-tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.5;
  max-width: none;
  margin: 0;
}

/* Specs */
.card-specs {
  display: grid;
  gap: 0.35rem;
  font-size: 0.8rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 0.75rem;
  margin-top: 0;
}

.spec-row {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
}

.spec-row dt {
  color: var(--text-muted);
  font-weight: 500;
  min-width: 5rem;
}

.spec-row dd { color: var(--text); }

/* Card meta (board game stats) */
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.3em;
}

.meta-item svg { flex-shrink: 0; }

/* Card actions */
.card-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 0.5rem;
}

/* ─────────────────────────────────────────────────────────────
   13. SINGLE PAGE
───────────────────────────────────────────────────── */
.single-hero {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: flex-end;
  background: var(--bg-elevated);
  overflow: hidden;
}

.single-hero.has-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
  filter: brightness(0.45) saturate(0.8);
}

.single-hero-content {
  position: relative;
  z-index: 2;
  padding-block: 7rem 3rem;
}

.breadcrumb {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--gold); }

.single-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: 0.06em;
}

.single-tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 300;
  margin-top: 0.75rem;
  max-width: none;
}

/* Single content layout */
.single-content {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
  padding-block: 3rem 5rem;
}

.single-body { min-width: 0; }

.single-description {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(232,224,204,0.9);
  margin-bottom: 2.5rem;
}

/* Content wysiwyg styles */
.content p    { margin-bottom: 1em; }
.content ul   { list-style: disc; padding-left: 1.5em; margin-bottom: 1em; }
.content ol   { list-style: decimal; padding-left: 1.5em; margin-bottom: 1em; }
.content strong { color: var(--gold-light); }
.content a    { color: var(--gold); border-bottom: 1px solid var(--gold-border); }
.content a:hover { color: var(--gold-light); border-color: var(--gold-dim); }

/* Specs section */
.single-specs, .single-gallery { margin-bottom: 3rem; }

.specs-title, .gallery-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.spec-item {
  background: var(--bg-elevated);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
}

.spec-item dt {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 0.25rem;
}

.spec-item dd {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.gallery-item {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/9;
  border: 1px solid var(--gold-border);
  transition: border-color var(--t);
}

.gallery-item:hover { border-color: var(--gold-dim); }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}

.gallery-item:hover img { transform: scale(1.04); }

/* Sidebar */
.single-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.partner-box {
  background: var(--bg-elevated);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 0.25rem;
}

.partner-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  max-width: none;
}

.partner-name {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
  max-width: none;
}

/* ─────────────────────────────────────────────────────────────
   14. ARCHIVE PAGES
───────────────────────────────────────────────────── */
.archive-hero {
  position: relative;
  min-height: 35vh;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(135deg, #0f0f1e 0%, #141422 100%);
  border-bottom: 1px solid var(--gold-border);
  overflow: hidden;
}

.archive-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center top, rgba(200,168,75,0.06) 0%, transparent 70%);
}

.archive-hero-content {
  position: relative;
  z-index: 2;
  padding-block: 5rem 2.5rem;
}

.archive-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.archive-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 300;
  margin-top: 0.5rem;
  max-width: none;
}

.archive-content { padding-block: 3rem 5rem; }

/* ─────────────────────────────────────────────────────────────
   15. PAGINATION
───────────────────────────────────────────────────── */
.pagination {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
}

.pagination .nav-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding-inline: 0.5rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
  transition: all var(--t);
}

.pagination .page-numbers:hover { color: var(--text); border-color: var(--gold-dim); }
.pagination .page-numbers.current { color: var(--gold); border-color: var(--gold-dim); background: var(--gold-glow); }

/* ─────────────────────────────────────────────────────────────
   16. FOOTER
───────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--gold-border);
  background: var(--bg);
  padding-block: 3.5rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-logo-text {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--text-subtle);
  max-width: none;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.footer-link {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--t);
}

.footer-link:hover { color: var(--gold-light); }

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-subtle);
  max-width: none;
}

/* ─────────────────────────────────────────────────────────────
   17. PAGE CONTENT
───────────────────────────────────────────────────── */
.page-content {
  padding-block: 8rem 5rem;
}

.page-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gold-border);
}

.page-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: 0.06em;
}

/* ─────────────────────────────────────────────────────────────
   18. ANIMATIONS
───────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.animate-fade-up {
  opacity: 0;
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--delay, 0s);
}

/* Intersection observer targets */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  transition-delay: var(--card-delay, 0s);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero entrance */
.animate-section .hero-content { pointer-events: auto; }

/* ─────────────────────────────────────────────────────────────
   19. RESPONSIVE
───────────────────────────────────────────────────── */

/* Tablet ≤ 1024px */
@media (max-width: 1024px) {
  .single-content {
    grid-template-columns: 1fr;
  }
  .single-sidebar {
    position: static;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-brand, .footer-nav, .footer-bottom {
    align-items: center;
  }
}

/* Mobile ≤ 768px */
@media (max-width: 768px) {
  .header-nav { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav { display: block; }

  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-ctas .btn { width: 100%; max-width: 280px; justify-content: center; }

  .playmats-grid  { grid-template-columns: 1fr; }
  .boardgames-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }

  .specs-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  .section { padding-block: 3rem 4rem; }
}

/* Small mobile ≤ 480px */
@media (max-width: 480px) {
  .boardgames-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .card-body { padding: 1rem; }
  .archive-hero { min-height: 30vh; }
}

/* ─────────────────────────────────────────────────────────────
   20. SCROLLBAR
───────────────────────────────────────────────────── */
::-webkit-scrollbar       { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(200,168,75,0.2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(200,168,75,0.4); }

/* ─────────────────────────────────────────────────────────────
   21. FOCUS STYLES (Accessibility)
───────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ─────────────────────────────────────────────────────────────
   22. PRINT
───────────────────────────────────────────────────── */
@media print {
  .site-header, .hero-scroll-hint, .lang-toggle, .nav-toggle { display: none; }
  body { background: white; color: black; }
}
