/* ═══════════════════════════════════════════════════════════════════════
   Focus Garden — Landing Page Styles
   Design tokens from the app: colors.ts
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Google Fonts ─────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ── CSS Custom Properties (Design Tokens) ───────────────────────────── */
:root {
  /* Core palette — from Focus Garden colors.ts */
  --background: #1B1B32;
  --panel: #2D2A4A;
  --border: #F4D35E;
  --primary: #7BD389;
  --secondary: #6EC6FF;
  --danger: #EF476F;
  --text: #FFF8E7;
  --muted: #B8B8D1;
  --shadow: #0D0D1A;
  --locked: #5A5A77;
  --panel-alt: #3B3561;
  --grass-dark: #2E5E3D;
  --soil: #5B3A29;
  --sky: #223A5E;
  --wood: #8B5A2B;
  --wood-dark: #4E2F1B;
  --parchment: #F8E7B0;
  --gold-dark: #B8842A;
  --glass: rgba(45, 42, 74, 0.68);
  --glass-light: rgba(255, 248, 231, 0.08);

  /* Rarity colors */
  --rarity-common: #7BD389;
  --rarity-rare: #6EC6FF;
  --rarity-epic: #C084FC;
  --rarity-legendary: #F4D35E;
  --rarity-master: #fc861e;
  --rarity-wonders: #b260ef;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Typography */
  --font-pixel: 'Press Start 2P', monospace;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

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

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 200ms var(--ease-out);
  --transition-normal: 400ms var(--ease-out);
  --transition-slow: 600ms var(--ease-out);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a:hover {
  color: var(--border);
}

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

ul,
ol {
  list-style: none;
}

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

.section-title {
  font-family: var(--font-pixel);
  font-size: clamp(1rem, 3vw, 1.5rem);
  color: var(--border);
  text-align: center;
  margin-bottom: var(--space-sm);
  line-height: 1.8;
  text-shadow: 3px 3px 0 var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-title svg {
  flex-shrink: 0;
  filter: drop-shadow(2px 2px 0 var(--shadow));
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--muted);
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-3xl);
  font-weight: 500;
  margin-bottom: 20px;
}

/* ── Scrollbar Styling ───────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--background);
}

::-webkit-scrollbar-thumb {
  background: var(--panel-alt);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border);
}

/* ── Navigation ──────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-md) 0;
  transition: background var(--transition-normal), box-shadow var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(27, 27, 50, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(244, 211, 94, 0.15);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav-title {
  font-family: var(--font-pixel);
  font-size: 0.85rem;
  color: var(--border);
  text-shadow: 2px 2px 0 var(--shadow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1.1vw, var(--space-lg));
  flex-wrap: nowrap;
}

.nav-links a {
  font-weight: 700;
  font-size: clamp(0.48rem, 0.85vw, 0.6rem);
  color: var(--parchment);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--border);
  transition: width var(--transition-fast);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid rgba(244, 211, 94, 0.4);
  color: var(--border);
  padding: 6px;
  cursor: pointer;
  line-height: 1;
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.nav-toggle:hover {
  border-color: var(--border);
  background: rgba(244, 211, 94, 0.08);
}

.nav-download-btn {
  padding: 6px 14px;
  font-size: clamp(0.45rem, 0.9vw, 0.6rem);
  white-space: nowrap;
  flex-shrink: 0;
  color: var(--background) !important;
}

/* ── Hero Section ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: var(--space-4xl) var(--space-lg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: blur(2px);
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(27, 27, 50, 0.6) 0%,
      rgba(27, 27, 50, 0.3) 40%,
      rgba(27, 27, 50, 0.7) 70%,
      rgba(27, 27, 50, 1) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}

.hero-logo {
  width: 180px;
  height: 180px;
  margin: 0 auto var(--space-lg);
  image-rendering: pixelated;
  filter:
    drop-shadow(0 0 18px rgba(123, 211, 137, 0.6)) drop-shadow(0 0 40px rgba(123, 211, 137, 0.25)) drop-shadow(0 6px 20px rgba(0, 0, 0, 0.7));
  animation: floatLogo 4s ease-in-out infinite;
}

@keyframes floatLogo {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

.hero h1 {
  font-family: var(--font-pixel);
  font-size: clamp(1.5rem, 5vw, 2.8rem);
  color: var(--border);
  margin-bottom: var(--space-md);
  line-height: 1.4;
  text-shadow: 4px 4px 0 var(--shadow);
}

.hero h1 .highlight {
  color: var(--primary);
  text-shadow: 4px 4px 0 var(--shadow), 0 0 30px rgba(123, 211, 137, 0.3);
}

.hero-description {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--parchment);
  max-width: 600px;
  margin: 0 auto var(--space-xl);
  font-weight: 500;
  line-height: 1.8;
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  background: var(--glass);
  border: 1px solid rgba(244, 211, 94, 0.3);
  color: var(--parchment);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.hero-badge svg {
  display: block;
  flex-shrink: 0;
}

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

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 3px solid var(--border);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: var(--border);
  color: var(--background);
  box-shadow:
    4px 4px 0 var(--gold-dark),
    0 0 20px rgba(244, 211, 94, 0.2);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow:
    4px 7px 0 var(--gold-dark),
    0 0 40px rgba(244, 211, 94, 0.3);
  color: var(--background);
}

.btn-secondary {
  background: transparent;
  color: var(--border);
}

.btn-secondary:hover {
  background: var(--glass);
  transform: translateY(-3px);
  color: var(--border);
}

/* ── Floating Particles (Hero) ───────────────────────────────────────── */
.particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--border);
  border-radius: 50%;
  opacity: 0;
  animation: sparkle var(--duration) var(--delay) infinite;
}

@keyframes sparkle {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.5);
  }

  50% {
    opacity: 0.8;
  }

  100% {
    opacity: 0;
    transform: translateY(-120px) scale(0);
  }
}

/* ── Features Section ────────────────────────────────────────────────── */
.features {
  padding: var(--space-4xl) 0;
  position: relative;
  overflow: clip;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.feature-card {
  background: var(--glass);
  border: 2px solid rgba(244, 211, 94, 0.15);
  padding: var(--space-xl);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--rarity-epic));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(244, 211, 94, 0.35);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 30px rgba(244, 211, 94, 0.05);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: var(--space-md);
  background: rgba(123, 211, 137, 0.08);
  border: 2px solid rgba(123, 211, 137, 0.2);
  color: var(--primary);
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.feature-card:nth-child(1) .feature-icon {
  --fi: var(--border);
  background: rgba(244, 211, 94, 0.08);
  border-color: rgba(244, 211, 94, 0.25);
  color: var(--border);
}

.feature-card:nth-child(2) .feature-icon {
  --fi: var(--primary);
  background: rgba(123, 211, 137, 0.08);
  border-color: rgba(123, 211, 137, 0.25);
  color: var(--primary);
}

.feature-card:nth-child(3) .feature-icon {
  --fi: var(--secondary);
  background: rgba(110, 198, 255, 0.08);
  border-color: rgba(110, 198, 255, 0.25);
  color: var(--secondary);
}

.feature-card:nth-child(4) .feature-icon {
  --fi: var(--rarity-epic);
  background: rgba(192, 132, 252, 0.08);
  border-color: rgba(192, 132, 252, 0.25);
  color: var(--rarity-epic);
}

.feature-card:nth-child(5) .feature-icon {
  --fi: var(--parchment);
  background: rgba(248, 231, 176, 0.08);
  border-color: rgba(248, 231, 176, 0.25);
  color: var(--parchment);
}

.feature-card:nth-child(6) .feature-icon {
  --fi: var(--rarity-master);
  background: rgba(252, 134, 30, 0.08);
  border-color: rgba(252, 134, 30, 0.25);
  color: var(--rarity-master);
}

.feature-card:hover .feature-icon {
  filter: brightness(1.15);
  box-shadow: 0 0 22px color-mix(in srgb, var(--fi, var(--primary)) 30%, transparent);
}

.feature-icon svg {
  display: block;
  filter: drop-shadow(0 0 6px rgba(123, 211, 137, 0.3));
}

.feature-title {
  font-family: var(--font-pixel);
  font-size: 0.75rem;
  color: var(--border);
  margin-bottom: var(--space-sm);
  text-shadow: 2px 2px 0 var(--shadow);
  line-height: 1.6;
}

.feature-text {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ── Showcase Section (Garden World) ─────────────────────────────────── */
.showcase {
  padding: var(--space-4xl) 0;
  position: relative;
  overflow: clip;
}

.showcase-bg-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(123, 211, 137, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.showcase-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.showcase-image {
  position: relative;
}

.showcase-image img {
  border-radius: var(--radius-lg);
  border: 3px solid rgba(244, 211, 94, 0.3);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(244, 211, 94, 0.05);
  transition: transform var(--transition-normal);
}

.showcase-image:hover img {
  transform: scale(1.02);
}

.showcase-text h2 {
  font-family: var(--font-pixel);
  font-size: clamp(0.9rem, 2.5vw, 1.3rem);
  color: var(--border);
  margin-bottom: var(--space-md);
  line-height: 1.8;
  text-shadow: 3px 3px 0 var(--shadow);
}

.showcase-text p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.showcase-text .highlight-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--glass);
  border: 1px solid rgba(244, 211, 94, 0.12);
  transition: all var(--transition-fast);
}

.highlight-item:hover {
  border-color: rgba(244, 211, 94, 0.3);
  background: rgba(45, 42, 74, 0.85);
}

.highlight-item-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.highlight-item-text h4 {
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  color: var(--primary);
  margin-bottom: var(--space-xs);
  line-height: 1.6;
}

.highlight-item-text p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0;
  line-height: 1.6;
}

/* ── Items Gallery ───────────────────────────────────────────────────── */
.gallery {
  padding: var(--space-4xl) 0;
  background: linear-gradient(180deg, transparent, rgba(45, 42, 74, 0.3), transparent);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--space-lg);
  max-width: 900px;
  margin: 0 auto;
}

.gallery-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-lg);
  background: var(--glass);
  border: 2px solid rgba(244, 211, 94, 0.1);
  transition: all var(--transition-normal);
  cursor: default;
}

.gallery-item:hover {
  transform: translateY(-8px) scale(1.05);
  border-color: var(--item-color, var(--border));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3), 0 0 20px color-mix(in srgb, var(--item-color, var(--border)) 20%, transparent);
}

.gallery-item img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  image-rendering: pixelated;
  margin-bottom: var(--space-sm);
  transition: transform var(--transition-fast);
}

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

.gallery-item-name {
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  color: var(--parchment);
  text-align: center;
  line-height: 1.6;
}

.gallery-item-rarity {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--item-color, var(--border));
  margin-top: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── Wonders Section ─────────────────────────────────────────────────── */
.wonders {
  padding: var(--space-4xl) 0;
  position: relative;
}

.wonders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.wonder-card {
  background: linear-gradient(135deg, rgba(45, 42, 74, 0.8), rgba(59, 53, 97, 0.6));
  border: 2px solid rgba(178, 96, 239, 0.25);
  padding: var(--space-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.wonder-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--rarity-wonders), var(--rarity-legendary), var(--rarity-epic));
  opacity: 0;
  z-index: -1;
  transition: opacity var(--transition-normal);
}

.wonder-card:hover {
  transform: translateY(-6px);
  border-color: var(--rarity-wonders);
  box-shadow:
    0 20px 60px rgba(178, 96, 239, 0.15),
    0 0 40px rgba(178, 96, 239, 0.05);
}

.wonder-card-image {
  width: 120px;
  height: 120px;
  margin: 0 auto var(--space-md);
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 15px rgba(178, 96, 239, 0.3));
  transition: transform var(--transition-normal);
}

.wonder-card:hover .wonder-card-image {
  transform: scale(1.1);
}

.wonder-card h3 {
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  color: var(--rarity-wonders);
  margin-bottom: var(--space-sm);
  line-height: 1.8;
  text-shadow: 2px 2px 0 var(--shadow);
}

.wonder-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
  font-style: italic;
}

/* ── Features Showcase Section ───────────────────────────────────────── */
.features-showcase {
  padding: var(--space-4xl) 0;
  position: relative;
}

.features-showcase-tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

.tab-btn {
  background: var(--glass);
  border: 2px solid rgba(244, 211, 94, 0.15);
  color: var(--muted);
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  padding: var(--space-sm) var(--space-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  letter-spacing: 0.5px;
}

.tab-btn:hover,
.tab-btn.active {
  background: rgba(244, 211, 94, 0.12);
  border-color: var(--border);
  color: var(--border);
}

.features-showcase-viewer {
  position: relative;
  min-height: 520px;
}

.feature-panel {
  display: none;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-3xl);
  align-items: center;
}

.feature-panel.active {
  display: grid;
}

.feature-frame {
  position: relative;
  display: flex;
  justify-content: center;
}

.feature-frame img {
  max-width: 300px;
  width: 100%;
  border-radius: var(--radius-lg);
  border: 3px solid rgba(244, 211, 94, 0.3);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(244, 211, 94, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.feature-frame:hover img {
  transform: translateY(-6px) scale(1.01);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(244, 211, 94, 0.1);
}

.feature-info h3 {
  font-family: var(--font-pixel);
  font-size: clamp(0.7rem, 2vw, 1rem);
  color: var(--border);
  margin-bottom: var(--space-md);
  line-height: 1.8;
  text-shadow: 3px 3px 0 var(--shadow);
}

.feature-info>p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.feature-list li {
  color: var(--parchment);
  font-size: 0.9rem;
  font-weight: 600;
  padding: var(--space-sm) var(--space-md);
  background: var(--glass);
  border-left: 3px solid var(--primary);
}

.codex-detail-showcase {
  margin-top: var(--space-3xl);
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  padding: var(--space-xl);
  background: var(--glass);
  border: 2px solid rgba(244, 211, 94, 0.1);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.codex-detail-showcase img {
  max-width: 160px;
  border-radius: var(--radius-md);
  border: 2px solid rgba(244, 211, 94, 0.2);
  flex-shrink: 0;
}

.codex-detail-showcase p {
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
  line-height: 1.7;
}

/* ── Rarity Legend ───────────────────────────────────────────────────── */
.rarity-legend {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

.rarity-pill {
  display: inline-block;
  padding: 4px 14px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--c, var(--border));
  border: 2px solid var(--c, var(--border));
  background: color-mix(in srgb, var(--c, var(--border)) 10%, transparent);
}

/* ── Wonder Phases ───────────────────────────────────────────────────── */
.wonder-phases {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  align-items: flex-end;
}

.wonder-phase-img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  image-rendering: pixelated;
  opacity: 0.35;
  filter: grayscale(0.6);
  transition: all var(--transition-fast);
}

.wonder-phase-img.active {
  width: 100px;
  height: 100px;
  opacity: 1;
  filter: grayscale(0) drop-shadow(0 0 14px rgba(178, 96, 239, 0.45));
}

.wonder-card:hover .wonder-phase-img {
  opacity: 0.55;
  filter: grayscale(0.2);
}

.wonder-card:hover .wonder-phase-img.active {
  opacity: 1;
  filter: grayscale(0) drop-shadow(0 0 20px rgba(178, 96, 239, 0.6));
  transform: scale(1.08);
}

.wonder-phases-label {
  font-family: var(--font-pixel);
  font-size: 0.45rem;
  color: var(--rarity-epic);
  letter-spacing: 1px;
  margin-bottom: var(--space-sm);
  text-align: center;
}

/* ── Pets Section ────────────────────────────────────────────────────── */
.pets {
  padding: var(--space-4xl) 0;
  background: linear-gradient(180deg, transparent, rgba(34, 58, 94, 0.15), transparent);
}

.pets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.pet-card {
  background: var(--glass);
  border: 2px solid rgba(110, 198, 255, 0.15);
  padding: var(--space-xl);
  text-align: center;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.pet-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.pet-card:hover {
  transform: translateY(-6px);
  border-color: rgba(110, 198, 255, 0.4);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 30px rgba(110, 198, 255, 0.06);
}

.pet-card:hover::before {
  opacity: 1;
}

.pet-gif-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto var(--space-sm);
}

.pet-gif {
  position: absolute;
  inset: 0;
  width: 120px;
  height: 120px;
  object-fit: contain;
  image-rendering: pixelated;
  opacity: 0;
  transition: opacity 0.6s ease;
  filter: drop-shadow(0 4px 12px rgba(110, 198, 255, 0.25));
}

.pet-gif.active {
  opacity: 1;
}

.pet-state-label {
  font-family: var(--font-pixel);
  font-size: 0.45rem;
  color: var(--secondary);
  text-align: center;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
  min-height: 1em;
  transition: opacity 0.3s ease;
}

.pet-state-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-bottom: var(--space-md);
}

.pet-dot {
  width: 5px;
  height: 5px;
  background: var(--locked);
  border-radius: 50%;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.pet-dot.active {
  background: var(--secondary);
  transform: scale(1.4);
}

.pet-card h4 {
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  color: var(--secondary);
  margin-bottom: var(--space-sm);
  line-height: 1.6;
}

.pet-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.pets-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
}

/* ── Stats Section ───────────────────────────────────────────────────── */
.stats {
  padding: var(--space-4xl) 0;
  background: linear-gradient(180deg, transparent, rgba(34, 58, 94, 0.2), transparent);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
  text-align: center;
}

.stat-item {
  padding: var(--space-xl);
}

.stat-number {
  font-family: var(--font-pixel);
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: var(--border);
  text-shadow: 3px 3px 0 var(--shadow);
  margin-bottom: var(--space-sm);
  line-height: 1.4;
}

.stat-label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

/* ── Achievements Preview ────────────────────────────────────────────── */
.achievements {
  padding: var(--space-4xl) 0;
}

.achievements-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  max-width: 900px;
  margin: 0 auto;
}

.achievement-badge {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm);
  background: var(--glass);
  border: 1px solid rgba(244, 211, 94, 0.15);
  transition: all var(--transition-fast);
}

.achievement-badge:hover {
  border-color: var(--border);
  background: rgba(45, 42, 74, 0.9);
  transform: translateY(-2px);
}

.achievement-badge:hover .achievement-icon {
  background: rgba(244, 211, 94, 0.16);
  border-color: var(--border);
}

.achievement-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: rgba(244, 211, 94, 0.08);
  border: 1px solid rgba(244, 211, 94, 0.2);
  color: var(--border);
}

.achievement-info h4 {
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  color: var(--border);
  line-height: 1.6;
}

.achievement-info p {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
}

/* ── CTA Section ─────────────────────────────────────────────────────── */
.cta {
  padding: var(--space-4xl) 0;
  text-align: center;
  position: relative;
  overflow: clip;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(244, 211, 94, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta h2 {
  font-family: var(--font-pixel);
  font-size: clamp(1rem, 3vw, 1.6rem);
  color: var(--border);
  margin-bottom: var(--space-md);
  line-height: 1.8;
  text-shadow: 3px 3px 0 var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 550px;
  margin: 0 auto var(--space-xl);
  line-height: 1.8;
}

/* ── Footer ──────────────────────────────────────────────────────────── */
/* ═══════════════════ Ambiance Section ═══════════════════ */
.ambiance {
  padding: var(--space-xl) 0;
}

/* Portrait BG gallery */
.bg-gallery {
  display: flex;
  gap: 10px;
  padding-top: var(--space-lg);
  align-items: stretch;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.bg-card {
  flex: 1 1 0;
  min-width: 0;
  max-width: 150px;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.07);
  position: relative;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  /* portrait ratio */
  aspect-ratio: 9 / 16;
}

.bg-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.bg-card:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: var(--primary);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--primary);
  z-index: 2;
}

.bg-card-more {
  flex: 1 1 0;
  min-width: 0;
  max-width: 150px;
  border-radius: 14px;
  border: 2px dashed rgba(123, 211, 137, 0.25);
  aspect-ratio: 9 / 16;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--primary);
  background: rgba(123, 211, 137, 0.04);
}

.bg-card-more span {
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
}

.bg-card-more svg {
  opacity: 0.5;
}

.ambiance-caption {
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
  font-family: var(--font-pixel);
  margin-top: var(--space-sm);
}

/* Mobile BG slideshow dots (hidden on desktop) */
.bg-slide-dots {
  display: none;
  justify-content: center;
  gap: 8px;
  margin-top: var(--space-sm);
}

.bg-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--locked);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.bg-dot.active {
  background: var(--primary);
  transform: scale(1.4);
}

/* Sound categories row */
.ambiance-sounds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

@media (max-width: 768px) {
  .ambiance-sounds {
    grid-template-columns: 1fr;
  }
}


.sound-category {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: var(--space-md);
}

.sound-category-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-pixel);
  font-size: 0.68rem;
  color: var(--primary);
  margin-bottom: var(--space-sm);
  letter-spacing: 0.05em;
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid rgba(123, 211, 137, 0.12);
}

.sound-category-header svg {
  flex-shrink: 0;
}

.sound-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sound-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--muted);
  padding: 3px 0;
}

.sound-list li>svg {
  flex-shrink: 0;
  color: var(--primary);
  opacity: 0.6;
}

/* Play/stop button */
.sound-play-btn {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid rgba(123, 211, 137, 0.3);
  background: rgba(123, 211, 137, 0.07);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, transform 0.15s;
  padding: 0;
}

.sound-play-btn:hover {
  background: rgba(123, 211, 137, 0.18);
  border-color: var(--primary);
  transform: scale(1.1);
}

.sound-play-btn.playing {
  background: rgba(123, 211, 137, 0.22);
  border-color: var(--primary);
}

.sound-play-btn .icon-stop {
  display: none;
}

.sound-play-btn.playing .icon-play {
  display: none;
}

.sound-play-btn.playing .icon-stop {
  display: block;
}

/* ═══════════════════ Footer ═══════════════════ */
.footer {
  padding: var(--space-xl) 0;
  border-top: 1px solid rgba(244, 211, 94, 0.1);
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.footer-logo {
  width: 36px;
  height: 36px;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 6px rgba(123, 211, 137, 0.4));
}

.footer-title {
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  color: var(--border);
}

.footer-text {
  color: var(--locked);
  font-size: 0.85rem;
}

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

.footer-links a {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

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

/* ── Scroll Animations ───────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.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;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ── Mobile nav menu ─────────────────────────────────────────────────── */
.nav-links.open {
  display: flex;
}

/* ── Responsive ──────────────────────────────────────────────────────── */

/* Tablet — 900px */
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

  .feature-panel.active {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .feature-frame img {
    max-width: 260px;
    margin: 0 auto;
  }

  .features-showcase-viewer {
    min-height: unset;
  }
}

/* Mobile — 768px */
@media (max-width: 768px) {

  /* Nav */
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(27, 27, 50, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: var(--space-lg);
    gap: var(--space-md);
    border-bottom: 2px solid rgba(244, 211, 94, 0.2);
    z-index: 999;
  }

  .nav-links a {
    font-size: 0.75rem;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  /* Container */
  .container {
    padding: 0 var(--space-md);
  }

  /* Hero */
  .hero {
    padding: var(--space-3xl) var(--space-md);
    min-height: 100svh;
  }

  .hero-logo {
    width: 140px;
    height: 140px;
  }

  .hero-description {
    font-size: 0.95rem;
  }

  .hero-badges {
    gap: var(--space-sm);
  }

  .hero-badge {
    font-size: 0.7rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  /* Features grid */
  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  /* Features showcase */
  .features-showcase-tabs {
    gap: 4px;
  }

  .tab-btn {
    font-size: 0.45rem;
    padding: 6px 10px;
  }

  .feature-panel.active {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .feature-frame img {
    max-width: 220px;
    margin: 0 auto;
  }

  .feature-info h3 {
    font-size: 0.7rem;
  }

  .codex-detail-showcase {
    flex-direction: column;
    text-align: center;
    gap: var(--space-md);
  }

  .codex-detail-showcase img {
    max-width: 180px;
    margin: 0 auto;
  }

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

  .gallery-item {
    padding: var(--space-md);
  }

  .gallery-item img {
    width: 60px;
    height: 60px;
  }

  /* Wonders */
  .wonders-grid {
    grid-template-columns: 1fr;
  }

  /* Coins & Prestige */
  .coins-layout,
  .prestige-layout {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .coins-spend-amount {
    min-width: 54px;
    font-size: 0.5rem;
  }

  .prestige-multiplier-demo {
    padding: var(--space-md);
  }

  /* Characters */
  .pets-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  /* Ambiance sounds */
  .ambiance-sounds {
    grid-template-columns: 1fr;
  }

  /* BG gallery: single card slideshow */
  .bg-gallery {
    position: relative;
    /* portrait ratio: height = width × 16/9, capped so it doesn't take whole screen */
    aspect-ratio: 9 / 16;
    max-height: 70vh;
    gap: 0;
    overflow: visible;
  }

  .bg-card,
  .bg-card-more {
    position: absolute;
    inset: 0;
    max-width: 100%;
    width: 100%;
    aspect-ratio: unset;
    border-radius: 14px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
  }

  .bg-card.slide-active,
  .bg-card-more.slide-active {
    opacity: 1;
    pointer-events: auto;
  }

  .bg-slide-dots {
    display: flex;
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  /* Achievements */
  .achievement-badge {
    width: 100%;
    max-width: 380px;
  }

  /* Footer */
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
  }

  /* Quote */
  .quote-card {
    padding: var(--space-lg) var(--space-md);
  }

  .quote-card blockquote {
    font-size: 0.95rem;
  }

  /* Section subtitle less bottom margin */
  .section-subtitle {
    margin-bottom: var(--space-xl);
  }
}

/* Small mobile — 480px */
@media (max-width: 480px) {
  .hero h1 {
    font-size: clamp(1rem, 6vw, 1.4rem);
  }

  .hero-logo {
    width: 110px;
    height: 110px;
  }

  .btn {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.6rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: clamp(0.8rem, 4vw, 1.1rem);
    gap: 8px;
  }

  .section-title svg {
    width: 20px;
    height: 20px;
  }

  .tab-btn {
    font-size: 0.4rem;
    padding: 5px 8px;
  }


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

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

  .wonders-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
  }

  .nav-title {
    font-size: 0.65rem;
  }
}

/* ── Focus Coins Section ─────────────────────────────────────────────── */
.coins-section {
  padding: var(--space-4xl) 0;
  position: relative;
}

.coins-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.coins-col-title {
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  color: var(--border);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.6;
  text-shadow: 2px 2px 0 var(--shadow);
}

.coins-col-title svg {
  flex-shrink: 0;
  color: var(--border);
}

.coins-earn-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.coins-earn-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--glass);
  border: 1px solid rgba(244, 211, 94, 0.1);
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.coins-earn-card:hover {
  border-color: rgba(244, 211, 94, 0.3);
  transform: translateX(4px);
}

.coins-earn-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--eic, var(--border)) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--eic, var(--border)) 30%, transparent);
  color: var(--eic, var(--border));
}

.coins-earn-body h4 {
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  color: var(--parchment);
  margin-bottom: var(--space-xs);
  line-height: 1.7;
}

.coins-earn-body p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
}

.coins-spend-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--space-lg);
}

.coins-spend-list li {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 10px var(--space-md);
  background: var(--glass);
  border-left: 3px solid var(--border);
  transition: background var(--transition-fast);
}

.coins-spend-list li:hover {
  background: rgba(45, 42, 74, 0.85);
}

.coins-spend-amount {
  font-family: var(--font-pixel);
  font-size: 0.58rem;
  color: var(--border);
  min-width: 68px;
  flex-shrink: 0;
  text-shadow: 1px 1px 0 var(--shadow);
}

.coins-spend-label {
  font-size: 0.88rem;
  color: var(--parchment);
  font-weight: 600;
}

.coins-spend-note {
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
  text-align: center;
  padding: var(--space-sm) var(--space-md);
  border: 1px dashed rgba(244, 211, 94, 0.2);
}

/* ── Prestige Section ────────────────────────────────────────────────── */
.prestige-section {
  padding: var(--space-4xl) 0;
  position: relative;
  background: linear-gradient(180deg, transparent, rgba(59, 53, 97, 0.2), transparent);
}

.prestige-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.prestige-how {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.prestige-step {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
}

.prestige-step-num {
  font-family: var(--font-pixel);
  font-size: 0.75rem;
  color: var(--border);
  background: rgba(244, 211, 94, 0.08);
  border: 2px solid rgba(244, 211, 94, 0.25);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-shadow: 1px 1px 0 var(--shadow);
}

.prestige-step-body h4 {
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  color: var(--parchment);
  margin-bottom: var(--space-xs);
  line-height: 1.7;
}

.prestige-step-body p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
}

.prestige-step-body strong {
  color: var(--border);
  font-weight: 800;
}

.prestige-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.prestige-multiplier-demo {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--space-xl);
  background: var(--glass);
  border: 2px solid rgba(244, 211, 94, 0.15);
}

.prestige-mult-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 10px var(--space-md);
  border-left: 3px solid rgba(244, 211, 94, 0.2);
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.prestige-mult-row:hover {
  background: rgba(244, 211, 94, 0.05);
  border-left-color: var(--border);
}

.prestige-mult-base {
  border-left-color: var(--locked);
}

.prestige-crown {
  display: flex;
  gap: 2px;
  color: var(--border);
  min-width: 68px;
  flex-shrink: 0;
}

.prestige-crown svg {
  filter: drop-shadow(0 0 4px rgba(244, 211, 94, 0.4));
}

.prestige-mult-base .prestige-crown svg {
  opacity: 0.3;
  filter: none;
}

.prestige-mult-label {
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  color: var(--muted);
  flex: 1;
  line-height: 1.6;
}

.prestige-mult-val {
  font-family: var(--font-pixel);
  font-size: 0.75rem;
  color: var(--parchment);
  text-shadow: 1px 1px 0 var(--shadow);
}

.prestige-mult-highlight {
  color: var(--border);
  text-shadow: 0 0 12px rgba(244, 211, 94, 0.5), 2px 2px 0 var(--shadow);
}

.prestige-visual-note {
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
  text-align: center;
  font-family: var(--font-pixel);
  line-height: 1.8;
}

/* ── Codex Quote ─────────────────────────────────────────────────────── */
.codex-quote {
  padding: var(--space-3xl) 0;
  text-align: center;
}

.quote-card {
  max-width: 700px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-2xl);
  background: var(--glass);
  border: 2px solid rgba(244, 211, 94, 0.15);
  border-left: 4px solid var(--border);
  position: relative;
}

.quote-card::before {
  content: '"';
  font-family: var(--font-pixel);
  font-size: 3rem;
  color: var(--border);
  opacity: 0.3;
  position: absolute;
  top: var(--space-sm);
  left: var(--space-md);
  line-height: 1;
}

.quote-card blockquote {
  font-size: 1.1rem;
  color: var(--parchment);
  line-height: 1.9;
  font-style: italic;
  font-weight: 500;
}

.quote-card cite {
  display: block;
  margin-top: var(--space-md);
  color: var(--primary);
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  font-style: normal;
  line-height: 1.6;
}

/* ── Pixel Divider ───────────────────────────────────────────────────── */
.pixel-divider {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: var(--space-lg) 0;
}

.pixel-divider span {
  width: 8px;
  height: 8px;
  background: var(--border);
  opacity: 0.4;
}

.pixel-divider span:nth-child(2) {
  opacity: 0.6;
}

.pixel-divider span:nth-child(3) {
  opacity: 0.8;
}

.pixel-divider span:nth-child(4) {
  opacity: 1;
}

.pixel-divider span:nth-child(5) {
  opacity: 0.8;
}

.pixel-divider span:nth-child(6) {
  opacity: 0.6;
}

.pixel-divider span:nth-child(7) {
  opacity: 0.4;
}

/* ── Language Switcher ───────────────────────────────────────────────── */
.lang-switcher {
  position: fixed;
  right: 16px;
  bottom: 80px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 4px;
  filter: drop-shadow(0 2px 6px var(--shadow));
}

.lang-btn {
  display: block;
  width: 36px;
  height: 28px;
  background: rgba(27, 27, 50, 0.88);
  border: 2px solid rgba(244, 211, 94, 0.3);
  color: var(--muted);
  font-family: var(--font-pixel);
  font-size: 0.45rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lang-btn:hover {
  background: rgba(244, 211, 94, 0.12);
  border-color: rgba(244, 211, 94, 0.6);
  color: var(--border);
  transform: translateX(-2px);
}

.lang-btn.active {
  background: rgba(244, 211, 94, 0.15);
  border-color: var(--border);
  color: var(--border);
}

@media (max-width: 768px) {
  .lang-switcher {
    right: 12px;
    bottom: 16px;
    flex-direction: row;
  }
}