:root {
  --bg: #100e0b;
  --bg-elev: #1a1712;
  --bg-card: #1e1a14;
  --border: #362f22;
  --text: #f3ede0;
  --text-dim: #ab9f89;

  --amber: #e8a23c;
  --amber-bright: #ffc866;
  --amber-dim: #8a5f22;
  --cyan: #4fd8d0;
  --cyan-dim: #1f6d68;
  --emerald: #2a8a63;
  --emerald-dim: #175a42;

  --radius: 12px;
  --font-pixel: 'Press Start 2P', 'Jost', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(232, 162, 60, 0.10), transparent 60%),
    radial-gradient(ellipse 700px 400px at 90% 10%, rgba(79, 216, 208, 0.08), transparent 60%);
  color: var(--text);
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
}
h1, h2, h3, h4, .brand, .btn, .footer-brand { font-family: 'Jost', sans-serif; font-weight: 600; letter-spacing: 0.01em; }
.pixel { font-family: var(--font-pixel); letter-spacing: 0.02em; }
a { color: var(--amber); text-decoration: none; }
a:hover { color: var(--amber-bright); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.material-symbols-rounded { font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; vertical-align: middle; }

/* CRT scanline texture — subtle, layered over dark sections only */
.crt::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.18) 0px, rgba(0,0,0,0.18) 1px, transparent 1px, transparent 3px);
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.5;
}

/* Header */
.site-header { background: rgba(26,23,18,0.92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { color: var(--text); font-size: 1.05rem; display: flex; align-items: center; gap: 10px; font-family: var(--font-pixel); }
.brand .material-symbols-rounded { color: var(--amber); font-size: 1.6rem; text-shadow: 0 0 12px rgba(232,162,60,0.6); }
.brand-dot { color: var(--cyan); }
.header-search { flex: 1; max-width: 380px; display: flex; align-items: center; gap: 8px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 999px; padding: 9px 16px; }
.header-search input { background: none; border: none; outline: none; color: var(--text); width: 100%; font-family: 'Roboto', sans-serif; }
.header-search .material-symbols-rounded { color: var(--text-dim); font-size: 1.2rem; }
.site-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.site-nav > a { color: var(--text-dim); font-weight: 500; font-size: 0.92rem; }
.site-nav > a:hover, .site-nav > a.active { color: var(--amber); }
.lang-switch { display: flex; gap: 4px; background: var(--bg-card); border-radius: 6px; padding: 3px; border: 1px solid var(--border); }
.lang-switch a { padding: 4px 10px; border-radius: 4px; font-size: 0.8rem; color: var(--text-dim); }
.lang-switch a.active { background: var(--amber-dim); color: var(--text); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 56px; text-align: center; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, #17140f 0%, var(--bg) 100%); }
.hero-collage { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; opacity: 0.22; transform: rotate(-4deg) scale(1.2); filter: saturate(0.7); }
.hero-collage img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3/4; border-radius: 4px; }
.hero-fade { position: absolute; inset: 0; background: radial-gradient(ellipse 900px 500px at 50% 40%, transparent 0%, var(--bg) 78%); }
.hero-inner { position: relative; z-index: 2; }
.hero h1 { font-family: var(--font-pixel); font-size: 2rem; line-height: 1.5; margin: 0 0 18px; color: var(--amber-bright); text-shadow: 0 0 18px rgba(232,162,60,0.45), 0 0 2px rgba(0,0,0,0.8); }
.hero h1 .cyan { color: var(--cyan); text-shadow: 0 0 18px rgba(79,216,208,0.5); }
.hero p.tagline { color: var(--text-dim); font-size: 1.15rem; max-width: 620px; margin: 0 auto 14px; }
.hero .stat { color: var(--cyan); font-weight: 700; }
.hero-badges { display: flex; justify-content: center; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.hero-badge { background: rgba(30,26,20,0.8); border: 1px solid var(--border); padding: 6px 16px; border-radius: 999px; font-size: 0.8rem; color: var(--text-dim); display: flex; align-items: center; gap: 6px; }
.hero-badge .material-symbols-rounded { font-size: 1rem; color: var(--amber); }

.platform-hero { position: relative; height: 190px; overflow: hidden; border-bottom: 1px solid var(--border); background: var(--bg-elev); }
.platform-hero-covers { position: absolute; inset: 0; z-index: 1; display: flex; gap: 8px; padding: 8px; opacity: 0.55; transform: scale(1.1); filter: saturate(0.8); }
.platform-hero-covers img { height: 100%; width: auto; aspect-ratio: 3/4; object-fit: cover; border-radius: 4px; }
.platform-hero-scrim { position: absolute; inset: 0; z-index: 2; background: linear-gradient(90deg, var(--bg) 0%, rgba(16,14,11,0.55) 40%, rgba(16,14,11,0.35) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 55%); }
.platform-hero-inner { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; max-width: 1200px; margin: 0 auto; padding: 0 20px 22px; }
.platform-hero-inner h1 { font-size: 1.5rem; margin: 0 0 6px; color: var(--amber-bright); text-shadow: 0 2px 10px rgba(0,0,0,0.7); }
.platform-hero-inner .era { color: var(--text-dim); font-size: 0.85rem; }

/* Sections */
section { padding: 52px 0; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; flex-wrap: wrap; gap: 10px; }
.section-title h2 { font-size: 1.05rem; margin: 0; color: var(--text); font-family: var(--font-pixel); display: flex; align-items: center; gap: 12px; }
.section-title .material-symbols-rounded { color: var(--amber); }
.section-sub { color: var(--text-dim); font-size: 0.92rem; margin: -18px 0 26px; }

/* Platform grid */
.platform-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.platform-card { position: relative; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s; display: flex; flex-direction: column; }
.platform-card:hover { border-color: var(--amber-dim); transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,0.35), 0 0 0 1px rgba(232,162,60,0.15); }
.platform-badge-art { width: 100%; height: 120px; display: flex; align-items: center; justify-content: center; font-family: var(--font-pixel); font-size: 1.5rem; padding: 0 12px; text-align: center; border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.platform-badge-art::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 8px); }
.platform-body { padding: 16px 18px; flex: 1; display: flex; flex-direction: column; }
.platform-card h3 { margin: 0 0 4px; color: var(--text); font-size: 1.05rem; }
.platform-card .era { color: var(--text-dim); font-size: 0.8rem; }
.platform-card .count { color: var(--cyan); font-weight: 600; font-size: 0.85rem; margin-top: auto; padding-top: 12px; }
.platform-mini-covers { display: flex; gap: 4px; padding: 0 18px 14px; margin-top: -4px; }
.platform-mini-covers img { width: 32px; height: 42px; object-fit: cover; border-radius: 3px; border: 1px solid var(--border); }

/* Game grid */
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; }
.game-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s; }
.game-card:hover { border-color: var(--cyan-dim); transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,0.35); }
.game-card .cover { width: 100%; aspect-ratio: 3/4; object-fit: cover; background: var(--bg-elev); }
.game-card .info { padding: 12px 14px; }
.game-card h4 { margin: 0 0 4px; font-size: 0.92rem; color: var(--text); font-family: 'Roboto', sans-serif; font-weight: 500; }
.game-card .meta { color: var(--text-dim); font-size: 0.78rem; display: flex; justify-content: space-between; align-items: center; }
.rating-badge { background: var(--emerald-dim); color: #cdf0e0; padding: 1px 7px; border-radius: 4px; font-size: 0.76rem; font-weight: 600; }

/* Game detail */
.game-detail { display: grid; grid-template-columns: 280px 1fr; gap: 44px; padding: 52px 0; }
.game-detail .cover { border-radius: var(--radius); border: 1px solid var(--border); box-shadow: 0 16px 40px rgba(0,0,0,0.4); }
.game-detail h1 { font-size: 1.9rem; margin: 0 0 8px; }
.game-detail .subtitle { color: var(--text-dim); margin-bottom: 20px; }
.badge-row { display: flex; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; }
.badge { background: var(--bg-card); border: 1px solid var(--border); padding: 4px 14px; border-radius: 999px; font-size: 0.82rem; color: var(--text-dim); }
.description { color: var(--text); max-width: 640px; margin-bottom: 30px; }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--amber); color: #1a1305; padding: 13px 26px; border-radius: 8px; font-weight: 700; border: none; cursor: pointer; box-shadow: 0 6px 20px rgba(232,162,60,0.25); }
.btn:hover { background: var(--amber-bright); color: #1a1305; }
.btn.btn-cyan { background: var(--cyan); box-shadow: 0 6px 20px rgba(79,216,208,0.25); }
.btn.btn-cyan:hover { background: #7ee9e2; }
.affiliate-note { color: var(--text-dim); font-size: 0.76rem; margin-top: 10px; }

/* Articles */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.article-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; transition: border-color 0.15s, transform 0.15s; }
.article-card:hover { border-color: var(--amber-dim); transform: translateY(-2px); }
.article-card h3 { margin: 0 0 8px; font-size: 1.08rem; }
.article-card p { color: var(--text-dim); font-size: 0.92rem; margin: 0; }
.article-body { max-width: 720px; margin: 0 auto; padding: 52px 20px; }
.article-body h1 { font-size: 1.9rem; }
.article-body .excerpt { color: var(--text-dim); font-size: 1.1rem; }
.article-body .content { margin-top: 24px; }
.article-body .content h2 { color: var(--amber); font-size: 1.25rem; margin-top: 34px; }
.article-body .content p { color: var(--text); }
.article-body .content ul, .article-body .content ol { color: var(--text); }

/* Consoles storefront */
.console-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.console-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s; display: flex; flex-direction: column; }
.console-card:hover { border-color: var(--cyan-dim); transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0,0,0,0.4); }
.console-badge-art { width: 100%; height: 170px; display: flex; align-items: center; justify-content: center; font-family: var(--font-pixel); font-size: 2rem; padding: 0 14px; text-align: center; border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.console-badge-art::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0 2px, transparent 2px 10px); }
.console-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.console-card h3 { margin: 0 0 4px; font-size: 1.1rem; }
.console-card .era { color: var(--text-dim); font-size: 0.8rem; margin-bottom: 14px; }
.console-price-row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); }
.console-price { font-family: var(--font-pixel); font-size: 1.1rem; color: var(--amber-bright); }
.console-price-note { color: var(--text-dim); font-size: 0.68rem; display: block; margin-top: 2px; font-family: 'Roboto', sans-serif; }
.console-buy { background: var(--cyan); color: #06201d; border: none; padding: 9px 16px; border-radius: 7px; font-weight: 700; font-size: 0.85rem; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.console-buy:hover { background: #7ee9e2; }
.mock-banner { background: rgba(232,162,60,0.08); border: 1px dashed var(--amber-dim); border-radius: var(--radius); padding: 14px 20px; color: var(--text-dim); font-size: 0.85rem; margin-bottom: 28px; display: flex; align-items: center; gap: 10px; }
.mock-banner .material-symbols-rounded { color: var(--amber); }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 34px; }
.pagination a, .pagination span { padding: 8px 14px; border-radius: 6px; border: 1px solid var(--border); color: var(--text-dim); }
.pagination a:hover { border-color: var(--amber-dim); color: var(--text); }
.pagination .current { background: var(--amber-dim); color: var(--text); }

/* Footer */
.site-footer { background: var(--bg-elev); border-top: 1px solid var(--border); padding: 44px 0; margin-top: 40px; }
.footer-brand { color: var(--text); display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-family: var(--font-pixel); font-size: 0.9rem; }
.footer-brand .material-symbols-rounded { color: var(--amber); }
.site-footer p { color: var(--text-dim); font-size: 0.85rem; max-width: 600px; }
.disclosure { color: #6b6252; font-size: 0.76rem; }

/* Search */
.search-form-large { display: flex; gap: 10px; max-width: 560px; margin: 0 auto 32px; }
.search-form-large input { flex: 1; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; padding: 12px 16px; color: var(--text); font-family: 'Roboto', sans-serif; }

.empty-state { text-align: center; color: var(--text-dim); padding: 64px 0; }
.empty-state .material-symbols-rounded { font-size: 3rem; color: var(--amber-dim); }

@media (max-width: 720px) {
  .site-header .wrap { flex-wrap: wrap; height: auto; padding: 12px 20px; }
  .header-search { order: 3; max-width: 100%; }
  .game-detail { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.3rem; }
}
