/* RogueMeta.pages.dev — Global Styles */
@import url('https://fonts.googleapis.pages.dev/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #0a0a0f; --bg1: #12121a; --bg2: #1a1a26; --bg3: #242436;
  --tx: #e6e4df; --tx2: #a0a0b0; --tx3: #6a6a80;
  --accent: #ff4d00; --accent2: #ff7a33;
  --s: #ff2d2d; --a: #ff6b35; --b: #ffa726; --c: #66bb6a; --d: #78909c;
  --blue: #42a5f5; --purple: #ab47bc; --green: #4caf50;
  --border: rgba(255,255,255,.07);
  --max-w: 1080px;
  --font: 'Inter', -apple-system, 'PingFang SC', sans-serif;
  --font-h: 'Space Grotesk', var(--font);
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--tx); font-family: var(--font);
  font-size: 15px; line-height: 1.7; -webkit-font-smoothing: antialiased;
}
a { color: var(--accent2); text-decoration: none; transition: color .2s; }
a:hover { color: #fff; }
img { max-width: 100%; display: block; }
::selection { background: rgba(255,77,0,.3); }

/* Layout */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 48px 0; }
.section + .section { border-top: 1px solid var(--border); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(10,10,15,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 56px; }
.nav-logo { font-family: var(--font-h); font-weight: 700; font-size: 18px; color: #fff; display: flex; align-items: center; gap: 8px; }
.nav-logo span { background: var(--accent); color: #fff; font-size: 11px; padding: 2px 7px; border-radius: 4px; font-weight: 600; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { color: var(--tx2); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: var(--accent); }

/* Headings */
h1, h2, h3, h4 { font-family: var(--font-h); font-weight: 700; color: #fff; line-height: 1.3; }
h1 { font-size: 32px; }
h2 { font-size: 22px; margin-bottom: 16px; }
h3 { font-size: 17px; margin-bottom: 10px; }
.subtitle { color: var(--tx2); font-size: 16px; margin-top: 8px; line-height: 1.5; }

/* Breadcrumb */
.breadcrumb { font-size: 13px; color: var(--tx3); padding: 14px 0; }
.breadcrumb a { color: var(--tx3); }
.breadcrumb a:hover { color: var(--accent); }

/* Tag */
.tag { display: inline-block; padding: 3px 10px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.tag-s { background: rgba(255,45,45,.12); color: var(--s); border: 1px solid rgba(255,45,45,.2); }
.tag-a { background: rgba(255,107,53,.12); color: var(--a); border: 1px solid rgba(255,107,53,.2); }
.tag-b { background: rgba(255,167,38,.12); color: var(--b); border: 1px solid rgba(255,167,38,.2); }
.tag-c { background: rgba(102,187,106,.12); color: var(--c); border: 1px solid rgba(102,187,106,.2); }
.tag-d { background: rgba(120,144,156,.12); color: var(--d); border: 1px solid rgba(120,144,156,.2); }
.tag-meta { background: rgba(171,71,188,.12); color: var(--purple); border: 1px solid rgba(171,71,188,.2); }

/* Card */
.card {
  background: var(--bg1); border: 1px solid var(--border); border-radius: 12px;
  padding: 20px; transition: border-color .2s, transform .2s;
}
.card:hover { border-color: rgba(255,255,255,.14); transform: translateY(-2px); }

/* Table */
.tier-table { width: 100%; border-collapse: collapse; }
.tier-table th { text-align: left; font-size: 13px; color: var(--tx3); padding: 8px 12px; border-bottom: 1px solid var(--border); font-weight: 500; }
.tier-table td { padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.03); font-size: 14px; vertical-align: top; }
.tier-table tr:hover td { background: rgba(255,255,255,.02); }

/* Tier row label */
.tier-label { font-family: var(--font-h); font-weight: 700; font-size: 18px; width: 60px; text-align: center; }
.tier-items { display: flex; flex-wrap: wrap; gap: 8px; }
.tier-item {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 8px;
  padding: 6px 14px; font-size: 13px; font-weight: 500; color: var(--tx);
  transition: .2s;
}
.tier-item:hover { border-color: rgba(255,255,255,.15); background: var(--bg3); }

/* Build Card */
.build-card {
  background: var(--bg1); border: 1px solid var(--border); border-radius: 12px;
  padding: 24px; margin-bottom: 20px;
}
.build-card h3 { margin-bottom: 6px; }
.build-meta { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.build-section { margin-bottom: 16px; }
.build-section h4 { font-size: 14px; color: var(--accent2); margin-bottom: 8px; }
.build-section ul { padding-left: 20px; color: var(--tx2); font-size: 14px; }
.build-section li { margin-bottom: 4px; }

/* Game Card (for best-of page) */
.game-card {
  display: flex; gap: 20px; background: var(--bg1); border: 1px solid var(--border);
  border-radius: 12px; padding: 20px; margin-bottom: 16px; transition: .2s;
}
.game-card:hover { border-color: rgba(255,255,255,.12); }
.game-card-img { width: 200px; height: 120px; object-fit: cover; border-radius: 8px; flex-shrink: 0; background: var(--bg2); }
.game-card-body { flex: 1; }
.game-card-body h3 { margin-bottom: 4px; }
.game-card-body p { color: var(--tx2); font-size: 14px; }
.game-tags { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }

/* CTA */
.cta-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; background: var(--accent); color: #fff;
  border-radius: 8px; font-weight: 600; font-size: 14px; transition: .2s;
  border: none; cursor: pointer;
}
.cta-btn:hover { background: var(--accent2); color: #fff; transform: translateY(-1px); }
.cta-btn-ghost {
  background: transparent; border: 1px solid var(--border); color: var(--tx2);
}
.cta-btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: transparent; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 32px 0; text-align: center; color: var(--tx3); font-size: 13px; }
.footer a { color: var(--tx3); }
.footer a:hover { color: var(--accent); }

/* Update badge */
.updated { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--green); background: rgba(76,175,80,.1); padding: 3px 10px; border-radius: 6px; }

/* Responsive */
@media (max-width: 768px) {
  h1 { font-size: 24px; }
  .game-card { flex-direction: column; }
  .game-card-img { width: 100%; height: 160px; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 12px; }
}
