/* ===========================================================
   Blox Menu — shared site styles
   =========================================================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0f1117;
  --bg-2: #13151b;
  --panel: #1b1e27;
  --card: #1e2230;
  --card-hover: #252a3a;
  --accent: #335fff;
  --accent-light: #6d8bff;
  --accent-dim: rgba(51, 95, 255, 0.14);
  --accent-glow: rgba(51, 95, 255, 0.45);
  --text: #f2f3f7;
  --text-sec: #aab0c0;
  --text-dim: #6a7186;
  --border: #272b39;
  --green: #25c26e;
  --gold: #f5b73d;
  --radius: 14px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --maxw: 1180px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.accent-text { color: var(--accent-light); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.92rem;
  font-family: var(--font);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 20px rgba(51, 95, 255, 0.35);
}
.btn-primary:hover {
  background: #2950e6;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(51, 95, 255, 0.5);
}
.btn-ghost {
  background: var(--card);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  background: var(--card-hover);
}
.btn-block { width: 100%; padding: 16px; font-size: 1rem; }

/* ===== Header ===== */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 17, 23, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  height: 66px;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.5px;
}
.brand img { width: 26px; height: 26px; }
.brand b { color: var(--text); }
.brand span { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 26px;
  margin-left: 14px;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-sec);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-cta .btn { padding: 9px 18px; font-size: 0.86rem; }

/* ===== Browse Games mega menu (desktop) ===== */
.nav-mega { display: inline-flex; align-items: center; }
.mega {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 860px;
  max-width: calc(100vw - 32px);
  background: var(--panel, #1b1e27);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.55);
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.16s ease, transform 0.16s ease;
  z-index: 60;
}
.mega.open { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega-head {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--text-dim); font-weight: 700; margin: 2px 8px 12px;
}
.mega-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; }
.mega-grid a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px; border-radius: 9px;
  font-size: 0.85rem; font-weight: 500; color: var(--text-sec);
  transition: background 0.13s ease, color 0.13s ease;
}
.mega-grid a:hover { background: var(--card); color: var(--text); }
.mega-em { width: 22px; text-align: center; font-size: 1.05rem; flex-shrink: 0; }
.mega-foot { margin: 12px 8px 2px; padding-top: 12px; border-top: 1px solid var(--border); }
.mega-foot a { font-size: 0.82rem; color: var(--accent-light); font-weight: 600; }
@media (max-width: 900px) { .mega { display: none !important; } }
.menu-toggle { display: none; background: none; border: none; color: var(--text); cursor: pointer; }
.menu-toggle svg { width: 26px; height: 26px; }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 70px 0 80px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(51, 95, 255, 0.22), transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent-dim);
  border: 1px solid rgba(51, 95, 255, 0.3);
  color: var(--accent-light);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 100px;
  margin-bottom: 18px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.hero h1 {
  font-size: 2.9rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -1.2px;
  margin-bottom: 16px;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--accent-light), #9db4ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.lead {
  font-size: 1.05rem;
  color: var(--text-sec);
  margin-bottom: 26px;
  max-width: 480px;
}
.rating-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
}
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars svg { width: 18px; height: 18px; }
.rating-row .rscore { font-weight: 800; }
.rating-row .rcount { color: var(--text-dim); font-size: 0.85rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.trust-line {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--text-dim);
}
.trust-line span { display: inline-flex; align-items: center; gap: 6px; }
.trust-line svg { width: 15px; height: 15px; color: var(--green); }

/* ===== Hero showcase image ===== */
.shot-stage {
  display: flex;
  justify-content: center;
  perspective: 1400px;
}
.shot-frame {
  width: 100%;
  max-width: 360px;
  transform: rotateY(-7deg) rotateX(2deg);
  transition: transform 0.45s ease;
}
.shot-frame:hover { transform: rotateY(0deg) rotateX(0deg); }
.shot-frame img {
  width: 100%;
  display: block;
  border-radius: 12px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.5);
}

/* ===== Sections ===== */
section { position: relative; }
.section-pad { padding: 64px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.eyebrow {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 10px;
}
.section-head h2 { font-size: 2rem; font-weight: 800; letter-spacing: -0.8px; margin-bottom: 12px; }
.section-head p { color: var(--text-sec); font-size: 1rem; }

/* What is */
.about-band {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.about-grid h2 { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.6px; margin-bottom: 16px; }
.about-grid p { color: var(--text-sec); margin-bottom: 14px; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}
.stat .num { font-size: 1.9rem; font-weight: 800; color: var(--accent-light); letter-spacing: -1px; }
.stat .lab { font-size: 0.8rem; color: var(--text-dim); margin-top: 2px; }

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
  transition: all 0.18s ease;
}
.feature:hover {
  border-color: rgba(51,95,255,0.4);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}
.feature .ic {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-dim);
  border: 1px solid rgba(51,95,255,0.25);
  border-radius: 11px;
  font-size: 1.3rem;
  margin-bottom: 14px;
}
.feature h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.feature p { font-size: 0.86rem; color: var(--text-sec); }

/* CTA band */
.cta-band { padding: 8px 0 64px; }
.cta-box {
  background: linear-gradient(135deg, rgba(51,95,255,0.18), rgba(51,95,255,0.05));
  border: 1px solid rgba(51,95,255,0.3);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-box h2 { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.6px; margin-bottom: 10px; }
.cta-box p { color: var(--text-sec); margin-bottom: 24px; }

/* Games */
.games-band { background: var(--bg-2); border-top: 1px solid var(--border); }
.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.game-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.18s ease;
}
.game-card:hover {
  border-color: rgba(51,95,255,0.4);
  background: var(--card-hover);
  transform: translateY(-2px);
}
.game-top { display: flex; align-items: center; gap: 10px; }
.game-emoji {
  width: 38px; height: 38px; border-radius: 9px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.game-name { font-weight: 700; font-size: 0.95rem; }
.game-rate { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--text-dim); }
.game-rate .ministars { display: inline-flex; gap: 1px; color: var(--gold); }
.game-rate .ministars svg { width: 13px; height: 13px; }
.game-rate b { color: var(--text-sec); }
.game-link {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.82rem; font-weight: 600; color: var(--accent-light);
  padding-top: 4px;
}
.game-link svg { width: 15px; height: 15px; transition: transform 0.15s ease; }
.game-card:hover .game-link svg { transform: translateX(3px); }
.games-more { text-align: center; margin-top: 30px; color: var(--text-dim); font-size: 0.9rem; }
.games-more a { color: var(--accent-light); font-weight: 600; }

/* Footer */
footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 54px 0 0;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 36px;
  padding-bottom: 44px;
}
.foot-brand .brand { margin-bottom: 14px; }
.foot-brand p { font-size: 0.86rem; color: var(--text-dim); max-width: 280px; }
.foot-col h4 {
  font-size: 0.74rem; text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--text-dim); margin-bottom: 14px; font-weight: 700;
}
.foot-col a, .foot-col p { display: block; font-size: 0.88rem; color: var(--text-sec); margin-bottom: 9px; }
.foot-col a:hover { color: var(--accent-light); }
.foot-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.8rem; color: var(--text-dim);
  flex-wrap: wrap; gap: 10px;
}
.foot-bottom .disc { max-width: 720px; }

/* Mobile menu drawer */
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 12px 24px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 11px 0; color: var(--text-sec); font-weight: 500; border-bottom: 1px solid var(--border); }
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu .mobile-dl {
  margin-top: 12px;
  padding: 13px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-align: center;
  border-radius: 10px;
  border-bottom: none;
}
.mobile-menu .mobile-dl:hover { background: #2950e6; color: #fff; }

/* ===== Download page ===== */
@keyframes spin { to { transform: rotate(360deg); } }

.dl-hero { padding: 56px 0 36px; position: relative; overflow: hidden; }
.dl-hero::before {
  content: '';
  position: absolute;
  top: -220px; left: 50%;
  transform: translateX(-50%);
  width: 820px; height: 560px;
  background: radial-gradient(ellipse at center, rgba(51,95,255,0.2), transparent 65%);
  pointer-events: none; z-index: 0;
}
.dl-card {
  position: relative; z-index: 1;
  max-width: 470px; margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 34px 30px 28px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}
.dl-icon {
  width: 74px; height: 74px; margin: 0 auto 16px;
  border-radius: 18px;
  background: var(--accent-dim);
  border: 1px solid rgba(51,95,255,0.3);
  display: flex; align-items: center; justify-content: center;
}
.dl-icon img { width: 46px; height: 46px; }
.dl-card h1 { font-size: 1.55rem; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 6px; }
.dl-sub { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 22px; }
.dl-count {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 13px;
  font-size: 0.88rem; color: var(--text-sec);
  margin-bottom: 16px;
}
.dl-count #dlNum { font-weight: 800; color: var(--accent-light); }
.dl-count.done { color: var(--green); border-color: rgba(37,194,110,0.3); background: rgba(37,194,110,0.08); }
.dl-count.done svg { width: 18px; height: 18px; }
.dl-spinner {
  width: 18px; height: 18px; flex-shrink: 0;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.dl-manual { font-size: 0.78rem; color: var(--text-dim); margin-top: 14px; }
.dl-manual a { color: var(--accent-light); font-weight: 600; }
.dl-trust {
  display: flex; justify-content: center; gap: 16px; flex-wrap: wrap;
  margin-top: 20px; padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 0.76rem; color: var(--text-dim);
}
.dl-trust span { display: inline-flex; align-items: center; gap: 5px; }
.dl-trust svg { width: 14px; height: 14px; color: var(--green); }

/* Install steps */
.install-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
}
.steps { display: grid; gap: 14px; }
.step {
  display: flex; gap: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
}
.step-num {
  width: 34px; height: 34px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent); color: #fff;
  font-weight: 800; font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center;
}
.step-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.step-body p { font-size: 0.88rem; color: var(--text-sec); }
.step-body p a, .step-body kbd { color: var(--accent-light); font-weight: 600; }

/* SmartScreen callout */
.smartscreen { margin: 0; align-self: center; }
.smartscreen-figure {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
}
.smartscreen-figure img { width: 100%; border-radius: 9px; display: block; }
.smartscreen-cap { font-size: 0.82rem; color: var(--text-dim); margin-top: 13px; text-align: center; line-height: 1.6; }
.smartscreen-cap b { color: var(--text-sec); }

/* ===== Game page ===== */
.breadcrumb { padding: 20px 0 0; font-size: 0.82rem; color: var(--text-dim); }
.breadcrumb a { color: var(--text-sec); }
.breadcrumb a:hover { color: var(--accent-light); }
.breadcrumb .sep { margin: 0 8px; opacity: 0.6; }

.game-hero { padding: 24px 0 44px; }
.game-hero .wrap { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: start; }
.game-shot { width: 100%; }
.game-shot img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 18px 44px rgba(0,0,0,0.45);
}
.game-info { min-width: 0; }
.game-info h1 { font-size: 1.95rem; font-weight: 800; letter-spacing: -0.7px; margin-bottom: 10px; }
.game-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.game-rating .stars { display: inline-flex; gap: 2px; color: var(--gold); }
.game-rating .stars svg { width: 17px; height: 17px; }
.game-rating .score { font-weight: 800; }
.game-rating .count { color: var(--text-dim); font-size: 0.85rem; }

.script-box {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--text-sec);
  padding: 14px 16px;
  max-width: 100%;
  max-height: 180px;
  overflow: auto;
  margin-bottom: 14px;
  white-space: pre;
  line-height: 1.7;
  tab-size: 2;
}
.script-box::-webkit-scrollbar { width: 6px; height: 6px; }
.script-box::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.script-box .cmt { color: var(--text-dim); }
.script-box .kw { color: var(--accent-light); }
.script-box .str { color: #8fd3a0; }

.script-actions { display: flex; gap: 10px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.copy-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 18px; border-radius: 10px;
  background: var(--card); border: 1px solid var(--border);
  color: var(--text); font-weight: 700; font-size: 0.88rem; font-family: var(--font);
  cursor: pointer; transition: all 0.15s ease;
}
.copy-btn:hover { border-color: var(--accent); color: var(--accent-light); background: var(--card-hover); }
.copy-btn svg { width: 16px; height: 16px; }
.copy-btn.copied { color: var(--green); border-color: rgba(37,194,110,0.4); }

.share { display: flex; gap: 8px; align-items: center; margin-left: 4px; }
.share a {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); transition: all 0.15s ease;
}
.share a:hover { border-color: var(--accent); color: var(--accent-light); }
.share svg { width: 15px; height: 15px; }

.content-section { padding: 40px 0; border-top: 1px solid var(--border); }
.content-section > .wrap > h2 {
  font-size: 1.4rem; font-weight: 800; letter-spacing: -0.4px; margin-bottom: 18px;
}
.prose { max-width: 840px; color: var(--text-sec); font-size: 0.95rem; }
.prose p { margin-bottom: 14px; }
.prose strong { color: var(--text); }

/* Install columns (game page) */
.install-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.install-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 26px;
}
.install-card h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 9px; }
.install-card > p { font-size: 0.86rem; color: var(--text-dim); }
.install-card ol { margin: 14px 0 0 18px; }
.install-card li { font-size: 0.87rem; color: var(--text-sec); margin-bottom: 9px; padding-left: 4px; }
.install-card li strong { color: var(--text); }
.install-note { margin-top: 22px; font-size: 0.88rem; color: var(--text-dim); }
.install-note a { color: var(--accent-light); font-weight: 600; }

/* More mods */
.mod-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mod-card {
  display: flex; align-items: center; gap: 11px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 11px;
  transition: all 0.15s ease;
}
.mod-card:hover { border-color: rgba(51,95,255,0.4); background: var(--card-hover); transform: translateY(-2px); }
.mod-card .em {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--bg-2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; flex-shrink: 0;
}
.mod-card .mname { flex: 1; font-weight: 600; font-size: 0.9rem; color: var(--text); }
.mod-card .chev { display: flex; color: var(--text-dim); }
.mod-card .chev svg { width: 16px; height: 16px; transition: transform 0.15s ease; }
.mod-card:hover .chev { color: var(--accent-light); }
.mod-card:hover .chev svg { transform: translateX(3px); }

/* ===== About / Team ===== */
.about-page { padding: 28px 0 64px; }
.about-page h1 { font-size: 2.1rem; font-weight: 800; letter-spacing: -0.7px; margin-bottom: 16px; }
.about-lead { max-width: 820px; color: var(--text-sec); font-size: 1.02rem; margin-bottom: 38px; }
.about-lead strong { color: var(--accent-light); font-weight: 700; }
.team { display: grid; gap: 18px; }
.team-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 26px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 26px;
  transition: border-color 0.18s ease;
}
.team-card:hover { border-color: rgba(51,95,255,0.35); }
.team-photo {
  width: 150px; height: 150px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--border);
}
.team-role {
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.1px;
  color: var(--accent-light); margin-bottom: 5px;
}
.team-card h3 { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.3px; margin-bottom: 10px; }
.team-card p { font-size: 0.9rem; color: var(--text-sec); line-height: 1.7; }
.about-outro { max-width: 820px; color: var(--text-sec); font-size: 1.02rem; margin-top: 38px; }

/* ===== Contact ===== */
.contact-page { padding: 28px 0 64px; }
.contact-page h1 { font-size: 2.1rem; font-weight: 800; letter-spacing: -0.7px; margin-bottom: 16px; }
.contact-lead { max-width: 760px; color: var(--text-sec); font-size: 1.02rem; margin-bottom: 34px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 880px; }
.contact-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  transition: border-color 0.18s ease;
}
.contact-card:hover { border-color: rgba(51,95,255,0.35); }
.cc-icon {
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 11px;
  background: var(--accent-dim);
  border: 1px solid rgba(51,95,255,0.25);
  display: flex; align-items: center; justify-content: center;
}
.cc-icon svg { width: 20px; height: 20px; color: var(--accent-light); }
.contact-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.contact-card p { font-size: 0.88rem; color: var(--text-sec); line-height: 1.6; }
.contact-card a { color: var(--accent-light); font-weight: 600; word-break: break-word; }
.contact-note { max-width: 880px; margin-top: 22px; font-size: 0.9rem; color: var(--text-dim); }
.contact-note a { color: var(--accent-light); font-weight: 600; }

/* ===== Legal pages ===== */
.legal-page { padding: 28px 0 64px; }
.legal-page h1 { font-size: 2.1rem; font-weight: 800; letter-spacing: -0.7px; margin-bottom: 8px; }
.legal-updated { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 30px; }
.legal { max-width: 820px; color: var(--text-sec); font-size: 0.95rem; }
.legal p { margin-bottom: 16px; line-height: 1.75; }
.legal h2 { font-size: 1.18rem; font-weight: 700; color: var(--text); margin: 30px 0 10px; letter-spacing: -0.2px; }
.legal ul { margin: 0 0 16px 22px; }
.legal li { margin-bottom: 8px; line-height: 1.7; }
.legal a { color: var(--accent-light); font-weight: 600; }
.legal strong { color: var(--text); }

/* ===== Knowledge Base ===== */
.kb-head { padding: 30px 0 4px; }
.kb-head h1 { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.7px; margin-bottom: 12px; }
.kb-head p { color: var(--text-sec); max-width: 720px; font-size: 1.02rem; }

.kb-cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 30px 0 60px; }
.kb-cat-card {
  display: block;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 24px;
  transition: all 0.18s ease;
}
.kb-cat-card:hover { border-color: rgba(51,95,255,0.4); transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,0.3); }
.kc-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.kc-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 11px;
  background: var(--accent-dim); border: 1px solid rgba(51,95,255,0.25);
  display: flex; align-items: center; justify-content: center; font-size: 1.25rem;
}
.kb-cat-card h3 { font-size: 1.1rem; font-weight: 700; }
.kb-cat-card p { font-size: 0.88rem; color: var(--text-sec); margin-bottom: 12px; }
.kc-count { font-size: 0.78rem; color: var(--accent-light); font-weight: 600; }

.kb-layout { display: grid; grid-template-columns: 244px 1fr; gap: 42px; align-items: start; padding: 22px 0 64px; }
.kb-sidebar { position: sticky; top: 84px; max-height: calc(100vh - 104px); overflow-y: auto; }
.kb-sidebar::-webkit-scrollbar { width: 4px; }
.kb-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.kb-sb-group { margin-bottom: 20px; }
.kb-sb-cat { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); font-weight: 700; margin: 0 0 8px 10px; }
.kb-sb-group a { display: block; font-size: 0.86rem; color: var(--text-sec); padding: 7px 10px; border-radius: 7px; }
.kb-sb-group a:hover { background: var(--card); color: var(--text); }
.kb-sb-group a.active { background: var(--accent-dim); color: var(--accent-light); font-weight: 600; }

.kb-content { min-width: 0; }
.kb-content > h1 { font-size: 1.95rem; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 14px; }
.kb-content .kb-lead { color: var(--text-sec); font-size: 1rem; margin-bottom: 24px; max-width: 760px; }

.kb-article-list { display: grid; gap: 10px; max-width: 760px; }
.kb-article-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--card); border: 1px solid var(--border); border-radius: 11px;
  padding: 16px 18px; transition: all 0.15s ease;
}
.kb-article-list a:hover { border-color: rgba(51,95,255,0.4); background: var(--card-hover); }
.kb-article-list .ka-title { font-weight: 600; font-size: 0.95rem; color: var(--text); }
.kb-article-list svg { width: 16px; height: 16px; color: var(--text-dim); flex-shrink: 0; }
.kb-article-list a:hover svg { color: var(--accent-light); }

.kb-prevnext { display: flex; justify-content: space-between; gap: 14px; margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--border); }
.kb-prevnext a { font-size: 0.88rem; color: var(--accent-light); font-weight: 600; }
.kb-prevnext .pn-label { display: block; font-size: 0.7rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 3px; font-weight: 700; }
.kb-prevnext .pn-next { text-align: right; margin-left: auto; }

/* In-article download CTA */
.kb-cta {
  max-width: 760px;
  margin: 36px 0 4px;
  background: linear-gradient(135deg, rgba(51,95,255,0.18), rgba(51,95,255,0.05));
  border: 1px solid rgba(51,95,255,0.3);
  border-radius: 14px;
  padding: 22px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.kb-cta-text h3 { font-size: 1.12rem; font-weight: 800; letter-spacing: -0.3px; margin-bottom: 3px; color: var(--text); }
.kb-cta-text p { font-size: 0.86rem; color: var(--text-sec); }
.kb-cta .btn { flex-shrink: 0; color: #fff; font-weight: 700; }

/* Changelog timeline */
.changelog { max-width: 760px; }
.changelog-entry { position: relative; padding: 0 0 26px 26px; border-left: 2px solid var(--border); }
.changelog-entry:last-child { border-left-color: transparent; padding-bottom: 0; }
.changelog-entry::before {
  content: ''; position: absolute; left: -7px; top: 3px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px var(--bg);
}
.changelog-entry h2 { font-size: 1.2rem; font-weight: 800; margin-bottom: 2px; letter-spacing: -0.2px; }
.changelog-date { font-size: 0.8rem; color: var(--text-dim); margin-bottom: 11px; }
.changelog-entry ul { margin: 0 0 0 18px; }
.changelog-entry li { font-size: 0.9rem; color: var(--text-sec); line-height: 1.7; margin-bottom: 6px; }

/* ===== 404 ===== */
.notfound { position: relative; overflow: hidden; text-align: center; padding: 90px 0 100px; }
.notfound::before {
  content: '';
  position: absolute; top: -180px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 520px;
  background: radial-gradient(ellipse at center, rgba(51,95,255,0.2), transparent 65%);
  pointer-events: none; z-index: 0;
}
.notfound .wrap { position: relative; z-index: 1; }
.notfound .nf-code {
  font-size: 7rem; font-weight: 900; line-height: 1; letter-spacing: -4px;
  background: linear-gradient(120deg, var(--accent-light), #9db4ff);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.notfound h1 { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.5px; margin: 12px 0 12px; }
.notfound p { color: var(--text-sec); max-width: 460px; margin: 0 auto 28px; }
.nf-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 38px; }
.nf-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; max-width: 560px; margin: 0 auto; }
.nf-links a {
  font-size: 0.82rem; font-weight: 600; color: var(--text-sec);
  background: var(--card); border: 1px solid var(--border);
  border-radius: 100px; padding: 8px 15px;
  transition: all 0.15s ease;
}
.nf-links a:hover { border-color: var(--accent); color: var(--accent-light); }

/* Responsive */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .game-hero .wrap { grid-template-columns: 1fr; gap: 26px; }
  .game-info { order: 1; }
  .game-shot { order: 2; max-width: 480px; }
  .install-cols { grid-template-columns: 1fr; }
  .mod-cards { grid-template-columns: repeat(2, 1fr); }
  .kb-layout { grid-template-columns: 1fr; gap: 0; }
  .kb-sidebar { display: none; }
  .kb-cats { grid-template-columns: 1fr; }
  .shot-stage { order: -1; }
  .shot-frame { transform: none; }
  .about-grid { grid-template-columns: 1fr; }
  .install-grid { grid-template-columns: 1fr; max-width: 640px; }
  .smartscreen { align-self: stretch; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; gap: 8px; }
  .nav-cta .btn-ghost { display: none; }
  .nav-cta .btn-primary { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 540px) {
  .hero h1 { font-size: 2.1rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .games-grid { grid-template-columns: 1fr; }
  .mod-cards { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .cta-box { padding: 30px 20px; }
  .section-head h2 { font-size: 1.6rem; }
  .script-actions { gap: 14px; }
  .script-actions .share { margin-top: 6px; margin-left: 0; }
  .team-card { grid-template-columns: 1fr; gap: 16px; justify-items: start; }
  .contact-grid { grid-template-columns: 1fr; }
}
