/* =============================================================================
   The Infinite Tavern — "Arcane Futurism" Design System
   D&D fantasy meets cyberpunk glass UI
   Colors: dark void bg, neon cyan/emerald/gold accents, glassmorphism cards
   ============================================================================= */

:root {
  --bg: #050a12;
  --bg-card: rgba(10, 20, 40, 0.55);
  --bg-card-hover: rgba(15, 30, 55, 0.7);
  --glass: rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.08);
  --glass-hover: rgba(255,255,255,0.1);
  --cyan: #00E5FF;
  --emerald: #00FF88;
  --gold: #FFD700;
  --violet: #BB86FC;
  --blue: #0066FF;
  --blue-deep: #001F3F;
  --white: #FFFFFF;
  --text-primary: #E8EDF5;
  --text-secondary: #B8C0D0;
  --text-muted: #7A8499;
  --danger: #FF4466;
  --font-display: 'Playfair Display', serif;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --stat-str: #FF4466;
  --stat-dex: #00E5FF;
  --stat-con: #FF8C00;
  --stat-int: #0066FF;
  --stat-wis: #00FF88;
  --stat-cha: #FFD700;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  min-height: 100vh;
}
::selection { background: rgba(0,229,255,0.2); color: var(--white); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,229,255,0.27); }

/* ---- Particle Canvas ---- */
#particles {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(0,40,80,0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(0,60,40,0.15) 0%, transparent 60%),
    var(--bg);
}

/* ---- Glass Panel ---- */
.glass-panel {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

/* ---- Header ---- */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(5,10,18,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0 20px;
}

/* Row 1 — Logo + subtitle inline */
.hdr-row1 {
  display: flex; align-items: baseline; justify-content: center;
  gap: 10px; padding: 6px 0 2px; flex-wrap: wrap;
}
#site-title {
  font-family: var(--font-display); font-size: 18px; font-weight: 900;
  background: linear-gradient(135deg, var(--cyan), var(--emerald), var(--gold));
  background-size: 200% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.04em;
  animation: shimmer 4s linear infinite;
  white-space: nowrap;
}
.hdr-divider {
  color: var(--glass-border); font-size: 14px;
}
#site-subtitle {
  font-family: var(--font-body); font-style: italic; font-size: 11px;
  color: var(--text-muted); white-space: nowrap;
}

/* Row 2 — Stats | Gauge | Fund */
.hdr-row2 {
  display: flex; align-items: center; gap: 12px;
  padding: 4px 0 6px; max-width: 1400px; margin: 0 auto;
}

.hdr-left {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.hdr-stat {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-mono); font-size: 12px;
  cursor: default; position: relative;
}
.hdr-stat strong { font-weight: 700; }
#gauge-balance { color: var(--emerald); }
#gauge-npcs { color: var(--cyan); }
#gauge-runway { color: var(--gold); }
#gauge-rate { color: var(--violet); }

.hdr-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 6px;
  background: none; border: 1px solid var(--glass-border);
  color: var(--text-muted); cursor: pointer; transition: all 0.2s;
  flex-shrink: 0;
}
.hdr-icon-btn:hover { border-color: var(--cyan); color: var(--cyan); }

.hdr-gauge {
  flex: 1; min-width: 60px;
}
.gauge-bar-track {
  height: 6px; background: rgba(255,255,255,0.06); border-radius: 3px; overflow: hidden;
}
.gauge-bar-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--emerald), var(--cyan));
  transition: width 2s cubic-bezier(0.16,1,0.3,1);
}

/* Zone-specific bar styles */
.gauge-bar-track[data-zone="day"] .gauge-bar-fill {
  background: linear-gradient(90deg, #FF2244, #FF6644);
  animation: gaugePulse 2s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(255, 34, 68, 0.4);
}
.gauge-bar-track[data-zone="week"] .gauge-bar-fill {
  background: linear-gradient(90deg, #FF8C00, #FFD700);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.25);
}
.gauge-bar-track[data-zone="month"] .gauge-bar-fill {
  background: linear-gradient(90deg, #00CC66, #00FF88, #00E5FF);
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.25);
}
.gauge-bar-track[data-zone="overfunded"] .gauge-bar-fill {
  background: linear-gradient(90deg, #FF4466, #FFD700, #00FF88, #00E5FF, #0066FF, #FF4466);
  background-size: 300% 100%;
  animation: rainbowShimmer 3s linear infinite;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.4);
}
@keyframes gaugePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }
@keyframes rainbowShimmer { 0% { background-position: 0% center; } 100% { background-position: 300% center; } }

.btn-donate {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--emerald), var(--cyan)); color: var(--bg);
  font-family: var(--font-heading); font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 6px; border: none; cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,255,136,0.2); transition: all 0.3s;
  white-space: nowrap;
}
.btn-donate:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,255,136,0.3); }

/* ---- Cost Breakdown (modal body) ---- */
.breakdown-modal-body { max-width: 380px; }
.cost-breakdown {
  padding: 0; font-family: var(--font-mono); font-size: 12px; line-height: 2.2;
}
.cost-breakdown .cost-row { display: flex; justify-content: space-between; color: var(--text-secondary); }
.cost-breakdown .cost-value { color: var(--cyan); }
.cost-breakdown .cost-total { border-top: 1px solid rgba(0,255,136,0.2); margin-top: 6px; padding-top: 6px; color: var(--emerald); font-weight: 600; font-size: 13px; }
.cost-breakdown .cost-footer { margin-top: 10px; font-size: 10px; color: var(--text-muted); text-align: center; }
.margin-expand-btn {
  background: none; border: 1px solid var(--glass-border); color: var(--cyan);
  width: 18px; height: 18px; border-radius: 4px; cursor: pointer;
  font-size: 14px; line-height: 1; padding: 0; margin-right: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.2s; vertical-align: middle;
}
.margin-expand-btn:hover { background: rgba(0,255,136,0.1); transform: scale(1.1); }
.margin-details {
  padding: 6px 0 2px 26px; font-size: 11px; line-height: 2;
  color: var(--text-muted); transition: all 0.2s ease;
}
.margin-details.hidden { display: none; }
.margin-detail-item { opacity: 0.85; }

/* ---- Subscribe Icon (fixed) ---- */
.subscribe-icon {
  position: fixed; top: 80px; left: 18px; z-index: 200;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(5,10,18,0.85); border: 1px solid var(--glass-border);
  color: var(--cyan); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(12px); transition: all 0.3s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.subscribe-icon:hover {
  border-color: var(--cyan); background: rgba(0,229,255,0.1);
  box-shadow: 0 2px 20px rgba(0,229,255,0.2);
}
.subscribe-icon.authenticated {
  border-color: var(--emerald); color: var(--emerald);
  background: rgba(0,255,136,0.12);
  box-shadow: 0 0 10px rgba(0,255,136,0.25);
}
.subscribe-icon.authenticated:hover {
  background: rgba(0,255,136,0.2);
  box-shadow: 0 0 16px rgba(0,255,136,0.35);
}

/* ---- Subscribe Modal ---- */
.subscribe-modal-body { max-width: 380px; }
.subscribe-modal-icon { margin-bottom: 12px; }
.subscribe-form-modal { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.subscribe-form-modal input {
  width: 100%; padding: 12px 16px; border-radius: 8px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border);
  color: var(--text-primary); font-family: var(--font-body); font-size: 14px;
  outline: none; text-align: center; transition: border-color 0.3s;
}
.subscribe-form-modal input:focus { border-color: rgba(0,229,255,0.4); }
.btn-subscribe-modal {
  width: 100%; padding: 12px; border-radius: 8px;
  background: linear-gradient(135deg, rgba(0,229,255,0.15), rgba(0,102,255,0.15));
  border: 1px solid rgba(0,229,255,0.25); cursor: pointer;
  font-family: var(--font-heading); font-size: 13px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan);
  transition: all 0.3s;
}
.btn-subscribe-modal:hover { background: linear-gradient(135deg, rgba(0,229,255,0.25), rgba(0,102,255,0.25)); }

/* ---- Main ---- */
main { width: 100vw; margin: 0 auto; padding: 24px 78px 100px; position: relative; z-index: 1; box-sizing: border-box; }

.subscribe-msg { margin-top: 10px; font-family: var(--font-mono); font-size: 12px; text-align: center; }
.subscribe-msg.success { color: var(--emerald); }
.subscribe-msg.error { color: var(--danger); }

/* ---- NPC Cards ---- */
#npc-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; align-items: start; }
.npc-card { border-radius: 16px; overflow: hidden; transition: border-color 0.3s; display: flex; flex-direction: column; }
.npc-card:hover { border-color: rgba(255,255,255,0.12); }

.npc-hero { position: relative; width: 100%; aspect-ratio: 3/4; overflow: hidden; display: block; text-decoration: none; color: inherit; }
.npc-hero-img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.npc-hero-overlay {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 60px 16px 14px;
  background: linear-gradient(transparent, rgba(5,10,18,0.95));
}
.npc-name {
  font-family: var(--font-display); font-size: 20px; font-weight: 700; line-height: 1.15;
  background: linear-gradient(135deg, var(--white), var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.npc-subtitle { font-family: var(--font-body); font-style: italic; font-size: 12px; margin: 3px 0 0; color: #66C2CC; }
.npc-id-badge {
  position: absolute; top: 10px; right: 10px; font-family: var(--font-mono); font-size: 9px;
  padding: 3px 8px; border-radius: 20px; background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.08); color: var(--text-muted);
}

.npc-body { padding: 14px 16px; flex: 1; }
.npc-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.tag {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 20px; white-space: nowrap;
}

.npc-stats { background: rgba(255,255,255,0.02); border-radius: 10px; padding: 10px 12px; border: 1px solid rgba(255,255,255,0.04); margin-bottom: 12px; }
.stat-row { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.stat-label { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.12em; color: var(--text-muted); width: 26px; text-align: right; }
.stat-bar-track { flex: 1; height: 5px; background: rgba(255,255,255,0.05); border-radius: 3px; overflow: hidden; }
.stat-bar-fill { height: 100%; border-radius: 3px; transition: width 1s cubic-bezier(0.16,1,0.3,1) 0.2s; }
.stat-value { font-family: var(--font-mono); font-size: 12px; color: var(--text-primary); font-weight: 700; width: 20px; text-align: center; }
.stat-mod { font-family: var(--font-mono); font-size: 9px; width: 24px; }

.npc-backstory { font-family: var(--font-body); font-size: 13px; line-height: 1.6; color: var(--text-secondary); }

.btn-sheet {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; margin-top: 12px; padding: 10px 0; text-decoration: none;
  border-top: 1px solid var(--glass-border);
  font-family: var(--font-heading); font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--emerald); transition: all 0.3s;
  background: linear-gradient(135deg, rgba(0,255,136,0.04), rgba(0,229,255,0.04));
}
.btn-sheet:hover { color: var(--cyan); background: linear-gradient(135deg, rgba(0,255,136,0.08), rgba(0,229,255,0.08)); }

/* Compact bar: stars + toggle, always visible */
.npc-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 16px; border-top: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.015);
}

.btn-expand {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border);
  cursor: pointer; color: var(--cyan); transition: all 0.25s;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 300; line-height: 1; padding: 0;
  flex-shrink: 0;
}
.btn-expand:hover { color: var(--emerald); border-color: var(--emerald); background: rgba(0,255,136,0.08); }
.expand-icon { transition: transform 0.3s; display: inline-block; pointer-events: none; }

/* Collapsible details panel */
.npc-details {
  overflow: hidden; max-height: 0;
  transition: max-height 0.5s cubic-bezier(0.16,1,0.3,1);
}
.npc-details.open { max-height: 3000px; }
.npc-section-label {
  font-family: var(--font-heading); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 12px; padding-bottom: 6px; margin-top: 16px;
  border-bottom: 1px solid rgba(0,229,255,0.13);
}
.npc-traits { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 24px; }
.trait-card {
  padding: 10px 14px; background: rgba(255,255,255,0.02); border-radius: 10px;
  border-left: 3px solid rgba(0,229,255,0.27);
}
.trait-label { font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); margin-bottom: 4px; }
.trait-text { font-family: var(--font-body); font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.npc-abilities { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.ability-card { padding: 10px 14px; background: rgba(255,255,255,0.02); border-radius: 10px; }
.ability-name { font-family: var(--font-heading); font-size: 13px; font-weight: 700; color: var(--text-primary); }
.ability-desc { font-family: var(--font-body); font-size: 13px; color: var(--text-secondary); }
.npc-dm-notes { font-family: var(--font-body); font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

.npc-footer {
  padding: 6px 16px; border-top: 1px solid var(--glass-border);
  display: flex; justify-content: flex-end; align-items: center;
  background: rgba(255,255,255,0.015);
}
.npc-rating { display: flex; align-items: center; gap: 6px; }
.star-container { display: flex; gap: 2px; }
.star-container svg { cursor: pointer; transition: transform 0.15s; }
.star-container svg:hover { transform: scale(1.25); }
.star-rating { display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; }
.star-rating svg { cursor: pointer; transition: transform 0.15s; flex-shrink: 0; }
.star-rating svg:hover { transform: scale(1.25); }
.rating-value { font-family: var(--font-mono); font-size: 12px; color: var(--cyan); font-weight: 600; margin-left: 4px; }
.rating-count { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); margin-left: 2px; }
.npc-timestamp { font-family: var(--font-mono); font-size: 9px; color: var(--text-muted); }

/* ---- Loading ---- */
.load-sentinel { text-align: center; padding: 60px 0; }
.spinner {
  width: 32px; height: 32px; margin: 0 auto 14px; border: 2px solid var(--glass-border);
  border-top-color: var(--cyan); border-radius: 50%; animation: spin 0.8s linear infinite;
}
.load-text {
  font-family: var(--font-heading); font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-muted); animation: pulse 2s ease-in-out infinite;
}
.end-message { text-align: center; padding: 40px; font-family: var(--font-body); font-size: 14px; color: var(--text-muted); }

/* ---- Breadcrumbs ---- */
.breadcrumbs { margin-bottom: 16px; }
.breadcrumbs ol { list-style: none; display: flex; align-items: center; gap: 0; font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }
.breadcrumbs li + li::before { content: '›'; margin: 0 8px; color: rgba(255,255,255,0.15); }
.breadcrumbs a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.breadcrumbs a:hover { color: var(--cyan); }
.breadcrumbs [aria-current] { color: var(--text-secondary); }

/* ---- Category browse ---- */
.cat-browse-heading { margin-bottom: 20px; }
.cat-browse-title {
  font-family: var(--font-display); font-size: 28px; font-weight: 900;
  background: linear-gradient(135deg, var(--white), var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.cat-browse-count { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.cat-index-grid { display: flex; flex-wrap: wrap; gap: 10px; grid-column: 1 / -1; }
.cat-index-link {
  display: inline-block; padding: 10px 22px;
  background: var(--bg-card); border: 1px solid var(--glass-border); border-radius: 8px;
  color: var(--text-primary); text-decoration: none;
  font-family: var(--font-heading); font-size: 15px; font-weight: 600;
  transition: border-color 0.2s, background 0.2s;
}
.cat-index-link:hover { border-color: var(--cyan); background: rgba(0,229,255,0.08); color: var(--cyan); }

/* ---- Footer ---- */
footer {
  text-align: center; padding: 30px 24px; border-top: 1px solid var(--glass-border);
  font-family: var(--font-mono); font-size: 11px; color: var(--text-muted);
}
footer p { margin: 0; }
footer a { color: var(--emerald); text-decoration: none; }
footer a:hover { text-decoration: underline; }
.footer-seo { margin-top: 8px !important; font-family: var(--font-body); font-size: 12px; color: var(--text-muted); opacity: 0.7; }

/* ---- Utilities ---- */
.hidden { display: none !important; }

/* ---- Animations ---- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shimmer { 0% { background-position: -200% center; } 100% { background-position: 200% center; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }
@keyframes glow { 0% { text-shadow: 0 0 10px rgba(0,229,255,0.3); } 100% { text-shadow: 0 0 30px rgba(0,229,255,0.6), 0 0 60px rgba(0,255,136,0.2); } }

/* ---- Donation Modal ---- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; animation: fadeUp 0.2s ease;
}
.modal-content {
  position: relative; max-width: 440px; width: 100%;
  padding: 32px; border-radius: 16px; text-align: center;
  max-height: 85vh; overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: var(--emerald) transparent;
}
.modal-close {
  position: absolute; top: 12px; right: 16px;
  background: none; border: none; color: var(--text-muted);
  font-size: 28px; cursor: pointer; line-height: 1;
}
.modal-close:hover { color: var(--text-primary); }
.modal-title {
  font-family: var(--font-display); font-size: 24px;
  color: var(--emerald); margin-bottom: 8px;
}
.modal-subtitle {
  font-family: var(--font-body); font-size: 14px;
  color: var(--text-muted); margin-bottom: 20px;
}
.amount-buttons {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin-bottom: 16px;
}
.amount-btn {
  padding: 10px 8px; border-radius: 8px; font-family: var(--font-mono);
  font-size: 16px; font-weight: 600; cursor: pointer;
  background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border);
  color: var(--text-primary); transition: all 0.15s ease;
}
.amount-btn:hover { border-color: var(--emerald); color: var(--emerald); }
.amount-btn.selected {
  border-color: var(--emerald); color: var(--deep-bg);
  background: var(--emerald); box-shadow: 0 0 12px rgba(0,255,136,0.3);
}
.custom-amount-row {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 16px; justify-content: center;
}
.custom-prefix {
  font-family: var(--font-mono); font-size: 20px;
  color: var(--emerald); font-weight: 600;
}
.custom-amount-row input {
  width: 120px; padding: 8px 12px; border-radius: 8px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border);
  color: var(--text-primary); font-family: var(--font-mono); font-size: 18px;
  text-align: center; outline: none;
}
.custom-amount-row input:focus { border-color: var(--emerald); }
.donate-status {
  margin-top: 12px; font-size: 14px; min-height: 20px;
}
.donate-status.success { color: var(--emerald); }
.donate-status.error { color: #FF4466; }
#paypal-button-container { min-height: 50px; margin-top: 8px; }

/* ---- Responsive ---- */
@media (max-width: 1400px) {
  #npc-list { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  #npc-list { grid-template-columns: repeat(2, 1fr); }
  main { padding: 24px 24px 100px; }
}
@media (max-width: 768px) {
  .npc-traits { grid-template-columns: 1fr; }
  .hdr-row1 { padding: 4px 0 0; }
  #site-title { font-size: 15px; }
  #site-subtitle { display: none; }
  .hdr-divider { display: none; }
  .hdr-row2 { gap: 8px; flex-wrap: wrap; }
  .hdr-left { gap: 6px; }
  .hdr-stat { font-size: 10px; }
  .hdr-gauge { min-width: 40px; }
  .btn-donate { font-size: 9px; padding: 5px 10px; }
  .subscribe-icon { top: 80px; left: 10px; width: 36px; height: 36px; }
}
@media (max-width: 640px) {
  main { padding: 10px 10px; }
  #npc-list { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .npc-name { font-size: 14px; }
  .npc-hero-overlay { padding: 60px 10px 10px; }
}
