:root {
  --bg: #0c0e14;
  --bg-card: #161923;
  --bg-card-hover: #1c2030;
  --accent: #6c5ce7;
  --accent-light: #a29bfe;
  --accent-glow: rgba(108,92,231,0.25);
  --green: #00b894;
  --orange: #fdcb6e;
  --pink: #fd79a8;
  --text: #e8e8f0;
  --text-dim: #8b8da3;
  --text-muted: #5a5c72;
  --border: rgba(255,255,255,0.06);
  --radius: 16px;
  --radius-sm: 10px;
  --font: 'Plus Jakarta Sans', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }

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

/* ===== NAV ===== */
.nav {
  position: fixed; top:0; left:0; right:0; z-index:100;
  background: rgba(12,14,20,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 700;
  color: var(--accent-light);
  text-decoration: none;
  display: flex; align-items: center; gap: 8px;
}
.nav-logo span { color: var(--text); }
.nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.nav-links a {
  color: var(--text-dim); text-decoration: none;
  font-size: 0.84rem; font-weight: 500;
  padding: 6px 13px; border-radius: 8px;
  transition: all 0.2s; white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text); background: rgba(255,255,255,0.06);
}
.nav-toggle {
  display: none; background: none; border: none; color: var(--text);
  font-size: 1.5rem; cursor: pointer;
}

/* ===== HERO ===== */
.hero {
  padding: 80px 24px 60px;
  text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content:''; position:absolute; top:-200px; left:50%; transform:translateX(-50%);
  width:800px; height:800px; border-radius:50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events:none;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem,5vw,3.5rem);
  font-weight: 700; line-height: 1.15;
  margin-bottom: 16px; position:relative;
}
.hero h1 .gradient {
  background: linear-gradient(135deg, var(--accent-light), var(--pink));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.1rem; color: var(--text-dim);
  max-width: 600px; margin: 0 auto 32px; position:relative;
}

/* ===== SECTION ===== */
.section { padding: 40px 24px 60px; max-width:1200px; margin:0 auto; }
.section-title {
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight:700;
  margin-bottom: 32px;
  display: flex; align-items: center; gap: 12px;
}
.section-title .dot {
  width:10px; height:10px; border-radius:50%; background: var(--accent);
}

/* ===== CATEGORY GRID ===== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px,1fr));
  gap: 20px;
}
.cat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  cursor: pointer; transition: all 0.3s;
  position: relative; overflow: hidden;
  text-decoration: none; color: inherit; display: block;
}
.cat-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(108,92,231,0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--accent-glow);
}
.cat-icon { font-size: 2.2rem; margin-bottom: 14px; display: inline-block; }
.cat-card h3 { font-size: 1.1rem; font-weight:700; margin-bottom: 8px; }
.cat-card p { font-size: 0.85rem; color: var(--text-dim); line-height: 1.5; }
.cat-count {
  position:absolute; top:16px; right:16px;
  background: rgba(108,92,231,0.15); color: var(--accent-light);
  font-size: 0.75rem; font-weight:700;
  padding: 4px 10px; border-radius: 20px;
}

/* ===== GAME CARDS ===== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px,1fr));
  gap: 24px;
}
.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden; transition: all 0.3s;
}
.game-card:hover {
  border-color: rgba(108,92,231,0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.game-card-header {
  width: 100%; height: 200px;
  background: linear-gradient(135deg, #1a1d2e, #252842);
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; user-select: none; overflow: hidden;
}
.game-card-header img {
  width: 100%; height: 100%; object-fit: cover;
}
.game-body { padding: 20px; }
.game-body h3 { font-size: 1.1rem; font-weight:700; margin-bottom:6px; }
.game-meta { display: flex; gap: 12px; margin-bottom:12px; flex-wrap:wrap; }
.game-tag {
  font-size: 0.72rem; font-weight:600;
  padding: 3px 10px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.tag-free { background: rgba(0,184,148,0.15); color: var(--green); }
.tag-puzzle { background: rgba(253,203,110,0.15); color: var(--orange); }
.tag-arcade { background: rgba(253,121,168,0.15); color: var(--pink); }
.tag-casual { background: rgba(162,155,254,0.15); color: var(--accent-light); }

.game-body > p {
  font-size: 0.88rem; color: var(--text-dim);
  line-height: 1.55; margin-bottom: 16px;
}
.game-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.stars { color: var(--orange); font-size: 0.9rem; letter-spacing: 2px; }
.rating-num { font-size: 0.85rem; font-weight:700; }

.game-pros, .game-cons { margin-bottom:16px; }
.game-pros h4, .game-cons h4 {
  font-size: 0.8rem; font-weight:700;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom:8px;
}
.game-pros h4 { color: var(--green); }
.game-cons h4 { color: var(--pink); }
.game-pros ul, .game-cons ul { list-style: none; padding: 0; }
.game-pros li, .game-cons li {
  font-size: 0.84rem; color: var(--text-dim);
  padding: 3px 0 3px 18px; position:relative;
}
.game-pros li::before { content:'✓'; position:absolute; left:0; color: var(--green); font-weight:700; }
.game-cons li::before { content:'✗'; position:absolute; left:0; color: var(--pink); font-weight:700; }

/* ===== SCREENSHOTS ===== */
.screenshots {
  display: flex; gap: 10px; overflow-x: auto;
  padding: 12px 0; margin-bottom: 16px;
  scrollbar-width: thin; scrollbar-color: var(--text-muted) transparent;
}
.screenshots img {
  width: 180px; height: 120px;
  border-radius: 8px; flex-shrink: 0;
  object-fit: cover;
  border: 1px solid var(--border);
  transition: transform 0.2s;
}
.screenshots img:hover { transform: scale(1.05); }

/* ===== BUTTONS ===== */
.btn-play {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent);
  color: #fff; font-weight: 600; font-size: 0.88rem;
  padding: 10px 22px; border-radius: var(--radius-sm);
  text-decoration: none; transition: all 0.2s;
  border: none; cursor: pointer;
}
.btn-play:hover {
  background: #5b4bd5;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-play svg { width:18px; height:18px; fill:currentColor; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 1px solid var(--border);
  color: var(--text-dim); font-weight: 500; font-size: 0.84rem;
  padding: 8px 18px; border-radius: var(--radius-sm);
  text-decoration: none; transition: all 0.2s; margin-left: 8px;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent-light); }

/* ===== DETAIL PAGES ===== */
.detail-header {
  padding: 60px 24px 40px; max-width: 900px; margin: 0 auto;
}
.detail-header .back {
  color: var(--accent-light); text-decoration: none;
  font-size: 0.85rem; font-weight: 500;
  display: inline-flex; align-items:center; gap:6px; margin-bottom: 24px;
}
.detail-header .back:hover { text-decoration: underline; }
.detail-header h1 {
  font-family: var(--font-display);
  font-size: 2rem; font-weight:700; margin-bottom: 12px;
}
.detail-header .subtitle { color: var(--text-dim); font-size: 1rem; margin-bottom: 24px; }
.detail-content { max-width: 900px; margin:0 auto; padding: 0 24px 60px; }
.detail-content > h2 {
  font-size: 1.2rem; font-weight:700;
  margin: 32px 0 12px; padding-left: 12px;
  border-left: 3px solid var(--accent);
}
.detail-content > p {
  font-size: 0.92rem; color: var(--text-dim);
  line-height: 1.7; margin-bottom: 16px;
}

/* ===== EDITORIAL BADGE ===== */
.editorial-badge {
  display: inline-flex; align-items:center; gap:6px;
  background: rgba(0,184,148,0.1);
  border: 1px solid rgba(0,184,148,0.2);
  color: var(--green);
  font-size: 0.72rem; font-weight:700;
  padding: 4px 12px; border-radius: 20px;
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px;
}

/* ===== COMPARISON TABLE ===== */
.compare-table {
  width:100%; border-collapse:collapse; margin: 20px 0 30px; font-size: 0.85rem;
}
.compare-table th {
  background: rgba(108,92,231,0.1); color: var(--accent-light);
  padding: 12px 16px; text-align: left; font-weight: 700;
  border-bottom: 1px solid var(--border);
}
.compare-table td {
  padding: 10px 16px; border-bottom: 1px solid var(--border); color: var(--text-dim);
}
.compare-table tr:hover td { background: rgba(255,255,255,0.02); }

/* ===== VERDICT BOX ===== */
.verdict-box {
  background: linear-gradient(135deg, rgba(108,92,231,0.1), rgba(253,121,168,0.05));
  border: 1px solid rgba(108,92,231,0.2);
  border-radius: var(--radius); padding: 24px; margin: 24px 0;
}
.verdict-box h3 { font-size: 1rem; font-weight:700; margin-bottom: 8px; color: var(--accent-light); }
.verdict-box p { font-size: 0.9rem; color: var(--text-dim); line-height: 1.6; }
.verdict-score {
  font-family: var(--font-display);
  font-size: 2.5rem; font-weight:700;
  color: var(--accent-light); float: right; margin-left: 16px;
}

/* ===== POLICY PAGES ===== */
.policy-content { max-width: 800px; margin: 0 auto; padding: 60px 24px 80px; }
.policy-content h1 {
  font-family: var(--font-display);
  font-size: 2rem; font-weight:700; margin-bottom: 8px;
}
.policy-content .updated { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 32px; }
.policy-content h2 { font-size: 1.15rem; font-weight:700; margin: 28px 0 10px; color: var(--text); }
.policy-content p, .policy-content li {
  font-size: 0.9rem; color: var(--text-dim); line-height: 1.7; margin-bottom: 12px;
}
.policy-content ul { padding-left: 20px; margin-bottom: 16px; }
.policy-content a { color: var(--accent-light); }

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border); padding: 40px 24px; text-align: center;
}
.footer-inner { max-width: 1200px; margin:0 auto; }
.footer-links {
  display: flex; gap: 20px; justify-content: center;
  flex-wrap: wrap; margin-bottom: 16px;
}
.footer-links a {
  color: var(--text-muted); text-decoration: none;
  font-size: 0.82rem; font-weight: 500; transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-dim); }
.footer-copy { color: var(--text-muted); font-size: 0.78rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links { display:none; }
  .nav-links.open {
    display: flex; flex-direction:column;
    position:absolute; top:64px; left:0; right:0;
    background:rgba(12,14,20,0.97);
    padding:16px 24px; border-bottom: 1px solid var(--border);
  }
  .nav-toggle { display:block; }
  .games-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .cat-grid { grid-template-columns: 1fr; }
}
