/* ==========================================================================
   Anarchy Arcade — site stylesheet (sample phase)
   Dark neon-arcade look. No external fonts, no CDNs — fully self-contained.
   ========================================================================== */

:root {
  /* RED BARRON DARK — the Core's own scheme (src/aarcadecore/ui/theme.js:
     the neutral dark MODE ramp + the red HUE). Grey is deliberately neutral,
     with no blue in it, so the red reads as the only colour in the room.
     This is a website rather than an Ultralight surface, so glows and
     gradients are allowed — but every value below traces to that scheme. */
  --bg:        #141414;  /* between the scheme's band #161616 and its inset */
  --bg-raise:  #1e1e1e;  /* --aa-window-bg */
  --bg-card:   #262626;  /* between --aa-window-bg and --aa-surface */
  --line:      #3a3a3a;  /* --aa-border */
  --line-hi:   #505050;  /* --aa-border-strong */
  --ink:       #e8e8e8;  /* --aa-text */
  --ink-dim:   #9d9d9d;  /* --aa-text-muted */
  --ink-faint: #6d6d6d;  /* --aa-text-dim */
  /* The red family. -a is the band red the scheme puts on title bars, -b the
     lighter accent it uses for text and marks on dark surfaces. The old names
     stay so no rule has to be rewritten twice. */
  --neon-a:    #c62828; /* --aa-titlebar-bg: the band red     */
  --neon-b:    #ff6b6b; /* --aa-accent (dark): the light red  */
  --neon-c:    #e8a735; /* --aa-warn: the ONE non-red, warnings only */
  --neon-d:    #7cc47c; /* --aa-success */
  --red-deep:  #992020; /* --aa-titlebar-edge */
  --red-fill:  #a02222; /* --aa-accent-fill */
  --red-dim:   #3a1616; /* --aa-accent-dim */
  --radius:    10px;
  --maxw:      1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* faint CRT scanlines over everything */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.015) 0px,
    rgba(255,255,255,0.015) 1px,
    transparent 1px,
    transparent 3px
  );
  z-index: 9999;
}

a { color: var(--neon-b); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- header / nav ---------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(20,20,20,0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 28px;
  height: 60px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; font-size: 15px;
  color: var(--ink); white-space: nowrap;
}
.logo b { color: var(--neon-b); }
.logo:hover { text-decoration: none; }

/* The AArcade mark — a cabinet with the anarchy A knocked out of it.
 *
 * Painted as a MASK rather than an <img> so it takes its colour from CSS and
 * can never disagree with the theme. The url() is relative to THIS FILE, not
 * to the page, which is why one rule serves the pages at the site root and the
 * ones a folder down without a second path. */
.logo-mark {
  flex: none;
  display: inline-block;
  width: 25px; height: 29px;
  background: var(--neon-b);
  -webkit-mask: url(aa-logo.svg) center/contain no-repeat;
          mask: url(aa-logo.svg) center/contain no-repeat;
}
.logo:hover .logo-mark { background: var(--ink); }

/* The same mark, standing on its own above the hero copy.
 * The glow lives on the WRAPPER and the mask on the child: a filter applied to
 * the same element it is masking is the fragile combination, and splitting them
 * is the version every engine agrees on. */
.hero-mark {
  width: 120px; height: 141px;
  margin: 0 auto 26px;
  filter: drop-shadow(0 0 26px rgba(198,40,40,0.5));
}
.hero-mark i {
  display: block;
  width: 100%; height: 100%;
  background: var(--neon-a);
  -webkit-mask: url(aa-logo.svg) center/contain no-repeat;
          mask: url(aa-logo.svg) center/contain no-repeat;
}
@media (max-width: 720px) {
  .hero-mark { width: 88px; height: 103px; margin-bottom: 20px; }
}
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a {
  color: var(--ink-dim); font-size: 14px; letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav a:hover, .nav a.active { color: var(--ink); text-decoration: none; }
.nav a.active { color: var(--neon-b); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 96px 0 72px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 50% -10%, rgba(198,40,40,0.16), transparent 65%),
    radial-gradient(ellipse 60% 45% at 85% 110%, rgba(255,107,107,0.10), transparent 60%);
}
/* perspective grid floor */
.hero::after {
  content: "";
  position: absolute; left: -20%; right: -20%; bottom: -40px; height: 240px;
  background:
    linear-gradient(to top, rgba(20,20,20,0) 0%, var(--bg) 95%),
    repeating-linear-gradient(90deg, rgba(198,40,40,0.22) 0 1px, transparent 1px 60px),
    repeating-linear-gradient(0deg,  rgba(198,40,40,0.22) 0 1px, transparent 1px 26px);
  transform: perspective(320px) rotateX(58deg);
  transform-origin: bottom;
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero .kicker {
  color: var(--neon-b); font-size: 13px; letter-spacing: 0.28em;
  text-transform: uppercase; margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.08; font-weight: 900; letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow:
    0 0 24px rgba(198,40,40,0.55),
    0 0 60px rgba(198,40,40,0.25);
}
.hero h1 .alt { color: var(--neon-b); text-shadow: 0 0 24px rgba(255,107,107,0.55); }
.hero .sub {
  margin: 22px auto 0; max-width: 640px;
  color: var(--ink-dim); font-size: 18px;
}
.hero .cta-row { margin-top: 36px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 12px 26px;
  border-radius: 6px; font-size: 14px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--neon-a); color: #14000b;
  box-shadow: 0 0 18px rgba(198,40,40,0.5);
}
.btn-primary:hover { box-shadow: 0 0 30px rgba(198,40,40,0.8); }
.btn-ghost {
  color: var(--neon-b); border-color: var(--neon-b);
}
.btn-ghost:hover { background: rgba(255,107,107,0.08); }

/* ---------- sections ---------- */

.section { padding: 72px 0; }
.section.alt { background: var(--bg-raise); border-block: 1px solid var(--line); }
.section h2 {
  font-size: 26px; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; margin-bottom: 8px;
}
.section h2 .tick { color: var(--neon-a); }
.section .lede { color: var(--ink-dim); max-width: 720px; margin-bottom: 36px; }

/* ---------- pillar trio ---------- */

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px;
}
/* The pillar mark is a drawn icon, not an emoji: a gutter-punk screen-print,
 * cut out on transparency so it sits ON the card rather than in a tile of its
 * own. The linework survives the dark ground because these are not line
 * drawings - every object carries grey and red mass inside its outline. */
.pillar .glyph {
  display: block;
  width: 116px; height: 116px;
  margin-bottom: 14px;
  object-fit: contain;
}
.pillar h3 { font-size: 17px; margin-bottom: 8px; letter-spacing: 0.03em; }
.pillar p { color: var(--ink-dim); font-size: 14.5px; }

/* ---------- feature cards ---------- */

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
  display: flex; flex-direction: column; gap: 8px;
  transition: border-color 0.15s, transform 0.15s;
}
.card:hover { border-color: var(--neon-a); transform: translateY(-2px); }
.card h3 { font-size: 15.5px; letter-spacing: 0.02em; }
.card p { color: var(--ink-dim); font-size: 13.5px; flex: 1; }
.card .tag-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.card a.more { font-size: 13px; margin-top: 6px; }

.tag {
  display: inline-block; font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink-faint);
}
.tag.retro    { color: var(--neon-a); border-color: rgba(198,40,40,0.45); }
.tag.media    { color: var(--neon-b); border-color: rgba(255,107,107,0.45); }
.tag.build    { color: var(--neon-c); border-color: rgba(255,195,77,0.45); }
.tag.awards   { color: var(--neon-d); border-color: rgba(124,255,107,0.45); }
.tag.tech     { color: #b48bff;      border-color: rgba(180,139,255,0.45); }
.tag.soon     { color: var(--ink-faint); border-style: dashed; }

/* ---------- filter bar (features page) ---------- */

.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.filter-bar button {
  background: none; border: 1px solid var(--line); color: var(--ink-dim);
  font: 700 12px/1 "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 9px 16px; border-radius: 999px; cursor: pointer;
}
.filter-bar button:hover { color: var(--ink); border-color: var(--ink-faint); }
.filter-bar button.active {
  color: var(--neon-b); border-color: var(--neon-b);
  box-shadow: 0 0 12px rgba(255,107,107,0.25);
}

/* ---------- frontends strip ---------- */

.frontends { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.frontend {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; background: var(--bg-card);
  position: relative;
}
.frontend.core { border-color: rgba(198,40,40,0.5); }
.frontend h3 { font-size: 16px; letter-spacing: 0.04em; margin-bottom: 6px; }
.frontend .status {
  position: absolute; top: 18px; right: 18px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-faint);
}
.frontend.core .status { color: var(--neon-d); }
.frontend p { color: var(--ink-dim); font-size: 13.5px; }

/* ---------- screenshot placeholder ---------- */

.shot {
  aspect-ratio: 16 / 9; border-radius: var(--radius);
  border: 1px dashed var(--line);
  background:
    radial-gradient(ellipse at 30% 20%, rgba(198,40,40,0.10), transparent 55%),
    radial-gradient(ellipse at 75% 80%, rgba(255,107,107,0.10), transparent 55%),
    var(--bg-raise);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-faint); font-size: 12.5px; letter-spacing: 0.08em;
  text-transform: uppercase; text-align: center; padding: 12px;
}

/* ---------- detail (showcase) page ---------- */

.detail-hero { padding: 64px 0 40px; }
.detail-hero .crumb { font-size: 13px; color: var(--ink-faint); margin-bottom: 14px; }
.detail-hero h1 {
  font-size: clamp(28px, 4.5vw, 44px); font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.03em;
  text-shadow: 0 0 22px rgba(198,40,40,0.4);
}
.detail-hero .sub { color: var(--ink-dim); font-size: 17px; max-width: 700px; margin-top: 14px; }

.detail-body { padding-bottom: 80px; }
.detail-body h2 {
  font-size: 20px; text-transform: uppercase; letter-spacing: 0.06em;
  margin: 48px 0 14px; color: var(--ink);
}
.detail-body h2::before { content: "▸ "; color: var(--neon-a); }
.detail-body p { color: var(--ink-dim); max-width: 760px; margin-bottom: 14px; }
.detail-body ul { color: var(--ink-dim); max-width: 760px; margin: 0 0 14px 22px; }
.detail-body li { margin-bottom: 6px; }
.detail-body li b, .detail-body p b { color: var(--ink); }
.detail-body .shot { margin: 20px 0; max-width: 760px; }

.spec-table { border-collapse: collapse; width: 100%; max-width: 760px; margin: 16px 0; font-size: 14px; }
.spec-table th, .spec-table td { border: 1px solid var(--line); padding: 9px 14px; text-align: left; }
.spec-table th { background: var(--bg-raise); color: var(--ink); text-transform: uppercase; font-size: 11.5px; letter-spacing: 0.08em; }
.spec-table td { color: var(--ink-dim); }
.spec-table td b { color: var(--ink); }

.callout {
  border-left: 3px solid var(--neon-b); background: rgba(255,107,107,0.05);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 18px; max-width: 760px; margin: 20px 0;
  color: var(--ink-dim); font-size: 14.5px;
}
.callout b { color: var(--neon-b); }

/* ---------- manual / knowledge base ---------- */

.manual-toc { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.manual-group {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px;
}
.manual-group h3 {
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--neon-c); margin-bottom: 12px;
}
.manual-group ul { list-style: none; }
.manual-group li { margin-bottom: 7px; font-size: 14.5px; }
.manual-group li a { color: var(--ink-dim); }
.manual-group li a:hover { color: var(--neon-b); }
.manual-group li .soon-note { color: var(--ink-faint); font-size: 12px; }

/* numbered figure annotation, old-game-manual style */
.fig { max-width: 760px; margin: 20px 0; }
.fig .fig-label {
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--neon-c); margin-bottom: 8px;
}
.hotspots { list-style: none; max-width: 760px; margin: 14px 0 20px; counter-reset: hs; }
.hotspots li {
  counter-increment: hs;
  position: relative; padding-left: 40px; margin-bottom: 10px;
  color: var(--ink-dim); font-size: 14.5px;
}
.hotspots li b { color: var(--ink); }
.hotspots li::before {
  content: counter(hs);
  position: absolute; left: 0; top: 1px;
  width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid var(--neon-c); color: var(--neon-c);
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

kbd {
  font: 700 12px/1 Consolas, "Courier New", monospace;
  background: var(--bg-raise); border: 1px solid var(--line);
  border-bottom-width: 2px; border-radius: 5px;
  padding: 3px 7px; color: var(--ink);
}

.manual-nav-row {
  display: flex; justify-content: space-between; gap: 14px;
  max-width: 760px; margin-top: 48px; font-size: 14px;
}

/* ---------- dev log ---------- */

.post-list { display: flex; flex-direction: column; gap: 18px; }
.post-card {
  display: grid; grid-template-columns: 260px 1fr; gap: 22px;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; align-items: start;
  transition: border-color 0.15s;
}
.post-card:hover { border-color: var(--neon-a); }
.post-card .shot { aspect-ratio: 16/9; font-size: 10.5px; }
/* card art is a thumbnail, hard-capped to the 260px column — never full-res, never stretching */
.post-card img.card-thumb {
  display: block; width: 100%; max-width: 100%; height: auto;
  aspect-ratio: 16/9; object-fit: cover;
  border: 1px solid var(--line); border-radius: var(--radius);
}
/* whole card is the link to the article */
.post-card { cursor: pointer; }
.post-card:hover img.card-thumb { border-color: var(--neon-a); }
.post-card .meta {
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 8px;
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
}
.post-card h3 { font-size: 20px; line-height: 1.25; margin-bottom: 8px; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--neon-a); text-decoration: none; }
.post-card p { color: var(--ink-dim); font-size: 14.5px; margin-bottom: 10px; }

.draft-flag {
  color: var(--neon-c); border: 1px solid rgba(255,195,77,0.5);
  border-radius: 999px; padding: 1px 8px; font-size: 10px;
}

.post-head { padding: 60px 0 8px; }
.post-head .meta {
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 14px;
  display: flex; gap: 12px; flex-wrap: wrap;
}
.post-head h1 {
  font-size: clamp(28px, 4.6vw, 46px); font-weight: 900; line-height: 1.1;
  text-transform: uppercase; letter-spacing: 0.02em;
  text-shadow: 0 0 22px rgba(198,40,40,0.4);
}
.post-head .deck { color: var(--ink-dim); font-size: 18px; max-width: 720px; margin-top: 14px; }
.post-body { padding-bottom: 80px; }
.post-body > .wrap > * { max-width: 760px; }
.post-body h2 {
  font-size: 21px; text-transform: uppercase; letter-spacing: 0.05em;
  margin: 46px 0 14px;
}
.post-body h2::before { content: "▸ "; color: var(--neon-a); }
.post-body p { color: var(--ink-dim); margin-bottom: 15px; }
.post-body ul, .post-body ol { color: var(--ink-dim); margin: 0 0 16px 22px; }
.post-body li { margin-bottom: 7px; }
.post-body b { color: var(--ink); }
.post-body code {
  font: 13px/1.4 Consolas, "Courier New", monospace;
  background: var(--bg-raise); border: 1px solid var(--line);
  border-radius: 4px; padding: 1px 5px; color: var(--neon-b);
}
.post-body pre {
  background: var(--bg-raise); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px; overflow-x: auto;
  margin-bottom: 18px;
}
.post-body pre code { background: none; border: 0; padding: 0; color: var(--ink-dim); }
.post-body blockquote {
  border-left: 3px solid var(--neon-a); padding: 4px 0 4px 18px;
  margin: 0 0 18px; color: var(--ink); font-style: italic;
}
.post-body blockquote cite { display: block; font-style: normal; font-size: 13px; color: var(--ink-faint); margin-top: 6px; }

figure { margin: 22px 0; }
figure img, figure video { max-width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); display: block; }
figure video { width: 100%; }
figure img.zoomable { cursor: zoom-in; transition: border-color 0.15s; }
figure img.zoomable:hover { border-color: var(--neon-a); }

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(4, 4, 10, 0.94);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px; padding: 40px 24px;
}
.lightbox[hidden] { display: none; }
.lightbox .lb-stage {
  max-width: 100%; max-height: calc(100vh - 150px);
  display: flex; align-items: center; justify-content: center;
}
.lightbox img, .lightbox video {
  max-width: 100%; max-height: calc(100vh - 150px);
  width: auto; height: auto; object-fit: contain;
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.8);
}
.lightbox .lb-caption {
  color: var(--ink-dim); font-size: 14px; text-align: center;
  max-width: 760px;
}
.lightbox .lb-close {
  position: absolute; top: 18px; right: 22px;
  background: none; border: 1px solid var(--line); color: var(--ink);
  width: 40px; height: 40px; border-radius: 50%;
  font-size: 24px; line-height: 1; cursor: pointer;
}
.lightbox .lb-close:hover { border-color: var(--neon-a); color: var(--neon-a); }
figcaption { color: var(--ink-faint); font-size: 13px; margin-top: 8px; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 22px 0; }
.stat {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px;
}
.stat .value { font-size: 24px; font-weight: 800; color: var(--neon-b); line-height: 1.15; }
.stat .label { font-size: 12px; color: var(--ink-faint); margin-top: 6px; }

.callout.win  { border-left-color: var(--neon-d); background: rgba(124,255,107,0.05); }
.callout.win b { color: var(--neon-d); }
.callout.warn { border-left-color: var(--neon-c); background: rgba(255,195,77,0.05); }
.callout.warn b { color: var(--neon-c); }

.shipped-list { list-style: none; margin-left: 0 !important; }
.shipped-list li {
  border-left: 2px solid var(--line); padding-left: 14px; margin-bottom: 12px;
}
.shipped-list li b { display: block; color: var(--ink); margin-bottom: 2px; }

.asset-req {
  border: 1px dashed var(--line); border-radius: var(--radius);
  background: var(--bg-raise); padding: 18px; color: var(--ink-faint);
  font-size: 12.5px; line-height: 1.6;
}
.asset-req .req-head {
  color: var(--neon-c); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 8px;
}
.asset-req .req-kv { display: block; }
.asset-req .req-kv b { color: var(--ink-dim); text-transform: uppercase; font-size: 10.5px; letter-spacing: 0.1em; }
.asset-req.skipped { border-style: solid; opacity: 0.75; }

.table-wrap { overflow-x: auto; margin: 22px 0; }
.table-wrap .spec-table { margin: 0; }
.table-wrap figcaption { color: var(--ink-faint); font-size: 13px; margin-top: 8px; }

.loading, .error-panel { color: var(--ink-faint); padding: 30px 0; }
.error-panel {
  border: 1px solid rgba(255,195,77,0.4); border-radius: var(--radius);
  background: rgba(255,195,77,0.05); padding: 20px 22px; color: var(--ink-dim);
  max-width: 760px;
}
.error-panel b { color: var(--neon-c); display: block; margin-bottom: 8px; }
.error-panel code { font-family: Consolas, monospace; color: var(--neon-b); }

@media (max-width: 700px) {
  .post-card { grid-template-columns: 1fr; }
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 56px; color: var(--ink-faint); font-size: 13px;
}
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--ink-dim); }

/* ---------- responsive ---------- */

@media (max-width: 880px) {
  .pillars, .card-grid, .frontends { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .pillars, .card-grid, .frontends { grid-template-columns: 1fr; }
  .nav { gap: 14px; }
  .nav a { font-size: 12.5px; }
  .hero { padding: 64px 0 56px; }
}

/* ---------- BETA corner flag ----------
 *
 * A diagonal band across the top-left corner of every page, so nobody mistakes a
 * sample-phase site for a finished product. Fixed rather than absolute: it is a
 * statement about the whole build, not about the top of one page, so it stays put
 * while you read.
 *
 * pointer-events:none is load-bearing — the band overlaps the header's click area at
 * narrow widths, and a decorative ribbon that eats a click on the logo is worse than
 * no ribbon. It has no link of its own, so it gives up nothing by being inert.
 */
.beta-flag {
  position: fixed;
  top: 0; left: 0;
  z-index: 200;                 /* above .site-header's sticky z-index: 100 */
  width: 132px;
  padding: 4px 0;
  transform: translate(-34px, 24px) rotate(-45deg);
  background: linear-gradient(90deg, var(--neon-a), var(--neon-b));
  color: #141414;
  /* Sized for the longest label we actually ship ("CLOSED BETA", 11 characters).
   * The band is a fixed 132px pushed diagonally off the corner, so its usable
   * middle is far narrower than its width — 0.22em tracking clipped the first
   * letter clean off the viewport. */
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.55);
  pointer-events: none;
  user-select: none;
}

/* Once the centred .wrap stops having room to its left, the band reaches into where
 * the logo sits — so the header gets out of its way rather than the band shrinking. */
@media (max-width: 1180px) {
  .site-header .wrap { padding-left: 76px; }
}

/* ---- host switch (beta.html) ----------------------------------------------
 * The API-docs language-tab pattern: the beta instructions are one document,
 * and the handful of places where the two hosts differ swap in and out here.
 * Blocks carry data-host and are toggled with the `hidden` property, so a
 * reader with no JavaScript sees BOTH lanes rather than neither. */
.host-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 38px;
  padding: 16px 18px;
  border: 1px solid var(--neon-b);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,107,107,0.07), rgba(255,107,107,0.02));
  box-shadow: 0 0 0 1px rgba(255,107,107,0.10), 0 8px 26px rgba(0,0,0,0.45);
  max-width: 760px;
}
.host-switch-label {
  width: 100%;
  margin-bottom: 2px;
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 700;
}
.host-switch-label small {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  color: var(--ink-dim);
}
/* The inactive state has to look like an offer and the active one like a
 * statement — same-sized pills separated only by colour read as two buttons
 * neither of which is on. */
.host-btn {
  font: inherit;
  font-size: 14.5px;
  padding: 9px 18px 9px 34px;
  position: relative;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  color: var(--ink-dim);
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
/* The radio dot: empty ring when off, filled when on. */
.host-btn::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 50%;
  width: 11px;
  height: 11px;
  margin-top: -6px;
  border-radius: 50%;
  border: 2px solid var(--ink-faint);
  background: transparent;
}
.host-btn:hover { color: var(--ink); border-color: var(--ink-faint); }
.host-btn.active {
  color: #141414;
  background: var(--neon-b);
  border-color: var(--neon-b);
  font-weight: 700;
  box-shadow: 0 0 18px rgba(255,107,107,0.35);
}
.host-btn.active::before {
  border-color: #141414;
  background: #141414;
}
/* Named so a reader knows the swapped copy came from their choice. */
.host-tag {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--neon-b);
  color: var(--neon-b);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
/* A host block that is a <span> inside a paragraph must not become a line of
 * its own when it is the visible one. */
.detail-body p > span[data-host] { display: inline; }

/* ---- "From the human" band (index.html) ------------------------------------
 * The one section on the site that is a person talking, so it gets the one
 * moving background: a 7-second loop of the author standing in an AArcade
 * world, hosted here (assets/media/) and never hot-linked.
 *
 * The video sits in its OWN layer, not on the section, so the tilted top and
 * bottom edges clip the footage and never the words. Everything legibility
 * depends on — the scrim — is painted by CSS, so a browser that blocks or
 * fails the video still gets a dark readable panel rather than light text on
 * whatever loaded. */
.human {
  position: relative;
  overflow: hidden;
  padding: 92px 0;
}
.human-media {
  position: absolute;
  inset: -1px 0;
  z-index: 0;
  /* the "opacity tilt": angled edges top and bottom */
  clip-path: polygon(0 34px, 100% 0, 100% 100%, 0 calc(100% - 34px));
  background: var(--bg-raise);
}
.human-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
}
/* Two scrims: a flat one for contrast, and a left-weighted one so the column
 * of text sits on the darkest part of the frame wherever the loop happens to
 * be. */
.human-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20,20,20,0.80) 0%, rgba(20,20,20,0.74) 55%, rgba(20,20,20,0.66) 100%),
    linear-gradient(180deg, var(--bg) 0%, rgba(20,20,20,0.20) 18%, rgba(20,20,20,0.20) 82%, var(--bg) 100%);
}
.human .wrap { position: relative; z-index: 1; }
.human-row {
  margin-top: 6px;
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 30px;
  align-items: start;
}
.human-portrait {
  width: 148px;
  height: 148px;
  border-radius: 14px;
  display: block;
  border: 1px solid var(--neon-b);
  box-shadow: 0 0 26px rgba(255,107,107,0.28);
}
/* The loop runs for seven seconds and the copy sits over all of it, so the
 * type carries its own contrast rather than trusting one frame. */
.human-row p {
  color: var(--ink-dim);
  margin-bottom: 16px;
  max-width: 700px;
  text-shadow: 0 1px 12px rgba(20,20,20,0.95), 0 0 3px rgba(20,20,20,0.9);
}
.human h2 { text-shadow: 0 2px 14px rgba(20,20,20,0.9); }
.human-row p:last-child { margin-bottom: 0; }
.human-row p b, .human-row p a { color: var(--ink); }
@media (max-width: 720px) {
  .human-row { grid-template-columns: 1fr; gap: 20px; }
  .human-portrait { width: 112px; height: 112px; }
}
/* Someone who asked the OS for less motion should not be handed a loop. */
@media (prefers-reduced-motion: reduce) {
  .human-media video { display: none; }
}

/* ---- roster + special thanks (beta.html) -----------------------------------
 * The roster is a panel of the same weight as the frontend switch beneath it,
 * so the top of the page reads as two facts about this round: who is in it,
 * and which frontend you are reading for. */
.roster {
  display: flex;
  align-items: center;
  gap: 10px 26px;
  flex-wrap: wrap;
  margin: 0 0 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-raise);
  max-width: 760px;
}
.roster-label {
  width: 100%;
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 700;
}
.roster-list {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
}
.roster-person {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 14.5px;
  color: var(--ink);
}
.roster-person img {
  width: 44px; height: 44px;
  border-radius: 10px;
  border: 1px solid var(--neon-a);
  background: var(--bg-card);
  object-fit: cover;
}
/* An unfilled seat should look unfilled: the placeholder sits quieter than a
   real tester and its frame is dashed, not solid. */
.roster-person.is-open { color: var(--ink-faint); }
.roster-person.is-open img {
  border-style: dashed;
  border-color: var(--line-hi);
  object-fit: contain;
  padding: 5px;
  opacity: 0.75;
}

.thanks {
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.thanks h2 { margin-bottom: 10px; }
.thanks p { color: var(--ink-dim); max-width: 760px; margin-bottom: 8px; }
.thanks-soon {
  display: inline-block;
  margin-top: 6px;
  padding: 5px 13px;
  border: 1px dashed var(--line-hi);
  border-radius: 999px;
  color: var(--ink-faint) !important;
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
