/* MASTERCLASS — industrial salvage palette: brushed steel, rust oxide, sulfur,
   and one scarce red reserved for the demon's eyes and the live state. */
:root {
  --slag: #0b0c0e;
  --pit: #101216;
  --plate: #16191e;
  --plate-2: #1e232a;
  --edge: rgba(232, 228, 220, 0.1);
  --edge-hi: rgba(232, 228, 220, 0.22);
  --oxide: #b4451f;
  --oxide-lt: #e0662f;
  --sulfur: #e6b422;
  --demon: #ff2020;
  --bone: #e8e4dc;
  --ash: #8d8a84;

  --display: 'Big Shoulders Display', 'Arial Narrow', Impact, sans-serif;
  --body: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;

  --shell: 1120px;
  --gutter: clamp(18px, 4vw, 48px);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  position: relative;
  margin: 0;
  min-height: 100dvh;
  background: var(--slag);
  background-image: linear-gradient(180deg, rgba(180, 69, 31, 0.1), transparent 520px);
  background-repeat: no-repeat;
  color: var(--bone);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

/* In-game footage behind the wordmark, masked out before it can leave a seam. */
.skyline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 380px;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
  background: url('/assets/banner.jpg') center top / cover no-repeat;
  background-image: image-set(url('/assets/banner.webp') type('image/webp'), url('/assets/banner.jpg') type('image/jpeg'));
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.4) 55%, transparent 100%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.4) 55%, transparent 100%);
}

.grain {
  position: fixed;
  inset: -50%;
  pointer-events: none;
  z-index: 3;
  opacity: 0.2;
  mix-blend-mode: overlay;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="160" height="160"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.85" numOctaves="3" stitchTiles="stitch"/></filter><rect width="160" height="160" filter="url(%23n)"/></svg>');
}

/* The signature: the helmet's eye-light bleeding into the page, drifting with
   the pointer. Driven by --gx/--gy from app.js. */
.eyeglow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(440px 440px at var(--gx, 26%) var(--gy, 30%), rgba(255, 32, 32, 0.16), rgba(255, 32, 32, 0.04) 45%, transparent 70%);
}

main, .rail, .foot { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--sulfur);
  outline-offset: 3px;
}

/* ---------- status rail ---------- */
.rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 18px var(--gutter);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ash);
}

.rail__mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--bone);
  font-weight: 500;
}

.rail__mark span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  background: linear-gradient(160deg, var(--plate-2), var(--plate));
  border: 1px solid var(--edge-hi);
  color: var(--oxide-lt);
  font-weight: 600;
  letter-spacing: 0;
}

.rail__meta { opacity: 0.75; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--edge);
  background: rgba(16, 18, 22, 0.72);
  color: var(--ash);
  transition: border-color 0.2s, color 0.2s;
}

.status:hover { border-color: var(--edge-hi); color: var(--bone); }

.status span { white-space: nowrap; }

.status__dot {
  width: 7px;
  height: 7px;
  background: var(--ash);
  border-radius: 50%;
}

.status.is-live { color: var(--bone); border-color: rgba(255, 32, 32, 0.5); }
.status.is-live .status__dot { background: var(--demon); animation: pulse 1.6s ease-in-out infinite; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 32, 32, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(255, 32, 32, 0); }
}

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(200px, 320px) 1fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(24px, 6vw, 72px) var(--gutter) clamp(32px, 6vw, 80px);
}

.portrait {
  position: relative;
  margin: 0;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--edge-hi);
  box-shadow:
    0 0 0 8px rgba(11, 12, 14, 0.6),
    0 0 70px rgba(255, 32, 32, 0.28),
    inset 0 0 40px rgba(0, 0, 0, 0.5);
}

.portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(1.05);
}

/* Machined bezel: tick marks cut into the rim. */
.portrait__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(232, 228, 220, 0.35) 0deg 0.6deg, transparent 0.6deg 6deg);
  -webkit-mask: radial-gradient(circle, transparent 0 calc(50% - 9px), #000 calc(50% - 9px) calc(50% - 4px), transparent calc(50% - 4px));
  mask: radial-gradient(circle, transparent 0 calc(50% - 9px), #000 calc(50% - 9px) calc(50% - 4px), transparent calc(50% - 4px));
  animation: sweep 44s linear infinite;
}

@keyframes sweep { to { transform: rotate(360deg); } }

.portrait__cap {
  margin: 14px 0 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ash);
  text-align: center;
}

.wordmark {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(3.6rem, 12.5vw, 9rem);
  line-height: 0.8;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.wordmark span { display: block; }

.wordmark__solid {
  color: var(--bone);
  text-shadow: 0 0 34px rgba(255, 32, 32, 0.18);
}

/* Second half cut out of sheet metal rather than printed on it. */
.wordmark__hollow {
  color: transparent;
  -webkit-text-stroke: 2px var(--oxide-lt);
}

.handle {
  margin: 18px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--sulfur);
}

.tagline {
  margin: 10px 0 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.6vw, 1.6rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone);
}

.bio {
  margin: 8px 0 0;
  max-width: 46ch;
  color: var(--ash);
  font-size: 15px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 26px 0 0;
  border-top: 1px solid var(--edge);
  border-bottom: 1px solid var(--edge);
}

.stat {
  min-width: 0;
  padding: 12px 18px 12px 0;
  border-right: 1px solid var(--edge);
}

.stat:last-child { border-right: 0; }
.stat + .stat { padding-left: 18px; }

.stat dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ash);
}

.stat dd {
  margin: 2px 0 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  line-height: 1;
  color: var(--bone);
  font-variant-numeric: tabular-nums;
}

.socials {
  display: flex;
  gap: 10px;
  margin: 24px 0 0;
}

.social {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: linear-gradient(160deg, var(--plate-2), var(--plate));
  border: 1px solid var(--edge);
  color: var(--bone);
  transition: transform 0.18s, border-color 0.18s, color 0.18s, box-shadow 0.18s;
}

.social svg { width: 20px; height: 20px; }

.social:hover {
  transform: translateY(-2px);
  border-color: var(--edge-hi);
  color: var(--oxide-lt);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

/* ---------- sections ---------- */
.section {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(36px, 7vw, 72px);
}

.eyebrow {
  margin: 0 0 16px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ash);
}

/* ---------- link plates ---------- */
.plates {
  display: grid;
  gap: 10px;
}

.plate {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  overflow: hidden;
  background: linear-gradient(150deg, var(--plate-2) 0%, var(--plate) 55%, #12151a 100%);
  border: 1px solid var(--edge);
  border-left: 3px solid rgba(232, 228, 220, 0.16);
  transition: transform 0.18s ease, border-left-color 0.18s, border-color 0.18s, box-shadow 0.18s;
}

.plate::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, 0.07) 50%, transparent 65%);
  transform: translateX(-100%);
  transition: transform 0.55s ease;
  pointer-events: none;
}

.plate:hover, .plate:focus-visible {
  transform: translateX(4px);
  border-color: var(--edge-hi);
  border-left-color: var(--demon);
  box-shadow: -6px 0 26px rgba(255, 32, 32, 0.15), 0 10px 30px rgba(0, 0, 0, 0.45);
}

.plate:hover::after { transform: translateX(100%); }

.plate--featured {
  border-left-color: var(--sulfur);
  background: linear-gradient(150deg, #24211a 0%, var(--plate) 60%, #12151a 100%);
}

.plate__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: rgba(11, 12, 14, 0.6);
  border: 1px solid var(--edge);
  color: var(--bone);
}

.plate__icon svg { width: 22px; height: 22px; }

.plate__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.25rem, 3.4vw, 1.6rem);
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.plate__sub {
  margin: 2px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ash);
}

.plate__badge {
  padding: 2px 7px;
  background: var(--sulfur);
  color: #12100a;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.plate__go {
  font-family: var(--mono);
  font-size: 18px;
  color: var(--ash);
  transition: transform 0.18s, color 0.18s;
}

.plate:hover .plate__go { color: var(--oxide-lt); transform: translateX(3px); }

/* ---------- latest drops ---------- */
.drops {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}

.drop {
  display: flex;
  flex-direction: column;
  background: var(--plate);
  border: 1px solid var(--edge);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.drop:hover {
  transform: translateY(-3px);
  border-color: var(--edge-hi);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
}

.drop__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0e1013;
}

.drop__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.75) contrast(1.05);
  transition: transform 0.4s ease, filter 0.3s;
}

.drop:hover .drop__thumb img { transform: scale(1.05); filter: none; }

.drop__body { padding: 12px 14px 14px; }

.drop__title {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.drop__meta {
  margin: 8px 0 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ash);
}

.allvids {
  display: inline-block;
  margin: 18px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ash);
  border-bottom: 1px solid var(--edge-hi);
  padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s;
}

.allvids:hover { color: var(--oxide-lt); border-color: var(--oxide-lt); }

/* ---------- footer ---------- */
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 20px var(--gutter) 32px;
  border-top: 1px solid var(--edge);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ash);
}

.foot__ver { opacity: 0.7; }

/* ---------- entrance ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding-top: 8px;
  }

  .hero__portrait { width: min(220px, 52vw); }
  .bio { margin-inline: auto; }
  .socials { justify-content: center; }
  .stats { width: 100%; }
  .stat { text-align: left; }
  .rail__meta { display: none; }
}

@media (max-width: 520px) {
  .plate { grid-template-columns: 44px 1fr auto; gap: 12px; padding: 14px; }
  .plate__icon { width: 40px; height: 40px; }
  .plate__title { font-size: 1.15rem; }
  .drops { grid-template-columns: 1fr; }
  .rail { font-size: 10px; padding-inline: 16px; }
  .status__more { display: none; }
  .stat { padding-right: 10px; }
  .stat + .stat { padding-left: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Command-center additions: CTAs, status/wipe panel, featured drop, base
   archive, filterable drops, solo code and community cards.
   ========================================================================== */

/* ---------- hero identity + CTAs ---------- */
.tagline__who { color: var(--oxide-lt); }
.tagline__sep { margin: 0 8px; color: var(--ash); }

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border: 1px solid var(--edge-hi);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 0.16s, background 0.16s, border-color 0.16s, box-shadow 0.16s;
}

.btn--go {
  background: var(--oxide);
  border-color: var(--oxide-lt);
  color: #fdf6f1;
  box-shadow: 0 8px 24px rgba(180, 69, 31, 0.3);
}

.btn--go:hover { background: var(--oxide-lt); transform: translateY(-2px); }

.btn--ghost { background: rgba(16, 18, 22, 0.7); color: var(--bone); }
.btn--ghost:hover { border-color: var(--bone); transform: translateY(-2px); }

.btn__icon { display: grid; place-items: center; }
.btn__icon svg { width: 20px; height: 20px; }

/* When the stream is up, the primary action becomes the stream. */
.btn--live {
  background: var(--demon);
  border-color: #ff5a5a;
  color: #fff;
  box-shadow: 0 8px 26px rgba(255, 32, 32, 0.38);
  animation: livepulse 2.4s ease-in-out infinite;
}

.btn--live:hover { background: #ff3b3b; }

@keyframes livepulse {
  0%, 100% { box-shadow: 0 8px 26px rgba(255, 32, 32, 0.32); }
  50% { box-shadow: 0 8px 34px rgba(255, 32, 32, 0.6); }
}

/* The whole page runs hotter while he is live. */
body.is-live .eyeglow {
  background: radial-gradient(520px 520px at var(--gx, 26%) var(--gy, 30%), rgba(255, 32, 32, 0.3), rgba(255, 32, 32, 0.08) 45%, transparent 72%);
}

body.is-live .portrait {
  box-shadow:
    0 0 0 8px rgba(11, 12, 14, 0.6),
    0 0 110px rgba(255, 32, 32, 0.55),
    inset 0 0 40px rgba(0, 0, 0, 0.5);
}

.stat--highlight dd a {
  color: var(--sulfur);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.stat--highlight dd a:hover { border-color: var(--sulfur); }

/* ---------- 02 status + next wipe ---------- */
.command {
  margin-bottom: clamp(32px, 6vw, 56px);
  background: linear-gradient(90deg, rgba(30, 35, 42, 0.92), rgba(16, 18, 22, 0.55));
  border-block: 1px solid var(--edge);
}

.command__inner {
  display: grid;
  grid-template-columns: 6px 1fr 1fr;
  gap: clamp(18px, 4vw, 48px);
  max-width: var(--shell);
  margin: 0 auto;
  padding: 22px var(--gutter);
}

.command__hazard {
  align-self: stretch;
  background: repeating-linear-gradient(45deg, var(--sulfur) 0 5px, #12100a 5px 10px);
  opacity: 0.85;
}

.panel { min-width: 0; }

.panel__title {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ash);
}

.readout { margin: 0; display: grid; gap: 7px; }

.readout > div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  align-items: baseline;
}

.readout dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ash);
}

.readout dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--bone);
}

.readout dd.is-live { color: var(--demon); font-weight: 600; }

.wipeclock {
  margin: 0 0 10px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  line-height: 1;
  letter-spacing: 0.03em;
  color: var(--sulfur);
  font-variant-numeric: tabular-nums;
}

.ics {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ash);
  border-bottom: 1px solid var(--edge-hi);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.ics:hover { color: var(--sulfur); border-color: var(--sulfur); }

/* ---------- 03 featured drop ---------- */
.featured {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  background: linear-gradient(150deg, var(--plate-2), var(--plate));
  border: 1px solid var(--edge);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.featured:hover {
  border-color: var(--edge-hi);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
}

.featured__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0e1013;
}

.featured__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured:hover .featured__thumb img { transform: scale(1.04); }

.featured__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: clamp(18px, 3vw, 32px);
}

.featured__tag {
  align-self: start;
  padding: 3px 8px;
  background: var(--sulfur);
  color: #12100a;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.featured__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  line-height: 1.02;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.featured__meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ash);
}

.featured__go {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--oxide-lt);
}

/* ---------- 05 base archive ---------- */
.bases {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.base {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(150deg, var(--plate-2), var(--plate));
  border: 1px solid var(--edge);
}

.base__name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.base__specs { margin: 0; display: grid; gap: 5px; }

.base__specs > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.base__specs dt { color: var(--ash); }
.base__specs dd { margin: 0; color: var(--bone); }

.base__lock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sulfur);
}

.unlock {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 18px;
  border: 1px solid var(--sulfur);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sulfur);
  transition: background 0.2s, color 0.2s;
}

.unlock:hover { background: var(--sulfur); color: #12100a; }

/* ---------- 06 filters ---------- */
.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.chip {
  padding: 6px 12px;
  background: transparent;
  border: 1px solid var(--edge);
  color: var(--ash);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.16s, border-color 0.16s, background 0.16s;
}

.chip:hover { color: var(--bone); border-color: var(--edge-hi); }

.chip[aria-pressed='true'] {
  background: rgba(224, 102, 47, 0.14);
  border-color: var(--oxide-lt);
  color: var(--oxide-lt);
}

.chip b { font-weight: 500; opacity: 0.6; }

.drop__badges {
  position: absolute;
  inset: auto 8px 8px 8px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}

.drop__tag,
.drop__dur {
  padding: 2px 6px;
  background: rgba(6, 7, 8, 0.82);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone);
}

.drop__tag { color: var(--sulfur); }

/* ---------- 07 the solo code ---------- */
.code {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--edge);
  border: 1px solid var(--edge);
}

.code li {
  padding: 20px 18px;
  background: var(--slag);
}

.code__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.code__title::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--demon);
  box-shadow: 0 0 10px rgba(255, 32, 32, 0.7);
}

.code__detail {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--ash);
}

/* ---------- 08 community ---------- */
.community {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.hq {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: linear-gradient(150deg, var(--plate-2), var(--plate));
  border: 1px solid var(--edge);
  border-top: 3px solid #5865f2;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}

.hq--twitch { border-top-color: #9146ff; }

.hq:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}

.hq__head { display: flex; align-items: center; gap: 10px; }
.hq__icon { display: grid; place-items: center; color: var(--bone); }
.hq__icon svg { width: 22px; height: 22px; }

.hq__name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hq__counts { display: flex; gap: 18px; }

.hq__count {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ash);
}

.hq__count b {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: 0.02em;
  color: var(--bone);
}

.hq__count--online b { color: #3ba55d; }

.hq__state,
.hq__perks {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ash);
}

.hq__state.is-live { color: var(--demon); font-weight: 600; text-transform: uppercase; }

.hq__go {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--oxide-lt);
}

/* ---------- responsive for the new blocks ---------- */
@media (max-width: 900px) {
  .featured { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .cta { justify-content: center; }
  .code { text-align: left; }
}

@media (max-width: 760px) {
  .command__inner {
    grid-template-columns: 6px 1fr;
    row-gap: 24px;
  }
  .command__hazard { grid-row: 1 / 3; }
  .readout > div { grid-template-columns: 118px 1fr; }
}

@media (max-width: 520px) {
  .btn { width: 100%; justify-content: center; }
  .readout > div { grid-template-columns: 1fr; gap: 0; }
}

/* ==========================================================================
   Transmission line, performance guards and a calmer live state.
   ========================================================================== */

/* A short line from MR AURA, stamped by the server when it changes. */
.transmission {
  margin: 14px 0 0;
  padding: 8px 10px;
  border-left: 2px solid var(--demon);
  background: rgba(255, 32, 32, 0.06);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--bone);
}

.transmission b {
  color: var(--demon);
  font-weight: 500;
  letter-spacing: 0.12em;
}

/* Below-the-fold sections are not laid out until they are near the viewport. */
#featuredSection,
#basesSection,
#latestSection,
#codeSection,
#communitySection {
  content-visibility: auto;
  contain-intrinsic-size: auto 520px;
}

/* Full-screen blend modes are expensive on phone GPUs and barely visible there. */
@media (max-width: 720px) {
  .grain { display: none; }
  .eyeglow { background: radial-gradient(320px 320px at 50% 22%, rgba(255, 32, 32, 0.14), transparent 70%); }
}

/* Live should be felt, not shouted: a hotter room, not a different site. */
body.is-live .eyeglow {
  background: radial-gradient(500px 500px at var(--gx, 26%) var(--gy, 30%), rgba(255, 32, 32, 0.22), rgba(255, 32, 32, 0.06) 45%, transparent 72%);
}

body.is-live .portrait {
  box-shadow:
    0 0 0 8px rgba(11, 12, 14, 0.6),
    0 0 90px rgba(255, 32, 32, 0.42),
    inset 0 0 40px rgba(0, 0, 0, 0.5);
}
