:root {
  --bg: #090d16;
  --surface: #111827;
  --surface-2: #1e293b;
  --border: #283548;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --green: #22c55e;
  --amber: #f59e0b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Navbar */
.navbar {
  background: rgba(17, 24, 39, 0.95);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.logo { font-size: 1.3rem; font-weight: 800; color: #fff; letter-spacing: 0.5px; }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 18px; font-size: 0.92rem; }
.nav-links a { color: var(--muted); font-weight: 600; }
.nav-links a:hover { color: #fff; text-decoration: none; }

/* Container & Hero */
.container { max-width: 1100px; margin: 0 auto; padding: 24px 18px; }

.hero {
  background:
    linear-gradient(90deg, #0b111e 52%, rgba(11, 17, 30, 0.35) 78%, rgba(11, 17, 30, 0.08) 100%),
    url('bg.jpg') right 16% / 42% auto no-repeat,
    #0b111e;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 36% 36px 30px;
  text-align: left;
  margin-bottom: 28px;
}
.hero h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.25; margin-bottom: 10px; }
.hero p { color: var(--muted); max-width: 650px; margin: 0 0 20px 0; font-size: 1rem; }

/* Search & Filter Pills */
.search-box {
  width: 100%;
  max-width: 520px;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #060911;
  color: #fff;
  font-size: 1rem;
  outline: none;
}
.search-box:focus { border-color: var(--accent); }
.filters { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px; margin-top: 16px; }
.filter-btn {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--accent);
  color: #06101d;
  border-color: var(--accent);
}

@media (max-width: 768px) {
  .hero {
    background:
      linear-gradient(rgba(9, 13, 22, 0.78), rgba(9, 13, 22, 0.90)),
      url('bg.jpg') center 18% / cover no-repeat;
    padding: 30px 18px;
    text-align: center;
  }
  .hero p { margin: 0 auto 20px; }
  .filters { justify-content: center; }
}
/* Game Grid Cards */
.section-title { font-size: 1.35rem; margin-bottom: 16px; border-left: 4px solid var(--accent); padding-left: 12px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; margin-bottom: 36px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--accent); }
.badge-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; gap: 8px; }
.fps-badge {
  background: rgba(34, 197, 94, 0.15);
  color: var(--green);
  border: 1px solid rgba(34, 197, 94, 0.4);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
}
.spec-tag { font-size: 0.78rem; color: var(--amber); font-weight: 600; }
.card h3 { font-size: 1.15rem; margin-bottom: 8px; color: #fff; }
.card p { font-size: 0.9rem; color: var(--muted); margin-bottom: 16px; }
.btn {
  display: inline-block;
  text-align: center;
  background: var(--accent);
  color: #06101d;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
}
.btn:hover { opacity: 0.92; text-decoration: none; }

/* Article & Legal Pages */
.article-wrap {
  max-width: 840px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 22px;
}
.article-wrap h1 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin-bottom: 10px; }
.article-wrap h2 { font-size: 1.3rem; color: var(--accent); margin: 26px 0 10px; }
.article-wrap p, .article-wrap li { color: #cbd5e1; margin-bottom: 12px; }
.article-wrap ul, .article-wrap ol { padding-left: 22px; margin-bottom: 14px; }
.verdict-box {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-left: 4px solid var(--green);
  padding: 16px;
  border-radius: 10px;
  margin: 18px 0;
}
table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.92rem; }
th, td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; }
th { background: var(--surface-2); color: var(--accent); }
.code-box {
  background: #060a12;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  font-family: monospace;
  font-size: 0.85rem;
  color: #7dd3fc;
  overflow-x: auto;
  margin: 12px 0;
}
.copy-btn {
  background: var(--surface-2);
  color: #fff;
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.copy-btn:hover { border-color: var(--accent); }
.faq-item { border-bottom: 1px solid var(--border); padding: 12px 0; }
.faq-item strong { color: #fff; display: block; margin-bottom: 4px; }

/* Info Block & Footer */
.info-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 24px;
}
.info-panel h2 { color: var(--accent); margin-bottom: 10px; font-size: 1.25rem; }
.info-panel p { color: var(--muted); margin-bottom: 10px; }
footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 24px 18px;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 40px;
}
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-bottom: 10px; }