/* ============================================
   Big Bass Bonanza Hub — UNIFIED STYLESHEET
   All pages reference this single file.
   ============================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700;800;900&family=Raleway:wght@300;400;500;600;700&display=swap');

/* ── CSS Variables ── */
:root {
  --background: 222 47% 6%;
  --foreground: 45 30% 90%;
  --card: 222 40% 10%;
  --card-foreground: 45 30% 90%;
  --popover: 222 40% 10%;
  --popover-foreground: 45 30% 90%;
  --primary: 43 80% 50%;
  --primary-foreground: 222 47% 6%;
  --secondary: 222 30% 15%;
  --secondary-foreground: 45 30% 90%;
  --muted: 222 25% 14%;
  --muted-foreground: 220 15% 55%;
  --accent: 43 70% 45%;
  --accent-foreground: 222 47% 6%;
  --destructive: 0 84% 60%;
  --destructive-foreground: 210 40% 98%;
  --border: 222 25% 18%;
  --input: 222 25% 18%;
  --ring: 43 80% 50%;
  --radius: 0.5rem;
  --gold-start: 43 90% 55%;
  --gold-end: 35 85% 40%;
  --gold-glow: 43 80% 50%;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Raleway', sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cinzel', serif;
}

/* ── Container ── */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.container-narrow {
  max-width: 896px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ── Layout ── */
.min-h-screen {
  min-height: 100vh;
}

.flex-col-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.flex-1 {
  flex: 1;
}

/* ── Gradient Utilities ── */
.gradient-gold {
  background: linear-gradient(135deg, hsl(43, 90%, 55%), hsl(35, 85%, 40%));
}

.gradient-gold-text {
  background: linear-gradient(135deg, hsl(43, 90%, 60%), hsl(35, 85%, 45%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shadow-gold {
  box-shadow: 0 0 20px hsl(43, 80%, 50%, 0.3), 0 0 40px hsl(43, 80%, 50%, 0.1);
}

.glow-gold {
  box-shadow: 0 0 10px hsl(43, 80%, 50%, 0.4), inset 0 0 10px hsl(43, 80%, 50%, 0.1);
}

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid hsl(var(--border));
  background-color: hsl(var(--background) / 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  height: 84px;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}

.header-logo img {
  height: 3.75rem;
  width: auto;
  display: block;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.header-nav a {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  border-radius: 0.375rem;
  transition: color 0.2s, background-color 0.2s;
}

.header-nav a:hover {
  color: hsl(var(--foreground));
  background-color: hsl(var(--secondary));
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Language Switcher */
.lang-switcher {
  position: relative;
}

.lang-switcher-btn {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.5rem;
  font-size: 0.875rem;
  border-radius: 0.375rem;
  border: 1px solid hsl(var(--border));
  transition: background-color 0.2s;
  cursor: pointer;
  background: transparent;
  color: hsl(var(--foreground));
}

.lang-switcher-btn:hover {
  background-color: hsl(var(--secondary));
}

.lang-switcher-btn svg.flag {
  width: 1.5rem;
  height: 1rem;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.lang-switcher-btn .chevron {
  width: 0.75rem;
  height: 0.75rem;
  color: hsl(var(--muted-foreground));
  transition: transform 0.2s;
}

.lang-switcher-btn.open .chevron {
  transform: rotate(180deg);
}

.lang-label {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.lang-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 0.25rem;
  z-index: 50;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  padding: 0.25rem 0;
  min-width: 140px;
  display: none;
}

.lang-dropdown.open {
  display: block;
}

.lang-dropdown a {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
  transition: background-color 0.2s;
}

.lang-dropdown a:hover {
  background-color: hsl(var(--secondary));
}

.lang-dropdown a.active {
  color: hsl(var(--primary));
  font-weight: 500;
  background-color: hsl(var(--secondary) / 0.5);
}

.lang-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
}

.lang-overlay.open {
  display: block;
}

/* Header Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
  text-decoration: none;
  cursor: pointer;
  border: none;
  line-height: 1;
}

.btn-sm {
  height: 2.25rem;
  padding: 0 0.75rem;
  font-size: 0.875rem;
}

.btn-lg {
  height: 2.75rem;
  padding: 0 2rem;
  border-radius: 0.375rem;
  font-size: 1rem;
}

.btn-outline {
  background: transparent;
  border: 1px solid hsl(var(--primary) / 0.5);
  color: hsl(var(--primary));
}

.btn-outline:hover {
  background-color: hsl(var(--primary) / 0.1);
}

.btn-gold {
  background: linear-gradient(135deg, hsl(43, 90%, 55%), hsl(35, 85%, 40%));
  color: hsl(var(--primary-foreground));
  font-family: 'Cinzel', serif;
  font-weight: 700;
  box-shadow: 0 0 20px hsl(43, 80%, 50%, 0.3), 0 0 40px hsl(43, 80%, 50%, 0.1);
  letter-spacing: 0.05em;
}

.btn-gold:hover {
  filter: brightness(1.1);
}

.btn-gold.glow {
  box-shadow: 0 0 10px hsl(43, 80%, 50%, 0.4), inset 0 0 10px hsl(43, 80%, 50%, 0.1);
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: transparent;
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  cursor: pointer;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
  background-color: hsl(var(--secondary));
  border-color: hsl(var(--primary));
  box-shadow: 0 0 12px hsl(var(--primary) / 0.25);
}

.mobile-menu-btn svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Mobile Menu Panel */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(320px, 85vw);
  z-index: 60;
  background: hsl(var(--background));
  border-right: 1px solid hsl(var(--border));
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  padding: 2rem 0;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-logo {
  padding: 0 1rem;
  margin-bottom: 1rem;
}

.mobile-menu-logo img {
  height: 2rem;
  width: auto;
}

.mobile-menu a.nav-link {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  border-radius: 0.5rem;
  transition: color 0.2s, background-color 0.2s;
  margin: 0 0.5rem;
}

.mobile-menu a.nav-link:hover {
  color: hsl(var(--primary));
  background-color: hsl(var(--secondary));
}

.mobile-menu-lang {
  border-top: 1px solid hsl(var(--border));
  margin-top: 1rem;
  padding: 1rem;
}

.mobile-menu-lang p {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.mobile-menu-lang-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.mobile-menu-lang-list a {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  transition: all 0.2s;
}

.mobile-menu-lang-list a:hover {
  background-color: hsl(var(--secondary));
}

.mobile-menu-lang-list a.active {
  border-color: hsl(var(--primary));
  background-color: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  font-weight: 500;
}

.mobile-menu-lang-list a .lang-text {
  font-size: 0.75rem;
}

.mobile-menu-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1.25rem;
  padding: 1rem 1rem 0.5rem;
  border-top: 1px solid hsl(var(--border));
}

/* Крупные CTA-кнопки в мобильном меню — full-width, высокие, с иконкой. */
.mobile-menu-actions .btn {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.9rem 1.15rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 8px 22px -6px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.mobile-menu-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -8px rgba(201, 168, 76, 0.55);
  filter: brightness(1.06);
}
.mobile-menu-actions .btn:active {
  transform: translateY(0);
  filter: brightness(0.97);
}
.mobile-menu-actions .btn-gold,
.mobile-menu-actions .btn-orange {
  background: linear-gradient(135deg, #f0d78c 0%, #c9a84c 55%, #a17f2c 100%);
  color: #1a1108;
  border: none;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
  animation: goldPulse 3s ease-in-out infinite;
}
.mobile-menu-actions .btn-green {
  background: linear-gradient(135deg, #34d399 0%, #16a34a 100%);
  color: #052e18;
  border: none;
}
.mobile-menu-actions .btn-outline {
  background: transparent;
  color: hsl(var(--foreground));
  border: 2px solid hsl(var(--primary) / 0.45);
}
.mobile-menu-actions .btn-outline:hover {
  border-color: hsl(var(--primary));
  color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.08);
}

@keyframes goldPulse {
  0%, 100% { box-shadow: 0 8px 22px -6px rgba(0,0,0,0.4), 0 0 0 0 rgba(201,168,76,0); }
  50% { box-shadow: 0 8px 22px -6px rgba(0,0,0,0.4), 0 0 18px 2px rgba(201,168,76,0.25); }
}

.mobile-menu-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  border-radius: 0.25rem;
  font-size: 1.25rem;
}

.mobile-menu-close:hover {
  color: hsl(var(--foreground));
  background-color: hsl(var(--secondary));
}

/* ── HERO ── */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-image: url(/images/hero-banner.jpg);
  background-color: hsl(var(--background));
  background-size: cover;
  background-position: left top;
  background-repeat: no-repeat;
  min-height: 300px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11,18,33,0.72) 0%, rgba(11,18,33,0.42) 34%, rgba(11,18,33,0.12) 62%, rgba(11,18,33,0.48) 100%),
    linear-gradient(180deg, rgba(11,18,33,0.08) 0%, rgba(11,18,33,0.42) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 1.25rem 1rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.hero-content-inner {
  max-width: 34rem;
  width: 100%;
}

.hero-subtitle {
  font-size: 0.875rem;
  color: hsl(var(--foreground) / 0.8);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

/* Hula-Balua-inspired category chip pill */
.hero-chip {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid hsl(145 65% 45% / 0.55);
  background: hsl(145 65% 20% / 0.25);
  color: hsl(145 70% 60%);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(6px);
  box-shadow: 0 0 20px hsl(145 65% 45% / 0.15);
}

/* Bright accent CTAs (green demo / orange real) */
.btn-green {
  background: linear-gradient(135deg, hsl(145 70% 45%), hsl(155 75% 38%));
  color: #fff;
  border: none;
  box-shadow: 0 6px 20px hsl(145 70% 40% / 0.35);
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.btn-green:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 10px 26px hsl(145 70% 40% / 0.45); }
.btn-orange {
  background: linear-gradient(135deg, hsl(28 95% 55%), hsl(18 90% 48%));
  color: #fff;
  border: none;
  box-shadow: 0 6px 20px hsl(24 90% 45% / 0.35);
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
}
.btn-orange:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 10px 26px hsl(24 90% 45% / 0.45); }

/* Feature blocks — icon on top, hover lift */
.feature-block {
  position: relative;
  padding: 1.5rem 1.5rem 1.25rem;
  border-radius: 14px;
  background: linear-gradient(180deg, hsl(var(--primary) / 0.06), hsl(var(--primary) / 0.02));
  border: 1px solid hsl(var(--primary) / 0.18);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.feature-block:hover {
  transform: translateY(-3px);
  border-color: hsl(var(--primary) / 0.45);
  box-shadow: 0 12px 30px hsl(var(--primary) / 0.12);
}
.feature-block h3 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

/* Numbered how-to-play steps with big circles */
.steps-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: grid;
  gap: 1rem;
  counter-reset: step;
}
.steps-list > li {
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 4.75rem;
  background: hsl(var(--primary) / 0.04);
  border: 1px solid hsl(var(--primary) / 0.15);
  border-radius: 12px;
  counter-increment: step;
}
.steps-list > li::before {
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 1.1rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  background: linear-gradient(135deg, hsl(145 70% 45%), hsl(155 75% 38%));
  color: #fff;
  box-shadow: 0 4px 14px hsl(145 70% 40% / 0.4);
}
.steps-list > li h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.steps-list > li h3::first-letter { text-transform: uppercase; }
/* hide the "1." "2." prefixes since we render circles */
.steps-list > li h3 { text-indent: 0; }

.hero h1 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  background: hsl(var(--secondary) / 0.8);
  color: hsl(var(--foreground));
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid hsl(var(--border));
}

.hero-badge svg {
  width: 0.875rem;
  height: 0.875rem;
  color: hsl(var(--primary));
}

.hero-badge-updated {
  background: hsl(var(--primary) / 0.2);
  color: hsl(var(--primary));
  border-color: hsl(var(--primary) / 0.3);
  font-weight: 500;
}

/* ── GAME CATEGORIES ── */
.game-categories {
  padding: 2rem 0;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.category-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--secondary) / 0.5);
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  transition: all 0.2s;
  cursor: pointer;
}

.category-pill:hover {
  border-color: hsl(var(--primary));
  color: hsl(var(--primary));
}

.category-pill svg {
  width: 1rem;
  height: 1rem;
}

.game-section-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.game-card {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  transition: border-color 0.2s;
  text-decoration: none;
  display: block;
}

.game-card:hover {
  border-color: hsl(var(--primary) / 0.5);
}

.game-card-image {
  aspect-ratio: 1;
  overflow: hidden;
}

.game-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

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

.game-card-info {
  padding: 0.5rem 0.75rem;
}

.game-card-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-card-provider {
  font-size: 0.625rem;
  color: hsl(var(--muted-foreground));
}

/* Inline content figures (image breaks inside article text) */
.content-figure {
  margin: 0.5rem 0;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
}

.content-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.content-figure figcaption {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  padding: 0.5rem 0.75rem;
  border-top: 1px solid hsl(var(--border));
}

.content-figure-float {
  align-self: center;
  width: 320px;
  max-width: 100%;
  margin: 0.5rem 0;
}

@media (max-width: 640px) {
  .content-figure-float {
    width: 100%;
  }
}

/* ── ARTICLE CONTENT ── */
.article-content {
  padding: 2rem 1rem;
}

/* Rating Block */
.rating-block {
  background: hsl(var(--card));
  border-radius: 0.75rem;
  padding: 1.5rem;
  border: 1px solid hsl(var(--border));
  margin: 2rem 0;
}

.rating-block-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.rating-score {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rating-number {
  font-size: 2.25rem;
  font-family: 'Cinzel', serif;
  font-weight: 700;
}

.rating-max {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.rating-stars {
  display: flex;
  gap: 0.125rem;
  margin-top: 0.5rem;
}

.rating-stars .star-filled {
  font-size: 1.125rem;
}

.rating-stars .star-empty {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground) / 0.3);
}

.rating-verdict {
  flex: 1;
}

.rating-verdict blockquote {
  font-style: italic;
  font-size: 0.875rem;
  line-height: 1.7;
  color: hsl(var(--foreground));
  border-left: 2px solid hsl(var(--primary));
  padding-left: 1rem;
}

.rating-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.rating-author {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.rating-updated {
  font-size: 0.75rem;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
}

/* Author Block */
.author-block {
  background: hsl(var(--secondary) / 0.5);
  border-radius: 0.75rem;
  padding: 1.25rem;
  border: 1px solid hsl(var(--border));
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.author-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: hsl(var(--primary) / 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.author-avatar span {
  font-size: 1.125rem;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  color: hsl(var(--primary));
}

.author-info {
  flex: 1;
}

.author-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
}

.author-bio {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.25rem;
}

.author-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.author-dates span {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.author-dates .date-updated {
  color: hsl(var(--primary));
}

.author-dates .verified {
  color: hsl(142, 76%, 36%);
}

/* Table of Contents */
.toc {
  position: relative;
  background: hsl(var(--card) / 0.8);
  backdrop-filter: blur(4px);
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 2.5rem;
}

/* Spec cards (Quick Info block) */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
  margin: 1.25rem 0 1.5rem;
}
.spec-card {
  position: relative;
  padding: 1rem 1.1rem 1.05rem;
  border-radius: 0.9rem;
  background: linear-gradient(160deg,
    hsl(var(--card) / 0.95),
    hsl(var(--card) / 0.75));
  border: 1px solid hsl(var(--primary) / 0.22);
  box-shadow: 0 4px 18px hsl(0 0% 0% / 0.18),
    inset 0 1px 0 hsl(0 0% 100% / 0.04);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  overflow: hidden;
}
.spec-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, hsl(43, 90%, 55%), hsl(145, 70%, 45%));
}
.spec-card:hover {
  transform: translateY(-2px);
  border-color: hsl(43 90% 55% / 0.45);
  box-shadow: 0 8px 24px hsl(0 0% 0% / 0.28);
}
.spec-card .spec-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.35rem;
  font-weight: 600;
}
.spec-card .spec-value {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  line-height: 1.25;
}
.spec-card .spec-value small {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  margin-top: 0.15rem;
}

.toc-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(135deg, hsl(43, 90%, 55%), hsl(35, 85%, 40%));
}

.toc-inner {
  padding: 1.25rem 1.5rem;
}

.toc-title {
  font-size: 1rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toc-title svg {
  width: 1rem;
  height: 1rem;
  color: hsl(var(--primary));
}

.toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.375rem;
}

.toc-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.375rem 0;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  transition: color 0.2s;
}

.toc-link:hover {
  color: hsl(var(--primary));
}

.toc-link:hover .toc-num {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.toc-link:hover .toc-label {
  transform: translateX(2px);
}

.toc-num {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.375rem;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.toc-label {
  transition: transform 0.2s;
}

/* Content Sections */
.content-section {
  margin-bottom: 2.5rem;
  scroll-margin-top: 5rem;
}

.content-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
}

/* Rich Content */
.rich-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rich-content p {
  font-size: 0.875rem;
  color: hsl(var(--foreground) / 0.85);
  line-height: 1.7;
  white-space: pre-line;
}

.rich-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-top: 1.5rem;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rich-content h3 .h3-bar {
  width: 4px;
  height: 1.25rem;
  background: linear-gradient(135deg, hsl(43, 90%, 55%), hsl(35, 85%, 40%));
  border-radius: 9999px;
  display: inline-block;
  flex-shrink: 0;
}

.rich-content h4 {
  font-size: 1rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  margin-top: 1rem;
  margin-bottom: 0.25rem;
}

/* Callouts */
.callout {
  display: flex;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 0.5rem;
  margin: 0.5rem 0;
}

.callout svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.callout p {
  font-size: 0.875rem;
  color: hsl(var(--foreground) / 0.9);
  line-height: 1.7;
}

.callout-warning {
  background: hsl(var(--destructive) / 0.1);
  border: 1px solid hsl(var(--destructive) / 0.2);
}

.callout-warning svg {
  color: hsl(var(--destructive));
}

.callout-tip {
  background: hsl(var(--primary) / 0.1);
  border: 1px solid hsl(var(--primary) / 0.2);
}

.callout-tip svg {
  color: hsl(var(--primary));
}

.callout-info {
  background: hsl(var(--secondary));
  border: 1px solid hsl(var(--border));
}

.callout-info svg {
  color: hsl(var(--muted-foreground));
}

/* Ordered Lists */
.rich-content ol {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rich-content ol li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: hsl(var(--foreground) / 0.85);
}

.rich-content ol .ol-num {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.125rem;
}

.rich-content ol li span.ol-text {
  line-height: 1.7;
}

/* Unordered Lists */
.rich-content ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.rich-content ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: hsl(var(--foreground) / 0.85);
}

.rich-content ul .ul-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: hsl(var(--primary));
  margin-top: 0.5rem;
  flex-shrink: 0;
}

.rich-content ul li span.ul-text {
  line-height: 1.7;
}

/* ── BONUS SECTION (CTA) ── */
.bonus-section {
  padding: 3rem 1rem;
}

.bonus-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid hsl(var(--primary) / 0.3);
  background: linear-gradient(to right, hsl(var(--secondary)), hsl(var(--card)), hsl(var(--secondary)));
  padding: 2rem;
}

.bonus-card-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(to left, hsl(var(--primary) / 0.05), transparent);
}

.bonus-card-image {
  display: none;
  position: absolute;
  right: 2rem;
  bottom: 0;
  width: 12rem;
  opacity: 0.9;
}

.bonus-card-image img {
  width: 100%;
  height: auto;
  border-radius: 0.75rem 0.75rem 0 0;
}

.bonus-card-content {
  position: relative;
  z-index: 10;
  max-width: 36rem;
}

.bonus-card-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.bonus-card-amount {
  font-size: 2.25rem;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
}

.bonus-card-desc {
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

/* ── PROS/CONS ── */
.pros-cons {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0;
}

.pros-cons-card {
  background: hsl(var(--card));
  border-radius: 0.75rem;
  padding: 1.5rem;
  border: 1px solid hsl(var(--border));
}

.pros-cons-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
}

.pros-cons-card ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pros-cons-card li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: hsl(var(--foreground) / 0.9);
}

.pros-cons-card li .icon-pro {
  color: hsl(142, 76%, 36%);
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.pros-cons-card li .icon-con {
  color: hsl(25, 95%, 53%);
  margin-top: 0.125rem;
  flex-shrink: 0;
}

/* ── CHANGELOG ── */
.changelog-block {
  background: hsl(var(--card));
  border-radius: 0.75rem;
  padding: 1.5rem;
  border: 1px solid hsl(var(--border));
  margin: 2rem 0;
}

.changelog-block h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 1.5rem;
}

.changelog-entries {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.changelog-entry {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.changelog-date {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  font-family: monospace;
  white-space: nowrap;
  min-width: 100px;
}

.changelog-category {
  font-size: 0.75rem;
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  white-space: nowrap;
  display: inline-block;
  width: fit-content;
}

.changelog-category.blue { background: hsl(217, 91%, 60%, 0.2); color: hsl(217, 91%, 65%); }
.changelog-category.yellow { background: hsl(48, 96%, 53%, 0.2); color: hsl(48, 96%, 65%); }
.changelog-category.green { background: hsl(142, 71%, 45%, 0.2); color: hsl(142, 71%, 55%); }
.changelog-category.purple { background: hsl(271, 91%, 65%, 0.2); color: hsl(271, 91%, 70%); }
.changelog-category.orange { background: hsl(25, 95%, 53%, 0.2); color: hsl(25, 95%, 63%); }

.changelog-desc {
  font-size: 0.875rem;
  color: hsl(var(--foreground) / 0.9);
}

/* ── FAQ ── */
.faq-block {
  margin: 2rem 0;
}

.faq-block h2 {
  font-size: 1.25rem;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 1.5rem;
}

.faq-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: hsl(var(--card));
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--border));
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  color: hsl(var(--foreground));
}

.faq-question span {
  font-weight: 600;
  font-size: 0.875rem;
  padding-right: 1rem;
}

.faq-chevron {
  color: hsl(var(--muted-foreground));
  flex-shrink: 0;
  transition: transform 0.2s;
  font-size: 0.875rem;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.875rem;
  color: hsl(var(--foreground) / 0.8);
  line-height: 1.7;
  white-space: pre-line;
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ── CTA BLOCK (SubPages) ── */
.cta-block {
  background: hsl(var(--secondary) / 0.5);
  border-radius: 0.75rem;
  padding: 2rem;
  border: 1px solid hsl(var(--primary) / 0.2);
  text-align: center;
  margin: 2rem 0;
}

.cta-bonus {
  font-size: 1.5rem;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.cta-subtitle {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

/* ── DISCLAIMER ── */
.disclaimer {
  text-align: center;
  margin-top: 3rem;
}

.disclaimer p {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.disclaimer p + p {
  margin-top: 0.25rem;
  color: hsl(var(--muted-foreground) / 0.7);
}

/* ── FOOTER ── */
.site-footer {
  border-top: 1px solid hsl(var(--border));
  background: hsl(var(--secondary) / 0.3);
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand-name {
  font-size: 1.25rem;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.footer-copyright {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.75rem;
}

.footer-email {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.5rem;
}

.footer-email a {
  transition: color 0.2s;
}

.footer-email a:hover {
  color: hsl(var(--primary));
}

.footer-col-title {
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: hsl(var(--foreground));
  margin-bottom: 0.75rem;
}

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

.footer-col nav a,
.footer-col nav span {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  transition: color 0.2s;
}

.footer-col nav a:hover {
  color: hsl(var(--primary));
}

.footer-bottom {
  border-top: 1px solid hsl(var(--border));
  padding-top: 1.5rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.footer-bottom p + p {
  margin-top: 0.5rem;
  color: hsl(var(--muted-foreground) / 0.7);
}

/* ── SCROLL TO TOP ── */
.scroll-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, hsl(43, 90%, 55%), hsl(35, 85%, 40%));
  color: hsl(var(--primary-foreground));
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  border: none;
  transition: opacity 0.3s, transform 0.3s;
  animation: fadeIn 0.5s ease-out;
}

.scroll-to-top.visible {
  display: flex;
}

.scroll-to-top svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* ── LOGIN FORM ── */
.login-form-card {
  background: hsl(var(--card));
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--border));
  padding: 1.5rem 2rem;
  max-width: 28rem;
  margin: 2rem auto;
}

.login-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.login-tab {
  flex: 1;
  padding: 0.625rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.login-tab.active {
  background: linear-gradient(135deg, hsl(43, 90%, 55%), hsl(35, 85%, 40%));
  color: hsl(var(--primary-foreground));
  box-shadow: 0 0 20px hsl(43, 80%, 50%, 0.3);
}

.login-tab:not(.active) {
  background: hsl(var(--secondary));
  color: hsl(var(--muted-foreground));
}

.login-tab:not(.active):hover {
  color: hsl(var(--foreground));
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  margin-bottom: 0.375rem;
}

.form-group input[type="email"],
.form-group input[type="password"] {
  width: 100%;
  padding: 0.625rem 1rem;
  background: hsl(var(--secondary));
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  color: hsl(var(--foreground));
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 2px hsl(var(--primary) / 0.3);
}

.form-group input::placeholder {
  color: hsl(var(--muted-foreground));
}

.forgot-link {
  text-align: right;
}

.forgot-link a {
  font-size: 0.75rem;
  color: hsl(var(--primary));
  transition: text-decoration 0.2s;
}

.forgot-link a:hover {
  text-decoration: underline;
}

.age-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
}

.age-check input {
  margin-top: 0.125rem;
  accent-color: hsl(var(--primary));
}

.age-check span {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.login-terms {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  text-align: center;
  margin-top: 1rem;
}

.login-switch {
  text-align: center;
  margin-top: 0.5rem;
}

.login-switch button {
  font-size: 0.875rem;
  color: hsl(var(--primary));
  background: transparent;
  border: none;
  cursor: pointer;
}

.login-switch button:hover {
  text-decoration: underline;
}

/* ── LIVE GAMES GRID ── */
.live-games {
  margin: 2rem 0;
}

.live-games h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
}

.live-games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.live-game-card {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  transition: border-color 0.2s;
  display: block;
}

.live-game-card:hover {
  border-color: hsl(var(--primary) / 0.5);
}

.live-game-card .game-card-image {
  aspect-ratio: 3/2;
}

/* ── SPORT HERO IMAGE ── */
.sport-hero-images {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0;
}

.sport-hero-images img {
  filter: drop-shadow(0 25px 25px rgba(0,0,0,0.25));
}

.sport-hero-images img:first-child {
  width: 10rem;
}

.sport-hero-images img:last-child {
  width: 9rem;
}

/* ── ANIMATIONS ── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ── */

@media (max-width: 767px) {
  .hero {
    min-height: 430px;
    align-items: flex-end;
    background-size: auto 100%;
    background-position: left top;
  }
  .hero::before {
    background:
      linear-gradient(90deg, rgba(11,18,33,0.42) 0%, rgba(11,18,33,0.04) 50%, rgba(11,18,33,0.58) 100%),
      linear-gradient(180deg, rgba(11,18,33,0.06) 0%, rgba(11,18,33,0.22) 46%, rgba(11,18,33,0.90) 70%, rgba(11,18,33,0.98) 100%);
  }
  .hero-content {
    padding: 7.5rem 1rem 1.35rem;
    justify-content: flex-start;
  }
  .hero-content-inner {
    max-width: 100%;
    margin-left: 0;
  }
}

/* SM: 640px */
@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }

  .cta-buttons {
    flex-direction: row;
  }

  .author-block {
    flex-direction: row;
    align-items: flex-start;
  }

  .changelog-entry {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .sport-hero-images {
    flex-direction: row;
  }
}

/* MD: 768px */
@media (min-width: 768px) {
  .header-logo img {
    height: 4.5rem;
  }

  .hero {
    min-height: 320px;
  }

  .hero-content {
    padding: 1.5rem 1.5rem;
  }

  .hero h1 {
    font-size: 1.875rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .games-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }

  .game-card-info {
    padding: 0.5rem 0.75rem;
  }

  .game-card-name {
    font-size: 0.875rem;
  }

  .game-card-provider {
    font-size: 0.75rem;
  }

  .toc-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2rem;
  }

  .content-section h2 {
    font-size: 1.5rem;
  }

  .rating-block-inner {
    flex-direction: row;
    align-items: center;
  }

  .bonus-card {
    padding: 3rem;
  }

  .bonus-card-image {
    display: block;
  }

  .bonus-card-title {
    font-size: 2.25rem;
  }

  .bonus-card-amount {
    font-size: 3rem;
  }

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

  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .live-games-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .sport-hero-images img:first-child {
    width: 13rem;
  }

  .sport-hero-images img:last-child {
    width: 12rem;
  }
}

/* LG: 1024px */
@media (min-width: 1024px) {
  .hero h1 {
    font-size: 2.25rem;
  }

  .bonus-card-image {
    width: 14rem;
  }
}

/* Header responsive */
@media (max-width: 1023px) {
  .header-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }
}

@media (max-width: 767px) {
  .header-actions {
    display: none;
  }
}

/* XL: 1280px */
@media (min-width: 1280px) {
  .lang-label {
    display: inline;
  }
}

@media (max-width: 1279px) {
  .lang-label {
    display: none;
  }
}

/* ── SVG Flag Styles ── */
.flag-svg {
  width: 1.5rem;
  height: 1rem;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
  border: 1px solid hsl(var(--border) / 0.3);
  display: inline-block;
  vertical-align: middle;
}

/* ── Scroll margin for anchors ── */
[id] {
  scroll-margin-top: 5rem;
}

/* ── Hidden utility ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.hidden {
  display: none !important;
}

/* === Expanded Author Block (polished) === */
.author-block.author-block-expanded {
  display: block;
  position: relative;
  padding: 0;
  margin: 2.5rem 0;
  background: linear-gradient(180deg, hsl(var(--card)) 0%, hsl(var(--card) / 0.95) 100%);
  border: 1px solid hsl(var(--border));
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 12px 40px -16px hsl(var(--primary) / 0.3), 0 2px 8px -4px hsl(0 0% 0% / 0.4);
}
.author-block.author-block-expanded .author-accent {
  height: 4px;
  background: linear-gradient(90deg,
    hsl(var(--primary)) 0%,
    hsl(45 90% 55%) 50%,
    hsl(var(--primary)) 100%);
}
.author-block.author-block-expanded .author-main {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.75rem;
  padding: 1.75rem;
  align-items: start;
}
.author-block.author-block-expanded .author-avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.author-block.author-block-expanded .author-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  padding: 0;
  background: hsl(var(--primary) / 0.1);
  border: 3px solid hsl(var(--primary) / 0.4);
  box-shadow: 0 8px 24px -8px hsl(var(--primary) / 0.5);
  overflow: hidden;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.author-block.author-block-expanded .author-avatar:hover { transform: scale(1.03); }
.author-block.author-block-expanded .author-avatar img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.author-block.author-block-expanded .author-verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.65rem;
  background: hsl(142 70% 35% / 0.15);
  color: hsl(142 70% 50%);
  border: 1px solid hsl(142 70% 35% / 0.4);
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.author-block.author-block-expanded .author-verified-pill svg { flex-shrink: 0; }
.author-block.author-block-expanded .author-info {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 0.85rem;
}
.author-block.author-block-expanded .author-headline { display: flex; flex-direction: column; gap: 0.15rem; }
.author-block.author-block-expanded .author-name {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: hsl(var(--foreground));
  letter-spacing: 0.01em;
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(45 90% 60%) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.author-block.author-block-expanded .author-role {
  font-size: 0.85rem;
  font-weight: 600;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
}
.author-block.author-block-expanded .author-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  margin: 0;
  padding-bottom: 0.85rem;
  border-bottom: 1px dashed hsl(var(--border));
}
.author-block.author-block-expanded .author-meta-dot { opacity: 0.4; }
.author-block.author-block-expanded .author-meta .date-updated { color: hsl(var(--primary)); font-weight: 600; }
.author-block.author-block-expanded .author-bio {
  font-size: 0.92rem;
  line-height: 1.65;
  color: hsl(var(--foreground) / 0.88);
  margin: 0;
}
.author-block.author-block-expanded .author-credentials {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 1.25rem;
  list-style: none;
  padding: 0; margin: 0;
}
.author-block.author-block-expanded .author-credentials li {
  font-size: 0.78rem;
  color: hsl(var(--foreground) / 0.78);
  position: relative;
  padding-left: 1.4rem;
  line-height: 1.5;
}
.author-block.author-block-expanded .author-credentials li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 1rem; height: 1rem;
  background: hsl(var(--primary) / 0.15);
  border-radius: 50%;
}
.author-block.author-block-expanded .author-credentials li::after {
  content: "✓";
  position: absolute;
  left: 0.2rem;
  top: 0.25rem;
  font-size: 0.7rem;
  font-weight: 800;
  color: hsl(var(--primary));
  width: 0.6rem;
  text-align: center;
}
.author-block.author-block-expanded .author-social {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding-top: 0.25rem;
}
.author-block.author-block-expanded .author-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  background: hsl(var(--secondary));
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}
.author-block.author-block-expanded .author-social a:hover {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-color: hsl(var(--primary));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px -4px hsl(var(--primary) / 0.5);
}
.author-block.author-block-expanded .author-social a svg { flex-shrink: 0; }
.author-block.author-block-expanded .author-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 1.1rem 1.75rem;
  background: linear-gradient(180deg, hsl(var(--secondary) / 0.5) 0%, hsl(var(--secondary) / 0.3) 100%);
  border-top: 1px solid hsl(var(--border));
}
.author-block.author-block-expanded .author-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.25rem;
  border-right: 1px solid hsl(var(--border) / 0.5);
}
.author-block.author-block-expanded .author-stat:last-child { border-right: none; }
.author-block.author-block-expanded .author-stat-value {
  font-family: 'Cinzel', serif;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(45 90% 60%) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.author-block.author-block-expanded .author-stat-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: hsl(var(--muted-foreground));
  margin-top: 0.4rem;
  line-height: 1.2;
}
@media (max-width: 720px) {
  .author-block.author-block-expanded .author-main {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.5rem 1.25rem;
  }
  .author-block.author-block-expanded .author-avatar-wrap { align-items: center; }
  .author-block.author-block-expanded .author-avatar { width: 110px; height: 110px; }
  .author-block.author-block-expanded .author-name { font-size: 1.3rem; text-align: center; }
  .author-block.author-block-expanded .author-role { text-align: center; }
  .author-block.author-block-expanded .author-meta { justify-content: center; text-align: center; }
  .author-block.author-block-expanded .author-credentials { grid-template-columns: 1fr; }
  .author-block.author-block-expanded .author-social { justify-content: center; }
  .author-block.author-block-expanded .author-stats {
    grid-template-columns: repeat(2, 1fr);
    padding: 1rem;
    gap: 0.75rem 0.5rem;
  }
  .author-block.author-block-expanded .author-stat { border-right: none; border-bottom: 1px solid hsl(var(--border) / 0.5); padding-bottom: 0.6rem; }
  .author-block.author-block-expanded .author-stat:nth-last-child(-n+2) { border-bottom: none; padding-bottom: 0; }
}

/* Answer-first block — реализация патентного принципа "убрать трение между вопросом и ответом" */
.answer-box {
  position: relative;
  margin: 1.5rem 0 2rem;
  padding: 1.25rem 1.5rem 1.25rem 1.75rem;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, rgba(59, 130, 246, 0.05) 100%);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-left: 4px solid #22c55e;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.answer-box .answer-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #16a34a;
  background: rgba(34, 197, 94, 0.12);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  margin-bottom: 0.6rem;
}
.answer-box .answer-tldr {
  font-size: 1.05rem;
  line-height: 1.55;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin: 0 0 0.75rem;
}
.answer-box .answer-facts {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
}
.answer-box .answer-facts li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.94rem;
  line-height: 1.5;
  color: hsl(var(--foreground) / 0.85);
}
.answer-box .answer-facts li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #22c55e;
  font-weight: 700;
}

/* Decision Facts — быстрый ответ вместо «длинного обзора». */
.decision-facts {
  margin: 1.25rem 0 2rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.02) 0%, rgba(255, 255, 255, 0) 100%);
  overflow: hidden;
}
.decision-facts-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.15rem;
  background: rgba(59, 130, 246, 0.06);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}
.decision-facts-head .df-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2563eb;
  background: rgba(59, 130, 246, 0.12);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}
.decision-facts-head h2,
.decision-facts-head h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: hsl(var(--foreground));
}
.decision-facts table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.decision-facts tbody tr + tr td {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}
.decision-facts td {
  padding: 0.7rem 1.15rem;
  vertical-align: top;
  line-height: 1.5;
}
.decision-facts td:first-child {
  width: 38%;
  font-weight: 600;
  color: hsl(var(--foreground) / 0.75);
  background: rgba(255, 255, 255, 0.03);
}
.decision-facts td:last-child {
  color: hsl(var(--foreground));
}
.decision-facts .df-foot {
  padding: 0.6rem 1.15rem;
  font-size: 0.82rem;
  color: hsl(var(--foreground) / 0.65);
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}
@media (max-width: 640px) {
  .decision-facts td { padding: 0.6rem 0.85rem; font-size: 0.9rem; }
  .decision-facts td:first-child { width: 44%; }
}

/* Editorial kicker — маленький ярлык над заголовком секции. */
.kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c9a84c;
  margin: 0 0 0.5rem;
  padding: 0.2rem 0;
  border-bottom: 1px solid rgba(201, 168, 76, 0.35);
}

/* Lede — вводный абзац с буквицей a-la editorial. */
.lede {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-primary, #0f172a);
  margin: 0.5rem 0 1.75rem;
}
.lede::first-letter {
  font-family: Georgia, "Playfair Display", serif;
  font-size: 3.2rem;
  line-height: 0.9;
  font-weight: 700;
  float: left;
  margin: 0.3rem 0.55rem 0 0;
  color: #c9a84c;
}

/* Stat strip — 3-4 крупных числа, «hero-stats» под первым экраном. */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  margin: 2rem 0 2.5rem;
  background: rgba(148, 163, 184, 0.2);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  overflow: hidden;
}
.stat-strip .stat {
  padding: 1.15rem 1.25rem;
  background: rgba(15, 23, 42, 0.02);
  text-align: left;
}
.stat-strip .stat-num {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.1;
  color: #c9a84c;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.stat-strip .stat-label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--text-secondary, #64748b);
}

/* Margin note / inline reference — сноска на полях. */
sup.ref {
  font-size: 0.72em;
  font-weight: 700;
  color: #c9a84c;
  padding: 0 0.15em;
  cursor: help;
}
sup.ref a { color: inherit; text-decoration: none; }

/* Sources block — нумерованные сноски внизу статьи. */
.sources {
  margin: 3rem 0 1.5rem;
  padding: 1.25rem 1.5rem;
  border-top: 2px solid rgba(201, 168, 76, 0.4);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.02) 0%, rgba(255, 255, 255, 0) 100%);
  font-size: 0.88rem;
  line-height: 1.6;
}
.sources h3 {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c9a84c;
}
.sources ol {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-secondary, #475569);
}
.sources li {
  padding: 0.25rem 0;
  scroll-margin-top: 90px;
}
.sources li:target {
  background: rgba(201, 168, 76, 0.12);
  padding-left: 0.4rem;
  border-left: 2px solid #c9a84c;
}

/* Editorial section header — H2 c тонкой полоской над ним. */
.section-lead {
  margin: 2.5rem 0 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}
.section-lead h2 {
  margin: 0.35rem 0 0.6rem;
  font-size: 1.7rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

/* Comparison matrix — плотная сравнительная таблица под интент. */
.matrix {
  margin: 2rem 0 2.5rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}
.matrix-head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.95rem 1.25rem;
  background: linear-gradient(90deg, rgba(201, 168, 76, 0.10) 0%, rgba(201, 168, 76, 0.02) 100%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}
.matrix-head h2, .matrix-head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: hsl(var(--foreground));
}
.matrix-head .matrix-sub {
  font-size: 0.82rem;
  color: hsl(var(--foreground) / 0.65);
}
.matrix-scroll { overflow-x: auto; }
.matrix table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 640px;
}
.matrix thead th {
  text-align: left;
  padding: 0.7rem 0.95rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--foreground) / 0.7);
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}
.matrix tbody td {
  padding: 0.7rem 0.95rem;
  vertical-align: top;
  line-height: 1.45;
  color: hsl(var(--foreground) / 0.9);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}
.matrix tbody tr:last-child td { border-bottom: none; }
.matrix tbody tr:hover td { background: rgba(201, 168, 76, 0.05); }
.matrix td:first-child { font-weight: 600; color: hsl(var(--foreground)); }
.matrix .pill {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.4;
}
.matrix .pill-ok   { background: rgba(34, 197, 94, 0.15); color: #15803d; }
.matrix .pill-warn { background: rgba(234, 179, 8, 0.18); color: #a16207; }
.matrix .pill-no   { background: rgba(239, 68, 68, 0.15); color: #b91c1c; }
.matrix-foot {
  padding: 0.65rem 1.25rem;
  font-size: 0.82rem;
  color: hsl(var(--foreground) / 0.65);
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

/* Pull-quote — обособленный абзац-инсайт a-la Hula "One practical point…" */
.pull-quote {
  position: relative;
  margin: 2.5rem 0 2rem;
  padding: 1.75rem 2rem 1.75rem 3.25rem;
  background: linear-gradient(180deg, rgba(201, 168, 76, 0.06) 0%, rgba(255, 255, 255, 0) 100%);
  border-left: 3px solid #c9a84c;
  border-radius: 0 12px 12px 0;
  font-family: Georgia, 'Times New Roman', serif;
}
.pull-quote::before {
  content: "“";
  position: absolute;
  left: 0.9rem;
  top: 0.35rem;
  font-size: 3.6rem;
  line-height: 1;
  color: rgba(201, 168, 76, 0.5);
  font-family: Georgia, serif;
}
.pull-quote .pq-label {
  display: block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c9a84c;
  margin-bottom: 0.55rem;
}
.pull-quote p {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.65;
  font-style: italic;
  color: var(--text-primary, #e8e4dd);
}
@media (max-width: 640px) {
  .pull-quote { padding: 1.35rem 1.25rem 1.35rem 2.5rem; }
  .pull-quote::before { font-size: 2.8rem; left: 0.6rem; }
  .pull-quote p { font-size: 1rem; }
}

/* Compact image grids */
.image-trio{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.55rem;margin:.9rem 0 1.15rem;align-items:start;}
.image-trio figure{margin:0;min-width:0;}
.image-trio img{width:100%;height:118px;object-fit:cover;border-radius:8px;box-shadow:0 5px 14px rgba(0,0,0,.32);display:block;}
.image-trio figcaption{font-size:.72rem;line-height:1.25;opacity:.72;margin-top:.3rem;text-align:center;}
.article-content>figure.content-section{display:inline-block;width:calc(33.333% - .5rem);min-width:180px;margin:.9rem .35rem 1.15rem 0!important;vertical-align:top;text-align:center;}
.article-content>figure.content-section img{width:100%!important;height:118px!important;max-width:none!important;object-fit:cover;border-radius:8px!important;box-shadow:0 5px 14px rgba(0,0,0,.32)!important;display:block;}
.article-content>figure.content-section figcaption{font-size:.72rem!important;line-height:1.25;opacity:.72;margin-top:.3rem!important;}
@media (max-width:640px){.image-trio{grid-template-columns:repeat(2,minmax(0,1fr));gap:.42rem;margin:.75rem 0 1rem;}.image-trio img,.article-content>figure.content-section img{height:82px!important;border-radius:7px!important;}.image-trio figcaption,.article-content>figure.content-section figcaption{display:none;}.article-content>figure.content-section{width:calc(50% - .35rem);min-width:0;margin:.75rem .25rem 1rem 0!important;}}

/* FAQ accordion */
.faq-item{background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.08);border-radius:10px;margin:.5rem 0;overflow:hidden;transition:border-color .2s;}
.faq-item[open]{border-color:hsl(43,90%,55%,.4);}
.faq-item>summary{list-style:none;cursor:pointer;padding:.9rem 2.5rem .9rem 1rem;font-weight:600;font-size:1rem;position:relative;user-select:none;}
.faq-item>summary::-webkit-details-marker{display:none;}
.faq-item>summary::after{content:"+";position:absolute;right:1rem;top:50%;transform:translateY(-50%);font-size:1.35rem;line-height:1;color:hsl(43,90%,55%);transition:transform .2s;}
.faq-item[open]>summary::after{content:"−";}
.faq-item>summary:hover{color:hsl(43,90%,60%);}
.faq-item>p,.faq-item>ul,.faq-item>ol{margin:0;padding:0 1rem 1rem;line-height:1.6;opacity:.9;}

/* Language switcher */
.lang-switch{position:relative;display:inline-block;margin-right:.5rem;}
.lang-current{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.15);color:#fff;padding:.4rem .7rem;border-radius:8px;cursor:pointer;font-size:.85rem;font-weight:600;display:inline-flex;align-items:center;gap:.35rem;transition:all .2s;}
.lang-current:hover{background:rgba(255,255,255,.12);border-color:hsl(43,90%,55%,.5);}
.lang-menu{position:absolute;top:calc(100% + .35rem);right:0;background:#111827;border:1px solid rgba(255,255,255,.12);border-radius:10px;padding:.35rem;min-width:130px;box-shadow:0 8px 24px rgba(0,0,0,.5);opacity:0;visibility:hidden;transform:translateY(-6px);transition:all .18s;z-index:1000;}
.lang-switch.open .lang-menu,.lang-switch:hover .lang-menu{opacity:1;visibility:visible;transform:translateY(0);}
.lang-opt{display:block;padding:.5rem .7rem;color:#e5e7eb;text-decoration:none;border-radius:6px;font-size:.85rem;font-weight:500;}
.lang-opt:hover{background:rgba(255,255,255,.08);color:hsl(43,90%,60%);}
.lang-opt.active{background:hsl(43,90%,55%,.15);color:hsl(43,90%,60%);}
.lang-switch-mobile{display:block;margin:1rem 0;}
.lang-switch-mobile .lang-current{width:100%;justify-content:space-between;}
.lang-switch-mobile .lang-menu{position:static;opacity:1;visibility:visible;transform:none;margin-top:.5rem;box-shadow:none;width:100%;}
@media (max-width:900px){.lang-switch:not(.lang-switch-mobile){display:none;}}

/* === Mobile stat/spec stacking fix — prevent inline overlap === */
.stat-strip .stat { display: flex; flex-direction: column; gap: 0.35rem; }
.stat-strip .stat-num,
.stat-strip .stat-label,
.spec-card .spec-label,
.spec-card .spec-value,
.author-stat .author-stat-value,
.author-stat .author-stat-label { display: block !important; width: 100%; }
@media (max-width: 640px) {
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .stat-strip .stat-num { font-size: 1.35rem; word-break: break-word; }
  .stat-strip .stat-label { font-size: 0.78rem; }
}
@media (max-width: 380px) {
  .stat-strip { grid-template-columns: 1fr; }
}
