/* ============================================================
   LUA Paste — global stylesheet
   Design tokens + components shared across every script page.
   ============================================================ */

:root {
  /* Palette */
  --bg:            #0a0c10;
  --bg-soft:       #11141b;
  --surface:       #161a23;
  --surface-2:     #1c212c;
  --border:        #262c39;
  --border-soft:   #1f242f;

  --text:          #e8edf5;
  --text-soft:     #aab3c2;
  --text-dim:      #6c7689;

  --accent:        #36e27a;   /* primary green */
  --accent-2:      #18c8ff;   /* cyan */
  --accent-press:  #2bc468;
  --accent-glow:   rgba(54, 226, 122, .35);

  --danger:        #ff5d6c;
  --warn:          #ffb454;

  /* Type */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Shape */
  --radius:    14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --shadow:    0 10px 40px -12px rgba(0,0,0,.6);
  --maxw:      1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,12,16,.82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -.02em;
}
.brand .logo-mark {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
}
.brand .brand-name b { color: var(--text); }
.brand .brand-name span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-soft);
  transition: background .15s, color .15s;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a.cta {
  color: #04130a;
  background: var(--accent);
  font-weight: 700;
  margin-left: 6px;
}
.nav-links a.cta:hover { background: var(--accent-press); }

/* Search */
.search { position: relative; }
.search-desktop { flex: 1 1 auto; max-width: 360px; }
.search-input {
  width: 100%;
  height: 38px;
  padding: 0 12px 0 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
}
.search-input::placeholder { color: var(--text-dim); }
.search-input:focus { outline: none; border-color: var(--accent); background: var(--surface-2); }
.search-input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-ico { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-dim); pointer-events: none; }
.search-results {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow-y: auto;
  max-height: 70vh;
  z-index: 60;
}
.search-results.open { display: block; }
.search-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 14px;
  color: var(--text-soft);
}
.search-result:last-child { border-bottom: none; }
.search-result.active, .search-result:hover { background: var(--surface-2); color: var(--text); }
.search-result .sr-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-result .sr-kind { flex: 0 0 auto; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-dim); }
.search-empty { padding: 12px 14px; font-size: 13.5px; color: var(--text-dim); }
.search-row { display: none; }
@media (max-width: 760px) {
  .search-desktop { display: none; }
  .search-row { display: block; padding-bottom: 12px; }
}

/* 404 page */
.error-page { text-align: center; max-width: 560px; margin: 0 auto; padding: 72px 0 64px; }
.error-code { font-size: 80px; font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--accent); }
.error-page h1 { font-size: clamp(24px, 4vw, 32px); font-weight: 800; letter-spacing: -.02em; margin: 14px 0 10px; }
.error-page p { color: var(--text-soft); margin: 0 auto 24px; max-width: 46ch; }
.error-page .actions { justify-content: center; max-width: 440px; margin: 0 auto; }

/* Games dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown .nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border: none;
  background: none;
  border-radius: 9px;
  font-family: var(--font);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-soft);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.nav-dropdown .nav-trigger svg { transition: transform .2s; }
.nav-dropdown:hover .nav-trigger,
.nav-dropdown:focus-within .nav-trigger { color: var(--text); background: var(--surface); }
.nav-dropdown:hover .nav-trigger svg,
.nav-dropdown:focus-within .nav-trigger svg { transform: rotate(180deg); }
/* invisible bridge so the menu doesn't close in the gap */
.nav-dropdown::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 10px;
}
.nav-dropdown .dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 248px;
  max-height: 70vh;
  overflow-y: auto;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 13px;
  box-shadow: var(--shadow);
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.nav-dropdown:hover .dropdown,
.nav-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown .dropdown a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
}
.nav-dropdown .dropdown a:hover { background: var(--surface-2); color: var(--text); }
.nav-dropdown .dropdown a img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid var(--border);
}
.nav-dropdown .dropdown .dropdown-all {
  margin-top: 4px;
  padding-top: 11px;
  border-top: 1px solid var(--border-soft);
  color: var(--accent);
  font-weight: 600;
}
.nav-dropdown .dropdown .dropdown-all:hover { background: var(--surface-2); }

/* Mobile drawer section labels */
.mobile-menu .mm-label {
  padding: 12px 20px 6px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-dim);
  border-top: 1px solid var(--border-soft);
}
.mobile-menu .mm-label:first-child { border-top: none; }
.mobile-menu .mm-label + a { border-top: none; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 9px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
}
.burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile drawer */
.mobile-menu {
  display: none;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-soft);
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 14px 20px;
  border-top: 1px solid var(--border-soft);
  color: var(--text-soft);
  font-weight: 500;
}
.mobile-menu a:first-child { border-top: none; }
.mobile-menu a.cta { color: var(--accent); font-weight: 700; }

/* ============================================================
   Breadcrumb
   ============================================================ */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-dim);
  padding: 22px 0 6px;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { opacity: .5; }
.breadcrumb [aria-current] { color: var(--text-soft); }

/* ============================================================
   Layout
   ============================================================ */
.layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 320px;
  gap: 32px;
  padding: 12px 0 64px;
  align-items: start;
}
/* min-width:0 lets grid children shrink so the code box scrolls
   internally instead of forcing horizontal page overflow */
.layout > * { min-width: 0; }
@media (max-width: 920px) {
  .layout { grid-template-columns: 1fr; }
}

/* ============================================================
   Hero block for a script page
   ============================================================ */
.script-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}
.script-head-icon {
  flex: 0 0 auto;
  width: 80px;
  height: 80px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--surface);
}
.script-head-text { flex: 1 1 auto; min-width: 0; }
.script-head h1 {
  font-size: clamp(24px, 4.2vw, 38px);
  line-height: 1.12;
  letter-spacing: -.025em;
  margin: 0 0 12px;
  font-weight: 800;
}
@media (max-width: 520px) {
  .script-head { gap: 14px; }
  .script-head-icon { width: 60px; height: 60px; border-radius: 13px; }
}
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  color: var(--text-dim);
  font-size: 13.5px;
}
.meta-row .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--text-dim); }
.meta-row .mi { display: inline-flex; align-items: center; gap: 5px; }
.meta-row .mi svg { width: 14px; height: 14px; color: var(--accent); flex: 0 0 auto; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
}
.badge.ok { color: var(--accent); border-color: rgba(54,226,122,.3); background: rgba(54,226,122,.08); }
.badge.ok .pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 var(--accent-glow); }
  70%  { box-shadow: 0 0 0 7px rgba(54,226,122,0); }
  100% { box-shadow: 0 0 0 0 rgba(54,226,122,0); }
}

/* ============================================================
   Action buttons (Copy / Direct Execute)
   ============================================================ */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 22px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .12s, filter .15s, background .15s, border-color .15s;
  flex: 1 1 200px;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 19px; height: 19px; }

.btn-primary {
  background: var(--accent);
  color: #04130a;
}
.btn-primary:hover { background: var(--accent-press); }
.btn-primary.copied { background: var(--accent-press); }

.btn-exec {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-exec:hover { border-color: var(--accent); color: var(--accent); background: var(--surface-2); }
.btn-exec svg { color: var(--accent); }

/* ============================================================
   Code / script box
   ============================================================ */
.code-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.code-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-dim);
}
.code-bar .dots { display: flex; gap: 6px; }
.code-bar .dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.code-bar .dots i:nth-child(1) { background: #ff5f57; }
.code-bar .dots i:nth-child(2) { background: #febc2e; }
.code-bar .dots i:nth-child(3) { background: #28c840; }
.code-bar .file { font-family: var(--mono); margin-left: 4px; }
.code-bar .copy-mini {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-soft);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.code-bar .copy-mini:hover { color: var(--accent); border-color: var(--accent); }
.code-bar .copy-mini svg { width: 14px; height: 14px; }
/* Second right-aligned pill sits next to Copy, not pushed apart by its own auto margin */
.code-bar .dl-mini { margin-left: 0; padding-left: 9px; padding-right: 9px; }

.code-scroll {
  max-height: 360px;
  overflow: auto;
  padding: 16px 18px;
}
.code-scroll pre {
  margin: 0;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  color: #c5d0de;            /* base: punctuation / operators */
  white-space: pre;
}
/* Lua syntax tokens (added at runtime by main.js) */
.code-scroll .t-com { color: var(--text-soft); } /* comments  — muted  */
.code-scroll .t-kw  { color: #c792ea; }   /* keywords  — purple */
.code-scroll .t-fn  { color: #5cc8ff; }   /* functions — blue   */
.code-scroll .t-str { color: var(--accent); }   /* strings   — green  */
.code-scroll .t-num { color: #e6b673; }   /* numbers   — amber  */
.code-scroll .t-var { color: #e8edf5; }   /* variables — light  */
.code-scroll::-webkit-scrollbar { width: 10px; height: 10px; }
.code-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
.code-scroll::-webkit-scrollbar-thumb:hover { background: #333b4a; }

/* tiny toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: var(--surface-2);
  border: 1px solid var(--accent);
  color: var(--text);
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 100;
  box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast svg { width: 18px; height: 18px; color: var(--accent); }

/* ============================================================
   Prose / SEO content
   ============================================================ */
.prose { margin-top: 40px; }
.prose h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 36px 0 12px;
  scroll-margin-top: 80px;
}
.prose h3 { font-size: 17px; font-weight: 700; margin: 22px 0 8px; }
.prose p { color: var(--text-soft); margin: 0 0 14px; }
.prose ul, .prose ol { color: var(--text-soft); padding-left: 22px; margin: 0 0 16px; }
.prose li { margin: 6px 0; }
.prose strong { color: var(--text); }
.prose a { color: var(--accent); }
.prose a:hover { text-decoration: underline; }

/* feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 12px;
  margin: 16px 0 8px;
}
@media (max-width: 520px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-grid + p { margin-top: 20px; }
.feature {
  display: flex;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.feature .ico {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: rgba(54,226,122,.1);
  color: var(--accent);
}
.feature .ico svg { width: 18px; height: 18px; }
.feature .ft-t { font-size: 14.5px; font-weight: 700; color: var(--text); margin: 0 0 2px; line-height: 1.3; }
.feature .ft-sub { font-size: 13px; color: var(--text-dim); margin: 0; line-height: 1.5; }

/* step list */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 14px 0; }
.steps li {
  position: relative;
  padding: 4px 0 18px 46px;
  color: var(--text-soft);
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
}
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 15px; top: 32px; bottom: 4px;
  width: 1px;
  background: var(--border);
}
.steps li strong { color: var(--text); }

/* callout */
.callout {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,180,84,.3);
  background: rgba(255,180,84,.07);
  color: var(--text-soft);
  font-size: 14px;
  margin: 18px 0;
}
.callout svg { flex: 0 0 auto; width: 20px; height: 20px; color: var(--warn); margin-top: 1px; }

/* FAQ */
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 15px 18px;
  font-weight: 600;
  font-size: 15px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 22px;
  color: var(--accent);
  font-weight: 400;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 18px 16px; color: var(--text-soft); font-size: 14.5px; }

/* ============================================================
   Sidebar
   ============================================================ */
.sidebar { display: grid; gap: 20px; }

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.card-title {
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border-soft);
}

/* related scripts list */
.related a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-soft);
  transition: background .15s;
}
.related a:last-child { border-bottom: none; }
.related a:hover { background: var(--surface-2); }
.related .ri {
  flex: 0 0 auto;
  width: 48px; height: 48px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.related .rt .rt-t { display: block; font-size: 14px; font-weight: 600; color: var(--text); }
.related .rt .rt-sub { display: block; font-size: 12.5px; color: var(--text-dim); }
.related .rarrow { margin-left: auto; color: var(--text-dim); }

/* "Browse all …" link — visually distinct from the script rows */
.related a.browse-all {
  justify-content: center;
  gap: 7px;
  padding: 13px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent);
  background: var(--bg-soft);
}
.related a.browse-all:hover { background: var(--surface-2); }
.related a.browse-all svg { width: 15px; height: 15px; }

/* game card — entire card is a single link */
.game-card { display: block; transition: border-color .15s; }
.game-card:hover { border-color: var(--accent); }
.game-card:hover .roblox-link { text-decoration: underline; }
.game-thumb {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1c2330, #141821);
  overflow: hidden;
}
.game-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.game-thumb .thumb-fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -.01em;
  color: var(--text-soft);
}
.game-thumb.no-img .thumb-fallback { display: grid; }
.game-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
}
.game-meta { flex: 1 1 auto; min-width: 0; }
.game-meta .gname { display: block; font-size: 15px; font-weight: 700; color: var(--text); }
.game-meta .gsub { font-size: 12.5px; color: var(--text-dim); }
.roblox-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}
.roblox-link svg { width: 14px; height: 14px; }

.game-info { padding: 16px; margin: 0; display: grid; gap: 12px; }
.game-info .gi-row { display: flex; justify-content: space-between; font-size: 14px; }
.game-info dt { color: var(--text-dim); margin: 0; }
.game-info dd { margin: 0; font-weight: 600; color: var(--text); }
.game-info dd.ok { color: var(--accent); }

/* ============================================================
   Game index page (/{game}/)
   ============================================================ */
.game-hero {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 10px 0 24px;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
}
/* Homepage hero has no breadcrumb above it, so add the top spacing here. */
.home-hero { margin-top: 28px; }

/* Executor page hero — centered text with a large screenshot below */
.exec-hero {
  text-align: center;
  margin: 38px 0 14px;
}
.exec-hero-text { max-width: 680px; margin: 0 auto; }
.exec-hero-text h1 {
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.07;
  letter-spacing: -.025em;
  margin: 0 0 14px;
  font-weight: 800;
}
.exec-hero-text .hero-sub {
  color: var(--text-soft);
  font-size: 16px;
  margin: 0 auto 18px;
  max-width: 54ch;
}
.exec-hero-text .meta-row { justify-content: center; color: var(--text-soft); }
.exec-hero-text .actions { justify-content: center; max-width: 640px; margin: 22px auto 0; flex-wrap: nowrap; }
.exec-hero-text .actions .btn { flex: 1 1 0; }
.exec-hero-shot { margin-top: 52px; }
.exec-hero-shot img {
  width: 100%;
  max-width: 800px;
  height: auto;
  margin: 0 auto;
  display: block;
  border-radius: var(--radius-sm);
  box-shadow: 0 30px 70px -34px rgba(0,0,0,.65);
}
.lead.exec-lead { max-width: 60ch; margin-left: auto; margin-right: auto; text-align: center; }
@media (max-width: 560px) {
  .exec-hero-text .actions { flex-wrap: wrap; }
}

/* Inline code & code blocks (knowledge base articles) */
.prose code { font-family: var(--mono); font-size: 13.5px; background: var(--surface-2); border: 1px solid var(--border-soft); border-radius: 6px; padding: 1px 6px; color: var(--text); }
.prose pre { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; overflow-x: auto; margin: 0 0 16px; }
.prose pre code { background: none; border: 0; padding: 0; font-size: 13px; line-height: 1.65; color: var(--text-soft); display: block; white-space: pre; }

/* Knowledge base hub */
.kb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin: 20px 0 8px; align-items: start; }
.kb-link {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-top: 1px solid var(--border-soft);
  font-size: 14.5px; color: var(--text-soft); transition: background .15s, color .15s;
}
.kb-link:hover { background: var(--surface-2); color: var(--text); }
.kb-link .arr { color: var(--text-dim); flex: 0 0 auto; }
.kb-link:hover .arr { color: var(--accent); }

/* Knowledge base article layout with sticky left sidebar */
.kb-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 38px; align-items: start; margin-top: 6px; }
.kb-main > h1 { margin-top: 0; }
.kb-sidebar { position: sticky; top: 84px; max-height: calc(100vh - 104px); overflow-y: auto; }
.kb-nav-section { margin-bottom: 18px; }
.kb-nav-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); margin: 0 0 8px; padding: 0 10px; }
.kb-nav-link { display: block; padding: 7px 10px; border-radius: 8px; font-size: 14px; color: var(--text-soft); line-height: 1.35; transition: background .15s, color .15s; }
.kb-nav-link:hover { background: var(--surface); color: var(--text); }
.kb-nav-link.active { background: var(--surface-2); color: var(--text); font-weight: 600; box-shadow: inset 2px 0 0 0 var(--accent); }
@media (max-width: 900px) {
  .kb-layout { grid-template-columns: 1fr; }
  .kb-sidebar { display: none; }
}
.game-hero .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(.5) saturate(1.1) blur(2px);
  transform: scale(1.06); /* hide blurred edges */
}
.game-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,12,16,.55) 0%, rgba(10,12,16,.85) 60%, rgba(10,12,16,.97) 100%),
    radial-gradient(120% 100% at 0% 100%, rgba(10,12,16,.6), transparent 60%);
  z-index: 1;
}
.game-hero .hero-content {
  position: relative;
  z-index: 2;
  padding: 26px 28px;
  width: 100%;
}
/* The homepage hero is taller (it has CTA buttons), so it fills the min-height
   and loses the top breathing room a short game hero gets — add it back. */
.home-hero .hero-content { padding-top: 48px; padding-bottom: 34px; }
.game-hero h1 {
  font-size: clamp(26px, 5vw, 40px);
  line-height: 1.1;
  letter-spacing: -.025em;
  margin: 0 0 8px;
  font-weight: 800;
}
.game-hero .hero-sub {
  color: var(--text-soft);
  font-size: 15px;
  margin: 0 0 12px;
  max-width: 62ch;
}
.game-hero .meta-row { color: var(--text-soft); }

.lead {
  font-size: 16px;
  color: var(--text-soft);
  margin: 0 0 24px;
  max-width: 75ch;
}
.lead strong { color: var(--text); }

.section-h {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 32px 0 14px;
}

.script-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin: 0 0 8px;
}
.script-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color .15s, transform .12s, background .15s;
}
.script-card:hover {
  border-color: var(--accent);
  background: var(--surface-2);
  transform: translateY(-2px);
}
.script-card .sc-icon {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 11px;
  border: 1px solid var(--border);
  object-fit: cover;
}
.script-card .sc-body { flex: 1 1 auto; min-width: 0; }
.script-card .sc-title { display: block; font-size: 15.5px; font-weight: 700; color: var(--text); }
.script-card .sc-desc { display: block; font-size: 13px; color: var(--text-dim); margin-top: 2px; }
.script-card .sc-go { flex: 0 0 auto; color: var(--text-dim); font-size: 18px; }
.script-card:hover .sc-go { color: var(--accent); }

@media (max-width: 560px) {
  .game-hero .hero-content { padding: 20px; }
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border-soft);
  background: var(--bg-soft);
  padding: 48px 0 32px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
.footer-grid h4 {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-dim);
  margin: 0 0 14px;
}
.footer-grid a { display: block; color: var(--text-soft); font-size: 14px; padding: 5px 0; }
.footer-grid a:hover { color: var(--accent); }
.footer-about p { color: var(--text-dim); font-size: 13.5px; margin: 12px 0 0; max-width: 30ch; }
.footer-bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-dim);
}
.disclaimer {
  margin-top: 18px;
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 75ch;
}

/* ============================================================
   Responsive nav
   ============================================================ */
@media (max-width: 760px) {
  .nav-links { display: none; }
  .burger { display: flex; }
}
