/* Minecraft Launcher | minecraftlauncher.net stylesheet */
/* 1. Design tokens */
:root {
  --bg: #0f0f0f; --bg-panel: #1a1a1a; --surface: #1e1e1e; --surface-2: #252525;
  --border: #333; --border-strong: #444;
  --green: #5D8C3E; --green-dark: #4A7032; --green-light: #6FA84A; --green-glow: rgba(93,140,62,0.45);
  --water: #7eb7d4; --gold: #f39c12; --redstone: #e74c3c; --diamond: #4aedd6; --lapis: #1f5fa8;
  --text: #e8e8e8; --text-muted: #a0a0a0; --text-dim: #707070;
  --font-pixel: "Press Start 2P", "Courier New", monospace;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", Consolas, monospace;
  --space-xs: 0.25rem; --space-sm: 0.5rem; --space-md: 1rem; --space-lg: 1.5rem;
  --space-xl: 2.5rem; --space-2xl: 4rem; --space-3xl: 6rem;
  --container: 1200px; --container-narrow: 820px;
  --radius: 2px; --radius-lg: 4px; --border-w: 4px;
  --shadow-block: 0 4px 0 rgba(0,0,0,0.5), 0 8px 24px rgba(0,0,0,0.6);
  --shadow-card: 0 2px 0 rgba(0,0,0,0.4), 0 6px 18px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 24px var(--green-glow);
  --transition: 140ms cubic-bezier(0.2,0,0.2,1);
}

/* 2. Reset & base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.65;
  color: var(--text); background-color: var(--bg);
  background-image:
    radial-gradient(circle at 20% 0%, rgba(93,140,62,0.08), transparent 40%),
    radial-gradient(circle at 80% 10%, rgba(126,183,212,0.05), transparent 35%);
  background-attachment: fixed; overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; height: auto; }
a { color: var(--green-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--text); }
button { font-family: inherit; cursor: pointer; }
ul, ol { padding-left: 1.25rem; }

/* Decorative dividers */
.dirt-divider {
  height: 14px;
  background: repeating-linear-gradient(90deg, #4a3829 0 14px, #5a4633 14px 28px);
  border-top: 2px solid #6b5640; border-bottom: 2px solid #2a1f15;
  image-rendering: pixelated;
}
.grass-divider {
  height: 18px;
  background: linear-gradient(180deg, var(--green) 0 6px, var(--green-dark) 6px 8px, #4a3829 8px 18px);
  border-top: 2px solid var(--green-light); image-rendering: pixelated;
}
.pixel-grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* 3. Typography */
h1, h2, h3, h4 { margin: 0 0 0.6em; line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
.pixel-font { font-family: var(--font-pixel); letter-spacing: 0.02em; line-height: 1.5; text-transform: uppercase; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-pixel); font-size: 0.62rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--green-light); margin-bottom: 0.75rem;
}
.eyebrow::before {
  content: ""; width: 10px; height: 10px; background: var(--green);
  display: inline-block; box-shadow: 2px 2px 0 rgba(0,0,0,0.5);
}
code, pre {
  font-family: var(--font-mono); font-size: 0.875rem; background: #111;
  color: #d4f0c8; padding: 0.15em 0.4em; border: 1px solid var(--border); border-radius: 2px;
}
pre { padding: 1rem 1.25rem; overflow-x: auto; margin: 1rem 0; border-left: 4px solid var(--green); }

/* 4. Layout */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--space-lg); }
.container.narrow { max-width: var(--container-narrow); }
.section { padding: var(--space-3xl) 0; position: relative; }
.section--tight { padding: var(--space-2xl) 0; }
.section--alt { background: var(--bg-panel); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-header { max-width: 760px; margin-bottom: var(--space-xl); }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; }
.grid { display: grid; gap: var(--space-lg); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* 5. Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-body); font-weight: 700; font-size: 0.95rem;
  padding: 0.85rem 1.4rem; border: 3px solid var(--border-strong);
  background: var(--surface-2); color: var(--text); border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  box-shadow: 0 4px 0 rgba(0,0,0,0.6); position: relative;
}
.btn:hover { transform: translateY(-2px); color: var(--text); box-shadow: 0 6px 0 rgba(0,0,0,0.6); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0,0,0,0.6); }
.btn--primary { background: var(--green); border-color: var(--green-dark); color: #fff; }
.btn--primary:hover { background: var(--green-light); box-shadow: 0 6px 0 var(--green-dark), var(--shadow-glow); }
.btn--ghost { background: transparent; border-color: var(--border-strong); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--gold { background: var(--gold); border-color: #b8770a; color: #1a1100; }
.btn--gold:hover { background: #ffb83a; }
.btn--lg { padding: 1.05rem 1.8rem; font-size: 1.05rem; }
.btn--sm { padding: 0.5rem 0.85rem; font-size: 0.85rem; }
.btn--block { display: flex; width: 100%; justify-content: center; }

/* 6. Cards */
.card {
  background: var(--surface); border: var(--border-w) solid var(--border);
  border-radius: var(--radius); padding: var(--space-lg); position: relative;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-card);
}
.card:hover {
  transform: translateY(-3px); border-color: var(--green);
  box-shadow: var(--shadow-card), 0 0 0 1px var(--green), 0 0 18px var(--green-glow);
}
.card-icon {
  width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
  background: var(--bg-panel); border: 3px solid var(--green-dark); border-radius: var(--radius);
  margin-bottom: var(--space-md); color: var(--green-light);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.4);
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--text-muted); margin-bottom: 0; font-size: 0.95rem; }
.slot-card {
  background: #1a1a1a; border: 3px solid #2a2a2a; border-radius: 2px;
  padding: var(--space-lg); position: relative; transition: all var(--transition);
}
.slot-card:hover { border-color: var(--gold); box-shadow: inset 0 0 0 2px #fff8d8, 0 0 12px rgba(243,156,18,0.3); }

/* 7. Top announcement bar */
.topbar { background: #0a0a0a; border-bottom: 1px solid var(--border); font-size: 0.82rem; color: var(--text-muted); padding: 0.45rem 0; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.topbar-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-pixel); font-size: 0.6rem; color: var(--gold);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.topbar-badge::before { content: "\26A0"; }

/* 8. Header / nav */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15,15,15,0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
  background: rgba(10,10,10,0.98);
  border-bottom-color: var(--green-dark);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 0; gap: 1.5rem;
}
.nav-brand {
  display: flex; align-items: center; gap: 0.65rem;
  font-family: var(--font-body); font-weight: 800; font-size: 1.05rem;
  color: var(--text); letter-spacing: -0.01em;
  text-decoration: none; flex-shrink: 0;
}
.nav-brand img {
  width: 40px; height: 40px; image-rendering: pixelated;
}
.nav-brand .brand-text { line-height: 1; }
.nav-brand .brand-text span { color: var(--green-light); }

.nav-links {
  display: flex; align-items: center; gap: 0.35rem;
  list-style: none; padding: 0; margin: 0;
}
.nav-links li { display: flex; align-items: center; }
.nav-links a {
  color: var(--text-muted); font-weight: 600; font-size: 0.92rem;
  padding: 0.5rem 0.85rem; position: relative;
  border-radius: 2px; transition: color var(--transition), background var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(93,140,62,0.12); }
.nav-links a.active { color: var(--green-light); }
.nav-links a::after {
  content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.2rem;
  height: 2px; background: var(--green); transform: scaleX(0);
  transform-origin: left; transition: transform var(--transition);
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.nav-download { height: 40px; padding: 0 1rem; font-size: 0.9rem; }
.lang-switch { position: relative; }
.lang-switch-btn {
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0 0.75rem;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  color: var(--text);
  font: 700 0.78rem var(--font-body);
  cursor: pointer;
}
.lang-switch-btn:hover,
.lang-switch-btn:focus-visible { border-color: var(--green); color: var(--green-light); }
.lang-chevron { transition: transform var(--transition); }
.lang-switch.is-open .lang-chevron { transform: rotate(180deg); }
.lang-switch-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 100;
  width: 170px;
  padding: 0.4rem;
  background: #171717;
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  box-shadow: 0 18px 42px rgba(0,0,0,0.55);
}
.lang-switch-menu a {
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: 3px;
  color: var(--text-muted);
  font-size: 0.84rem;
}
.lang-switch-menu a:hover,
.lang-switch-menu a:focus-visible { background: rgba(93,140,62,0.14); color: var(--green-light); }
.lang-switch-menu a[aria-current] { color: #fff; background: var(--green-dark); }
.nav-toggle {
  display: none; background: var(--surface-2); border: 2px solid var(--border-strong);
  border-radius: 4px; width: 40px; height: 40px;
  flex-direction: column; justify-content: center; align-items: center; gap: 4px; cursor: pointer;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--text); display: block; transition: transform var(--transition), opacity var(--transition); }
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 9. Hero */
.hero { position: relative; padding: var(--space-3xl) 0 var(--space-2xl); overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(180deg, rgba(15,15,15,0.7) 0%, rgba(15,15,15,0.92) 70%, var(--bg) 100%),
    url("../images/gallery/launcher-superhero.jpg") center/cover no-repeat;
  background-size: cover;
  animation: heroDrift 26s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes heroDrift {
  0%   { transform: scale(1.04) translate(0, 0); }
  50%  { transform: scale(1.12) translate(-2%, -1.5%); }
  100% { transform: scale(1.08) translate(1.5%, 1%); }
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px; mix-blend-mode: overlay;
  animation: gridShift 40s linear infinite;
}
@keyframes gridShift {
  0%   { background-position: 0 0, 0 0; }
  100% { background-position: 32px 32px, 32px 32px; }
}
.hero .container { position: relative; z-index: 2; }

/* Centered hero content */
.hero-content {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding-top: var(--space-xl);
}
.hero-content .eyebrow { justify-content: center; margin-bottom: 1rem; }
.hero-title {
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  margin: 0 0 1rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-shadow: 4px 4px 0 rgba(0,0,0,0.7);
}
.hero-title .accent { color: var(--green-light); }
.hero-lead.center {
  margin-left: auto; margin-right: auto;
  max-width: 640px;
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.hero-cta.center { justify-content: center; margin-bottom: var(--space-2xl); }

/* Hero visual (centered, wide) */
.hero-visual {
  position: relative; z-index: 2;
  max-width: 920px;
  margin: 0 auto;
}
.hero-visual::after {
  content: "";
  position: absolute;
  left: 10%; right: 10%; bottom: -30px;
  height: 60px;
  background: radial-gradient(ellipse at center, rgba(93,140,62,0.35), transparent 70%);
  filter: blur(20px);
  z-index: -1;
  pointer-events: none;
}

/* Hero stats strip (full-width band at the bottom of hero) */
.hero-stats-strip {
  position: relative; z-index: 2;
  margin-top: var(--space-2xl);
  padding: 0 0 var(--space-xl);
}
.hero-stats-strip .stats-bar {
  background: rgba(26,26,26,0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.4rem 1.5rem;
}
.eyebrow.center { justify-content: center; }

/* Consistent real-image presentation */
.media-card {
  margin: 0;
  overflow: hidden;
  background: #171717;
  border: 1px solid #3a3a3a;
  border-radius: 6px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.42);
}
.media-card img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.media-card--hero {
  border-color: rgba(111,168,74,0.55);
  box-shadow: 0 24px 65px rgba(0,0,0,0.62), 0 0 40px rgba(93,140,62,0.15);
}
.media-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.78rem;
}
.media-caption strong { color: var(--text); font-weight: 700; }
@media (prefers-reduced-motion: reduce) {
  .hero-bg, .hero-bg::after { animation: none !important; }
}

/* Stats bar */
.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md);
  background: var(--surface); border: var(--border-w) solid var(--border);
  border-radius: var(--radius); padding: var(--space-lg);
  box-shadow: var(--shadow-card);
}
.stat { text-align: center; }
.stat-num {
  font-family: var(--font-pixel); font-size: 1.4rem; color: var(--green-light);
  text-shadow: 2px 2px 0 rgba(0,0,0,0.6); margin-bottom: 0.3rem;
}
.stat-label { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* Trust bar */
.trust-bar {
  background: #0a0a0a; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 0.85rem 0; font-size: 0.85rem; color: var(--text-muted);
}
.trust-bar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.trust-bar strong { color: var(--text); }
.trust-sources { display: flex; gap: 1rem; flex-wrap: wrap; }
.trust-sources a { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--text-muted); }
.trust-sources a:hover { color: var(--green-light); }
.trust-sources a::before { content: ""; width: 6px; height: 6px; background: var(--green); display: inline-block; }

/* Official downloads */
.download-section {
  background:
    linear-gradient(135deg, rgba(93,140,62,0.08), transparent 42%),
    var(--bg);
}
.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.download-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.4rem;
  background: linear-gradient(145deg, #1c1c1c, #141414);
  border: 1px solid #3b3b3b;
  border-radius: 6px;
  box-shadow: 0 14px 32px rgba(0,0,0,0.3);
}
.download-card--featured {
  grid-row: span 2;
  justify-content: center;
  border-color: rgba(111,168,74,0.7);
  background:
    linear-gradient(145deg, rgba(93,140,62,0.15), transparent 60%),
    #181818;
}
.download-platform {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}
.download-os {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  background: var(--green-dark);
  border: 2px solid var(--green-light);
  color: #fff;
  font-family: var(--font-pixel);
  font-size: 0.62rem;
  box-shadow: inset 0 -5px 0 rgba(0,0,0,0.2);
}
.download-kicker {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--green-light);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.download-card h3 { margin: 0; }
.download-card p { color: var(--text-muted); }
.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 0.5rem;
}
.download-meta {
  display: block;
  margin-top: 0.9rem;
  color: var(--text-dim);
  font-size: 0.75rem;
}
.download-safety {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  background: rgba(93,140,62,0.08);
  border: 1px solid var(--green-dark);
  border-left: 4px solid var(--green);
  color: var(--text-muted);
  font-size: 0.84rem;
}
.download-safety strong { color: var(--green-light); }

/* 10. Editions chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.8rem; background: var(--surface-2); border: 2px solid var(--border-strong);
  border-radius: 2px; font-size: 0.82rem; font-weight: 600; color: var(--text);
}
.chip-dot {
  width: 10px; height: 10px; display: inline-block;
  border: 1px solid rgba(0,0,0,0.4); image-rendering: pixelated;
  box-shadow: 0 0 6px currentColor;
}
.chip--green { border-color: var(--green-dark); background: rgba(93,140,62,0.15); color: var(--green-light); }

/* 11. Quick Play showcase */
.quickplay { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); align-items: center; }
.quickplay-visual { min-width: 0; }

.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li {
  display: flex; gap: 0.75rem; padding: 0.6rem 0; border-bottom: 1px dashed var(--border);
  color: var(--text-muted);
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before { content: "\2714"; color: var(--green); font-weight: 700; flex-shrink: 0; }

/* 12. Tabs (install steps) */
.tabs {
  background: var(--surface); border: var(--border-w) solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card);
}
.tab-list { display: flex; background: var(--bg-panel); border-bottom: 3px solid var(--border); }
.tab-btn {
  flex: 1; padding: 1rem 1.25rem; background: transparent; border: none;
  color: var(--text-muted); font-weight: 700; font-size: 0.95rem;
  border-right: 2px solid var(--border); cursor: pointer;
  transition: background var(--transition), color var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.tab-btn:last-child { border-right: none; }
.tab-btn:hover { background: var(--surface-2); color: var(--text); }
.tab-btn.active { background: var(--surface); color: var(--green-light); border-bottom: 3px solid var(--green); margin-bottom: -3px; }
.tab-panel { display: none; padding: var(--space-xl) var(--space-lg); }
.tab-panel.active { display: block; animation: fadeIn 200ms ease; }
.step-list { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step-list li {
  counter-increment: step; position: relative; padding: 0.85rem 0 0.85rem 3.5rem;
  border-bottom: 1px dashed var(--border); color: var(--text);
}
.step-list li:last-child { border-bottom: none; }
.step-list li::before {
  content: counter(step); position: absolute; left: 0; top: 0.7rem;
  width: 2.4rem; height: 2.4rem; background: var(--green); color: #fff;
  font-family: var(--font-pixel); font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--green-dark); border-radius: 2px;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.5);
}
.step-list li strong { color: var(--green-light); }

/* 13. Troubleshooting cards */
.fix-card {
  background: var(--surface); border: var(--border-w) solid var(--border);
  border-radius: var(--radius); padding: var(--space-lg); position: relative;
  border-left: 6px solid var(--redstone); transition: transform var(--transition), border-color var(--transition);
}
.fix-card:hover { transform: translateY(-2px); border-color: var(--gold); border-left-color: var(--gold); }
.fix-card h3 { color: var(--text); font-size: 1.05rem; margin-bottom: 0.4rem; }
.fix-card .fix-cause { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0.6rem; }
.fix-card .fix-step { font-size: 0.88rem; color: var(--green-light); padding-top: 0.4rem; border-top: 1px dashed var(--border); }
.fix-card .fix-tag {
  display: inline-block; font-family: var(--font-pixel); font-size: 0.55rem;
  padding: 0.25rem 0.5rem; background: rgba(231,76,60,0.15); color: var(--redstone);
  border: 1px solid var(--redstone); border-radius: 2px; margin-bottom: 0.6rem; text-transform: uppercase;
}

/* 14. Wizard */
.wizard {
  background: var(--surface); border: var(--border-w) solid var(--border);
  border-radius: var(--radius); padding: var(--space-xl); box-shadow: var(--shadow-card);
}
.wizard-step { display: none; }
.wizard-step.active { display: block; animation: fadeIn 200ms ease; }
.wizard-step h3 { color: var(--green-light); margin-bottom: 0.4rem; }
.wizard-step p { color: var(--text-muted); margin-bottom: var(--space-md); }
.wizard-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.75rem; }
.wizard-opt {
  padding: 1rem; background: var(--surface-2); border: 3px solid var(--border-strong);
  border-radius: 2px; color: var(--text); font-weight: 600; cursor: pointer;
  text-align: left; transition: all var(--transition);
}
.wizard-opt:hover { border-color: var(--green); background: rgba(93,140,62,0.15); transform: translateY(-2px); }
.wizard-progress { display: flex; gap: 0.4rem; margin-bottom: var(--space-lg); }
.wizard-progress span { flex: 1; height: 6px; background: var(--border); border-radius: 2px; }
.wizard-progress span.done { background: var(--green); }
.wizard-result {
  background: rgba(93,140,62,0.08); border: 2px solid var(--green-dark);
  border-radius: 2px; padding: var(--space-lg); margin-top: var(--space-md);
}
.wizard-result h4 { color: var(--green-light); margin-bottom: 0.5rem; }
.wizard-back {
  background: transparent; border: 2px solid var(--border-strong); color: var(--text-muted);
  padding: 0.5rem 1rem; border-radius: 2px; cursor: pointer; margin-top: 1rem; font-weight: 600;
}
.wizard-back:hover { border-color: var(--green); color: var(--text); }

/* 15. Comparison table */
.table-wrap {
  overflow-x: auto; border: var(--border-w) solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-card);
}
table.cmp { width: 100%; border-collapse: collapse; min-width: 720px; background: var(--surface); }
table.cmp th, table.cmp td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
table.cmp th { background: var(--bg-panel); color: var(--green-light); font-weight: 700; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.04em; }
table.cmp tr:hover td { background: rgba(93,140,62,0.05); }
table.cmp td:first-child { font-weight: 700; color: var(--text); }
.rating { display: inline-flex; gap: 2px; }
.rating span { width: 12px; height: 12px; background: var(--border); display: inline-block; }
.rating span.on { background: var(--green); }
.rating.warn span.on { background: var(--gold); }
.rating.bad span.on { background: var(--redstone); }
.badge-safe { color: var(--green-light); font-weight: 700; }
.badge-warn { color: var(--gold); font-weight: 700; }
.badge-bad { color: var(--redstone); font-weight: 700; }

/* 16. Pricing */
.price-card {
  background: var(--surface); border: var(--border-w) solid var(--border);
  border-radius: var(--radius); padding: var(--space-lg); text-align: center;
  position: relative; transition: transform var(--transition), border-color var(--transition);
}
.price-card:hover { transform: translateY(-4px); border-color: var(--green); }
.price-card.featured { border-color: var(--green); box-shadow: var(--shadow-card), 0 0 18px var(--green-glow); }
.price-card.featured::before {
  content: "Best Value"; position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--green); color: #fff; font-family: var(--font-pixel); font-size: 0.55rem;
  padding: 0.35rem 0.7rem; border: 2px solid var(--green-dark); border-radius: 2px;
}
.price-card .price-name { font-weight: 700; color: var(--text-muted); text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.05em; }
.price-card .price-amount { font-family: var(--font-pixel); font-size: 1.8rem; color: var(--green-light); margin: 0.6rem 0; text-shadow: 2px 2px 0 rgba(0,0,0,0.6); }
.price-card .price-desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 1.2rem; text-align: left; }
.price-card ul li { padding: 0.35rem 0 0.35rem 1.5rem; position: relative; font-size: 0.88rem; color: var(--text-muted); }
.price-card ul li::before { content: "\2714"; position: absolute; left: 0; color: var(--green); }

/* 17. Testimonials */
.quote {
  background: var(--surface); border: var(--border-w) solid var(--border);
  border-left: 6px solid var(--green); border-radius: var(--radius);
  padding: var(--space-lg); position: relative; box-shadow: var(--shadow-card);
}
.quote.neg { border-left-color: var(--redstone); }
.quote blockquote { margin: 0 0 0.8rem; color: var(--text); font-style: italic; font-size: 0.95rem; line-height: 1.6; }
.quote cite { font-style: normal; font-size: 0.82rem; color: var(--text-muted); display: block; }
.quote cite strong { color: var(--green-light); }
.quote .quote-tag {
  display: inline-block; font-family: var(--font-pixel); font-size: 0.55rem;
  padding: 0.2rem 0.45rem; background: rgba(93,140,62,0.15); color: var(--green-light);
  border: 1px solid var(--green-dark); border-radius: 2px; margin-bottom: 0.6rem; text-transform: uppercase;
}
.quote.neg .quote-tag { background: rgba(231,76,60,0.15); color: var(--redstone); border-color: var(--redstone); }

/* 18. Trivia */
.trivia-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-md); }
.trivia-item {
  background: var(--surface); border: 3px solid var(--border); border-radius: 2px;
  padding: var(--space-lg); transition: all var(--transition);
}
.trivia-item:hover { border-color: var(--gold); transform: translateY(-2px); }
.trivia-item .trivia-num {
  font-family: var(--font-pixel); font-size: 1.1rem; color: var(--gold);
  margin-bottom: 0.5rem; text-shadow: 2px 2px 0 rgba(0,0,0,0.6);
}
.trivia-item p { color: var(--text-muted); margin: 0; font-size: 0.92rem; }

/* 19. FAQ accordion */
.faq-item {
  background: var(--surface); border: 3px solid var(--border); border-radius: 2px;
  margin-bottom: 0.75rem; overflow: hidden; transition: border-color var(--transition);
}
.faq-item.open { border-color: var(--green-dark); }
.faq-q {
  width: 100%; padding: 1rem 1.25rem; background: transparent; border: none;
  color: var(--text); font-weight: 700; font-size: 1rem; text-align: left;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; cursor: pointer;
}
.faq-q:hover { color: var(--green-light); }
.faq-q .faq-icon {
  width: 24px; height: 24px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); border: 2px solid var(--border-strong); border-radius: 2px;
  transition: transform var(--transition), background var(--transition);
}
.faq-item.open .faq-q .faq-icon { transform: rotate(45deg); background: var(--green); color: #fff; border-color: var(--green-dark); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 250ms ease; }
.faq-item.open .faq-a { max-height: 600px; }
.faq-a-inner { padding: 0 1.25rem 1rem; color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }

/* 20. Screenshot gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 190px;
  gap: 0.75rem;
}
.gallery-item {
  position: relative;
  grid-column: span 4;
  padding: 0;
  overflow: hidden;
  border: 1px solid #3b3b3b;
  border-radius: 5px;
  background: #151515;
  color: var(--text);
  cursor: zoom-in;
  box-shadow: 0 12px 28px rgba(0,0,0,0.28);
  text-align: left;
}
.gallery-item--featured {
  grid-column: span 8;
  grid-row: span 2;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 450ms ease, filter 450ms ease;
}
.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.035);
  filter: brightness(0.82);
}
.gallery-item:focus-visible {
  outline: 3px solid var(--green-light);
  outline-offset: 3px;
}
.gallery-overlay {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 0.2rem 1rem;
  padding: 2.5rem 1rem 0.9rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
}
.gallery-overlay small {
  grid-column: 1;
  color: var(--green-light);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.gallery-overlay strong {
  grid-column: 1;
  font-size: 0.95rem;
}
.gallery-overlay i {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  color: #fff;
  font-size: 1.2rem;
  font-style: normal;
  opacity: 0;
  transform: translate(-5px, 5px);
  transition: opacity var(--transition), transform var(--transition);
}
.gallery-item:hover .gallery-overlay i,
.gallery-item:focus-visible .gallery-overlay i {
  opacity: 1;
  transform: translate(0, 0);
}
.gallery-lightbox {
  width: min(1100px, calc(100vw - 2rem));
  max-width: none;
  padding: 0;
  overflow: visible;
  border: 1px solid #4a4a4a;
  border-radius: 6px;
  background: #111;
  color: var(--text);
  box-shadow: 0 30px 90px rgba(0,0,0,0.8);
}
.gallery-lightbox::backdrop {
  background: rgba(5,5,5,0.88);
  backdrop-filter: blur(6px);
}
.gallery-lightbox img {
  width: 100%;
  max-height: 78vh;
  display: block;
  object-fit: contain;
  background: #080808;
  border-radius: 6px 6px 0 0;
}
.gallery-lightbox p {
  margin: 0;
  padding: 0.9rem 1.1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.gallery-lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 1;
  width: 38px;
  height: 38px;
  border: 2px solid #555;
  border-radius: 50%;
  background: #171717;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.gallery-lightbox-close:hover,
.gallery-lightbox-close:focus-visible { background: var(--green-dark); }

/* 21. CTA banner */
.cta-banner {
  background:
    linear-gradient(135deg, rgba(93,140,62,0.18), rgba(31,95,168,0.12)),
    var(--surface);
  border: var(--border-w) solid var(--green-dark); border-radius: var(--radius);
  padding: var(--space-2xl) var(--space-xl); text-align: center; position: relative; overflow: hidden;
  box-shadow: var(--shadow-card), 0 0 32px var(--green-glow);
}
.cta-banner::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 24px 24px; pointer-events: none;
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { color: var(--text); margin-bottom: 0.6rem; }
.cta-banner p { color: var(--text-muted); max-width: 600px; margin: 0 auto var(--space-lg); }

/* 22. Footer */
.site-footer {
  background: #0a0a0a; border-top: 4px solid var(--green-dark); padding: var(--space-2xl) 0 var(--space-lg);
  color: var(--text-muted); font-size: 0.88rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}
.footer-brand { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.8rem; font-family: var(--font-body); font-weight: 800; font-size: 0.95rem; color: var(--text); text-decoration: none; }
.footer-brand img { width: 32px; height: 32px; image-rendering: pixelated; }
.footer-brand span { color: var(--green-light); }
.footer-col h4 {
  font-family: var(--font-pixel); font-size: 0.65rem; color: var(--green-light);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.8rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.4rem; }
.footer-col a { color: var(--text-muted); font-size: 0.88rem; }
.footer-col a:hover { color: var(--green-light); }
.disclosure {
  background: rgba(231,76,60,0.08); border: 2px solid rgba(231,76,60,0.4);
  border-radius: 2px; padding: 1rem 1.25rem; margin-bottom: var(--space-lg);
  font-size: 0.82rem; color: var(--text-muted); line-height: 1.6;
}
.disclosure strong { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: var(--space-lg);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.82rem; color: var(--text-dim); align-items: center;
}
.footer-legal {
  display: flex; flex-wrap: wrap; gap: 0.35rem 1rem;
}
.footer-legal a { color: var(--text-muted); }
.footer-legal a:hover, .footer-legal a[aria-current="page"] { color: var(--green-light); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--green); color: #fff; padding: 0.6rem 1rem; font-weight: 700;
}
.skip-link:focus { left: 1rem; top: 1rem; color: #fff; }
.crumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem;
  font-size: 0.82rem; color: var(--text-dim); margin-bottom: 1rem;
}
.crumb a { color: var(--text-muted); }
.crumb a:hover { color: var(--green-light); }
.legal-page { padding: var(--space-2xl) 0 var(--space-3xl); }
.legal-page .eyebrow { margin-bottom: 0.85rem; }
.legal-page h1 { margin-bottom: 0.8rem; }
.legal-page .legal-lead { font-size: 1.08rem; color: var(--text-muted); max-width: 42rem; }
.legal-page .legal-updated { font-size: 0.85rem; color: var(--text-dim); margin-bottom: var(--space-xl); }
.legal-page h2 { font-size: 1.35rem; margin-top: 2rem; color: var(--green-light); }
.legal-page p, .legal-page li { color: var(--text-muted); }
.legal-page ul { margin: 0 0 1rem; }
.contact-grid {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: var(--space-xl); margin-top: var(--space-xl);
}
.contact-card h3 { margin-top: 0; }
.page-404 { text-align: center; padding: var(--space-3xl) 0; }
.page-404 h1 { margin-bottom: 0.75rem; }
.page-404 p { max-width: 36rem; margin-left: auto; margin-right: auto; }
.page-404 .hero-cta { justify-content: center; margin-top: var(--space-lg); }
@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* 23. Animations & utilities */
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 500ms ease, transform 500ms ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-lg { margin-top: var(--space-lg); } .mb-lg { margin-bottom: var(--space-lg); }
.text-muted { color: var(--text-muted); }
.text-green { color: var(--green-light); }
.text-gold { color: var(--gold); }
.flex { display: flex; } .flex-col { flex-direction: column; } .gap-sm { gap: 0.5rem; } .gap-md { gap: 1rem; }
.items-center { align-items: center; } .justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.glow { text-shadow: 0 0 12px var(--green-glow); }
hr.dashed { border: none; border-top: 2px dashed var(--border); margin: var(--space-xl) 0; }
.tag {
  display: inline-block; padding: 0.2rem 0.55rem; font-family: var(--font-pixel);
  font-size: 0.55rem; background: var(--surface-2); border: 2px solid var(--border-strong);
  color: var(--text-muted); border-radius: 2px; text-transform: uppercase; letter-spacing: 0.05em;
}
.tag--green { background: rgba(93,140,62,0.15); border-color: var(--green-dark); color: var(--green-light); }
.tag--gold { background: rgba(243,156,18,0.15); border-color: var(--gold); color: var(--gold); }
.tag--blue { background: rgba(126,183,212,0.15); border-color: var(--water); color: var(--water); }

/* 24. Responsive */
@media (max-width: 980px) {
  .quickplay { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; }
  .gallery-item, .gallery-item--featured { grid-column: span 1; grid-row: span 1; }
  .gallery-item--featured { grid-column: span 2; grid-row: span 2; }
}
@media (max-width: 760px) {
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--bg-panel);
    border-bottom: 4px solid var(--green-dark); border-top: 1px solid var(--border);
    padding: 0.5rem var(--space-lg) 1rem; gap: 0.25rem; align-items: stretch;
    box-shadow: 0 12px 24px rgba(0,0,0,0.5);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    padding: 0.85rem 0.5rem; border-bottom: 1px solid var(--border);
    border-radius: 0; font-size: 1rem;
  }
  .nav-links a::after { display: none; }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-toggle { display: flex; }
  .nav-download { display: none; }
  .lang-switch-menu { position: fixed; top: 72px; right: var(--space-md); left: auto; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .section { padding: var(--space-2xl) 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .tab-btn { font-size: 0.82rem; padding: 0.85rem 0.5rem; }
  .hero h1 { font-size: 2rem; }
  .stat-num { font-size: 1.1rem; }
  .download-grid { grid-template-columns: 1fr; }
  .download-card--featured { grid-row: auto; }
  .download-actions .btn { width: 100%; justify-content: center; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 210px; }
  .gallery-item, .gallery-item--featured { grid-column: 1; grid-row: span 1; }
  .gallery-lightbox-close { top: 8px; right: 8px; }
}

/* Localized layouts */
html[lang="zh-CN"] body { font-family: "Noto Sans SC", var(--font-body); }
html[lang="ja"] body { font-family: "Noto Sans JP", var(--font-body); }
html[lang="hi"] body { font-family: "Noto Sans Devanagari", var(--font-body); }
html[dir="rtl"] body { font-family: "Noto Sans Hebrew", var(--font-body); }
html[dir="rtl"] .lang-switch-menu { right: auto; left: 0; text-align: right; }
html[dir="rtl"] .feature-list,
html[dir="rtl"] .step-list,
html[dir="rtl"] .price-card ul { padding-left: 0; padding-right: 1.2rem; }
html[dir="rtl"] .download-safety,
html[dir="rtl"] .fix-card,
html[dir="rtl"] .faq-a-inner { text-align: right; }
html[dir="rtl"] code,
html[dir="rtl"] pre,
html[dir="rtl"] [dir="ltr"] { direction: ltr; unicode-bidi: isolate; }
html[dir="rtl"] .gallery-overlay { text-align: right; }
html[dir="rtl"] .gallery-lightbox-close { right: auto; left: -14px; }
@media (max-width: 760px) {
  html[dir="rtl"] .lang-switch-menu { right: auto; left: var(--space-md); }
  html[dir="rtl"] .gallery-lightbox-close { right: auto; left: 8px; }
}
@media (max-width: 980px) and (min-width: 761px) {
  .nav-links { gap: 0.15rem; }
  .nav-links a { padding: 0.5rem 0.6rem; font-size: 0.85rem; }
}
@media (max-width: 480px) {
  .container { padding: 0 var(--space-md); }
  .stats-bar { grid-template-columns: 1fr 1fr; gap: 0.5rem; padding: 1rem; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .tab-btn { font-size: 0.75rem; }
}

/* Print */
@media print {
  .site-header, .topbar, .nav-toggle, .hero-bg, .cta-banner::before { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .fix-card, .quote { border: 1px solid #999; box-shadow: none; }
}
