/* ============================================
   GameBeeper — Gaming Editorial Design System
   ============================================ */

:root {
  /* ── Core palette ─────────────────────── */
  --bg:        #07070c;
  --bg2:       #10111a;
  --surface:   #141522;
  --surface2:  #1b1d2c;
  --ink:       #f4f5ff;
  --ink2:      #a3a6bd;
  --ink3:      #717494;
  --border:    rgba(255,255,255,0.10);
  --border2:   rgba(255,255,255,0.15);
  --accent:    #26e6ff;
  --accent-h:  #5bf0ff;
  --green:     #b7ff39;
  --red:       #ff4466;
  --yellow:    #ffca3a;
  --orange:    #ff8c26;
  --purple:    #7c5cff;
  --cyan:      #26e6ff;
  --magenta:   #ff3abf;
  --violet:    #7c5cff;
  --lime:      #b7ff39;

  /* ── GameBeeper design tokens ─────────── */
  --gs-bg:          #07070c;
  --gs-bg-elevated: #10111a;
  --gs-panel:       #141522;
  --gs-panel-hover: #1b1d2c;
  --gs-text:        #f4f5ff;
  --gs-muted:       #a3a6bd;
  --gs-border:      rgba(255,255,255,0.10);
  --gs-cyan:        #26e6ff;
  --gs-magenta:     #ff3abf;
  --gs-violet:      #7c5cff;
  --gs-lime:        #b7ff39;
  --gs-warning:     #ffca3a;
  --gs-error:       #ff4466;
  /* backwards-compat aliases */
  --gs-surface:     var(--gs-panel);
  --gs-lime-legacy: #39ff8e;

  /* ── Typography ───────────────────────── */
  --font:         'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Chakra Petch', 'Oxanium', 'Inter', system-ui, sans-serif;
  --font-sans:    var(--font);
  --mono:         'JetBrains Mono', ui-monospace, 'Cascadia Code', 'Fira Mono', monospace;

  --text-xs:   0.75rem;
  --text-sm:   0.8125rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --ease:        0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow:      0 1px 4px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.03);
  --shadow-lg:   0 8px 32px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.04);
  --shadow-xl:   0 20px 60px rgba(0,0,0,0.8);
  --glow-accent: 0 0 24px rgba(38,230,255,0.35);
  --glow-violet: 0 0 24px rgba(124,92,255,0.30);

  /* legacy aliases */
  --paper:      var(--bg);
  --panel:      var(--surface);
  --green-l:    var(--lime);
  --pink:       var(--magenta);
  --cyan-glow:  rgba(38,230,255,0.12);
  --green-glow: rgba(183,255,57,0.10);
  --glow-cyan:  none;
  --glow-green: none;
}

/* ── Reset ────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; max-width: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100%;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(38,230,255,0.08) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 85% 5%,  rgba(124,92,255,0.07) 0%, transparent 50%);
}
body::before { display: none; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ── Scrollbar ────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #3a3a3a; }

/* ── Layout ──────────────────────────── */
.page-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; width: 100%; }

/* ── NAV ─────────────────────────────── */
.top-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7,7,12,0.85);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  max-width: 100%;
}
.top-nav.scrolled { background: rgba(7,7,12,0.97); border-bottom-color: var(--border); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 58px; gap: 12px; min-width: 0;
}
.logo { display: flex; align-items: center; gap: 9px; flex-shrink: 0; min-width: 0; }
.logo-mark {
  width: 32px; height: 32px;
  background: transparent;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px; color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(38,230,255,0.3);
  transition: box-shadow var(--ease), transform var(--ease);
}
.logo:hover .logo-mark { box-shadow: 0 4px 16px rgba(38,230,255,0.5); transform: scale(1.05); }
.logo-name {
  font-size: 15px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--ink); white-space: nowrap;
}
.logo-name .bracket { display: none; }
.logo-sub { display: none; }

/* Nav anchor links */
.nav-links {
  display: none; align-items: center; gap: 2px; flex: 1; justify-content: center;
}
@media(min-width:860px){ .nav-links { display: flex; } }
.nav-link {
  font-size: 13px; font-weight: 500; color: var(--ink3);
  padding: 5px 12px; border-radius: var(--radius-sm);
  transition: color var(--ease), background var(--ease);
}
.nav-link:hover { color: var(--ink); background: rgba(255,255,255,0.05); }

.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; position: relative; }
.nav-prompt { display: none !important; }

/* ── Buttons ─────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border: 1px solid var(--border2);
  font-size: 13px; font-weight: 500; font-family: var(--font);
  border-radius: var(--radius); transition: background var(--ease), border-color var(--ease), color var(--ease), box-shadow var(--ease), transform var(--ease);
  white-space: nowrap; letter-spacing: -0.01em;
  position: relative; overflow: hidden;
}
.btn::before { display: none; }
.btn:hover:not(:disabled) { border-color: var(--border2); transform: translateY(-1px); }
.btn:active:not(:disabled) { opacity: 0.9; transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, var(--gs-cyan) 0%, #5bf0ff 100%);
  color: #06060a; border-color: transparent;
  box-shadow: 0 2px 12px rgba(38,230,255,0.35);
  font-weight: 600;
}
.btn-primary:hover:not(:disabled) { background: linear-gradient(135deg, #5bf0ff 0%, #8af5ff 100%) !important; border-color: transparent !important; box-shadow: 0 4px 20px rgba(38,230,255,0.5) !important; }
.btn-ghost { background: rgba(255,255,255,0.03); color: var(--ink2); border-color: var(--border2); }
.btn-ghost:hover:not(:disabled) { color: var(--ink); border-color: var(--border2); background: rgba(255,255,255,0.07); }
.btn-sm  { padding: 5px 10px; font-size: 12px; border-radius: var(--radius-sm); }
.btn-lg  { padding: 11px 22px; font-size: 14px; border-radius: var(--radius); }
.btn:disabled { opacity: 0.35; cursor: not-allowed; }
.spin { animation: spin 0.7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-paypal {
  background: linear-gradient(135deg, var(--gs-cyan) 0%, #5bf0ff 100%);
  color: #06060a; border-color: transparent;
  justify-content: center; width: 100%; padding: 10px; font-size: 13px; border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(38,230,255,0.3);
}
.btn-paypal:hover { background: linear-gradient(135deg, #5bf0ff 0%, #8af5ff 100%) !important; border-color: transparent !important; box-shadow: 0 4px 16px rgba(38,230,255,0.45) !important; }

/* ── Auto-refresh countdown ──────────── */
.auto-countdown {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  color: var(--green); padding: 2px 8px;
  border: 1px solid rgba(62,207,142,0.25); border-radius: var(--radius-sm);
  background: rgba(62,207,142,0.04);
}

/* ── Settings popover ────────────────── */
.settings-popover {
  position: absolute; z-index: 500;
  background: var(--bg2); border: 1px solid var(--border2);
  width: 268px; box-shadow: var(--shadow-lg);
  display: none; flex-direction: column; overflow: hidden;
  border-radius: var(--radius-lg);
}
.settings-popover.open { display: flex; animation: pop-in 0.15s ease; }
@keyframes pop-in {
  from { opacity:0; transform: translateY(-6px) scale(0.98); }
  to   { opacity:1; transform: translateY(0) scale(1); }
}
.settings-header { padding: 10px 14px 8px; border-bottom: 1px solid var(--border); background: var(--surface2); }
.settings-title  { font-size: 14px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.settings-section {
  padding: 12px 14px; display: flex; flex-direction: column; gap: 8px;
  border-bottom: 1px solid var(--border);
}
.settings-section:last-of-type { border-bottom: none; }
.settings-label {
  font-size: 10px; font-weight: 700; color: var(--ink3);
  text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--mono);
}
.settings-options { display: flex; gap: 5px; flex-wrap: wrap; }
.settings-opt {
  padding: 5px 10px; font-size: 12px; font-weight: 500;
  border: 1px solid var(--border2); background: var(--surface); color: var(--ink2);
  cursor: pointer; border-radius: var(--radius-sm);
  transition: border-color var(--ease), color var(--ease);
  min-height: 30px;
}
.settings-opt:hover { border-color: #3a3a3a; color: var(--ink); }
.settings-opt--danger { color: var(--red); border-color: rgba(229,72,77,0.3); }
.settings-opt--danger:hover { border-color: var(--red); background: rgba(229,72,77,0.06); }
.settings-opt.active { border-color: var(--accent); color: var(--accent); background: rgba(38,230,255,0.06); }
.settings-footer { padding: 8px 14px; background: var(--surface2); border-top: 1px solid var(--border); }
.settings-note { font-family: var(--mono); font-size: 10px; color: var(--ink3); }

/* ── Clear-cache confirmation ─────────── */
.cache-confirm-overlay {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(0,0,0,0.72); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  animation: fade-in 0.15s ease;
}
@keyframes fade-in { from { opacity:0; } to { opacity:1; } }
.cache-confirm-dialog {
  background: var(--bg2); border: 1px solid var(--border2);
  box-shadow: var(--shadow-lg); border-radius: var(--radius-lg);
  padding: 28px; max-width: 340px; width: 90%;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center; animation: pop-in 0.15s ease;
}
.cache-confirm-icon {
  color: var(--red); background: rgba(229,72,77,0.08); border-radius: 50%;
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
}
.cache-confirm-title { font-size: 17px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.cache-confirm-desc  { font-size: 13px; color: var(--ink3); line-height: 1.6; }
.cache-confirm-note  { font-family: var(--mono); font-size: 11px; color: var(--red); opacity: 0.8; }
.cache-confirm-actions { display: flex; gap: 10px; margin-top: 4px; width: 100%; justify-content: center; }
.cache-confirm-delete {
  background: rgba(229,72,77,0.08); border: 1px solid rgba(229,72,77,0.4);
  color: var(--red); font-weight: 600; padding: 7px 16px; border-radius: var(--radius-sm);
  cursor: pointer; font-size: 12px; font-family: var(--font);
  display: flex; align-items: center; transition: background var(--ease);
}
.cache-confirm-delete:hover { background: rgba(229,72,77,0.16); }

/* ── PayPal QR Modal ─────────────────── */
.pp-modal-backdrop {
  display: none; position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,0.85); align-items: center; justify-content: center;
  backdrop-filter: blur(6px);
}
.pp-modal-backdrop.open { display: flex; }
.pp-modal {
  background: var(--bg2); border: 1px solid var(--border2);
  box-shadow: var(--shadow-lg); padding: 32px 28px; width: 300px; max-width: 92vw;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  position: relative; animation: modal-in 0.2s ease; border-radius: var(--radius-lg);
}
@keyframes modal-in {
  from { opacity:0; transform:scale(0.92) translateY(16px); }
  to   { opacity:1; transform:scale(1) translateY(0); }
}
.pp-close {
  position: absolute; top: 10px; right: 10px; width: 28px; height: 28px;
  background: var(--surface2); border: 1px solid var(--border2); color: var(--ink2);
  font-size: 12px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; border-radius: var(--radius-sm); transition: color var(--ease), border-color var(--ease);
}
.pp-close:hover { color: var(--ink); border-color: #3a3a3a; }
.pp-icon  { font-size: 24px; color: var(--accent); font-family: var(--mono); }
.pp-title { font-size: 20px; font-weight: 700; color: var(--ink); text-align: center; letter-spacing: -0.02em; }
.pp-desc  { font-size: 13px; color: var(--ink2); text-align: center; line-height: 1.6; }
.pp-qr-wrap {
  background: #fff; border: 1px solid var(--border2); padding: 8px; margin: 8px 0;
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
}
.pp-qr     { display: block; }
.pp-link   { font-family: var(--mono); font-size: 12px; color: var(--accent); text-decoration: underline; }
.pp-thanks { font-family: var(--mono); font-size: 10px; color: var(--ink3); text-align: center; }

/* ── HERO ────────────────────────────── */
.hero {
  padding: 72px 0 64px;
  display: block;
  border-bottom: 1px solid var(--border);
  position: relative;
  background-image:
    radial-gradient(ellipse 100% 80% at 50% -10%, rgba(38,230,255,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 55% 50% at 90% 30%,  rgba(124,92,255,0.08) 0%, transparent 50%),
    repeating-linear-gradient(0deg,  transparent, transparent 40px, rgba(255,255,255,0.012) 40px, rgba(255,255,255,0.012) 41px),
    repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(255,255,255,0.012) 40px, rgba(255,255,255,0.012) 41px);
}
@media(max-width:860px){ .hero { padding: 48px 0 44px; } }
.hero-right-col { display: none !important; }
.hero-terminal  { display: none !important; }
.hero-content { display: flex; flex-direction: column; gap: 20px; max-width: 660px; position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600; color: var(--ink3);
  letter-spacing: 0.08em; text-transform: uppercase; width: fit-content;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  padding: 5px 10px; border-radius: 99px;
}
.pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gs-cyan); flex-shrink: 0;
  animation: pulse-dot 2.5s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(38,230,255,0.6);
}
@keyframes pulse-dot { 0%,100% { opacity:1; } 50% { opacity:0.3; } }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 3.75rem);
  font-weight: 800; letter-spacing: -0.04em; line-height: 1.08; color: var(--ink);
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--gs-cyan) 0%, #8af5ff 40%, var(--gs-violet) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 16px; color: var(--ink2); line-height: 1.75; max-width: 540px;
}
.hero-tagline { display: none !important; }
.hero-trust   { display: none !important; }

.hero-ctas { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 4px; }
.hero-stats {
  display: flex; gap: 32px; flex-wrap: wrap;
  padding-top: 28px; border-top: 1px solid var(--border);
}
.hero-stat {
  display: flex; flex-direction: column; gap: 3px;
  background: none; border: none; padding: 0; min-width: unset;
  position: relative; overflow: visible;
  transition: none;
}
.hero-stat::before, .hero-stat::after { display: none !important; }
.hero-stat:hover { border-color: transparent; box-shadow: none; }
.hero-stat .val {
  font-size: 24px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); line-height: 1;
}
.hero-stat .lbl {
  font-size: 11px; color: var(--ink3); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500; margin-top: 2px;
}

/* ── Section heading ─────────────────── */
.section-heading {
  font-size: 14px; font-weight: 700; color: var(--ink2);
  padding-bottom: 12px; border-bottom: 1px solid var(--border);
  margin-bottom: 4px; letter-spacing: 0.04em; text-transform: uppercase;
}


/* ── APP LAYOUT ──────────────────────── */
.app-layout {
  display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding: 36px 0 80px;
}
@media(max-width:960px){ .app-layout { grid-template-columns: 190px 1fr; gap: 20px; } }
@media(max-width:860px){ .app-layout { grid-template-columns: 1fr; gap: 0; } .sidebar { display: none; } .mobile-filters { display: flex !important; } }

/* ── SIDEBAR ─────────────────────────── */
.sidebar { position: static; align-self: start; display: flex; flex-direction: column; gap: 24px; }
@media(max-width:860px){ .sidebar { display: none !important; } }
.sidebar-section { display: flex; flex-direction: column; gap: 6px; }
.sidebar-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink3); padding: 0 0 8px;
  border-bottom: 1px solid var(--border); margin-bottom: 2px;
  font-family: var(--mono);
}
.filter-nav { display: flex; flex-direction: column; gap: 1px; }
.filter-item {
  display: flex; align-items: center; gap: 9px; padding: 8px 10px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500; color: var(--ink3);
  transition: color var(--ease), background var(--ease), border-color var(--ease);
  cursor: pointer; user-select: none; background: transparent; min-height: 36px;
}
.filter-item:hover { color: var(--ink); background: rgba(255,255,255,0.04); }
.filter-item.active { color: var(--ink); background: rgba(38,230,255,0.08); border-color: rgba(38,230,255,0.25); }
.fi-icon  { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 14px; }
.fi-label { flex: 1; font-size: 13px; font-weight: 500; }
.fi-count {
  font-family: var(--mono); font-size: 10px; padding: 1px 5px; font-weight: 600;
  background: var(--surface2); color: var(--ink3); border: 1px solid var(--border); border-radius: 4px;
}
.filter-item.active .fi-count { color: var(--accent); border-color: rgba(38,230,255,0.3); background: rgba(38,230,255,0.08); }
.sidebar-card {
  background: var(--surface); border: 1px solid var(--border);
  padding: 16px; display: flex; flex-direction: column; gap: 10px; border-radius: var(--radius-lg);
}
.sidebar-card-title { font-size: 14px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.sidebar-card p    { font-size: 12px; color: var(--ink2); line-height: 1.65; }
.sidebar-quote {
  font-family: var(--mono); font-size: 11px; color: var(--ink3); line-height: 1.85;
  padding: 12px 14px; border-left: 2px solid var(--accent);
  background: rgba(38,230,255,0.04); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.q-mark { color: var(--ink2); }

/* ── MOBILE FILTERS ──────────────────── */
.mobile-filters {
  display: none; gap: 6px; padding: 16px 0 8px;
  overflow-x: auto; overflow-y: hidden;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; flex-wrap: nowrap; max-width: 100%;
}
.mobile-filters::-webkit-scrollbar { display: none; }
.chip {
  padding: 6px 14px; font-size: 12px; font-weight: 500;
  border: 1px solid var(--border); background: rgba(255,255,255,0.03); color: var(--ink3);
  transition: border-color var(--ease), color var(--ease), background var(--ease);
  cursor: pointer; user-select: none; white-space: nowrap; flex-shrink: 0;
  border-radius: 99px; min-height: 32px; font-family: var(--font);
}
.chip:hover { border-color: var(--border2); color: var(--ink2); background: rgba(255,255,255,0.06); }
.chip.active { border-color: rgba(38,230,255,0.5); color: var(--accent); background: rgba(38,230,255,0.1); box-shadow: 0 0 0 1px rgba(38,230,255,0.15); }

/* ── CONTENT ─────────────────────────── */
.content { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.toolbar-left { display: flex; align-items: center; gap: 10px; }
.toolbar-status {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; color: var(--ink3); font-family: var(--font);
}
.status-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.status-dot.live    { background: var(--green); animation: pulse-dot 2.5s ease-in-out infinite; }
.status-dot.loading { background: var(--yellow); animation: pulse-dot 0.8s ease-in-out infinite; }
.status-dot.err     { background: var(--red); }
.article-count {
  font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--green);
  padding: 2px 7px; background: rgba(62,207,142,0.05); border: 1px solid rgba(62,207,142,0.2); border-radius: 3px;
}
.article-count strong { color: var(--green); }
.view-toggle { display: flex; gap: 3px; }
.view-btn {
  padding: 5px 9px; border: 1px solid var(--border);
  background: transparent; color: var(--ink3);
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color var(--ease), color var(--ease), background var(--ease);
  border-radius: var(--radius-sm); min-width: 32px; min-height: 32px;
}
.view-btn:hover { border-color: var(--border2); color: var(--ink2); background: rgba(255,255,255,0.04); }
.view-btn.active { border-color: var(--border2); color: var(--ink); background: var(--surface2); }
.error-banner {
  display: none; align-items: flex-start; gap: 8px; padding: 10px 14px;
  background: rgba(229,72,77,0.06); border: 1px solid rgba(229,72,77,0.3);
  color: var(--red); font-size: 13px; font-weight: 500; border-radius: var(--radius-sm);
}
.error-banner.visible { display: flex; }
.e-icon { flex-shrink: 0; }

/* ── FEED GRID ───────────────────────── */
.feed-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.feed-grid .card-featured { grid-column: 1 / -1; }
@media(min-width:1060px) { .feed-grid { grid-template-columns: repeat(3,1fr); } }
@media(max-width:640px)  { .feed-grid { grid-template-columns: 1fr; gap: 12px; } }
.feed-grid.list-view { grid-template-columns: 1fr; }

/* ── CARD ────────────────────────────── */
@keyframes card-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.card {
  background: var(--surface); border: 1px solid var(--border);
  padding: 16px; display: flex; flex-direction: column; gap: 10px;
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  will-change: transform;
  animation: card-in 180ms ease both;
  animation-delay: calc(var(--i, 0) * 15ms);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--card-accent, var(--border)); border-radius: var(--radius-lg) var(--radius-lg) 0 0; z-index: 2;
  transition: opacity 0.2s ease;
}
.card::after { display: none; }
.card:hover { border-color: var(--border2); background: var(--surface2); transform: translateY(-2px); box-shadow: var(--shadow); z-index: auto; }
.card:hover::before { opacity: 1; }
.card-featured { padding: 24px 26px; }
.card-featured .card-title { font-size: 17px; line-height: 1.35; }
.card-row { flex-direction: row; align-items: flex-start; gap: 14px; }
.card-row .card-num  { padding-top: 2px; flex-shrink: 0; }
.card-row .card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.card-row .card-link { flex-shrink: 0; align-self: center; }
.card-row .card-footer { display: none; }

/* Card image */
.card-img-wrap {
  display: block; overflow: hidden; border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  margin: -14px -14px 10px -14px; aspect-ratio: 16 / 9; background: var(--surface2); flex-shrink: 0;
}
.card-img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  transition: transform 0.3s ease;
}
.card:hover .card-img { transform: scale(1.02); }
.card-img-wrap--list {
  margin: 0; border-radius: var(--radius-sm);
  width: 80px; min-width: 80px; aspect-ratio: 4 / 3; align-self: flex-start; flex-shrink: 0;
}
.card-img--list { border-radius: var(--radius-sm); }
.card-row { display: flex; align-items: flex-start; gap: 12px; }

.card-num { font-family: var(--mono); font-size: 16px; color: var(--border2); flex-shrink: 0; line-height: 1; font-weight: 700; }
.card-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; overflow: hidden; }
.card-cat {
  display: inline-flex; align-items: center; padding: 2px 7px;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.4px;
  text-transform: uppercase; border: 1px solid; flex-shrink: 0; line-height: 1.6;
  font-weight: 700; max-width: 110px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; border-radius: 3px;
}
.card-cat-icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; opacity: 0.85; }
.card-date { font-family: var(--mono); font-size: 10px; color: var(--ink3); white-space: nowrap; margin-left: auto; flex-shrink: 0; }
.card-title { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.5; margin: 0; letter-spacing: -0.015em; font-family: var(--font); }
.card-title a { color: inherit; transition: color var(--ease); }
.card-title a:hover { color: var(--accent); }
.card-snippet {
  font-size: 13px; color: var(--ink3); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-family: var(--font);
}
.card-featured .card-snippet { -webkit-line-clamp: 3; }
.card-snippet--sm { -webkit-line-clamp: 1; font-size: 12px; }
.card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 10px; border-top: 1px solid var(--border); gap: 8px; margin-top: auto;
}
.card-source {
  display: flex; align-items: center; gap: 5px;
  font-family: var(--mono); font-size: 10px; color: var(--ink3); min-width: 0; font-weight: 600;
}
.card-source span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.src-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.card-link {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px;
  font-size: 11px; font-weight: 500; color: var(--ink3); font-family: var(--font);
  border: 1px solid var(--border); background: transparent;
  transition: border-color var(--ease), color var(--ease), background var(--ease);
  white-space: nowrap; flex-shrink: 0; border-radius: var(--radius-sm);
}
.card-link:hover { border-color: var(--border2); color: var(--ink2); background: rgba(255,255,255,0.04); box-shadow: none; }

/* ── Category accents ────────────────── */
.card.cat-latest      { --card-accent: #26e6ff; }
.card.cat-playstation { --card-accent: #2979FF; }
.card.cat-xbox        { --card-accent: #52C234; }
.card.cat-nintendo    { --card-accent: #F53B1E; }
.card.cat-pc          { --card-accent: #7c5cff; }
.card.cat-indie       { --card-accent: #FF8C26; }
.card.cat-reviews     { --card-accent: #FFD040; }
.card.cat-trailers    { --card-accent: #FF3ABF; }
.card.cat-esports     { --card-accent: #B7FF39; }
.card.cat-industry    { --card-accent: #5B8FD6; }
.card.cat-hardware    { --card-accent: #2DD4BF; }
/* keep general as a safe fallback */
.card.cat-general     { --card-accent: rgba(100,100,100,0.6); }

.cat-latest      { color:#26e6ff; border-color:rgba(38,230,255,0.4);  background:rgba(38,230,255,0.08); }
.cat-playstation { color:#2979FF; border-color:rgba(41,121,255,0.4);  background:rgba(41,121,255,0.08); }
.cat-xbox        { color:#52C234; border-color:rgba(82,194,52,0.4);   background:rgba(82,194,52,0.08);  }
.cat-nintendo    { color:#F53B1E; border-color:rgba(245,59,30,0.4);   background:rgba(245,59,30,0.08);  }
.cat-pc          { color:#7c5cff; border-color:rgba(124,92,255,0.4);  background:rgba(124,92,255,0.08); }
.cat-indie       { color:#FF8C26; border-color:rgba(255,140,38,0.4);  background:rgba(255,140,38,0.08); }
.cat-reviews     { color:#FFD040; border-color:rgba(255,208,64,0.4);  background:rgba(255,208,64,0.08); }
.cat-trailers    { color:#FF3ABF; border-color:rgba(255,58,191,0.4);  background:rgba(255,58,191,0.08); }
.cat-esports     { color:#B7FF39; border-color:rgba(183,255,57,0.4);  background:rgba(183,255,57,0.08); }
.cat-industry    { color:#5B8FD6; border-color:rgba(91,143,214,0.4);  background:rgba(91,143,214,0.08); }
.cat-hardware    { color:#2DD4BF; border-color:rgba(45,212,191,0.4);  background:rgba(45,212,191,0.08); }
.cat-general     { color:#8B949E; border-color:rgba(100,100,100,0.4); background:rgba(100,100,100,0.07); }

.src-dot.cat-latest      { background:#26e6ff; }
.src-dot.cat-playstation { background:#2979FF; }
.src-dot.cat-xbox        { background:#52C234; }
.src-dot.cat-nintendo    { background:#F53B1E; }
.src-dot.cat-pc          { background:#7c5cff; }
.src-dot.cat-indie       { background:#FF8C26; }
.src-dot.cat-reviews     { background:#FFD040; }
.src-dot.cat-trailers    { background:#FF3ABF; }
.src-dot.cat-esports     { background:#B7FF39; }
.src-dot.cat-industry    { background:#5B8FD6; }
.src-dot.cat-hardware    { background:#2DD4BF; }
.src-dot.cat-general     { background:#555; }

.feed-filtered .card.cat-latest      .card-link { border-color:#26e6ff; color:#26e6ff; }
.feed-filtered .card.cat-playstation .card-link { border-color:#2979FF; color:#2979FF; }
.feed-filtered .card.cat-xbox        .card-link { border-color:#52C234; color:#52C234; }
.feed-filtered .card.cat-nintendo    .card-link { border-color:#F53B1E; color:#F53B1E; }
.feed-filtered .card.cat-pc          .card-link { border-color:#7c5cff; color:#7c5cff; }
.feed-filtered .card.cat-indie       .card-link { border-color:#FF8C26; color:#FF8C26; }
.feed-filtered .card.cat-reviews     .card-link { border-color:#FFD040; color:#FFD040; }
.feed-filtered .card.cat-trailers    .card-link { border-color:#FF3ABF; color:#FF3ABF; }
.feed-filtered .card.cat-esports     .card-link { border-color:#B7FF39; color:#B7FF39; }
.feed-filtered .card.cat-industry    .card-link { border-color:#5B8FD6; color:#5B8FD6; }
.feed-filtered .card.cat-hardware    .card-link { border-color:#2DD4BF; color:#2DD4BF; }

/* ── Placeholder images ──────────────── */
@keyframes ph-grid-drift    { 0% { background-position: 0 0; } 100% { background-position: 18px 18px; } }
@keyframes ph-scan          { 0% { top:-20%; opacity:0; } 10% { opacity:.4; } 90% { opacity:.2; } 100% { top:110%; opacity:0; } }
@keyframes ph-tag-blink     { 0%,90%,100% { opacity:.5; } 95% { opacity:.1; } }
@keyframes ph-glow-soft     { 0%,100% { opacity:0.4; } 50% { opacity:0.65; } }
@keyframes ph-general-type  { 0%,100% { transform:translate(-50%,-50%); } 10% { transform:translate(calc(-50% + 2px),-50%); } 30% { transform:translate(calc(-50% - 2px),-50%); } }
@keyframes ph-security-ring { 0% { transform:translate(-50%,-50%) scale(.8); opacity:.6; } 100% { transform:translate(-50%,-50%) scale(2.2); opacity:0; } }
@keyframes ph-security-icon { 0%,100% { transform:translate(-50%,-50%) scale(1); } 50% { transform:translate(-50%,-50%) scale(1.06); } }
@keyframes ph-ai-orbit      { 0% { transform:translate(-50%,-50%) rotate(0deg); } 100% { transform:translate(-50%,-50%) rotate(360deg); } }
@keyframes ph-ai-icon       { 0%,100% { transform:translate(-50%,-50%) scale(1); } 50% { transform:translate(-50%,-50%) scale(1.08); } }
@keyframes ph-python-slither{ 0%,100% { transform:translate(-50%,-50%) rotate(-4deg); } 50% { transform:translate(-50%,-50%) rotate(4deg); } }
@keyframes ph-js-zap        { 0%,100% { transform:translate(-50%,-50%); } 15% { transform:translate(-50%,calc(-50% - 6px)) scale(1.1); } 30% { transform:translate(-50%,-50%) scale(.97); } }
@keyframes ph-devops-spin   { 0% { transform:translate(-50%,-50%) rotate(0deg); } 100% { transform:translate(-50%,-50%) rotate(360deg); } }
@keyframes ph-os-float      { 0%,100% { transform:translate(-50%,-50%) rotate(-3deg); } 50% { transform:translate(-50%,-50%) rotate(3deg) translateY(-2px); } }
@keyframes ph-java-steam    { 0%,100% { transform:translate(-50%,-50%); } 50% { transform:translate(-50%,calc(-50% - 6px)); } }
@keyframes ph-rust-ratchet  { 0% { transform:translate(-50%,-50%) rotate(0deg); } 20% { transform:translate(-50%,-50%) rotate(25deg); } 40% { transform:translate(-50%,-50%) rotate(22deg); } 60% { transform:translate(-50%,-50%) rotate(50deg); } 80% { transform:translate(-50%,-50%) rotate(47deg); } 100% { transform:translate(-50%,-50%) rotate(72deg); } }
@keyframes ph-go-run        { 0%,100% { transform:translate(-50%,-50%); } 20% { transform:translate(calc(-50% + 5px),calc(-50% - 4px)); } 40% { transform:translate(calc(-50% + 8px),-50%); } 60% { transform:translate(calc(-50% + 5px),calc(-50% - 4px)); } 80% { transform:translate(-50%,-50%); } }

.card-placeholder {
  position: relative; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  overflow: hidden; cursor: pointer; text-decoration: none;
  background: var(--surface2); border-bottom: 1px solid var(--border);
}
.card-placeholder::after {
  content: ''; position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--ph-color), transparent);
  animation: ph-scan 4s ease-in-out infinite; pointer-events: none; z-index: 2; opacity: 0.25;
}
.card-placeholder__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, var(--ph-color) 1px, transparent 1px);
  background-size: 18px 18px; opacity: 0.07; animation: ph-grid-drift 6s linear infinite;
}
.card-placeholder__icon {
  position: absolute; z-index: 1; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
  color: var(--ph-color); animation: ph-glow-soft 3s ease-in-out infinite;
}
.card-placeholder__tag {
  position: absolute; z-index: 1; bottom: 8px; left: 0; right: 0; text-align: center;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.4px;
  color: var(--ph-color); opacity: 0.4; animation: ph-tag-blink 4s step-end infinite;
}
.card-placeholder[data-ph-cat="Latest"]      .card-placeholder__icon { animation: ph-glow-soft      3s ease-in-out infinite; }
.card-placeholder[data-ph-cat="PlayStation"] .card-placeholder__icon { animation: ph-security-icon  2s ease-in-out infinite; }
.card-placeholder[data-ph-cat="Xbox"]        .card-placeholder__icon { animation: ph-general-type   1.4s steps(1) infinite; }
.card-placeholder[data-ph-cat="Nintendo"]    .card-placeholder__icon { animation: ph-os-float       3s ease-in-out infinite; }
.card-placeholder[data-ph-cat="PC"]          .card-placeholder__icon { animation: ph-devops-spin    6s linear infinite; }
.card-placeholder[data-ph-cat="Indie"]       .card-placeholder__icon { animation: ph-js-zap         1.8s ease-in-out infinite; }
.card-placeholder[data-ph-cat="Reviews"]     .card-placeholder__icon { animation: ph-java-steam     2s ease-in-out infinite; }
.card-placeholder[data-ph-cat="Trailers"]    .card-placeholder__icon { animation: ph-ai-icon        2.5s ease-in-out infinite; }
.card-placeholder[data-ph-cat="Esports"]     .card-placeholder__icon { animation: ph-rust-ratchet   2s steps(5,end) infinite; }
.card-placeholder[data-ph-cat="Industry"]    .card-placeholder__icon { animation: ph-python-slither 2.4s ease-in-out infinite; }
.card-placeholder[data-ph-cat="Hardware"]    .card-placeholder__icon { animation: ph-go-run         2s ease-in-out infinite; }
.card-placeholder[data-ph-cat="PlayStation"]::before {
  content: ''; position: absolute; z-index: 0;
  top: 50%; left: 50%; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--ph-color); opacity: 0; animation: ph-security-ring 2.5s ease-out infinite;
}
.card-placeholder[data-ph-cat="Trailers"]::before {
  content: ''; position: absolute; z-index: 0;
  top: 50%; left: 50%; width: 68px; height: 68px; border-radius: 50%;
  border: 1px dashed var(--ph-color); opacity: 0.18; animation: ph-ai-orbit 5s linear infinite;
}
.card-placeholder--list {
  display: inline-flex; flex-direction: column;
  border-bottom: none; border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.card-placeholder--list::after  { display: none; }
.card-placeholder--list::before { display: none; }
.card-placeholder--list .card-placeholder__tag { display: none; }

/* ── Skeleton ────────────────────────── */
.skeleton-card {
  background: var(--surface); border: 1px solid var(--border);
  padding: 16px; display: flex; flex-direction: column; gap: 10px; border-radius: var(--radius-lg);
}
.sk {
  background: linear-gradient(90deg, var(--surface2) 25%, rgba(255,255,255,0.04) 50%, var(--surface2) 75%);
  background-size: 200% 100%; animation: shimmer 1.8s ease-in-out infinite; border-radius: 4px;
}
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
.sk-chip { height:14px; width:56px; }
.sk-h1   { height:12px; width:100%; }
.sk-h2   { height:12px; width:70%; }
.sk-t1   { height:10px; width:100%; }
.sk-t2   { height:10px; width:80%; }
.sk-t3   { height:10px; width:55%; }
.sk-foot { height:22px; width:100%; }

/* ── Empty state ─────────────────────── */
.empty-state { display:none; flex-direction:column; align-items:center; text-align:center; padding:64px 24px; grid-column:1/-1; }
.empty-state.visible { display:flex; }
.empty-art {
  font-family:var(--mono); font-size:12px; color:var(--ink3); margin-bottom:16px;
  white-space:pre; border:1px solid var(--border); padding:14px 20px;
  background: var(--surface); border-radius: var(--radius);
}
.empty-title { font-size:18px; font-weight:700; color:var(--ink); margin-bottom:6px; letter-spacing:-0.01em; }
.empty-sub   { font-family:var(--mono); font-size:11px; color:var(--ink3); }

/* ── Support strip ───────────────────── */
.support-strip {
  background: linear-gradient(135deg, var(--surface) 0%, rgba(38,230,255,0.05) 100%);
  border: 1px solid var(--border);
  padding: 28px 32px; display: flex; align-items: center;
  justify-content: space-between; gap: 24px; margin-bottom: 48px;
  border-radius: var(--radius-lg); position: relative; overflow: hidden;
}
.support-strip::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(38,230,255,0.5), transparent);
}
@media(max-width:600px){
  .support-strip { flex-direction:column; text-align:center; padding:20px; }
  .support-strip .btn { display:flex; width:100%; justify-content:center; white-space:normal; box-sizing:border-box; }
}
.support-text { display:flex; flex-direction:column; gap:4px; }
.support-title { font-size:16px; font-weight:700; color:var(--ink); letter-spacing:-0.02em; }
.support-desc  { font-size:13px; color:var(--ink2); line-height:1.6; max-width:460px; }

/* ── Footer ──────────────────────────── */
.site-footer { border-top: 1px solid var(--border); padding: 36px 0; background: var(--bg2); }
.footer-inner { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.footer-left  { display:flex; flex-direction:column; gap:4px; }
.footer-tagline { font-size:12px; color:var(--ink3); font-weight:500; }
.footer-copy    { font-size:11px; color:var(--ink3); font-family:var(--mono); }
.site-version-badge {
  color: var(--ink3); text-decoration: none; border: 1px solid var(--border);
  border-radius: 3px; padding: 1px 6px; font-size: 0.7rem; font-family: var(--mono);
  transition: color .15s, border-color .15s;
}
.site-version-badge:hover { color: var(--ink2); border-color: var(--border2); }

.footer-sources { border-bottom: 1px solid var(--border); padding-bottom: 20px; margin-bottom: 20px; }
.footer-sources-title { font-family: var(--mono); font-size: 10px; color: var(--ink3); font-weight: 600; margin-bottom: 10px; text-transform: uppercase; letter-spacing: .06em; }
.footer-sources-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.footer-sources-list li { font-family: var(--mono); font-size: 11px; color: var(--ink3); line-height: 1.6; word-break: break-word; overflow-wrap: break-word; }
.footer-sources-list a { color: var(--ink3); text-decoration: none; }
.footer-sources-list a:hover { color: var(--ink2); text-decoration: underline; }

/* ── Feedback section ────────────────── */
.feedback-section {
  background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 72px 0 80px; position: relative; overflow: hidden;
}
.feedback-section::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(38,230,255,0.4), transparent);
}
.feedback-header {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 14px; margin-bottom: 36px;
}
.feedback-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 600; color: var(--ink3);
  letter-spacing: 0.06em; text-transform: uppercase;
  background: none; border: none; padding: 0;
}
.feedback-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; color: var(--ink);
}
.feedback-title em { font-style: normal; background: linear-gradient(135deg, var(--accent) 0%, var(--gs-violet) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.feedback-desc {
  font-size: 14px; color: var(--ink2); line-height: 1.75; max-width: 520px;
  border-left: 2px solid var(--border2); padding-left: 16px; text-align: left;
  background: none; border-radius: 0;
}
.feedback-desc .comment { color: var(--ink3); font-style: italic; font-family: var(--mono); font-size: 12px; }
.feedback-desc .keyword { color: var(--accent); font-family: var(--mono); }
.feedback-desc .fn      { color: var(--ink2); font-family: var(--mono); }
.feedback-desc .string  { color: var(--green); font-family: var(--mono); }
.feedback-terminal  { display: none !important; }
.feedback-term-body { display: none !important; }
.feedback-git-log   { display: none !important; }
.git-line           { display: none !important; }
.feedback-divider   { display: none; }
.giscus-wrap iframe { border-radius: 0 !important; }
@media(max-width:600px){ .feedback-section { padding: 40px 0 48px; } }

/* ── Section art SVG typography ─────── */
.contribute-art-svg text,
.feedback-art-svg text,
.about-network-svg text {
  font-family: 'JetBrains Mono', 'Fira Code', ui-monospace, 'Cascadia Code', monospace !important;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}


/* Boost very dim secondary labels to a readable contrast */
.contribute-art-svg text[fill="rgba(255,255,255,0.28)"],
.feedback-art-svg  text[fill="rgba(255,255,255,0.28)"],
.about-network-svg text[fill="rgba(255,255,255,0.28)"] { fill: rgba(255,255,255,0.52); }

.contribute-art-svg text[fill="rgba(255,255,255,0.25)"],
.feedback-art-svg  text[fill="rgba(255,255,255,0.25)"],
.about-network-svg text[fill="rgba(255,255,255,0.25)"] { fill: rgba(255,255,255,0.48); }

.contribute-art-svg text[fill="rgba(255,255,255,0.22)"],
.feedback-art-svg  text[fill="rgba(255,255,255,0.22)"],
.about-network-svg text[fill="rgba(255,255,255,0.22)"] { fill: rgba(255,255,255,0.45); }

.contribute-art-svg text[fill="rgba(255,255,255,0.35)"],
.feedback-art-svg  text[fill="rgba(255,255,255,0.35)"],
.about-network-svg text[fill="rgba(255,255,255,0.35)"] { fill: rgba(255,255,255,0.58); }

.contribute-art-svg text[fill="rgba(255,255,255,0.3)"],
.feedback-art-svg  text[fill="rgba(255,255,255,0.3)"],
.about-network-svg text[fill="rgba(255,255,255,0.3)"]  { fill: rgba(255,255,255,0.52); }

/* ── About network art ───────────────── */
.about-art {
  display: flex; align-items: center; justify-content: center;
  position: relative; min-height: 300px;
}
.about-network-svg {
  width: 100%; max-width: 440px; height: auto;
  filter: drop-shadow(0 0 32px rgba(129,140,248,0.22)) drop-shadow(0 0 12px rgba(6,182,212,0.1));
}
@media(max-width:860px) { .about-art { display: none; } }

/* ── Contribute art ──────────────────── */
.contribute-art-wrap {
  display: flex; align-items: center; justify-content: center;
  height: 100%; min-height: 340px;
}
.contribute-art-svg {
  width: 100%; max-width: 400px; height: auto;
  filter: drop-shadow(0 0 28px rgba(6,182,212,0.18)) drop-shadow(0 0 8px rgba(129,140,248,0.12));
}

/* ── Feedback art col ────────────────── */
.feedback-art-col {
  display: flex; align-items: center; justify-content: center; min-width: 0;
}
.feedback-art-svg {
  width: 100%; max-width: 400px; height: auto;
  filter: drop-shadow(0 0 28px rgba(129,140,248,0.2)) drop-shadow(0 0 8px rgba(6,182,212,0.08));
}
@media(max-width:860px) { .feedback-art-col { display: none !important; } }

/* feedback title gradient matches contribute style */
.feedback-section .contribute-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent) 0%, var(--gs-violet) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ── Contribute section ──────────────── */
.contribute-section {
  background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 72px 0 80px; position: relative; overflow: hidden;
}
.contribute-section::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(38,230,255,0.4), transparent);
}
.contribute-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; position: relative; z-index: 1;
}
@media(max-width:860px){ .contribute-inner { grid-template-columns: 1fr; gap: 28px; } .contribute-terminal-wrap { display: none !important; } }
.contribute-copy { display: flex; flex-direction: column; gap: 18px; }
.contribute-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 600; color: var(--ink3);
  letter-spacing: 0.06em; text-transform: uppercase; width: fit-content;
  background: none; border: none; padding: 0;
}
.contribute-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; color: var(--ink);
}
.contribute-title em { font-style: normal; background: linear-gradient(135deg, var(--accent) 0%, var(--gs-violet) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.contribute-desc { font-size: 14px; color: var(--ink2); line-height: 1.7; max-width: 460px; }
.contribute-ways { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.contribute-ways li {
  display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink2);
  padding: 9px 14px; border: 1px solid var(--border); background: rgba(255,255,255,0.02);
  border-radius: var(--radius-sm); transition: border-color var(--ease), color var(--ease), background var(--ease), transform var(--ease);
}
.contribute-ways li svg { color: var(--ink3); flex-shrink: 0; }
.contribute-ways li:hover { border-color: var(--border2); color: var(--ink); background: rgba(255,255,255,0.05); transform: translateX(3px); box-shadow: none; }
.contribute-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.contribute-terminal-wrap { min-width: 0; }

/* ── Terminal (kept for JS compat, hidden by default) ─────── */
.hero-terminal, .feedback-terminal {
  background: var(--surface2); border: 1px solid var(--border);
  overflow: hidden; font-family: var(--mono); font-size: 12px;
  max-width: 100%; border-radius: var(--radius-lg);
  box-shadow: none;
}
.term-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px; background: var(--surface2);
  border-bottom: 1px solid var(--border); border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.term-dot { width: 10px; height: 10px; border-radius: 50%; }
.term-dot.red    { background: #3a3a3a; }
.term-dot.yellow { background: #3a3a3a; }
.term-dot.green  { background: #3a3a3a; }
.term-title { flex: 1; text-align: center; font-size: 11px; color: var(--ink3); font-weight: 600; }
.term-body { padding: 16px 18px; line-height: 2; min-height: 200px; }
.term-line { display: flex; gap: 8px; opacity: 0; animation: fadein 0.2s ease-out forwards; }
.term-line:nth-child(1) { animation-delay: 0.2s; }
.term-line:nth-child(2) { animation-delay: 0.4s; }
.term-line:nth-child(3) { animation-delay: 0.6s; }
.term-line:nth-child(4) { animation-delay: 0.76s; }
.term-line:nth-child(5) { animation-delay: 0.9s; }
.term-line:nth-child(6) { animation-delay: 1.04s; }
.term-line:nth-child(7) { animation-delay: 1.16s; }
.term-line:nth-child(8) { animation-delay: 1.28s; }
.term-line:nth-child(9) { animation-delay: 1.4s; }
@keyframes fadein { to { opacity: 1; } }
.term-line .prompt { color: var(--green); flex-shrink: 0; }
.term-line .cmd    { color: var(--ink); }
.term-line .arg    { color: var(--accent); }
.term-line .flag   { color: var(--ink2); }
.term-line .out    { color: var(--ink2); }
.term-line .ok     { color: var(--green); }
.term-line .warn   { color: var(--yellow); }
.term-line .cmt    { color: var(--ink3); font-style: italic; }
.term-cursor {
  display: inline-block; width: 7px; height: 13px;
  background: var(--green); vertical-align: middle;
  animation: blink 1s step-end infinite; margin-left: 3px; border-radius: 1px;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ── Back-to-top ─────────────────────── */
.back-to-top {
  position: fixed; bottom: calc(24px + var(--cookie-h, 0px)); right: 24px; z-index: 200;
  width: 40px; height: 40px;
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--ink2); display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { border-color: var(--border2); color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* ── Bookmark button ─────────────────── */
.bm-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; flex-shrink: 0;
  background: transparent; border: 1px solid var(--border);
  color: var(--ink3); cursor: pointer;
  transition: color var(--ease), border-color var(--ease);
  margin-left: auto; padding: 0; border-radius: var(--radius-sm);
}
.bm-btn:hover { color: var(--ink2); border-color: var(--border2); background: rgba(255,255,255,0.05); box-shadow: none; }
.bm-btn.bm-active { color: var(--accent); border-color: rgba(38,230,255,0.5); background: rgba(38,230,255,0.1); box-shadow: 0 0 0 1px rgba(38,230,255,0.15); }

/* ── Bookmark toast ──────────────────── */
.bm-toast {
  position: fixed; bottom: calc(24px + var(--cookie-h, 0px)); left: 50%; transform: translateX(-50%) translateY(10px);
  background: var(--surface2); border: 1px solid var(--border2);
  color: var(--ink2); font-family: var(--mono); font-size: 12px; font-weight: 600;
  padding: 8px 18px; z-index: 9999; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap; border-radius: var(--radius);
}
.bm-toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }

.card.cat-bookmarks     { --card-accent: #E879F9; }
.cat-bookmarks          { color:#E879F9; border-color:#E879F9; background:rgba(232,121,249,0.08); }
.src-dot.cat-bookmarks  { background:#E879F9; }

/* ── Focus / Accessibility ───────────── */
:focus-visible { outline: 2px solid rgba(38,230,255,0.8); outline-offset: 3px; border-radius: 4px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.skip-link {
  position: absolute; left: 12px; top: 12px; z-index: 10000;
  padding: 7px 14px; background: var(--accent); color: #fff; font-weight: 700;
  font-size: 13px; border-radius: var(--radius-sm); text-decoration: none;
  transform: translateY(-200%); transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); }

/* ── Search bar ──────────────────────── */
.search-bar-wrap { padding-bottom: 4px; }
.search-bar {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  padding: 8px 14px; transition: border-color var(--ease), box-shadow var(--ease); border-radius: var(--radius);
}
.search-bar:focus-within { border-color: rgba(38,230,255,0.5); box-shadow: 0 0 0 3px rgba(38,230,255,0.12); }
.search-icon  { flex-shrink: 0; color: var(--ink3); }
.search-input {
  flex: 1; background: transparent; border: none; outline: none;
  font-family: var(--font); font-size: 13px; color: var(--ink); min-width: 0;
}
.search-input::placeholder { color: var(--ink3); }
.search-kbd {
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  color: var(--ink3); background: var(--surface2);
  border: 1px solid var(--border); padding: 1px 5px; flex-shrink: 0; border-radius: 4px;
}

/* ── Card read time + actions ────────── */
.card-read-time { font-family: var(--mono); font-size: 9px; color: var(--ink3); margin-left: 8px; white-space: nowrap; }
.card-actions   { display: flex; align-items: center; gap: 6px; }
.card-share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; flex-shrink: 0;
  background: transparent; border: 1px solid var(--border);
  color: var(--ink3); cursor: pointer;
  transition: color var(--ease), border-color var(--ease);
  padding: 0; border-radius: var(--radius-sm);
}
.card-share-btn:hover { color: var(--ink2); border-color: var(--border2); box-shadow: none; }

/* ── Summary button ──────────────────────────────────────────────── */
.card-summary-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; flex-shrink: 0;
  background: transparent; border: 1px solid var(--border);
  color: var(--gs-violet); cursor: pointer;
  transition: color var(--ease), border-color var(--ease), background var(--ease);
  padding: 0; border-radius: var(--radius-sm);
}
.card-summary-btn:hover { color: var(--gs-violet); border-color: rgba(124,92,255,.5); background: rgba(124,92,255,.08); box-shadow: none; }
/* Snippet variant — teal, matching modal badge */
.card-summary-btn--snippet { color: var(--teal, #2DD4BF); }
.card-summary-btn--snippet:hover { color: var(--teal, #2DD4BF); border-color: rgba(45,212,191,.3); background: rgba(45,212,191,.08); }

/* ── Summary modal ───────────────────────────────────────────────── */
#summaryModal {
  display: none; position: fixed; inset: 0; z-index: 9500;
  align-items: center; justify-content: center;
}
#summaryModal.open { display: flex; }

.summary-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  animation: fade-in .15s ease;
}

.summary-dialog {
  position: relative; z-index: 1;
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-xl);
  width: min(540px, 92vw); max-height: 88vh;
  display: flex; flex-direction: column;
  animation: pop-in .18s ease; overflow: hidden;
}

.summary-dialog__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px 10px; border-bottom: 1px solid var(--border);
  background: var(--surface2); flex-shrink: 0;
}

.summary-ai-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--gs-violet); background: rgba(124,92,255,.10);
  border: 1px solid rgba(124,92,255,.30); padding: 3px 8px; border-radius: 99px;
}

/* Article Snippet variant — muted teal instead of purple */
.summary-ai-badge--snippet {
  color: var(--teal, #2DD4BF); background: rgba(45,212,191,.08);
  border-color: rgba(45,212,191,.3);
}

.summary-close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border: 1px solid var(--border2);
  background: var(--surface); color: var(--ink2); cursor: pointer;
  border-radius: var(--radius-sm); transition: color var(--ease), border-color var(--ease);
  flex-shrink: 0;
}
.summary-close:hover { color: var(--ink); border-color: var(--border2); }

.summary-dialog__title {
  font-size: 15px; font-weight: 600; color: var(--ink);
  line-height: 1.4; letter-spacing: -.01em;
  padding: 16px 18px 10px; flex-shrink: 0;
}

.summary-dialog__body {
  padding: 0 18px 16px; flex: 1; overflow-y: auto; min-height: 60px;
}

.summary-text {
  font-size: 14px; color: var(--ink2); line-height: 1.75; margin: 0;
}

.summary-error {
  font-family: var(--mono); font-size: 11px; color: var(--yellow);
  line-height: 1.6; background: rgba(245,166,35,.06);
  border: 1px solid rgba(245,166,35,.2); padding: 10px 12px;
  border-radius: var(--radius-sm); margin: 0;
}

.summary-loading {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; color: var(--ink3); padding: 8px 0;
}

.summary-spinner {
  width: 14px; height: 14px;
  border: 2px solid var(--border2); border-top-color: var(--gs-violet);
  border-radius: 50%; animation: spin .7s linear infinite; flex-shrink: 0;
}

.summary-dialog__footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 10px 18px 14px; border-top: 1px solid var(--border); flex-shrink: 0;
}

.summary-source {
  font-family: var(--mono); font-size: 10px; color: var(--ink3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  flex: 1; text-align: right;
}

/* ── Newsletter ──────────────────────── */
.newsletter-section {
  background: linear-gradient(135deg, var(--surface) 0%, rgba(38,230,255,0.04) 100%);
  border: 1px solid var(--border);
  padding: 44px 40px; margin-bottom: 40px; border-radius: var(--radius-lg);
  position: relative; overflow: hidden;
}
.newsletter-section::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(38,230,255,0.4), transparent);
}
.newsletter-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media(max-width:800px){ .newsletter-inner { grid-template-columns: 1fr; gap: 28px; } }
@media(max-width:600px){ .newsletter-section { padding: 28px 18px; } }
.newsletter-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 600; color: var(--ink3);
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 10px; width: fit-content;
  background: none; border: none; padding: 0;
}
.newsletter-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; color: var(--ink); margin-bottom: 12px;
}
.newsletter-title em { font-style: normal; background: linear-gradient(135deg, var(--accent) 0%, var(--gs-violet) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.newsletter-desc { font-size: 14px; color: var(--ink2); line-height: 1.7; margin-bottom: 16px; }
.newsletter-bullets { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.newsletter-bullets li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink2); }
.newsletter-bullets li svg { color: var(--green); flex-shrink: 0; }
.newsletter-form { display: flex; flex-direction: column; gap: 10px; }
.newsletter-field-wrap { display: flex; gap: 0; overflow: hidden; border-radius: var(--radius); }
.newsletter-input {
  flex: 1; background: var(--bg); border: 1px solid var(--border2); border-right: none;
  padding: 11px 14px; font-family: var(--font); font-size: 14px; color: var(--ink); outline: none;
  border-radius: var(--radius) 0 0 var(--radius); transition: border-color var(--ease);
}
.newsletter-input::placeholder { color: var(--ink3); }
.newsletter-input:focus { border-color: rgba(38,230,255,0.5); box-shadow: 0 0 0 3px rgba(38,230,255,0.12); }
.newsletter-btn { border-radius: 0 var(--radius) var(--radius) 0; padding: 11px 18px; font-size: 13px; white-space: nowrap; gap: 7px; }
.newsletter-fine { font-family: var(--mono); font-size: 10px; color: var(--ink3); }
.newsletter-msg { font-family: var(--mono); font-size: 12px; padding: 7px 10px; border-radius: var(--radius-sm); }
.newsletter-msg--ok  { color: var(--green); background: rgba(62,207,142,0.06); border: 1px solid rgba(62,207,142,0.25); }
.newsletter-msg--err { color: var(--red);   background: rgba(229,72,77,0.06);  border: 1px solid var(--red); }

/* ── Footer keyboard shortcuts ───────── */
.footer-shortcuts {
  display: flex; align-items: center; gap: 5px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 10px; color: var(--ink3); margin: 4px 0;
}
.footer-kbd-label { color: var(--ink3); margin-right: 4px; }
.footer-kbd {
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--ink3); font-family: var(--mono); font-size: 9px; font-weight: 700;
  padding: 1px 4px; border-radius: 2px; vertical-align: middle;
}

/* ── My Pulse Drawer ─────────────────── */
.my-pulse-backdrop {
  position: fixed; inset: 0; z-index: 490;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(2px); display: none;
}
.my-pulse-backdrop.open { display: block; animation: fade-in 0.15s ease; }
.my-pulse-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 500;
  width: min(400px, 100vw); background: var(--bg2); border-left: 1px solid var(--border);
  box-shadow: -4px 0 32px rgba(0,0,0,0.5);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 0.25s cubic-bezier(0.4,0,0.2,1); overflow: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.my-pulse-drawer.open { transform: translateX(0); }
.mpd-header {
  padding: 14px 16px 12px; border-bottom: 1px solid var(--border);
  background: var(--surface2); display: flex; flex-direction: column; gap: 4px; flex-shrink: 0;
}
.mpd-title    { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.mpd-subtitle { font-family: var(--mono); font-size: 11px; color: var(--ink3); }
.mpd-close {
  background: none; border: none; color: var(--ink3); cursor: pointer;
  font-size: 16px; padding: 4px 8px; border-radius: var(--radius-sm);
  transition: color var(--ease), background var(--ease); line-height: 1;
}
.mpd-close:hover { color: var(--ink); background: var(--surface); }
.mpd-body { flex: 1; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.mpd-body::-webkit-scrollbar { width: 4px; }
.mpd-body::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }
.mpd-footer {
  padding: 10px 14px; border-top: 1px solid var(--border); background: var(--surface2);
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-shrink: 0;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
}
.mpd-toggle {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  font-size: 13px; color: var(--ink2); user-select: none; padding: 4px 0;
}
.mpd-toggle input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.mpd-toggle-track {
  width: 32px; height: 18px; border-radius: 9px; flex-shrink: 0;
  background: var(--surface); border: 1px solid var(--border2); position: relative;
  transition: background var(--ease), border-color var(--ease);
}
.mpd-toggle-track::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 12px; height: 12px; border-radius: 50%; background: var(--ink3);
  transition: transform var(--ease), background var(--ease);
}
.mpd-toggle input:checked ~ .mpd-toggle-track { background: rgba(38,230,255,0.12); border-color: var(--accent); }
.mpd-toggle input:checked ~ .mpd-toggle-track::after { transform: translateX(14px); background: var(--accent); }
.mpd-toggle-label { flex: 1; line-height: 1.4; }
.mpd-toggle input:focus-visible ~ .mpd-toggle-track { outline: 2px solid var(--accent); outline-offset: 2px; }
.mpd-chip-group { display: flex; flex-wrap: wrap; gap: 5px; }
.mpd-chip {
  padding: 4px 9px; font-size: 12px; font-weight: 500;
  border: 1px solid var(--chip-color, var(--border2)); background: rgba(0,0,0,0.2);
  color: var(--chip-color, var(--ink2)); cursor: pointer; border-radius: 20px;
  display: inline-flex; align-items: center; transition: opacity var(--ease), filter var(--ease);
}
.mpd-chip--muted { border-color: var(--border); color: var(--ink3); background: transparent; opacity: 0.4; text-decoration: line-through; filter: grayscale(0.7); }
.mpd-chip:hover { opacity: 1 !important; filter: none !important; }
.mpd-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mpd-source-list {
  display: flex; flex-direction: column; gap: 2px;
  max-height: 260px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--border2) transparent;
}
.mpd-source-list::-webkit-scrollbar { width: 4px; }
.mpd-source-list::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }
.mpd-source {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 10px; border-radius: var(--radius-sm); cursor: pointer;
  border: 1px solid transparent; background: none; width: 100%;
  text-align: left; font-family: var(--font); font-size: 13px; color: var(--ink2);
  transition: background var(--ease), border-color var(--ease);
}
.mpd-source:hover { background: var(--surface); border-color: var(--border); }
.mpd-source--muted { opacity: 0.45; text-decoration: line-through; color: var(--ink3); }
.mpd-section { padding: 14px 16px; border-bottom: 1px solid var(--border); }
.mpd-section-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--ink3); margin-bottom: 8px; font-family: var(--mono);
}

/* ── Stale cache bar ─────────────────── */
.stale-cache-bar {
  display: none; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; color: var(--yellow);
  background: rgba(245,166,35,0.06); border: 1px solid rgba(245,166,35,0.2);
  border-radius: var(--radius-sm); padding: 6px 12px; margin-bottom: 10px;
}
.stale-cache-bar.visible { display: flex; }
.stale-cache-bar__refresh {
  background: none; border: none; cursor: pointer; color: var(--accent);
  font-family: var(--mono); font-size: 11px; padding: 0; text-decoration: underline;
}
.stale-cache-bar__refresh:hover { opacity: 0.8; }

/* ── Feed health bar ─────────────────── */
.feed-health-bar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  font-family: var(--mono); font-size: 11px; color: var(--ink3);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 6px 12px; margin-bottom: 12px;
}
.fhb-info { flex: 1 1 auto; }
.fhb-details summary { cursor: pointer; color: var(--yellow); list-style: none; }
.fhb-details summary::-webkit-details-marker { display: none; }
.fhb-details ul { margin: 6px 0 0 12px; padding: 0; list-style: disc; color: var(--red); }

/* ── SEO Articles Fallback ───────────── */
#seoLatestFallback { margin-top: 20px; }
#seoLatestFallback h2 {
  font-size: 15px; font-weight: 600; color: var(--ink);
  margin-bottom: 14px; letter-spacing: -0.01em;
}
.seo-articles-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
@media(min-width:1060px){ .seo-articles-grid { grid-template-columns: repeat(3,1fr); } }
@media(max-width:640px) { .seo-articles-grid { grid-template-columns: 1fr; gap: 12px; } }

.seo-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px 18px;
  display: flex; flex-direction: column; gap: 10px;
  position: relative; overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.seo-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--border); border-radius: var(--radius-lg) var(--radius-lg) 0 0; z-index: 2;
}
.seo-card:hover { border-color: var(--border2); background: var(--surface2); transform: none; box-shadow: none; }
.seo-card:hover::before { height: 2px; background: var(--border2); }
.seo-card-img-wrap {
  display: block; overflow: hidden; border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  margin: -14px -16px 4px -16px; aspect-ratio: 16 / 9; background: var(--surface2); flex-shrink: 0;
}
.seo-card-img-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.seo-card h3 { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.5; margin: 0; letter-spacing: -0.01em; font-family: var(--font); }
.seo-card h3 a { color: inherit; text-decoration: none; transition: color 0.15s ease; }
.seo-card h3 a:hover { color: var(--accent); }
.seo-card p { font-size: 13px; color: var(--ink3); line-height: 1.6; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.seo-card small { font-family: var(--mono); font-size: 10px; color: var(--ink3); margin-top: auto; }
.seo-card-summary { display: flex; flex-direction: column; gap: 4px; }
.seo-ai-badge {
  display: inline-flex; align-items: center;
  font-family: var(--mono); font-size: 9px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--gs-violet); background: rgba(124,92,255,.10);
  border: 1px solid rgba(124,92,255,.30); padding: 2px 6px; border-radius: 99px;
  width: fit-content; margin-bottom: 2px;
}
.seo-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 10px; border-top: 1px solid var(--border); gap: 8px; margin-top: auto;
}


/* ── Comments jump btn ───────────────── */
#commentsJumpBtn {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0;
}
@media(min-width: 600px){ #commentsJumpBtn { width: auto; padding: 5px 12px; } }


/* ── Responsive ──────────────────────── */
@media(max-width:600px){
  .page-wrap { padding: 0 16px; }
  .hero      { padding: 32px 0 32px; }
  .hero-stats { gap: 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .toolbar { flex-direction: column; align-items: flex-start; gap: 8px; }
  .toolbar-left { flex-wrap: wrap; gap: 8px; }
  .card { padding: 12px 14px; }
  .card-featured { padding: 16px 14px; }
  .nav-actions { gap: 6px; flex-shrink: 0; }
  .nav-actions .btn-label { display: none; }
  .btn-sm { padding: 5px 9px; font-size: 12px; }
}
@media(max-width:480px){
  .settings-popover {
    position: fixed !important; top: 56px !important; right: 0 !important; left: 0 !important;
    width: 100% !important; border-left: none; border-right: none;
    box-shadow: var(--shadow-lg); border-radius: 0;
  }
}

/* ── Mobile UX improvements ──────────── */

/* #1 — Touch targets ≥ 44×44 px */
@media (max-width: 860px) {
  .bm-btn, .card-share-btn, .card-summary-btn, .summary-close,
  .mpd-close, .pp-close, .view-btn { min-width: 44px; min-height: 44px; }
  .chip { min-height: 40px; padding: 8px 16px; }
}

/* #2 — Hero H1 too large on very narrow screens */
@media (max-width: 400px) {
  .hero h1 { font-size: clamp(1.6rem, 8vw, 2.2rem); line-height: 1.12; }
  .hero-sub { font-size: 14px; }
}

/* #3 — Newsletter form stacks on narrow screens */
@media (max-width: 480px) {
  .newsletter-field-wrap { flex-direction: column; border-radius: var(--radius); }
  .newsletter-input { border-right: 1px solid var(--border2); border-radius: var(--radius); }
  .newsletter-btn { border-radius: var(--radius); width: 100%; justify-content: center; }
}

/* #4 — Hide keyboard shortcut hint on mobile */
@media (max-width: 860px) { .search-kbd { display: none; } }

/* #5 — Sticky filter chips with scroll affordance fade */
@media (max-width: 860px) {
  .mobile-filters {
    position: sticky;
    top: 58px;
    z-index: 90;
    background: var(--bg);
    padding: 10px 16px;
    margin: 0 -16px;
    border-bottom: 1px solid var(--border);
    -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
    mask-image: linear-gradient(to right, black 85%, transparent 100%);
  }
}

/* #8 — Summary dialog too tall in landscape */
@media (max-width: 860px) and (max-height: 600px) {
  .summary-dialog { max-height: 80vh; }
  .summary-dialog__title { padding: 10px 14px 6px; font-size: 13px; }
  .summary-dialog__body  { padding: 0 14px 12px; }
}

/* #9 — Card images too tall on mobile */
@media (max-width: 640px) {
  .card-img-wrap { aspect-ratio: 21 / 9; }
}

/* #10 — Toolbar wraps cleanly at 600px */
@media (max-width: 600px) {
  .toolbar-left  { width: 100%; }
  .toolbar-right { width: 100%; justify-content: space-between; }
  .article-count { flex: 1; text-align: right; }
}

/* #11 — Hide footer keyboard shortcuts on mobile */
@media (max-width: 860px) { .footer-shortcuts { display: none; } }

/* #12 — Settings popover max-height + scroll on mobile */
@media (max-width: 480px) {
  .settings-popover {
    max-height: calc(100vh - 58px - env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
  }
}

/* #13 — PayPal modal as bottom sheet on small phones */
@media (max-width: 480px) {
  .pp-modal-backdrop { align-items: flex-end; }
  .pp-modal {
    width: 100%; max-width: 100%;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    animation: slide-up-sheet .22s ease;
  }
}
@keyframes slide-up-sheet {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

/* #14 — Nav overflow at 360px */
@media (max-width: 400px) {
  .nav-actions { gap: 4px; }
  .nav-actions .btn-sm { padding: 5px 7px; }
}

/* #15 — Scroll snap for filter chips */
@media (max-width: 860px) {
  .mobile-filters { scroll-snap-type: x mandatory; }
  .chip { scroll-snap-align: start; }
}

/* ── Reduced motion ──────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
  .term-cursor, .pulse,
  .hero-terminal, .contribute-terminal-wrap .hero-terminal {
    animation: none !important;
  }
  .card:hover, .card-featured:hover, .signal-card:hover, .filter-item:hover,
  .btn:hover, .back-to-top:hover, .nav-link:hover {
    transform: none !important;
    box-shadow: inherit !important;
  }
  .term-line { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* ── Cookie Consent Banner ───────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 12px 20px;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.4);
  animation: slideUpBanner 0.3s ease;
}
@keyframes slideUpBanner {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.cookie-banner-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-banner-text {
  flex: 1;
  font-size: 13px;
  color: var(--ink2);
  line-height: 1.5;
  margin: 0;
}
.cookie-banner-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}


/* ══════════════════════════════════════════
   MOBILE VIEW IMPROVEMENTS — all sections
   ══════════════════════════════════════════ */

/* Clear filter chip */
.chip.chip-clear {
  border-color: rgba(248,81,73,0.4); color: var(--red); background: rgba(248,81,73,0.06);
}
.chip.chip-clear:hover { border-color: var(--red); background: rgba(248,81,73,0.1); }

/* ── GitHub stars badge ── */
.gh-stars-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500; font-family: var(--font);
  color: var(--ink2);
  transition: color var(--ease), border-color var(--ease), background var(--ease), transform var(--ease);
  white-space: nowrap;
  text-decoration: none;
}
.gh-stars-badge:hover {
  color: var(--ink);
  border-color: var(--accent);
  background: rgba(38,230,255,0.08);
  transform: translateY(-1px);
}
.gh-stars-badge svg { color: #e3b341; flex-shrink: 0; }
.gh-stars-count {
  display: inline-flex; align-items: center;
  padding: 1px 7px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border2);
  border-radius: 20px;
  font-size: 11px; font-weight: 600; font-family: var(--mono);
  color: var(--ink3);
  min-width: 24px; justify-content: center;
}
.gh-stars-count:empty { display: none; }

/* ── §1: Navigation — hamburger + drawer ── */
.nav-hamburger {
  display: none;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; padding: 5px 10px;
  background: transparent; border: 1px solid var(--border2); color: var(--ink2);
  border-radius: var(--radius-sm); flex-shrink: 0;
  transition: color var(--ease), border-color var(--ease), background var(--ease);
}
.nav-hamburger:hover { color: var(--ink); border-color: var(--border2); background: rgba(255,255,255,0.06); }
.nav-hamburger-bar {
  display: block; width: 16px; height: 2px; background: currentColor;
  border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-hamburger.open .nav-hamburger-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-hamburger.open .nav-hamburger-bar:nth-child(2) { opacity: 0; }
.nav-hamburger.open .nav-hamburger-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-drawer {
  position: fixed; top: 58px; left: 0; right: 0; z-index: 95;
  background: var(--bg2); border-bottom: 1px solid var(--border2);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  transform: translateY(-110%);
  transition: transform 0.22s cubic-bezier(0.4,0,0.2,1);
  display: none;
}
.nav-drawer.open { transform: translateY(0); display: block; }
.nav-drawer-links { display: flex; flex-direction: column; padding: 8px 0; }
.nav-drawer-link {
  display: block; padding: 14px 24px; font-size: 15px; font-weight: 500;
  color: var(--ink2); border-bottom: 1px solid var(--border);
  transition: color var(--ease), background var(--ease);
}
.nav-drawer-link:last-child { border-bottom: none; }
.nav-drawer-link:hover { color: var(--ink); background: rgba(255,255,255,0.04); }

.nav-drawer-backdrop {
  display: none; position: fixed; inset: 0; z-index: 94;
  background: rgba(0,0,0,0.5);
}
.nav-drawer-backdrop.open { display: block; animation: fade-in 0.15s ease; }

/* Hide auto-countdown and btn-label below 860px */
@media (max-width: 860px) {
  .nav-hamburger { display: flex; }
  .nav-actions .btn-label { display: none; }
  .auto-countdown { display: none !important; }
}

/* ── §2: Hero section ── */
@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .hero-stat .val { font-size: 20px; }
  .hero-stats { gap: 16px; }
  .hero-sub { font-size: 14px; }
  .hero::after {
    content: ''; display: block; position: absolute; bottom: 0; left: 0; right: 0;
    height: 40px; pointer-events: none;
    background: linear-gradient(to bottom, transparent, var(--bg));
  }
}
@media (max-width: 360px) {
  .hero-stats { gap: 12px; }
}

/* ── §3: Filter chips dynamic mask ── */
.mobile-filters.mask-right {
  -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
  mask-image: linear-gradient(to right, black 85%, transparent 100%);
}
.mobile-filters.mask-left {
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%);
  mask-image: linear-gradient(to right, transparent 0%, black 10%);
}
.mobile-filters.mask-both {
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 85%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 85%, transparent 100%);
}
@media (max-width: 860px) {
  .mobile-filters {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  .chip { padding: 8px 12px; }
}

/* ── §4: Toolbar / Search ── */
@media (max-width: 860px) {
  .search-input { font-size: 16px; }
  input, textarea, select { font-size: max(16px, 1em); }
}
@media (max-width: 600px) {
  .toolbar-right { gap: 12px; justify-content: flex-end; }
}

/* ── §5: Article cards ── */
@media (max-width: 860px) {
  .card-img-wrap { aspect-ratio: 3 / 2; }
  .card-link { padding: 7px 12px; min-height: 36px; }
}
@media (max-width: 640px) {
  .card-snippet { -webkit-line-clamp: 3; }
  .card-featured { padding: 12px 14px; }
  .feed-grid .card-featured { grid-column: auto; }
}
@media (max-width: 380px) {
  .card-img-wrap--list { width: 64px; min-width: 64px; }
}

/* ── §6: Settings popover ── */
@media (max-width: 480px) {
  .settings-popover::before {
    content: ''; display: block; width: 32px; height: 4px;
    background: var(--border2); border-radius: 2px;
    margin: 10px auto 4px; flex-shrink: 0;
  }
  .settings-popover {
    max-height: calc(100dvh - 58px - env(safe-area-inset-bottom, 0px));
    max-height: calc(100vh - 58px - env(safe-area-inset-bottom, 0px));
  }
}
@media (max-width: 860px) {
  .settings-opt { min-height: 44px; }
}

/* ── §7: Summary modal → bottom sheet on mobile ── */
@keyframes slide-up-sheet-summary {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
@media (max-width: 640px) {
  #summaryModal { align-items: flex-end; }
  .summary-dialog {
    width: 100%; max-width: 100%;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-height: 80dvh;
    max-height: 80vh;
    animation: slide-up-sheet-summary .22s ease;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .summary-dialog::before {
    content: ''; display: block; width: 32px; height: 4px;
    background: var(--border2); border-radius: 2px;
    margin: 10px auto 0; flex-shrink: 0;
  }
}

/* ── §8: My Pulse Drawer ── */
@media (max-width: 400px) {
  .mpd-section { padding: 10px 12px; }
}
@media (max-width: 600px) {
  .mpd-source-list { max-height: 180px; }
}
@media (max-width: 860px) {
  .mpd-chip { min-height: 36px; padding: 6px 12px; }
}

/* ── §9: Cookie consent banner ── */
@media (max-width: 480px) {
  .cookie-banner { padding: 10px 16px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
  .cookie-banner-inner { flex-direction: column; align-items: stretch; }
  .cookie-banner-actions { width: 100%; flex-direction: column; }
  .cookie-banner-actions .btn { width: 100%; justify-content: center; }
}

/* ── §10: Footer ── */
@media (max-width: 600px) {
  .footer-sources-list {
    display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px;
  }
}
@media (max-width: 480px) {
  .footer-sources-list li { font-size: 12px; }
}
.site-footer { padding-bottom: calc(36px + env(safe-area-inset-bottom, 0px)); }

/* ── §11: Back-to-top button ── */
@media (max-width: 860px) {
  .back-to-top {
    width: 44px; height: 44px;
    bottom: calc(72px + var(--cookie-h, 0px)); right: 16px;
  }
}

/* ── §12: Contribute / Feedback ── */
@media (max-width: 600px) {
  .contribute-section { padding: 40px 0 48px; }
}
@media (hover: none) {
  .contribute-ways li:hover { transform: none; }
}
@media (min-width: 600px) and (max-width: 860px) {
  .contribute-title, .feedback-title {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  }
}

/* ── §13: Cross-cutting ── */
@media (max-width: 860px) {
  .mobile-filters, .mpd-body, .mpd-source-list, .summary-dialog__body {
    -webkit-overflow-scrolling: touch;
  }
}
.my-pulse-drawer, .summary-dialog, .settings-popover {
  overscroll-behavior: contain;
}
/* Safe-area insets */
.top-nav { padding-top: env(safe-area-inset-top, 0px); }
.back-to-top, .bm-toast {
  bottom: calc(24px + var(--cookie-h, 0px) + env(safe-area-inset-bottom, 0px));
}
@media (max-width: 860px) {
  .back-to-top {
    bottom: calc(72px + var(--cookie-h, 0px) + env(safe-area-inset-bottom, 0px));
  }
}
/* Reduced data — skip Google Fonts */
@media (prefers-reduced-data: reduce) {
  :root {
    --font:         system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: system-ui, -apple-system, sans-serif;
    --mono:         ui-monospace, 'Cascadia Code', 'Fira Mono', monospace;
  }
}


