:root {
  --bg: #10131a;
  --bg-alt: #0b0d12;
  --panel: #171b24;
  --panel-2: #1d2230;
  --border: #262c3a;
  --text: #e7e9ee;
  --muted: #8891a3;
  --accent: #c99a4b;
  --accent-2: #e8bd74;
  --live: #49c17e;
  --ea: #d99a3a;
  --upcoming: #6c8ef5;
  --danger: #e0555a;
  --font-display: "Barlow Condensed", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --font-body: "Inter", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  padding-bottom: 100px;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
  margin: 0 0 0.5em;
}
h1 { font-size: 2.6rem; line-height: 1.05; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg-alt); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; gap: 1.5rem; padding: 0.9rem 1.5rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--text); }
.brand-mark { color: var(--accent); }
.nav-search { flex: 1; min-width: 180px; }
.nav-search input { width: 100%; background: var(--panel); border: 1px solid var(--border); color: var(--text); padding: 0.5rem 0.8rem; border-radius: 4px; font-family: var(--font-body); }
.nav-links { display: flex; gap: 1.2rem; font-size: 0.92rem; white-space: nowrap; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--text); }

/* Hero */
.hero { background: linear-gradient(180deg, var(--bg-alt), var(--bg)); border-bottom: 1px solid var(--border); padding: 4rem 0 3rem; }
.eyebrow { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; color: var(--accent-2); text-transform: uppercase; margin: 0 0 1rem; }
.hero-sub { color: var(--muted); max-width: 640px; font-size: 1.05rem; }
.hero-search { display: flex; gap: 0.6rem; margin-top: 1.5rem; max-width: 560px; }
.hero-search input { flex: 1; background: var(--panel); border: 1px solid var(--border); color: var(--text); padding: 0.8rem 1rem; border-radius: 4px; font-family: var(--font-mono); font-size: 0.95rem; }
.hero-search button { background: var(--accent); color: #14110a; border: none; padding: 0.8rem 1.4rem; border-radius: 4px; font-family: var(--font-display); font-weight: 600; font-size: 1rem; cursor: pointer; }
.hero-search button:hover { background: var(--accent-2); }

/* Live search suggestions dropdown */
.search-suggest-wrap { position: relative; width: 100%; }
.search-suggest-box { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: var(--panel); border: 1px solid var(--border); border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,0.4); z-index: 50; max-height: 340px; overflow-y: auto; }
.search-suggest-item { display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; padding: 0.6rem 0.9rem; color: var(--text); border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.search-suggest-item:last-child { border-bottom: none; }
.search-suggest-item:hover { background: var(--panel-2); text-decoration: none; }
.search-suggest-item .ss-name { font-weight: 500; }
.search-suggest-item .ss-type { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; color: var(--muted); letter-spacing: 0.04em; flex-shrink: 0; }
.search-suggest-empty { padding: 0.8rem 0.9rem; color: var(--muted); font-size: 0.88rem; }

/* Sections */
.section { padding: 2.8rem 0; border-bottom: 1px solid var(--border); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1.2rem; }

/* Game grid + cards */
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.9rem; }
.game-card { background: var(--panel); border: 1px solid var(--border); border-radius: 6px; padding: 1rem 1.1rem; display: block; transition: border-color 0.15s, transform 0.15s; }
.game-card:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
.game-card h3 { margin: 0.5rem 0 0; font-size: 1.15rem; }
.game-card-top { display: flex; justify-content: space-between; align-items: center; }
.genre-tag { font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* Status pill */
.pill { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.2rem 0.5rem; border-radius: 3px; background: var(--panel-2); color: var(--muted); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); display: inline-block; }
.pill.st-live .dot { background: var(--live); }
.pill.st-live { color: var(--live); }
.pill.st-ea .dot { background: var(--ea); }
.pill.st-ea { color: var(--ea); }
.pill.st-upcoming .dot { background: var(--upcoming); }
.pill.st-upcoming { color: var(--upcoming); }

/* Stat table (recently updated / developers) */
.stat-table { border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.stat-row { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 0.8rem; align-items: center; padding: 0.7rem 1rem; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.stat-row:last-child { border-bottom: none; }
.stat-head { background: var(--panel); font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; color: var(--muted); letter-spacing: 0.05em; }
a.stat-row { grid-template-columns: 1fr auto; color: var(--text); text-decoration: none; }
a.stat-row:hover { background: var(--panel-2); text-decoration: none; }

/* Browse grid */
.browse-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }

/* A-Z games browse page */
.az-jump { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 1.5rem 0 2rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--bg); z-index: 5; }
.az-jump a { font-family: var(--font-mono); font-size: 0.85rem; width: 2rem; height: 2rem; display: flex; align-items: center; justify-content: center; border-radius: 4px; color: var(--muted); }
.az-jump a:hover { background: var(--panel-2); color: var(--accent-2); text-decoration: none; }
.az-group { margin-bottom: 2.5rem; scroll-margin-top: 4.5rem; }
.az-group h2 { font-family: var(--font-mono); color: var(--accent); border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; margin-bottom: 1rem; }
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { padding: 0.3rem 0; border-bottom: 1px dotted var(--border); }

/* Documentation-style sidebar layout for game pages */
.doc-layout { display: flex; gap: 2.5rem; padding: 2.5rem 0 3rem; align-items: flex-start; }
.doc-sidebar { width: 220px; flex-shrink: 0; position: sticky; top: 5rem; }
.doc-group-label { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 1.1rem 0 0.4rem; padding-left: 0.7rem; }
.doc-group-label:first-child { margin-top: 0; }
.doc-nav { list-style: none; margin: 0 0 0.3rem; padding: 0; }
.doc-nav li { margin: 0; }
.doc-nav a { display: block; padding: 0.4rem 0.7rem; border-radius: 4px; font-size: 0.88rem; color: var(--muted); border-left: 2px solid transparent; }
.doc-nav a:hover { background: var(--panel-2); color: var(--text); text-decoration: none; }
.doc-nav a.active { background: var(--panel-2); color: var(--accent-2); border-left-color: var(--accent); text-decoration: none; }
.doc-content { flex: 1; min-width: 0; }
.doc-content h1 { margin-top: 0; }
.game-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }
.game-sidebar h4 { font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 0.6rem; }
@media (max-width: 700px) { .game-layout { grid-template-columns: 1fr; } }
.eyebrow + .doc-layout { padding-top: 0; }
.related-articles { margin: -0.5rem 0 1.5rem; font-size: 0.88rem; }
.related-articles a { margin-right: 0.4rem; }
@media (max-width: 900px) {
  .doc-layout { flex-direction: column; gap: 1rem; }
  .doc-sidebar { width: 100%; position: static; }
  .doc-nav { display: flex; flex-wrap: wrap; gap: 0.2rem; }
  .doc-nav li { flex: 0 0 auto; }
  .doc-group-label { padding-left: 0; }
}

/* Status panel (signature element) */
.status-panel { background: var(--panel); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.status-panel-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.65rem 1rem; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
.status-panel-row:last-child { border-bottom: none; }
.status-panel-row .label { color: var(--muted); font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
.status-panel-row .value { text-align: right; }

/* Cards / spec sheets */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.data-card { background: var(--panel); border: 1px solid var(--border); border-radius: 6px; padding: 1.1rem 1.2rem; display: block; }
.data-card[hidden] { display: none; }

/* Guides page search + keyword suggestions */
.guides-search-bar { margin: 1.2rem 0 1.8rem; }
.guides-search-input { width: 100%; max-width: 480px; background: var(--panel); border: 1px solid var(--border); color: var(--text); padding: 0.7rem 1rem; border-radius: 6px; font-family: var(--font-mono); font-size: 0.95rem; display: block; }
.guide-keyword-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.7rem; }
.guide-keyword-chip { font-family: var(--font-mono); font-size: 0.78rem; background: var(--panel-2); border: 1px solid var(--border); color: var(--muted); padding: 0.3rem 0.7rem; border-radius: 999px; cursor: pointer; }
.guide-keyword-chip:hover { color: var(--accent-2); border-color: var(--accent-2); }
.guides-search-empty { color: var(--muted); font-size: 0.9rem; margin-top: 1rem; }
.guides-search-empty[hidden] { display: none; }
.spec-sheet { background: var(--panel); border: 1px solid var(--border); border-radius: 6px; padding: 1.2rem 1.3rem; margin-bottom: 1rem; }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.6rem 1.2rem; margin-top: 0.7rem; }
.spec-grid > div { display: flex; flex-direction: column; gap: 0.15rem; }
.spec-grid .label { font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.spec-grid .value { font-size: 0.94rem; }
.tip { margin-top: 0.9rem; padding-top: 0.7rem; border-top: 1px dotted var(--border); color: var(--muted); font-size: 0.92rem; }

/* Lists */
.tip-list { padding-left: 1.3rem; }
.tip-list li { margin-bottom: 0.6rem; }
.faq-list details { background: var(--panel); border: 1px solid var(--border); border-radius: 6px; padding: 0.9rem 1.1rem; margin-bottom: 0.7rem; }
.faq-list summary { cursor: pointer; font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; }
.faq-list p { margin: 0.6rem 0 0; color: var(--muted); }

/* Placeholder notice */
.placeholder-notice { background: var(--panel-2); border: 1px dashed var(--border); border-radius: 6px; padding: 1.1rem 1.3rem; color: var(--muted); }

/* Ads */
.ad-slot { display: flex; justify-content: center; align-items: center; overflow-x: auto; margin-bottom: 2rem; }
.ad-slot.ad-top { margin: 1.2rem 0; }
.ad-slot.ad-native { margin: 2.5rem 0; }
.ad-slot.sticky-bottom { position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; margin: 0; padding: 0; background: var(--bg-alt); border-top: 1px solid var(--border); height: 90px; }
.ad-row { display: flex; justify-content: center; gap: 1rem; width: 100%; }
.ad-row-mobile { display: none; }
@media (max-width: 900px) {
  .ad-row-desktop { display: none; }
  .ad-row-mobile { display: flex; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 2.5rem 0 5rem; margin-top: 2rem; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2rem; }
.footer-cols { display: flex; gap: 3rem; }
.footer-cols h4 { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; color: var(--muted); letter-spacing: 0.05em; }
.footer-cols a { display: block; color: var(--muted); padding: 0.15rem 0; }
.footer-cols a:hover { color: var(--text); }
