/* PixelRankings — design tokens */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700;800&display=swap');

:root {
  --bg: #0b0820;
  --bg-grad-1: rgba(124, 92, 255, 0.18);
  --bg-grad-2: rgba(255, 95, 162, 0.14);
  --panel: #15112e;
  --panel-2: #1d1742;
  --panel-3: #261d56;
  --ink: #f5f2ff;
  --ink-dim: #b9b0dd;
  --ink-mute: #8278ad;
  --ink-faint: #5b537e;
  --accent: #ff5fa2;
  --accent-2: #7c5cff;
  --accent-3: #3df0c0;
  --gold: #ffd166;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.32);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.42);
  --maxw: 1240px;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Space Grotesk", "Inter", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background:
    radial-gradient(1200px 600px at 5% -10%, var(--bg-grad-1), transparent 60%),
    radial-gradient(900px 500px at 110% 0%, var(--bg-grad-2), transparent 60%),
    radial-gradient(800px 600px at 50% 110%, rgba(61, 240, 192, 0.08), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent-3); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: #92ffe0; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
::selection { background: var(--accent); color: #fff; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.015em; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--ink-mute); }
.muted.small { font-size: 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(11, 8, 32, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 24px; padding: 16px 24px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.01em;
  color: var(--ink); font-size: 18px;
}
.brand-mark {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white; font-size: 16px; line-height: 1;
  box-shadow: 0 6px 16px rgba(255, 95, 162, 0.35);
}
.brand-text { font-size: 18px; }
.primary-nav { display: flex; gap: 22px; margin-left: 8px; }
.primary-nav a {
  color: var(--ink-dim); font-weight: 600; font-size: 14px;
  padding: 6px 0; position: relative;
}
.primary-nav a:hover { color: var(--ink); text-decoration: none; }
.primary-nav a:hover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 2px;
}
.search { margin-left: auto; }
.search input {
  background: var(--panel); border: 1px solid var(--line); color: var(--ink);
  border-radius: 999px; padding: 9px 16px; min-width: 240px; font-size: 14px;
  font-family: var(--font-sans);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.search input:focus { outline: none; border-color: var(--accent); background: var(--panel-2); }
.search input::placeholder { color: var(--ink-mute); }

/* Main */
.site-main { padding: 36px 0 80px; }

/* Breadcrumbs */
.breadcrumbs { font-size: 13px; color: var(--ink-mute); margin-bottom: 12px; }
.breadcrumbs a { color: var(--ink-dim); font-weight: 500; }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs span { color: var(--ink); }

/* Hero v2 */
.hero {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center;
  background:
    linear-gradient(135deg, rgba(124, 92, 255, 0.22), rgba(255, 95, 162, 0.16)),
    var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 44px 44px;
  margin-bottom: 44px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 0% 0%, rgba(124, 92, 255, 0.30), transparent 60%);
  pointer-events: none;
}
.hero-copy { position: relative; }
.eyebrow {
  display: inline-block; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-3); font-weight: 700; margin-bottom: 14px;
  padding: 5px 10px; border: 1px solid rgba(61, 240, 192, 0.3); border-radius: 999px;
  background: rgba(61, 240, 192, 0.06);
}
.hero h1 {
  margin: 0 0 16px; font-size: clamp(32px, 4vw, 52px); line-height: 1.05; letter-spacing: -0.025em;
  font-weight: 800;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), var(--accent-2) 50%, var(--accent-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lede { color: var(--ink-dim); font-size: 17px; margin: 0 0 22px; max-width: 540px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 12px;
  font-weight: 700; font-size: 14px; line-height: 1; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  font-family: var(--font-sans); border: 1px solid transparent;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  box-shadow: 0 8px 24px rgba(255, 95, 162, 0.30);
}
.btn-primary:hover { transform: translateY(-1px); text-decoration: none; box-shadow: 0 12px 32px rgba(255, 95, 162, 0.40); color: white; }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: rgba(255, 255, 255, 0.04); }
.btn-ghost:hover { text-decoration: none; background: rgba(255, 255, 255, 0.08); color: var(--ink); }

.hero-stats { display: flex; gap: 28px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; gap: 2px; }
.hero-stats strong { font-family: var(--font-display); font-size: 26px; color: var(--ink); font-weight: 800; }
.hero-stats span { font-size: 12px; color: var(--ink-mute); text-transform: uppercase; letter-spacing: 0.08em; }

.hero-art-wrap { position: relative; }
.hero-art {
  aspect-ratio: 4/3; border-radius: 18px;
  background: var(--panel-2); background-size: cover; background-position: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line-strong);
}
.hero-feature {
  position: absolute; bottom: -22px; left: 22px; right: 22px;
  display: flex; align-items: center; gap: 14px;
  background: rgba(11, 8, 32, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line-strong); border-radius: 14px;
  padding: 12px 14px; color: var(--ink);
  box-shadow: var(--shadow-md);
}
.hero-feature:hover { text-decoration: none; }
.hero-feature-icon {
  width: 56px; height: 56px; border-radius: 12px; flex-shrink: 0;
  background-size: cover; background-position: center; border: 1px solid var(--line);
}
.hero-feature-title { font-weight: 700; font-size: 15px; line-height: 1.2; margin-top: 2px; }

/* Sections */
.section-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin: 48px 0 18px;
}
.section-head h2 { margin: 0; font-size: 24px; letter-spacing: -0.015em; }
.section-head a { color: var(--accent-3); font-weight: 600; font-size: 14px; }

/* Game grid */
.game-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.game-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--ink);
  display: flex; flex-direction: column;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.game-card:hover {
  transform: translateY(-3px); text-decoration: none;
  border-color: var(--line-strong); box-shadow: var(--shadow-md);
}
.game-card-art {
  aspect-ratio: 1/1;
  background: linear-gradient(135deg, var(--panel-2), var(--panel-3));
  background-size: cover; background-position: center;
  position: relative;
}
.rank-badge {
  position: absolute; top: 10px; left: 10px;
  background: rgba(11, 8, 32, 0.78);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line-strong); color: var(--gold);
  padding: 4px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 700;
  font-family: var(--font-display); letter-spacing: 0.02em;
}
.game-card-body { padding: 14px 16px 16px; }
.game-card-title {
  font-family: var(--font-display);
  font-weight: 700; font-size: 15px; margin-bottom: 6px; line-height: 1.25;
  letter-spacing: -0.005em;
}
.game-card-meta { display: flex; justify-content: space-between; gap: 8px; color: var(--ink-mute); font-size: 12px; }
.game-card-meta .dev { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%; }
.rating { color: var(--gold); font-weight: 600; }
.game-card-tag {
  margin-top: 10px; display: inline-block; font-size: 11px; padding: 3px 9px;
  border-radius: 999px; background: rgba(124, 92, 255, 0.14);
  color: var(--ink-dim); border: 1px solid rgba(124, 92, 255, 0.18);
  font-weight: 500;
}

/* Game detail */
.game-detail { display: grid; grid-template-columns: 280px 1fr; gap: 36px; }
.game-detail .icon {
  aspect-ratio: 1/1; background: var(--panel); border-radius: 24px;
  background-size: cover; background-position: center; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line-strong);
}
.game-detail h1 { margin: 0 0 8px; font-size: clamp(28px, 3.5vw, 38px); letter-spacing: -0.02em; }
.game-detail .dev { color: var(--ink-dim); margin-bottom: 18px; font-size: 14px; }
.score-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.score {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 18px; min-width: 140px;
}
.score .label { color: var(--ink-mute); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.score .value { font-size: 24px; font-weight: 800; font-family: var(--font-display); margin-top: 4px; }
.score.gold .value { color: var(--gold); }
.score.accent .value { color: var(--accent-3); }

.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.tag {
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
  padding: 5px 11px; border-radius: 999px; font-size: 12px; color: var(--ink-dim);
  font-weight: 500; transition: all 0.15s ease;
}
a.tag:hover { background: rgba(124, 92, 255, 0.18); color: var(--ink); border-color: var(--line-strong); text-decoration: none; }

.review-body p { margin: 0 0 16px; color: var(--ink); font-size: 15.5px; line-height: 1.7; }
.review-body h2 { margin: 28px 0 12px; font-size: 22px; }

.facts {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; margin: 22px 0;
}
.facts dl { display: grid; grid-template-columns: 170px 1fr; gap: 10px 18px; margin: 0; }
.facts dt { color: var(--ink-mute); font-size: 13px; font-weight: 500; }
.facts dd { margin: 0; color: var(--ink); font-size: 14px; font-weight: 500; }

.screenshots { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 16px 0 8px; }
.screenshots img { width: 100%; height: auto; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); display: block; box-shadow: var(--shadow-md); }

.featured-in { margin-top: 26px; }
.featured-in h2 { font-size: 20px; margin: 0 0 12px; }
.chip-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-block; padding: 8px 14px; border-radius: 999px;
  background: rgba(124, 92, 255, 0.14); border: 1px solid rgba(124, 92, 255, 0.24);
  color: var(--ink); font-size: 13px; font-weight: 500;
  transition: all 0.15s ease;
}
.chip:hover { background: rgba(124, 92, 255, 0.28); text-decoration: none; }

/* Adslot */
.adslot {
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.025) 8px, rgba(255, 255, 255, 0.05) 8px, rgba(255, 255, 255, 0.05) 16px);
  border: 1px dashed var(--line-strong);
  text-align: center; color: var(--ink-mute);
  padding: 26px; border-radius: var(--radius);
  margin: 26px 0;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600;
}

/* Cards (categories, lists, devs) */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.cat-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; color: var(--ink); display: block;
  transition: all 0.18s ease;
}
.cat-card:hover { border-color: var(--line-strong); background: var(--panel-2); text-decoration: none; transform: translateY(-2px); }
.cat-card .name { font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: -0.01em; margin-bottom: 4px; }
.cat-card .meta { color: var(--ink-mute); font-size: 13px; }
.cat-card-rich .cat-eyebrow {
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-3); font-weight: 700; margin-bottom: 8px;
}
.cat-card-rich .name { font-size: 17px; line-height: 1.3; }
.cat-card-rich .meta { line-height: 1.5; margin-top: 6px; }

.dev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }

/* A-Z */
.az-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 10px; max-width: 700px; }
.az-tile {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 18px 0; text-align: center; color: var(--ink); transition: all 0.15s ease;
}
.az-tile:hover { background: var(--panel-2); border-color: var(--line-strong); text-decoration: none; }
.az-tile .letter { font-family: var(--font-display); font-size: 24px; font-weight: 700; }
.az-tile .meta { color: var(--ink-mute); font-size: 11px; margin-top: 2px; }

.az-list { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 32px; }
.az-list li { padding: 6px 0; font-size: 14px; break-inside: avoid; border-bottom: 1px solid var(--line); }
.az-list a { color: var(--ink); font-weight: 500; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line); margin-top: 80px; padding: 40px 0 28px;
  background: rgba(0, 0, 0, 0.30);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 28px; }
.footer-grid h4 { margin: 0 0 10px; font-size: 12px; color: var(--ink-mute); text-transform: uppercase; letter-spacing: 0.10em; font-weight: 700; }
.footer-grid p { color: var(--ink-dim); font-size: 14px; max-width: 460px; margin: 8px 0 0; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { padding: 5px 0; font-size: 14px; }
.footer-grid a { color: var(--ink-dim); }
.footer-grid a:hover { color: var(--ink); }
.footer-bottom { color: var(--ink-mute); font-size: 12px; padding-top: 18px; border-top: 1px solid var(--line); }

/* Page utilities */
.page-title { font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -0.02em; margin: 8px 0 8px; }
.page-lede { color: var(--ink-dim); font-size: 16px; margin: 0 0 26px; max-width: 760px; line-height: 1.6; }

.prose { max-width: 760px; }
.prose p { color: var(--ink); margin: 0 0 16px; font-size: 15.5px; line-height: 1.75; }
.prose h2 { margin: 32px 0 12px; font-size: 22px; }
.prose h3 { margin: 22px 0 8px; font-size: 18px; }
.prose ul { padding-left: 22px; }
.list-intro { margin: 16px 0 32px; max-width: 820px; }
.home-prose { margin-top: 48px; }

.related-lists { margin-top: 48px; }

@media (max-width: 960px) {
  .container { padding: 0 18px; }
  .hero { grid-template-columns: 1fr; padding: 32px 24px; gap: 24px; }
  .hero-feature { left: 14px; right: 14px; }
  .game-detail { grid-template-columns: 1fr; gap: 24px; }
  .game-detail .icon { max-width: 220px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .primary-nav { display: none; }
  .header-row { gap: 14px; padding: 14px 18px; }
  .search input { min-width: 0; width: 180px; }
  .facts dl { grid-template-columns: 1fr; gap: 4px; }
  .facts dt { color: var(--ink-mute); font-size: 12px; }
  .facts dd { margin-bottom: 8px; }
  .az-list { columns: 1; }
}

@media (max-width: 560px) {
  .site-main { padding: 24px 0 60px; }
  .hero { padding: 26px 20px; border-radius: 18px; }
  .hero h1 { font-size: 30px; }
  .hero-lede { font-size: 15px; }
  .hero-stats { gap: 18px; }
  .hero-stats strong { font-size: 22px; }
  .hero-feature { position: static; margin-top: 14px; }
  .game-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .game-card-body { padding: 12px 12px 14px; }
  .game-card-title { font-size: 14px; }
  .section-head { margin: 36px 0 14px; }
  .section-head h2 { font-size: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .header-row { gap: 10px; }
  .brand-text { display: none; }
  .search input { width: 140px; padding: 7px 12px; font-size: 13px; }
  .score { min-width: 0; flex: 1 0 calc(50% - 7px); padding: 12px 14px; }
  .score .value { font-size: 20px; }
  .cat-grid { grid-template-columns: 1fr; }
  .breadcrumbs { font-size: 12px; }
}
