
:root {
  --bg: #07080c;
  --bg2: #0c0e14;
  --panel: rgba(14, 18, 28, 0.92);
  --border: rgba(0, 255, 140, 0.18);
  --green: #00ff8c;
  --green-dim: #00c46a;
  --cyan: #5ce1ff;
  --purple: #b56bff;
  --text: #e8ecf2;
  --muted: #8b93a7;
  --danger: #ff4d6d;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
  --radius: 14px;
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--green); }
img { max-width: 100%; display: block; }
.wrap { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; }
.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(7, 8, 12, 0.85);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.site-header .inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.85rem 0;
}
.brand {
  display: flex; align-items: center; gap: 0.65rem;
  color: var(--text); font-weight: 700; letter-spacing: 0.04em;
}
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  box-shadow: 0 0 18px rgba(0,255,140,0.35);
}
.nav { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; font-size: 0.9rem; }
.nav a { color: var(--muted); }
.nav a:hover, .nav a.is-active { color: var(--green); }
.hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 2.5rem;
  overflow: hidden;
}
.hero:before {
  content: "";
  position: absolute; inset: -20% -10% auto;
  height: 70%;
  background:
    radial-gradient(ellipse at 20% 40%, rgba(0,255,140,0.12), transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(91,225,255,0.1), transparent 50%),
    radial-gradient(ellipse at 60% 80%, rgba(181,107,255,0.08), transparent 45%);
  pointer-events: none;
}
.hero-kicker {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--green); margin: 0 0 0.75rem;
}
.hero h1 {
  margin: 0 0 0.75rem; font-size: clamp(1.9rem, 5vw, 3.1rem);
  line-height: 1.08; letter-spacing: -0.02em; max-width: 16ch;
}
.hero h1 span { color: var(--green); }
.hero-lead { max-width: 42rem; color: var(--muted); font-size: 1.05rem; margin: 0 0 1.5rem; position: relative; z-index: 2; }
.hero .hero-kicker, .hero h1, .hero .btn-row { position: relative; z-index: 2; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.65rem; }

/* Floating stickers / soul layer */
.sticker-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.sticker {
  position: absolute;
  width: clamp(72px, 12vw, 140px);
  height: auto;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.45));
  opacity: 0.95;
  transform-origin: center;
  animation: sticker-float 7s ease-in-out infinite;
}
.sticker--sm { width: clamp(56px, 9vw, 96px); }
.sticker--lg { width: clamp(96px, 16vw, 180px); }
.sticker--tilt-l { transform: rotate(-12deg); }
.sticker--tilt-r { transform: rotate(10deg); }
@keyframes sticker-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}
.sticker-rail {
  display: flex; flex-wrap: wrap; gap: 0.75rem 1rem;
  align-items: flex-end; justify-content: center;
  margin: 1.5rem 0 0.5rem;
  padding: 0.5rem 0 0;
}
.sticker-rail img {
  width: clamp(64px, 11vw, 110px);
  height: auto;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.4));
  transition: transform 0.2s ease;
}
.sticker-rail img:hover { transform: scale(1.08) rotate(-4deg); }
.vibe-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
  background: linear-gradient(135deg, rgba(0,255,140,0.06), rgba(181,107,255,0.08));
  border: 1px solid rgba(0,255,140,0.2);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  margin-top: 1.5rem;
  position: relative;
  overflow: hidden;
}
@media (max-width: 720px) {
  .vibe-strip { grid-template-columns: 1fr; }
  .sticker-layer .sticker { opacity: 0.55; }
}
.vibe-strip .vibe-art {
  display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center;
}
.vibe-strip .vibe-art img {
  width: clamp(80px, 14vw, 130px);
  height: auto;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.45));
}
.vibe-strip h3 { margin: 0 0 0.4rem; font-size: 1.15rem; }
.vibe-strip p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.meme-caption {
  font-family: var(--mono); font-size: 0.78rem; color: var(--green);
  letter-spacing: 0.04em; margin: 0.5rem 0 0;
}
.crew-sticker-row {
  display: flex; flex-wrap: wrap; gap: 0.55rem;
  justify-content: flex-start; margin: 1rem 0 0;
}
.crew-sticker-row img {
  width: 56px; height: 56px; border-radius: 50%;
  border: 2px solid rgba(0,255,140,0.35);
  object-fit: cover;
  background: #0a0c10;
}
/* Heat badges (no raw play counts) */
.heat {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
}
.heat--hot {
  color: #1a0800;
  background: linear-gradient(135deg, #ff6b2c, #ffd166);
  border-color: rgba(255, 180, 60, 0.6);
  box-shadow: 0 0 12px rgba(255, 120, 40, 0.35);
}
.heat--popular {
  color: #04120c;
  background: linear-gradient(135deg, var(--green), #7dffc8);
  border-color: rgba(0,255,140,0.45);
}
.heat--released {
  color: var(--muted);
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
}
.game-card .g-meta {
  margin: 0.3rem 0 0;
  display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center;
}
.game-card .genres {
  font-size: 0.7rem; color: var(--muted); font-family: var(--mono);
}

/* Featured game on landing cards */
.creator-card { position: relative; }
.featured-game {
  position: relative;
  margin: 0 1rem 0.75rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0,255,140,0.28);
  background: #0a0c12;
}
.featured-game img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.featured-game .fg-label {
  position: absolute; left: 0.5rem; top: 0.5rem;
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(0,0,0,0.72); color: var(--green);
  padding: 0.2rem 0.45rem; border-radius: 6px;
  border: 1px solid rgba(0,255,140,0.3);
}
.featured-game .fg-title {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.4rem 0.6rem 0.5rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.88));
  font-size: 0.82rem; font-weight: 700; color: var(--text);
  line-height: 1.2;
}
.creator-card .avatar { width: 64px; height: 64px; }

/* Upcoming */
.upcoming-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.9rem;
}
.upcoming-card {
  background: var(--panel);
  border: 1px dashed rgba(181,107,255,0.4);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}
.upcoming-card img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #10141c;
}
.upcoming-card .ub {
  padding: 0.7rem 0.8rem 0.9rem;
}
.upcoming-card .ustatus {
  font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--purple);
}
.upcoming-card h3 { margin: 0.25rem 0 0.35rem; font-size: 1.05rem; }
.upcoming-card .utag {
  font-size: 0.78rem; color: var(--cyan); margin: 0 0 0.4rem;
}
.upcoming-card p { margin: 0; font-size: 0.88rem; color: var(--muted); line-height: 1.4; }
.upcoming-empty {
  color: var(--muted); font-size: 0.92rem;
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: 12px; padding: 1rem 1.1rem;
}

/* Stickers get their OWN row — never absolute over cards/text */
.profile-shell { position: relative; isolation: isolate; }
/* Kill any legacy floating stickers — never overlay content */
.float-sticker,
.profile-shell .float-sticker { display: none !important; }
.section-rel .perch { display: none !important; }
.sticker-band {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: flex-end;
  gap: 0.35rem 1.25rem;
  position: relative;
  z-index: 0;
  clear: both;
  margin: 0.75rem 0 1.75rem;
  padding: 1rem 0.5rem 1.15rem;
  min-height: 7.5rem;
  overflow: visible;
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  pointer-events: none;
  /* own horizontal band only — not stacked over grids/sections */
  contain: layout;
}
/* Stickers stay in-flow flex children — never absolute over grid */
.sticker-band img,
.sticker-band > * {
  position: relative;
  left: auto;
  top: auto;
  right: auto;
  bottom: auto;
  width: clamp(68px, 10vw, 104px);
  height: auto;
  max-height: 7rem;
  flex: 0 0 auto;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,0.45));
  opacity: 0.95;
}
.sticker-band img:nth-child(1) { transform: rotate(-9deg) translateY(6px); }
.sticker-band img:nth-child(2) { transform: rotate(7deg) translateY(-4px); }
.sticker-band img:nth-child(3) { transform: rotate(-5deg) translateY(3px); }
.sticker-band img:nth-child(4) { transform: rotate(11deg) translateY(-2px); }
.sticker-band img:nth-child(5) { transform: rotate(-7deg) translateY(5px); }
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.7rem 1.1rem; border-radius: 999px; font-weight: 600; font-size: 0.92rem;
  border: 1px solid transparent; transition: 0.15s ease;
}
.btn-primary { background: var(--green); color: #04140c; }
.btn-primary:hover { filter: brightness(1.08); color: #04140c; }
.btn-ghost {
  background: transparent; color: var(--text);
  border-color: rgba(255,255,255,0.14);
}
.btn-ghost:hover { border-color: var(--green); color: var(--green); }
.btn-heat {
  background: linear-gradient(135deg, #ff6b35, #ffd166);
  color: #1a0800; border: none;
}
.btn-heat:hover { filter: brightness(1.06); color: #1a0800; }
.section { padding: 2.5rem 0; }
.section-head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: 0.75rem; margin-bottom: 1.25rem;
}
.section-head h2 { margin: 0; font-size: 1.45rem; letter-spacing: -0.01em; }
.section-head p { margin: 0; color: var(--muted); max-width: 36rem; font-size: 0.95rem; }

/* SpawnJam 23 heat band + weekly results archive */
.jam-hero {
  position: relative;
  padding: clamp(1.6rem, 4vw, 2.4rem) 0 2rem;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,107,53,0.28);
  background:
    radial-gradient(ellipse at 12% 30%, rgba(255,107,53,0.2), transparent 52%),
    radial-gradient(ellipse at 88% 70%, rgba(255,209,102,0.1), transparent 48%),
    linear-gradient(180deg, #140a08 0%, var(--bg) 100%);
}
.jam-hero .wrap { position: relative; z-index: 2; }
.jam-hero-kicker {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: #ff8a4c; margin: 0 0 0.55rem;
}
.jam-hero h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.55rem, 4vw, 2.35rem);
  line-height: 1.1; letter-spacing: -0.02em;
}
.jam-hero h2 span { color: #ff6b35; }
.jam-hero-lead { color: var(--muted); max-width: 42rem; margin: 0 0 0.9rem; font-size: 1.02rem; }
.jam-meta {
  display: flex; flex-wrap: wrap; gap: 0.45rem 0.65rem;
  margin: 0 0 0.95rem;
}
.jam-pill {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.03em;
  padding: 0.32rem 0.68rem; border-radius: 999px;
  border: 1px solid rgba(255,107,53,0.35);
  background: rgba(255,107,53,0.09);
  color: #ffc9a8;
}
.jam-pill strong { color: #fff; font-weight: 700; }
.jam-prizes {
  display: flex; flex-wrap: wrap; gap: 0.35rem 0.85rem;
  font-size: 0.84rem; color: var(--muted); margin: 0 0 1.05rem;
}
.jam-prizes span { white-space: nowrap; }
.jam-prizes b { color: #ffd166; font-weight: 600; }
.jam-rule {
  font-size: 0.88rem; color: #ffb8a0; margin: 0 0 1.1rem; max-width: 40rem;
}
.jam-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}
.jam-card {
  background: var(--panel);
  border: 1px solid rgba(255,107,53,0.22);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  display: flex; flex-direction: column; gap: 0.55rem;
}
.jam-card.is-live {
  border-color: rgba(255,107,53,0.5);
  box-shadow: 0 0 28px rgba(255,80,20,0.12);
}
.jam-card .jam-week {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: #ff8a4c; margin: 0;
}
.jam-card h3 { margin: 0; font-size: 1.15rem; }
.jam-card .theme { color: #ff6b35; font-weight: 600; margin: 0; }
.jam-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.jam-card .standings {
  margin: 0.15rem 0 0; padding: 0; list-style: none; font-size: 0.88rem;
}
.jam-card .standings li {
  display: flex; justify-content: space-between; gap: 0.5rem;
  padding: 0.28rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: var(--muted);
}
.jam-card .standings li strong { color: var(--text); font-weight: 600; }
.jam-card .standings .score {
  color: #ff8a4c; font-family: var(--mono); font-size: 0.8rem; white-space: nowrap;
}
.jam-note {
  font-family: var(--mono); font-size: 0.74rem; color: #ffb38a; margin: 0.15rem 0 0;
}
.jam-play-link {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.88rem; font-weight: 600; color: #ff8a4c;
  margin: 0.15rem 0 0.55rem;
}
.jam-play-link:hover { color: #ffd166; }
.jam-card .standings a {
  color: var(--text); font-weight: 600; text-decoration: none;
}
.jam-card .standings a:hover { color: #ff8a4c; }
.jam-pending-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.85rem;
  margin-top: 0.5rem;
}
.jam-pending-card {
  background: rgba(14, 18, 28, 0.9);
  border: 1px dashed rgba(255,107,53,0.35);
  border-radius: 12px;
  padding: 1rem 1.05rem;
  display: flex; flex-direction: column; gap: 0.4rem;
}
.jam-pending-card h4 { margin: 0; font-size: 1.02rem; color: var(--text); }
.jam-pending-card .by { margin: 0; color: var(--muted); font-size: 0.88rem; }
.jam-pending-card .blurb { margin: 0; color: var(--muted); font-size: 0.86rem; flex: 1; }
.jam-badge-pending {
  display: inline-block; align-self: flex-start;
  font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: #1a0800;
  background: linear-gradient(135deg, #ffb347, #ffd166);
  padding: 0.15rem 0.45rem; border-radius: 999px; font-weight: 700;
}
.jam-report-banner {
  background: linear-gradient(90deg, rgba(255,107,53,0.15), rgba(255,209,102,0.08));
  border-bottom: 1px solid rgba(255,107,53,0.28);
  padding: 0.75rem 0;
  font-size: 0.9rem;
}
.jam-report-banner .wrap {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1rem;
  align-items: center; justify-content: space-between;
}
.jam-report-banner p { margin: 0; color: var(--muted); }
.jam-report-banner strong { color: #ffc9a8; }
.jam-report-body {
  padding: 1.5rem 0 2.5rem;
  background: #0f1115;
}
.jam-report-body .report-inner {
  width: min(860px, calc(100% - 2rem));
  margin: 0 auto;
}
.creator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.creator-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: visible;
  transition: border-color 0.15s, transform 0.15s;
}
.creator-card:hover {
  border-color: rgba(0,255,140,0.45);
  transform: translateY(-2px);
}
/* no card-perch over titles — stickers stay off readable card chrome */
.creator-card .card-perch { display: none; }
.creator-card .top {
  display: flex; gap: 0.9rem; padding: 1rem 1rem 0.6rem; align-items: center;
}
.avatar {
  width: 72px; height: 72px; border-radius: 50%;
  object-fit: cover; border: 2px solid rgba(0,255,140,0.45);
  background: #111;
  flex-shrink: 0;
}
.creator-card h3 { margin: 0; font-size: 1.15rem; }
.creator-card .role { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.82rem; }
.creator-card .body { padding: 0 1rem 1rem; }
.creator-card .blurb {
  margin: 0.4rem 0 0.75rem; color: var(--muted); font-size: 0.9rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.8rem; }
.tag {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--cyan);
  border: 1px solid rgba(92,225,255,0.25); border-radius: 999px;
  padding: 0.15rem 0.5rem;
}
.meta-line { color: var(--muted); font-size: 0.82rem; margin-bottom: 0.75rem; }
.game-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem;
  margin-bottom: 0.85rem;
}
.game-strip img {
  aspect-ratio: 1; object-fit: cover; border-radius: 8px;
  background: #10141c; border: 1px solid rgba(255,255,255,0.06);
}
.blog-card {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 1.25rem; align-items: center;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem;
}
@media (max-width: 720px) {
  .blog-card { grid-template-columns: 1fr; }
}
.blog-card .preview-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.35rem;
}
.blog-card .preview-grid img {
  aspect-ratio: 4/5; object-fit: cover; border-radius: 6px; opacity: 0.9;
}
.site-footer {
  margin-top: 3rem; padding: 2rem 0 3rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: var(--muted); font-size: 0.88rem;
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--green); }

/* Profile */
.profile-hero {
  display: grid; grid-template-columns: auto 1fr; gap: 1.5rem;
  align-items: center; padding: 2.5rem 0 1.5rem;
}
.profile-hero .avatar-xl {
  width: min(180px, 36vw); height: min(180px, 36vw);
  border-radius: 50%; object-fit: cover;
  border: 3px solid rgba(0,255,140,0.5);
  box-shadow: 0 0 40px rgba(0,255,140,0.15);
}
.profile-hero h1 { margin: 0 0 0.35rem; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.profile-hero .role { color: var(--green); margin: 0 0 0.6rem; font-size: 0.95rem; }
.profile-hero .blurb { color: var(--muted); max-width: 40rem; margin: 0 0 1rem; }
@media (max-width: 600px) {
  .profile-hero { grid-template-columns: 1fr; text-align: center; }
  .profile-hero .avatar-xl { margin: 0 auto; }
  .profile-hero .btn-row { justify-content: center; }
  .tags { justify-content: center; }
}
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.85rem;
  position: relative;
  z-index: 2;
  overflow: visible;
}
.game-card {
  position: relative;
  z-index: 2;
  background: var(--panel); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px; overflow: hidden; transition: border-color 0.15s;
}
.game-card:hover { border-color: rgba(0,255,140,0.4); }
.game-card img { aspect-ratio: 1; object-fit: cover; width: 100%; background: #10141c; }
.game-card .g-body { padding: 0.55rem 0.65rem 0.7rem; }
.game-card h3 {
  margin: 0; font-size: 0.82rem; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  color: var(--text);
}


/* Blog / infographics article */
.article-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  padding: 1.5rem 0 3rem;
}
@media (max-width: 860px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-nav { position: static !important; }
}
.article-nav {
  position: sticky; top: 4.5rem;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.9rem;
  max-height: calc(100vh - 5.5rem); overflow: auto;
}
.article-nav h2 {
  margin: 0 0 0.6rem; font-size: 0.75rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); font-weight: 600;
}
.article-nav .cat { margin: 0.75rem 0 0.25rem; font-size: 0.78rem; color: var(--green); font-weight: 600; }
.article-nav a {
  display: block; padding: 0.28rem 0.35rem; border-radius: 6px;
  color: var(--muted); font-size: 0.82rem;
}
.article-nav a:hover, .article-nav a.is-active {
  background: rgba(0,255,140,0.08); color: var(--text);
}
.article-main h1 { margin: 0 0 0.5rem; font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
.article-main .lede { color: var(--muted); max-width: 42rem; margin: 0 0 1.5rem; }
.cat-block { margin: 2rem 0 1rem; }
.cat-block h2 { margin: 0 0 0.25rem; font-size: 1.2rem; }
.cat-block p { margin: 0 0 1rem; color: var(--muted); font-size: 0.92rem; }
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}
.info-card {
  background: var(--panel); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px; overflow: hidden; cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
  text-align: left; color: inherit; font: inherit; padding: 0; width: 100%;
}
.info-card:hover {
  border-color: rgba(0,255,140,0.45);
  transform: translateY(-2px);
}
.info-card img { aspect-ratio: 4/5; object-fit: cover; width: 100%; background: #0a0c12; }
.info-card .ib { padding: 0.55rem 0.6rem 0.7rem; }
.info-card .num {
  font-family: var(--mono); font-size: 0.68rem; color: var(--green); letter-spacing: 0.08em;
}
.info-card h3 { margin: 0.15rem 0; font-size: 0.88rem; line-height: 1.25; }
.info-card .ib p { margin: 0; font-size: 0.75rem; color: var(--muted); }

/* Lightbox: large, scrollable, legible (near native PNG width) */
.lb {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.92); display: none;
  align-items: stretch; justify-content: center;
  padding: 0;
  overflow: hidden;
}
.lb.is-open { display: flex; }
.lb-inner {
  position: relative;
  width: min(1320px, 100%);
  max-width: 100%;
  height: 100%;
  max-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  /* scroll the graphic; chrome stays sticky */
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0 0 1.25rem;
  box-sizing: border-box;
}
.lb-inner img {
  /* Prefer full intrinsic width (~1240px) so body text is readable */
  width: min(1280px, 98vw);
  max-width: 98vw;
  height: auto;
  max-height: none; /* allow tall infographics to scroll */
  margin: 0.65rem auto 0;
  border-radius: 10px;
  border: 1px solid rgba(0,255,140,0.28);
  box-shadow: 0 0 48px rgba(0,0,0,0.55);
  flex-shrink: 0;
}
.lb-bar {
  position: sticky;
  bottom: 0;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  color: var(--text);
  margin: 0.75rem auto 0;
  width: min(1280px, 98vw);
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  background: rgba(8, 10, 14, 0.94);
  border: 1px solid rgba(0,255,140,0.22);
  backdrop-filter: blur(10px);
  box-sizing: border-box;
}
.lb-bar h3 { margin: 0; font-size: 1.05rem; }
.lb-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.lb-actions button, .lb-close {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  color: var(--text); border-radius: 8px; padding: 0.5rem 0.85rem; cursor: pointer;
  font: inherit; font-size: 0.92rem;
}
.lb-actions button:hover, .lb-close:hover { border-color: var(--green); color: var(--green); }
.lb-close {
  position: sticky;
  top: 0.65rem;
  align-self: flex-end;
  margin: 0.65rem 0.65rem 0 auto;
  z-index: 4;
  background: rgba(8, 10, 14, 0.92);
}
