/* ==========================================================================
   RoPaste — shared stylesheet
   Dark theme · neon green/cyan accents · used across all game pages
   ========================================================================== */

:root {
  /* Surfaces — cool blue/grey/black, kept free of green bias */
  --bg:        #090b0f;
  --bg-soft:   #0d1117;
  --panel:     #11151c;
  --card:      #131820;
  --card-hover:#171d26;
  --code-bg:   #0a0d12;
  --border:    #232b36;
  --border-soft:#1a202a;

  /* Text */
  --text:      #e9eef4;
  --muted:     #939fac;
  --faint:     #5f6a76;

  /* ===== THEME — accent palette. Swap THIS block to retheme the whole site.
     Pick one set (5 lines). Alternatives, ready to paste:
       Neon green (original): #00ffa3 / #18d2ff / #0bbf7c / #03110b / 0,255,163
       Indigo:                #6366f1 / #818cf8 / #4f52d6 / #ffffff / 99,102,241
       Indigo-blue (current): #4f6ef5 / #7d93f8 / #3f59d9 / #ffffff / 79,110,245
       Violet:                #a855f7 / #c084fc / #8b3fd6 / #ffffff / 168,85,247
       Amber:                 #f59e0b / #fbbf24 / #d4830a / #1a1206 / 245,158,11
       Slate (near-mono):     #94a3b8 / #cbd5e1 / #64748b / #0a0c10 / 148,163,184
     ===================================================================== */
  --accent:     #4f6ef5;        /* indigo-blue */
  --accent-2:   #7d93f8;        /* lighter accent (used in code strings, etc.) */
  --accent-dim: #3f59d9;        /* hover / pressed */
  --accent-ink: #ffffff;        /* text on accent fills */
  --accent-rgb: 79, 110, 245;   /* MUST match --accent; used for rgba() tints */

  /* Status — "Working" stays green by convention, independent of the accent */
  --ok:        #16d39a;
  --ok-rgb:    22, 211, 154;
  --warn:      #ffcc4d;

  /* Code tokens */
  --tok-comment:#5d6b76;
  --tok-string: #38bdf8;
  --tok-keyword:var(--accent);
  --tok-fn:     #c792ff;

  /* Geometry */
  --radius:    14px;
  --radius-sm: 10px;
  --maxw:      1180px;
  --shadow:    0 10px 30px rgba(0,0,0,.45);
  --glow:      0 0 0 1px rgba(var(--accent-rgb),.25), 0 8px 30px rgba(var(--accent-rgb),.10);

  --font:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Space Grotesk", "Inter", -apple-system, "Segoe UI", sans-serif;
  --mono:    "JetBrains Mono", "SF Mono", ui-monospace, "Cascadia Code", Consolas, Menlo, monospace;
}

/* --------------------------------------------------------- reset & base */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

/* ambient background glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  /* single contained green "ball" in the top-left corner — no page-wide wash */
  background:
    radial-gradient(600px 520px at 3% -5%, rgba(var(--accent-rgb),.18), transparent 60%);
  pointer-events: none;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

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

h1, h2, h3 { font-family: var(--display); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(1.85rem, 3.4vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }

p { margin: 0 0 1rem; }

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

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

/* --------------------------------------------------------- header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,14,18,.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.22rem;
  letter-spacing: -0.03em;
  color: var(--text);
}
.logo:hover { text-decoration: none; }
.logo-mark {
  display: block;
  width: 30px; height: 30px;
  border-radius: 8px;
  object-fit: cover;
}
.logo .ro { color: var(--accent); }
.nav-scripts {
  color: var(--muted);
  font-weight: 600;
  font-size: .94rem;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
}
.nav-scripts:hover { color: var(--text); background: var(--panel); text-decoration: none; }

/* header search (desktop: inline after the logo, grows to fill) */
.header-search { position: relative; flex: 1 1 auto; max-width: 480px; margin: 0; display: flex; align-items: center; }
.header-search .hs-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--faint); pointer-events: none; }
.header-search .hs-icon svg { width: 17px; height: 17px; display: block; }
.header-search input {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: .92rem;
  padding: 9px 12px 9px 38px;
  border-radius: 10px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.header-search input::placeholder { color: var(--faint); }
.header-search input:focus { border-color: var(--accent-dim); box-shadow: var(--glow); }

.search-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 6px;
  max-height: min(70vh, 440px);
  overflow-y: auto;
  z-index: 60;
}
.search-panel .sp-item { display: block; padding: 9px 11px; border-radius: 8px; text-decoration: none; }
.search-panel .sp-item:hover, .search-panel .sp-item.active { background: var(--card-hover); text-decoration: none; }
.search-panel .sp-game { color: var(--accent); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.search-panel .sp-name { color: var(--text); font-weight: 600; font-size: .95rem; }
.search-panel .sp-empty { padding: 16px; color: var(--muted); font-size: .9rem; text-align: center; }

.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.search-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  cursor: pointer;
}
.search-toggle svg { width: 20px; height: 20px; }
.search-toggle:hover { border-color: rgba(var(--accent-rgb),.3); }
.btn-exec {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-weight: 700;
  font-size: .9rem;
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid rgba(var(--accent-rgb),.40);
  color: var(--accent);
  background: rgba(var(--accent-rgb),.06);
}
.btn-exec:hover { background: rgba(var(--accent-rgb),.12); text-decoration: none; }

@media (max-width: 760px) {
  .header-search { display: none; }
  .search-toggle { display: inline-flex; width: 38px; height: 38px; }
  .nav { gap: 8px; }
  .nav-actions { gap: 6px; }
  .nav-scripts { padding: 8px 9px; }
  .btn-exec { padding: 9px 12px; }
  /* tapping the search icon drops a full-width search bar below the header */
  .site-header.search-open .header-search {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    max-width: none; margin: 0;
    padding: 10px 16px 12px;
    background: rgba(9,11,15,.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-soft);
  }
  .site-header.search-open .header-search .hs-icon { left: 29px; }
  .site-header.search-open .search-panel { top: calc(100% - 2px); left: 16px; right: 16px; }
}

/* --------------------------------------------------------- breadcrumb */
.breadcrumb {
  font-size: .85rem;
  color: var(--faint);
  padding: 18px 0 4px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb span.sep { color: var(--faint); }

/* --------------------------------------------------------- hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 34px;
  align-items: center;
  padding: 18px 0 8px;
}
.hero-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.hero-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  border: 1px solid var(--border);
  object-fit: cover;
  box-shadow: var(--shadow);
}
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .72rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 4px;
}
.hero h1 { margin: 0; }
.hero-lede { color: var(--muted); font-size: 1.06rem; margin-top: 14px; }

/* lightweight stats caption — reads as text, not buttons */
.hero-stats {
  margin-top: 16px;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.8;
}
.hero-stats b { color: var(--text); font-weight: 700; }
.hero-stats .sep { color: var(--faint); margin: 0 7px; }

/* equal-width hero (executor page) — desktop only; still stacks on mobile */
@media (min-width: 881px) { .hero.hero-even { grid-template-columns: 1fr 1fr; } }


.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.btn-play, .btn-scroll {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: inherit;
  font-weight: 700;
  font-size: .95rem;
  padding: 12px 18px;
  border-radius: 11px;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: .15s;
}
.btn-play, .btn-scroll, .btn-play:hover, .btn-scroll:hover { text-decoration: none; }
.btn-dl {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: inherit; font-weight: 700; font-size: .98rem;
  padding: 13px 22px; border-radius: 11px;
  background: var(--accent); color: var(--accent-ink);
  border: 1px solid transparent; cursor: pointer;
}
.btn-dl:hover { background: var(--accent-dim); text-decoration: none; }
.btn-dl svg { width: 18px; height: 18px; flex-shrink: 0; }
.shot { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.shot img { width: 100%; height: auto; display: block; }
.btn-play {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-play:hover { background: var(--panel); border-color: rgba(var(--accent-rgb),.30); }
.btn-scroll { background: var(--panel); color: var(--text); }
.btn-scroll:hover { background: var(--card-hover); border-color: rgba(var(--accent-rgb),.30); }
.btn-play svg, .btn-scroll svg { flex-shrink: 0; }

.hero-figure {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}
.hero-figure img { width: 100%; height: 100%; object-fit: cover; }
.hero-figure::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(8,12,16,.55));
}

/* --------------------------------------------------------- toolbar (search + filters) */
.toolbar {
  margin: 30px 0 22px;
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.search {
  position: relative;
  flex: 1 1 320px;
  min-width: 240px;
}
.search input {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: .98rem;
  padding: 13px 14px 13px 44px;
  border-radius: 11px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.search input::placeholder { color: var(--faint); }
.search input:focus { border-color: var(--accent-dim); box-shadow: var(--glow); }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 600;
  font-size: .88rem;
  padding: 9px 15px;
  border-radius: 999px;
  cursor: pointer;
  transition: .15s;
  font-family: inherit;
}
.chip:hover { color: var(--text); border-color: var(--border); background: var(--card-hover); }
.chip.active {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: transparent;
}

.results-note { color: var(--faint); font-size: .88rem; margin: 0 0 18px; }

/* --------------------------------------------------------- script grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
}
.script-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-margin-top: 84px;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
/* highlight a card linked to via #anchor (e.g. from global search) */
.script-card:target,
.script-card.flash {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 0 26px rgba(var(--accent-rgb),.16);
}
.script-card.flash { animation: cardflash 1.8s ease; }
@keyframes cardflash {
  0%, 14% { box-shadow: 0 0 0 2px var(--accent), 0 0 32px rgba(var(--accent-rgb),.34); }
  100%    { box-shadow: 0 0 0 1px var(--accent), 0 0 26px rgba(var(--accent-rgb),.10); }
}
.script-card:hover {
  border-color: rgba(var(--accent-rgb),.35);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.card-top { display: flex; align-items: center; gap: 11px; }
.card-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(var(--accent-rgb),.09);
  border: 1px solid rgba(var(--accent-rgb),.22);
  color: var(--accent);
}
.card-title {
  flex: 1;
  min-width: 0;
  font-size: 1.12rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}
.card-sub { color: var(--muted); font-size: .9rem; margin: 0; }

/* star rating (social proof) */
.rating { display: inline-flex; align-items: center; gap: 7px; font-size: .84rem; }
.stars { position: relative; display: inline-block; line-height: 1; letter-spacing: 2px; font-size: .95rem; }
.stars .off { color: #39414f; }
.stars .on { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; color: #f5b50a; }
.rating b { color: var(--text); font-weight: 700; }
.rating .rc { color: var(--faint); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 5px 9px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}
.badge.ok { color: var(--muted); background: none; border: 0; padding: 0; font-weight: 600; }
.badge.ok .dot { background: var(--ok); box-shadow: 0 0 8px rgba(var(--ok-rgb),.7); }
.badge.warn { color: var(--warn); background: rgba(255,204,77,.10); border: 1px solid rgba(255,204,77,.30); }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 7px currentColor; }

/* code window */
.code-window {
  background: var(--code-bg);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.code-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(255,255,255,.012);
}
.code-head .fname { font-family: var(--mono); font-size: .76rem; color: var(--faint); }
.code-window pre, .code-window code {
  font-family: var(--mono);
}
.code-window pre {
  margin: 0;
  padding: 14px 14px;
  overflow-x: auto;
  font-size: .82rem;
  line-height: 1.7;
  color: #c4d0da;
  white-space: pre-wrap;
  word-break: break-word;
}
.tok-comment { color: var(--tok-comment); font-style: italic; }
.tok-string  { color: var(--tok-string); }
.tok-keyword { color: var(--tok-keyword); }
.tok-fn      { color: var(--tok-fn); }

/* card actions */
.card-actions { display: flex; gap: 10px; margin-top: auto; }
.btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: .92rem;
  padding: 11px 14px;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: .15s;
  background: var(--panel);
  color: var(--text);
}
.btn:hover { background: var(--card-hover); border-color: rgba(var(--accent-rgb),.30); }
.btn svg { flex-shrink: 0; }
.btn-copy {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: transparent;
}
.btn-copy:hover { background: var(--accent-dim); box-shadow: none; }
.btn-copy.copied { background: var(--panel); color: var(--accent); border-color: rgba(var(--accent-rgb),.4); }

.no-results {
  display: none;
  text-align: center;
  color: var(--muted);
  padding: 48px 0;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

/* global script search results (homepage) */
.results { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.result {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: .15s;
}
.result:hover { border-color: rgba(var(--accent-rgb),.35); background: var(--card-hover); transform: translateY(-1px); text-decoration: none; }
.r-thumb { width: 46px; height: 46px; border-radius: 9px; object-fit: cover; border: 1px solid var(--border); flex-shrink: 0; }
.r-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.result .r-game { color: var(--accent); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.result .r-name { color: var(--text); font-size: 1.02rem; font-weight: 700; }
.result .r-blurb {
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --------------------------------------------------------- generic section */
.section { padding: 54px 0 10px; }
.section-head { max-width: 60ch; margin-bottom: 26px; }
.section-head p { color: var(--muted); margin: 0; }

/* how-to steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  counter-reset: step;
}
.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  position: relative;
}
.step .num {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(var(--accent-rgb),.10);
  border: 1px solid rgba(var(--accent-rgb),.30);
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 800;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.05rem; margin: 0 0 6px; }
.step p { color: var(--muted); font-size: .92rem; margin: 0; }
.step a { font-weight: 600; }
.step-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 13px;
  font-weight: 700;
  font-size: .85rem;
  padding: 8px 13px;
  border-radius: 9px;
  border: 1px solid rgba(var(--accent-rgb),.40);
  color: var(--accent);
  background: rgba(var(--accent-rgb),.06);
}
.step-cta:hover { background: rgba(var(--accent-rgb),.12); text-decoration: none; }
.step-cta svg { width: 15px; height: 15px; flex-shrink: 0; }

/* contextual "read the full guide" link under how-to steps */
.guide-link { margin-top: 18px; color: var(--muted); font-size: .95rem; }
.guide-link a { color: var(--accent); font-weight: 600; }

/* callout */
.callout {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(var(--accent-rgb),.06);
  border: 1px solid rgba(var(--accent-rgb),.25);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-top: 22px;
  color: var(--muted);
  font-size: .92rem;
}
.callout svg { color: var(--accent-2); flex-shrink: 0; margin-top: 2px; }
.callout b { color: var(--text); }

/* prose — "About [game] scripts" + content pages */
.prose { max-width: 72ch; color: var(--muted); font-size: 1rem; line-height: 1.75; }
.prose p { margin: 0 0 1rem; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { font-weight: 600; }
.prose h2 { color: var(--text); font-size: 1.3rem; margin: 1.9em 0 .5em; }
.prose h3 { color: var(--text); font-size: 1.08rem; margin: 1.5em 0 .4em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 1rem; padding-left: 1.25em; }
.prose li { margin: 0 0 .45rem; }
.prose ol li { padding-left: .25em; }

/* static content pages (about/contact/privacy/terms) */
.page { padding: 8px 0 30px; }
.page > h1 { margin-bottom: 8px; }
.page-meta { color: var(--faint); font-size: .9rem; margin: 0 0 28px; }

/* help hub cards */
.help-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.help-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color .18s, transform .18s, background .18s;
}
.help-card:hover { border-color: rgba(var(--accent-rgb),.35); background: var(--card-hover); transform: translateY(-2px); text-decoration: none; }
.help-card h3 { margin: 0 0 6px; font-size: 1.1rem; color: var(--text); }
.help-card p { margin: 0 0 12px; color: var(--muted); font-size: .92rem; line-height: 1.55; }
.help-card .help-arrow { color: var(--accent); font-weight: 700; font-size: .85rem; }

/* trust / E-E-A-T cards */
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.trust-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 20px; }
.trust-ic {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(var(--accent-rgb),.10);
  border: 1px solid rgba(var(--accent-rgb),.22);
  color: var(--accent);
  margin-bottom: 14px;
}
.trust-ic svg { width: 19px; height: 19px; }
.trust-item h3 { font-size: 1.05rem; margin: 0 0 6px; }
.trust-item p { color: var(--muted); font-size: .92rem; margin: 0; }
.trust-item b { color: var(--text); }

/* --------------------------------------------------------- FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 820px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  color: var(--text);
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 600;
  padding: 18px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-q .icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  color: var(--accent);
  transition: transform .2s;
  font-size: 1.3rem;
  line-height: 1;
}
.faq-item.open .faq-q .icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  color: var(--muted);
}
.faq-a-inner { padding: 0 20px 18px; }
.faq-item.open .faq-a { max-height: 320px; }

/* --------------------------------------------------------- game cards (home) */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.game-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: .18s;
}
.game-card:hover { transform: translateY(-3px); border-color: rgba(var(--accent-rgb),.35); box-shadow: var(--shadow); text-decoration: none; }
.game-card .thumb { aspect-ratio: 16/9; overflow: hidden; }
.game-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.game-card:hover .thumb img { transform: scale(1.05); }
.game-card .body { padding: 16px 18px 18px; }
.game-card .body h3 { margin: 0 0 4px; font-size: 1.12rem; color: var(--text); }
.game-card .body p { margin: 0; color: var(--muted); font-size: .9rem; }
.game-card .cnt { margin-top: 12px; font-size: .82rem; color: var(--accent); font-weight: 700; }

.home-hero { text-align: center; padding: 64px 0 8px; }
.home-hero h1 { max-width: 16ch; margin: 0 auto 16px; }
.home-hero p { color: var(--muted); font-size: 1.1rem; max-width: 56ch; margin: 0 auto; }

.hero-search { position: relative; max-width: 640px; margin: 28px auto 0; display: flex; align-items: center; }
.hero-search .hs-icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--faint); display: flex; }
.hero-search .hs-icon svg { width: 20px; height: 20px; }
.hero-search input {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 1.04rem;
  padding: 16px 18px 16px 50px;
  border-radius: 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.hero-search input::placeholder { color: var(--faint); }
.hero-search input:focus { border-color: var(--accent-dim); box-shadow: var(--glow); }

.home-section { padding-top: 40px; }
.home-section .section-head, #searchResults .section-head { margin-bottom: 20px; }
#searchResults { padding-top: 30px; }

/* --------------------------------------------------------- footer */
.site-footer {
  border-top: 1px solid var(--border-soft);
  margin-top: 70px;
  padding: 40px 0 50px;
  color: var(--faint);
  font-size: .9rem;
}
.footer-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-brand { max-width: 38ch; }
.footer-brand p { margin-top: 10px; }
.footer-links { display: flex; gap: 50px; flex-wrap: wrap; }
.footer-col .footer-h { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 12px; }
.footer-col a { display: block; color: var(--faint); padding: 4px 0; }
.footer-col a:hover { color: var(--text); }
.disclaimer {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--border-soft);
  font-size: .82rem;
  line-height: 1.7;
}

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

/* --------------------------------------------------------- responsive */
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; gap: 22px; }
  .hero-figure { order: -1; }
  .grid { grid-template-columns: 1fr; }
}
/* on phones, drop the decorative hero artwork to get to the scripts faster */
@media (max-width: 700px) {
  .hero-figure { display: none; }
  .hero { padding-top: 20px; }
}
@media (max-width: 560px) {
  .nav-links a { padding: 8px 8px; font-size: .88rem; }
  .nav-links .hide-sm { display: none; }
  .hero-icon { width: 52px; height: 52px; }
  .footer-links { gap: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
