/* ══════════════════════════════════════════════════════════════
   ARCADE — A Retro Gaming / 8-bit Theme
   ITSWEBER CMS v3.4.0
   Pixelated. Nostalgic. Fun.
   ══════════════════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  /* Core Palette – 8-bit inspired */
  --bg:           #1a1a2e;
  --bg-deep:      #0f0f1a;
  --bg-raised:    #16213e;
  --surface:      #16213e;
  --surface-2:    #1c2a4a;
  --surface-3:    #0a0a18;
  --border:       #e4002b;
  --border-alt:   #0074d9;
  --border-subtle: #2a2a4e;
  --text:         #f0f0f0;
  --text-muted:   #a8a8c8;
  --text-dim:     #555577;
  --text-bright:  #ffffff;

  /* Brand Colors */
  --red:          #e4002b;
  --red-dark:     #a30020;
  --blue:         #0074d9;
  --blue-light:   #4da6ff;
  --gold:         #ffd700;
  --gold-dim:     #b8960a;
  --green:        #2ecc40;
  --green-dark:   #1a9c2e;
  --magenta:      #ff47ab;
  --cyan:         #00e5ff;
  --orange:       #ff851b;
  --white:        #ffffff;

  /* CMS Compatibility Mappings */
  --color-primary: #e4002b;
  --color-accent:  #ffd700;
  --color-bg:      #1a1a2e;
  --color-text:    #f0f0f0;
  --color-surface: #16213e;
  --color-surface-alt: #1c2a4a;
  --color-border:  #2a2a4e;
  --color-text-muted: #8888aa;
  --color-heading: #f0f0f0;
  --color-link:    #ffd700;
  --color-link-hover: #e4002b;
  --color-success: #2ecc40;
  --color-warning: #ffd700;
  --color-error:   #e4002b;
  --accent:        var(--gold);
  --accent-hover:  var(--gold-dim);

  /* Typography */
  --font-pixel:   Consolas, 'Courier New', 'Liberation Mono', monospace;
  --font-body:    -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono:    var(--font-pixel);
  --font-heading: var(--font-pixel);
  --font-display: var(--font-pixel);

  /* Sizing */
  --content-width: 1200px;
  --narrow-width:  900px;
  --wide-width:    1200px;
  --full-width:    1400px;
  --header-height: 64px;

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

  /* Radius – pixel art = sharp */
  --radius-sm: 0;
  --radius-md: 0;
  --radius-lg: 0;
  --radius-xl: 0;

  /* Shadows */
  --shadow-sm:   2px 2px 0 0 rgba(0,0,0,0.3);
  --shadow-md:   4px 4px 0 0 rgba(0,0,0,0.4);
  --shadow-lg:   6px 6px 0 0 rgba(0,0,0,0.5);
  --shadow-card: 4px 4px 0 0 rgba(0,0,0,0.3), inset 0 0 60px rgba(0,116,217,0.05);
  --shadow-card-hover: 8px 8px 0 0 rgba(0,0,0,0.4), 0 0 20px rgba(228,0,43,0.15);

  /* Transitions */
  --ease:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --duration: 0.3s;
  --duration-slow: 0.6s;

  /* Glows */
  --glow-red:    0 0 20px rgba(228, 0, 43, 0.4), 0 0 60px rgba(228, 0, 43, 0.15);
  --glow-blue:   0 0 20px rgba(0, 116, 217, 0.4), 0 0 60px rgba(0, 116, 217, 0.15);
  --glow-gold:   0 0 20px rgba(255, 215, 0, 0.4), 0 0 60px rgba(255, 215, 0, 0.15);
  --glow-green:  0 0 15px rgba(46, 204, 64, 0.3);
  --glow-crt:    inset 0 0 60px rgba(0, 116, 217, 0.08), inset 0 0 120px rgba(46, 204, 64, 0.04);
  --glow-green-sm: 0 0 8px rgba(46, 204, 64, 0.2);

  /* ── Section Color Scheme Tokens (PFLICHT) ── */
  --scheme-primary-bg:    var(--red);
  --scheme-primary-text:  var(--white);
  --scheme-primary-muted: rgba(255,255,255,0.8);
  --scheme-alt-bg:        var(--bg-deep, #10102a);
  --scheme-alt-text:      var(--text);
  --scheme-dark-bg:       var(--bg, #1a1a2e);
  --scheme-dark-text:     var(--text);
  --scheme-dark-muted:    var(--text-muted);
}

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Pixel Pattern Overlay (global) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0,0,0,0.03) 3px, rgba(0,0,0,0.03) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 3px, rgba(0,0,0,0.03) 3px, rgba(0,0,0,0.03) 4px);
  pointer-events: none;
  z-index: 1;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color var(--duration) var(--ease); }
a:hover { color: var(--red); }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
ul { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-pixel);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
}

picture { display: contents; }

/* ── Animations ───────────────────────────────────────────── */
@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes blink-smooth {
  0%, 40% { opacity: 1; }
  50% { opacity: 0.2; }
  60%, 100% { opacity: 1; }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: var(--glow-red); }
  50% { box-shadow: 0 0 30px rgba(228,0,43,0.6), 0 0 80px rgba(228,0,43,0.25); }
}

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

@keyframes twinkle {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

@keyframes cursor-blink {
  0%, 49% { border-color: var(--gold); }
  50%, 100% { border-color: transparent; }
}

@keyframes crt-flicker {
  0% { opacity: 0.97; }
  5% { opacity: 1; }
  10% { opacity: 0.98; }
  15% { opacity: 1; }
  100% { opacity: 1; }
}

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

/* ── Skip Link ────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--gold);
  color: var(--bg-deep);
  z-index: 200;
  font-size: 0.875rem;
  font-family: var(--font-pixel);
  text-transform: uppercase;
}
.skip-link:focus { top: var(--space-sm); }

/* ── Containers ───────────────────────────────────────────── */
.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  position: relative;
  z-index: 2;
}
.container-narrow {
  max-width: var(--narrow-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ── Pixel Border Utilities ───────────────────────────────── */
.pixel-border {
  border: 4px solid var(--red);
  box-shadow: 4px 4px 0 0 var(--red-dark), -2px -2px 0 0 rgba(228,0,43,0.3);
}
.pixel-border-blue {
  border: 4px solid var(--blue);
  box-shadow: 4px 4px 0 0 rgba(0,116,217,0.5), -2px -2px 0 0 rgba(0,116,217,0.2);
}
.pixel-border-gold {
  border: 4px solid var(--gold);
  box-shadow: 4px 4px 0 0 var(--gold-dim), -2px -2px 0 0 rgba(255,215,0,0.3);
}

/* ── Scanline Overlay ─────────────────────────────────────── */
.scanlines { position: relative; }
.scanlines::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.15) 2px, rgba(0,0,0,0.15) 4px);
  pointer-events: none;
  z-index: 2;
}

/* ── Scroll Reveal Animation ──────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.vis,
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* ══════════════════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(15, 15, 26, 0.95);
  border-bottom: 4px solid var(--red);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background var(--duration), box-shadow var(--duration);
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  text-decoration: none;
  color: var(--text);
}
.site-logo:hover { color: var(--gold); }
.site-logo img { height: 36px; width: auto; }

.logo-icon {
  width: 36px;
  height: 36px;
  position: relative;
}
.logo-icon::before {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--red);
  box-shadow:
    0px 0px 0 0 var(--red), 4px 0px 0 0 var(--red), 8px 0px 0 0 var(--red),
    12px 0px 0 0 var(--red), 16px 0px 0 0 var(--red), 20px 0px 0 0 var(--red), 24px 0px 0 0 var(--red),
    0px 4px 0 0 var(--red), 24px 4px 0 0 var(--red),
    4px 4px 0 0 var(--gold), 8px 4px 0 0 var(--gold), 12px 4px 0 0 var(--gold),
    16px 4px 0 0 var(--gold), 20px 4px 0 0 var(--gold),
    12px -4px 0 0 var(--text), 12px -8px 0 0 var(--text), 12px -12px 0 0 var(--text),
    8px -16px 0 0 var(--red), 12px -16px 0 0 var(--red), 16px -16px 0 0 var(--red),
    8px -20px 0 0 var(--red), 12px -20px 0 0 var(--red), 16px -20px 0 0 var(--red),
    12px -24px 0 0 var(--red);
  top: 28px;
  left: 4px;
}

.logo-text {
  font-family: var(--font-pixel);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 2px 2px 0 var(--red), 4px 4px 0 rgba(0,0,0,0.5);
}

/* Navigation */
.main-nav { display: flex; align-items: center; gap: var(--space-md); }

.nav-list {
  display: flex;
  list-style: none;
  gap: var(--space-xs);
  align-items: center;
  margin: 0;
  padding: 0;
}
.nav-list > .nav-item { position: relative; }
.nav-list > .nav-item > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-pixel);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: var(--space-sm) var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  transition: color var(--duration);
  white-space: nowrap;
  min-height: 44px;
  line-height: var(--header-height);
}
.nav-list > .nav-item > a::before {
  content: '\25B6';
  position: absolute;
  left: -2px;
  opacity: 0;
  color: var(--gold);
  transition: opacity var(--duration), left var(--duration);
  font-size: 0.7rem;
}
.nav-list > .nav-item > a:hover,
.nav-list > .nav-item.is-open > a {
  color: var(--gold);
}
.nav-list > .nav-item > a:hover::before,
.nav-list > .nav-item.is-open > a::before {
  opacity: 1;
  left: 2px;
}
.nav-list > .nav-item > a.active {
  color: var(--gold);
}
.nav-list > .nav-item > a.active::before {
  opacity: 1;
  left: 2px;
}
.nav-list a::after { display: none; }

/* Dropdown Navigation */
.nav-item.has-children > a { display: flex; align-items: center; gap: 0.25rem; }
.nav-chevron, .nav-flyout-chevron { transition: transform var(--duration) var(--ease); }
.nav-item.has-children.is-open > a .nav-chevron { transform: rotate(180deg); }

.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--bg-deep);
  border: 4px solid var(--red);
  box-shadow: var(--shadow-md);
  padding: var(--space-sm) 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--duration) var(--ease);
  z-index: 50;
  list-style: none;
}
.sub-menu::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
}
.nav-item.has-children.is-open > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.sub-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  font-family: var(--font-pixel);
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-left: 3px solid transparent;
  transition: background var(--duration), color var(--duration), border-color var(--duration);
  min-height: 44px;
}
.sub-menu a::after { display: none; }
.sub-menu a:hover {
  background: rgba(228,0,43,0.08);
  color: var(--gold);
  border-left-color: var(--gold);
}
.sub-menu a.active {
  color: var(--gold);
  border-left-color: var(--gold);
}
.sub-menu .sub-menu { top: -0.5rem; left: 100%; }

.nav-item.has-children::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  height: 12px;
}

.sub-menu--flyout {
  top: -8px;
  left: calc(100% + 4px);
  transform: translateX(-8px);
}
.sub-menu--flyout::before {
  background: var(--gold);
}
.nav-item.has-children.is-open > .sub-menu--flyout {
  transform: translateX(0);
}

.nav-list a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Header Search */
.header-search { position: relative; }
.header-search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--duration);
}
.header-search-toggle:hover { color: var(--gold); }

.header-search-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: var(--bg-deep);
  border: 4px solid var(--red);
  box-shadow: var(--shadow-md);
  padding: var(--space-sm);
  min-width: 280px;
}
.header-search-dropdown form { display: flex; gap: var(--space-xs); }
.header-search-dropdown input[type="search"] {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 4px solid var(--border-subtle);
  background: var(--bg);
  color: var(--text);
  font-size: 0.875rem;
  font-family: var(--font-pixel);
  outline: none;
}
.header-search-dropdown input[type="search"]:focus { border-color: var(--gold); }
.header-search-dropdown button[type="submit"] {
  background: var(--gold);
  border: none;
  color: var(--bg-deep);
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* Theme Toggle */
.theme-toggle {
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: background var(--duration);
}
.theme-toggle:hover { background: rgba(255,215,0,0.1); }
.theme-toggle svg { width: 18px; height: 18px; }
html[data-theme="dark"] .icon-sun { display: none; }
html:not([data-theme="dark"]) .icon-moon { display: none; }

/* Header CTA: INSERT COIN */
.header-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-pixel);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--bg-deep);
  background: var(--gold);
  border: 4px solid var(--gold-dim);
  padding: var(--space-sm) var(--space-lg);
  cursor: pointer;
  text-decoration: none;
  box-shadow: 4px 4px 0 0 rgba(0,0,0,0.4);
  transition: transform var(--duration), box-shadow var(--duration);
  animation: blink-smooth 2s infinite;
  white-space: nowrap;
}
.header-cta:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 0 rgba(0,0,0,0.4);
  animation: none;
  color: var(--bg-deep);
}
.header-cta:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 0 rgba(0,0,0,0.4);
}
.header-cta svg { width: 16px; height: 16px; }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: 3px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-pixel);
  font-size: 1.2rem;
  padding: var(--space-xs) var(--space-sm);
  cursor: pointer;
  line-height: 1;
}
.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold);
  margin: 4px 0;
  transition: transform var(--duration);
}


/* ══════════════════════════════════════════════════════════════
   BREADCRUMBS
   ══════════════════════════════════════════════════════════════ */
.breadcrumbs {
  padding: var(--space-md) 0;
  font-size: 0.8125rem;
  font-family: var(--font-pixel);
  color: var(--text-muted);
  border-bottom: 2px solid var(--border-subtle);
}
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  list-style: none;
  padding: 0;
  margin: 0;
}
.breadcrumb-item + .breadcrumb-item::before {
  content: '\25B6';
  margin-right: var(--space-xs);
  color: var(--text-dim);
  font-size: 0.6rem;
}
.breadcrumb-item a { color: var(--text-muted); }
.breadcrumb-item a:hover { color: var(--gold); }
.breadcrumb-current { font-weight: 700; color: var(--gold); }


/* ══════════════════════════════════════════════════════════════
   PAGE SECTIONS (Page Builder)
   ══════════════════════════════════════════════════════════════ */
section {
  position: relative;
  z-index: 2;
}

.page-section {
  padding: var(--space-3xl) 0;
}
.page-section:nth-child(even) {
  background: var(--bg-deep);
}
.page-section--title-only {
  padding: var(--space-2xl) 0 var(--space-lg);
}

/* Section Header: Arcade comment style */
.section-label {
  font-family: var(--font-pixel);
  font-size: 0.75rem;
  color: var(--blue-light);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.section-title {
  font-family: var(--font-pixel);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  text-shadow: 2px 2px 0 var(--red);
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}

.section-heading {
  font-family: var(--font-pixel);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text);
  text-shadow: 2px 2px 0 var(--red);
  margin-bottom: var(--space-xl);
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
.section-divider span {
  width: 8px;
  height: 8px;
  background: var(--gold);
}
.section-divider::before,
.section-divider::after {
  content: '';
  width: 60px;
  height: 4px;
  background: var(--red);
}

.page-title {
  font-family: var(--font-pixel);
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 var(--red);
}
.page-content { font-size: 1rem; line-height: 1.7; }
.page-content p { margin-bottom: var(--space-md); }


/* ══════════════════════════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════════════════════════ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--bg-deep);
  padding-top: var(--header-height);
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,15,26,0.9) 0%, rgba(15,15,26,0.6) 50%, rgba(22,33,62,0.8) 100%);
  z-index: 1;
}
.hero-section .container { position: relative; z-index: 5; max-width: var(--content-width); margin: 0 auto; }

/* Starfield */
.starfield {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #fff;
  animation: twinkle var(--dur, 3s) var(--delay, 0s) infinite;
}

/* Scanline overlay on hero */
.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.12) 2px, rgba(0,0,0,0.12) 4px);
  pointer-events: none;
  z-index: 3;
}

.hero-content {
  position: relative;
  z-index: 5;
  max-width: 800px;
  padding: var(--space-2xl);
}

/* Pixel art border frame */
.hero-frame {
  border: 4px solid var(--blue);
  padding: var(--space-2xl) var(--space-3xl);
  position: relative;
  background: rgba(15, 15, 26, 0.7);
  box-shadow: var(--glow-blue);
}
.hero-frame::before,
.hero-frame::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border: 4px solid var(--gold);
}
.hero-frame::before { top: -4px; left: -4px; border-right: none; border-bottom: none; }
.hero-frame::after { bottom: -4px; right: -4px; border-left: none; border-top: none; }
.hero-frame .corner-tr,
.hero-frame .corner-bl {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 4px solid var(--gold);
}
.hero-frame .corner-tr { top: -4px; right: -4px; border-left: none; border-bottom: none; }
.hero-frame .corner-bl { bottom: -4px; left: -4px; border-right: none; border-top: none; }

.hero-title {
  font-family: var(--font-pixel);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-shadow: 3px 3px 0 var(--red), 6px 6px 0 rgba(0,0,0,0.4);
  margin-bottom: var(--space-lg);
}
.hero-title em {
  font-style: normal;
  color: var(--gold);
  text-shadow: 3px 3px 0 var(--gold-dim), 6px 6px 0 rgba(0,0,0,0.4);
}
.hero-title .word-start {
  color: var(--gold);
  text-shadow: 3px 3px 0 var(--gold-dim), 6px 6px 0 rgba(0,0,0,0.4);
}

.hero-cursor {
  display: inline-block;
  width: 0.6em;
  height: 1em;
  border-right: 4px solid var(--gold);
  margin-left: 4px;
  vertical-align: text-bottom;
  animation: cursor-blink 0.8s step-end infinite;
}

.hero-subtitle,
.hero-eyebrow {
  font-family: var(--font-pixel);
  font-size: 0.9rem;
  color: var(--blue-light);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hero Buttons */
.btn, .btn-hero, .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-pixel);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--white);
  background: var(--red);
  border: 4px solid var(--red-dark);
  padding: var(--space-md) var(--space-2xl);
  cursor: pointer;
  text-decoration: none;
  box-shadow: 4px 4px 0 0 rgba(0,0,0,0.5);
  transition: transform var(--duration), box-shadow var(--duration);
  white-space: nowrap;
}
.btn:hover, .btn-hero:hover, .btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 0 rgba(0,0,0,0.5);
  color: var(--white);
}
.btn:active, .btn-hero:active, .btn-primary:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 0 rgba(0,0,0,0.5);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-pixel);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--blue-light);
  background: transparent;
  border: 4px solid var(--blue);
  padding: var(--space-md) var(--space-2xl);
  cursor: pointer;
  text-decoration: none;
  box-shadow: 4px 4px 0 0 rgba(0,116,217,0.3);
  transition: all var(--duration);
}
.btn-secondary:hover {
  background: var(--blue);
  color: var(--white);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 0 rgba(0,116,217,0.3);
}

.btn-cta { background: var(--gold); color: var(--bg-deep); border-color: var(--gold-dim); }
.btn-cta:hover { background: var(--gold-dim); color: var(--bg-deep); }

.hero-ctas,
.hero-actions {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

.btn-start {
  font-family: var(--font-pixel);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--white);
  background: var(--red);
  border: 4px solid var(--red-dark);
  padding: var(--space-md) var(--space-2xl);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  box-shadow: 4px 4px 0 0 rgba(0,0,0,0.5);
  transition: transform var(--duration), box-shadow var(--duration);
  animation: pulse-glow 2s infinite;
}
.btn-start:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 0 rgba(0,0,0,0.5);
  animation: none;
  color: var(--white);
}
.btn-start:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 0 rgba(0,0,0,0.5);
}

.btn-ghost {
  font-family: var(--font-pixel);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--blue-light);
  background: transparent;
  border: 4px solid var(--blue);
  padding: var(--space-md) var(--space-2xl);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  box-shadow: 4px 4px 0 0 rgba(0,116,217,0.3);
  transition: all var(--duration);
}
.btn-ghost:hover {
  background: var(--blue);
  color: var(--white);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 0 rgba(0,116,217,0.3);
}

/* Player indicator */
.player-indicator {
  font-family: var(--font-pixel);
  font-size: 0.8rem;
  color: var(--green);
  letter-spacing: 0.15em;
  margin-top: var(--space-xl);
  text-shadow: var(--glow-green);
}
.player-indicator .p1 { color: var(--red); }
.player-indicator .p2 { color: var(--green); }

/* Hero layout modes */
.hero--text-white .hero-title,
.hero--text-white .hero-subtitle { color: white; }
.hero--text-white .hero-subtitle { color: rgba(255,255,255,0.7); }
.hero--hsize-sm .hero-title { font-size: clamp(1.25rem, 3vw, 1.75rem); }
.hero--hsize-lg .hero-title { font-size: clamp(2rem, 5vw, 3.5rem); }
.hero--hweight-bold .hero-title { font-weight: 700; }
.hero--hweight-light .hero-title { font-weight: 400; }
.hero--body-lg .hero-subtitle { font-size: 1.15rem; }
.hero--align-center .container { text-align: center; }
.hero--align-center .hero-subtitle { margin-left: auto; margin-right: auto; }
.hero--align-center .hero-ctas { justify-content: center; }
.hero--tall { min-height: 90vh; }
.hero--cta-stacked .hero-ctas { flex-direction: column; align-items: flex-start; }

/* Hero overlay strengths */
.hero--overlay-light::before  { background: rgba(0,0,0,0.20); }
.hero--overlay-medium::before { background: rgba(0,0,0,0.45); }
.hero--overlay-heavy::before  { background: rgba(0,0,0,0.65); }
.hero--has-bg .hero-title,
.hero--has-bg .hero-subtitle { color: white; }
.hero--has-bg .hero-subtitle { color: rgba(255,255,255,0.7); }
.hero--has-bg::before { background: rgba(0,0,0,0.5); }

/* Split layout */
.hero--layout-split .hero-split-inner {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
}
.hero--layout-split .hero-text { flex: 1; }
.hero-portrait-wrap { flex: 0 0 auto; }
.hero-portrait { max-width: 300px; border: 4px solid var(--red); }
.hero-portrait-inline { margin-bottom: var(--space-lg); }
.hero--portrait-rounded .hero-portrait { border-radius: 50%; }

/* Boxed layout */
.hero--layout-boxed .container {
  background: var(--surface);
  border: 4px solid var(--blue);
  padding: var(--space-2xl);
  background-size: cover;
  background-position: center;
  box-shadow: var(--glow-blue);
}

/* Hero Video */
.hero-section .hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
}
.hero-section.hero--video-contain .hero-video-bg { object-fit: contain; }
.hero-section.hero--has-video > .container { position: relative; z-index: 2; }
.hero-section.hero--has-video::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0,0,0,0.5);
  pointer-events: none;
}
.hero-section.hero--has-video.hero--overlay-light::after  { background: rgba(0,0,0,0.25); }
.hero-section.hero--has-video.hero--overlay-medium::after { background: rgba(0,0,0,0.5); }
.hero-section.hero--has-video.hero--overlay-heavy::after  { background: rgba(0,0,0,0.7); }

.hero-video-inline-wrap {
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  line-height: 0;
  aspect-ratio: 16 / 9;
  border: 4px solid var(--blue);
}
.hero-video-inline-wrap--center {
  display: block;
  margin: 2rem auto 0;
  width: min(540px, 90%);
}
.hero-video-inline {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero--video-inline .hero-split-inner .hero-video-inline-wrap {
  flex: 0 0 auto;
  width: clamp(200px, 28vw, 360px);
  aspect-ratio: 16 / 9;
}
.hero--video-size-sm   .hero-video-inline-wrap--center { width: min(380px, 90%); }
.hero--video-size-md   .hero-video-inline-wrap--center { width: min(560px, 90%); }
.hero--video-size-lg   .hero-video-inline-wrap--center { width: min(820px, 94%); }
.hero--video-size-full .hero-video-inline-wrap--center { width: 100%; }

/* Hero stats */
.hero-stats {
  margin-top: var(--space-xl);
  display: flex;
  gap: var(--space-xl);
  flex-wrap: wrap;
}
.hero-stat { text-align: left; }
.hero-stat-value {
  font-family: var(--font-pixel);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.hero-stat-label {
  font-family: var(--font-pixel);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
  text-transform: uppercase;
}

/* Hero search */
.hero-search {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
  max-width: 600px;
}
.hero-search-input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 4px solid var(--border-subtle);
  color: var(--text);
  font-family: var(--font-pixel);
  font-size: 0.9rem;
  outline: none;
}
.hero-search-input:focus { border-color: var(--gold); box-shadow: var(--glow-gold); }
.hero-search-select {
  padding: 0.75rem;
  background: var(--surface);
  border: 4px solid var(--border-subtle);
  color: var(--text);
  font-family: var(--font-pixel);
}
.hero-search-btn {
  padding: 0.75rem 1.5rem;
  background: var(--red);
  color: var(--white);
  border: 4px solid var(--red-dark);
  font-family: var(--font-pixel);
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  text-transform: uppercase;
}
.hero-search-btn:hover { background: var(--red-dark); }


/* ══════════════════════════════════════════════════════════════
   INTRO SECTION
   ══════════════════════════════════════════════════════════════ */
.intro-section {
  text-align: center;
  padding: var(--space-3xl) 0;
}
.intro-section .container { max-width: var(--content-width); }
.intro-section h2 {
  font-family: var(--font-pixel);
  font-size: clamp(1.5rem, 3vw, 2rem);
  text-shadow: 2px 2px 0 var(--red);
  margin-bottom: var(--space-md);
}
.intro-section p,
.intro-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 680px;
  margin: 0 auto;
}
.intro-section .section-subtitle,
.cta-section .section-subtitle { max-width: 680px; margin-left: auto; margin-right: auto; }
.intro-cta { margin-top: 2rem; }


/* ══════════════════════════════════════════════════════════════
   FEATURES SECTION — Power-Ups
   ══════════════════════════════════════════════════════════════ */
.features-section { padding: var(--space-3xl) 0; }
.features-section h2 { text-align: center; font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: 1rem; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.feature-card {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  background: var(--surface);
  border: 4px solid transparent;
  transition: border-color var(--duration), transform var(--duration), box-shadow var(--duration);
  position: relative;
  overflow: hidden;
}
.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0,0,0,0.04) 3px, rgba(0,0,0,0.04) 4px);
  pointer-events: none;
}
.feature-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 8px 0 0 rgba(0,0,0,0.3);
}

.feature-card-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}
.feature-card-icon svg { width: 32px; height: 32px; }

.feature-card h3,
.feature-card-title {
  font-family: var(--font-pixel);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: var(--space-sm);
}
.feature-card p,
.feature-card-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.feature-card-link { display: inline-block; margin-top: 0.75rem; font-size: 0.875rem; font-weight: 700; color: var(--gold); font-family: var(--font-pixel); text-transform: uppercase; }
.feature-card-link:hover { color: var(--red); }

.feature-tag {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  color: var(--gold);
  border: 2px solid var(--gold-dim);
  padding: 2px var(--space-sm);
  margin-top: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* Pixel art icons */
.feature-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-lg);
  position: relative;
}


/* ══════════════════════════════════════════════════════════════
   SERVICE CARDS
   ══════════════════════════════════════════════════════════════ */
.service-cards-section { padding: var(--space-3xl) 0; }
.scs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}
.scs-card {
  background: var(--surface);
  border: 4px solid var(--border-subtle);
  padding: var(--space-xl);
  text-align: center;
  transition: transform var(--duration), box-shadow var(--duration), border-color var(--duration);
  position: relative;
  overflow: hidden;
}
.scs-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); border-color: var(--gold); }
.scs-card-visual {
  width: 48px; height: 48px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}
.scs-card-title { font-family: var(--font-pixel); font-size: 1.1rem; font-weight: 700; text-transform: uppercase; margin-bottom: var(--space-md); }
.scs-card-text { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }


/* ══════════════════════════════════════════════════════════════
   CTA SECTION — Insert Coin
   ══════════════════════════════════════════════════════════════ */
.cta-section {
  padding: var(--space-4xl) 0;
  background: var(--bg-deep);
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* Pixel border top/bottom */
.cta-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 8px;
  background: repeating-linear-gradient(90deg, var(--red) 0px, var(--red) 16px, var(--gold) 16px, var(--gold) 32px, var(--blue) 32px, var(--blue) 48px, var(--green) 48px, var(--green) 64px);
  z-index: 1;
}
.cta-section::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 8px;
  background: repeating-linear-gradient(90deg, var(--green) 0px, var(--green) 16px, var(--blue) 16px, var(--blue) 32px, var(--gold) 32px, var(--gold) 48px, var(--red) 48px, var(--red) 64px);
  z-index: 1;
}
.cta-section > .container { position: relative; z-index: 2; }

.cta-section h2 {
  font-family: var(--font-pixel);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: var(--space-md);
  line-height: 1.3;
}
.cta-section h2 .highlight { color: var(--gold); text-shadow: 2px 2px 0 var(--gold-dim); }
.cta-section h2 .nein { color: var(--red); text-shadow: 2px 2px 0 var(--red-dark); }

.cta-section p,
.cta-text {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
  line-height: 1.7;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-eyebrow { display: block; font-family: var(--font-pixel); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3em; margin-bottom: 0.75rem; color: var(--blue-light); }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.cta--has-bg { background-size: cover; background-position: center; position: relative; }
.cta--has-bg::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.6); z-index: 0; }
.cta--has-bg > .container { position: relative; z-index: 1; }
.cta--has-bg h2, .cta--has-bg .cta-text, .cta--has-bg .cta-eyebrow { color: #fff; }
.cta--overlay-light::after { background: rgba(0,0,0,0.3); }
.cta--overlay-medium::after { background: rgba(0,0,0,0.5); }
.cta--overlay-heavy::after { background: rgba(0,0,0,0.7); }

/* Coin slot */
.coin-text {
  font-family: var(--font-pixel);
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  animation: blink 1.2s step-end infinite;
}

.btn-play {
  font-family: var(--font-pixel);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--bg-deep);
  background: linear-gradient(180deg, var(--gold) 0%, #e6c200 100%);
  border: 4px solid var(--gold-dim);
  padding: var(--space-lg) var(--space-3xl);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  box-shadow: 4px 4px 0 0 rgba(0,0,0,0.5), var(--glow-gold);
  transition: transform var(--duration), box-shadow var(--duration);
}
.btn-play:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 0 rgba(0,0,0,0.5), 0 0 40px rgba(255,215,0,0.5);
  color: var(--bg-deep);
}

/* Lives display (pixel hearts) */
.lives-display {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  margin-top: var(--space-lg);
}
.life-heart {
  width: 16px;
  height: 16px;
  position: relative;
}
.life-heart::before {
  content: '';
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--red);
  box-shadow:
    2px 0 0 0 var(--red), 6px 0 0 0 var(--red), 8px 0 0 0 var(--red),
    -2px 2px 0 0 var(--red), 0px 2px 0 0 var(--red), 2px 2px 0 0 var(--red),
    4px 2px 0 0 var(--red), 6px 2px 0 0 var(--red), 8px 2px 0 0 var(--red), 10px 2px 0 0 var(--red),
    -2px 4px 0 0 var(--red), 0px 4px 0 0 var(--red), 2px 4px 0 0 var(--red),
    4px 4px 0 0 var(--red), 6px 4px 0 0 var(--red), 8px 4px 0 0 var(--red), 10px 4px 0 0 var(--red),
    0px 6px 0 0 var(--red), 2px 6px 0 0 var(--red), 4px 6px 0 0 var(--red),
    6px 6px 0 0 var(--red), 8px 6px 0 0 var(--red),
    2px 8px 0 0 var(--red), 4px 8px 0 0 var(--red), 6px 8px 0 0 var(--red),
    4px 10px 0 0 var(--red);
}


/* ══════════════════════════════════════════════════════════════
   BLOG SECTION — Game Cartridges
   ══════════════════════════════════════════════════════════════ */
.blog-section { padding: var(--space-3xl) 0; }

.blog-categories {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
}
.blog-category-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.375rem 1rem;
  border: 4px solid var(--border-subtle);
  font-family: var(--font-pixel);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  text-transform: uppercase;
  transition: all var(--duration);
}
.blog-category-link:hover,
.blog-category-link.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg-deep);
}
.blog-category-count { font-size: 0.6875rem; opacity: 0.7; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-xl);
}

.blog-card {
  background: var(--surface);
  border: 4px solid var(--blue);
  position: relative;
  overflow: hidden;
  transition: transform var(--duration), box-shadow var(--duration);
  animation: crt-flicker 4s infinite;
  box-shadow: var(--glow-crt);
}
.blog-card:nth-child(2) { border-color: var(--red); }
.blog-card:nth-child(3) { border-color: var(--green); }
.blog-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 8px 8px 0 0 rgba(0,0,0,0.4), var(--glow-blue);
}
.blog-card:nth-child(2):hover { box-shadow: 8px 8px 0 0 rgba(0,0,0,0.4), var(--glow-red); }
.blog-card:nth-child(3):hover { box-shadow: 8px 8px 0 0 rgba(0,0,0,0.4), var(--glow-green); }

/* CRT curve illusion */
.blog-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,0.3) 100%);
  z-index: 2;
  pointer-events: none;
}
/* Scanlines on card */
.blog-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0,0,0,0.08) 3px, rgba(0,0,0,0.08) 4px);
  z-index: 3;
  pointer-events: none;
}

.blog-card-image-link { display: block; aspect-ratio: 16/9; overflow: hidden; }
.blog-card-image-link img,
.blog-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.blog-card:hover .blog-card-image-link img,
.blog-card:hover .blog-card-image { transform: scale(1.05); }

.blog-card-placeholder {
  width: 100%;
  height: 100%;
  background: var(--surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
}
.blog-card-placeholder svg { width: 40px; height: 40px; }

.card-screen {
  height: 180px;
  background: var(--surface-3);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.blog-card-body,
.card-body { padding: var(--space-lg); position: relative; z-index: 4; }

.blog-category,
.card-level {
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bg-deep);
  background: var(--gold);
  padding: 2px var(--space-sm);
  display: inline-block;
  margin-bottom: var(--space-sm);
}
.card-level.level-2 { background: var(--green); }
.card-level.level-3 { background: var(--magenta); color: var(--white); }

.blog-card-body h2,
.card-title {
  font-family: var(--font-pixel);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}
.blog-card-body h2 a { color: var(--text); text-decoration: none; }
.blog-card-body h2 a:hover { color: var(--gold); }
.blog-card-body p,
.card-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-meta,
.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-top: 2px solid rgba(255,255,255,0.05);
  padding-top: var(--space-sm);
}

.card-readmore {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--duration);
}
.card-readmore:hover { color: var(--white); }

/* Tags */
.tag {
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  color: var(--text-muted);
  padding: 2px 8px;
  border: 2px solid var(--border-subtle);
  transition: border-color var(--duration), color var(--duration);
  text-transform: uppercase;
}
.tag:hover { border-color: var(--gold); color: var(--gold); }

/* Blog Pagination */
.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 2px solid var(--border-subtle);
}
.pagination-link {
  padding: 0.5rem 1rem;
  border: 4px solid var(--border-subtle);
  font-family: var(--font-pixel);
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  text-transform: uppercase;
  transition: all var(--duration);
}
.pagination-link:hover { border-color: var(--gold); color: var(--gold); }
.pagination-link.disabled { opacity: 0.4; pointer-events: none; }
.pagination-info { font-family: var(--font-pixel); font-size: 0.8125rem; color: var(--text-muted); }

.pagination { display: flex; gap: 0.5rem; margin-top: 2rem; justify-content: center; }
.pagination-btn { padding: 0.4rem 0.85rem; border: 4px solid var(--border-subtle); color: var(--text-muted); font-family: var(--font-pixel); font-size: 0.875rem; text-transform: uppercase; }
.pagination-btn:hover { border-color: var(--gold); color: var(--gold); text-decoration: none; }
.pagination-btn.active { background: var(--gold); color: var(--bg-deep); border-color: var(--gold); }

.blog-preview-section { padding: var(--space-3xl) 0; }
.blog-preview-section h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: 1rem; }
.blog-preview-cta { text-align: center; margin-top: 2rem; }


/* ══════════════════════════════════════════════════════════════
   BLOG SINGLE — Article
   ══════════════════════════════════════════════════════════════ */
.blog-article { padding: var(--space-2xl) 0 var(--space-3xl); }
.article-image {
  width: 100%;
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--blue);
}
.article-title {
  font-family: var(--font-pixel);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.2;
  text-shadow: 2px 2px 0 var(--red);
  margin-bottom: var(--space-lg);
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-md);
  font-family: var(--font-pixel);
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 2px solid var(--border-subtle);
  text-transform: uppercase;
}
.article-category {
  font-family: var(--font-pixel);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  font-size: 0.6875rem;
}
.article-reading-time { display: flex; align-items: center; gap: 0.25rem; }

/* Table of Contents */
.article-toc {
  background: var(--surface);
  border: 4px solid var(--border-subtle);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
}
.article-toc-title {
  font-family: var(--font-pixel);
  font-weight: 700;
  font-size: 0.9375rem;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}
.article-toc-list { padding-left: var(--space-lg); margin: 0; list-style: disc; }
.article-toc-list li { margin-bottom: var(--space-xs); font-size: 0.875rem; }
.article-toc-list a { color: var(--text-muted); }
.article-toc-list a:hover { color: var(--gold); }
.toc-level-3 { padding-left: var(--space-md); }

/* Article Content */
.article-content { font-size: 1rem; line-height: 1.8; }
.article-content h2 { font-size: 1.5rem; margin: var(--space-2xl) 0 var(--space-md); text-shadow: 2px 2px 0 var(--red); }
.article-content h3 { font-size: 1.25rem; margin: var(--space-xl) 0 var(--space-md); }
.article-content p { margin-bottom: var(--space-lg); }
.article-content ul, .article-content ol { margin-bottom: var(--space-lg); padding-left: var(--space-xl); }
.article-content li { margin-bottom: var(--space-sm); }
.article-content blockquote {
  border-left: 4px solid var(--gold);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-xl) 0;
  background: var(--surface);
  font-style: italic;
  color: var(--text-muted);
}
.article-content pre {
  background: var(--surface-3);
  color: var(--text);
  padding: var(--space-lg);
  border: 4px solid var(--border-subtle);
  overflow-x: auto;
  font-family: var(--font-pixel);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}
.article-content code {
  font-family: var(--font-pixel);
  font-size: 0.875em;
  background: var(--surface);
  padding: 0.125rem 0.375rem;
  border: 2px solid var(--border-subtle);
}
.article-content pre code { background: none; padding: 0; border: none; }
.article-content img {
  box-shadow: var(--shadow-md);
  margin: var(--space-xl) 0;
  border: 4px solid var(--border-subtle);
}

/* Related Posts */
.article-related {
  margin-top: var(--space-2xl);
  padding-top: var(--space-2xl);
  border-top: 2px solid var(--border-subtle);
}
.article-related-title { font-family: var(--font-pixel); font-size: 1.25rem; margin-bottom: var(--space-lg); text-transform: uppercase; }
.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-lg);
}
.related-post-card {
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
  border: 4px solid var(--border-subtle);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--duration), transform var(--duration);
}
.related-post-card:hover { box-shadow: var(--shadow-card-hover); transform: translate(-4px, -4px); }
.related-post-img-wrap { aspect-ratio: 16/9; overflow: hidden; }
.related-post-img { width: 100%; height: 100%; object-fit: cover; }
.related-post-body { padding: var(--space-md); }
.related-post-date { font-family: var(--font-pixel); font-size: 0.7rem; color: var(--text-dim); text-transform: uppercase; }
.related-post-body h4 { font-family: var(--font-pixel); font-size: 0.95rem; margin-top: var(--space-xs); text-transform: uppercase; }

.article-footer {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 2px solid var(--border-subtle);
}


/* ══════════════════════════════════════════════════════════════
   HIGH SCORE TABLE
   ══════════════════════════════════════════════════════════════ */
.highscore-section {
  padding: var(--space-4xl) 0;
  background: var(--bg-deep);
  position: relative;
}
.highscore-wrapper {
  max-width: 700px;
  margin: 0 auto;
}
.highscore-cabinet {
  background: var(--surface-3);
  border: 4px solid var(--gold);
  box-shadow: var(--glow-gold), inset 0 0 80px rgba(0,0,0,0.5);
  position: relative;
  overflow: hidden;
}
.highscore-cabinet::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.4) 100%);
  z-index: 2;
  pointer-events: none;
}
.highscore-cabinet::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.1) 2px, rgba(0,0,0,0.1) 4px);
  z-index: 3;
  pointer-events: none;
}
.highscore-header {
  text-align: center;
  padding: var(--space-xl) var(--space-lg) var(--space-md);
  position: relative;
  z-index: 4;
}
.highscore-header h3 {
  font-family: var(--font-pixel);
  font-size: 1.8rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  text-shadow: 2px 2px 0 var(--gold-dim);
  animation: blink-smooth 3s infinite;
}
.highscore-table {
  width: 100%;
  border-collapse: collapse;
  position: relative;
  z-index: 4;
  font-family: var(--font-pixel);
}
.highscore-table thead th {
  font-size: 0.75rem;
  color: var(--blue-light);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: var(--space-sm) var(--space-lg);
  text-align: left;
  border-bottom: 2px solid var(--blue);
}
.highscore-table thead th:last-child { text-align: right; }
.highscore-table tbody td {
  padding: var(--space-md) var(--space-lg);
  font-size: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.highscore-table tbody tr { transition: background var(--duration); }
.highscore-table tbody tr:hover { background: rgba(255,215,0,0.05); }
.rank { color: var(--gold); font-weight: 700; font-size: 1.2rem; }
.rank-1 { color: var(--gold); text-shadow: 0 0 10px rgba(255,215,0,0.5); }
.rank-2 { color: #c0c0c0; }
.rank-3 { color: #cd7f32; }
.player-name { color: var(--white); text-transform: uppercase; letter-spacing: 0.15em; }
.score-value { text-align: right; color: var(--green); font-weight: 700; letter-spacing: 0.1em; text-shadow: var(--glow-green); }
.highscore-footer {
  text-align: center;
  padding: var(--space-md) var(--space-lg) var(--space-xl);
  position: relative;
  z-index: 4;
}
.highscore-footer p {
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}


/* ══════════════════════════════════════════════════════════════
   STATS SECTION — Game Stats
   ══════════════════════════════════════════════════════════════ */
.stats-section { padding: var(--space-3xl) 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-xl);
  text-align: center;
}
.stats-item { padding: var(--space-md); }
.stats-item-value,
.stat-number {
  font-family: var(--font-pixel);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  margin-bottom: var(--space-sm);
  text-shadow: var(--glow-green);
}
.stats-item-label {
  font-family: var(--font-pixel);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}


/* ══════════════════════════════════════════════════════════════
   TESTIMONIALS — Player Reviews
   ══════════════════════════════════════════════════════════════ */
.testimonials-section { padding: var(--space-3xl) 0; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-lg);
}
.testimonial-card {
  background: var(--surface);
  border: 4px solid var(--border-subtle);
  padding: var(--space-xl);
  position: relative;
  overflow: hidden;
}
/* CRT effect on testimonial */
.testimonial-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,0.2) 100%);
  z-index: 0;
  pointer-events: none;
}
.testimonial-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0,0,0,0.06) 3px, rgba(0,0,0,0.06) 4px);
  pointer-events: none;
  z-index: 0;
}
.testimonial-text {
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: 1;
}
.testimonial-stars { margin-bottom: var(--space-sm); color: var(--gold); position: relative; z-index: 1; }
.testimonial-author { display: flex; align-items: center; gap: var(--space-md); position: relative; z-index: 1; }
.testimonial-avatar { width: 44px; height: 44px; overflow: hidden; border: 2px solid var(--gold); }
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-avatar--initials,
.testimonial-avatar-initials {
  width: 44px; height: 44px;
  background: rgba(255, 215, 0, 0.18);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-pixel);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  border: 2px solid var(--gold);
  flex-shrink: 0;
}
.testimonial-author-name { font-family: var(--font-pixel); font-weight: 700; font-size: 0.9rem; color: var(--white); text-transform: uppercase; }
.testimonial-author-role { font-family: var(--font-pixel); font-size: 0.75rem; color: var(--text-dim); text-transform: uppercase; }


/* ══════════════════════════════════════════════════════════════
   TEAM SECTION — Party Members
   ══════════════════════════════════════════════════════════════ */
.team-section { padding: var(--space-3xl) 0; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-xl);
}
.team-card { text-align: center; }
.team-card-image {
  width: 140px;
  height: 140px;
  overflow: hidden;
  margin: 0 auto var(--space-md);
  border: 4px solid var(--gold);
  box-shadow: var(--glow-gold);
}
.team-card-image img { width: 100%; height: 100%; object-fit: cover; }
.team-card-name { font-family: var(--font-pixel); font-size: 1rem; margin-bottom: var(--space-xs); text-transform: uppercase; }
.team-card-role { font-family: var(--font-pixel); font-size: 0.75rem; color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.team-card-bio { font-size: 0.9rem; color: var(--text-muted); margin-top: var(--space-sm); }


/* ══════════════════════════════════════════════════════════════
   TRUST SHOWCASE — Achievement Badges
   ══════════════════════════════════════════════════════════════ */
.trust-showcase-section { padding: var(--space-3xl) 0; }
.tss-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2xl);
  align-items: center;
}
.tss-card {
  opacity: 0.5;
  transition: opacity var(--duration), transform var(--duration);
  max-height: 48px;
  width: auto;
  filter: grayscale(100%);
}
.tss-card:hover { opacity: 1; filter: grayscale(0%); transform: translateY(-4px); }


/* ══════════════════════════════════════════════════════════════
   HIGHLIGHT GRID
   ══════════════════════════════════════════════════════════════ */
.highlight-grid-section { padding: var(--space-3xl) 0; }
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}
.highlight-card {
  background: var(--surface);
  border: 4px solid var(--border-subtle);
  overflow: hidden;
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--duration), transform var(--duration);
}
.highlight-card:hover { box-shadow: var(--shadow-card-hover); transform: translate(-4px, -4px); }
.highlight-card:nth-child(3n+1) { border-color: var(--red); }
.highlight-card:nth-child(3n+2) { border-color: var(--blue); }
.highlight-card:nth-child(3n) { border-color: var(--gold); }
.highlight-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  margin: calc(-1 * var(--space-lg)) calc(-1 * var(--space-lg)) var(--space-lg);
}
.highlight-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.highlight-card:hover .highlight-card-image img { transform: scale(1.05); }
.highlight-card-body { padding: 0; }
.highlight-card h3 { font-family: var(--font-pixel); font-size: 1.1rem; margin-bottom: var(--space-sm); text-transform: uppercase; }
.highlight-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }


/* ══════════════════════════════════════════════════════════════
   TOPIC CARDS — Select Character
   ══════════════════════════════════════════════════════════════ */
.topic-cards-section { padding: var(--space-3xl) 0; }
.topic-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
}
.topic-card {
  background: var(--surface);
  border: 4px solid var(--border-subtle);
  padding: var(--space-xl);
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow var(--duration), transform var(--duration), border-color var(--duration);
}
.topic-card:hover { box-shadow: var(--glow-gold); transform: translateY(-4px); border-color: var(--gold); color: var(--gold); }
.topic-card-icon { margin-bottom: var(--space-md); color: var(--gold); }
.topic-card-title { font-family: var(--font-pixel); font-size: 1rem; margin-bottom: var(--space-sm); text-transform: uppercase; }
.topic-card-text { font-size: 0.85rem; color: var(--text-muted); }


/* ══════════════════════════════════════════════════════════════
   FEATURE SHOWCASE
   ══════════════════════════════════════════════════════════════ */
.feature-showcase-section { padding: var(--space-3xl) 0; }
.fss-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}
.fss-grid.reverse { direction: rtl; }
.fss-grid.reverse > * { direction: ltr; }
.fss-card {
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--blue);
}
.fss-card img { width: 100%; height: auto; }
.fss-title { font-family: var(--font-pixel); font-size: clamp(1.25rem, 2.5vw, 1.75rem); margin-bottom: var(--space-md); text-transform: uppercase; text-shadow: 2px 2px 0 var(--red); }
.fss-card-text { font-size: 1rem; color: var(--text-muted); line-height: 1.7; margin-bottom: var(--space-md); }


/* ══════════════════════════════════════════════════════════════
   PROCESS STEPS — Quest Log
   ══════════════════════════════════════════════════════════════ */
.process-steps-section { padding: var(--space-3xl) 0; }
.process-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-xl);
  counter-reset: step;
}
.process-step { text-align: center; counter-increment: step; }
.process-step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-pixel);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.4;
  display: block;
  margin-bottom: var(--space-sm);
  text-shadow: 2px 2px 0 var(--gold-dim);
}
.process-step-title { font-family: var(--font-pixel); font-size: 1rem; margin-bottom: var(--space-sm); text-transform: uppercase; }
.process-step-text { font-size: 0.9rem; color: var(--text-muted); }


/* ══════════════════════════════════════════════════════════════
   RATING / BEFORE-AFTER / VIDEO / SOCIAL EMBED / HTML
   ══════════════════════════════════════════════════════════════ */
.rating-highlight-section { padding: var(--space-3xl) 0; }
.before-after-section { padding: var(--space-3xl) 0; }
.video-section { padding: var(--space-3xl) 0; }
.social-embed-section { padding: var(--space-3xl) 0; }
.html-section { padding: var(--space-3xl) 0; }

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 4px solid var(--blue);
}
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }


/* ══════════════════════════════════════════════════════════════
   GALLERY
   ══════════════════════════════════════════════════════════════ */
.gallery-section,
.gallery-album-section { padding: var(--space-3xl) 0; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-lg);
}
.gallery-card {
  overflow: hidden;
  background: var(--surface);
  border: 4px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--duration), transform var(--duration);
}
.gallery-card:hover { box-shadow: var(--shadow-card-hover); transform: translate(-4px, -4px); }
.gallery-card-image { aspect-ratio: 4/3; overflow: hidden; }
.gallery-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.gallery-card:hover .gallery-card-image img { transform: scale(1.05); }
.gallery-card-body { padding: var(--space-md); }
.gallery-card-placeholder { height: 220px; background: var(--surface-3); display: flex; align-items: center; justify-content: center; }
.gallery-card-placeholder svg { width: 48px; height: 48px; opacity: 0.4; color: var(--text-dim); }
.gallery-card-info { padding: 1rem; }
.gallery-card-info h3 { font-family: var(--font-pixel); font-size: 1rem; margin-bottom: 0.25rem; text-transform: uppercase; }
.gallery-card-info p { font-size: 0.875rem; color: var(--text-muted); }

.gallery-preview-section { padding: var(--space-3xl) 0; }
.gallery-preview-section h2 { text-align: center; margin-bottom: 2.5rem; }
.gallery-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.gallery-preview-card { display: block; overflow: hidden; aspect-ratio: 1/1; position: relative; text-decoration: none; background: var(--surface-3); border: 4px solid var(--border-subtle); }
.gallery-preview-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.gallery-preview-card:hover img { transform: scale(1.05); }
.gallery-preview-card:hover { border-color: var(--gold); }
.gallery-preview-placeholder { width: 100%; height: 100%; background: var(--surface-3); display: flex; align-items: center; justify-content: center; color: var(--text-dim); font-size: 2rem; }
.gallery-preview-placeholder svg { width: 48px; height: 48px; opacity: 0.4; }
.gallery-preview-card span { position: absolute; bottom: 0; left: 0; right: 0; padding: 0.5rem 0.75rem; background: linear-gradient(transparent, rgba(0,0,0,0.7)); color: #fff; font-family: var(--font-pixel); font-size: 0.75rem; text-transform: uppercase; }
.gallery-preview-cta { text-align: center; }

/* Gallery album images */
.gallery-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.625rem;
  margin-top: 1.5rem;
}
.gallery-image-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  background: var(--surface-3);
  margin: 0;
  border: 4px solid var(--border-subtle);
}
.gallery-image-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}
.gallery-image-item:hover img { transform: scale(1.05); }
.gallery-image-item:hover { border-color: var(--gold); }
.gallery-image-item:focus { outline: 2px solid var(--gold); outline-offset: 2px; }
.gallery-image-item figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  padding: 2rem 0.75rem 0.625rem;
  font-family: var(--font-pixel);
  font-size: 0.75rem;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  text-transform: uppercase;
}
.gallery-image-item:hover figcaption { opacity: 1; }


/* ══════════════════════════════════════════════════════════════
   EVENTS
   ══════════════════════════════════════════════════════════════ */
.events-section { padding: var(--space-3xl) 0; }
.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.event-card {
  background: var(--surface);
  border: 4px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--duration), border-color var(--duration);
}
.event-card:hover { box-shadow: var(--shadow-card-hover); border-color: var(--gold); }
.event-card-image { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.event-card picture { display: block; }
.event-card picture img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.event-card-body { padding: 1.1rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.event-card-body h3 { font-family: var(--font-pixel); font-size: 1rem; font-weight: 700; text-transform: uppercase; }
.event-card-body h3 a { color: var(--text); }
.event-card-body h3 a:hover { color: var(--gold); text-decoration: none; }
.event-card-body p { color: var(--text-muted); font-size: 0.9rem; }
.event-card--featured { border-color: var(--gold); }
.event-card--featured .event-card-body h3 a { color: var(--gold); }
.event-card--postponed { border-color: var(--orange); }
.event-card--cancelled { opacity: 0.7; border-color: var(--red); }
.event-card-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; font-family: var(--font-pixel); font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; }
.event-date, .event-time, .event-location { white-space: nowrap; }
.event-category { font-family: var(--font-pixel); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--gold); }
.event-category a { color: inherit; }
.event-category a:hover { text-decoration: underline; }
.event-status-badge { display: inline-block; padding: 0.2rem 0.6rem; font-family: var(--font-pixel); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.event-status-badge--postponed { background: rgba(255,133,27,0.15); color: var(--orange); }
.event-status-badge--cancelled { background: rgba(228,0,43,0.15); color: var(--red); }
.event-card-link { margin-top: auto; font-family: var(--font-pixel); font-size: 0.8rem; font-weight: 700; color: var(--gold); text-transform: uppercase; }
.event-card-link:hover { color: var(--red); }
.event-card-placeholder { width: 100%; height: 200px; background: var(--surface-3); display: flex; align-items: center; justify-content: center; color: var(--text-dim); }
.event-card-placeholder svg { width: 48px; height: 48px; opacity: 0.4; }
.events-header { margin-bottom: 2rem; }
.events-category-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.events-category-filter a { padding: 0.3rem 0.85rem; border: 4px solid var(--border-subtle); color: var(--text-muted); font-family: var(--font-pixel); font-size: 0.8rem; text-transform: uppercase; transition: background 0.15s, color 0.15s; }
.events-category-filter a:hover, .events-category-filter a.active { background: var(--gold); color: var(--bg-deep); border-color: var(--gold); text-decoration: none; }

.events-preview-section { padding: var(--space-3xl) 0; }
.events-preview-section h2 { text-align: center; margin-bottom: 2rem; }
.events-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.events-preview-cta { text-align: center; margin-top: 2rem; }

/* Event detail */
.event-detail { padding: 4rem 0; }
.event-status-notice { padding: 1rem 1.5rem; margin-bottom: 2rem; font-size: 0.95rem; border-left: 4px solid; }
.event-status-notice--postponed { background: rgba(255,133,27,0.1); color: var(--orange); border-left-color: var(--orange); }
.event-status-notice--cancelled { background: rgba(228,0,43,0.1); color: var(--red); border-left-color: var(--red); }
.event-detail-header { margin-bottom: 2rem; }
.event-detail-header h1 { font-family: var(--font-pixel); font-size: 1.75rem; text-shadow: 2px 2px 0 var(--red); margin: 0.5rem 0 1rem; }
.event-detail-meta { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; font-family: var(--font-pixel); font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; }
.event-meta-item { display: flex; align-items: center; gap: 0.4rem; }
.meta-icon { display: inline-flex; align-items: center; justify-content: center; width: 1rem; height: 1rem; flex-shrink: 0; color: var(--gold); opacity: 0.7; }
.meta-icon svg { width: 100%; height: 100%; }
.event-detail-image { margin-bottom: 2rem; overflow: hidden; border: 4px solid var(--blue); }
.event-detail-image img, .event-detail-image picture img { width: 100%; max-height: 480px; object-fit: cover; display: block; }
.event-detail-image picture { display: block; }
.event-detail-excerpt { margin-bottom: 1.5rem; font-size: 1.05rem; color: var(--text-muted); line-height: 1.65; }
.event-detail-content { margin-bottom: 2rem; }
.event-detail-content.prose { line-height: 1.75; }
.event-detail-content.prose p { margin-bottom: 1rem; }
.event-detail-footer { padding-top: 2rem; border-top: 2px solid var(--border-subtle); }
.btn-back { color: var(--text-muted); font-family: var(--font-pixel); font-size: 0.875rem; text-transform: uppercase; }
.btn-back:hover { color: var(--gold); }

.event-date-block {
  text-align: center;
  min-width: 64px;
  padding: var(--space-md);
  background: var(--red);
  color: var(--white);
  border: 4px solid var(--red-dark);
}
.event-date-day { font-family: var(--font-pixel); font-size: 1.5rem; font-weight: 700; line-height: 1; }
.event-date-month { font-family: var(--font-pixel); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.25rem; }


/* ══════════════════════════════════════════════════════════════
   CONTACT
   ══════════════════════════════════════════════════════════════ */
.contact-section { padding: var(--space-3xl) 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
}
.contact-form .form-group { margin-bottom: var(--space-md); }
.contact-form label {
  display: block;
  font-family: var(--font-pixel);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xs);
  color: var(--text-muted);
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 4px solid var(--border-subtle);
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
  font-family: var(--font-pixel);
  transition: border-color var(--duration), box-shadow var(--duration);
  outline: none;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--gold);
  box-shadow: var(--glow-gold);
}
.contact-form textarea { min-height: 160px; resize: vertical; }

.contact-info-card {
  background: var(--surface);
  border: 4px solid var(--border-subtle);
  padding: var(--space-xl);
}
.contact-info-card h3 { font-family: var(--font-pixel); margin-bottom: var(--space-md); text-transform: uppercase; }
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  font-size: 0.9rem;
}
.contact-info-item svg { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.contact-info { margin-top: 2rem; }
.contact-info p { margin-bottom: 0.5rem; }


/* ══════════════════════════════════════════════════════════════
   SEARCH
   ══════════════════════════════════════════════════════════════ */
.search-section { padding: var(--space-3xl) 0; }
.search-form {
  display: flex;
  gap: var(--space-sm);
  max-width: 600px;
  margin-bottom: var(--space-2xl);
}
.search-form input[type="search"] {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 4px solid var(--border-subtle);
  font-family: var(--font-pixel);
  font-size: 0.9rem;
  background: var(--surface);
  color: var(--text);
}
.search-form input[type="search"]:focus { outline: none; border-color: var(--gold); box-shadow: var(--glow-gold); }

.search-results-list { list-style: none; padding: 0; }
.search-result-item { padding: var(--space-lg) 0; border-bottom: 2px solid var(--border-subtle); }
.search-result-item h2 { font-family: var(--font-pixel); font-size: 1.1rem; margin-bottom: var(--space-xs); text-transform: uppercase; }
.search-result-item h2 a { color: var(--text); }
.search-result-item h2 a:hover { color: var(--gold); }
.search-result-item p { font-size: 0.9rem; color: var(--text-muted); }


/* ══════════════════════════════════════════════════════════════
   404 PAGE
   ══════════════════════════════════════════════════════════════ */
.error-page, .error-section { text-align: center; padding: var(--space-3xl) 0; }
.error-code {
  font-family: var(--font-pixel);
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 700;
  color: var(--red);
  opacity: 0.2;
  line-height: 1;
  text-shadow: 4px 4px 0 rgba(0,0,0,0.5);
}
.error-page h1 { font-family: var(--font-pixel); font-size: clamp(1.25rem, 2.5vw, 1.75rem); margin-bottom: var(--space-md); text-transform: uppercase; text-shadow: 2px 2px 0 var(--red); }
.error-page p { color: var(--text-muted); margin-bottom: var(--space-xl); }
.error-message { font-size: 1.1rem; color: var(--text-muted); margin: 1rem 0 2rem; }


/* ══════════════════════════════════════════════════════════════
   MAINTENANCE PAGE
   ══════════════════════════════════════════════════════════════ */
.maintenance-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: var(--space-xl);
  background: var(--bg-deep);
}
.maintenance-page h1 { font-family: var(--font-pixel); font-size: 1.75rem; margin-bottom: var(--space-md); text-shadow: 2px 2px 0 var(--red); }
.maintenance-page p { color: var(--text-muted); }


/* ══════════════════════════════════════════════════════════════
   DOWNLOADS
   ══════════════════════════════════════════════════════════════ */
.downloads-section { padding: var(--space-3xl) 0; }
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}
.download-card {
  background: var(--surface);
  border: 4px solid var(--border-subtle);
  padding: var(--space-lg);
  transition: box-shadow var(--duration), border-color var(--duration);
}
.download-card:hover { box-shadow: var(--shadow-card-hover); border-color: var(--gold); }
.download-card h3 { font-family: var(--font-pixel); font-size: 1rem; margin-bottom: var(--space-sm); text-transform: uppercase; }
.download-card h3 a { color: var(--text); text-decoration: none; }
.download-card h3 a:hover { color: var(--gold); }
.download-meta { font-family: var(--font-pixel); font-size: 0.75rem; color: var(--text-dim); text-transform: uppercase; }


/* ══════════════════════════════════════════════════════════════
   FOOTER — Credits
   ══════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--bg-deep);
  border-top: 4px solid var(--red);
  padding: var(--space-3xl) 0 var(--space-xl);
  position: relative;
  z-index: 2;
}

.footer-title {
  font-family: var(--font-pixel);
  font-size: 1.5rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin-bottom: var(--space-2xl);
  text-shadow: 2px 2px 0 var(--gold-dim);
  text-align: center;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
}
.credits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  max-width: 800px;
  margin: 0 auto var(--space-2xl);
}

.footer-brand { min-width: 200px; }
.footer-brand-logo {
  display: inline-block;
  margin-bottom: var(--space-md);
  text-decoration: none;
}
.footer-brand-logo img { height: 32px; width: auto; }
.footer-brand-text {
  font-family: var(--font-pixel);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
}
.footer-tagline {
  font-family: var(--font-pixel);
  font-size: 0.82rem;
  color: var(--text-muted);
  max-width: 280px;
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
}
.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.04);
  border: 2px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  transition: all var(--duration);
}
.footer-social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg-deep);
  transform: translateY(-2px);
}
.footer-social a svg { width: 18px; height: 18px; }

.footer-col-title,
.credits-column h4 {
  font-family: var(--font-pixel);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blue-light);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: var(--space-md);
}

.footer-nav,
.credits-column ul { display: flex; flex-direction: column; gap: var(--space-sm); list-style: none; }
.footer-nav a,
.credits-column li,
.credits-column a {
  font-family: var(--font-pixel);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--duration);
  padding: var(--space-xs) 0;
}
.footer-nav a:hover,
.credits-column li:hover,
.credits-column a:hover { color: var(--gold); }

.footer-contact-line {
  font-family: var(--font-pixel);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
  line-height: 1.5;
}
.footer-contact-line a { color: var(--text-muted); }
.footer-contact-line a:hover { color: var(--gold); }
.footer-hours { font-size: 0.75rem; font-style: italic; opacity: 0.7; margin-top: var(--space-sm); }

.footer-divider {
  width: 200px;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--red) 0px, var(--red) 8px, transparent 8px, transparent 12px);
  margin: var(--space-xl) auto;
}

.footer-brand-line {
  font-family: var(--font-pixel);
  font-size: 0.9rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-align: center;
  margin-bottom: var(--space-sm);
}

.footer-bottom {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 2px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-family: var(--font-pixel);
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: center;
}

.footer-copyright {
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer-copyright a { color: var(--text-muted); text-decoration: none; transition: color var(--duration); }
.footer-copyright a:hover { color: var(--gold); }

.footer-legal { display: flex; gap: var(--space-lg); }
.footer-legal a { font-family: var(--font-pixel); font-size: 0.75rem; color: var(--text-dim); transition: color var(--duration); text-transform: uppercase; }
.footer-legal a:hover { color: var(--gold); }

.footer-gameover {
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: var(--space-lg);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: blink-smooth 4s infinite;
  text-align: center;
}


/* ══════════════════════════════════════════════════════════════
   SCROLL TO TOP
   ══════════════════════════════════════════════════════════════ */
.scroll-to-top {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 44px;
  height: 44px;
  background: var(--red);
  color: var(--white);
  border: 4px solid var(--red-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all var(--duration) var(--ease);
  z-index: 90;
  box-shadow: var(--shadow-md);
}
.scroll-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-to-top:hover {
  background: var(--red-dark);
  transform: translate(-2px, -2px);
  box-shadow: var(--glow-red);
}


/* ══════════════════════════════════════════════════════════════
   UTILITY
   ══════════════════════════════════════════════════════════════ */
.module-intro {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
  max-width: var(--content-width);
}
.text-muted { color: var(--text-muted); }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Consent banner */
.consent-reopen { font-family: var(--font-pixel); color: var(--text-dim); font-size: 0.7rem; text-transform: uppercase; }
.consent-reopen:hover { color: var(--gold); }

/* === Section Color Schemes (Unified v3.4) === */
.section--scheme-primary { background: var(--scheme-primary-bg); color: var(--scheme-primary-text); }
.section--scheme-primary h2,
.section--scheme-primary h3 { color: var(--scheme-primary-text); text-shadow: none; }
.section--scheme-primary p,
.section--scheme-primary .section-subtitle,
.section--scheme-primary .intro-text { color: var(--scheme-primary-muted); }
.section--scheme-primary .testimonial-card,
.section--scheme-primary .feature-card,
.section--scheme-primary .highlight-card { color: var(--text); }
.section--scheme-primary .testimonial-text,
.section--scheme-primary .feature-card p { color: var(--text-muted); }
.section--scheme-primary .testimonial-author-name { color: var(--text); }
.section--scheme-primary .testimonial-author-role { color: var(--text-muted); }

.section--scheme-alt { background: var(--scheme-alt-bg); color: var(--scheme-alt-text); }

.section--scheme-dark { background: var(--scheme-dark-bg); color: var(--scheme-dark-text); }
.section--scheme-dark h2,
.section--scheme-dark h3,
.section--scheme-dark p { color: var(--scheme-dark-text); }
.section--scheme-dark .testimonial-card,
.section--scheme-dark .feature-card { color: var(--scheme-dark-text); }

.section--scheme-none,
.section--scheme-transparent { background: transparent; }

.section--text-light { color: var(--text); }
.section--text-light h2,
.section--text-light h3 { color: var(--text); }
.section--text-dark { color: var(--bg-deep); }


/* ══════════════════════════════════════════════════════════════
   GALLERY LIGHTBOX
   ══════════════════════════════════════════════════════════════ */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.gallery-lightbox.is-open { opacity: 1; pointer-events: all; }
.gallery-lightbox-inner {
  position: relative;
  max-width: min(90vw, 1200px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 4rem;
}
.gallery-lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  display: block;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--gold);
}
.gallery-lightbox-info { margin-top: 0.875rem; text-align: center; min-height: 2.5rem; }
.gallery-lightbox-caption { color: rgba(255,255,255,0.9); font-family: var(--font-pixel); font-size: 0.875rem; text-transform: uppercase; }
.gallery-lightbox-counter { color: var(--text-dim); font-family: var(--font-pixel); font-size: 0.75rem; margin-top: 0.25rem; }
.gallery-lightbox-close {
  position: fixed;
  top: 1.125rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.75);
  font-size: 2.25rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  z-index: 9001;
}
.gallery-lightbox-close:hover { color: var(--gold); }
.gallery-lightbox-prev, .gallery-lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(228,0,43,0.2);
  border: 4px solid rgba(228,0,43,0.4);
  color: #fff;
  font-size: 1.375rem;
  width: 3rem;
  height: 3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9001;
}
.gallery-lightbox-prev { left: 1rem; }
.gallery-lightbox-next { right: 1rem; }
.gallery-lightbox-prev:hover, .gallery-lightbox-next:hover { background: rgba(228,0,43,0.4); }
.gallery-lightbox-prev:disabled, .gallery-lightbox-next:disabled { opacity: 0.2; cursor: default; }


/* ══════════════════════════════════════════════════════════════
   ARCADE-* COMPONENT CLASSES
   Used exclusively by arcade-theme templates (arcade-prefixed)
   ══════════════════════════════════════════════════════════════ */

/* ── @keyframes (arcade-specific) ───────────────────────────── */
@keyframes scroll-credits {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

/* ── Section Labels & Titles (arcade-* prefix) ──────────────── */
.arcade-section-label {
  display: block;
  font-family: var(--font-pixel);
  font-size: 0.75rem;
  color: var(--blue-light);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.arcade-section-title {
  font-family: var(--font-pixel);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  text-shadow: 2px 2px 0 var(--red);
  margin-bottom: var(--space-md);
}

.arcade-section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: var(--space-md) auto 0;
  line-height: 1.7;
  text-align: center;
}

/* ── Section Divider (arcade-* prefix) ─────────────────────── */
.arcade-section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin: var(--space-md) 0 var(--space-xl);
}

.arcade-divider-line {
  height: 4px;
  background: var(--red);
  flex: 0 0 60px;
}
.arcade-divider-line--left  { flex: 0 0 60px; }
.arcade-divider-line--right { flex: 0 0 60px; }

.arcade-divider-squares {
  display: flex;
  gap: 4px;
  align-items: center;
}

/* Pixel squares for section dividers */
.arcade-pixel-sq {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex-shrink: 0;
}
.arcade-pixel-sq--red   { background: var(--red); }
.arcade-pixel-sq--gold  { background: var(--gold); }
.arcade-pixel-sq--blue  { background: var(--blue); }
.arcade-pixel-sq--green { background: var(--green); }


/* ══════════════════════════════════════════════════════════════
   ARCADE PIXEL CARD (Features Section)
   ══════════════════════════════════════════════════════════════ */
.arcade-pixel-card {
  background: var(--surface);
  border: 4px solid var(--border-subtle);
  padding: var(--space-2xl) var(--space-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: border-color var(--duration), transform var(--duration), box-shadow var(--duration);
}
.arcade-pixel-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 8px 0 0 rgba(0,0,0,0.3), var(--glow-gold);
}

/* Scanlines overlay inside card */
.arcade-pixel-card__scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.04) 3px,
    rgba(0, 0, 0, 0.04) 4px
  );
  pointer-events: none;
  z-index: 0;
}

/* Pixel corner decorations */
.arcade-pixel-card__corner {
  position: absolute;
  width: 8px;
  height: 8px;
  border: 3px solid var(--gold-dim);
}
.arcade-pixel-card__corner--tl { top: -3px;  left: -3px;  border-right: none; border-bottom: none; }
.arcade-pixel-card__corner--tr { top: -3px;  right: -3px; border-left: none;  border-bottom: none; }
.arcade-pixel-card__corner--bl { bottom: -3px; left: -3px;  border-right: none; border-top: none; }
.arcade-pixel-card__corner--br { bottom: -3px; right: -3px; border-left: none;  border-top: none; }

/* Icon inside pixel card */
.arcade-icon-pixel {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-lg);
  color: var(--gold);
  position: relative;
  z-index: 1;
}
.arcade-icon-pixel svg { width: 32px; height: 32px; }

/* Feature tag badge inside card */
.arcade-feature-tag {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  color: var(--gold);
  border: 2px solid var(--gold-dim);
  padding: 2px var(--space-sm);
  margin-top: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  position: relative;
  z-index: 1;
}

/* "feature-item" role alias used in features template */
.feature-item {
  /* Inherits from .arcade-pixel-card above */
}
.feature-item .feature-card-title,
.feature-item h3 {
  position: relative;
  z-index: 1;
}
.feature-item .feature-card-text,
.feature-item p {
  position: relative;
  z-index: 1;
}

/* Pixel-style link inside cards */
.arcade-pixel-link {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: var(--space-md);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color var(--duration), border-color var(--duration);
  position: relative;
  z-index: 1;
}
.arcade-pixel-link:hover {
  color: var(--white);
  border-bottom-color: var(--gold);
}


/* ══════════════════════════════════════════════════════════════
   ARCADE CARTRIDGE CARD (Blog Preview Section)
   ══════════════════════════════════════════════════════════════ */
.arcade-cartridge-card {
  background: var(--surface);
  border: 4px solid var(--blue);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--duration), box-shadow var(--duration);
  animation: crt-flicker 4s infinite;
  box-shadow: var(--glow-crt);
}
.arcade-cartridge-card:nth-child(2) { border-color: var(--red); }
.arcade-cartridge-card:nth-child(3) { border-color: var(--green); }
.arcade-cartridge-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 8px 8px 0 0 rgba(0,0,0,0.4), var(--glow-blue);
}
.arcade-cartridge-card:nth-child(2):hover { box-shadow: 8px 8px 0 0 rgba(0,0,0,0.4), var(--glow-red); }
.arcade-cartridge-card:nth-child(3):hover { box-shadow: 8px 8px 0 0 rgba(0,0,0,0.4), var(--glow-green); }

/* Scanlines overlay */
.arcade-cartridge-card__scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.08) 3px,
    rgba(0, 0, 0, 0.08) 4px
  );
  z-index: 3;
  pointer-events: none;
}

/* Cartridge top strip */
.arcade-cartridge-top {
  height: 20px;
  background: var(--surface-2);
  border-bottom: 2px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 4;
  flex-shrink: 0;
}

/* Notch in the cartridge top */
.arcade-cartridge-notch {
  width: 40px;
  height: 10px;
  background: var(--surface-3);
  border: 2px solid rgba(255,255,255,0.08);
  border-top: none;
}

/* Screen area (image or placeholder) */
.arcade-cartridge-screen {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  flex-shrink: 0;
}
.arcade-cartridge-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Pixel placeholder inside cartridge screen */
.arcade-pixel-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  background: var(--surface-3);
}
.arcade-pixel-placeholder svg { width: 48px; height: 48px; opacity: 0.5; }

/* Cartridge label (body / card content) */
.arcade-cartridge-label {
  padding: var(--space-lg);
  position: relative;
  z-index: 4;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.arcade-cartridge-label h3 {
  font-family: var(--font-pixel);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.3;
  margin-bottom: var(--space-xs);
}
.arcade-cartridge-label h3 a { color: var(--white); }
.arcade-cartridge-label h3 a:hover { color: var(--gold); }
.arcade-cartridge-label p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Category badge on cartridge card */
.arcade-category-badge {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bg-deep);
  background: var(--gold);
  padding: 2px 6px;
  margin-bottom: var(--space-xs);
}

/* Meta row (date) */
.arcade-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-top: 2px solid rgba(255,255,255,0.05);
  padding-top: var(--space-sm);
  margin-top: auto;
}

/* Cartridge bottom strip with connector pins */
.arcade-cartridge-bottom {
  height: 28px;
  background: var(--surface-2);
  border-top: 2px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 4;
  flex-shrink: 0;
}

.arcade-cartridge-pins {
  display: flex;
  gap: 6px;
  align-items: flex-end;
}
.arcade-cartridge-pins span {
  display: block;
  width: 6px;
  height: 12px;
  background: var(--gold-dim);
  opacity: 0.5;
}


/* ══════════════════════════════════════════════════════════════
   ARCADE CTA SECTION COMPONENTS
   ══════════════════════════════════════════════════════════════ */

/* Pixel border strips at top/bottom of CTA section */
.arcade-cta-pixelborder {
  position: absolute;
  left: 0;
  right: 0;
  height: 8px;
  display: flex;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}
.arcade-cta-pixelborder--top    { top: 0; }
.arcade-cta-pixelborder--bottom { bottom: 0; }
.arcade-cta-pixelborder span {
  flex: 1;
}
/* Alternating pixel color segments via nth-child */
.arcade-cta-pixelborder span:nth-child(1)  { background: var(--red); }
.arcade-cta-pixelborder span:nth-child(2)  { background: var(--gold); }
.arcade-cta-pixelborder span:nth-child(3)  { background: var(--blue); }
.arcade-cta-pixelborder span:nth-child(4)  { background: var(--green); }
.arcade-cta-pixelborder span:nth-child(5)  { background: var(--magenta); }
.arcade-cta-pixelborder span:nth-child(6)  { background: var(--cyan); }
.arcade-cta-pixelborder span:nth-child(7)  { background: var(--red); }
.arcade-cta-pixelborder span:nth-child(8)  { background: var(--gold); }
.arcade-cta-pixelborder span:nth-child(9)  { background: var(--blue); }
.arcade-cta-pixelborder span:nth-child(10) { background: var(--green); }

/* Insert Coin box (main content card inside CTA) */
.arcade-insert-coin-box {
  max-width: 600px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-xl);
  background: var(--surface-3);
  border: 4px solid var(--gold);
  box-shadow: var(--glow-gold), inset 0 0 60px rgba(0,0,0,0.3);
  position: relative;
  text-align: center;
}

/* Coin slot widget */
.arcade-coin-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
}
.arcade-coin-slot__hole {
  width: 48px;
  height: 8px;
  background: var(--bg-deep);
  border: 3px solid var(--text-dim);
  position: relative;
}
.arcade-coin-slot__hole::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 2px;
  background: var(--surface);
}
.arcade-coin-slot__label {
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

/* Lives display (row of pixel hearts) */
.arcade-lives-display {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  margin-bottom: var(--space-lg);
  color: var(--red);
}

/* Individual pixel heart SVG */
.arcade-pixel-heart {
  display: block;
  color: var(--red);
  filter: drop-shadow(0 0 4px rgba(228,0,43,0.5));
}

/* Credit display at bottom of insert coin box */
.arcade-credit-display {
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  color: var(--green);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: var(--space-lg);
  text-shadow: var(--glow-green);
  animation: blink-smooth 2.5s infinite;
}

/* Highlighted word in CTA title */
.arcade-highlight {
  color: var(--gold);
  text-shadow: 2px 2px 0 var(--gold-dim);
}

/* ── Arcade Buttons (btn-arcade variants) ─────────────────── */
.btn-arcade {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-pixel);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: var(--space-md) var(--space-2xl);
  cursor: pointer;
  text-decoration: none;
  border: 4px solid transparent;
  box-shadow: 4px 4px 0 0 rgba(0,0,0,0.4);
  transition: transform var(--duration), box-shadow var(--duration), background var(--duration), color var(--duration);
}
.btn-arcade:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 0 rgba(0,0,0,0.4);
}
.btn-arcade:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 0 rgba(0,0,0,0.4);
}

.btn-arcade--primary {
  color: var(--bg-deep);
  background: var(--gold);
  border-color: var(--gold-dim);
}
.btn-arcade--primary:hover {
  color: var(--bg-deep);
  box-shadow: 6px 6px 0 0 rgba(0,0,0,0.4), var(--glow-gold);
}

.btn-arcade--outline {
  color: var(--blue-light);
  background: transparent;
  border-color: var(--blue);
  box-shadow: 4px 4px 0 0 rgba(0,116,217,0.3);
}
.btn-arcade--outline:hover {
  background: var(--blue);
  color: var(--white);
  box-shadow: 6px 6px 0 0 rgba(0,116,217,0.3);
}

.btn-arcade--blink {
  animation: blink-smooth 2s infinite;
}
.btn-arcade--blink:hover {
  animation: none;
}


/* ══════════════════════════════════════════════════════════════
   ARCADE STATS CABINET (Stats Section)
   ══════════════════════════════════════════════════════════════ */
.arcade-stats-cabinet {
  background: var(--surface-3);
  border: 4px solid var(--gold);
  box-shadow: var(--glow-gold), inset 0 0 80px rgba(0,0,0,0.4);
  position: relative;
  overflow: hidden;
  padding: var(--space-2xl) var(--space-xl) var(--space-xl);
}
/* CRT curve vignette */
.arcade-stats-cabinet::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.35) 100%);
  z-index: 0;
  pointer-events: none;
}

/* Scanlines inside cabinet */
.arcade-stats-cabinet__scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.08) 2px,
    rgba(0, 0, 0, 0.08) 4px
  );
  z-index: 1;
  pointer-events: none;
}

/* Header and titles inside cabinet sit above scanlines */
.arcade-stats-cabinet .stats-header,
.arcade-stats-cabinet .stats-grid {
  position: relative;
  z-index: 2;
}

/* Individual stat item */
.arcade-stat-item {
  text-align: center;
  padding: var(--space-md);
  position: relative;
  z-index: 2;
}

/* CRT-style "screen" around the stat value */
.arcade-stat-screen {
  background: var(--surface-3);
  border: 3px solid var(--green-dark);
  box-shadow: inset 0 0 12px rgba(46,204,64,0.15), 0 0 8px rgba(46,204,64,0.1);
  padding: var(--space-md) var(--space-sm);
  margin-bottom: var(--space-sm);
  position: relative;
}
.arcade-stat-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,0.05) 3px,
    rgba(0,0,0,0.05) 4px
  );
  pointer-events: none;
}

/* Stat value (green, glowing, monospace) */
.arcade-stat-value {
  font-family: var(--font-pixel);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  text-shadow: 0 0 10px rgba(46,204,64,0.5), 0 0 30px rgba(46,204,64,0.2);
  position: relative;
  z-index: 1;
}

/* Stat label below the value */
.arcade-stat-label {
  font-family: var(--font-pixel);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: var(--space-xs);
  display: block;
}

/* Decorative divider below each stat */
.arcade-stat-divider {
  width: 32px;
  height: 2px;
  background: var(--gold-dim);
  margin: var(--space-sm) auto 0;
  opacity: 0.4;
}


/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid > *:last-child:nth-child(odd) { grid-column: span 2; }
  .fss-grid { grid-template-columns: 1fr; }
  .fss-grid.reverse { direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
  .footer-brand { grid-column: span 2; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid .blog-card:nth-child(3) {
    grid-column: span 2;
    max-width: 500px;
    margin: 0 auto;
  }
  .credits-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root {
    --space-3xl: 4rem;
    --space-4xl: 5rem;
  }

  .nav-list {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-deep);
    border-bottom: 4px solid var(--red);
    flex-direction: column;
    padding: var(--space-md) 0;
    gap: 0;
  }
  .nav-list.open { display: flex; }
  .nav-list > .nav-item > a {
    padding: var(--space-md) var(--space-lg);
    width: 100%;
    text-align: left;
    height: auto;
    line-height: 1.5;
    min-height: 48px;
    border-bottom: 1px solid var(--border-subtle);
  }
  .nav-list > .nav-item > a::before { display: none; }
  .nav-list > .nav-item > a.active { border-left: 4px solid var(--gold); }
  .nav-toggle { display: flex; flex-direction: column; }
  .header-cta { display: none; }
  .header-search { display: none; }

  .sub-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: var(--space-lg);
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    background: transparent;
  }
  .sub-menu::before { display: none; }
  .nav-item.has-children.is-open > .sub-menu { display: block; }
  .sub-menu--flyout { position: static !important; }

  .hero-section { min-height: auto; padding: var(--space-2xl) 0; }
  .hero-frame { padding: var(--space-xl) var(--space-lg); }
  .hero-title { font-size: clamp(2rem, 8vw, 3rem); }
  .hero-actions { flex-direction: column; align-items: center; }

  .blog-grid { grid-template-columns: 1fr; }
  .blog-grid .blog-card:nth-child(3) { grid-column: span 1; max-width: none; }
  .features-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
  .features-grid > *:last-child:nth-child(odd) { grid-column: span 1; }
  .credits-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
  .contact-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal { justify-content: center; }

  .highscore-table thead th,
  .highscore-table tbody td {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.85rem;
  }

  .hero-video-inline-wrap--center { margin-top: 1.5rem; }
  .hero--video-inline .hero-split-inner { flex-direction: column; align-items: center; }
  .gallery-images-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.375rem; }
  .gallery-lightbox-inner { padding: 0 3rem; }
  .gallery-lightbox-prev { left: 0.25rem; }
  .gallery-lightbox-next { right: 0.25rem; }
}

@media (max-width: 480px) {
  :root {
    --space-3xl: 3rem;
    --space-4xl: 4rem;
  }
  .hero-frame {
    padding: var(--space-lg) var(--space-md);
    margin: 0 var(--space-sm);
  }
  .highscore-table thead th:nth-child(2),
  .highscore-table tbody td:nth-child(2) {
    display: none;
  }
  .logo-text { font-size: 1.1rem; }
  .blog-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}


/* ══════════════════════════════════════════════════════════════
   REDUCED MOTION
   ══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .animate-on-scroll { opacity: 1; transform: none; }
}


/* ══════════════════════════════════════════════════════════════
   PRINT
   ══════════════════════════════════════════════════════════════ */
@media print {
  .site-header, .site-footer, .scroll-to-top, .nav-toggle, .theme-toggle,
  .breadcrumbs, .blog-pagination { display: none; }
  body { background: white; color: black; font-size: 12pt; }
  body::before { display: none; }
  .container, .container-narrow { max-width: 100%; padding: 0; }
  a { color: inherit; text-decoration: underline; }
}
