/* Airier long-form layout, inspired by the editorial rhythm of Internetnostalgia */

.article-page {
  --article-paper: #f7f4ec;
  --article-surface: #fffdf8;
  --article-line: #d9cdbd;
  --article-text: #2e251f;
  --article-muted: #6e6259;
  background: var(--article-paper);
  color: var(--article-text);
}

/* Atari 5200 — Console Outlier B03 */
body.atari5200-page {
  --a52-black: #111416;
  --a52-panel: #24282a;
  --a52-silver: #d9dbd7;
  --a52-cream: #f1efe6;
  --a52-red: #d94b39;
  --a52-orange: #e88a2c;
  --a52-yellow: #e8c83f;
  --a52-green: #58a85b;
  --a52-line: rgba(17,20,22,.2);
}
body.atari5200-page .site-header { position: relative; z-index: 20; }
body.atari5200-page .chapter { background: var(--a52-cream); }
body.atari5200-page .atari5200-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr);
  min-height: 720px;
  background: var(--a52-black);
  color: #fff;
}
body.atari5200-page .atari5200-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 9px;
  pointer-events: none;
  background: linear-gradient(90deg,var(--a52-red) 0 25%,var(--a52-orange) 25% 50%,var(--a52-yellow) 50% 75%,var(--a52-green) 75%);
}
body.atari5200-page .chapter-hero-copy { align-self: center; }
body.atari5200-page .chapter-hero-copy .eyebrow { color: #f1ca4a; }
body.atari5200-page .chapter-hero-copy h1 { max-width: 12ch; color: #fff; font-size: clamp(3.2rem,5.5vw,6.2rem); line-height: .91; }
body.atari5200-page .chapter-deck { color: #d5d5ce; }
body.atari5200-page .chapter-byline { color: #aaa; border-color: rgba(255,255,255,.24); }
.atari5200-hero-machine {
  position: relative;
  z-index: 0;
  margin: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 76px 46px 42px;
  background: #e7e6df;
  border-left: 1px solid #4b4d4c;
}
.atari5200-hero-machine img { position: relative; z-index: 1; display: block; width: 100%; height: auto; object-fit: contain; filter: drop-shadow(0 24px 18px rgba(0,0,0,.26)); }
.atari5200-signal {
  position: absolute;
  z-index: 0;
  inset: 13% 0 auto;
  height: 40%;
  opacity: .8;
  pointer-events: none;
  background: repeating-linear-gradient(180deg,transparent 0 12px,rgba(17,20,22,.08) 12px 13px);
}
.atari5200-hero-machine figcaption,
.atari5200-storage-photo figcaption,
.atari5200-trakball-photo figcaption { display: flex; justify-content: space-between; gap: 20px; margin-top: 30px; padding-top: 13px; border-top: 1px solid #aeb0ab; color: #313536; font-size: .75rem; letter-spacing: .11em; text-transform: uppercase; }
.atari5200-hero-machine figcaption b { color: var(--a52-red); }
body.atari5200-page .fact-strip { border-top-color: #505354; background: #2b2f31; color: #fff; }
body.atari5200-page .fact-strip > div { border-color: #505354; }
body.atari5200-page .fact-strip small { color: #aeb0aa; }
body.atari5200-page .fact-strip strong { color: #fff; }
body.atari5200-page .section-number { color: #a5372d; }
body.atari5200-page .chapter-section { border-color: var(--a52-line); }
.atari5200-hand-test { display: grid; grid-template-columns: auto 1fr 58px 1fr auto; align-items: center; gap: 16px; margin: 38px 0; padding: 28px; background: #1d2022; color: #fff; }
.atari5200-hand-test span { font-size: .69rem; letter-spacing: .16em; color: #aeb0aa; }
.atari5200-hand-test strong { text-align: center; font: 700 1rem/1.2 var(--font-sans); text-transform: uppercase; }
.atari5200-hand-test i { position: relative; width: 58px; height: 58px; border: 2px solid #d8d8d2; border-radius: 50%; }
.atari5200-hand-test i::before,.atari5200-hand-test i::after { content: ""; position: absolute; inset: 50% auto auto 50%; transform: translate(-50%,-50%); background: var(--a52-red); }
.atari5200-hand-test i::before { width: 28px; height: 3px; }
.atari5200-hand-test i::after { width: 3px; height: 28px; }
.atari5200-chip-family { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: stretch; margin: 36px 0; }
.atari5200-chip-family article { padding: 28px; border-top: 7px solid var(--a52-orange); background: #e2e1d9; }
.atari5200-chip-family article:last-child { border-color: var(--a52-green); background: #25292b; color: #fff; }
.atari5200-chip-family small,.atari5200-chip-family strong,.atari5200-chip-family span { display: block; }
.atari5200-chip-family small { margin-bottom: 18px; color: #6b6d68; font-size: .68rem; letter-spacing: .13em; }
.atari5200-chip-family article:last-child small { color: #a9ada7; }
.atari5200-chip-family strong { font-size: clamp(1.4rem,3vw,2.25rem); }
.atari5200-chip-family span { margin-top: 10px; color: #686a66; }
.atari5200-chip-family article:last-child span { color: #c6c8c3; }
.atari5200-chip-family > b { align-self: center; color: var(--a52-red); font-size: 2rem; }
.atari5200-storage-photo,.atari5200-trakball-photo { margin: 40px 0; padding: 34px; background: #deddd5; }
.atari5200-storage-photo img,.atari5200-trakball-photo img { display: block; width: 100%; height: auto; object-fit: contain; }
.atari5200-controller-layout { display: grid; grid-template-columns: minmax(240px,.78fr) 1.22fr; gap: 0; margin: 38px 0; background: #202426; color: #fff; }
.atari5200-controller-layout figure { display: flex; align-items: center; margin: 0; padding: 28px; background: #e1e0da; }
.atari5200-controller-layout img { display: block; width: 100%; max-height: 510px; height: auto; object-fit: contain; }
.atari5200-controller-layout > div { display: grid; grid-template-columns: 1fr 1fr; }
.atari5200-controller-layout span { display: flex; flex-direction: column; justify-content: flex-end; min-height: 175px; padding: 25px; border: solid #515456; border-width: 0 0 1px 1px; color: #bfc1bd; text-transform: uppercase; font-size: .7rem; letter-spacing: .12em; }
.atari5200-controller-layout span b { display: block; margin-bottom: 9px; color: #fff; font-size: clamp(1.7rem,4vw,3rem); letter-spacing: 0; }
.atari5200-axis { display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; gap: 0; margin: 44px 0; color: #555a59; }
.atari5200-axis i { height: 6px; background: linear-gradient(90deg,var(--a52-green),var(--a52-yellow),var(--a52-orange)); }
.atari5200-axis i:nth-of-type(2) { transform: scaleX(-1); }
.atari5200-axis > span { padding: 0 14px; font-weight: 800; }
.atari5200-axis strong { min-width: 140px; padding: 18px; text-align: center; background: #202426; color: #fff; }
.atari5200-axis small { display: block; color: #f0c84b; font-size: .62rem; letter-spacing: .13em; }
.atari5200-game-cards { display: grid; grid-template-columns: repeat(3,1fr); margin: 38px 0; border: 1px solid #c5c4bc; }
.atari5200-game-cards article { min-width: 0; padding: 28px; border-top: 7px solid var(--a52-red); }
.atari5200-game-cards article + article { border-left: 1px solid #c5c4bc; border-top-color: var(--a52-orange); }
.atari5200-game-cards article:last-child { border-top-color: var(--a52-green); }
.atari5200-game-cards article > span { display: block; color: #9a9b96; font-size: .68rem; letter-spacing: .14em; }
.atari5200-game-cards h3 { margin: 22px 0 13px; font-size: clamp(1.2rem,2.1vw,1.75rem); overflow-wrap: anywhere; }
.atari5200-game-cards p { margin: 0; font-size: .92rem; }
.atari5200-twin-stick { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; margin: 40px 0; }
.atari5200-twin-stick article { display: grid; grid-template-columns: 1fr 88px; align-items: center; gap: 12px; padding: 25px; background: #25292b; color: #fff; }
.atari5200-twin-stick small,.atari5200-twin-stick strong { grid-column: 1; }
.atari5200-twin-stick small { color: #b6b8b3; letter-spacing: .13em; }
.atari5200-twin-stick article i { grid-column: 2; grid-row: 1 / 3; width: 70px; height: 70px; border: 2px solid #757a79; border-radius: 50%; box-shadow: inset 0 0 0 18px #17191a; }
.atari5200-twin-stick > span { color: var(--a52-red); font-size: 2rem; font-weight: 900; }
.atari5200-trakball-photo { background: #1e2224; }
.atari5200-trakball-photo figcaption { color: #d4d5cf; border-color: #505455; }
.atari5200-trakball-photo figcaption b { color: #f0ca48; }
.atari5200-borders { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; margin: 38px 0; background: #dddcd4; }
.atari5200-borders span,.atari5200-borders strong { display: flex; flex-direction: column; justify-content: center; padding: 25px; text-align: center; font-size: clamp(1.25rem,3vw,2rem); }
.atari5200-borders small { margin-top: 8px; font-size: .65rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.atari5200-borders strong { background: #202426; color: #fff; }
.atari5200-borders > b { align-self: center; padding: 8px; color: var(--a52-red); font-size: 1.6rem; }
.atari5200-models { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; margin: 38px 0; }
.atari5200-models article { padding: 30px; border-top: 7px solid var(--a52-red); background: #deddd5; }
.atari5200-models article:last-child { border-color: var(--a52-green); }
.atari5200-models small,.atari5200-models strong,.atari5200-models span { display: block; }
.atari5200-models small { letter-spacing: .13em; color: #747671; }
.atari5200-models strong { margin: 14px 0 10px; font-size: 2rem; }
.atari5200-models > i { font-style: normal; color: var(--a52-orange); font-size: 2rem; }
.atari5200-balance { display: grid; grid-template-columns: repeat(4,1fr); margin: 38px 0; background: #24282a; color: #fff; }
.atari5200-balance span { padding: 20px 12px; border-right: 1px solid #515556; text-align: center; font-size: .7rem; letter-spacing: .12em; }
.atari5200-balance span:nth-child(1) { border-top: 6px solid var(--a52-red); }
.atari5200-balance span:nth-child(2) { border-top: 6px solid var(--a52-orange); }
.atari5200-balance span:nth-child(3) { border-top: 6px solid var(--a52-yellow); }
.atari5200-balance span:nth-child(4) { border-top: 6px solid var(--a52-green); }
.atari5200-balance strong { grid-column: 1 / -1; padding-top: 17px; text-align: center; color: #f0c94b; font-size: 2rem; }
.atari5200-balance b { grid-column: 1 / -1; padding: 7px 18px 24px; text-align: center; font-size: 1.15rem; letter-spacing: .12em; }
body.atari5200-page .atari5200-timeline { background: #1f2325; color: #fff; }
body.atari5200-page .atari5200-timeline h2,body.atari5200-page .atari5200-timeline h3 { color: #fff; }
body.atari5200-page .atari5200-timeline time { color: #f0c94b; }
body.atari5200-page .atari5200-timeline .fast-timeline-heading > p:last-child,body.atari5200-page .atari5200-timeline li p { color: #c4c6c1; }
body.atari5200-page .atari5200-timeline li,body.atari5200-page .atari5200-timeline li + li,body.atari5200-page .atari5200-timeline li:nth-child(2n + 1):not(:first-child),body.atari5200-page .atari5200-timeline li:nth-child(3n + 1):not(:first-child),body.atari5200-page .atari5200-timeline li:nth-child(n + 4) { border-color: rgba(233,138,44,.26); background: #303537; }
body.atari5200-page .atari5200-related { background: #303537; color: #fff; }
body.atari5200-page .atari5200-related h2,body.atari5200-page .atari5200-related p { color: #fff; }
body.atari5200-page .atari5200-related .section-number { color: #f0c94b; }
body.atari5200-page .atari5200-related a { background: var(--a52-red); color: #fff; }
body.atari5200-page .atari5200-sources { background: #e3e2da; }
body.atari5200-page .chapter-sources > div > ul { margin-top: 26px; }
body.atari5200-page .chapter-sources > div > ul li { margin: 0; }
body.atari5200-page .chapter-sources > div > ul li a { position: relative; display: block; padding: 9px 34px 9px 0; line-height: 1.4; }
body.atari5200-page .chapter-sources > div > ul li a em { display: inline; }
body.atari5200-page .chapter-sources > div > ul li a::after { position: absolute; top: 50%; right: 0; transform: translateY(-50%); }
body.atari5200-page .chapter-sources .credits-heading { margin: 32px 0 10px; }
body.atari5200-page .chapter-sources .image-credit-list { margin: 0; line-height: 1.45; }
body.atari5200-page .chapter-sources .image-credit-list a { display: inline; padding: 0; }
body.atari5200-page .pagination-placeholder { min-height: 1px; }

@media (max-width: 1000px) {
  body.atari5200-page .atari5200-hero { grid-template-columns: 1fr; }
  .atari5200-hero-machine { min-height: 560px; border-top: 1px solid #4b4d4c; border-left: 0; }
  .atari5200-game-cards { grid-template-columns: 1fr; }
  .atari5200-game-cards article + article { border-left: 0; border-top-width: 7px; }
}

@media (max-width: 760px) {
  body.atari5200-page .chapter-hero-copy h1 { max-width: 12ch; font-size: clamp(2.1rem,10vw,3.45rem); }
  .atari5200-hero-machine { min-height: 390px; padding: 44px 22px 28px; }
  .atari5200-hero-machine figcaption,.atari5200-storage-photo figcaption,.atari5200-trakball-photo figcaption { display: block; }
  .atari5200-hero-machine figcaption span,.atari5200-storage-photo figcaption span,.atari5200-trakball-photo figcaption span { display: block; margin-top: .45rem; }
  .atari5200-hand-test,.atari5200-chip-family,.atari5200-controller-layout,.atari5200-twin-stick,.atari5200-borders,.atari5200-models { grid-template-columns: 1fr; }
  .atari5200-hand-test { text-align: center; }
  .atari5200-hand-test i { justify-self: center; }
  .atari5200-chip-family > b,.atari5200-models > i { justify-self: center; transform: rotate(90deg); }
  .atari5200-controller-layout > div { grid-template-columns: 1fr 1fr; }
  .atari5200-controller-layout span { min-height: 130px; padding: 18px; }
  .atari5200-axis strong { min-width: 100px; padding: 14px 8px; }
  .atari5200-twin-stick > span { justify-self: center; }
  .atari5200-borders > b { justify-self: center; transform: rotate(90deg); }
  .atari5200-balance { grid-template-columns: 1fr 1fr; }
  .atari5200-balance span:nth-child(2) { border-right: 0; }
  .atari5200-balance strong,.atari5200-balance b { grid-column: 1 / -1; }
  .atari5200-storage-photo,.atari5200-trakball-photo { padding: 20px; }
}

/* PC Engine / TurboGrafx-16 */
.pce-page {
  --pce-red: #e42f2b;
  --pce-blue: #176fc1;
  --pce-ink: #15181d;
  --pce-orange: #f28a25;
  --pce-cream: #f6f1e7;
  background: var(--pce-cream);
}

.pce-page .site-header { position: relative; z-index: 50; }
.pce-page .chapter { overflow: hidden; }
.pce-page .pce-hero {
  position: relative;
  min-height: 820px;
  padding-bottom: 72px;
  background:
    linear-gradient(90deg, #f8f4eb 0 49.8%, #171a20 50.2% 100%);
}
.pce-page .pce-hero::before,
.pce-page .pce-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.pce-page .pce-hero::before {
  inset: 0 50% 0 0;
  background: repeating-linear-gradient(90deg, transparent 0 38px, rgba(228,47,43,.08) 39px 40px);
}
.pce-page .pce-hero::after {
  right: 0;
  bottom: 0;
  width: 50%;
  height: 9px;
  background: linear-gradient(90deg, var(--pce-orange) 0 63%, #6f52aa 63%);
}
.pce-page .pce-hero .chapter-hero-copy { position: relative; z-index: 2; }
.pce-page .pce-hero .chapter-hero-copy h1 {
  max-width: 12.5ch;
  font-size: clamp(3.3rem, 5.9vw, 7rem);
  line-height: .91;
  letter-spacing: -.065em;
}
.pce-page .pce-hero .chapter-deck { max-width: 43rem; }
.pce-page .pce-hero-machines {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 28px;
  grid-column: 1 / -1;
  width: min(1260px, 94vw);
  margin: 50px auto 0;
}
.pce-page .pce-hero-machines figure { margin: 0; padding: 20px 24px 18px; }
.pce-page .pce-hero-machines figure > span,
.pce-page .pce-hero-machines figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-mono, monospace);
  text-transform: uppercase;
  letter-spacing: .09em;
}
.pce-page .pce-hero-machines figure > span { font-size: .72rem; font-weight: 800; }
.pce-page .pce-hero-machines img { display: block; width: 100%; height: auto; margin: 25px 0 18px; object-fit: contain; }
.pce-page .pce-hero-machines figcaption { align-items: end; font-size: .78rem; font-weight: 800; }
.pce-page .pce-hero-machines figcaption small { max-width: 19ch; text-align: right; font-size: .65rem; line-height: 1.35; }
.pce-page .pce-jp-machine { color: var(--pce-ink); background: rgba(255,255,255,.82); border: 2px solid var(--pce-red); }
.pce-page .pce-jp-machine img { padding: 4%; }
.pce-page .pce-us-machine { color: #fff; background: #0f1115; border: 2px solid var(--pce-orange); }
.pce-page .pce-us-machine img { padding: 0 4%; }

.pce-page .fact-strip { position: relative; z-index: 2; border-top: 0; }
.pce-page .fact-strip > div:nth-child(odd) { background: #fff; }
.pce-page .fact-strip > div:nth-child(even) { color: #fff; background: var(--pce-ink); }
.pce-page .fact-strip > div:nth-child(2) { border-top: 5px solid var(--pce-red); }
.pce-page .fact-strip > div:nth-child(4) { border-top: 5px solid var(--pce-orange); }

.pce-page .pce-opening { background: #fff; }
.pce-page .pce-partnership {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 0;
  margin: 44px 0;
  border: 2px solid var(--pce-ink);
}
.pce-page .pce-partnership article { padding: 38px; }
.pce-page .pce-partnership article:first-child { color: var(--pce-ink); background: #fff; border-top: 8px solid var(--pce-red); }
.pce-page .pce-partnership article:last-child { color: #fff; background: var(--pce-ink); border-top: 8px solid var(--pce-blue); }
.pce-page .pce-partnership > span { display: grid; place-items: center; width: 70px; color: #fff; background: var(--pce-red); font-size: 2.4rem; font-weight: 900; }
.pce-page .pce-partnership small,
.pce-page .pce-partnership strong { display: block; }
.pce-page .pce-partnership small { margin-bottom: 44px; font-family: var(--font-mono, monospace); font-weight: 800; letter-spacing: .08em; }
.pce-page .pce-partnership strong { margin-bottom: 12px; font-size: 1.55rem; }

.pce-page .pce-quote { color: #fff; background: linear-gradient(125deg, var(--pce-red) 0 48%, var(--pce-ink) 48%); }
.pce-page .pce-quote span { color: #fff; }

.pce-page .pce-two-bodies-section { background: #e8edf0; }
.pce-page .pce-scale-comparison {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  align-items: end;
  gap: 24px;
  margin: 46px 0;
}
.pce-page .pce-scale-comparison figure { margin: 0; padding: 28px; border: 2px solid var(--pce-ink); }
.pce-page .pce-scale-comparison figure:first-child { background: #fff; }
.pce-page .pce-scale-comparison figure:last-child { color: #fff; background: var(--pce-ink); }
.pce-page .pce-scale-comparison img { display: block; width: 100%; height: auto; min-height: 220px; object-fit: contain; }
.pce-page .pce-scale-comparison figcaption { display: flex; justify-content: space-between; gap: 14px; padding-top: 24px; font-family: var(--font-mono, monospace); font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; }
.pce-page .pce-scale-comparison figcaption b { font-size: .82rem; }

.pce-page .pce-bits-section { border-top: 9px solid var(--pce-red); }
.pce-page .pce-chip-line {
  display: grid;
  grid-template-columns: 1fr 44px 1fr 44px 1fr;
  align-items: center;
  margin: 44px 0;
}
.pce-page .pce-chip-line > div { min-height: 220px; padding: 28px; color: #fff; background: var(--pce-ink); }
.pce-page .pce-chip-line > div:nth-of-type(2) { background: var(--pce-red); }
.pce-page .pce-chip-line > div:nth-of-type(3) { background: var(--pce-blue); }
.pce-page .pce-chip-line span,
.pce-page .pce-chip-line strong { display: block; }
.pce-page .pce-chip-line span { margin-bottom: 42px; font-family: var(--font-mono, monospace); font-size: .72rem; font-weight: 800; letter-spacing: .08em; }
.pce-page .pce-chip-line strong { font-size: clamp(1.45rem, 2.4vw, 2.25rem); }
.pce-page .pce-chip-line i { height: 4px; background: var(--pce-ink); }

.pce-page .pce-hucard-section { background: #fff; }
.pce-page .pce-hucard-demo {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) 1.2fr;
  align-items: center;
  gap: 58px;
  margin: 52px 0 30px;
}
.pce-page .hucard {
  position: relative;
  aspect-ratio: 1.58;
  padding: 8%;
  color: var(--pce-ink);
  background: #f6f3eb;
  border: 3px solid var(--pce-ink);
  border-radius: 8px 8px 17px 17px;
  box-shadow: 16px 18px 0 rgba(21,24,29,.12);
  overflow: hidden;
}
.pce-page .hucard::before { content: ""; position: absolute; inset: 0 0 auto; height: 18%; background: var(--pce-red); }
.pce-page .hucard span { position: relative; z-index: 1; display: grid; place-items: center; width: 42px; height: 28px; color: #fff; background: var(--pce-ink); font-weight: 900; }
.pce-page .hucard b,
.pce-page .hucard small { position: relative; z-index: 1; display: block; }
.pce-page .hucard b { margin-top: 17%; font-size: clamp(2rem, 4.5vw, 4.2rem); letter-spacing: -.07em; }
.pce-page .hucard small { font-family: var(--font-mono, monospace); font-weight: 800; letter-spacing: .14em; }
.pce-page .hucard i { position: absolute; right: 7%; bottom: 0; left: 7%; height: 18%; background: repeating-linear-gradient(90deg, #b38b3b 0 4px, #352e21 4px 7px); }
.pce-page .pce-hucard-demo > div:last-child > small { font-family: var(--font-mono, monospace); font-weight: 800; letter-spacing: .1em; color: var(--pce-red); }
.pce-page .pce-hucard-demo h3 { margin: 12px 0 20px; font-size: clamp(1.7rem, 3vw, 2.8rem); }

.pce-page .pce-five-player-section { color: #fff; background: var(--pce-ink); }
.pce-page .pce-five-player-section .section-number,
.pce-page .pce-five-player-section .lead { color: #fff; }
.pce-page .pce-player-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 46px 0; }
.pce-page .pce-player-row span { display: grid; place-items: center; aspect-ratio: 1; border: 3px solid currentColor; color: #fff; background: var(--pce-blue); font-size: clamp(2rem, 5vw, 4rem); font-weight: 900; }
.pce-page .pce-player-row span:nth-child(even) { background: var(--pce-red); }
.pce-page .pce-player-row span:last-child { color: var(--pce-ink); background: var(--pce-orange); }

.pce-page .pce-arcade-section { background: #e7eef4; }
.pce-page .pce-arcade-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 44px 0; }
.pce-page .pce-arcade-cards article { min-height: 290px; padding: 30px; background: #fff; border: 2px solid var(--pce-ink); border-top-width: 10px; }
.pce-page .pce-arcade-cards article:nth-child(1) { border-top-color: var(--pce-red); }
.pce-page .pce-arcade-cards article:nth-child(2) { border-top-color: var(--pce-blue); }
.pce-page .pce-arcade-cards article:nth-child(3) { border-top-color: var(--pce-orange); }
.pce-page .pce-arcade-cards span { display: block; margin-bottom: 48px; font-family: var(--font-mono, monospace); font-size: .72rem; font-weight: 800; letter-spacing: .09em; }
.pce-page .pce-arcade-cards h3 { font-size: 1.55rem; }

.pce-page .pce-cd-section { color: #fff; background: radial-gradient(circle at 80% 10%, #424b58, var(--pce-ink) 50%); }
.pce-page .pce-cd-section .section-number,
.pce-page .pce-cd-section .lead { color: #fff; }
.pce-page .pce-cd-diagram { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 20px; margin: 46px 0; }
.pce-page .pce-cd-diagram > div { display: grid; min-height: 210px; padding: 25px; border: 2px solid #fff; background: rgba(255,255,255,.06); }
.pce-page .pce-cd-diagram > div:nth-of-type(2) { border-color: var(--pce-red); }
.pce-page .pce-cd-diagram > div:nth-of-type(3) { border-color: var(--pce-orange); }
.pce-page .pce-cd-diagram small { align-self: start; font-family: var(--font-mono, monospace); }
.pce-page .pce-cd-diagram strong { align-self: end; font-size: 1.45rem; }
.pce-page .pce-cd-diagram span { align-self: end; color: #c6ccd2; }
.pce-page .pce-cd-diagram > b { color: var(--pce-orange); font-size: 2.5rem; }

.pce-page .pce-family-section { border-top: 9px solid var(--pce-blue); }
.pce-page .pce-family-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 46px 0; }
.pce-page .pce-family-gallery figure { display: grid; align-content: space-between; margin: 0; min-height: 430px; padding: 28px; color: #fff; background: var(--pce-ink); }
.pce-page .pce-family-gallery figure:first-child { background: #515862; }
.pce-page .pce-family-gallery img { display: block; width: 100%; height: auto; max-height: 275px; object-fit: contain; }
.pce-page .pce-family-gallery figcaption { display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.35); }
.pce-page .pce-family-gallery figcaption span { font-family: var(--font-mono, monospace); font-size: .72rem; font-weight: 800; letter-spacing: .07em; }
.pce-page .pce-family-gallery figcaption small { max-width: 27ch; text-align: right; line-height: 1.4; }

.pce-page .pce-games-section { background: #fff; }
.pce-page .pce-game-map { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 44px; }
.pce-page .pce-game-map article { grid-column: span 2; min-height: 230px; padding: 26px; border: 2px solid var(--pce-ink); }
.pce-page .pce-game-map article:nth-child(4) { grid-column: 2 / span 2; }
.pce-page .pce-game-map article:nth-child(5) { grid-column: 4 / span 2; }
.pce-page .pce-game-map article:nth-child(odd) { background: #f4eee4; }
.pce-page .pce-game-map article:nth-child(2) { color: #fff; background: var(--pce-red); }
.pce-page .pce-game-map article:nth-child(4) { color: #fff; background: var(--pce-blue); }
.pce-page .pce-game-map small,
.pce-page .pce-game-map strong { display: block; }
.pce-page .pce-game-map small { margin-bottom: 44px; font-family: var(--font-mono, monospace); font-weight: 800; letter-spacing: .08em; }
.pce-page .pce-game-map strong { font-size: 1.4rem; }

.pce-page .pce-regions-section { background: #e5e9eb; }
.pce-page .pce-region-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 44px 0; border: 2px solid var(--pce-ink); }
.pce-page .pce-region-grid article { min-height: 310px; padding: 31px; background: #fff; border-right: 2px solid var(--pce-ink); }
.pce-page .pce-region-grid article:last-child { border-right: 0; }
.pce-page .pce-region-grid article:nth-child(2) { color: #fff; background: var(--pce-ink); }
.pce-page .pce-region-grid span { display: block; margin-bottom: 50px; color: var(--pce-red); font-family: var(--font-mono, monospace); font-size: .73rem; font-weight: 800; letter-spacing: .09em; }
.pce-page .pce-region-grid h3 { font-size: 1.5rem; }

.pce-page .pce-timeline { background: #fff; }
.pce-page .pce-timeline time { color: var(--pce-red); }
.pce-page .pce-related { color: #fff; background: linear-gradient(135deg, var(--pce-blue), #24415d 60%, var(--pce-ink)); }
.pce-page .pce-related a { color: var(--pce-ink); background: var(--pce-orange); }

.pce-page .pce-sources > div > ul { display: grid; gap: 0; }
.pce-page .pce-sources > div > ul li { margin: 0; }
.pce-page .pce-sources > div > ul li a { position: relative; display: block; padding: 8px 32px 8px 0; line-height: 1.35; }
.pce-page .pce-sources > div > ul li a em { display: inline; }
.pce-page .pce-sources > div > ul li a::after { position: absolute; top: 50%; right: 0; transform: translateY(-50%); }

@media (max-width: 900px) {
  .pce-page .pce-hero { background: linear-gradient(180deg, #f8f4eb 0 57%, #171a20 57%); }
  .pce-page .pce-hero::before { inset: 0 0 43% 0; }
  .pce-page .pce-hero::after { width: 100%; }
  .pce-page .pce-hero-machines { grid-template-columns: 1fr; }
  .pce-page .pce-partnership { grid-template-columns: 1fr; }
  .pce-page .pce-partnership > span { width: 100%; height: 58px; }
  .pce-page .pce-scale-comparison { grid-template-columns: 1fr; }
  .pce-page .pce-chip-line { grid-template-columns: 1fr; gap: 0; }
  .pce-page .pce-chip-line i { width: 4px; height: 32px; margin-left: 50%; }
  .pce-page .pce-chip-line > div { min-height: 0; }
  .pce-page .pce-hucard-demo { grid-template-columns: 1fr; }
  .pce-page .pce-arcade-cards,
  .pce-page .pce-region-grid { grid-template-columns: 1fr; }
  .pce-page .pce-arcade-cards article,
  .pce-page .pce-region-grid article { min-height: 0; }
  .pce-page .pce-region-grid article { border-right: 0; border-bottom: 2px solid var(--pce-ink); }
  .pce-page .pce-region-grid article:last-child { border-bottom: 0; }
  .pce-page .pce-cd-diagram { grid-template-columns: 1fr; }
  .pce-page .pce-cd-diagram > b { text-align: center; }
  .pce-page .pce-family-gallery { grid-template-columns: 1fr; }
}

@media (max-width: 660px) {
  .pce-page .pce-hero .chapter-hero-copy h1 { max-width: 10ch; font-size: clamp(2.35rem, 10.8vw, 3.7rem); line-height: .93; }
  .pce-page .pce-hero-machines { width: calc(100% - 28px); gap: 14px; }
  .pce-page .pce-hero-machines figure { padding: 17px; }
  .pce-page .pce-hero-machines figcaption { display: block; }
  .pce-page .pce-hero-machines figcaption small { display: block; max-width: none; margin-top: 6px; text-align: left; }
  .pce-page .pce-partnership article { padding: 27px; }
  .pce-page .pce-partnership small { margin-bottom: 25px; }
  .pce-page .pce-scale-comparison figure { padding: 19px; }
  .pce-page .pce-scale-comparison figcaption { display: block; }
  .pce-page .pce-scale-comparison figcaption span { display: block; margin-top: 6px; }
  .pce-page .pce-hucard-demo { gap: 38px; }
  .pce-page .pce-player-row { gap: 5px; }
  .pce-page .pce-player-row span { border-width: 2px; }
  .pce-page .pce-family-gallery figure { min-height: 340px; padding: 20px; }
  .pce-page .pce-family-gallery figcaption { display: block; }
  .pce-page .pce-family-gallery figcaption small { display: block; max-width: none; margin-top: 8px; text-align: left; }
  .pce-page .pce-game-map { grid-template-columns: 1fr; }
  .pce-page .pce-game-map article,
  .pce-page .pce-game-map article:nth-child(4),
  .pce-page .pce-game-map article:nth-child(5) { grid-column: auto; min-height: 0; }
  .pce-page .pce-game-map small,
  .pce-page .pce-region-grid span { margin-bottom: 24px; }
}

/* Sega Master System — one console, three regional lives */
body.sms-page {
  --sms-black: #101316;
  --sms-panel: #1a2025;
  --sms-red: #df2738;
  --sms-blue: #187ac4;
  --sms-cyan: #43b9d8;
  --sms-paper: #f3f0e8;
  --sms-grid: #c7ccd0;
  background: #e8e6df;
}

body.sms-page .site-header { position: relative; z-index: 50; }

body.sms-page .sms-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(126deg, var(--sms-black) 0 67%, #151a1e 67% 100%);
  background-size: 48px 48px, 48px 48px, auto;
}

body.sms-page .sms-hero::before {
  position: absolute;
  top: -9%;
  right: 11%;
  width: 8px;
  height: 125%;
  background: var(--sms-red);
  box-shadow: 19px 0 0 var(--sms-blue);
  transform: rotate(24deg);
  pointer-events: none;
  content: "";
}

body.sms-page .sms-hero .chapter-hero-copy { position: relative; z-index: 2; }
body.sms-page .sms-hero h1 { max-width: 11ch; color: #fff; font-size: clamp(3.5rem, 5.8vw, 6.9rem); line-height: .89; letter-spacing: -.055em; }
body.sms-page .sms-hero .eyebrow { color: #72c9ee; }
body.sms-page .sms-hero .chapter-deck { max-width: 59ch; color: #dce3e8; }
body.sms-page .sms-hero .chapter-byline { color: #b9c6ce; border-color: #49545c; }

body.sms-page .sms-hero-machine {
  position: relative;
  z-index: 2;
  min-height: 620px;
  margin: 0;
  padding: 2.1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(255,255,255,.94);
  box-shadow: 17px 17px 0 var(--sms-red), 34px 34px 0 var(--sms-blue);
}

body.sms-page .sms-hero-machine > span { position: absolute; top: 1.3rem; left: 1.4rem; color: #3f464b; font: 900 .68rem/1 var(--font-mono, monospace); letter-spacing: .16em; }
body.sms-page .sms-hero-machine img { display: block; width: 100%; height: auto; max-height: 510px; object-fit: contain; filter: drop-shadow(0 22px 18px rgba(0,0,0,.23)); }
body.sms-page .sms-hero-machine figcaption { position: absolute; right: 1.4rem; bottom: 1.25rem; left: 1.4rem; display: flex; justify-content: space-between; gap: 1rem; color: #22272a; font-size: .75rem; }
body.sms-page .sms-hero-machine figcaption b { color: var(--sms-red); font-family: var(--font-mono, monospace); letter-spacing: .14em; }

body.sms-page .fact-strip > div { color: #fff; background: var(--sms-black); }
body.sms-page .fact-strip > div:nth-child(1) { box-shadow: inset 0 7px var(--sms-red); }
body.sms-page .fact-strip > div:nth-child(2) { box-shadow: inset 0 7px var(--sms-blue); }
body.sms-page .fact-strip > div:nth-child(3) { box-shadow: inset 0 7px #fff; }
body.sms-page .fact-strip > div:nth-child(4) { box-shadow: inset 0 7px var(--sms-cyan); }
body.sms-page .fact-strip small,
body.sms-page .fact-strip strong { color: inherit; }

body.sms-page .sms-opening { background: var(--sms-paper); }
body.sms-page .sms-quote { color: #fff; background: var(--sms-red); }
body.sms-page .sms-quote p,
body.sms-page .sms-quote span { color: #fff; }
body.sms-page .sms-quote::before { color: rgba(255,255,255,.12); }

body.sms-page .sms-identity-section { background: #e3e6e7; }
body.sms-page .sms-wide-product { margin: 2.8rem 0; padding: 2rem; background: #fff; border: 1px solid #c5cacf; box-shadow: 13px 13px 0 var(--sms-red); }
body.sms-page .sms-wide-product img { display: block; width: 100%; height: auto; object-fit: contain; }
body.sms-page .sms-wide-product figcaption,
body.sms-page .sms-ii-feature figcaption { margin-top: 1.2rem; display: flex; justify-content: space-between; gap: 2rem; color: #555d62; font-size: .78rem; line-height: 1.5; }
body.sms-page .sms-wide-product figcaption span:first-child,
body.sms-page .sms-ii-feature figcaption span:first-child { color: var(--sms-red); font: 900 .72rem/1.4 var(--font-mono, monospace); letter-spacing: .13em; }

body.sms-page .sms-design-grid { margin: 2.8rem 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
body.sms-page .sms-design-grid article { min-height: 255px; padding: 1.55rem; color: #fff; background: var(--sms-black); border-top: 6px solid var(--sms-red); }
body.sms-page .sms-design-grid article:nth-child(2) { border-color: #fff; }
body.sms-page .sms-design-grid article:nth-child(3) { border-color: var(--sms-blue); }
body.sms-page .sms-design-grid span { color: #87939a; font: 900 .72rem/1 var(--font-mono, monospace); letter-spacing: .14em; }
body.sms-page .sms-design-grid h3 { margin: 2.7rem 0 .9rem; color: #fff; font-size: 1.48rem; }
body.sms-page .sms-design-grid p { color: #cbd3d7; font-size: .86rem; line-height: 1.58; }

body.sms-page .sms-arcade-section { color: #edf2f4; background: var(--sms-panel); }
body.sms-page .sms-arcade-section h2 { color: #fff; }
body.sms-page .sms-arcade-section .lead,
body.sms-page .sms-arcade-section .chapter-copy > p { color: #d2dce1; }
body.sms-page .sms-arcade-section .section-number { color: var(--sms-cyan); }
body.sms-page .sms-arcade-scale { margin: 3rem 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 0; }
body.sms-page .sms-arcade-scale > div { min-height: 255px; padding: 1.45rem; background: #0d1012; border: 1px solid #48545b; }
body.sms-page .sms-arcade-scale > span { display: grid; place-items: center; width: 45px; color: var(--sms-red); font-size: 1.8rem; }
body.sms-page .sms-arcade-scale small { color: var(--sms-cyan); font: 900 .68rem/1 var(--font-mono, monospace); letter-spacing: .12em; }
body.sms-page .sms-arcade-scale strong { display: block; margin: 3rem 0 1rem; color: #fff; font-size: 1.3rem; line-height: 1.12; }
body.sms-page .sms-arcade-scale p { color: #c4d0d6; font-size: .84rem; line-height: 1.58; }

body.sms-page .sms-hardware-section { background: #efede6; }
body.sms-page .sms-board-feature { margin: 2.8rem 0; background: #fff; border: 1px solid #cfd2d1; }
body.sms-page .sms-board-feature img { display: block; width: 100%; height: auto; object-fit: contain; }
body.sms-page .sms-board-feature figcaption { padding: .9rem 1rem; color: #5d6366; background: #fff; font-size: .77rem; line-height: 1.5; }
body.sms-page .sms-chip-grid { margin: 2.8rem 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
body.sms-page .sms-chip-grid > div { min-height: 265px; padding: 1.35rem; color: #fff; background: var(--sms-black); box-shadow: inset 0 6px var(--sms-red); }
body.sms-page .sms-chip-grid > div:nth-child(2) { box-shadow: inset 0 6px var(--sms-blue); }
body.sms-page .sms-chip-grid > div:nth-child(3) { box-shadow: inset 0 6px #f1f1ed; }
body.sms-page .sms-chip-grid > div:nth-child(4) { box-shadow: inset 0 6px var(--sms-cyan); }
body.sms-page .sms-chip-grid span { color: #9da8ad; font: 900 .7rem/1 var(--font-mono, monospace); letter-spacing: .12em; }
body.sms-page .sms-chip-grid strong { display: block; margin: 3.2rem 0 1rem; color: #fff; font: 900 1.3rem/1.05 var(--font-mono, monospace); }
body.sms-page .sms-chip-grid p { color: #c8d1d5; font-size: .82rem; line-height: 1.57; }

body.sms-page .sms-control-section { background: #dedfe0; }
body.sms-page .sms-controller-feature,
body.sms-page .sms-3d-feature { margin: 2.8rem 0; display: grid; grid-template-columns: minmax(300px, 1.1fr) minmax(0, .9fr); background: var(--sms-black); }
body.sms-page .sms-controller-feature figure,
body.sms-page .sms-3d-feature figure { min-height: 480px; margin: 0; padding: 2rem; display: flex; flex-direction: column; justify-content: center; background: #fff; }
body.sms-page .sms-controller-feature img,
body.sms-page .sms-3d-feature img { display: block; width: 100%; height: auto; max-height: 460px; object-fit: contain; }
body.sms-page .sms-controller-feature > div,
body.sms-page .sms-3d-feature > div { padding: clamp(2rem, 4.8vw, 4rem); align-self: center; }
body.sms-page .sms-controller-feature small,
body.sms-page .sms-3d-feature > div > span { color: var(--sms-cyan); font: 900 .72rem/1 var(--font-mono, monospace); letter-spacing: .15em; }
body.sms-page .sms-controller-feature h3,
body.sms-page .sms-3d-feature h3 { margin: 1rem 0 1.7rem; color: #fff; font-size: clamp(2rem, 3.5vw, 3.35rem); line-height: .98; }
body.sms-page .sms-controller-feature p,
body.sms-page .sms-3d-feature p { color: #cad5da; font-size: .92rem; line-height: 1.65; }
body.sms-page .sms-controller-feature p + p,
body.sms-page .sms-3d-feature p + p { margin-top: 1.1rem; }

body.sms-page .sms-card-section { background: var(--sms-paper); }
body.sms-page .sms-card-comparison { margin: 2.8rem 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
body.sms-page .sms-card-comparison > div { min-height: 300px; padding: clamp(1.6rem, 3vw, 2.5rem); color: #fff; background: var(--sms-blue); box-shadow: inset 0 -8px #fff; }
body.sms-page .sms-card-comparison > div:last-child { background: var(--sms-black); box-shadow: inset 0 -8px var(--sms-red); }
body.sms-page .sms-card-comparison small { font: 900 .7rem/1 var(--font-mono, monospace); letter-spacing: .14em; }
body.sms-page .sms-card-comparison strong { display: block; margin: 3.5rem 0 1rem; color: #fff; font-size: clamp(2rem, 4vw, 3.5rem); line-height: .95; }
body.sms-page .sms-card-comparison p { color: #e4edf3; font-size: .91rem; line-height: 1.62; }

body.sms-page .sms-3d-section { color: #edf3f6; background: #252d33; }
body.sms-page .sms-3d-section h2 { color: #fff; }
body.sms-page .sms-3d-section .lead { color: #d4dfe4; }
body.sms-page .sms-3d-section .section-number { color: var(--sms-cyan); }
body.sms-page .sms-3d-feature { grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr); }
body.sms-page .sms-3d-feature figure { min-height: 430px; }
body.sms-page .sms-3d-feature figcaption { padding-top: 1rem; color: #59636a; font-size: .77rem; line-height: 1.45; }

body.sms-page .sms-regions-section { background: #e7e5de; }
body.sms-page .sms-region-map { margin: 2.8rem 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
body.sms-page .sms-region-map article { min-height: 340px; padding: 1.7rem; color: #fff; background: var(--sms-black); border-left: 8px solid var(--sms-red); }
body.sms-page .sms-region-map article:nth-child(2) { border-color: #8c969b; }
body.sms-page .sms-region-map article:nth-child(3) { border-color: var(--sms-blue); }
body.sms-page .sms-region-map small { color: #9eaab0; font: 900 .7rem/1 var(--font-mono, monospace); letter-spacing: .13em; }
body.sms-page .sms-region-map strong { display: block; margin: 3.5rem 0 1rem; color: #fff; font-size: 1.45rem; line-height: 1.1; }
body.sms-page .sms-region-map p { color: #cbd5da; font-size: .88rem; line-height: 1.62; }

body.sms-page .sms-europe-section { color: #edf4f8; background: var(--sms-blue); }
body.sms-page .sms-europe-section h2 { color: #fff; }
body.sms-page .sms-europe-section .lead,
body.sms-page .sms-europe-section .chapter-copy > p { color: #e5f0f7; }
body.sms-page .sms-europe-section .section-number { color: #fff; }
body.sms-page .sms-europe-grid { margin: 2.8rem 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
body.sms-page .sms-europe-grid > div { min-height: 275px; padding: 1.55rem; color: #fff; background: #0f3150; box-shadow: inset 0 6px #fff; }
body.sms-page .sms-europe-grid > div:nth-child(2) { box-shadow: inset 0 6px var(--sms-cyan); }
body.sms-page .sms-europe-grid > div:nth-child(3) { box-shadow: inset 0 6px var(--sms-red); }
body.sms-page .sms-europe-grid > div:nth-child(4) { box-shadow: inset 0 6px #f5d652; }
body.sms-page .sms-europe-grid span { color: #a8d8f2; font: 900 .69rem/1 var(--font-mono, monospace); letter-spacing: .12em; }
body.sms-page .sms-europe-grid h3 { margin: 2.7rem 0 1rem; color: #fff; font-size: 1.55rem; }
body.sms-page .sms-europe-grid p { color: #d6e9f4; font-size: .88rem; line-height: 1.6; }
body.sms-page .sms-ii-feature { margin: 2.8rem 0; padding: 2rem; background: #fff; }
body.sms-page .sms-ii-feature img { display: block; width: 100%; height: auto; max-height: 620px; object-fit: contain; }

body.sms-page .sms-brazil-section { color: #172019; background: #e4d845; }
body.sms-page .sms-brazil-section h2 { color: #142019; }
body.sms-page .sms-brazil-section .lead,
body.sms-page .sms-brazil-section .chapter-copy > p { color: #28332b; }
body.sms-page .sms-brazil-grid { margin: 2.8rem 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
body.sms-page .sms-brazil-grid article { min-height: 330px; padding: 1.65rem; color: #fff; background: #126c3b; box-shadow: inset 0 7px #fff; }
body.sms-page .sms-brazil-grid article:nth-child(2) { background: #154d8b; box-shadow: inset 0 7px #f2dc39; }
body.sms-page .sms-brazil-grid article:nth-child(3) { background: #183223; box-shadow: inset 0 7px var(--sms-red); }
body.sms-page .sms-brazil-grid span { color: #bfe6cc; font: 900 .7rem/1 var(--font-mono, monospace); letter-spacing: .13em; }
body.sms-page .sms-brazil-grid h3 { margin: 3rem 0 1rem; color: #fff; font-size: 1.5rem; line-height: 1.08; }
body.sms-page .sms-brazil-grid p { color: #e1eee5; font-size: .87rem; line-height: 1.62; }

body.sms-page .sms-timeline { background: var(--sms-black); }
body.sms-page .sms-timeline time { color: var(--sms-cyan); }
body.sms-page .sms-related { color: #fff; background: var(--sms-red); }
body.sms-page .sms-related h2,
body.sms-page .sms-related p:last-child { color: #fff; }
body.sms-page .sms-related a { color: #fff; border-color: #fff; }
body.sms-page .sms-related a:hover { color: var(--sms-red); background: #fff; }
body.sms-page .pagination-placeholder { min-height: 1px; }

body.sms-page .sms-sources > div > ul { margin-top: 26px; }
body.sms-page .sms-sources > div > ul li { margin: 0; }
body.sms-page .sms-sources > div > ul li a { position: relative; display: block; padding: 8px 32px 8px 0; line-height: 1.35; }
body.sms-page .sms-sources > div > ul li a em { display: inline; }
body.sms-page .sms-sources > div > ul li a::after { position: absolute; top: 50%; right: 0; transform: translateY(-50%); }
body.sms-page .sms-sources .credits-heading { margin-top: 34px; }
body.sms-page .sms-sources .image-credit-list { margin: 12px 0 0; line-height: 1.55; }

@media (max-width: 980px) {
  body.sms-page .sms-hero h1 { font-size: clamp(3.1rem, 7.3vw, 5.5rem); }
  body.sms-page .sms-hero-machine { min-height: 520px; }
  body.sms-page .sms-chip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.sms-page .sms-chip-grid > div { min-height: 220px; }
}

@media (max-width: 680px) {
  body.sms-page .sms-hero { background-size: 32px 32px, 32px 32px, auto; }
  body.sms-page .sms-hero h1 { max-width: 11ch; font-size: clamp(2.35rem, 10.8vw, 3.7rem); line-height: .92; }
  body.sms-page .sms-hero-machine { min-height: 370px; padding: 1.25rem; box-shadow: 8px 8px 0 var(--sms-red), 16px 16px 0 var(--sms-blue); }
  body.sms-page .sms-hero-machine img { max-height: 300px; }
  body.sms-page .sms-hero-machine figcaption { display: block; }
  body.sms-page .sms-hero-machine figcaption small { display: block; margin-top: .35rem; }
  body.sms-page .sms-wide-product { padding: 1rem; box-shadow: 7px 7px 0 var(--sms-red); }
  body.sms-page .sms-wide-product figcaption,
  body.sms-page .sms-ii-feature figcaption { display: block; }
  body.sms-page .sms-wide-product figcaption span,
  body.sms-page .sms-ii-feature figcaption span { display: block; }
  body.sms-page .sms-wide-product figcaption span + span,
  body.sms-page .sms-ii-feature figcaption span + span { margin-top: .45rem; }
  body.sms-page .sms-design-grid,
  body.sms-page .sms-arcade-scale,
  body.sms-page .sms-chip-grid,
  body.sms-page .sms-controller-feature,
  body.sms-page .sms-card-comparison,
  body.sms-page .sms-3d-feature,
  body.sms-page .sms-region-map,
  body.sms-page .sms-europe-grid,
  body.sms-page .sms-brazil-grid { grid-template-columns: 1fr; }
  body.sms-page .sms-arcade-scale > span { width: auto; height: 42px; transform: rotate(90deg); }
  body.sms-page .sms-design-grid article,
  body.sms-page .sms-arcade-scale > div,
  body.sms-page .sms-chip-grid > div,
  body.sms-page .sms-card-comparison > div,
  body.sms-page .sms-region-map article,
  body.sms-page .sms-europe-grid > div,
  body.sms-page .sms-brazil-grid article { min-height: 0; }
  body.sms-page .sms-design-grid h3,
  body.sms-page .sms-arcade-scale strong,
  body.sms-page .sms-chip-grid strong,
  body.sms-page .sms-card-comparison strong,
  body.sms-page .sms-region-map strong,
  body.sms-page .sms-europe-grid h3,
  body.sms-page .sms-brazil-grid h3 { margin-top: 1.8rem; }
  body.sms-page .sms-controller-feature figure,
  body.sms-page .sms-3d-feature figure { min-height: 320px; padding: 1.2rem; }
  body.sms-page .sms-ii-feature { padding: 1rem; }
}

/* ColecoVision — arcade cabinet colours, modular hardware and steel trim */
body.colecovision-page {
  --cv-black: #121515;
  --cv-ink: #202725;
  --cv-paper: #f2eee4;
  --cv-silver: #c7c5bc;
  --cv-red: #df3d2e;
  --cv-orange: #ee8a29;
  --cv-yellow: #f1c83f;
  --cv-green: #5da654;
  --cv-blue: #3e84af;
}

body.colecovision-page .colecovision-hero {
  min-height: 790px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,255,255,.035) 0 18%, transparent 18% 100%),
    var(--cv-black);
}

body.colecovision-page .colecovision-hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 12px;
  background: linear-gradient(90deg, var(--cv-red) 0 20%, var(--cv-orange) 20% 40%, var(--cv-yellow) 40% 60%, var(--cv-green) 60% 80%, var(--cv-blue) 80%);
  content: "";
}

body.colecovision-page .colecovision-hero .chapter-hero-copy { z-index: 2; }
body.colecovision-page .colecovision-hero h1 { max-width: 11.2ch; color: #fff; font-size: clamp(4rem, 6.1vw, 7.4rem); line-height: .86; letter-spacing: -.05em; }
body.colecovision-page .colecovision-hero .eyebrow { color: var(--cv-yellow); }
body.colecovision-page .colecovision-hero .chapter-deck { max-width: 58ch; color: #dcded9; }
body.colecovision-page .colecovision-hero .chapter-byline { color: #b9bcb8; border-color: #4a504e; }

body.colecovision-page .colecovision-machine-graphic {
  position: relative;
  min-height: 650px;
  margin: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 45%, #394441 0, #252d2b 37%, #151918 70%),
    var(--cv-black);
}

body.colecovision-page .colecovision-machine-graphic::before {
  position: absolute;
  inset: 8% 6%;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 0 0 10px rgba(0,0,0,.12);
  content: "";
}

body.colecovision-page .colecovision-machine-graphic img {
  position: relative;
  z-index: 1;
  width: 96%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 30px 24px rgba(0,0,0,.52));
}

body.colecovision-page .colecovision-machine-graphic figcaption {
  position: absolute;
  right: clamp(1.5rem, 3vw, 3rem);
  bottom: clamp(1.6rem, 3vw, 3rem);
  left: clamp(1.5rem, 3vw, 3rem);
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #fff;
  font: 800 .72rem/1.35 var(--font-mono, monospace);
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.colecovision-page .fact-strip > div { color: #fff; background: var(--cv-ink); }
body.colecovision-page .fact-strip > div:nth-child(1) { box-shadow: inset 0 7px var(--cv-red); }
body.colecovision-page .fact-strip > div:nth-child(2) { box-shadow: inset 0 7px var(--cv-orange); }
body.colecovision-page .fact-strip > div:nth-child(3) { box-shadow: inset 0 7px var(--cv-green); }
body.colecovision-page .fact-strip > div:nth-child(4) { box-shadow: inset 0 7px var(--cv-blue); }
body.colecovision-page .fact-strip small,
body.colecovision-page .fact-strip strong { color: inherit; }

body.colecovision-page .colecovision-opening { background: var(--cv-paper); }
body.colecovision-page .colecovision-quote { background: var(--cv-red); }
body.colecovision-page .colecovision-quote::before { color: rgba(22,24,23,.15); }

body.colecovision-page .colecovision-kong-board {
  margin: 2.7rem 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

body.colecovision-page .colecovision-kong-section {
  grid-template-columns: 160px minmax(0, 940px);
  gap: clamp(38px, 5vw, 64px);
}

body.colecovision-page .colecovision-kong-section .chapter-copy {
  max-width: 940px;
}

body.colecovision-page .colecovision-kong-section .chapter-copy > h2 {
  max-width: 760px;
}

body.colecovision-page .colecovision-kong-board > div {
  min-height: 245px;
  padding: 1.6rem;
  color: #fff;
  background: var(--cv-ink);
  box-shadow: inset 0 8px var(--cv-red);
}
body.colecovision-page .colecovision-kong-board > div:nth-child(2) { box-shadow: inset 0 8px var(--cv-yellow); }
body.colecovision-page .colecovision-kong-board > div:nth-child(3) { box-shadow: inset 0 8px var(--cv-green); }
body.colecovision-page .colecovision-kong-board small,
body.colecovision-page .colecovision-kong-board strong { display: block; }
body.colecovision-page .colecovision-kong-board small { margin: .8rem 0 2.8rem; color: #cfd2cc; font: 800 .68rem/1 var(--font-mono, monospace); letter-spacing: .13em; }
body.colecovision-page .colecovision-kong-board strong { color: var(--cv-yellow); font: 900 clamp(2rem, 3.6vw, 3.45rem)/1 var(--font-mono, monospace); }
body.colecovision-page .colecovision-kong-board p { color: #d8dbd5; font-size: .88rem; line-height: 1.55; }

body.colecovision-page .colecovision-chip-section {
  color: #eef0eb;
  background: var(--cv-ink);
}
body.colecovision-page .colecovision-chip-section h2 { color: #fff; }
body.colecovision-page .colecovision-chip-section .lead,
body.colecovision-page .colecovision-chip-section .chapter-copy > p { color: #d2d6d0; }
body.colecovision-page .colecovision-chip-section .section-number { color: var(--cv-yellow); }
body.colecovision-page .colecovision-chip-grid {
  margin: 2.7rem 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  background: #626965;
  border: 2px solid #626965;
}
body.colecovision-page .colecovision-chip-grid > div { min-height: 240px; padding: 1.5rem; background: #151918; }
body.colecovision-page .colecovision-chip-grid span { display: block; color: var(--cv-red); font: 900 .76rem/1 var(--font-mono, monospace); letter-spacing: .12em; }
body.colecovision-page .colecovision-chip-grid > div:nth-child(2) span { color: var(--cv-orange); }
body.colecovision-page .colecovision-chip-grid > div:nth-child(3) span { color: var(--cv-green); }
body.colecovision-page .colecovision-chip-grid > div:nth-child(4) span { color: var(--cv-blue); }
body.colecovision-page .colecovision-chip-grid strong { display: block; margin: 3.2rem 0 1.1rem; color: #fff; font: 900 1.28rem/1.05 var(--font-mono, monospace); }
body.colecovision-page .colecovision-chip-grid p { color: #cbd0ca; font-size: .83rem; line-height: 1.55; }

body.colecovision-page .colecovision-controller-feature,
body.colecovision-page .colecovision-wheel-feature {
  margin: 2.8rem 0;
  display: grid;
  grid-template-columns: minmax(300px, .85fr) minmax(0, 1.15fr);
  background: var(--cv-black);
}
body.colecovision-page .colecovision-controller-feature figure,
body.colecovision-page .colecovision-wheel-feature figure { min-height: 520px; margin: 0; padding: 2rem; display: grid; place-items: center; background: #fff; }
body.colecovision-page .colecovision-controller-feature img,
body.colecovision-page .colecovision-wheel-feature img { width: 100%; height: 100%; max-height: 540px; object-fit: contain; }
body.colecovision-page .colecovision-controller-feature > div,
body.colecovision-page .colecovision-wheel-feature > div { padding: clamp(2rem, 4.8vw, 4rem); color: #e6e8e4; }
body.colecovision-page .colecovision-controller-feature > div > span,
body.colecovision-page .colecovision-wheel-feature small { color: var(--cv-yellow); font: 900 .74rem/1 var(--font-mono, monospace); letter-spacing: .15em; }
body.colecovision-page .colecovision-controller-feature h3,
body.colecovision-page .colecovision-wheel-feature h3 { margin: 1rem 0 1.7rem; color: #fff; font-size: clamp(2rem, 3.7vw, 3.5rem); line-height: .98; }
body.colecovision-page .colecovision-controller-feature ul { margin: 0; padding: 0; list-style: none; }
body.colecovision-page .colecovision-controller-feature li { padding: .95rem 0; border-top: 1px solid #49504d; }
body.colecovision-page .colecovision-controller-feature li strong { color: #fff; }
body.colecovision-page .colecovision-controller-feature p,
body.colecovision-page .colecovision-wheel-feature p { color: #cfd3cd; font-size: .9rem; line-height: 1.6; }

body.colecovision-page .colecovision-games-section { background: var(--cv-paper); }
body.colecovision-page .colecovision-game-grid {
  margin: 2.8rem 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
body.colecovision-page .colecovision-game-grid article { min-height: 250px; padding: 1.5rem; color: #eef0eb; background: #202725; box-shadow: inset 0 -8px var(--cv-red); }
body.colecovision-page .colecovision-game-grid article:nth-child(2) { box-shadow: inset 0 -8px var(--cv-orange); }
body.colecovision-page .colecovision-game-grid article:nth-child(3) { box-shadow: inset 0 -8px var(--cv-yellow); }
body.colecovision-page .colecovision-game-grid article:nth-child(4) { box-shadow: inset 0 -8px var(--cv-green); }
body.colecovision-page .colecovision-game-grid article:nth-child(5) { box-shadow: inset 0 -8px var(--cv-blue); }
body.colecovision-page .colecovision-game-grid article:nth-child(6) { box-shadow: inset 0 -8px #9a6fb0; }
body.colecovision-page .colecovision-game-grid span { color: #bfc5bd; font: 800 .69rem/1 var(--font-mono, monospace); letter-spacing: .13em; }
body.colecovision-page .colecovision-game-grid h3 { margin: 2.6rem 0 .8rem; color: #fff; font-size: 1.55rem; }
body.colecovision-page .colecovision-game-grid p { color: #d6dad3; font-size: .86rem; line-height: 1.58; }

body.colecovision-page .colecovision-wide-photo { margin: 2.8rem 0; background: #fff; }
body.colecovision-page .colecovision-wide-photo img { display: block; width: 100%; height: auto; max-height: 650px; object-fit: contain; }
body.colecovision-page .colecovision-wide-photo figcaption { margin: 0; padding: 1rem 1.2rem; color: #e7e9e4; background: var(--cv-ink); font-size: .8rem; line-height: 1.5; }

body.colecovision-page .colecovision-wheel-section { background: #e2ded3; }
body.colecovision-page .colecovision-wheel-feature { grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr); }
body.colecovision-page .colecovision-wheel-feature p + p { margin-top: 1.1rem; }

body.colecovision-page .colecovision-adam-section { color: #eef0eb; background: #2a3431; }
body.colecovision-page .colecovision-adam-section h2 { color: #fff; }
body.colecovision-page .colecovision-adam-section .lead,
body.colecovision-page .colecovision-adam-section .chapter-copy > p { color: #d5d9d3; }
body.colecovision-page .colecovision-adam-section .section-number { color: var(--cv-yellow); }
body.colecovision-page .colecovision-adam-diagram {
  margin: 2.8rem 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: .7rem;
}
body.colecovision-page .colecovision-adam-diagram > div { min-height: 245px; padding: 1.45rem; color: #171a19; background: var(--cv-paper); }
body.colecovision-page .colecovision-adam-diagram > span { align-self: center; color: var(--cv-yellow); font: 900 1.8rem/1 var(--font-mono, monospace); }
body.colecovision-page .colecovision-adam-diagram small { display: block; color: var(--cv-red); font: 900 .68rem/1 var(--font-mono, monospace); letter-spacing: .12em; }
body.colecovision-page .colecovision-adam-diagram strong { display: block; margin: 2.7rem 0 1rem; color: var(--cv-ink); font-size: 1.2rem; line-height: 1.15; }
body.colecovision-page .colecovision-adam-diagram p { color: #4b504d; font-size: .83rem; line-height: 1.55; }

body.colecovision-page .colecovision-timeline { background: var(--cv-black); }
body.colecovision-page .colecovision-timeline time { color: var(--cv-yellow); }
body.colecovision-page .colecovision-related { color: #151918; background: var(--cv-yellow); }
body.colecovision-page .colecovision-related h2,
body.colecovision-page .colecovision-related p:last-child { color: #151918; }
body.colecovision-page .colecovision-related a { color: #151918; border-color: #151918; }
body.colecovision-page .colecovision-related a:hover { color: #fff; background: #151918; }
body.colecovision-page .pagination-placeholder { min-height: 1px; }

body.colecovision-page .chapter-sources > div > ul { margin-top: 28px; }
body.colecovision-page .chapter-sources > div > ul li { margin: 0; }
body.colecovision-page .chapter-sources > div > ul li a {
  position: relative;
  display: block;
  padding: 10px 34px 10px 0;
  line-height: 1.4;
}
body.colecovision-page .chapter-sources > div > ul li a em { display: inline; }
body.colecovision-page .chapter-sources > div > ul li a::after {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

@media (max-width: 980px) {
  body.colecovision-page .colecovision-hero h1 { font-size: clamp(3.3rem, 8vw, 5.4rem); }
  body.colecovision-page .colecovision-machine-graphic { min-height: 500px; }
  body.colecovision-page .colecovision-chip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.colecovision-page .colecovision-chip-grid > div { min-height: 210px; }
  body.colecovision-page .colecovision-kong-section { grid-template-columns: 140px minmax(0, 1fr); }
}

@media (max-width: 680px) {
  body.colecovision-page .colecovision-hero h1 { font-size: clamp(2.55rem, 11vw, 3.85rem); line-height: .9; }
  body.colecovision-page .colecovision-machine-graphic { min-height: 345px; padding: 1rem; }
  body.colecovision-page .colecovision-machine-graphic figcaption { display: block; }
  body.colecovision-page .colecovision-machine-graphic figcaption span { display: block; }
  body.colecovision-page .colecovision-kong-board,
  body.colecovision-page .colecovision-chip-grid,
  body.colecovision-page .colecovision-controller-feature,
  body.colecovision-page .colecovision-game-grid,
  body.colecovision-page .colecovision-wheel-feature,
  body.colecovision-page .colecovision-adam-diagram { grid-template-columns: 1fr; }
  body.colecovision-page .colecovision-kong-section { grid-template-columns: 1fr; }
  body.colecovision-page .colecovision-kong-board > div,
  body.colecovision-page .colecovision-chip-grid > div,
  body.colecovision-page .colecovision-game-grid article { min-height: 0; }
  body.colecovision-page .colecovision-kong-board small { margin-bottom: 1.6rem; }
  body.colecovision-page .colecovision-chip-grid strong { margin-top: 2rem; }
  body.colecovision-page .colecovision-controller-feature figure,
  body.colecovision-page .colecovision-wheel-feature figure { min-height: 340px; }
  body.colecovision-page .colecovision-adam-diagram > div { min-height: 0; }
  body.colecovision-page .colecovision-adam-diagram > span { transform: rotate(90deg); justify-self: center; }
}

/* Vectrex — phosphor light, vector geometry and translucent overlays */
body.vectrex-page {
  --vx-black: #0a0f0e;
  --vx-ink: #141d1b;
  --vx-panel: #1d2926;
  --vx-line: #baffd8;
  --vx-mint: #71e5af;
  --vx-cyan: #62bfd2;
  --vx-red: #eb625c;
  --vx-amber: #edc967;
  --vx-paper: #eee9dc;
}

body.vectrex-page .vectrex-hero {
  min-height: 820px;
  overflow: hidden;
  color: #f3fff8;
  background:
    radial-gradient(circle at 16% 34%, rgba(113,229,175,.11), transparent 26%),
    linear-gradient(146deg, transparent 0 62%, rgba(186,255,216,.07) 62.2% 62.5%, transparent 62.7%),
    var(--vx-black);
}

body.vectrex-page .vectrex-hero::before {
  position: absolute;
  inset: 7% 48% 8% 4%;
  opacity: .42;
  background:
    linear-gradient(28deg, transparent 0 49.7%, var(--vx-mint) 49.9% 50.2%, transparent 50.4%),
    linear-gradient(151deg, transparent 0 49.7%, var(--vx-cyan) 49.9% 50.2%, transparent 50.4%);
  clip-path: polygon(3% 7%, 96% 1%, 87% 92%, 14% 100%);
  content: "";
  pointer-events: none;
}

body.vectrex-page .vectrex-hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 8px;
  background: linear-gradient(90deg, var(--vx-mint) 0 46%, var(--vx-cyan) 46% 66%, var(--vx-red) 66% 83%, var(--vx-amber) 83%);
  box-shadow: 0 0 22px rgba(113,229,175,.55);
  content: "";
}

body.vectrex-page .vectrex-hero .chapter-hero-copy { position: relative; z-index: 2; }
body.vectrex-page .vectrex-hero h1 { max-width: 10.8ch; color: #f4fff9; font-size: clamp(3.8rem, 5.8vw, 7rem); line-height: .89; letter-spacing: -.055em; text-shadow: 0 0 26px rgba(113,229,175,.13); }
body.vectrex-page .vectrex-hero .eyebrow { color: var(--vx-mint); }
body.vectrex-page .vectrex-hero .chapter-deck { max-width: 58ch; color: #d5e5dd; }
body.vectrex-page .vectrex-hero .chapter-byline { color: #adc0b7; border-color: #3f514b; }

body.vectrex-page .vectrex-machine-graphic {
  position: relative;
  min-height: 700px;
  margin: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 50% 44%, rgba(113,229,175,.18) 0, rgba(37,59,51,.25) 26%, transparent 62%),
    linear-gradient(32deg, transparent 0 44%, rgba(186,255,216,.12) 44.2% 44.45%, transparent 44.7%),
    var(--vx-black);
}

body.vectrex-page .vectrex-machine-graphic::before,
body.vectrex-page .vectrex-machine-graphic::after {
  position: absolute;
  border: 1px solid rgba(186,255,216,.18);
  content: "";
  transform: rotate(8deg);
}
body.vectrex-page .vectrex-machine-graphic::before { width: 58%; height: 46%; }
body.vectrex-page .vectrex-machine-graphic::after { width: 33%; height: 65%; transform: rotate(-21deg); }

body.vectrex-page .vectrex-machine-graphic img {
  position: relative;
  z-index: 1;
  width: auto;
  height: min(730px, 88%);
  max-width: 88%;
  object-fit: contain;
  filter: drop-shadow(0 34px 26px rgba(0,0,0,.72)) drop-shadow(0 0 18px rgba(113,229,175,.12));
}

body.vectrex-page .vectrex-machine-graphic figcaption {
  position: absolute;
  right: clamp(1.5rem, 3vw, 3rem);
  bottom: clamp(1.6rem, 3vw, 3rem);
  left: clamp(1.5rem, 3vw, 3rem);
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--vx-line);
  font: 800 .72rem/1.35 var(--font-mono, monospace);
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.vectrex-page .fact-strip > div { color: #f4fff9; background: var(--vx-ink); }
body.vectrex-page .fact-strip > div:nth-child(1) { box-shadow: inset 0 7px var(--vx-mint); }
body.vectrex-page .fact-strip > div:nth-child(2) { box-shadow: inset 0 7px var(--vx-cyan); }
body.vectrex-page .fact-strip > div:nth-child(3) { box-shadow: inset 0 7px var(--vx-red); }
body.vectrex-page .fact-strip > div:nth-child(4) { box-shadow: inset 0 7px var(--vx-amber); }
body.vectrex-page .fact-strip small,
body.vectrex-page .fact-strip strong { color: inherit; }

body.vectrex-page .vectrex-opening { background: var(--vx-paper); }
body.vectrex-page .vectrex-quote { color: #07100d; background: var(--vx-mint); }
body.vectrex-page .vectrex-quote p,
body.vectrex-page .vectrex-quote span { color: #07100d; }
body.vectrex-page .vectrex-quote::before { color: rgba(7,16,13,.12); }

body.vectrex-page .vectrex-console-section { background: #f8f5ed; }
body.vectrex-page .vectrex-three-grid {
  margin: 2.8rem 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
body.vectrex-page .vectrex-three-grid article { min-height: 255px; padding: 1.65rem; color: #eaf8f1; background: var(--vx-ink); border-top: 6px solid var(--vx-mint); }
body.vectrex-page .vectrex-three-grid article:nth-child(2) { border-color: var(--vx-cyan); }
body.vectrex-page .vectrex-three-grid article:nth-child(3) { border-color: var(--vx-amber); }
body.vectrex-page .vectrex-three-grid span { color: #82988e; font: 900 .72rem/1 var(--font-mono, monospace); letter-spacing: .14em; }
body.vectrex-page .vectrex-three-grid h3 { margin: 2.8rem 0 .9rem; color: var(--vx-line); font-size: 1.45rem; }
body.vectrex-page .vectrex-three-grid p { color: #c9d8d1; font-size: .88rem; line-height: 1.58; }

body.vectrex-page .vectrex-screen-section { color: #ecf8f2; background: var(--vx-black); }
body.vectrex-page .vectrex-screen-section h2 { color: #fff; }
body.vectrex-page .vectrex-screen-section .lead,
body.vectrex-page .vectrex-screen-section .chapter-copy > p { color: #c9d8d1; }
body.vectrex-page .vectrex-screen-section .section-number { color: var(--vx-mint); }
body.vectrex-page .vectrex-screen-feature {
  margin: 2.8rem 0;
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr);
  background: var(--vx-panel);
  border: 1px solid #3a4b45;
}
body.vectrex-page .vectrex-screen-feature figure { min-height: 520px; margin: 0; display: flex; flex-direction: column; background: #050807; }
body.vectrex-page .vectrex-screen-feature img { width: 100%; height: 100%; min-height: 470px; object-fit: cover; filter: contrast(1.1); }
body.vectrex-page .vectrex-screen-feature figcaption { padding: .9rem 1rem; color: #a9bbb2; font-size: .78rem; line-height: 1.45; }
body.vectrex-page .vectrex-screen-feature > div { padding: clamp(2rem, 5vw, 4.5rem); align-self: center; }
body.vectrex-page .vectrex-screen-feature small { color: var(--vx-mint); font: 900 .72rem/1 var(--font-mono, monospace); letter-spacing: .15em; }
body.vectrex-page .vectrex-screen-feature h3 { margin: 1rem 0 1.7rem; color: #fff; font-size: clamp(2rem, 3.7vw, 3.55rem); line-height: .98; }
body.vectrex-page .vectrex-screen-feature p { color: #cadad2; font-size: .92rem; line-height: 1.65; }
body.vectrex-page .vectrex-screen-feature p + p { margin-top: 1.1rem; }

body.vectrex-page .vectrex-hardware-section { color: #edf8f2; background: #22302c; }
body.vectrex-page .vectrex-hardware-section h2 { color: #fff; }
body.vectrex-page .vectrex-hardware-section .lead,
body.vectrex-page .vectrex-hardware-section .chapter-copy > p { color: #cfddd6; }
body.vectrex-page .vectrex-hardware-section .section-number { color: var(--vx-mint); }
body.vectrex-page .vectrex-chip-grid {
  margin: 2.8rem 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  background: #566a61;
  border: 2px solid #566a61;
}
body.vectrex-page .vectrex-chip-grid > div { min-height: 250px; padding: 1.45rem; background: var(--vx-black); }
body.vectrex-page .vectrex-chip-grid span { display: block; color: var(--vx-mint); font: 900 .72rem/1 var(--font-mono, monospace); letter-spacing: .12em; }
body.vectrex-page .vectrex-chip-grid > div:nth-child(2) span { color: var(--vx-cyan); }
body.vectrex-page .vectrex-chip-grid > div:nth-child(3) span { color: var(--vx-red); }
body.vectrex-page .vectrex-chip-grid > div:nth-child(4) span { color: var(--vx-amber); }
body.vectrex-page .vectrex-chip-grid strong { display: block; margin: 3.2rem 0 1.1rem; color: #fff; font: 900 1.25rem/1.1 var(--font-mono, monospace); }
body.vectrex-page .vectrex-chip-grid p { color: #c0d1c8; font-size: .83rem; line-height: 1.56; }

body.vectrex-page .vectrex-minestorm-section { background: var(--vx-paper); }
body.vectrex-page .vectrex-level-panel {
  margin: 2.8rem 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
body.vectrex-page .vectrex-level-panel > div { min-height: 260px; padding: 1.55rem; background: #fffdf8; border: 1px solid #d4ccbd; box-shadow: inset 0 6px var(--vx-mint); }
body.vectrex-page .vectrex-level-panel > div:nth-child(2) { box-shadow: inset 0 6px var(--vx-red); }
body.vectrex-page .vectrex-level-panel > div:nth-child(3) { color: #edf8f2; background: var(--vx-ink); border-color: var(--vx-ink); box-shadow: inset 0 6px var(--vx-amber); }
body.vectrex-page .vectrex-level-panel small { display: block; color: #52675e; font: 900 .68rem/1 var(--font-mono, monospace); letter-spacing: .13em; }
body.vectrex-page .vectrex-level-panel > div:nth-child(3) small { color: var(--vx-amber); }
body.vectrex-page .vectrex-level-panel strong { display: block; margin: 2.6rem 0 1rem; color: #14201c; font-size: 1.2rem; line-height: 1.15; }
body.vectrex-page .vectrex-level-panel > div:nth-child(3) strong { color: #fff; }
body.vectrex-page .vectrex-level-panel p { color: #5c625e; font-size: .84rem; line-height: 1.57; }
body.vectrex-page .vectrex-level-panel > div:nth-child(3) p { color: #c7d6cf; }

body.vectrex-page .vectrex-overlay-section { background: #f8f5ed; }
body.vectrex-page .vectrex-overlay-feature,
body.vectrex-page .vectrex-controller-feature {
  margin: 2.8rem 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
  background: var(--vx-ink);
}
body.vectrex-page .vectrex-overlay-feature figure,
body.vectrex-page .vectrex-controller-feature figure { min-height: 480px; margin: 0; padding: 2rem; display: flex; flex-direction: column; justify-content: center; background: #fff; }
body.vectrex-page .vectrex-overlay-feature img,
body.vectrex-page .vectrex-controller-feature img { width: 100%; height: auto; max-height: 500px; object-fit: contain; }
body.vectrex-page .vectrex-overlay-feature figcaption { padding-top: 1rem; color: #606963; font-size: .78rem; line-height: 1.45; }
body.vectrex-page .vectrex-overlay-feature > div,
body.vectrex-page .vectrex-controller-feature > div { padding: clamp(2rem, 4.8vw, 4rem); align-self: center; }
body.vectrex-page .vectrex-overlay-feature > div > span,
body.vectrex-page .vectrex-controller-feature small { color: var(--vx-mint); font: 900 .72rem/1 var(--font-mono, monospace); letter-spacing: .15em; }
body.vectrex-page .vectrex-overlay-feature h3,
body.vectrex-page .vectrex-controller-feature h3 { margin: 1rem 0 1.7rem; color: #fff; font-size: clamp(2rem, 3.6vw, 3.4rem); line-height: .98; }
body.vectrex-page .vectrex-overlay-feature p,
body.vectrex-page .vectrex-controller-feature p { color: #cbd9d2; font-size: .9rem; line-height: 1.62; }
body.vectrex-page .vectrex-overlay-feature p + p { margin-top: 1.1rem; }

body.vectrex-page .vectrex-controller-section { background: var(--vx-paper); }
body.vectrex-page .vectrex-controller-feature { grid-template-columns: minmax(300px, .9fr) minmax(0, 1.1fr); }
body.vectrex-page .vectrex-controller-feature ul { margin: 0; padding: 0; list-style: none; }
body.vectrex-page .vectrex-controller-feature li { padding: .92rem 0; border-top: 1px solid #40534b; }
body.vectrex-page .vectrex-controller-feature li strong { color: #fff; }

body.vectrex-page .vectrex-games-section { background: #e6e1d5; }
body.vectrex-page .vectrex-game-grid {
  margin: 2.8rem 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
body.vectrex-page .vectrex-game-grid article { min-height: 245px; padding: 1.5rem; color: #ebf8f1; background: var(--vx-ink); box-shadow: inset 0 -7px var(--vx-mint); }
body.vectrex-page .vectrex-game-grid article:nth-child(2) { box-shadow: inset 0 -7px var(--vx-cyan); }
body.vectrex-page .vectrex-game-grid article:nth-child(3) { box-shadow: inset 0 -7px var(--vx-red); }
body.vectrex-page .vectrex-game-grid article:nth-child(4) { box-shadow: inset 0 -7px var(--vx-amber); }
body.vectrex-page .vectrex-game-grid article:nth-child(5) { box-shadow: inset 0 -7px #a190d1; }
body.vectrex-page .vectrex-game-grid article:nth-child(6) { box-shadow: inset 0 -7px #ee819b; }
body.vectrex-page .vectrex-game-grid span { color: #9fb2a9; font: 800 .68rem/1 var(--font-mono, monospace); letter-spacing: .12em; }
body.vectrex-page .vectrex-game-grid h3 { margin: 2.5rem 0 .8rem; color: #fff; font-size: 1.55rem; }
body.vectrex-page .vectrex-game-grid p { color: #cfddd6; font-size: .86rem; line-height: 1.58; }

body.vectrex-page .vectrex-peripherals-section { color: #ecf8f2; background: var(--vx-panel); }
body.vectrex-page .vectrex-peripherals-section h2 { color: #fff; }
body.vectrex-page .vectrex-peripherals-section .lead,
body.vectrex-page .vectrex-peripherals-section .chapter-copy > p { color: #cad9d2; }
body.vectrex-page .vectrex-peripherals-section .section-number { color: var(--vx-mint); }
body.vectrex-page .vectrex-peripheral-grid { margin: 2.8rem 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
body.vectrex-page .vectrex-peripheral-grid article { min-height: 390px; padding: clamp(1.7rem, 3.5vw, 3rem); background: var(--vx-black); border: 1px solid #465a51; }
body.vectrex-page .vectrex-peripheral-grid article:first-child { box-shadow: inset 0 7px var(--vx-cyan); }
body.vectrex-page .vectrex-peripheral-grid article:last-child { box-shadow: inset 0 7px var(--vx-red); }
body.vectrex-page .vectrex-peripheral-grid span { color: var(--vx-mint); font: 900 .72rem/1 var(--font-mono, monospace); letter-spacing: .14em; }
body.vectrex-page .vectrex-peripheral-grid h3 { margin: 3.5rem 0 1.2rem; color: #fff; font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1; }
body.vectrex-page .vectrex-peripheral-grid p { color: #cad9d2; font-size: .92rem; line-height: 1.63; }
body.vectrex-page .vectrex-peripheral-grid small { display: block; margin-top: 1.5rem; color: #9fb2a9; font-size: .78rem; line-height: 1.55; }

body.vectrex-page .vectrex-timeline { background: var(--vx-black); }
body.vectrex-page .vectrex-timeline time { color: var(--vx-mint); text-shadow: 0 0 14px rgba(113,229,175,.22); }
body.vectrex-page .vectrex-related { color: #08110e; background: var(--vx-mint); }
body.vectrex-page .vectrex-related h2,
body.vectrex-page .vectrex-related p:last-child { color: #08110e; }
body.vectrex-page .vectrex-related a { color: #08110e; border-color: #08110e; }
body.vectrex-page .vectrex-related a:hover { color: #fff; background: #08110e; }
body.vectrex-page .pagination-placeholder { min-height: 1px; }

body.vectrex-page .chapter-sources > div > ul { margin-top: 26px; }
body.vectrex-page .chapter-sources > div > ul li { margin: 0; }
body.vectrex-page .chapter-sources > div > ul li a {
  position: relative;
  display: block;
  padding: 9px 34px 9px 0;
  line-height: 1.4;
}
body.vectrex-page .chapter-sources > div > ul li a em { display: inline; }
body.vectrex-page .chapter-sources > div > ul li a::after { position: absolute; top: 50%; right: 0; transform: translateY(-50%); }
body.vectrex-page .credits-heading { margin-top: 34px; }
body.vectrex-page .image-credit-list { margin: 12px 0 0; line-height: 1.55; }

@media (max-width: 980px) {
  body.vectrex-page .vectrex-hero h1 { font-size: clamp(3.2rem, 7.8vw, 5.3rem); }
  body.vectrex-page .vectrex-machine-graphic { min-height: 560px; }
  body.vectrex-page .vectrex-machine-graphic img { height: min(590px, 88%); }
  body.vectrex-page .vectrex-chip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.vectrex-page .vectrex-chip-grid > div { min-height: 220px; }
}

@media (max-width: 680px) {
  body.vectrex-page .vectrex-hero h1 { font-size: clamp(2.45rem, 10.4vw, 3.65rem); line-height: .91; }
  body.vectrex-page .vectrex-machine-graphic { min-height: 470px; padding: 1rem; }
  body.vectrex-page .vectrex-machine-graphic img { height: 430px; max-width: 84%; }
  body.vectrex-page .vectrex-machine-graphic figcaption { display: block; }
  body.vectrex-page .vectrex-machine-graphic figcaption span { display: block; }
  body.vectrex-page .vectrex-three-grid,
  body.vectrex-page .vectrex-screen-feature,
  body.vectrex-page .vectrex-chip-grid,
  body.vectrex-page .vectrex-level-panel,
  body.vectrex-page .vectrex-overlay-feature,
  body.vectrex-page .vectrex-controller-feature,
  body.vectrex-page .vectrex-game-grid,
  body.vectrex-page .vectrex-peripheral-grid { grid-template-columns: 1fr; }
  body.vectrex-page .vectrex-three-grid article,
  body.vectrex-page .vectrex-chip-grid > div,
  body.vectrex-page .vectrex-level-panel > div,
  body.vectrex-page .vectrex-game-grid article,
  body.vectrex-page .vectrex-peripheral-grid article { min-height: 0; }
  body.vectrex-page .vectrex-three-grid h3,
  body.vectrex-page .vectrex-chip-grid strong,
  body.vectrex-page .vectrex-level-panel strong,
  body.vectrex-page .vectrex-game-grid h3,
  body.vectrex-page .vectrex-peripheral-grid h3 { margin-top: 1.8rem; }
  body.vectrex-page .vectrex-screen-feature figure { min-height: 390px; }
  body.vectrex-page .vectrex-screen-feature img { min-height: 340px; }
  body.vectrex-page .vectrex-overlay-feature figure,
  body.vectrex-page .vectrex-controller-feature figure { min-height: 330px; padding: 1.3rem; }
}

/* Famicom / NES — one technical core, two product identities */
body.nes-page {
  --nes-red: #c82128;
  --nes-red-dark: #7c161c;
  --nes-cream: #eee7d5;
  --nes-gold: #c8a75d;
  --nes-light: #deddd8;
  --nes-mid: #8d8d89;
  --nes-charcoal: #202326;
  --nes-black: #111315;
  --nes-paper: #f1ede3;
}

body.nes-page .nes-hero {
  position: relative;
  min-height: 860px;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: linear-gradient(108deg, var(--nes-red-dark) 0 49.8%, var(--nes-charcoal) 50.2% 100%);
}
body.nes-page .site-header { position: relative; z-index: 20; }
body.nes-page .nes-hero::before {
  position: absolute;
  inset: 0;
  opacity: .17;
  background:
    linear-gradient(90deg, transparent 0 23px, rgba(255,255,255,.24) 24px, transparent 25px) 0 0 / 48px 48px,
    linear-gradient(0deg, transparent 0 23px, rgba(255,255,255,.2) 24px, transparent 25px) 0 0 / 48px 48px;
  content: "";
  pointer-events: none;
}
body.nes-page .nes-hero::after { position: absolute; right: 0; bottom: 0; left: 0; height: 9px; background: linear-gradient(90deg, var(--nes-gold) 0 50%, var(--nes-red) 50% 66%, var(--nes-light) 66% 100%); content: ""; pointer-events: none; }
body.nes-page .nes-hero .chapter-hero-copy { position: relative; z-index: 3; }
body.nes-page .nes-hero h1 { max-width: 11.3ch; color: #fff; font-size: clamp(3.5rem, 5.4vw, 6.6rem); line-height: .9; letter-spacing: -.055em; }
body.nes-page .nes-hero .eyebrow { color: #f2d48e; }
body.nes-page .nes-hero .chapter-deck { max-width: 60ch; color: #f2e7d7; }
body.nes-page .nes-hero .chapter-byline { color: #dbcbb8; border-color: rgba(255,255,255,.25); }

body.nes-page .nes-dual-hero { position: relative; min-height: 720px; display: grid; grid-template-rows: 1fr 1fr; background: #16191b; }
body.nes-page .nes-dual-hero figure { position: relative; min-height: 360px; margin: 0; padding: 3.4rem 2rem 2.5rem; display: grid; place-items: center; overflow: hidden; }
body.nes-page .nes-dual-hero .famicom-hero-machine { background: var(--nes-cream); }
body.nes-page .nes-dual-hero .nes-hero-machine { background: #c9c9c5; }
body.nes-page .nes-dual-hero figure::after { position: absolute; inset: 18px; border: 1px solid rgba(20,22,23,.18); content: ""; pointer-events: none; }
body.nes-page .nes-dual-hero img { position: relative; z-index: 1; width: 96%; height: auto; object-fit: contain; filter: drop-shadow(0 20px 15px rgba(0,0,0,.26)); }
body.nes-page .nes-dual-hero figure > span,
body.nes-page .nes-dual-hero figcaption { position: absolute; z-index: 2; color: var(--nes-red-dark); font: 900 .68rem/1 var(--font-mono, monospace); letter-spacing: .12em; }
body.nes-page .nes-dual-hero figure > span { top: 2rem; left: 2.1rem; }
body.nes-page .nes-dual-hero figcaption { right: 2.1rem; bottom: 1.8rem; text-transform: uppercase; }
body.nes-page .nes-dual-hero .nes-hero-machine > span,
body.nes-page .nes-dual-hero .nes-hero-machine figcaption { color: #373a3c; }

body.nes-page .fact-strip > div { color: #fff; background: var(--nes-charcoal); }
body.nes-page .fact-strip > div:nth-child(1) { box-shadow: inset 0 7px var(--nes-red-dark); }
body.nes-page .fact-strip > div:nth-child(2) { box-shadow: inset 0 7px var(--nes-red); }
body.nes-page .fact-strip > div:nth-child(3) { box-shadow: inset 0 7px var(--nes-mid); }
body.nes-page .fact-strip > div:nth-child(4) { box-shadow: inset 0 7px var(--nes-gold); }
body.nes-page .fact-strip small,
body.nes-page .fact-strip strong { color: inherit; }

body.nes-page .nes-opening { background: var(--nes-paper); }
body.nes-page .nes-quote { background: var(--nes-red); }
body.nes-page .nes-quote::before { color: rgba(36,8,10,.15); }

body.nes-page .famicom-identity-section { background: #eadfca; }
body.nes-page .nes-identity-section { background: #d7d6d0; }
body.nes-page .nes-wide-product { margin: 2.8rem 0; background: #fff; border: 1px solid rgba(24,25,25,.15); }
body.nes-page .nes-wide-product img { display: block; width: 100%; height: auto; max-height: 650px; padding: clamp(1rem, 3vw, 2.5rem); object-fit: contain; }
body.nes-page .nes-wide-product figcaption { margin: 0; padding: 1rem 1.2rem; display: flex; justify-content: space-between; gap: 1.2rem; color: #fff; background: var(--nes-red-dark); font-size: .78rem; line-height: 1.45; }
body.nes-page .western-product figcaption { background: var(--nes-charcoal); }

body.nes-page .nes-detail-grid,
body.nes-page .nes-mario-lessons,
body.nes-page .nes-save-stories,
body.nes-page .nes-lock-grid,
body.nes-page .nes-netherlands-panel { margin: 2.7rem 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
body.nes-page .nes-detail-grid article { min-height: 235px; padding: 1.5rem; background: #fffaf0; border-top: 6px solid var(--nes-red-dark); }
body.nes-page .nes-detail-grid article:nth-child(2) { border-color: var(--nes-gold); }
body.nes-page .nes-detail-grid article:nth-child(3) { border-color: var(--nes-red); }
body.nes-page .nes-detail-grid span { color: var(--nes-red-dark); font: 900 .72rem/1 var(--font-mono, monospace); letter-spacing: .12em; }
body.nes-page .nes-detail-grid h3 { margin: 2.5rem 0 .8rem; color: #251a16; font-size: 1.4rem; }
body.nes-page .nes-detail-grid p { color: #62574f; font-size: .86rem; line-height: 1.58; }

body.nes-page .nes-transform-grid { margin: 2.8rem 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; background: #777876; border: 2px solid #777876; }
body.nes-page .nes-transform-grid > div { min-height: 245px; padding: 1.4rem; background: var(--nes-charcoal); }
body.nes-page .nes-transform-grid small { color: #c6c7c4; font: 900 .68rem/1 var(--font-mono, monospace); letter-spacing: .12em; }
body.nes-page .nes-transform-grid strong { display: block; margin: 3rem 0 1rem; color: #fff; font-size: 1.2rem; line-height: 1.1; }
body.nes-page .nes-transform-grid p { color: #d0d1ce; font-size: .82rem; line-height: 1.55; }
body.nes-page .nes-transform-grid > div:nth-child(1) { box-shadow: inset 0 6px var(--nes-red); }
body.nes-page .nes-transform-grid > div:nth-child(2) { box-shadow: inset 0 6px var(--nes-gold); }
body.nes-page .nes-transform-grid > div:nth-child(3) { box-shadow: inset 0 6px #deddd8; }
body.nes-page .nes-transform-grid > div:nth-child(4) { box-shadow: inset 0 6px #747679; }

body.nes-page .nes-rob-section { color: #f5f5f2; background: var(--nes-charcoal); }
body.nes-page .nes-rob-section h2 { color: #fff; }
body.nes-page .nes-rob-section .lead { color: #d7d8d5; }
body.nes-page .nes-rob-section .section-number { color: #efc96f; }
body.nes-page .nes-rob-feature { margin: 2.8rem 0; display: grid; grid-template-columns: minmax(300px, .82fr) minmax(0, 1.18fr); background: #111315; border: 1px solid #56595a; }
body.nes-page .nes-rob-feature figure { min-height: 560px; margin: 0; padding: 2rem; display: grid; place-items: center; background: #f4f3ee; }
body.nes-page .nes-rob-feature img { width: auto; height: 100%; max-height: 590px; max-width: 100%; object-fit: contain; }
body.nes-page .nes-rob-feature > div { padding: clamp(2rem, 5vw, 4.5rem); align-self: center; }
body.nes-page .nes-rob-feature span { color: var(--nes-red); font: 900 .72rem/1 var(--font-mono, monospace); letter-spacing: .14em; }
body.nes-page .nes-rob-feature h3 { margin: 1rem 0 1.6rem; color: #fff; font-size: clamp(2rem, 3.6vw, 3.5rem); line-height: .98; }
body.nes-page .nes-rob-feature p { color: #d4d5d2; font-size: .92rem; line-height: 1.64; }
body.nes-page .nes-rob-feature p + p { margin-top: 1.1rem; }

body.nes-page .nes-hardware-section { color: #f1f2ef; background: #303437; }
body.nes-page .nes-hardware-section h2 { color: #fff; }
body.nes-page .nes-hardware-section .lead,
body.nes-page .nes-hardware-section .chapter-copy > p { color: #d8d9d6; }
body.nes-page .nes-hardware-section .section-number { color: #efc96f; }
body.nes-page .nes-board-feature { margin: 2.8rem 0; background: #f7f7f3; }
body.nes-page .nes-board-feature img { display: block; width: 100%; height: auto; max-height: 650px; padding: 2rem; object-fit: contain; }
body.nes-page .nes-board-feature figcaption { padding: 1rem 1.2rem; color: #d9dad7; background: var(--nes-black); font-size: .78rem; line-height: 1.5; }
body.nes-page .nes-chip-grid { margin: 2.8rem 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; background: #65696a; border: 2px solid #65696a; }
body.nes-page .nes-chip-grid > div { min-height: 250px; padding: 1.45rem; background: var(--nes-black); }
body.nes-page .nes-chip-grid span { color: var(--nes-red); font: 900 .7rem/1 var(--font-mono, monospace); letter-spacing: .12em; }
body.nes-page .nes-chip-grid > div:nth-child(2) span { color: var(--nes-gold); }
body.nes-page .nes-chip-grid > div:nth-child(3) span { color: #b9c1c6; }
body.nes-page .nes-chip-grid > div:nth-child(4) span { color: #e16b70; }
body.nes-page .nes-chip-grid strong { display: block; margin: 3rem 0 1rem; color: #fff; font: 900 1.2rem/1.08 var(--font-mono, monospace); }
body.nes-page .nes-chip-grid p { color: #c9ccca; font-size: .82rem; line-height: 1.57; }

body.nes-page .nes-controller-section { background: #e6e1d6; }
body.nes-page .nes-control-line { margin: 2.8rem 0; padding: clamp(1.3rem, 3vw, 2.2rem); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1rem; color: #fff; background: var(--nes-charcoal); border-bottom: 8px solid var(--nes-red); }
body.nes-page .nes-control-line div { min-width: 130px; display: grid; justify-items: center; gap: .7rem; }
body.nes-page .nes-control-line b { display: grid; width: 56px; height: 56px; place-items: center; color: #fff; background: var(--nes-red); border-radius: 50%; font: 900 1.4rem/1 var(--font-mono, monospace); }
body.nes-page .nes-control-line div:first-child b { background: #090a0b; border-radius: 4px; font-size: 2rem; }
body.nes-page .nes-control-line div:last-child b { width: 82px; border-radius: 4px; background: #747679; }
body.nes-page .nes-control-line span { color: #c8cbc8; font: 800 .64rem/1 var(--font-mono, monospace); letter-spacing: .12em; }
body.nes-page .nes-control-line i { color: #777b7d; font: 900 1.5rem/1 var(--font-mono, monospace); }

body.nes-page .nes-mario-section { background: var(--nes-paper); }
body.nes-page .nes-mario-lessons article { min-height: 270px; padding: 1.55rem; color: #f4f4f1; background: var(--nes-charcoal); box-shadow: inset 0 7px var(--nes-red); }
body.nes-page .nes-mario-lessons article:nth-child(2) { box-shadow: inset 0 7px var(--nes-gold); }
body.nes-page .nes-mario-lessons article:nth-child(3) { box-shadow: inset 0 7px #929597; }
body.nes-page .nes-mario-lessons small { color: #b9bcba; font: 900 .68rem/1 var(--font-mono, monospace); letter-spacing: .12em; }
body.nes-page .nes-mario-lessons strong { display: block; margin: 3rem 0 1rem; color: #fff; font-size: 1.22rem; line-height: 1.15; }
body.nes-page .nes-mario-lessons p { color: #d2d4d1; font-size: .86rem; line-height: 1.58; }

body.nes-page .nes-cartridge-section { color: #f3f3f0; background: var(--nes-red-dark); }
body.nes-page .nes-cartridge-section h2 { color: #fff; }
body.nes-page .nes-cartridge-section .lead,
body.nes-page .nes-cartridge-section .chapter-copy > p { color: #eadbd6; }
body.nes-page .nes-cartridge-section .section-number { color: #f1d18c; }
body.nes-page .nes-mapper-flow { margin: 2.8rem 0; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: .75rem; align-items: stretch; }
body.nes-page .nes-mapper-flow > div { min-height: 235px; padding: 1.45rem; color: #28211e; background: var(--nes-cream); }
body.nes-page .nes-mapper-flow > span { align-self: center; color: #f3d58f; font: 900 2rem/1 var(--font-mono, monospace); }
body.nes-page .nes-mapper-flow small { color: var(--nes-red-dark); font: 900 .68rem/1 var(--font-mono, monospace); letter-spacing: .12em; }
body.nes-page .nes-mapper-flow strong { display: block; margin: 2.8rem 0 1rem; color: #211817; font-size: 1.25rem; }
body.nes-page .nes-mapper-flow p { color: #5c514b; font-size: .83rem; line-height: 1.55; }
body.nes-page .nes-save-stories article { min-height: 280px; padding: 1.5rem; color: #eee; background: #321417; border: 1px solid #a34f53; }
body.nes-page .nes-save-stories span { color: #eecb7d; font: 900 .68rem/1 var(--font-mono, monospace); letter-spacing: .1em; }
body.nes-page .nes-save-stories h3 { margin: 2.7rem 0 .9rem; color: #fff; font-size: 1.35rem; }
body.nes-page .nes-save-stories p { color: #ead9d5; font-size: .84rem; line-height: 1.57; }

body.nes-page .nes-control-section { background: #d7d6d0; }
body.nes-page .nes-lock-grid > div { min-height: 290px; padding: 1.55rem; color: #eceeeb; background: var(--nes-charcoal); border-bottom: 7px solid var(--nes-red); }
body.nes-page .nes-lock-grid > div:nth-child(2) { border-color: var(--nes-gold); }
body.nes-page .nes-lock-grid > div:nth-child(3) { border-color: #8d9092; }
body.nes-page .nes-lock-grid span { color: #c4c6c3; font: 900 .68rem/1 var(--font-mono, monospace); letter-spacing: .12em; }
body.nes-page .nes-lock-grid h3 { margin: 2.8rem 0 1rem; color: #fff; font-size: 1.35rem; line-height: 1.12; }
body.nes-page .nes-lock-grid p { color: #d0d2cf; font-size: .84rem; line-height: 1.58; }

body.nes-page .nes-europe-section { background: #eee9de; }
body.nes-page .nes-netherlands-panel > div { min-height: 270px; padding: 1.55rem; background: #fffdf8; border: 1px solid #d0c9bc; box-shadow: inset 0 6px var(--nes-red); }
body.nes-page .nes-netherlands-panel > div:nth-child(2) { box-shadow: inset 0 6px var(--nes-gold); }
body.nes-page .nes-netherlands-panel > div:nth-child(3) { box-shadow: inset 0 6px #777a7c; }
body.nes-page .nes-netherlands-panel small { color: var(--nes-red-dark); font: 900 .68rem/1 var(--font-mono, monospace); letter-spacing: .12em; }
body.nes-page .nes-netherlands-panel strong { display: block; margin: 2.7rem 0 1rem; color: #241e1b; font-size: 1.2rem; line-height: 1.15; }
body.nes-page .nes-netherlands-panel p { color: #615a54; font-size: .84rem; line-height: 1.57; }

body.nes-page .nes-timeline { background: var(--nes-black); }
body.nes-page .nes-timeline time { color: #efcb78; }
body.nes-page .nes-related { color: #fff; background: var(--nes-red); }
body.nes-page .nes-related h2,
body.nes-page .nes-related p:last-child { color: #fff; }
body.nes-page .nes-related a { color: #fff; border-color: #fff; }
body.nes-page .nes-related a:hover { color: var(--nes-red); background: #fff; }
body.nes-page .pagination-placeholder { min-height: 1px; }

body.nes-page .chapter-sources > div > ul { margin-top: 26px; }
body.nes-page .chapter-sources > div > ul li { margin: 0; }
body.nes-page .chapter-sources > div > ul li a { position: relative; display: block; padding: 9px 34px 9px 0; line-height: 1.4; }
body.nes-page .chapter-sources > div > ul li a em { display: inline; }
body.nes-page .chapter-sources > div > ul li a::after { position: absolute; top: 50%; right: 0; transform: translateY(-50%); }
body.nes-page .credits-heading { margin-top: 34px; }
body.nes-page .image-credit-list { margin: 12px 0 0; line-height: 1.55; }

@media (max-width: 980px) {
  body.nes-page .nes-hero h1 { font-size: clamp(3rem, 7.4vw, 5rem); }
  body.nes-page .nes-dual-hero { min-height: 620px; }
  body.nes-page .nes-transform-grid,
  body.nes-page .nes-chip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.nes-page .nes-transform-grid > div,
  body.nes-page .nes-chip-grid > div { min-height: 215px; }
}

@media (max-width: 680px) {
  body.nes-page .nes-hero h1 { font-size: clamp(2.3rem, 9.6vw, 3.45rem); line-height: .92; }
  body.nes-page .nes-dual-hero { min-height: 520px; }
  body.nes-page .nes-dual-hero figure { min-height: 260px; padding: 3rem 1rem 2rem; }
  body.nes-page .nes-wide-product figcaption { display: block; }
  body.nes-page .nes-wide-product figcaption span { display: block; }
  body.nes-page .nes-detail-grid,
  body.nes-page .nes-transform-grid,
  body.nes-page .nes-rob-feature,
  body.nes-page .nes-chip-grid,
  body.nes-page .nes-mario-lessons,
  body.nes-page .nes-mapper-flow,
  body.nes-page .nes-save-stories,
  body.nes-page .nes-lock-grid,
  body.nes-page .nes-netherlands-panel { grid-template-columns: 1fr; }
  body.nes-page .nes-detail-grid article,
  body.nes-page .nes-transform-grid > div,
  body.nes-page .nes-chip-grid > div,
  body.nes-page .nes-mario-lessons article,
  body.nes-page .nes-save-stories article,
  body.nes-page .nes-lock-grid > div,
  body.nes-page .nes-netherlands-panel > div { min-height: 0; }
  body.nes-page .nes-detail-grid h3,
  body.nes-page .nes-transform-grid strong,
  body.nes-page .nes-chip-grid strong,
  body.nes-page .nes-mario-lessons strong,
  body.nes-page .nes-save-stories h3,
  body.nes-page .nes-lock-grid h3,
  body.nes-page .nes-netherlands-panel strong { margin-top: 1.8rem; }
  body.nes-page .nes-rob-feature figure { min-height: 400px; padding: 1.5rem; }
  body.nes-page .nes-mapper-flow > div { min-height: 0; }
  body.nes-page .nes-mapper-flow > span { transform: rotate(90deg); justify-self: center; }
  body.nes-page .nes-control-line i { display: none; }
}

/* Mattel Intellivision profile */
body.intellivision-page {
  --iv-brown: #4b2d21;
  --iv-brown-deep: #2b1b17;
  --iv-gold: #d1ae4f;
  --iv-gold-soft: #ead89e;
  --iv-blue: #2f5f70;
  --iv-red: #bb4b3b;
  --iv-ink: #192226;
  --iv-paper: #f0e6d3;
}

body.intellivision-page .chapter-hero-copy {
  position: relative;
  overflow: hidden;
  color: #fffaf0;
  background:
    linear-gradient(135deg, rgba(255,255,255,.06), transparent 48%),
    var(--iv-brown);
}

body.intellivision-page .chapter-hero-copy::after {
  content: "16";
  position: absolute;
  right: -2.5rem;
  bottom: -4.2rem;
  color: rgba(234,216,158,.09);
  font: 900 clamp(12rem, 25vw, 25rem)/.75 Georgia, serif;
  pointer-events: none;
}

body.intellivision-page .chapter-hero-copy .eyebrow,
body.intellivision-page .chapter-hero-copy h1,
body.intellivision-page .chapter-hero-copy .chapter-deck,
body.intellivision-page .chapter-hero-copy .chapter-byline { position: relative; z-index: 1; }
body.intellivision-page .chapter-hero-copy .eyebrow { color: var(--iv-gold-soft); }
body.intellivision-page .chapter-hero-copy h1 { max-width: 810px; color: #fff; }
body.intellivision-page .chapter-hero-copy .chapter-deck { color: #f0e8dc; }
body.intellivision-page .chapter-hero-copy .chapter-byline { color: #e0cfa5; border-top-color: rgba(255,255,255,.3); }

body.intellivision-page .intellivision-machine-graphic {
  position: relative;
  min-height: 620px;
  margin: 0;
  padding: clamp(2rem, 5vw, 5rem);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 1px, transparent 1px 8px),
    #171d1f;
}

body.intellivision-page .intellivision-machine-graphic::before {
  content: "INTELLIGENT TELEVISION";
  position: absolute;
  top: 2.1rem;
  left: 2.1rem;
  color: var(--iv-gold);
  font: 800 .66rem/1 var(--font-mono, monospace);
  letter-spacing: .2em;
}

body.intellivision-page .intellivision-machine-graphic img {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 900px);
  height: auto;
  min-height: 0;
  object-fit: contain;
  filter: drop-shadow(0 22px 20px rgba(0,0,0,.42));
}

body.intellivision-page .intellivision-machine-graphic figcaption {
  position: absolute;
  z-index: 2;
  right: 2rem;
  bottom: 1.6rem;
  left: 2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .8rem;
  border-top: 1px solid rgba(209,174,79,.65);
  color: #e7d8b1;
  font: 700 .65rem/1.3 var(--font-mono, monospace);
  letter-spacing: .1em;
  text-transform: uppercase;
}

body.intellivision-page .fact-strip { background: var(--iv-gold-soft); }
body.intellivision-page .intellivision-opening { background: #efe3cc; }
body.intellivision-page .intellivision-quote { color: #fff; background: var(--iv-red); }
body.intellivision-page .intellivision-quote span { color: #ffe4a6; }
body.intellivision-page .intellivision-rivalry-section { background: #f7f1e6; }

.intellivision-comparison {
  margin: 2.5rem 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  color: #fff;
  background: var(--iv-ink);
  box-shadow: 12px 14px 0 rgba(75,45,33,.13);
}
.intellivision-comparison > div { padding: clamp(1.7rem, 4vw, 3rem); }
.intellivision-comparison > div:first-child { background: #a64234; }
.intellivision-comparison > div:last-child { background: var(--iv-blue); }
.intellivision-comparison > span { padding: 0 1rem; display: grid; place-items: center; color: var(--iv-gold-soft); font: 900 1rem/1 var(--font-mono, monospace); }
.intellivision-comparison small,
.intellivision-comparison strong { display: block; }
.intellivision-comparison small { font: 800 .68rem/1 var(--font-mono, monospace); letter-spacing: .15em; }
.intellivision-comparison strong { margin: 1.5rem 0 .8rem; color: #fff; font-size: 1.35rem; }
.intellivision-comparison p { color: #f4eee3; font-size: .9rem; line-height: 1.6; }

body.intellivision-page .intellivision-controller-section { background: var(--iv-paper); }
.intellivision-controller-feature {
  margin: 2.7rem 0;
  display: grid;
  grid-template-columns: minmax(260px, .82fr) minmax(0, 1.18fr);
  color: #fff;
  background: var(--iv-brown-deep);
}
.intellivision-controller-feature figure { margin: 0; padding: clamp(1.5rem, 3.5vw, 3rem); display: grid; place-items: center; background: #eee5d4; }
.intellivision-controller-feature img { display: block; width: 100%; height: auto; min-height: 0; object-fit: contain; }
.intellivision-controller-feature > div { padding: clamp(2rem, 5vw, 4rem); }
.intellivision-controller-feature > div > span { color: var(--iv-gold); font: 800 .7rem/1 var(--font-mono, monospace); letter-spacing: .15em; }
.intellivision-controller-feature h3 { margin: 1rem 0 1.6rem; color: #fff; font-size: clamp(1.9rem, 3vw, 3rem); line-height: 1; }
.intellivision-controller-feature ul { margin: 0; padding: 0; list-style: none; }
.intellivision-controller-feature li { padding: .9rem 0; display: grid; grid-template-columns: 130px 1fr; gap: 1rem; border-top: 1px solid rgba(255,255,255,.2); }
.intellivision-controller-feature li strong { color: var(--iv-gold-soft); }
.intellivision-controller-feature li p { color: #ddd5c9; font-size: .86rem; line-height: 1.55; }

body.intellivision-page .intellivision-chip-section { color: #f6f0e5; background: var(--iv-ink); }
body.intellivision-page .intellivision-chip-section h2 { color: #fff; }
body.intellivision-page .intellivision-chip-section .section-number { color: var(--iv-gold); }
body.intellivision-page .intellivision-chip-section .lead,
body.intellivision-page .intellivision-chip-section .chapter-copy > p { color: #ddd7cc; }
.intellivision-chip-grid { margin: 2.5rem 0; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid rgba(255,255,255,.2); }
.intellivision-chip-grid > div { min-height: 240px; padding: 1.5rem; box-shadow: inset 0 7px var(--iv-gold); }
.intellivision-chip-grid > div + div { border-left: 1px solid rgba(255,255,255,.2); }
.intellivision-chip-grid > div:nth-child(2) { box-shadow: inset 0 7px var(--iv-red); }
.intellivision-chip-grid > div:nth-child(3) { box-shadow: inset 0 7px var(--iv-blue); }
.intellivision-chip-grid > div:nth-child(4) { box-shadow: inset 0 7px #d7d4c8; }
.intellivision-chip-grid span { display: block; margin: 1rem 0 2.6rem; color: var(--iv-gold-soft); font: 900 1.12rem/1 var(--font-mono, monospace); }
.intellivision-chip-grid strong { display: block; color: #fff; }
.intellivision-chip-grid p { margin-top: .65rem; color: #cfcac1; font-size: .84rem; line-height: 1.55; }

body.intellivision-page .intellivision-sports-section { background: #e9dfca; }
.intellivision-scoreboard { margin: 2.6rem 0; display: grid; grid-template-columns: repeat(3, 1fr); color: #f7f0e3; background: #183f49; box-shadow: 12px 14px 0 rgba(47,95,112,.14); }
.intellivision-scoreboard > div { min-height: 255px; padding: clamp(1.5rem, 3.4vw, 2.6rem); }
.intellivision-scoreboard > div + div { border-left: 1px solid rgba(255,255,255,.25); }
.intellivision-scoreboard small { display: block; color: #d8c876; font: 800 .68rem/1.25 var(--font-mono, monospace); letter-spacing: .12em; }
.intellivision-scoreboard strong { display: block; margin: 3rem 0 1rem; color: #fff; font: 900 clamp(1.8rem, 3.7vw, 3.4rem)/1 var(--font-mono, monospace); }
.intellivision-scoreboard p { color: #dce4e3; font-size: .87rem; line-height: 1.6; }

body.intellivision-page .intellivision-games-section { background: #f7f2e9; }
.intellivision-game-grid { margin: 2.6rem 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: #d1c4aa; }
.intellivision-game-grid article { min-height: 260px; padding: clamp(1.5rem, 3.6vw, 2.8rem); background: var(--iv-brown); box-shadow: inset 0 -8px var(--iv-gold); }
.intellivision-game-grid article:nth-child(2) { background: #243d49; box-shadow: inset 0 -8px #75a7b8; }
.intellivision-game-grid article:nth-child(3) { background: #3f5635; box-shadow: inset 0 -8px #a7bf75; }
.intellivision-game-grid article:nth-child(4) { background: #5a3030; box-shadow: inset 0 -8px #d58a6a; }
.intellivision-game-grid span { color: #f1d786; font: 800 .7rem/1 var(--font-mono, monospace); letter-spacing: .12em; }
.intellivision-game-grid h3 { margin: 2.8rem 0 .8rem; color: #fff; font-size: 1.55rem; }
.intellivision-game-grid p { color: #eee7dc; font-size: .9rem; line-height: 1.6; }

body.intellivision-page .intellivoice-section { background: #e7ddc9; }
.intellivoice-feature { margin: 2.6rem 0 0; display: grid; grid-template-columns: minmax(280px, 1fr) minmax(0, 1fr); background: var(--iv-ink); }
.intellivoice-feature figure { margin: 0; padding: clamp(1.5rem, 4vw, 3.5rem); display: grid; place-items: center; background: #f6f0e6; }
.intellivoice-feature img { display: block; width: 100%; height: auto; min-height: 0; object-fit: contain; }
.intellivoice-feature > div { padding: clamp(2rem, 5vw, 4rem); }
.intellivoice-feature small { color: var(--iv-gold); font: 800 .7rem/1 var(--font-mono, monospace); letter-spacing: .14em; }
.intellivoice-feature h3 { margin: 1rem 0 1.4rem; color: #fff; font-size: clamp(1.9rem, 3.5vw, 3.4rem); line-height: 1; }
.intellivoice-feature p { color: #d9d4ca; font-size: .92rem; line-height: 1.7; }
.intellivoice-feature p + p { margin-top: 1rem; }

body.intellivision-page .intellivision-computer-section { background: #f7f2e9; }
.intellivision-promise-line { margin: 2.7rem 0; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; color: #fff; background: var(--iv-brown-deep); }
.intellivision-promise-line > div { padding: 1.8rem; }
.intellivision-promise-line > span { padding: 0 .8rem; display: grid; place-items: center; color: var(--iv-gold); font-size: 1.5rem; }
.intellivision-promise-line time,
.intellivision-promise-line strong { display: block; }
.intellivision-promise-line time { color: var(--iv-gold); font: 800 .72rem/1 var(--font-mono, monospace); letter-spacing: .12em; }
.intellivision-promise-line strong { margin: 1.8rem 0 .6rem; color: #fff; font-size: 1.15rem; }
.intellivision-promise-line p { color: #d9d1c4; font-size: .85rem; line-height: 1.55; }

body.intellivision-page .intellivision-two-section { background: var(--iv-paper); }
.intellivision-two-photo { margin: 2.7rem 0; background: #f8f5ef; box-shadow: 12px 14px 0 rgba(75,45,33,.12); }
.intellivision-two-photo img { display: block; width: 100%; height: auto; min-height: 0; object-fit: contain; }
.intellivision-two-photo figcaption { padding: .9rem 1.1rem; color: #e9dfce; background: var(--iv-brown-deep); font-size: .78rem; line-height: 1.5; }

body.intellivision-page .intellivision-timeline { background: #dfcfaa; }
body.intellivision-page.classic-profile-page .intellivision-related { color: #fff; background: var(--iv-brown); }
body.intellivision-page.classic-profile-page .intellivision-related h2,
body.intellivision-page.classic-profile-page .intellivision-related p:last-child { color: #fff; }
body.intellivision-page.classic-profile-page .intellivision-related .section-number { color: var(--iv-gold-soft); }
body.intellivision-page.classic-profile-page .intellivision-related a { color: #fff; border-color: #fff; }
body.intellivision-page.classic-profile-page .intellivision-related a:hover { color: var(--iv-brown); background: #fff; }
body.intellivision-page .chapter-sources .image-credit-list { margin: 0; line-height: 1.45; }
body.intellivision-page .chapter-sources .image-credit-list a { display: inline; padding: 0; }

@media (max-width: 900px) {
  body.intellivision-page .chapter-hero-copy h1 { font-size: clamp(2.75rem, 7.5vw, 5rem); }
  body.intellivision-page .intellivision-machine-graphic { min-height: 480px; }
  .intellivision-chip-grid { grid-template-columns: repeat(2, 1fr); }
  .intellivision-chip-grid > div:nth-child(3) { border-left: 0; border-top: 1px solid rgba(255,255,255,.2); }
  .intellivision-chip-grid > div:nth-child(4) { border-top: 1px solid rgba(255,255,255,.2); }
  .intellivision-scoreboard { grid-template-columns: 1fr; }
  .intellivision-scoreboard > div { min-height: 0; }
  .intellivision-scoreboard > div + div { border-top: 1px solid rgba(255,255,255,.25); border-left: 0; }
  .intellivision-scoreboard strong { margin-top: 1.8rem; }
}

@media (max-width: 680px) {
  body.intellivision-page .chapter-hero-copy h1 { max-width: 11ch; font-size: clamp(2.15rem, 10.6vw, 3.5rem); line-height: .95; overflow-wrap: normal; }
  body.intellivision-page .intellivision-machine-graphic { min-height: 330px; padding: 2rem 1.2rem 3.5rem; }
  body.intellivision-page .intellivision-machine-graphic::before { top: 1rem; left: 1rem; }
  body.intellivision-page .intellivision-machine-graphic figcaption { right: 1rem; bottom: 1rem; left: 1rem; display: block; }
  body.intellivision-page .intellivision-machine-graphic figcaption span { display: block; }
  .intellivision-comparison,
  .intellivision-controller-feature,
  .intellivoice-feature { grid-template-columns: 1fr; }
  .intellivision-comparison > span { padding: .8rem; }
  .intellivision-controller-feature li { grid-template-columns: 1fr; gap: .35rem; }
  .intellivision-chip-grid,
  .intellivision-game-grid { grid-template-columns: 1fr; }
  .intellivision-chip-grid > div + div { border-top: 1px solid rgba(255,255,255,.2); border-left: 0; }
  .intellivision-chip-grid > div { min-height: 0; }
  .intellivision-chip-grid span { margin-bottom: 1.8rem; }
  .intellivision-game-grid article { min-height: 0; }
  .intellivision-promise-line { grid-template-columns: 1fr; }
  .intellivision-promise-line > span { padding: .6rem; transform: rotate(90deg); }
}

.article-page .chapter {
  background: var(--article-paper);
  color: var(--article-text);
}

.article-page .chapter-hero {
  min-height: 620px;
  background: var(--article-paper);
  color: var(--article-text);
  border-bottom: 1px solid var(--article-line);
}

.article-page .chapter-hero-copy {
  padding: clamp(68px, 7vw, 108px) clamp(42px, 7vw, 108px);
}

.article-page .chapter-hero-copy .eyebrow {
  color: var(--rust);
}

.article-page .chapter-hero-copy h1 {
  max-width: 780px;
  color: var(--espresso);
  font-family: Inter, ui-sans-serif, Arial, Helvetica, sans-serif;
  font-size: clamp(50px, 5.2vw, 76px);
  font-weight: 850;
  hyphens: none;
  letter-spacing: -0.045em;
  line-height: 0.98;
  overflow-wrap: normal;
  text-transform: none;
  word-spacing: normal;
}

.article-page .chapter-deck {
  max-width: 680px;
  margin-top: 30px;
  color: var(--article-muted);
  font-size: clamp(18px, 1.35vw, 22px);
  line-height: 1.68;
}

.article-page .chapter-byline {
  max-width: 680px;
  margin-top: 38px;
  border-top-color: var(--article-line);
  color: var(--rust);
}

.article-page .apple-machine-graphic,
.article-page .commodore-machine-graphic,
.article-page .commodore-machine-graphic img {
  min-height: 620px;
}

.article-page .apple-machine-graphic {
  background:
    linear-gradient(rgba(36, 21, 15, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 21, 15, 0.08) 1px, transparent 1px), #edc778;
  background-size: 44px 44px;
}

.article-page .commodore-machine-graphic {
  background: #e7dfd2;
}

.article-page .atari-machine-graphic {
  background:
    radial-gradient(
      circle at 72% 18%,
      rgba(224, 165, 43, 0.32),
      transparent 31%
    ),
    #e8e0d3;
}

.article-page .msx-machine-graphic {
  background:
    linear-gradient(135deg, rgba(155, 42, 30, 0.13), transparent 42%),
    repeating-linear-gradient(
      0deg,
      rgba(46, 37, 31, 0.045) 0 1px,
      transparent 1px 34px
    ),
    #e8e2d8;
}

.article-page .msx-closing p + p {
  margin-top: 24px;
}

/* Operating systems chapter */

.systems-page code {
  padding: 0.08em 0.28em;
  border: 1px solid rgba(157, 63, 32, 0.22);
  border-radius: 3px;
  background: rgba(255, 253, 248, 0.72);
  color: var(--rust);
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 0.9em;
}

.systems-page .systems-hero-graphic {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background:
    linear-gradient(rgba(36, 21, 15, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 21, 15, 0.08) 1px, transparent 1px),
    #d6b468;
  background-size: 38px 38px;
}

.systems-page .terminal-shell,
.systems-page .desktop-shell {
  position: absolute;
  border: 8px solid var(--espresso);
  box-shadow: 16px 18px 0 rgba(36, 21, 15, 0.18);
}

.systems-page .terminal-shell {
  top: 74px;
  left: clamp(32px, 6vw, 92px);
  z-index: 2;
  width: min(470px, calc(100% - 74px));
  transform: rotate(-3deg);
  background: #17261e;
  color: #8dffaf;
}

.systems-page .terminal-top,
.systems-page .desktop-top {
  min-height: 38px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--espresso);
  color: var(--cream);
  font-family: "Courier New", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.systems-page .terminal-top i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mustard);
}

.systems-page .terminal-top span {
  margin-left: auto;
}

.systems-page .terminal-copy {
  min-height: 240px;
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: "Courier New", monospace;
  font-size: clamp(15px, 1.45vw, 21px);
  line-height: 1.45;
  text-shadow: 0 0 8px rgba(141, 255, 175, 0.35);
}

.systems-page .terminal-copy b {
  font-weight: 400;
}

.systems-page .cursor-block {
  display: inline-block;
  width: 0.7em;
  height: 1em;
  margin-left: 0.2em;
  vertical-align: -0.16em;
  background: currentColor;
}

.systems-page .desktop-shell {
  right: clamp(24px, 5vw, 70px);
  bottom: 96px;
  z-index: 3;
  width: min(370px, calc(100% - 84px));
  transform: rotate(3deg);
  background: #4b85b5;
  color: var(--espresso);
}

.systems-page .desktop-top {
  justify-content: space-between;
  background: #f4f2e5;
  color: var(--espresso);
}

.systems-page .desktop-icons {
  min-height: 176px;
  padding: 28px;
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  gap: 18px;
}

.systems-page .desktop-icons i {
  width: 64px;
  padding-top: 52px;
  position: relative;
  color: #fff;
  font-family: "Courier New", monospace;
  font-size: 11px;
  font-style: normal;
  text-align: center;
}

.systems-page .desktop-icons i::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12px;
  width: 40px;
  height: 36px;
  border: 3px solid var(--espresso);
  background: #f0d76a;
  box-shadow: inset 0 -8px 0 #fff;
}

.systems-page .systems-hero-caption {
  position: absolute;
  right: 28px;
  bottom: 28px;
  left: 28px;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--espresso);
  font-family: "Courier New", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.systems-page .interface-demo {
  width: 100%;
  min-height: 320px;
  margin-top: 46px;
  margin-bottom: 42px;
  overflow: hidden;
  border: 1px solid var(--article-line);
  box-shadow: 12px 12px 0 rgba(157, 63, 32, 0.14);
  font-family: "Courier New", ui-monospace, monospace;
}

.systems-page .interface-demo pre {
  margin: 0;
  white-space: pre-wrap;
}

.systems-page .demo-label,
.systems-page .gui-menu {
  min-height: 44px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.systems-page .basic-screen {
  background: #3155a5;
  color: #c8d9ff;
}

.systems-page .basic-screen .demo-label {
  border-bottom: 2px solid #c8d9ff;
}

.systems-page .basic-screen pre,
.systems-page .cpm-screen pre,
.systems-page .dos-screen pre {
  padding: clamp(28px, 5vw, 48px);
  font-size: clamp(15px, 2.2vw, 21px);
  line-height: 1.7;
}

.systems-page .cpm-screen {
  background: #12231d;
  color: #8fffb1;
  text-shadow: 0 0 7px rgba(143, 255, 177, 0.28);
}

.systems-page .cpm-screen .demo-label {
  border-bottom: 1px solid rgba(143, 255, 177, 0.46);
}

.systems-page .dos-screen {
  background: #080808;
  color: #e9e9e9;
}

.systems-page .dos-screen .demo-label {
  border-bottom: 1px solid #575757;
  background: #1b1b1b;
}

.systems-page .text-cursor {
  animation: systems-blink 1.15s steps(1, end) infinite;
}

@keyframes systems-blink {
  50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .systems-page .text-cursor { animation: none; }
}

.systems-page .gem-screen,
.systems-page .workbench-screen {
  position: relative;
}

.systems-page .gem-screen {
  background: #f0f0e8;
  color: #111;
}

.systems-page .gui-menu {
  justify-content: flex-start;
  border-bottom: 3px double currentColor;
  background: #fff;
}

.systems-page .gui-menu span:last-child {
  margin-left: auto;
}

.systems-page .gem-screen .gui-menu span:last-child {
  margin-left: 0;
}

.systems-page .gui-icons {
  padding: 46px 28px;
  display: grid;
  grid-template-columns: repeat(4, minmax(70px, 1fr));
  gap: 28px;
}

.systems-page .gui-icons > span {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 13px;
  font-size: 12px;
  text-align: center;
}

.systems-page .gui-icons i {
  width: 58px;
  height: 48px;
  position: relative;
  display: block;
  border: 3px solid #111;
  background: #fff;
}

.systems-page .gui-icons .folder-icon {
  margin-top: 10px;
  height: 38px;
  background: #111;
}

.systems-page .gui-icons .folder-icon::before {
  content: "";
  position: absolute;
  top: -12px;
  left: -3px;
  width: 29px;
  height: 12px;
  border: 3px solid #111;
  border-bottom: 0;
  background: #fff;
}

.systems-page .gui-icons .page-icon {
  width: 42px;
  height: 54px;
  background: repeating-linear-gradient(#fff 0 7px, #111 8px 10px);
}

.systems-page .gui-icons .bin-icon {
  width: 44px;
  height: 52px;
  transform: perspective(50px) rotateX(-5deg);
  background: repeating-linear-gradient(90deg, #fff 0 7px, #111 8px 10px);
}

.systems-page .workbench-screen {
  min-height: 430px;
  background: #4b85b5;
  color: #131313;
}

.systems-page .workbench-screen .gui-menu {
  background: #f2f0df;
}

.systems-page .wb-disk {
  position: absolute;
  top: 76px;
  right: 36px;
  width: 110px;
  padding-top: 58px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.systems-page .wb-disk::before {
  content: "";
  position: absolute;
  top: 0;
  left: 30px;
  width: 50px;
  height: 45px;
  border: 3px solid #111;
  background: #edc778;
  box-shadow: inset 0 -11px 0 #fff;
}

.systems-page .wb-disk small {
  font-weight: 400;
}

.systems-page .wb-disk-two {
  top: 186px;
}

.systems-page .wb-window {
  position: absolute;
  right: 180px;
  bottom: 38px;
  left: 32px;
  min-height: 240px;
  border: 4px double #111;
  background: #f2f0df;
}

.systems-page .wb-window > b {
  padding: 7px 12px;
  display: block;
  border-bottom: 3px double #111;
  font-size: 12px;
}

.systems-page .wb-window pre {
  padding: 24px;
  font-size: clamp(13px, 1.9vw, 17px);
  line-height: 1.55;
}

.systems-page .systems-closing {
  margin-top: 72px;
  padding-top: 42px;
  border-top: 3px solid var(--rust);
}

.systems-page .systems-closing p + p {
  margin-top: 24px;
}

.article-page .commodore-machine-graphic::after {
  background: linear-gradient(
    180deg,
    transparent 64%,
    rgba(255, 253, 248, 0.92)
  );
}

.article-page .commodore-machine-graphic img {
  padding: clamp(28px, 4vw, 62px);
  object-fit: contain;
}

.article-page .commodore-machine-caption {
  color: var(--espresso);
}

.article-page .fact-strip {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 64px));
  margin: -38px auto 0;
  gap: 12px;
  background: transparent;
  color: var(--article-text);
}

.article-page .fact-strip div {
  min-height: 108px;
  padding: 23px 27px;
  border: 1px solid var(--article-line);
  background: var(--article-surface);
}

.article-page .fact-strip div + div {
  border-left: 1px solid var(--article-line);
}

.article-page .fact-strip small {
  margin-bottom: 8px;
  color: var(--rust);
}

.article-page .fact-strip strong {
  color: var(--espresso);
  font-family: Inter, ui-sans-serif, Arial, Helvetica, sans-serif;
  font-size: clamp(20px, 2vw, 29px);
  letter-spacing: -0.025em;
  text-transform: none;
}

.article-page .chapter-section {
  padding: clamp(88px, 9vw, 138px) clamp(36px, 7vw, 112px);
  grid-template-columns: 180px minmax(0, 760px);
  gap: clamp(46px, 6vw, 80px);
  background: var(--article-paper);
}

.article-page .chapter-section > .section-number,
.article-page .chapter-sources > .section-number {
  margin-top: 0;
  padding-top: 13px;
  border-top: 3px solid var(--rust);
  color: var(--rust);
}

.article-page .chapter-copy {
  max-width: 760px;
}

.article-page .chapter-copy h2,
.article-page .legacy-panel h2,
.article-page .fast-timeline h2,
.article-page .chapter-sources h2 {
  color: var(--espresso);
  font-family: Inter, ui-sans-serif, Arial, Helvetica, sans-serif;
  font-size: clamp(42px, 4.5vw, 64px);
  font-weight: 850;
  hyphens: none;
  letter-spacing: -0.045em;
  line-height: 1.02;
  overflow-wrap: normal;
  text-transform: none;
  word-spacing: normal;
}

.article-page .chapter-copy .lead {
  max-width: 31em;
  margin-top: 30px;
  color: var(--rust);
  font-size: clamp(20px, 1.6vw, 25px);
  line-height: 1.68;
}

.article-page .chapter-copy > p:not(.lead),
.article-page .copy-columns p,
.article-page .fast-timeline-heading > p:last-child {
  max-width: 760px;
  color: var(--article-text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(18px, 1.3vw, 20px);
  letter-spacing: 0;
  line-height: 1.82;
  word-spacing: normal;
}

.article-page .chapter-copy > p:not(.lead) {
  margin-top: 30px;
}

.article-page .copy-columns {
  max-width: 760px;
  margin-top: 42px;
  grid-template-columns: 1fr;
  gap: 28px;
  border-top: 0;
}

.article-page .copy-columns p {
  padding-top: 0;
  margin: 0;
}

.article-page .copy-columns p + p {
  padding-top: 28px;
  border-top: 1px solid var(--article-line);
}

.article-page .chapter-photo {
  margin-top: 48px;
}

.article-page .photo-frame {
  padding: 0;
  border: 1px solid var(--article-line);
  background: var(--article-surface);
  box-shadow: 12px 12px 0 rgba(157, 63, 32, 0.14);
}

.article-page .chapter-photo img {
  max-height: 560px;
  background: var(--article-surface);
  object-fit: contain;
}

.article-page .chapter-photo-contained img {
  padding: clamp(18px, 3vw, 38px);
}

.article-page .chapter-photo figcaption,
.article-page .milestone-photo figcaption {
  color: var(--article-muted);
  font-size: 14px;
  line-height: 1.65;
}

.article-page .pull-quote {
  padding: clamp(72px, 8vw, 116px) clamp(36px, 10vw, 150px);
  border-top: 1px solid var(--article-line);
  border-bottom: 1px solid var(--article-line);
  background: #efe0bd;
  color: var(--espresso);
}

.article-page .pull-quote p {
  max-width: 980px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 4.2vw, 60px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
  text-transform: none;
  word-spacing: normal;
}

.article-page .pull-quote span {
  margin-top: 30px;
  color: var(--rust);
}

.article-page .paper-section,
.article-page .apple-two-section {
  background: var(--article-surface);
}

.article-page .comparison-grid {
  margin-top: 52px;
  border-width: 2px;
}

.article-page .comparison-grid .comparison-heading {
  background: var(--espresso);
}

.article-page .comparison-grid span {
  padding-top: 16px;
  padding-bottom: 16px;
  font-size: 14px;
}

.article-page .legacy-panel {
  padding: clamp(88px, 9vw, 132px) clamp(36px, 8vw, 126px);
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(52px, 8vw, 112px);
  border-top: 1px solid var(--article-line);
  border-bottom: 1px solid var(--article-line);
  background: var(--article-surface);
  color: var(--article-text);
}

.article-page .legacy-panel .section-number {
  color: var(--rust);
}

.article-page .legacy-panel ol {
  border-top: 3px solid var(--rust);
}

.article-page .legacy-panel li + li {
  border-top-color: var(--article-line);
}

.article-page .legacy-panel li > span {
  color: var(--rust);
}

.article-page .legacy-panel h3 {
  color: var(--espresso);
  font-family: Inter, ui-sans-serif, Arial, Helvetica, sans-serif;
  font-size: clamp(26px, 2.5vw, 38px);
  letter-spacing: -0.035em;
  text-transform: none;
}

.article-page .legacy-panel li p {
  color: var(--article-muted);
  font-size: 16px;
  line-height: 1.72;
}

.article-page .fast-timeline {
  padding: clamp(88px, 9vw, 138px) clamp(36px, 8vw, 126px);
  background: var(--article-paper);
}

.article-page .fast-timeline-heading {
  max-width: 900px;
}

.article-page .atari-closing {
  margin-top: 72px;
  padding-top: 42px;
  border-top: 3px solid var(--rust);
}

.article-page .milestone-gallery {
  max-width: 1040px;
  margin-top: 56px;
}

.article-page .milestone-photo img {
  max-height: 500px;
  border: 1px solid var(--article-line);
  background: var(--article-surface);
}

.article-page .milestone-photo.milestone-photo-natural img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  padding: 0;
  object-fit: contain;
}

.article-page .milestone-gallery.milestone-gallery-single {
  display: block;
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
}

.article-page .msx-nms-photo {
  width: 100%;
}

.article-page .fast-timeline ol {
  margin-top: 72px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  border: 0;
}

.article-page .fast-timeline li,
.article-page .fast-timeline li + li,
.article-page .fast-timeline li:nth-child(2n + 1):not(:first-child),
.article-page .fast-timeline li:nth-child(3n + 1):not(:first-child),
.article-page .fast-timeline li:nth-child(n + 4) {
  min-height: 220px;
  padding: 28px;
  border: 1px solid var(--article-line);
  background: var(--article-surface);
}

.article-page .fast-timeline h3 {
  font-family: Inter, ui-sans-serif, Arial, Helvetica, sans-serif;
  font-size: clamp(25px, 2.5vw, 36px);
  letter-spacing: -0.035em;
  text-transform: none;
}

.article-page .fast-timeline li p {
  color: var(--article-muted);
  font-size: 15px;
  line-height: 1.72;
}

.article-page .chapter-sources {
  padding: clamp(82px, 8vw, 122px) clamp(36px, 7vw, 112px) 0;
  grid-template-columns: 180px minmax(0, 760px);
  gap: clamp(46px, 6vw, 80px);
  background: #edc778;
}

.article-page .chapter-sources h2 {
  font-size: clamp(42px, 4.5vw, 62px);
}

.article-page .chapter-sources ul {
  border-top-width: 2px;
}

.article-page .chapter-pagination {
  background: var(--article-surface);
  color: var(--espresso);
}

.article-page .chapter-pagination a {
  min-height: 160px;
}

.article-page .chapter-pagination a + a {
  border-left-color: var(--article-line);
}

.article-page .chapter-pagination a:hover {
  background: #efe0bd;
}

.article-page .chapter-pagination span {
  color: var(--rust);
}

.article-page .chapter-pagination strong {
  font-family: Inter, ui-sans-serif, Arial, Helvetica, sans-serif;
  letter-spacing: -0.035em;
  text-transform: none;
}

@media (max-width: 1060px) {
  .article-page .chapter-hero-copy {
    min-height: auto;
  }

  .article-page .chapter-section,
  .article-page .chapter-sources {
    grid-template-columns: 150px minmax(0, 720px);
  }

  .article-page .legacy-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .article-page .chapter-hero-copy {
    padding: 48px 28px 54px;
  }

  .article-page .chapter-hero-copy h1 {
    font-size: clamp(36px, 10.8vw, 50px);
    letter-spacing: -0.04em;
    line-height: 1.02;
    overflow-wrap: anywhere;
  }

  .article-page .chapter-deck {
    font-size: 17px;
    line-height: 1.62;
  }

  .article-page .apple-machine-graphic,
  .article-page .commodore-machine-graphic,
  .article-page .commodore-machine-graphic img {
    min-height: clamp(300px, 82vw, 390px);
  }

  .systems-page .systems-hero-graphic {
    min-height: 480px;
  }

  .systems-page .terminal-shell {
    top: 42px;
    left: 22px;
    width: calc(100% - 54px);
  }

  .systems-page .desktop-shell {
    right: 22px;
    bottom: 78px;
    width: calc(100% - 86px);
  }

  .systems-page .terminal-copy {
    min-height: 190px;
    padding: 24px;
  }

  .systems-page .desktop-icons {
    min-height: 135px;
    padding: 20px 18px;
  }

  .systems-page .systems-hero-caption {
    right: 18px;
    bottom: 20px;
    left: 18px;
  }

  .systems-page .interface-demo {
    min-height: 260px;
    margin-top: 36px;
    margin-bottom: 34px;
  }

  .systems-page .gui-icons {
    grid-template-columns: repeat(2, minmax(80px, 1fr));
  }

  .systems-page .workbench-screen {
    min-height: 470px;
  }

  .systems-page .wb-window {
    right: 26px;
    bottom: 26px;
    left: 26px;
  }

  .systems-page .wb-disk {
    top: 66px;
    right: 22px;
  }

  .systems-page .wb-disk-two {
    top: 66px;
    right: 142px;
  }

  .article-page .commodore-machine-graphic img {
    max-height: 390px;
    padding: 22px;
  }

  .article-page .fact-strip {
    width: calc(100% - 40px);
    margin: 20px auto 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .article-page .fact-strip div,
  .article-page .fact-strip div + div,
  .article-page .fact-strip div:nth-child(3),
  .article-page .fact-strip div:nth-child(4) {
    min-height: 96px;
    padding: 18px;
    border: 1px solid var(--article-line);
  }

  .article-page .chapter-section,
  .article-page .chapter-sources {
    padding: 70px 28px;
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .article-page .chapter-sources {
    padding-bottom: 0;
  }

  .article-page .chapter-section > .section-number,
  .article-page .chapter-sources > .section-number {
    width: min(180px, 100%);
  }

  .article-page .chapter-copy h2,
  .article-page .legacy-panel h2,
  .article-page .fast-timeline h2,
  .article-page .chapter-sources h2 {
    font-size: clamp(34px, 9vw, 44px);
    line-height: 1.05;
    overflow-wrap: anywhere;
  }

  .article-page .chapter-copy .lead {
    font-size: 19px;
  }

  .article-page .chapter-copy > p:not(.lead),
  .article-page .copy-columns p,
  .article-page .fast-timeline-heading > p:last-child {
    font-size: 17px;
    line-height: 1.78;
  }

  .article-page .chapter-photo img {
    max-height: 280px;
  }

  .article-page .pull-quote {
    padding: 64px 28px;
  }

  .article-page .pull-quote p {
    font-size: clamp(30px, 8.8vw, 40px);
    line-height: 1.14;
  }

  .article-page .legacy-panel,
  .article-page .fast-timeline {
    padding: 70px 28px;
  }

  .article-page .milestone-gallery,
  .article-page .fast-timeline ol {
    grid-template-columns: 1fr;
  }

  .article-page .milestone-photo img {
    max-height: 300px;
  }

  .article-page .fast-timeline li,
  .article-page .fast-timeline li + li,
  .article-page .fast-timeline li:nth-child(2n + 1):not(:first-child),
  .article-page .fast-timeline li:nth-child(3n + 1):not(:first-child),
  .article-page .fast-timeline li:nth-child(n + 4) {
    min-height: auto;
  }
}

@media (max-width: 460px) {
  .article-page .chapter-hero-copy,
  .article-page .chapter-section,
  .article-page .chapter-sources,
  .article-page .legacy-panel,
  .article-page .fast-timeline,
  .article-page .pull-quote {
    padding-right: 22px;
    padding-left: 22px;
  }

  .article-page .chapter-hero-copy h1 {
    font-size: clamp(34px, 10.2vw, 43px);
  }

  .article-page .fact-strip {
    width: calc(100% - 28px);
  }

  .article-page .comparison-grid span {
    padding-right: 10px;
    padding-left: 10px;
    font-size: 11px;
  }

  .systems-page .systems-hero-graphic {
    min-height: 440px;
  }

  .systems-page .terminal-shell,
  .systems-page .desktop-shell {
    border-width: 5px;
  }

  .systems-page .desktop-shell {
    width: calc(100% - 44px);
  }

  .systems-page .systems-hero-caption span:last-child {
    display: none;
  }

  .systems-page .basic-screen pre,
  .systems-page .cpm-screen pre,
  .systems-page .dos-screen pre {
    padding: 24px 18px;
    font-size: 13px;
  }

  .systems-page .gui-menu {
    padding: 0 10px;
    gap: 11px;
    font-size: 10px;
  }

  .systems-page .gui-icons {
    padding: 36px 16px;
    gap: 30px 12px;
  }

  .systems-page .wb-disk,
  .systems-page .wb-disk-two {
    transform: scale(0.86);
  }

  .systems-page .wb-disk {
    right: 5px;
  }

  .systems-page .wb-disk-two {
    right: 104px;
  }

  .systems-page .wb-window pre {
    padding: 20px 14px;
    font-size: 12px;
  }
}

/* Women in early computing and games */

.women-history-page .chapter-hero-copy h1 {
  font-size: clamp(42px, 4.4vw, 68px);
}

/* Computer design chapter */
.design-history-page .design-hero-graphic {
  background:
    radial-gradient(circle at 72% 20%, rgba(237, 199, 120, 0.23), transparent 34%),
    #24201d;
}

.design-history-page .design-hero-graphic img {
  padding: clamp(30px, 4.5vw, 72px);
  object-fit: contain;
}

.design-history-page .chapter-hero-copy h1 {
  font-size: clamp(46px, 4.8vw, 72px);
}

.design-history-page .chapter-photo .photo-frame {
  overflow: hidden;
}

.design-history-page .chapter-photo img {
  width: 100%;
  height: min(54vw, 560px);
  object-fit: contain;
}

.design-history-page .design-closing {
  margin-top: 54px;
}

@media (max-width: 720px) {
  .design-history-page .chapter-hero-copy h1 {
    font-size: clamp(39px, 12vw, 56px);
    line-height: 1;
  }

  .design-history-page .chapter-photo img {
    height: auto;
    max-height: 430px;
  }
}

/* Sprites, colours and graphical limitations */

.graphics-limits-page .chapter-hero-copy h1 {
  max-width: 820px;
  font-size: clamp(44px, 4.55vw, 70px);
}

.graphics-limits-page .pixel-hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    #171522;
  background-size: 24px 24px;
  image-rendering: pixelated;
}

.graphics-limits-page .pixel-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(6, 5, 12, 0.84));
  pointer-events: none;
}

.graphics-limits-page .pixel-sun {
  position: absolute;
  top: 78px;
  right: 74px;
  width: 168px;
  height: 168px;
  background:
    linear-gradient(180deg, transparent 43%, #171522 43% 49%, transparent 49% 60%, #171522 60% 65%, transparent 65%),
    #f29b45;
  box-shadow: 0 0 0 12px rgba(242, 155, 69, 0.08);
}

.graphics-limits-page .pixel-stars i {
  position: absolute;
  z-index: 1;
  width: 8px;
  height: 8px;
  background: #f9f1ca;
  box-shadow: 8px 0 #f9f1ca, 0 8px #f9f1ca;
}

.graphics-limits-page .pixel-stars i:nth-child(1) { top: 92px; left: 12%; }
.graphics-limits-page .pixel-stars i:nth-child(2) { top: 174px; left: 32%; background: #7cc9c4; box-shadow: 8px 0 #7cc9c4, 0 8px #7cc9c4; }
.graphics-limits-page .pixel-stars i:nth-child(3) { top: 260px; right: 15%; }
.graphics-limits-page .pixel-stars i:nth-child(4) { top: 320px; left: 10%; background: #d16b7d; box-shadow: 8px 0 #d16b7d, 0 8px #d16b7d; }
.graphics-limits-page .pixel-stars i:nth-child(5) { top: 116px; left: 54%; }
.graphics-limits-page .pixel-stars i:nth-child(6) { top: 385px; right: 23%; background: #7cc9c4; box-shadow: 8px 0 #7cc9c4, 0 8px #7cc9c4; }

.graphics-limits-page .pixel-ship {
  position: absolute;
  top: 48%;
  left: 48%;
  z-index: 2;
  width: 238px;
  height: 150px;
  transform: translate(-50%, -50%);
}

.graphics-limits-page .pixel-ship i {
  position: absolute;
  width: 34px;
  height: 34px;
  background: #ece5cd;
  box-shadow: inset -7px -7px rgba(36, 32, 29, 0.22);
}

.graphics-limits-page .pixel-ship i:nth-child(1) { top: 0; left: 102px; background: #d16b7d; }
.graphics-limits-page .pixel-ship i:nth-child(2) { top: 34px; left: 68px; }
.graphics-limits-page .pixel-ship i:nth-child(3) { top: 34px; left: 102px; background: #7cc9c4; }
.graphics-limits-page .pixel-ship i:nth-child(4) { top: 34px; left: 136px; }
.graphics-limits-page .pixel-ship i:nth-child(5) { top: 68px; left: 34px; background: #d16b7d; }
.graphics-limits-page .pixel-ship i:nth-child(6) { top: 68px; left: 102px; background: #ece5cd; }
.graphics-limits-page .pixel-ship i:nth-child(7) { top: 68px; left: 170px; background: #d16b7d; }

.graphics-limits-page .pixel-ship::after {
  content: "";
  position: absolute;
  top: 102px;
  left: 85px;
  width: 68px;
  height: 34px;
  background: #f29b45;
  box-shadow: 17px 34px #df5f32;
}

.graphics-limits-page .pixel-ground {
  position: absolute;
  right: -8%;
  bottom: 74px;
  left: -8%;
  z-index: 1;
  height: 112px;
  transform: skewY(-4deg);
  background:
    repeating-linear-gradient(90deg, #302b45 0 48px, #242136 48px 96px),
    #302b45;
  border-top: 12px solid #7cc9c4;
}

.graphics-limits-page .pixel-hero .commodore-machine-caption {
  z-index: 4;
  color: #fff8df;
}

.graphics-limits-page .pixel-demo,
.graphics-limits-page .attribute-demo,
.graphics-limits-page .amiga-demo {
  width: 100%;
  min-height: 390px;
  margin-top: 54px;
  position: relative;
  overflow: hidden;
  border: 16px solid var(--espresso);
  background: #171522;
  box-shadow: 18px 18px 0 rgba(157, 63, 32, 0.18);
}

.graphics-limits-page .demo-label {
  position: absolute;
  right: 28px;
  bottom: 24px;
  left: 28px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: #fff8df;
  font-family: "Courier New", monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.graphics-limits-page .demo-label strong {
  color: #f29b45;
}

.graphics-limits-page .tile-demo {
  background:
    linear-gradient(rgba(249, 241, 202, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(249, 241, 202, 0.11) 1px, transparent 1px),
    #171522;
  background-size: 36px 36px;
}

.graphics-limits-page .tile-alien {
  position: absolute;
  top: 54px;
  left: 50%;
  width: 252px;
  height: 216px;
  transform: translateX(-50%);
}

.graphics-limits-page .tile-alien i {
  position: absolute;
  width: 36px;
  height: 36px;
  background: #7cc9c4;
}

.graphics-limits-page .tile-alien i:nth-child(1) { top: 0; left: 36px; box-shadow: 144px 0 #7cc9c4; }
.graphics-limits-page .tile-alien i:nth-child(2) { top: 36px; left: 72px; box-shadow: 36px 0 #7cc9c4, 72px 0 #7cc9c4; }
.graphics-limits-page .tile-alien i:nth-child(3) { top: 72px; left: 36px; box-shadow: 36px 0 #f9f1ca, 72px 0 #7cc9c4, 108px 0 #f9f1ca, 144px 0 #7cc9c4; }
.graphics-limits-page .tile-alien i:nth-child(4) { top: 108px; left: 0; box-shadow: 36px 0 #7cc9c4, 72px 0 #7cc9c4, 108px 0 #7cc9c4, 144px 0 #7cc9c4, 180px 0 #7cc9c4, 216px 0 #7cc9c4; }
.graphics-limits-page .tile-alien i:nth-child(5) { top: 144px; left: 0; box-shadow: 72px 0 #7cc9c4, 108px 0 #7cc9c4, 144px 0 #7cc9c4, 216px 0 #7cc9c4; }
.graphics-limits-page .tile-alien i:nth-child(6) { top: 180px; left: 72px; box-shadow: 108px 0 #7cc9c4; }
.graphics-limits-page .tile-alien i:nth-child(7),
.graphics-limits-page .tile-alien i:nth-child(8) { display: none; }

.graphics-limits-page .palette-demo {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  border: 10px solid var(--espresso);
  box-shadow: 12px 12px 0 rgba(157, 63, 32, 0.16);
}

.graphics-limits-page .palette-demo i { aspect-ratio: 1 / 1; background: #1d1b1b; }
.graphics-limits-page .palette-demo i:nth-child(2) { background: #f0f0e7; }
.graphics-limits-page .palette-demo i:nth-child(3) { background: #8a3f4d; }
.graphics-limits-page .palette-demo i:nth-child(4) { background: #6bb7b1; }
.graphics-limits-page .palette-demo i:nth-child(5) { background: #7b4a99; }
.graphics-limits-page .palette-demo i:nth-child(6) { background: #60904b; }
.graphics-limits-page .palette-demo i:nth-child(7) { background: #3e4f9e; }
.graphics-limits-page .palette-demo i:nth-child(8) { background: #c8b45a; }
.graphics-limits-page .palette-demo i:nth-child(9) { background: #8a5b32; }
.graphics-limits-page .palette-demo i:nth-child(10) { background: #5b3a2e; }
.graphics-limits-page .palette-demo i:nth-child(11) { background: #c46b78; }
.graphics-limits-page .palette-demo i:nth-child(12) { background: #494648; }
.graphics-limits-page .palette-demo i:nth-child(13) { background: #777274; }
.graphics-limits-page .palette-demo i:nth-child(14) { background: #a3d58a; }
.graphics-limits-page .palette-demo i:nth-child(15) { background: #7888c8; }
.graphics-limits-page .palette-demo i:nth-child(16) { background: #b8b4b2; }

.graphics-limits-page .attribute-demo {
  background: #154655;
}

.graphics-limits-page .attribute-grid {
  position: absolute;
  top: 36px;
  left: 50%;
  width: 384px;
  height: 256px;
  transform: translateX(-50%);
  background:
    linear-gradient(rgba(255, 255, 255, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, #174b59 0 50%, #5f2346 50%);
  background-size: 32px 32px, 32px 32px, 100% 100%;
  border: 8px solid #f9f1ca;
}

.graphics-limits-page .attribute-runner,
.graphics-limits-page .attribute-obstacle {
  position: absolute;
  display: block;
  width: 32px;
  height: 32px;
}

.graphics-limits-page .attribute-runner {
  top: 64px;
  left: 128px;
  background: #f6e947;
  box-shadow: 32px 0 #f6e947, 0 32px #f6e947, 32px 32px #f6e947, -32px 64px #f6e947, 0 64px #f6e947, 32px 64px #f6e947, 64px 64px #f6e947, 0 96px #f6e947, 64px 96px #f6e947;
}

.graphics-limits-page .attribute-obstacle {
  right: 64px;
  bottom: 32px;
  background: #ed5656;
  box-shadow: 0 -32px #ed5656, 0 -64px #ed5656, 32px -64px #ed5656, 32px -96px #ed5656;
}

.graphics-limits-page .sprite-slots {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
}

.graphics-limits-page .sprite-slots i {
  min-height: 112px;
  display: grid;
  place-items: end center;
  padding: 14px;
  position: relative;
  overflow: hidden;
  background: #171522;
  color: #f9f1ca;
  font-family: "Courier New", monospace;
  font-style: normal;
  font-size: 12px;
}

.graphics-limits-page .sprite-slots i::before {
  content: "";
  position: absolute;
  top: 22px;
  width: 22px;
  height: 22px;
  background: #7cc9c4;
  box-shadow: -11px 22px #7cc9c4, 11px 22px #7cc9c4, -22px 44px #7cc9c4, 0 44px #7cc9c4, 22px 44px #7cc9c4;
}

.graphics-limits-page .sprite-slots i:nth-child(3n + 2)::before { background: #f29b45; box-shadow: -11px 22px #f29b45, 11px 22px #f29b45, -22px 44px #f29b45, 0 44px #f29b45, 22px 44px #f29b45; }
.graphics-limits-page .sprite-slots i:nth-child(3n)::before { background: #d16b7d; box-shadow: -11px 22px #d16b7d, 11px 22px #d16b7d, -22px 44px #d16b7d, 0 44px #d16b7d, 22px 44px #d16b7d; }

.graphics-limits-page .scanline-demo {
  margin-top: 44px;
  padding: 64px 34px 70px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  gap: 18px;
  position: relative;
  overflow: hidden;
  background: #171522;
  border: 12px solid var(--espresso);
}

.graphics-limits-page .scanline-demo::after {
  content: "ONE SCANLINE";
  position: absolute;
  right: 18px;
  bottom: 14px;
  color: #7cc9c4;
  font-family: "Courier New", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
}

.graphics-limits-page .scanline-demo span {
  aspect-ratio: 1;
  position: relative;
  background: #f29b45;
  clip-path: polygon(30% 0, 70% 0, 70% 20%, 90% 20%, 90% 70%, 70% 70%, 70% 100%, 50% 100%, 50% 74%, 30% 74%, 30% 100%, 10% 100%, 10% 70%, 0 70%, 0 20%, 30% 20%);
}

.graphics-limits-page .scanline-demo span:nth-child(2),
.graphics-limits-page .scanline-demo span:nth-child(4) { background: #7cc9c4; }
.graphics-limits-page .scanline-demo span:nth-child(3) { background: #d16b7d; }
.graphics-limits-page .scanline-demo span:nth-child(5) { opacity: 0.16; }

.graphics-limits-page .beam-demo {
  min-height: 300px;
  margin-top: 46px;
  position: relative;
  overflow: hidden;
  border: 16px solid var(--espresso);
  border-radius: 38px;
  background: repeating-linear-gradient(180deg, #151f2b 0 5px, #24364a 5px 7px);
  box-shadow: inset 0 0 80px #000, 18px 18px 0 rgba(157, 63, 32, 0.18);
}

.graphics-limits-page .beam-demo span {
  position: absolute;
  top: 48%;
  left: 12%;
  width: 72%;
  height: 6px;
  background: linear-gradient(90deg, transparent, #7cf6d8 55%, #fff 86%, transparent);
  box-shadow: 0 0 20px #7cf6d8;
}

.graphics-limits-page .beam-demo span::after {
  content: "";
  position: absolute;
  right: 10%;
  top: -10px;
  width: 24px;
  height: 24px;
  background: #fff;
  box-shadow: 0 0 24px 8px #7cf6d8;
}

.graphics-limits-page .monochrome-photo img {
  filter: grayscale(1) contrast(1.06);
}

.graphics-limits-page .amiga-demo {
  min-height: 430px;
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0 2px, transparent 2px 6px),
    linear-gradient(180deg, #27175d 0 20%, #7f2a82 20% 38%, #e45868 38% 54%, #f2a640 54% 68%, #4db6a7 68% 84%, #173f69 84%);
}

.graphics-limits-page .amiga-demo span,
.graphics-limits-page .amiga-demo i,
.graphics-limits-page .amiga-demo b {
  position: absolute;
  display: block;
  background: rgba(23, 21, 34, 0.88);
}

.graphics-limits-page .amiga-demo span { right: 12%; bottom: 0; width: 34%; height: 72%; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.graphics-limits-page .amiga-demo i { left: 8%; bottom: 0; width: 46%; height: 47%; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.graphics-limits-page .amiga-demo b { top: 48px; left: 11%; width: 82px; height: 82px; border-radius: 50%; background: #f9e56e; box-shadow: 0 0 0 16px rgba(249, 229, 110, 0.14); }

.graphics-limits-page .graphics-closing {
  margin-top: 54px;
}

@media (max-width: 920px) {
  .graphics-limits-page .sprite-slots {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .graphics-limits-page .chapter-hero-copy h1 {
    font-size: clamp(36px, 10.8vw, 52px);
    line-height: 1;
  }

  .graphics-limits-page .pixel-hero {
    min-height: 430px;
  }

  .graphics-limits-page .pixel-sun {
    top: 48px;
    right: 32px;
    width: 112px;
    height: 112px;
  }

  .graphics-limits-page .pixel-ship {
    transform: translate(-50%, -50%) scale(0.76);
  }

  .graphics-limits-page .pixel-ground {
    bottom: 58px;
    height: 82px;
  }

  .graphics-limits-page .pixel-demo,
  .graphics-limits-page .attribute-demo,
  .graphics-limits-page .amiga-demo {
    min-height: 330px;
    border-width: 10px;
  }

  .graphics-limits-page .tile-alien {
    top: 36px;
    transform: translateX(-50%) scale(0.72);
    transform-origin: top center;
  }

  .graphics-limits-page .attribute-grid {
    top: 36px;
    transform: translateX(-50%) scale(0.68);
    transform-origin: top center;
  }

  .graphics-limits-page .demo-label {
    right: 16px;
    bottom: 16px;
    left: 16px;
    flex-direction: column;
    gap: 4px;
  }

  .graphics-limits-page .palette-demo {
    grid-template-columns: repeat(4, 1fr);
  }

  .graphics-limits-page .scanline-demo {
    padding: 42px 20px 58px;
    gap: 8px;
  }

  .graphics-limits-page .beam-demo {
    min-height: 230px;
    border-width: 10px;
    border-radius: 24px;
  }

  .graphics-limits-page .amiga-demo {
    min-height: 300px;
  }
}

@media (max-width: 460px) {
  .graphics-limits-page .chapter-hero-copy h1 {
    font-size: clamp(34px, 10.1vw, 43px);
  }

  .graphics-limits-page .pixel-hero {
    min-height: 390px;
  }

  .graphics-limits-page .sprite-slots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .graphics-limits-page .sprite-slots i {
    min-height: 96px;
  }

  .graphics-limits-page .scanline-demo {
    grid-template-columns: repeat(5, minmax(36px, 1fr));
    overflow-x: auto;
  }
}

.women-history-page .women-hero-graphic {
  background: #201a17;
}

.women-history-page .women-hero-graphic::after {
  background: linear-gradient(
    180deg,
    transparent 58%,
    rgba(22, 13, 9, 0.9) 100%
  );
}

.women-history-page .women-hero-graphic img {
  padding: 0;
  object-fit: contain;
}

.women-history-page .women-hero-graphic .commodore-machine-caption {
  color: var(--cream);
}

.women-history-page .women-portrait-photo {
  max-width: 560px;
  margin-right: auto;
  margin-left: auto;
}

.women-history-page .women-game-photo img {
  width: 100%;
  max-height: none;
  image-rendering: pixelated;
}

.women-history-page .women-closing {
  margin-top: 72px;
  padding-top: 42px;
  border-top: 3px solid var(--rust);
}

.women-history-page .women-closing p + p {
  margin-top: 24px;
}

@media (max-width: 760px) {
  .women-history-page .chapter-hero-copy h1 {
    font-size: clamp(34px, 9.6vw, 45px);
  }

  .women-history-page .women-hero-graphic img {
    max-height: 390px;
    padding: 0;
  }
}

/* 8-bit / 16-bit explainer */
.bits-page .chapter-hero-copy h1 {
  max-width: 760px;
  font-size: clamp(3rem, 6.4vw, 7rem);
  line-height: 0.91;
}

.bits-page .bit-hero {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  padding: 5.5rem 3rem 7.5rem;
  color: #f4ecd4;
  background: radial-gradient(circle at 76% 18%, rgba(242, 155, 69, 0.28), transparent 26%), linear-gradient(145deg, #15171a 0%, #232b2e 58%, #101214 100%);
}

.bits-page .bit-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: linear-gradient(rgba(124, 201, 196, 0.16) 1px, transparent 1px), linear-gradient(90deg, rgba(124, 201, 196, 0.16) 1px, transparent 1px);
  background-size: 34px 34px;
}

.bits-page .bit-word {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.48rem;
  max-width: 520px;
  margin: 0 auto 2rem;
}

.bits-page .bit-word-eight,
.bits-page .bit-word-sixteen { grid-template-columns: repeat(8, 1fr); }

.bits-page .bit-word span {
  display: grid;
  min-width: 0;
  aspect-ratio: 1 / 1;
  place-items: center;
  border: 1px solid rgba(124, 201, 196, 0.38);
  color: #7cc9c4;
  background: rgba(5, 10, 12, 0.64);
  font: 700 clamp(1.05rem, 2vw, 1.65rem)/1 var(--font-mono, monospace);
  box-shadow: inset 0 0 22px rgba(124, 201, 196, 0.07);
}

.bits-page .bit-word span:nth-child(2n) {
  color: #f29b45;
  border-color: rgba(242, 155, 69, 0.46);
  box-shadow: inset 0 0 22px rgba(242, 155, 69, 0.09);
}

.bits-page .bit-hero-label {
  position: absolute;
  z-index: 2;
  right: 2.4rem;
  bottom: 2.2rem;
  left: 2.4rem;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(244, 236, 212, 0.28);
  padding-top: 1.1rem;
}

.bits-page .bit-hero-label strong { color: #f29b45; font: 700 clamp(2rem, 4vw, 4.2rem)/1 var(--font-mono, monospace); }
.bits-page .bit-hero-label span { max-width: 250px; text-align: right; text-transform: uppercase; letter-spacing: 0.12em; font: 600 0.72rem/1.5 var(--font-mono, monospace); }

.bits-page .bit-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 2.4rem 0;
}

.bits-page .bit-values div {
  display: grid;
  gap: 0.6rem;
  min-width: 0;
  border: 1px solid #cbc3ad;
  padding: 1.45rem;
  background: rgba(255, 255, 255, 0.44);
}

.bits-page .bit-values span,
.bits-page .classification-grid span,
.bits-page .era-comparison > div > span { color: #8a493c; font: 700 0.7rem/1.3 var(--font-mono, monospace); letter-spacing: 0.14em; }
.bits-page .bit-values strong { overflow-wrap: anywhere; color: #1d2527; font: 700 clamp(1rem, 2.3vw, 1.6rem)/1.2 var(--font-mono, monospace); letter-spacing: 0.07em; }
.bits-page .bit-values em { color: #5d5a50; font: normal 0.86rem/1.4 var(--font-mono, monospace); }

.bits-page .bus-diagram {
  display: grid;
  grid-template-columns: 1fr minmax(130px, 1.3fr) 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0.8rem 1rem;
  margin: 2.5rem 0;
  border: 1px solid #252c2d;
  padding: 2rem;
  background: #172022;
  color: #f4ecd4;
}

.bits-page .bus-diagram div {
  display: grid;
  gap: 0.25rem;
  grid-row: 1 / 3;
  min-height: 112px;
  place-content: center;
  border: 1px solid rgba(244, 236, 212, 0.32);
  text-align: center;
}

.bits-page .bus-diagram div:nth-of-type(2) { grid-column: 3; }
.bits-page .bus-diagram div span { font: 600 0.65rem/1 var(--font-mono, monospace); letter-spacing: 0.12em; }
.bits-page .bus-diagram div strong { color: #f29b45; font: 700 1.6rem/1.1 var(--font-mono, monospace); }
.bits-page .bus-diagram i { display: grid; min-height: 36px; place-items: center; color: #d9f1ee; background: repeating-linear-gradient(to bottom, #7cc9c4 0 2px, transparent 2px 5px); font: normal 0.69rem/1 var(--font-mono, monospace); text-shadow: 0 0 6px #172022, 0 0 6px #172022; }
.bits-page .bus-diagram .bus-sixteen { background: repeating-linear-gradient(to bottom, #f29b45 0 1px, transparent 1px 3px); }

.bits-page .classification-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 2.5rem 0;
}

.bits-page .classification-grid > div {
  display: grid;
  gap: 0.7rem;
  min-height: 200px;
  align-content: space-between;
  border-top: 5px solid #7cc9c4;
  padding: 1.35rem;
  background: #202829;
  color: #f4ecd4;
}

.bits-page .classification-grid > div:nth-child(2) { border-top-color: #f29b45; }
.bits-page .classification-grid > div:nth-child(3) { border-top-color: #d16b7d; }
.bits-page .classification-grid strong { color: #f4ecd4; font: 700 clamp(2.4rem, 6vw, 4.9rem)/1 var(--font-mono, monospace); }
.bits-page .classification-grid small { color: #c7c5b8; font: 0.76rem/1.45 var(--font-mono, monospace); }

.bits-page .era-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 2.5rem 0; }
.bits-page .era-comparison > div { border: 1px solid #c6bdab; padding: 1.6rem; }
.bits-page .era-comparison > div:last-child { color: #f4ecd4; background: #252d2f; border-color: #252d2f; }
.bits-page .era-comparison ul { display: grid; gap: 0.75rem; margin: 1.25rem 0 0; padding-left: 1.15rem; }
.bits-page .era-comparison li { padding-left: 0.25rem; }
.bits-page .bits-closing { padding-top: 2rem; }

@media (max-width: 900px) {
  .bits-page .chapter-hero-copy h1 { font-size: clamp(2.8rem, 10vw, 5.5rem); }
  .bits-page .bit-hero { min-height: 520px; padding: 4rem 2rem 7rem; }
  .bits-page .classification-grid { grid-template-columns: 1fr; }
  .bits-page .classification-grid > div { min-height: 150px; }
}

@media (max-width: 640px) {
  .bits-page .chapter-hero-copy h1 { font-size: clamp(2.35rem, 12vw, 3.8rem); line-height: 0.96; }
  .bits-page .bit-hero { min-height: 450px; padding: 3rem 1.1rem 7rem; }
  .bits-page .bit-word { gap: 0.25rem; margin-bottom: 1.3rem; }
  .bits-page .bit-word span { font-size: 0.84rem; }
  .bits-page .bit-hero-label { right: 1.2rem; bottom: 1.4rem; left: 1.2rem; align-items: start; flex-direction: column; }
  .bits-page .bit-hero-label span { text-align: left; }
  .bits-page .bit-values,
  .bits-page .era-comparison { grid-template-columns: 1fr; }
  .bits-page .bus-diagram { grid-template-columns: 1fr; grid-template-rows: auto; padding: 1.25rem; }
  .bits-page .bus-diagram div,
  .bits-page .bus-diagram div:nth-of-type(2) { grid-row: auto; grid-column: auto; min-height: 90px; }
  .bits-page .bus-diagram i { min-height: 30px; }
}

/* Nostalgia chapter */

.nostalgia-page .chapter-hero-copy h1 {
  max-width: 820px;
  font-size: clamp(2.8rem, 5.25vw, 5.2rem);
  line-height: 0.94;
}

.nostalgia-page .nostalgia-hero-graphic {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  margin: 0;
  background: #d98a22;
}

.nostalgia-page .nostalgia-hero-graphic img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
}

/* Preserve Erik Klooster's complete product photograph on the portable-computer article. */
.nostalgia-page .portable-computer-hero {
  background: #080912;
}

.nostalgia-page .portable-computer-hero img {
  object-fit: contain;
}

.nostalgia-page .nostalgia-hero-graphic figcaption {
  position: absolute;
  right: 24px;
  bottom: 22px;
  left: 24px;
  padding-top: 12px;
  border-top: 1px solid rgba(46, 37, 31, 0.42);
  color: #2e251f;
  font-size: 0.78rem;
  line-height: 1.45;
}

.daily-life-page .nostalgia-hero-graphic::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  height: 34%;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(20, 17, 14, 0.78));
}

.daily-life-page .nostalgia-hero-graphic figcaption {
  z-index: 2;
  border-top-color: rgba(255, 255, 255, 0.48);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
}

.series-overview ol {
  display: grid;
  gap: 0.75rem;
  padding: 0;
  list-style: none;
}

.series-overview li {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 0.35rem 1rem;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(46, 37, 31, 0.18);
}

.series-overview li > span,
.series-overview li a > span {
  color: var(--rust);
  font: 700 0.72rem/1.3 var(--font-mono, monospace);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.series-overview li strong { font-size: 1.05rem; }
.series-overview li a { display: contents; color: inherit; text-decoration: none; }
.series-overview li a:hover strong { text-decoration: underline; text-underline-offset: 0.2em; }
.series-overview li small { grid-column: 2; color: #625b54; font-size: 0.86rem; line-height: 1.5; }

@media (max-width: 640px) {
  .series-overview li { grid-template-columns: 1fr; }
  .series-overview li small { grid-column: 1; }
}

.nostalgia-page .memory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 2.5rem 0;
}

.nostalgia-page .memory-grid > div {
  min-height: 210px;
  padding: 1.45rem;
  border-top: 5px solid var(--rust);
  background: #2b2521;
  color: #f7f4ec;
}

.nostalgia-page .memory-grid > div:nth-child(2) { border-top-color: #d99a36; }
.nostalgia-page .memory-grid > div:nth-child(3) { border-top-color: #6c9892; }
.nostalgia-page .memory-grid span {
  display: block;
  margin-bottom: 1.8rem;
  color: #d8caba;
  font: 700 0.68rem/1.2 var(--font-mono, monospace);
  letter-spacing: 0.14em;
}
.nostalgia-page .memory-grid strong { display: block; font-size: 1.1rem; line-height: 1.2; }
.nostalgia-page .memory-grid p { margin-top: 0.7rem; color: #d8caba; font-size: 0.86rem; line-height: 1.55; }
.nostalgia-page .nostalgia-final { padding-top: 2rem; }

@media (max-width: 900px) {
  .nostalgia-page .chapter-hero-copy h1 { font-size: clamp(2.7rem, 8.6vw, 4.9rem); }
  .nostalgia-page .nostalgia-hero-graphic { min-height: 480px; }
}

@media (max-width: 640px) {
  .nostalgia-page .chapter-hero-copy h1 {
    font-size: clamp(2.15rem, 10.5vw, 3.4rem);
    line-height: 0.98;
  }

  .nostalgia-page .nostalgia-hero-graphic { min-height: 360px; }
  .nostalgia-page .memory-grid { grid-template-columns: 1fr; }
  .nostalgia-page .memory-grid > div { min-height: 0; }
}

/* Modems and bulletin boards */
.modems-page .chapter-hero-copy h1 {
  max-width: 10ch;
  font-size: clamp(4.2rem, 7.3vw, 8.2rem);
  line-height: 0.88;
}

.modems-page .modems-hero-graphic {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #171d1c;
}

.modems-page .modems-hero-graphic img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
  object-position: center;
}

.modems-page .modems-hero-graphic figcaption {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  padding: 0.75rem 0.9rem;
  color: #f7ede0;
  background: rgba(18, 22, 20, 0.82);
  backdrop-filter: blur(4px);
  font-size: 0.76rem;
  line-height: 1.45;
}

.modems-page .speed-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 2.5rem 0;
  background: #766e61;
  border: 1px solid #766e61;
}

.modems-page .speed-grid > div {
  min-height: 220px;
  padding: 1.25rem;
  color: #f5ead9;
  background: #18201f;
  border-top: 5px solid #b75b2b;
}

.modems-page .speed-grid > div:nth-child(2) { border-top-color: #d99a36; }
.modems-page .speed-grid > div:nth-child(3) { border-top-color: #6c9892; }
.modems-page .speed-grid > div:nth-child(4) { border-top-color: #8b7ca8; }

.modems-page .speed-grid span {
  display: block;
  margin-bottom: 1.6rem;
  color: #f2b85b;
  font-family: var(--font-mono, monospace);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
}

.modems-page .speed-grid strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.2;
}

.modems-page .speed-grid p {
  margin-top: 0.7rem;
  color: #d8caba;
  font-size: 0.84rem;
  line-height: 1.55;
}

.modems-page .bbs-terminal {
  margin: 2.5rem 0;
  padding: clamp(1.4rem, 4vw, 2.5rem);
  overflow-x: auto;
  color: #8fe49c;
  background:
    linear-gradient(rgba(15, 24, 18, 0.86), rgba(15, 24, 18, 0.94)),
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(140, 235, 156, 0.05) 3px 4px);
  border: 0.65rem solid #d2c3a8;
  border-radius: 1rem;
  box-shadow: inset 0 0 2rem rgba(88, 224, 113, 0.08);
  font-family: var(--font-mono, monospace);
  font-size: clamp(0.7rem, 1.4vw, 0.9rem);
  line-height: 1.8;
}

.modems-page .bbs-terminal p {
  width: max-content;
  min-width: 100%;
  margin: 0;
}

.modems-page .bbs-terminal p + p { margin-top: 0.5rem; }
.modems-page .bbs-terminal span { color: #f2b85b; }
.modems-page .terminal-cursor { padding-top: 0.8rem; }
.modems-page .terminal-cursor b { animation: modem-cursor 1.05s steps(1) infinite; }
.modems-page .modems-final { padding-top: 2rem; }

@keyframes modem-cursor {
  50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .modems-page .terminal-cursor b { animation: none; }
}

@media (max-width: 1050px) {
  .modems-page .chapter-hero-copy h1 { font-size: clamp(3.4rem, 8vw, 5.8rem); }
  .modems-page .modems-hero-graphic,
  .modems-page .modems-hero-graphic img { min-height: 480px; }
  .modems-page .speed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 660px) {
  .modems-page .chapter-hero-copy h1 {
    max-width: 9ch;
    font-size: clamp(3rem, 15vw, 4.35rem);
    line-height: 0.91;
  }
  .modems-page .modems-hero-graphic,
  .modems-page .modems-hero-graphic img { min-height: 360px; }
  .modems-page .modems-hero-graphic img { object-position: 57% center; }
  .modems-page .speed-grid { grid-template-columns: 1fr; }
  .modems-page .speed-grid > div { min-height: 0; }
  .modems-page .bbs-terminal {
    border-width: 0.4rem;
    border-radius: 0.7rem;
  }
}

/* Compact image credits: deliberately last and cache-busted in the HTML. */
.article-page .chapter-sources .image-credit-list {
  display: block;
  margin: 6px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.article-page .chapter-sources .image-credit-list li,
.article-page .chapter-sources .image-credit-list li + li {
  display: block;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  font-size: 14px;
  line-height: 1.3;
}

.article-page .chapter-sources .image-credit-list a {
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: inherit;
}

/* Magnavox Odyssey */
.odyssey-page {
  --odyssey-brown: #4a2c20;
  --odyssey-orange: #cf5b2d;
  --odyssey-yellow: #e6b642;
  --odyssey-cream: #f1eadb;
}

.odyssey-page .chapter-hero-copy {
  color: #f8f2e7;
  background: var(--odyssey-brown);
}

.odyssey-page .chapter-hero-copy .eyebrow,
.odyssey-page .chapter-byline { color: #edc96f; }

.odyssey-page .chapter-hero-copy h1 {
  max-width: 10.5ch;
  font-size: clamp(3.2rem, 6.35vw, 7.25rem);
  line-height: 0.9;
}

.odyssey-page .odyssey-machine-graphic {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 620px;
  margin: 0;
  padding: clamp(2rem, 5vw, 5rem);
  background: #e8dfcf;
  overflow: hidden;
}

.odyssey-page .odyssey-machine-graphic::before {
  content: "1972";
  position: absolute;
  top: -0.12em;
  right: -0.05em;
  color: rgba(74, 44, 32, 0.08);
  font: 900 clamp(7rem, 19vw, 18rem)/1 var(--font-mono, monospace);
}

.odyssey-page .odyssey-machine-graphic img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: contain;
}

.odyssey-page .odyssey-machine-graphic figcaption {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.2rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(74, 44, 32, 0.45);
  color: var(--odyssey-brown);
  font: 700 0.72rem/1.4 var(--font-mono, monospace);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.odyssey-page .fact-strip > div:nth-child(1) { background: var(--odyssey-orange); }
.odyssey-page .fact-strip > div:nth-child(2) { background: var(--odyssey-yellow); color: #2e211b; }
.odyssey-page .fact-strip > div:nth-child(3) { background: #302824; }
.odyssey-page .fact-strip > div:nth-child(4) { background: #d7c7ad; color: #2e211b; }

.odyssey-page .odyssey-quote {
  color: #2d231e;
  background: var(--odyssey-yellow);
}

.odyssey-page .odyssey-quote::before { color: rgba(74, 44, 32, 0.14); }

.odyssey-page .odyssey-idea-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 2.5rem 0;
  background: #a89b86;
  border: 1px solid #a89b86;
}

.odyssey-page .odyssey-idea-grid > div {
  min-height: 220px;
  padding: 1.35rem;
  background: #f8f3e8;
  border-top: 6px solid var(--odyssey-orange);
}

.odyssey-page .odyssey-idea-grid > div:nth-child(2) { border-top-color: var(--odyssey-yellow); }
.odyssey-page .odyssey-idea-grid > div:nth-child(3) { border-top-color: var(--odyssey-brown); }
.odyssey-page .odyssey-idea-grid span { display: block; margin-bottom: 1.9rem; color: var(--odyssey-orange); font: 800 0.78rem/1 var(--font-mono, monospace); letter-spacing: 0.1em; }
.odyssey-page .odyssey-idea-grid strong { display: block; font-size: 1.08rem; line-height: 1.25; }
.odyssey-page .odyssey-idea-grid p { margin-top: 0.65rem; font-size: 0.86rem; line-height: 1.55; }

.odyssey-page .odyssey-signal {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 2.6rem 0;
  border: 1px solid var(--odyssey-brown);
}

.odyssey-page .odyssey-signal > div { min-height: 170px; padding: 1.25rem; background: #efe5d4; }
.odyssey-page .odyssey-signal > div + div { border-left: 1px solid var(--odyssey-brown); }
.odyssey-page .odyssey-signal small { display: block; margin-bottom: 2rem; color: var(--odyssey-orange); font: 800 0.72rem/1.2 var(--font-mono, monospace); letter-spacing: 0.1em; text-transform: uppercase; }
.odyssey-page .odyssey-signal strong { font-size: 1.05rem; line-height: 1.5; }

.odyssey-page .odyssey-photo-wide { margin: 2.5rem 0; }
.odyssey-page .odyssey-photo-wide img { display: block; width: 100%; height: auto; min-height: 0; object-fit: contain; background: #fff; }
.odyssey-page .odyssey-photo-wide figcaption { margin-top: 0; padding: 0.9rem 1rem; color: #f8f2e7; background: var(--odyssey-brown); font-size: 0.78rem; line-height: 1.5; }
.odyssey-page .odyssey-overlays-photo figcaption { background: var(--odyssey-orange); }
.odyssey-page .odyssey-timeline { background: #302824; }
.odyssey-page .odyssey-related { background: var(--odyssey-orange); }
.odyssey-page .pagination-placeholder { min-height: 1px; }

@media (max-width: 900px) {
  .odyssey-page .chapter-hero-copy h1 { font-size: clamp(3rem, 8vw, 5.4rem); }
  .odyssey-page .odyssey-machine-graphic { min-height: 470px; }
}

@media (max-width: 660px) {
  .odyssey-page .chapter-hero-copy h1 { max-width: 11ch; font-size: clamp(2.65rem, 13.2vw, 4.25rem); line-height: 0.93; }
  .odyssey-page .odyssey-machine-graphic { min-height: 330px; padding: 1.4rem; }
  .odyssey-page .odyssey-machine-graphic figcaption { display: block; }
  .odyssey-page .odyssey-machine-graphic figcaption span { display: block; }
  .odyssey-page .odyssey-idea-grid,
  .odyssey-page .odyssey-signal { grid-template-columns: 1fr; }
  .odyssey-page .odyssey-idea-grid > div,
  .odyssey-page .odyssey-signal > div { min-height: 0; }
  .odyssey-page .odyssey-signal > div + div { border-top: 1px solid var(--odyssey-brown); border-left: 0; }
}

/* Fairchild Channel F */
.fairchild-page {
  --fairchild-ink: #252521;
  --fairchild-wood: #553527;
  --fairchild-yellow: #e3b62b;
  --fairchild-orange: #d55f2d;
  --fairchild-green: #76836a;
  --fairchild-cream: #eee8da;
}

.fairchild-page .chapter-hero-copy {
  color: #fbf7ed;
  background: var(--fairchild-ink);
}

.fairchild-page .chapter-hero-copy .eyebrow,
.fairchild-page .chapter-byline { color: var(--fairchild-yellow); }

.fairchild-page .chapter-hero-copy h1 {
  max-width: 10.5ch;
  font-size: clamp(3.05rem, 6.1vw, 7rem);
  line-height: 0.91;
}

.fairchild-page .fairchild-machine-graphic {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 620px;
  margin: 0;
  padding: clamp(2rem, 5vw, 5rem);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(85, 53, 39, 0.07) 1px, transparent 1px),
    var(--fairchild-cream);
  background-size: 34px 100%;
}

.fairchild-page .fairchild-machine-graphic::before {
  content: "1976";
  position: absolute;
  top: -0.12em;
  right: -0.05em;
  color: rgba(37, 37, 33, 0.07);
  font: 900 clamp(7rem, 19vw, 18rem)/1 var(--font-mono, monospace);
}

.fairchild-page .fairchild-machine-graphic img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: contain;
}

.fairchild-page .fairchild-machine-graphic figcaption {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.2rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(37, 37, 33, 0.45);
  color: var(--fairchild-ink);
  font: 700 0.72rem/1.4 var(--font-mono, monospace);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fairchild-page .fact-strip > div:nth-child(1) { background: var(--fairchild-yellow); color: #24231f; }
.fairchild-page .fact-strip > div:nth-child(2) { background: var(--fairchild-wood); }
.fairchild-page .fact-strip > div:nth-child(3) { background: var(--fairchild-orange); }
.fairchild-page .fact-strip > div:nth-child(4) { background: var(--fairchild-green); }

.fairchild-page .fairchild-quote {
  color: #22231f;
  background: var(--fairchild-yellow);
}

.fairchild-page .fairchild-quote::before { color: rgba(37, 37, 33, 0.12); }

.fairchild-page .fairchild-idea-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 2.5rem 0;
  border: 1px solid #9c9587;
  background: #9c9587;
}

.fairchild-page .fairchild-idea-grid > div {
  min-height: 220px;
  padding: 1.35rem;
  border-top: 6px solid var(--fairchild-yellow);
  background: #faf6ed;
}

.fairchild-page .fairchild-idea-grid > div:nth-child(2) { border-top-color: var(--fairchild-orange); }
.fairchild-page .fairchild-idea-grid > div:nth-child(3) { border-top-color: var(--fairchild-green); }
.fairchild-page .fairchild-idea-grid span { display: block; margin-bottom: 1.9rem; color: var(--fairchild-orange); font: 800 0.78rem/1 var(--font-mono, monospace); letter-spacing: 0.1em; text-transform: uppercase; }
.fairchild-page .fairchild-idea-grid strong { display: block; font-size: 1.08rem; line-height: 1.25; }
.fairchild-page .fairchild-idea-grid p { margin-top: 0.65rem; font-size: 0.86rem; line-height: 1.55; }

.fairchild-page .fairchild-cart-feature {
  display: grid;
  grid-template-columns: minmax(230px, 0.8fr) minmax(0, 1.2fr);
  margin: 2.6rem 0;
  overflow: hidden;
  background: var(--fairchild-ink);
}

.fairchild-page .fairchild-cart-feature figure { min-height: 460px; margin: 0; padding: 2rem; display: grid; place-items: center; background: #fff; }
.fairchild-page .fairchild-cart-feature img { display: block; width: 100%; height: 100%; max-height: 520px; object-fit: contain; }
.fairchild-page .fairchild-cart-feature > div { padding: clamp(2rem, 5vw, 4.5rem); color: #f8f2e7; }
.fairchild-page .fairchild-cart-feature span { color: var(--fairchild-yellow); font: 800 0.76rem/1 var(--font-mono, monospace); letter-spacing: 0.14em; }
.fairchild-page .fairchild-cart-feature h3 { margin: 1.1rem 0 1.5rem; color: #fff; font-size: clamp(2rem, 3vw, 3.4rem); line-height: 0.98; }
.fairchild-page .fairchild-cart-feature p { color: #ddd8cb; font-size: 0.98rem; line-height: 1.7; }

.fairchild-page .fairchild-chip-section { color: #f8f2e7; background: var(--fairchild-wood); }
.fairchild-page .fairchild-chip-section h2 { color: #fff; }
.fairchild-page .fairchild-chip-section .section-number { color: var(--fairchild-yellow); }
.fairchild-page .fairchild-chip-section .lead,
.fairchild-page .fairchild-chip-section p { color: #e7dfd0; }

.fairchild-page .fairchild-system-map {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 2.6rem 0 0;
  border: 1px solid rgba(255,255,255,0.45);
}

.fairchild-page .fairchild-system-map > div { min-height: 175px; padding: 1.25rem; }
.fairchild-page .fairchild-system-map > div + div { border-left: 1px solid rgba(255,255,255,0.45); }
.fairchild-page .fairchild-system-map small { display: block; margin-bottom: 2.4rem; color: var(--fairchild-yellow); font: 800 0.72rem/1.2 var(--font-mono, monospace); letter-spacing: 0.1em; text-transform: uppercase; }
.fairchild-page .fairchild-system-map strong { color: #fff; font-size: 1rem; line-height: 1.45; }

.fairchild-page .fairchild-control-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 2.6rem 0;
}

.fairchild-page .fairchild-control-grid > div { min-height: 245px; padding: 1.4rem; background: #302f2a; color: #f8f2e7; box-shadow: inset 0 -7px var(--fairchild-yellow); }
.fairchild-page .fairchild-control-grid > div:nth-child(2) { box-shadow: inset 0 -7px var(--fairchild-orange); }
.fairchild-page .fairchild-control-grid > div:nth-child(3) { box-shadow: inset 0 -7px var(--fairchild-green); }
.fairchild-page .fairchild-control-grid > div:nth-child(4) { box-shadow: inset 0 -7px var(--fairchild-wood); }
.fairchild-page .fairchild-control-grid b { display: block; margin-bottom: 1.8rem; color: var(--fairchild-yellow); font: 700 3rem/1 var(--font-mono, monospace); }
.fairchild-page .fairchild-control-grid span { display: block; color: #fff; font-weight: 800; }
.fairchild-page .fairchild-control-grid p { margin-top: 0.65rem; color: #d8d3c8; font-size: 0.86rem; line-height: 1.5; }

.fairchild-page .fairchild-pixel-stage {
  position: relative;
  min-height: 390px;
  margin: 2.6rem 0;
  overflow: hidden;
  border: 16px solid #292923;
  border-radius: 28px;
  background:
    repeating-linear-gradient(180deg, rgba(255,255,255,0.05) 0 3px, transparent 3px 7px),
    #23353b;
  box-shadow: inset 0 0 80px #0b1114;
}

.fairchild-page .fairchild-pixel-stage .pixel-score { position: absolute; top: 34px; left: 50%; transform: translateX(-50%); color: #eee14e; font: 700 1.4rem/1 var(--font-mono, monospace); }
.fairchild-page .fairchild-pixel-stage .pixel-paddle { position: absolute; top: 42%; width: 22px; height: 92px; background: #f2ead4; }
.fairchild-page .fairchild-pixel-stage .pixel-paddle.left { left: 17%; }
.fairchild-page .fairchild-pixel-stage .pixel-paddle.right { right: 17%; }
.fairchild-page .fairchild-pixel-stage .pixel-ball { position: absolute; top: 48%; left: 51%; width: 20px; height: 20px; background: var(--fairchild-orange); box-shadow: 22px -22px rgba(213,95,45,0.25), 44px -44px rgba(213,95,45,0.1); }
.fairchild-page .fairchild-pixel-stage .pixel-caption { position: absolute; right: 1.2rem; bottom: 1rem; left: 1.2rem; color: #9fc093; font: 700 0.72rem/1.4 var(--font-mono, monospace); letter-spacing: 0.08em; text-transform: uppercase; }

.fairchild-page .fairchild-photo-wide { margin: 2.5rem 0 0; }
.fairchild-page .fairchild-photo-wide img { display: block; width: 100%; height: auto; min-height: 0; object-fit: contain; background: #fff; }
.fairchild-page .fairchild-photo-wide figcaption { margin-top: 0; padding: 0.9rem 1rem; color: #f8f2e7; background: var(--fairchild-green); font-size: 0.78rem; line-height: 1.5; }
.fairchild-page .fairchild-timeline { background: var(--fairchild-ink); }
.fairchild-page .fairchild-related { background: var(--fairchild-yellow); color: #22231f; }
.fairchild-page .fairchild-related h2,
.fairchild-page .fairchild-related p:last-child { color: #22231f; }
.fairchild-page .fairchild-related a { border-color: #22231f; color: #22231f; }
.fairchild-page .fairchild-related a:hover { background: #22231f; color: #fff; }
.fairchild-page .pagination-placeholder { min-height: 1px; }

@media (max-width: 900px) {
  .fairchild-page .chapter-hero-copy h1 { font-size: clamp(2.9rem, 7.7vw, 5.2rem); }
  .fairchild-page .fairchild-machine-graphic { min-height: 470px; }
  .fairchild-page .fairchild-system-map,
  .fairchild-page .fairchild-control-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fairchild-page .fairchild-system-map > div:nth-child(3) { border-top: 1px solid rgba(255,255,255,0.45); border-left: 0; }
  .fairchild-page .fairchild-system-map > div:nth-child(4) { border-top: 1px solid rgba(255,255,255,0.45); }
}

@media (max-width: 660px) {
  .fairchild-page .chapter-hero-copy h1 { max-width: 11ch; font-size: clamp(2.45rem, 12.2vw, 4rem); line-height: 0.94; }
  .fairchild-page .fairchild-machine-graphic { min-height: 330px; padding: 1.4rem; }
  .fairchild-page .fairchild-machine-graphic figcaption { display: block; }
  .fairchild-page .fairchild-machine-graphic figcaption span { display: block; }
  .fairchild-page .fairchild-idea-grid,
  .fairchild-page .fairchild-cart-feature,
  .fairchild-page .fairchild-system-map,
  .fairchild-page .fairchild-control-grid { grid-template-columns: 1fr; }
  .fairchild-page .fairchild-idea-grid > div,
  .fairchild-page .fairchild-system-map > div,
  .fairchild-page .fairchild-control-grid > div { min-height: 0; }
  .fairchild-page .fairchild-cart-feature figure { min-height: 330px; }
  .fairchild-page .fairchild-system-map > div + div { border-top: 1px solid rgba(255,255,255,0.45); border-left: 0; }
  .fairchild-page .fairchild-pixel-stage { min-height: 300px; border-width: 10px; }
}

/* Atari VCS / 2600 console portrait */

.vcs-page {
  --vcs-black: #24231f;
  --vcs-brown: #6b3b25;
  --vcs-orange: #e15d2f;
  --vcs-gold: #e7aa32;
  --vcs-cream: #f1eadc;
  --vcs-screen: #182a31;
}

.vcs-page .chapter-hero-copy {
  position: relative;
  overflow: hidden;
  background: var(--vcs-black);
}

.vcs-page .chapter-hero-copy::after {
  position: absolute;
  right: -1rem;
  bottom: -2rem;
  color: rgba(255,255,255,0.035);
  content: "2600";
  font: 900 clamp(8rem, 18vw, 17rem)/0.8 Inter, sans-serif;
  letter-spacing: -0.08em;
  pointer-events: none;
}

.vcs-page .chapter-hero-copy .eyebrow,
.vcs-page .chapter-byline { color: var(--vcs-gold); }
.vcs-page .chapter-hero-copy h1 { position: relative; z-index: 1; max-width: 750px; color: #fff; }
.vcs-page .chapter-deck { position: relative; z-index: 1; color: #d4cfc6; }

.vcs-page .vcs-machine-graphic {
  position: relative;
  min-height: 620px;
  margin: 0;
  padding: clamp(2.2rem, 5vw, 5rem);
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(180deg, transparent 0 8%, rgba(225,93,47,.85) 8% 11%, transparent 11% 13%, rgba(231,170,50,.9) 13% 16%, transparent 16%),
    repeating-linear-gradient(0deg, rgba(36,35,31,.045) 0 1px, transparent 1px 8px),
    var(--vcs-cream);
}

.vcs-page .vcs-machine-graphic::before {
  position: absolute;
  inset: auto -8% 8% auto;
  color: rgba(36,35,31,.08);
  content: "1977";
  font: 900 clamp(8rem, 18vw, 16rem)/1 Inter, sans-serif;
  letter-spacing: -.08em;
}

.vcs-page .vcs-machine-graphic img {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 720px);
  height: auto;
  filter: drop-shadow(0 28px 24px rgba(36,35,31,.24));
  transform: rotate(-2deg);
}

.vcs-page .vcs-machine-graphic figcaption {
  position: absolute;
  right: clamp(1.4rem, 3vw, 3rem);
  bottom: clamp(1.2rem, 2.5vw, 2.5rem);
  left: clamp(1.4rem, 3vw, 3rem);
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--vcs-black);
  font: 800 .72rem/1.35 var(--font-mono, monospace);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.vcs-page .fact-strip > div:nth-child(1) { background: var(--vcs-orange); }
.vcs-page .fact-strip > div:nth-child(2) { background: var(--vcs-brown); }
.vcs-page .fact-strip > div:nth-child(3) { background: var(--vcs-black); }
.vcs-page .fact-strip > div:nth-child(4) { background: var(--vcs-gold); color: var(--vcs-black); }

.vcs-page .vcs-quote { background: var(--vcs-orange); }
.vcs-page .vcs-quote::before { color: rgba(36,35,31,.14); }

.vcs-page .vcs-chip-section { color: #f8f4eb; background: var(--vcs-brown); }
.vcs-page .vcs-chip-section h2 { color: #fff; }
.vcs-page .vcs-chip-section .lead,
.vcs-page .vcs-chip-section p { color: #eadfd5; }
.vcs-page .vcs-chip-section .section-number { color: var(--vcs-gold); }

.vcs-page .vcs-chip-grid {
  margin: 2.6rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.vcs-page .vcs-chip-grid > div {
  min-height: 245px;
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,.24);
  background: rgba(36,35,31,.35);
}

.vcs-page .vcs-chip-grid span {
  display: block;
  margin-bottom: 3.3rem;
  color: var(--vcs-gold);
  font: 900 1.45rem/1 var(--font-mono, monospace);
  letter-spacing: .05em;
}

.vcs-page .vcs-chip-grid strong { display: block; color: #fff; font-size: 1.05rem; }
.vcs-page .vcs-chip-grid p { margin-top: .65rem; font-size: .86rem; line-height: 1.55; }

.vcs-page .vcs-beam-demo {
  margin: 2.6rem 0;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(220px, .75fr);
  background: var(--vcs-black);
}

.vcs-page .beam-screen {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border: 18px solid #30302c;
  background:
    repeating-linear-gradient(180deg, rgba(255,255,255,.055) 0 2px, transparent 2px 6px),
    radial-gradient(circle at 50% 50%, #264a55, var(--vcs-screen));
  box-shadow: inset 0 0 70px rgba(0,0,0,.7);
}

.vcs-page .beam-screen::after {
  position: absolute;
  top: 51%;
  right: 0;
  left: 0;
  height: 3px;
  background: #fff0a8;
  box-shadow: 0 0 12px #fff0a8;
  content: "";
}

.vcs-page .beam-screen i,
.vcs-page .beam-screen span,
.vcs-page .beam-screen b { position: absolute; display: block; background: var(--vcs-gold); }
.vcs-page .beam-screen i { top: 38%; left: 18%; width: 28px; height: 86px; }
.vcs-page .beam-screen span { top: 47%; left: 48%; width: 22px; height: 22px; border-radius: 50%; background: var(--vcs-orange); }
.vcs-page .beam-screen b { top: 35%; right: 17%; width: 28px; height: 96px; }
.vcs-page .beam-screen em { position: absolute; right: .8rem; bottom: .7rem; color: #9fe6e8; font: 700 .68rem/1 var(--font-mono, monospace); letter-spacing: .08em; text-transform: uppercase; }
.vcs-page .beam-steps { padding: 1.2rem; display: grid; gap: .8rem; align-content: center; }
.vcs-page .beam-steps > div { display: grid; grid-template-columns: 2.1rem 1fr; gap: .8rem; align-items: start; }
.vcs-page .beam-steps small { width: 2.1rem; height: 2.1rem; display: grid; place-items: center; border-radius: 50%; color: var(--vcs-black); background: var(--vcs-gold); font-weight: 900; }
.vcs-page .beam-steps p { margin: .3rem 0 0; color: #eee8dc; font-size: .85rem; line-height: 1.45; }

.vcs-page .vcs-controller-feature {
  margin: 2.6rem 0;
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  background: var(--vcs-black);
}

.vcs-page .vcs-controller-feature figure { min-height: 470px; margin: 0; padding: 2rem; display: grid; place-items: center; background: #fff; }
.vcs-page .vcs-controller-feature img { display: block; width: 100%; height: 100%; max-height: 520px; object-fit: contain; }
.vcs-page .vcs-controller-feature > div { padding: clamp(2rem, 5vw, 4.5rem); color: #eee8dc; }
.vcs-page .vcs-controller-feature span { color: var(--vcs-orange); font: 900 .8rem/1 var(--font-mono, monospace); letter-spacing: .16em; }
.vcs-page .vcs-controller-feature h3 { margin: 1rem 0 1.4rem; color: #fff; font-size: clamp(2rem, 3.2vw, 3.6rem); line-height: .98; }
.vcs-page .vcs-controller-feature p { color: #d9d4ca; font-size: .96rem; line-height: 1.7; }

.vcs-page .vcs-game-grid {
  margin: 2.6rem 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.vcs-page .vcs-game-grid article { min-height: 240px; padding: 1.5rem; background: var(--vcs-black); box-shadow: inset 0 -8px var(--vcs-orange); }
.vcs-page .vcs-game-grid article:nth-child(2) { box-shadow: inset 0 -8px var(--vcs-gold); }
.vcs-page .vcs-game-grid article:nth-child(3) { box-shadow: inset 0 -8px #9d4434; }
.vcs-page .vcs-game-grid article:nth-child(4) { box-shadow: inset 0 -8px var(--vcs-brown); }
.vcs-page .vcs-game-grid span { color: var(--vcs-gold); font: 800 .72rem/1 var(--font-mono, monospace); letter-spacing: .12em; }
.vcs-page .vcs-game-grid h3 { margin: 2.5rem 0 .7rem; color: #fff; font-size: 1.5rem; }
.vcs-page .vcs-game-grid p { color: #d8d3ca; font-size: .88rem; line-height: 1.55; }

.vcs-page .vcs-publisher-section {
  background:
    linear-gradient(90deg, var(--vcs-orange) 0 1.4%, transparent 1.4%),
    var(--vcs-cream);
}

.vcs-page .vcs-photo-wide { margin: 2.5rem 0 0; }
.vcs-page .vcs-photo-wide img { display: block; width: 100%; height: auto; min-height: 0; object-fit: contain; background: #fff; }
.vcs-page .vcs-photo-wide figcaption { margin-top: 0; padding: .9rem 1rem; color: #fff; background: var(--vcs-brown); font-size: .78rem; line-height: 1.5; }
.vcs-page .vcs-timeline { background: var(--vcs-black); }
.vcs-page .vcs-related { color: var(--vcs-black); background: var(--vcs-gold); }
.vcs-page .vcs-related h2,
.vcs-page .vcs-related p:last-child { color: var(--vcs-black); }
.vcs-page .vcs-related a { border-color: var(--vcs-black); color: var(--vcs-black); }
.vcs-page .vcs-related a:hover { color: #fff; background: var(--vcs-black); }
.vcs-page .pagination-placeholder { min-height: 1px; }

@media (max-width: 900px) {
  .vcs-page .chapter-hero-copy h1 { font-size: clamp(2.9rem, 7.7vw, 5.2rem); }
  .vcs-page .vcs-machine-graphic { min-height: 470px; }
  .vcs-page .vcs-chip-grid { grid-template-columns: 1fr; }
  .vcs-page .vcs-chip-grid > div { min-height: 0; }
  .vcs-page .vcs-chip-grid span { margin-bottom: 1.8rem; }
}

@media (max-width: 660px) {
  .vcs-page .chapter-hero-copy h1 { max-width: 10ch; font-size: clamp(2.4rem, 11.7vw, 3.85rem); line-height: .95; }
  .vcs-page .vcs-machine-graphic { min-height: 330px; padding: 1.4rem; }
  .vcs-page .vcs-machine-graphic figcaption { display: block; }
  .vcs-page .vcs-machine-graphic figcaption span { display: block; }
  .vcs-page .vcs-beam-demo,
  .vcs-page .vcs-controller-feature,
  .vcs-page .vcs-game-grid { grid-template-columns: 1fr; }
  .vcs-page .beam-screen { min-height: 285px; border-width: 10px; }
  .vcs-page .vcs-controller-feature figure { min-height: 330px; }
  .vcs-page .vcs-game-grid article { min-height: 0; }
  .vcs-page .vcs-publisher-section { background: var(--vcs-cream); border-left: 7px solid var(--vcs-orange); }
}

/* Philips Videopac G7000 console portrait */

.videopac-page {
  --vp-black: #171918;
  --vp-charcoal: #303330;
  --vp-silver: #c8c4b8;
  --vp-paper: #eee9dd;
  --vp-red: #d64135;
  --vp-green: #a4b936;
  --vp-gold: #d7a647;
}

.videopac-page .chapter-hero-copy {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(214,65,53,.16), transparent 46%),
    var(--vp-black);
}

.videopac-page .chapter-hero-copy::after {
  position: absolute;
  right: -.8rem;
  bottom: -2rem;
  color: rgba(255,255,255,.035);
  content: "G7000";
  font: 900 clamp(6rem, 14vw, 13rem)/.8 Inter, sans-serif;
  letter-spacing: -.1em;
  pointer-events: none;
}

.videopac-page .chapter-hero-copy .eyebrow,
.videopac-page .chapter-byline { color: #ef665b; }
.videopac-page .chapter-hero-copy h1 { position: relative; z-index: 1; max-width: 780px; color: #fff; }
.videopac-page .chapter-deck { position: relative; z-index: 1; color: #d8d5cc; }

.videopac-page .videopac-machine-graphic {
  position: relative;
  min-height: 620px;
  margin: 0;
  padding: clamp(2.2rem, 5vw, 5rem);
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(rgba(23,25,24,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23,25,24,.08) 1px, transparent 1px),
    #d8d2c5;
  background-size: 34px 34px;
}

.videopac-page .videopac-machine-graphic::before {
  position: absolute;
  inset: 7% 6% auto auto;
  width: 28%;
  height: 7px;
  background: var(--vp-red);
  box-shadow: 0 14px var(--vp-black), 0 28px var(--vp-green);
  content: "";
}

.videopac-page .videopac-machine-graphic img {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 760px);
  height: auto;
  border: 10px solid #f6f2e9;
  box-shadow: 0 28px 42px rgba(23,25,24,.23);
  transform: rotate(1deg);
}

.videopac-page .videopac-machine-graphic figcaption {
  position: absolute;
  right: clamp(1.4rem, 3vw, 3rem);
  bottom: clamp(1.2rem, 2.5vw, 2.5rem);
  left: clamp(1.4rem, 3vw, 3rem);
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--vp-black);
  font: 800 .72rem/1.35 var(--font-mono, monospace);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.videopac-page .fact-strip > div:nth-child(1) { background: var(--vp-red); }
.videopac-page .fact-strip > div:nth-child(2) { background: var(--vp-charcoal); }
.videopac-page .fact-strip > div:nth-child(3) { background: #666a64; }
.videopac-page .fact-strip > div:nth-child(4) { color: var(--vp-black); background: var(--vp-green); }
.videopac-page .fact-strip > div:nth-child(-n + 3) small,
.videopac-page .fact-strip > div:nth-child(-n + 3) strong { color: #fff; }
.videopac-page .fact-strip > div:nth-child(4) small,
.videopac-page .fact-strip > div:nth-child(4) strong { color: var(--vp-black); }

.videopac-page .videopac-quote { background: var(--vp-red); }
.videopac-page .videopac-quote::before { color: rgba(23,25,24,.14); }

.videopac-page .videopac-keyboard-section {
  background:
    linear-gradient(90deg, var(--vp-red) 0 1.2%, transparent 1.2%),
    var(--vp-paper);
}

.videopac-page .videopac-keyboard-diagram {
  margin: 2.6rem 0;
  padding: 1.1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
  border: 11px solid var(--vp-silver);
  background: var(--vp-black);
  box-shadow: inset 0 0 0 2px #77736b;
}

.videopac-page .videopac-keyboard-diagram > div {
  min-height: 220px;
  padding: 1.3rem;
  border: 1px solid #686b66;
  background: linear-gradient(145deg, #2b2d2b, #181a19);
}

.videopac-page .videopac-keyboard-diagram small,
.videopac-page .videopac-keyboard-diagram strong { display: block; }
.videopac-page .videopac-keyboard-diagram small { color: #ef665b; font: 800 .68rem/1 var(--font-mono, monospace); letter-spacing: .12em; }
.videopac-page .videopac-keyboard-diagram strong { margin: 2rem 0 1.5rem; color: #fff; font: 800 1.35rem/1 var(--font-mono, monospace); letter-spacing: .07em; }
.videopac-page .videopac-keyboard-diagram p { color: #d8d5cc; font-size: .86rem; line-height: 1.55; }

.videopac-page .videopac-architecture-grid {
  margin: 2.6rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.videopac-page .videopac-architecture-grid > div {
  min-height: 245px;
  padding: 1.5rem;
  color: #eeeae1;
  background: var(--vp-black);
  box-shadow: inset 0 7px var(--vp-red);
}
.videopac-page .videopac-architecture-grid > div:nth-child(2) { box-shadow: inset 0 7px var(--vp-green); }
.videopac-page .videopac-architecture-grid > div:nth-child(3) { box-shadow: inset 0 7px var(--vp-gold); }
.videopac-page .videopac-architecture-grid span { display: block; margin: 1.1rem 0 3rem; color: var(--vp-green); font: 900 1.4rem/1 var(--font-mono, monospace); letter-spacing: .06em; }
.videopac-page .videopac-architecture-grid strong { display: block; color: #fff; font-size: 1.05rem; }
.videopac-page .videopac-architecture-grid p { margin-top: .65rem; color: #d8d5cc; font-size: .86rem; line-height: 1.55; }

.videopac-page .videopac-cartridge-feature {
  margin: 2.6rem 0;
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  background: var(--vp-black);
}
.videopac-page .videopac-cartridge-feature figure { min-height: 500px; margin: 0; padding: 2rem; display: grid; place-items: center; background: #fff; }
.videopac-page .videopac-cartridge-feature img { display: block; width: 100%; height: 100%; max-height: 540px; object-fit: contain; }
.videopac-page .videopac-cartridge-feature > div { padding: clamp(2rem, 5vw, 4.5rem); color: #eeeae1; }
.videopac-page .videopac-cartridge-feature span { color: #ef665b; font: 900 .8rem/1 var(--font-mono, monospace); letter-spacing: .16em; }
.videopac-page .videopac-cartridge-feature h3 { margin: 1rem 0 1.4rem; color: #fff; font-size: clamp(2rem, 3.2vw, 3.6rem); line-height: .98; }
.videopac-page .videopac-cartridge-feature p { color: #d8d5cc; font-size: .96rem; line-height: 1.7; }

.videopac-page .videopac-game-grid {
  margin: 2.6rem 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.videopac-page .videopac-game-grid article { min-height: 240px; padding: 1.5rem; background: var(--vp-black); box-shadow: inset 0 -8px var(--vp-red); }
.videopac-page .videopac-game-grid article:nth-child(2) { box-shadow: inset 0 -8px var(--vp-green); }
.videopac-page .videopac-game-grid article:nth-child(3) { box-shadow: inset 0 -8px var(--vp-gold); }
.videopac-page .videopac-game-grid article:nth-child(4) { box-shadow: inset 0 -8px var(--vp-silver); }
.videopac-page .videopac-game-grid span { color: var(--vp-green); font: 800 .72rem/1 var(--font-mono, monospace); letter-spacing: .12em; }
.videopac-page .videopac-game-grid h3 { margin: 2.5rem 0 .7rem; color: #fff; font-size: 1.5rem; }
.videopac-page .videopac-game-grid p { color: #d8d5cc; font-size: .88rem; line-height: 1.55; }

.videopac-page .videopac-photo-wide { margin: 2.5rem 0 0; }
.videopac-page .videopac-photo-wide img { display: block; width: 100%; height: auto; min-height: 0; object-fit: contain; background: #fff; }
.videopac-page .videopac-photo-wide figcaption { margin-top: 0; padding: .9rem 1rem; color: #fff; background: var(--vp-charcoal); font-size: .78rem; line-height: 1.5; }

.videopac-page .videopac-strategy-section { color: #f5f1e8; background: var(--vp-charcoal); }
.videopac-page .videopac-strategy-section h2 { color: #fff; }
.videopac-page .videopac-strategy-section .lead,
.videopac-page .videopac-strategy-section .chapter-copy > p { color: #e0dcd3; }
.videopac-page .videopac-strategy-section .section-number { color: var(--vp-green); }
.videopac-page .videopac-strategy { margin: 2.6rem 0 0; display: grid; grid-template-columns: minmax(250px, .75fr) minmax(0, 1.25fr); background: var(--vp-black); }
.videopac-page .videopac-strategy > div:last-child { padding: clamp(2rem, 5vw, 4.2rem); }
.videopac-page .videopac-strategy small { color: var(--vp-green); font: 800 .72rem/1 var(--font-mono, monospace); letter-spacing: .14em; }
.videopac-page .videopac-strategy h3 { margin: 1rem 0 1.4rem; color: #fff; font-size: clamp(1.9rem, 3vw, 3.2rem); line-height: 1; }
.videopac-page .videopac-strategy p { color: #d8d5cc; font-size: .94rem; line-height: 1.7; }
.videopac-page .strategy-board { position: relative; min-height: 470px; overflow: hidden; background: repeating-conic-gradient(#9e7b38 0 25%, #e0c77e 0 50%) 50%/82px 82px; box-shadow: inset 0 0 0 15px #6b4a25, inset 0 0 0 18px #d8be73; }
.videopac-page .strategy-board::before { position: absolute; inset: 17%; border: 7px double #6b4a25; border-radius: 50%; background: rgba(214,65,53,.7); content: ""; }
.videopac-page .strategy-board span,
.videopac-page .strategy-board i,
.videopac-page .strategy-board b,
.videopac-page .strategy-board em { position: absolute; width: 32px; height: 32px; border: 5px solid #f2ead1; border-radius: 50%; background: var(--vp-black); box-shadow: 0 4px 0 rgba(0,0,0,.25); }
.videopac-page .strategy-board span { top: 18%; left: 18%; }
.videopac-page .strategy-board i { top: 21%; right: 20%; background: var(--vp-red); }
.videopac-page .strategy-board b { right: 18%; bottom: 18%; background: var(--vp-green); }
.videopac-page .strategy-board em { bottom: 20%; left: 22%; background: var(--vp-gold); }

.videopac-page .videopac-brands { margin: 2.6rem 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid #bdb4a5; border-left: 1px solid #bdb4a5; }
.videopac-page .videopac-brands > div { min-height: 130px; padding: 1.3rem; border-right: 1px solid #bdb4a5; border-bottom: 1px solid #bdb4a5; background: rgba(255,255,255,.45); }
.videopac-page .videopac-brands span { display: block; margin-bottom: 1.9rem; color: var(--vp-red); font: 800 .7rem/1 var(--font-mono, monospace); letter-spacing: .11em; text-transform: uppercase; }
.videopac-page .videopac-brands strong { color: var(--vp-black); font-size: 1.08rem; }

.videopac-page .videopac-timeline { background: var(--vp-black); }
.videopac-page .videopac-related { color: var(--vp-black); background: var(--vp-green); }
.videopac-page .videopac-related h2,
.videopac-page .videopac-related p:last-child { color: var(--vp-black); }
.videopac-page .videopac-related a { border-color: var(--vp-black); color: var(--vp-black); }
.videopac-page .videopac-related a:hover { color: #fff; background: var(--vp-black); }
.videopac-page .pagination-placeholder { min-height: 1px; }

.videopac-page .chapter-sources > div > ul { margin-top: 28px; }
.videopac-page .chapter-sources > div > ul li { margin: 0; }
.videopac-page .chapter-sources > div > ul li a {
  position: relative;
  display: block;
  padding: 8px 32px 8px 0;
  line-height: 1.35;
}
.videopac-page .chapter-sources > div > ul li a em { display: inline; }
.videopac-page .chapter-sources > div > ul li a::after {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

@media (max-width: 900px) {
  .videopac-page .chapter-hero-copy h1 { font-size: clamp(2.75rem, 7.4vw, 5rem); }
  .videopac-page .videopac-machine-graphic { min-height: 470px; }
  .videopac-page .videopac-keyboard-diagram,
  .videopac-page .videopac-architecture-grid { grid-template-columns: 1fr; }
  .videopac-page .videopac-keyboard-diagram > div,
  .videopac-page .videopac-architecture-grid > div { min-height: 0; }
  .videopac-page .videopac-architecture-grid span { margin-bottom: 1.8rem; }
}

@media (max-width: 660px) {
  .videopac-page .chapter-hero-copy h1 { max-width: 11ch; font-size: clamp(2.2rem, 10.8vw, 3.55rem); line-height: .95; }
  .videopac-page .videopac-machine-graphic { min-height: 340px; padding: 1.25rem; }
  .videopac-page .videopac-machine-graphic img { border-width: 6px; }
  .videopac-page .videopac-machine-graphic figcaption { display: block; }
  .videopac-page .videopac-machine-graphic figcaption span { display: block; }
  .videopac-page .videopac-keyboard-section { border-left: 7px solid var(--vp-red); background: var(--vp-paper); }
  .videopac-page .videopac-cartridge-feature,
  .videopac-page .videopac-game-grid,
  .videopac-page .videopac-strategy,
  .videopac-page .videopac-brands { grid-template-columns: 1fr; }
  .videopac-page .videopac-cartridge-feature figure { min-height: 340px; }
  .videopac-page .videopac-game-grid article { min-height: 0; }
  .videopac-page .strategy-board { min-height: 340px; }
}

/* Keep the PC Engine palette above the shared long-form cascade. */
body.pce-page .pce-hero { background: linear-gradient(90deg, #f8f4eb 0 49.8%, #171a20 50.2% 100%); }
body.pce-page .pce-opening,
body.pce-page .pce-hucard-section,
body.pce-page .pce-games-section,
body.pce-page .pce-timeline { background: #fff; }
body.pce-page .pce-two-bodies-section,
body.pce-page .pce-arcade-section,
body.pce-page .pce-regions-section { background: #e8edf0; }
body.pce-page .pce-bits-section,
body.pce-page .pce-family-section { background: var(--article-surface); }
body.pce-page .pce-quote { color: #fff; background: linear-gradient(125deg, var(--pce-red) 0 48%, var(--pce-ink) 48%); }
body.pce-page .pce-five-player-section { color: #fff; background: var(--pce-ink); }
body.pce-page .pce-cd-section { color: #fff; background: radial-gradient(circle at 80% 10%, #424b58, var(--pce-ink) 50%); }
body.pce-page .pce-five-player-section h2,
body.pce-page .pce-five-player-section .lead,
body.pce-page .pce-five-player-section .chapter-copy > p,
body.pce-page .pce-five-player-section .copy-columns p,
body.pce-page .pce-cd-section h2,
body.pce-page .pce-cd-section .lead,
body.pce-page .pce-cd-section .chapter-copy > p { color: #fff; }
body.pce-page .fact-strip small,
body.pce-page .fact-strip strong { color: inherit; }
body.pce-page .pce-related { color: #fff; background: linear-gradient(135deg, var(--pce-blue), #24415d 60%, var(--pce-ink)); }
body.pce-page.classic-profile-page .pce-related h2,
body.pce-page.classic-profile-page .pce-related p:last-child { color: #fff; }
body.pce-page.classic-profile-page .pce-related a { color: var(--pce-ink); background: var(--pce-orange); }

@media (max-width: 900px) {
  body.pce-page .pce-hero { background: linear-gradient(180deg, #f8f4eb 0 57%, #171a20 57%); }
}

/* Sega Mega Drive — arcade circuitry, hi-fi circles and regional accents. */
body.megadrive-page {
  --md-black: #111317;
  --md-charcoal: #20242b;
  --md-blue: #1457d9;
  --md-red: #e83338;
  --md-gold: #d7b85a;
  --md-paper: #f1eee6;
  --md-silver: #cbd0d4;
  color: var(--md-black);
  background: var(--md-paper);
}
body.megadrive-page .site-header { position: relative; z-index: 50; }
.megadrive-page .megadrive-hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(118deg, #0c0e12 0 50%, #151a24 50% 100%);
}
.megadrive-page .megadrive-hero::before,
.megadrive-page .megadrive-hero::after {
  position: absolute;
  pointer-events: none;
  content: "";
}
.megadrive-page .megadrive-hero::before {
  inset: 0;
  opacity: .25;
  background: repeating-linear-gradient(90deg, transparent 0 39px, rgba(255,255,255,.12) 40px 41px);
}
.megadrive-page .megadrive-hero::after {
  right: -12%;
  bottom: -140px;
  width: 680px;
  height: 680px;
  border: 70px solid rgba(20,87,217,.32);
  border-radius: 50%;
  box-shadow: 0 0 0 38px rgba(232,51,56,.17), 0 0 0 88px rgba(255,255,255,.03);
}
.megadrive-page .chapter-hero-copy,
.megadrive-page .megadrive-hero-machine { position: relative; z-index: 2; }
.megadrive-page .chapter-hero-copy h1 { max-width: 11ch; color: #fff; font-size: clamp(3.4rem, 6.3vw, 6.9rem); line-height: .89; letter-spacing: -.06em; }
.megadrive-page .chapter-hero-copy .eyebrow { color: var(--md-gold); }
.megadrive-page .chapter-deck { max-width: 650px; color: #dadddf; }
.megadrive-page .chapter-byline { border-color: rgba(255,255,255,.24); color: #fff; }
.megadrive-hero-machine { align-self: center; margin: 2rem 2.8rem 2rem 0; padding: 2rem; }
.megadrive-hero-machine img { position: relative; z-index: 2; display: block; width: 100%; height: auto; object-fit: contain; filter: drop-shadow(0 30px 25px rgba(0,0,0,.72)); }
.megadrive-hero-machine figcaption { position: relative; z-index: 3; display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.7rem; border-top: 1px solid rgba(255,255,255,.32); padding-top: .85rem; color: #fff; font: 700 .72rem/1.4 var(--font-mono, monospace); letter-spacing: .13em; text-transform: uppercase; }
.megadrive-hero-machine figcaption b { color: var(--md-gold); }
.megadrive-orbit { position: absolute; z-index: 1; border: 2px solid rgba(255,255,255,.18); border-radius: 50%; pointer-events: none; }
.megadrive-orbit.orbit-one { inset: 7% 11%; }
.megadrive-orbit.orbit-two { inset: -2% 2%; border-color: rgba(20,87,217,.45); }
.megadrive-page .fact-strip { color: #fff; background: var(--md-blue); }
.megadrive-page .fact-strip > div { border-color: rgba(255,255,255,.24); }
.megadrive-page .fact-strip small { color: #b8ccff; }
.megadrive-page .fact-strip strong { color: #fff; }
.megadrive-page .chapter-section { position: relative; }
.megadrive-page .section-number { color: var(--md-red); }
.megadrive-page .chapter-copy h2 { letter-spacing: -.035em; }

.megadrive-opening { background: #fff; }
.md-arcade-route { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: stretch; gap: 1rem; margin: 2.5rem 0; }
.md-arcade-route article { min-height: 210px; padding: 1.5rem; color: #fff; background: var(--md-charcoal); box-shadow: inset 0 7px 0 var(--md-blue); }
.md-arcade-route article:last-child { box-shadow: inset 0 7px 0 var(--md-red); }
.md-arcade-route small,
.md-arcade-route span { display: block; }
.md-arcade-route small { color: var(--md-gold); font: 800 .7rem/1 var(--font-mono, monospace); letter-spacing: .16em; }
.md-arcade-route strong { display: block; margin: 2.5rem 0 .7rem; font-size: clamp(1.8rem,3vw,3rem); line-height: 1; }
.md-arcade-route span { color: #cdd2d7; line-height: 1.55; }
.md-arcade-route > b { align-self: center; color: var(--md-red); font-size: 2.5rem; }

.megadrive-object-section { background: var(--md-paper); }
.md-object-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(240px, .8fr); gap: 1.5rem; margin: 2.7rem 0; }
.md-object-grid figure { margin: 0; padding: 1.3rem; background: #fff; }
.md-object-grid img { display: block; width: 100%; height: auto; object-fit: contain; }
.md-object-grid figcaption,
.md-controller-photo figcaption,
.md-genesis-photo figcaption { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1rem; border-top: 1px solid #c8c8c8; padding-top: .8rem; font: 700 .72rem/1.4 var(--font-mono, monospace); letter-spacing: .1em; text-transform: uppercase; }
.md-object-grid figcaption b,
.md-controller-photo figcaption b,
.md-genesis-photo figcaption b { color: var(--md-red); }
.md-dial { display: grid; place-content: center; min-height: 360px; border: 30px solid #2a2d32; border-radius: 50%; color: #fff; text-align: center; background: radial-gradient(circle, #1d2025 0 41%, #101216 42% 57%, #353940 58% 61%, #111317 62%); box-shadow: inset 0 0 0 2px #747b82; }
.md-dial span { color: var(--md-gold); font: 800 clamp(5rem,10vw,8.5rem)/.75 var(--font-sans, sans-serif); letter-spacing: -.09em; }
.md-dial strong { color: var(--md-gold); font: 800 1rem/1 var(--font-mono, monospace); letter-spacing: .5em; }
.md-dial small { margin-top: 2rem; color: #bac0c5; font: 700 .64rem/1.8 var(--font-mono, monospace); letter-spacing: .15em; }

.megadrive-architecture-section { color: #fff; background: var(--md-charcoal); }
.megadrive-architecture-section h2,
.megadrive-architecture-section .lead,
.megadrive-architecture-section .chapter-copy > p { color: #fff; }
.md-chip-board { display: grid; grid-template-columns: minmax(0,1fr) 140px minmax(0,1fr); align-items: center; gap: 0; margin: 2.8rem 0; }
.md-chip-board article { min-height: 270px; border: 1px solid #59616a; padding: 1.6rem; background: #111317; box-shadow: inset 0 0 0 9px #262a30; }
.md-chip-board article > span { color: var(--md-red); font: 800 .7rem/1 var(--font-mono, monospace); letter-spacing: .15em; }
.md-chip-board article > strong { display: block; margin: 2.5rem 0 .3rem; color: var(--md-gold); font-size: clamp(2rem,4vw,3.8rem); line-height: .9; }
.md-chip-board article > small { color: #aab4bd; font: 700 .72rem/1 var(--font-mono, monospace); }
.md-chip-board article p { margin-top: 1.4rem; color: #dfe3e6; }
.md-bus { display: grid; gap: 14px; }
.md-bus i { display: block; height: 3px; background: linear-gradient(90deg,var(--md-blue),var(--md-gold),var(--md-red)); }

.megadrive-sound-section { color: #fff; background: linear-gradient(135deg, #0f1220, #142e66 72%, #192342); }
.megadrive-sound-section h2,
.megadrive-sound-section .lead,
.megadrive-sound-section .chapter-copy > p { color: #fff; }
.md-equalizer { display: flex; align-items: end; gap: clamp(6px,1vw,14px); height: 260px; margin: 2.5rem 0 1rem; border-bottom: 1px solid rgba(255,255,255,.45); padding: 0 1rem; }
.md-equalizer span { flex: 1; height: var(--h); min-width: 7px; background: linear-gradient(180deg,var(--md-red),var(--md-gold) 48%,var(--md-blue)); box-shadow: 0 0 20px rgba(20,87,217,.36); }
.md-sound-notes { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin-bottom: 2.5rem; }
.md-sound-notes span { border-left: 1px solid rgba(255,255,255,.25); padding: .8rem; color: #d5e0ff; font: 700 .7rem/1.35 var(--font-mono, monospace); letter-spacing: .08em; }

.megadrive-control-section { background: #fff; }
.md-controller-photo { max-width: 930px; margin: 2.5rem auto; padding: 1.5rem; background: var(--md-paper); }
.md-controller-photo img { display: block; width: 100%; height: auto; object-fit: contain; }
.md-controller-photo figcaption span { min-width: 0; }

.megadrive-regions-section { background: var(--md-paper); }
.md-region-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 2.6rem 0; border-top: 1px solid #aeb3b7; border-left: 1px solid #aeb3b7; }
.md-region-grid article { min-height: 270px; border-right: 1px solid #aeb3b7; border-bottom: 1px solid #aeb3b7; padding: 1.45rem; background: rgba(255,255,255,.58); }
.md-region-grid article:nth-child(2) { color: #fff; background: var(--md-blue); }
.md-region-grid span { color: var(--md-red); font: 800 .68rem/1 var(--font-mono, monospace); letter-spacing: .14em; }
.md-region-grid article:nth-child(2) span { color: #fff1a8; }
.md-region-grid h3 { margin: 3rem 0 1rem; font-size: clamp(1.55rem,2.4vw,2.2rem); line-height: 1; }
.md-region-grid p { line-height: 1.6; }
.md-region-grid article:nth-child(2) p { color: #fff; }
.md-genesis-photo { margin: 2rem 0 0; padding: 1.5rem; background: #fff; }
.md-genesis-photo img { display: block; width: 100%; height: auto; object-fit: contain; }

.megadrive-sonic-section { overflow: hidden; color: #fff; background: var(--md-blue); }
.megadrive-sonic-section::after { position: absolute; right: -90px; bottom: -90px; width: 330px; height: 330px; border: 50px solid rgba(255,255,255,.12); border-radius: 50%; content: ""; pointer-events: none; }
.megadrive-sonic-section h2,
.megadrive-sonic-section .lead,
.megadrive-sonic-section .chapter-copy > p { color: #fff; }
.megadrive-sonic-section .section-number { color: #fff1a8; }
.md-speed-track { position: relative; z-index: 1; display: grid; grid-template-columns: auto 1fr auto 1fr auto 1fr auto; align-items: center; gap: .6rem; margin: 3rem 0; color: #fff; font: 800 .72rem/1 var(--font-mono, monospace); letter-spacing: .1em; }
.md-speed-track i { height: 5px; transform: skewX(-25deg); background: repeating-linear-gradient(90deg,#fff 0 25px,transparent 25px 38px); }

.megadrive-ea-section { background: #fff; }
.md-ea-playbook { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; margin: 2.5rem 0; }
.md-ea-playbook article { min-height: 230px; border: 1px solid #bec3c7; border-top: 8px solid var(--md-gold); padding: 1.35rem; background: #f7f5ef; }
.md-ea-playbook small { color: var(--md-blue); font: 800 .68rem/1 var(--font-mono, monospace); letter-spacing: .14em; }
.md-ea-playbook strong { display: block; margin: 2.5rem 0 .8rem; font-size: 1.5rem; }
.md-ea-playbook p { line-height: 1.55; }

.megadrive-cartridge-section { color: #fff; background: #171a1f; }
.megadrive-cartridge-section h2,
.megadrive-cartridge-section .lead,
.megadrive-cartridge-section .chapter-copy > p { color: #fff; }
.md-cart-stack { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; margin: 2.7rem 0; }
.md-cart-stack article { position: relative; min-height: 280px; border: 1px solid #545a62; padding: 1.4rem; background: #22262d; box-shadow: 7px -7px 0 #343942; }
.md-cart-stack article:nth-child(1) { border-top: 7px solid var(--md-blue); }
.md-cart-stack article:nth-child(2) { border-top: 7px solid var(--md-red); }
.md-cart-stack article:nth-child(3) { border-top: 7px solid var(--md-gold); }
.md-cart-stack span { color: var(--md-gold); font: 800 .68rem/1 var(--font-mono, monospace); letter-spacing: .13em; }
.md-cart-stack h3 { margin: 3.6rem 0 .9rem; color: #fff; font-size: 1.55rem; line-height: 1.05; }
.md-cart-stack p { color: #d5d9dd; line-height: 1.6; }

.megadrive-europe-section { background: var(--md-paper); }
.md-dutch-panel { position: relative; overflow: hidden; margin: 2.7rem 0; padding: 2rem; color: #fff; background: linear-gradient(115deg,var(--md-red),#b51c31); }
.md-dutch-panel::after { position: absolute; right: -60px; top: -110px; width: 290px; height: 290px; border: 38px solid rgba(255,255,255,.13); border-radius: 50%; content: ""; pointer-events: none; }
.md-dutch-panel span { font: 800 .7rem/1 var(--font-mono, monospace); letter-spacing: .15em; }
.md-dutch-panel strong { display: block; margin: 1.2rem 0; color: #fff; font-size: clamp(4rem,10vw,8rem); line-height: .85; letter-spacing: -.07em; }
.md-dutch-panel p { position: relative; z-index: 1; max-width: 650px; color: #fff; }

.megadrive-page .megadrive-timeline { background: #fff; }
.megadrive-page .megadrive-timeline time { color: var(--md-blue); }
.megadrive-page .megadrive-related { color: #fff; background: linear-gradient(120deg,var(--md-blue),#102c61 60%,var(--md-black)); }
.megadrive-page.classic-profile-page .megadrive-related h2,
.megadrive-page.classic-profile-page .megadrive-related p:last-child { color: #fff; }
.megadrive-page.classic-profile-page .megadrive-related a { border-color: var(--md-gold); color: var(--md-black); background: var(--md-gold); }
.megadrive-page .pagination-placeholder { min-height: 1px; }
.megadrive-page .chapter-sources > div > ul { margin-top: 28px; }
.megadrive-page .chapter-sources > div > ul li { margin: 0; }
.megadrive-page .chapter-sources > div > ul li a { position: relative; display: block; padding: 8px 32px 8px 0; line-height: 1.35; }
.megadrive-page .chapter-sources > div > ul li a em { display: inline; }
.megadrive-page .chapter-sources > div > ul li a::after { position: absolute; top: 50%; right: 0; transform: translateY(-50%); }

@media (max-width: 1000px) {
  .megadrive-page .megadrive-hero { grid-template-columns: 1fr; }
  .megadrive-hero-machine { max-width: 780px; margin: 0 auto 2.5rem; }
  .md-object-grid { grid-template-columns: 1fr; }
  .md-dial { max-width: 460px; width: 100%; margin: auto; }
}
@media (max-width: 760px) {
  .megadrive-page .chapter-hero-copy h1 { max-width: 12ch; font-size: clamp(2.5rem,11vw,4rem); }
  .megadrive-page .megadrive-hero { min-height: 0; }
  .megadrive-hero-machine { margin: 0; padding: 1rem 1.25rem 2rem; }
  .megadrive-hero-machine figcaption,
  .md-object-grid figcaption,
  .md-controller-photo figcaption,
  .md-genesis-photo figcaption { display: block; }
  .megadrive-hero-machine figcaption span,
  .md-object-grid figcaption span,
  .md-controller-photo figcaption span,
  .md-genesis-photo figcaption span { display: block; margin-top: .45rem; }
  .md-arcade-route,
  .md-chip-board,
  .md-region-grid,
  .md-sound-notes,
  .md-ea-playbook,
  .md-cart-stack { grid-template-columns: 1fr; }
  .md-arcade-route > b { transform: rotate(90deg); justify-self: center; }
  .md-chip-board { gap: 1rem; }
  .md-bus { display: none; }
  .md-chip-board article,
  .md-region-grid article,
  .md-ea-playbook article,
  .md-cart-stack article { min-height: 0; }
  .md-region-grid { border-top: 1px solid #aeb3b7; }
  .md-sound-notes span { border-top: 1px solid rgba(255,255,255,.25); }
  .md-speed-track { grid-template-columns: 1fr; gap: .7rem; }
  .md-speed-track i { width: 100%; }
  .md-dial { min-height: 280px; border-width: 22px; }
  .md-controller-photo,
  .md-genesis-photo { padding: 1rem; }
}

/* Nintendo Game Boy — a machine for in-between time */
body.gameboy-page {
  --gb-shell: #c9c7b9;
  --gb-paper: #eeede5;
  --gb-surface: #f8f7f1;
  --gb-ink: #171a1e;
  --gb-muted: #62645e;
  --gb-screen: #9bbc0f;
  --gb-screen-mid: #8bac0f;
  --gb-screen-dark: #306230;
  --gb-screen-black: #0f380f;
  --gb-magenta: #9b2257;
  --gb-blue: #234c9f;
  --article-paper: var(--gb-paper);
  --article-surface: var(--gb-surface);
  --article-text: #30332f;
  --article-muted: var(--gb-muted);
  --article-line: #b9b9ae;
  --espresso: var(--gb-ink);
  --rust: var(--gb-magenta);
  background: var(--gb-paper);
}

body.gameboy-page .site-header { position: relative; z-index: 50; }
body.gameboy-page .chapter { overflow: hidden; }
body.gameboy-page .gameboy-hero {
  position: relative;
  min-height: 720px;
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, .82fr);
  background:
    linear-gradient(90deg, transparent 0 70%, rgba(15,56,15,.055) 70% 70.5%, transparent 70.5%),
    var(--gb-shell);
}
body.gameboy-page .gameboy-hero::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.06) 0 1px, transparent 1px 5px);
  content: "";
  pointer-events: none;
}
body.gameboy-page .gameboy-hero .chapter-hero-copy { position: relative; z-index: 2; }
body.gameboy-page .chapter-hero-copy h1 { max-width: 830px; }
body.gameboy-page .chapter-hero-copy .eyebrow,
body.gameboy-page .chapter-hero-copy .chapter-byline { color: var(--gb-magenta); }

.gameboy-hero-machine {
  position: relative;
  z-index: 2;
  min-width: 0;
  margin: 0;
  padding: 58px clamp(34px, 5vw, 82px) 42px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  background: var(--gb-screen-black);
  border-left: 10px solid var(--gb-blue);
  isolation: isolate;
}
.gameboy-hero-machine::before {
  position: absolute;
  inset: 26px;
  z-index: -1;
  border: 1px solid rgba(155,188,15,.3);
  content: "";
  pointer-events: none;
}
.gameboy-hero-machine img {
  position: relative;
  z-index: 2;
  display: block;
  width: auto;
  height: auto;
  max-width: min(78%, 440px);
  max-height: 580px;
  object-fit: contain;
  filter: drop-shadow(0 25px 18px rgba(0,0,0,.45));
}
.gameboy-hero-machine figcaption,
.gb-battery-grid figcaption,
.gb-link-photo figcaption,
.gb-cart-photo figcaption,
.gb-family-grid figcaption {
  width: 100%;
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--gb-screen);
  font-size: 11px;
  letter-spacing: .13em;
  line-height: 1.45;
  text-transform: uppercase;
}
.gameboy-hero-machine figcaption b { color: #fff; }
.gb-screen-glow {
  position: absolute;
  inset: 10% 8%;
  z-index: -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  opacity: .16;
  pointer-events: none;
}
.gb-screen-glow i:nth-child(1) { background: var(--gb-screen); }
.gb-screen-glow i:nth-child(2) { background: var(--gb-screen-mid); }
.gb-screen-glow i:nth-child(3) { background: var(--gb-screen-dark); }
.gb-screen-glow i:nth-child(4) { background: var(--gb-screen-black); }

body.gameboy-page .fact-strip > div { background: var(--gb-ink); color: #fff; }
body.gameboy-page .fact-strip > div:nth-child(1) { box-shadow: inset 0 7px var(--gb-screen); }
body.gameboy-page .fact-strip > div:nth-child(2) { box-shadow: inset 0 7px var(--gb-screen-dark); }
body.gameboy-page .fact-strip > div:nth-child(3) { box-shadow: inset 0 7px var(--gb-magenta); }
body.gameboy-page .fact-strip > div:nth-child(4) { box-shadow: inset 0 7px var(--gb-blue); }
body.gameboy-page .fact-strip small,
body.gameboy-page .fact-strip strong { color: inherit; }
body.gameboy-page .chapter-section:nth-of-type(even) { background: #e2e0d5; }
body.gameboy-page .chapter-copy .lead { color: var(--gb-screen-black); }

.gb-time-slots,
.gb-tetris-logic,
.gb-dutch-numbers,
.gb-game-grammar {
  margin: 46px 0;
  display: grid;
  gap: 10px;
}
.gb-time-slots { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gb-time-slots article {
  min-height: 174px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  border: 1px solid #687553;
  background: var(--gb-screen);
  color: var(--gb-screen-black);
}
.gb-time-slots span,
.gb-time-slots strong,
.gb-time-slots small { display: block; }
.gb-time-slots span { font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.gb-time-slots strong { margin-top: auto; font-size: clamp(22px, 2vw, 30px); letter-spacing: -.04em; }
.gb-time-slots small { margin-top: 8px; border-top: 1px solid rgba(15,56,15,.45); padding-top: 8px; font-size: 11px; text-transform: uppercase; }
.gb-time-slots article:nth-child(2) { background: var(--gb-screen-mid); }
.gb-time-slots article:nth-child(3) { background: #6e8a28; color: #f5f7df; }
.gb-time-slots article:nth-child(4) { background: var(--gb-screen-dark); color: #f0f4d4; }

.gb-battery-grid,
.gb-family-grid {
  margin: 46px 0;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 14px;
}
.gb-battery-grid figure,
.gb-link-photo,
.gb-cart-photo,
.gb-family-grid figure {
  margin: 0;
  padding: clamp(22px, 4vw, 42px);
  background: var(--gb-ink);
}
.gb-battery-grid img,
.gb-link-photo img,
.gb-cart-photo img,
.gb-family-grid img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}
.gb-battery-grid img { max-height: 500px; }
.gb-battery-grid figcaption,
.gb-link-photo figcaption,
.gb-cart-photo figcaption,
.gb-family-grid figcaption { color: #cdd0c6; }
.gb-battery-grid figcaption b,
.gb-link-photo figcaption b,
.gb-cart-photo figcaption b,
.gb-family-grid figcaption b { color: var(--gb-screen); }
.gb-power-meter {
  padding: clamp(30px, 5vw, 54px);
  display: grid;
  align-content: center;
  gap: 9px;
  background: var(--gb-screen-black);
  color: #e9eed8;
}
.gb-power-meter > span {
  padding: 10px 12px;
  border: 1px solid rgba(155,188,15,.28);
  color: #859c65;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
}
.gb-power-meter > span.active { background: var(--gb-screen); color: var(--gb-screen-black); }
.gb-power-meter strong { margin-top: 20px; color: #fff; font-size: clamp(34px, 5vw, 60px); letter-spacing: -.05em; }
.gb-power-meter p { margin: 6px 0 0; max-width: 30em; color: #bac5a5; line-height: 1.6; }

.gb-lcd-panel {
  margin: 46px 0;
  padding: clamp(30px, 5vw, 56px);
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(28px, 5vw, 60px);
  border: 14px solid #353944;
  border-radius: 22px 22px 22px 72px;
  background: #8ba52d;
  color: var(--gb-screen-black);
}
.gb-pixels { aspect-ratio: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 5px; }
.gb-pixels span:nth-child(1) { background: var(--gb-screen); }
.gb-pixels span:nth-child(2) { background: var(--gb-screen-mid); }
.gb-pixels span:nth-child(3) { background: var(--gb-screen-dark); }
.gb-pixels span:nth-child(4) { background: var(--gb-screen-black); }
.gb-lcd-panel small { display: block; font-weight: 850; letter-spacing: .14em; }
.gb-lcd-panel strong { display: block; margin-top: 18px; font-size: clamp(42px, 7vw, 78px); letter-spacing: -.06em; }
.gb-lcd-panel p { margin: 14px 0 0; line-height: 1.6; }

.gb-body-map {
  position: relative;
  margin: 46px 0;
  padding: 18px;
  display: grid;
  gap: 7px;
  border: 1px solid var(--gb-ink);
  border-radius: 14px 14px 14px 42px;
  background: var(--gb-shell);
}
.gb-body-map div { padding: 22px; display: grid; grid-template-columns: 45px 1fr 1fr; gap: 16px; align-items: center; border: 1px solid rgba(23,26,30,.24); }
.gb-body-map span { color: var(--gb-magenta); font-size: 12px; font-weight: 850; }
.gb-body-map strong { color: var(--gb-ink); font-size: 22px; }
.gb-body-map small { color: #4e514e; text-align: right; }

.gb-tetris-logic { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gb-tetris-logic article,
.gb-game-grammar article { padding: 28px 24px; border: 1px solid #4d5849; background: var(--gb-screen-black); color: #e9eed8; }
.gb-tetris-logic span { display: grid; width: 42px; height: 42px; place-items: center; background: var(--gb-screen); color: var(--gb-screen-black); font-weight: 900; }
.gb-tetris-logic h3,
.gb-game-grammar h3 { margin: 28px 0 10px; color: #fff; font-size: clamp(20px, 2vw, 28px); line-height: 1.08; }
.gb-tetris-logic p,
.gb-game-grammar p { margin: 0; color: #b8c4a0; font-size: 15px; line-height: 1.65; }

.gb-dutch-numbers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gb-dutch-numbers article { min-width: 0; padding: 30px 22px; border-top: 7px solid var(--gb-magenta); background: var(--gb-surface); }
.gb-dutch-numbers article:nth-child(2) { border-color: var(--gb-screen-dark); }
.gb-dutch-numbers article:nth-child(3) { border-color: var(--gb-blue); }
.gb-dutch-numbers small,
.gb-dutch-numbers strong,
.gb-dutch-numbers span { display: block; }
.gb-dutch-numbers small { color: var(--gb-muted); font-size: 10px; font-weight: 850; letter-spacing: .14em; }
.gb-dutch-numbers strong { margin-top: 18px; color: var(--gb-ink); font-size: clamp(29px, 4vw, 47px); letter-spacing: -.05em; overflow-wrap: anywhere; }
.gb-dutch-numbers span { margin-top: 14px; color: var(--gb-muted); font-size: 14px; line-height: 1.55; }

.gb-link-photo { margin-top: 46px; background: #d7d5ca; }
.gb-link-photo img { max-height: 520px; }
.gb-link-photo figcaption { color: #555950; }
.gb-link-photo figcaption b { color: var(--gb-magenta); }
.gb-link-diagram {
  margin: 14px 0 46px;
  padding: 28px;
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 16px;
  background: var(--gb-ink);
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .11em;
}
.gb-link-diagram i { height: 4px; background: var(--gb-screen); }
.gb-link-diagram b { color: var(--gb-screen); white-space: nowrap; }

.gb-trade-flow {
  margin: 46px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 10px;
}
.gb-trade-flow article { padding: 25px 20px; border: 1px solid var(--gb-screen-dark); background: #dde5b5; }
.gb-trade-flow > b { align-self: center; color: var(--gb-magenta); font-size: 28px; }
.gb-trade-flow span { color: var(--gb-screen-dark); font-size: 10px; font-weight: 900; letter-spacing: .13em; }
.gb-trade-flow strong { display: block; margin-top: 12px; color: var(--gb-ink); font-size: 19px; }
.gb-trade-flow p { margin: 15px 0 0; color: #4c5648; font-size: 14px; line-height: 1.55; }

.gb-game-grammar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gb-game-grammar article { min-height: 220px; }
.gb-game-grammar span { color: var(--gb-screen); font-size: 10px; font-weight: 900; letter-spacing: .13em; }
.gb-game-grammar h3 { margin-top: 48px; }
.gb-game-grammar article:nth-child(2) { box-shadow: inset 7px 0 var(--gb-magenta); }
.gb-game-grammar article:nth-child(3) { box-shadow: inset 7px 0 var(--gb-blue); }
.gb-game-grammar article:nth-child(4) { box-shadow: inset 7px 0 var(--gb-screen); }
.gb-cart-photo { max-width: 520px; margin: 46px auto 0; }

.gb-family-grid { grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr); align-items: stretch; }
.gb-family-line { padding: clamp(28px, 5vw, 52px); display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 18px; background: var(--gb-screen-black); color: #fff; }
.gb-family-line span { color: var(--gb-screen); font-size: 12px; font-weight: 850; }
.gb-family-line b { font-size: clamp(21px, 2vw, 29px); }
.gb-family-line i { height: 3px; background: var(--gb-screen-dark); }
.gb-family-grid figure { background: #2e3137; }
.gb-family-grid img { max-height: 480px; }

body.gameboy-page .gameboy-timeline { background: var(--gb-screen-black); color: #edf1dd; }
body.gameboy-page .gameboy-timeline h2,
body.gameboy-page .gameboy-timeline h3 { color: #fff; }
body.gameboy-page .gameboy-timeline .section-number,
body.gameboy-page .gameboy-timeline time { color: var(--gb-screen); }
body.gameboy-page .gameboy-timeline .fast-timeline-heading > p:last-child { color: #bdc9a8; }
body.gameboy-page .gameboy-timeline li,
body.gameboy-page .gameboy-timeline li + li,
body.gameboy-page .gameboy-timeline li:nth-child(2n + 1):not(:first-child),
body.gameboy-page .gameboy-timeline li:nth-child(3n + 1):not(:first-child),
body.gameboy-page .gameboy-timeline li:nth-child(n + 4) { border-color: rgba(155,188,15,.24); background: #183e18; }
body.gameboy-page .gameboy-timeline li p { color: #c6d0b2; }

body.gameboy-page .gameboy-related { background: var(--gb-magenta); color: #fff; }
body.gameboy-page .gameboy-related h2,
body.gameboy-page .gameboy-related p { color: #fff; }
body.gameboy-page .gameboy-related .section-number { color: #ffd8ea; }
body.gameboy-page .gameboy-related a { background: var(--gb-screen); color: var(--gb-screen-black); }
body.gameboy-page .gameboy-sources { background: var(--gb-shell); }
body.gameboy-page .chapter-sources > div > ul { margin-top: 26px; }
body.gameboy-page .chapter-sources > div > ul li { margin: 0; }
body.gameboy-page .chapter-sources > div > ul li a { position: relative; display: block; padding: 9px 34px 9px 0; line-height: 1.4; }
body.gameboy-page .chapter-sources > div > ul li a em { display: inline; }
body.gameboy-page .chapter-sources > div > ul li a::after { position: absolute; top: 50%; right: 0; transform: translateY(-50%); }
body.gameboy-page .chapter-sources .credits-heading { margin: 32px 0 10px; }
body.gameboy-page .chapter-sources .image-credit-list { margin: 0; line-height: 1.45; }
body.gameboy-page .chapter-sources .image-credit-list a { display: inline; padding: 0; }

@media (max-width: 1000px) {
  body.gameboy-page .gameboy-hero { grid-template-columns: 1fr; }
  .gameboy-hero-machine { min-height: 620px; border-top: 10px solid var(--gb-blue); border-left: 0; }
  .gb-battery-grid,
  .gb-family-grid { grid-template-columns: 1fr; }
  .gb-family-line { min-height: 300px; }
}

/* Bally Astrocade — Console Outlier B01 */
body.astrocade-page {
  --astro-ink: #171311;
  --astro-brown: #5b321d;
  --astro-wood: #8c5a34;
  --astro-cream: #f1e9d5;
  --astro-paper: #faf6eb;
  --astro-gold: #e0ad3f;
  --astro-red: #c72e32;
  --astro-cyan: #57dfd0;
  --astro-blue: #4477bf;
  --astro-green: #6aa84f;
  background: var(--astro-paper);
}

body.astrocade-page .site-header { position: relative; z-index: 50; }
body.astrocade-page .astrocade-hero { min-height: 720px; grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr); background: var(--astro-ink); }
body.astrocade-page .astrocade-hero .chapter-hero-copy { position: relative; z-index: 2; background: linear-gradient(135deg, var(--astro-ink), #352016); }
body.astrocade-page .astrocade-hero .chapter-hero-copy::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .15; background: repeating-linear-gradient(90deg, transparent 0 37px, var(--astro-gold) 38px 39px); }
body.astrocade-page .astrocade-hero .chapter-hero-copy > * { position: relative; z-index: 1; }
body.astrocade-page .astrocade-hero h1 { max-width: 830px; color: #fff; font-size: clamp(3.15rem, 5.7vw, 6.6rem); line-height: .9; }
body.astrocade-page .astrocade-hero .eyebrow { color: var(--astro-gold); }
body.astrocade-page .astrocade-hero .chapter-deck { color: #e9ddc5; }
body.astrocade-page .astrocade-hero .chapter-byline { color: #d9c49d; border-color: rgba(255,255,255,.22); }

.astrocade-hero-machine { position: relative; z-index: 1; min-width: 0; margin: 0; padding: clamp(40px, 6vw, 82px); display: flex; flex-direction: column; justify-content: center; overflow: hidden; background: var(--astro-cream); border-left: 10px solid var(--astro-gold); }
.astrocade-hero-machine .astro-grid { position: absolute; inset: 0; pointer-events: none; opacity: .24; background-image: linear-gradient(rgba(91,50,29,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(91,50,29,.16) 1px, transparent 1px); background-size: 30px 30px; }
.astrocade-hero-machine img { position: relative; z-index: 1; width: 100%; height: auto; object-fit: contain; filter: drop-shadow(0 22px 18px rgba(23,19,17,.2)); }
.astrocade-hero-machine figcaption { position: relative; z-index: 1; margin-top: 28px; padding-top: 14px; display: flex; justify-content: space-between; gap: 18px; border-top: 1px solid rgba(91,50,29,.35); color: var(--astro-brown); font-family: "Courier New", monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

body.astrocade-page .fact-strip > div { color: #fff; background: var(--astro-ink); }
body.astrocade-page .fact-strip > div:nth-child(1) { box-shadow: inset 0 7px var(--astro-gold); }
body.astrocade-page .fact-strip > div:nth-child(2) { box-shadow: inset 0 7px var(--astro-red); }
body.astrocade-page .fact-strip > div:nth-child(3) { box-shadow: inset 0 7px var(--astro-cyan); }
body.astrocade-page .fact-strip > div:nth-child(4) { box-shadow: inset 0 7px var(--astro-blue); }
body.astrocade-page .fact-strip small,
body.astrocade-page .fact-strip strong { color: inherit; }
body.astrocade-page .chapter-section:nth-of-type(2n) { background: var(--astro-paper); }
body.astrocade-page .chapter-section:nth-of-type(2n + 1) { background: #fff; }
body.astrocade-page .section-number { color: var(--astro-red); }

.astro-name-line { margin: 42px 0; display: grid; grid-template-columns: minmax(120px,1fr) 28px minmax(120px,1fr) 28px minmax(120px,1fr) 28px minmax(120px,1fr); align-items: center; }
.astro-name-line article { min-height: 142px; padding: 22px 18px; display: flex; flex-direction: column; justify-content: space-between; background: var(--astro-ink); color: #fff; border-top: 6px solid var(--astro-gold); }
.astro-name-line article:nth-of-type(2) { border-color: var(--astro-red); }
.astro-name-line article:nth-of-type(3) { border-color: var(--astro-cyan); }
.astro-name-line article:nth-of-type(4) { border-color: var(--astro-blue); }
.astro-name-line small,
.astro-name-line span { color: #cfc0a9; font: 700 10px/1.2 "Courier New", monospace; letter-spacing: .08em; text-transform: uppercase; }
.astro-name-line strong { margin: 12px 0; font-size: 16px; line-height: 1.15; }
.astro-name-line > i { height: 2px; background: var(--astro-brown); }

.astro-rebrand-photo,
.astro-angle-photo,
.astro-internals-photo,
.astro-controller-grid figure { margin: 42px 0; overflow: hidden; background: var(--astro-ink); }
.astro-rebrand-photo img,
.astro-angle-photo img,
.astro-internals-photo img,
.astro-controller-grid img { display: block; width: 100%; height: auto; object-fit: contain; }
.astro-rebrand-photo figcaption,
.astro-angle-photo figcaption,
.astro-internals-photo figcaption,
.astro-controller-grid figcaption { padding: 15px 18px; display: flex; justify-content: space-between; gap: 18px; color: #e8dcc6; font: 700 11px/1.4 "Courier New", monospace; letter-spacing: .07em; text-transform: uppercase; }
.astro-rebrand-photo figcaption b,
.astro-angle-photo figcaption b,
.astro-internals-photo figcaption b,
.astro-controller-grid figcaption b { color: var(--astro-gold); }
.astro-rebrand-photo { max-width: 760px; }

.astro-chip-route { margin: 32px 0 42px; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 18px; }
.astro-chip-route span { min-height: 76px; padding: 18px; display: grid; place-items: center; background: var(--astro-brown); color: #fff; font: 800 13px/1.2 "Courier New", monospace; letter-spacing: .08em; text-align: center; }
.astro-chip-route b { color: var(--astro-red); font-size: 24px; }

.astro-builtins { margin: 42px 0; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid #c9bda7; }
.astro-builtins article { min-width: 0; padding: 27px 22px; background: #fff; }
.astro-builtins article + article { border-left: 1px solid #c9bda7; }
.astro-builtins span { color: var(--astro-red); font: 800 12px/1 "Courier New", monospace; }
.astro-builtins h3 { margin: 16px 0 9px; font-size: 20px; }
.astro-builtins p { margin: 0; color: #665c50; font-size: 14px; line-height: 1.5; }

.astro-controller-grid { margin: 42px 0; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(270px, .8fr); background: var(--astro-cream); }
.astro-controller-grid figure { margin: 0; }
.astro-controller-grid ol { margin: 0; padding: 0; list-style: none; }
.astro-controller-grid li { padding: 25px 28px; display: grid; grid-template-columns: 34px 1fr; gap: 4px 14px; }
.astro-controller-grid li + li { border-top: 1px solid #c9bda7; }
.astro-controller-grid li span { grid-row: 1 / 3; color: var(--astro-red); font: 800 12px/1.5 "Courier New", monospace; }
.astro-controller-grid li strong { font-size: 18px; }
.astro-controller-grid li p { margin: 0; color: #665c50; font-size: 14px; line-height: 1.45; }

.astro-memory-math { margin: 42px 0; padding: 30px; display: grid; grid-template-columns: 1fr auto 1fr auto 1.25fr; gap: 16px; align-items: center; background: var(--astro-ink); color: #fff; font: 800 clamp(16px, 2vw, 25px)/1.15 "Courier New", monospace; text-align: center; }
.astro-memory-math span { color: var(--astro-cyan); }
.astro-memory-math strong { color: var(--astro-gold); }
.astro-memory-math i { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.18); color: #cfc0a9; font-size: 12px; font-style: normal; }
.astro-internals-photo { max-width: 820px; }

.astro-hidden-code { margin: 42px 0; display: grid; grid-template-columns: minmax(280px, .95fr) minmax(0, 1.05fr); background: #1c2927; color: #fff; }
.astro-bit-field { padding: 34px; display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; align-content: center; background: #101816; }
.astro-bit-field span { aspect-ratio: 1; display: grid; place-items: center; background: var(--astro-cyan); color: #102320; font: 800 12px/1 "Courier New", monospace; }
.astro-bit-field span:nth-child(odd) { background: var(--astro-gold); }
.astro-hidden-code > div:last-child { padding: 38px; display: flex; flex-direction: column; justify-content: center; }
.astro-hidden-code small { color: var(--astro-cyan); font: 700 11px/1.4 "Courier New", monospace; letter-spacing: .06em; }
.astro-hidden-code strong { margin: 14px 0; color: #fff; font-size: clamp(24px, 3vw, 36px); }
.astro-hidden-code p { margin: 0; color: #c8d7d3; line-height: 1.6; }

.astro-keypad { margin: 42px 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .7fr); background: var(--astro-brown); }
.astro-keys { padding: 30px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; background: var(--astro-ink); }
.astro-keys span { min-height: 54px; display: grid; place-items: center; background: #eee4cc; color: var(--astro-ink); border: 3px solid #8b7a63; box-shadow: inset 0 -5px rgba(0,0,0,.12); font: 800 12px/1 "Courier New", monospace; }
.astro-keys .red { border-color: var(--astro-red); }
.astro-keys .blue { border-color: var(--astro-blue); }
.astro-keys .green { border-color: var(--astro-green); }
.astro-keys .gold { border-color: var(--astro-gold); }
.astro-keypad > div:last-child { padding: 38px; display: flex; flex-direction: column; justify-content: center; color: #fff; }
.astro-keypad > div:last-child strong { color: var(--astro-gold); font: 800 clamp(24px, 3vw, 38px)/1.05 "Courier New", monospace; }
.astro-keypad > div:last-child p { margin: 18px 0 0; color: #e6d7c1; line-height: 1.6; }

.astro-community-flow { margin: 42px 0; display: grid; grid-template-columns: repeat(7, auto); align-items: center; gap: 13px; }
.astro-community-flow article { min-width: 0; padding: 22px 16px; background: var(--astro-cream); border-top: 5px solid var(--astro-red); text-align: center; }
.astro-community-flow article:nth-of-type(2) { border-color: var(--astro-blue); }
.astro-community-flow article:nth-of-type(3) { border-color: var(--astro-green); }
.astro-community-flow article:nth-of-type(4) { border-color: var(--astro-gold); }
.astro-community-flow span { display: block; color: var(--astro-red); font: 800 10px/1 "Courier New", monospace; letter-spacing: .08em; }
.astro-community-flow strong { display: block; margin-top: 10px; font-size: 15px; }
.astro-community-flow > b { color: var(--astro-brown); }

.astro-glitch { position: relative; min-height: 300px; margin: 42px 0; padding: 48px; display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; gap: 15px; overflow: hidden; background: #0b1015; color: #fff; }
.astro-glitch > span,
.astro-glitch > b { position: relative; z-index: 2; padding: 14px; background: #151f29; font: 800 12px/1.2 "Courier New", monospace; letter-spacing: .07em; }
.astro-glitch > b { color: var(--astro-gold); }
.astro-glitch > i { position: relative; z-index: 2; height: 3px; background: var(--astro-cyan); box-shadow: 0 12px var(--astro-red), 0 -12px var(--astro-blue); }
.astro-glitch > div { position: absolute; inset: -30%; opacity: .55; transform: rotate(-8deg); background: repeating-linear-gradient(0deg, transparent 0 9px, var(--astro-blue) 10px 12px, transparent 13px 21px, var(--astro-red) 22px 24px), repeating-linear-gradient(90deg, transparent 0 33px, var(--astro-cyan) 34px 36px); }

.astro-add-under { margin: 42px 0; padding: 32px; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1.15fr; gap: 12px; align-items: center; background: var(--astro-cream); border: 1px solid #c7b89f; text-align: center; }
.astro-add-under span { padding: 20px 13px; background: #fff; color: var(--astro-brown); font: 800 12px/1.25 "Courier New", monospace; }
.astro-add-under strong { color: var(--astro-red); }
.astro-add-under b { grid-column: 1 / -1; padding: 19px; background: var(--astro-ink); color: var(--astro-gold); font: 800 13px/1.4 "Courier New", monospace; letter-spacing: .08em; }

body.astrocade-page .astrocade-timeline { background: var(--astro-ink); color: #f4ead7; }
body.astrocade-page .astrocade-timeline h2,
body.astrocade-page .astrocade-timeline h3 { color: #fff; }
body.astrocade-page .astrocade-timeline .section-number,
body.astrocade-page .astrocade-timeline time { color: var(--astro-gold); }
body.astrocade-page .astrocade-timeline .fast-timeline-heading > p:last-child { color: #c9baa1; }
body.astrocade-page .astrocade-timeline li,
body.astrocade-page .astrocade-timeline li + li,
body.astrocade-page .astrocade-timeline li:nth-child(2n + 1):not(:first-child),
body.astrocade-page .astrocade-timeline li:nth-child(3n + 1):not(:first-child),
body.astrocade-page .astrocade-timeline li:nth-child(n + 4) { border-color: rgba(224,173,63,.24); background: #382216; }
body.astrocade-page .astrocade-timeline li p { color: #d6c7ae; }
body.astrocade-page .astrocade-related { background: var(--astro-red); color: #fff; }
body.astrocade-page .astrocade-related h2,
body.astrocade-page .astrocade-related p { color: #fff; }
body.astrocade-page .astrocade-related .section-number { color: #ffe0b0; }
body.astrocade-page .astrocade-related a { background: var(--astro-gold); color: var(--astro-ink); }
body.astrocade-page .astrocade-sources { background: var(--astro-cream); }
body.astrocade-page .chapter-sources > div > ul { margin-top: 26px; }
body.astrocade-page .chapter-sources > div > ul li { margin: 0; }
body.astrocade-page .chapter-sources > div > ul li a { position: relative; display: block; padding: 9px 34px 9px 0; line-height: 1.4; }
body.astrocade-page .chapter-sources > div > ul li a em { display: inline; }
body.astrocade-page .chapter-sources > div > ul li a::after { position: absolute; top: 50%; right: 0; transform: translateY(-50%); }
body.astrocade-page .chapter-sources .credits-heading { margin: 32px 0 10px; }
body.astrocade-page .chapter-sources .image-credit-list { margin: 0; line-height: 1.45; }
body.astrocade-page .chapter-sources .image-credit-list a { display: inline; padding: 0; }
body.astrocade-page .pagination-placeholder { min-height: 1px; }

@media (max-width: 1000px) {
  body.astrocade-page .astrocade-hero { grid-template-columns: 1fr; }
  .astrocade-hero-machine { min-height: 560px; border-top: 10px solid var(--astro-gold); border-left: 0; }
  .astro-name-line { grid-template-columns: 1fr 22px 1fr; gap: 0; }
  .astro-name-line > i:nth-of-type(2) { display: none; }
  .astro-name-line article:nth-of-type(3) { margin-top: 22px; }
  .astro-name-line article:nth-of-type(4) { margin-top: 22px; }
  .astro-name-line > i:nth-of-type(3) { margin-top: 22px; }
  .astro-builtins { grid-template-columns: 1fr 1fr; }
  .astro-builtins article:nth-child(3) { border-left: 0; border-top: 1px solid #c9bda7; }
  .astro-builtins article:nth-child(4) { border-top: 1px solid #c9bda7; }
}

@media (max-width: 760px) {
  body.astrocade-page .chapter-hero-copy h1 { max-width: 12ch; font-size: clamp(2.25rem, 10.5vw, 3.65rem); line-height: .94; }
  body.astrocade-page .astrocade-hero { min-height: 0; }
  .astrocade-hero-machine { min-height: 430px; padding: 40px 24px 30px; }
  .astrocade-hero-machine figcaption,
  .astro-rebrand-photo figcaption,
  .astro-angle-photo figcaption,
  .astro-internals-photo figcaption,
  .astro-controller-grid figcaption { display: block; }
  .astrocade-hero-machine figcaption span,
  .astro-rebrand-photo figcaption span,
  .astro-angle-photo figcaption span,
  .astro-internals-photo figcaption span,
  .astro-controller-grid figcaption span { display: block; margin-top: .45rem; }
  .astro-name-line { grid-template-columns: 1fr; gap: 10px; }
  .astro-name-line > i { width: 2px; height: 16px; justify-self: center; }
  .astro-name-line article:nth-of-type(3),
  .astro-name-line article:nth-of-type(4),
  .astro-name-line > i:nth-of-type(3) { margin-top: 0; }
  .astro-name-line > i:nth-of-type(2) { display: block; }
  .astro-chip-route,
  .astro-memory-math,
  .astro-controller-grid,
  .astro-hidden-code,
  .astro-keypad,
  .astro-glitch,
  .astro-add-under { grid-template-columns: 1fr; }
  .astro-chip-route b,
  .astro-add-under strong { justify-self: center; transform: rotate(90deg); }
  .astro-builtins { grid-template-columns: 1fr; }
  .astro-builtins article + article { border-left: 0; border-top: 1px solid #c9bda7; }
  .astro-memory-math i,
  .astro-add-under b { grid-column: 1; }
  .astro-controller-grid figure { margin: 0; }
  .astro-community-flow { grid-template-columns: 1fr; }
  .astro-community-flow article:nth-of-type(3) { grid-column: auto; }
  .astro-community-flow > b { justify-self: center; transform: rotate(90deg); }
  .astro-glitch { min-height: 420px; justify-items: stretch; text-align: center; }
  .astro-glitch > i { width: 3px; height: 38px; justify-self: center; box-shadow: 12px 0 var(--astro-red), -12px 0 var(--astro-blue); }
}

@media (max-width: 760px) {
  body.gameboy-page .chapter-hero-copy h1 { max-width: 12ch; font-size: clamp(2.3rem, 10.5vw, 3.8rem); line-height: .94; }
  body.gameboy-page .gameboy-hero { min-height: 0; }
  .gameboy-hero-machine { min-height: 530px; padding: 42px 26px 32px; }
  .gameboy-hero-machine img { max-height: 420px; }
  .gb-time-slots,
  .gb-tetris-logic,
  .gb-dutch-numbers,
  .gb-game-grammar { grid-template-columns: 1fr; }
  .gb-time-slots article,
  .gb-game-grammar article { min-height: 0; }
  .gb-lcd-panel { grid-template-columns: 1fr; border-width: 9px; }
  .gb-pixels { max-width: 260px; }
  .gb-body-map div { grid-template-columns: 40px 1fr; }
  .gb-body-map small { grid-column: 2; text-align: left; }
  .gb-link-diagram { grid-template-columns: 1fr; justify-items: center; }
  .gb-link-diagram i { width: 4px; height: 24px; }
  .gb-trade-flow { grid-template-columns: 1fr; }
  .gb-trade-flow > b { justify-self: center; transform: rotate(90deg); }
  .gb-family-line { min-height: 0; grid-template-columns: auto 1fr; }
  .gb-family-line i { grid-column: 1 / -1; }
  .gameboy-hero-machine figcaption,
  .gb-battery-grid figcaption,
  .gb-link-photo figcaption,
  .gb-cart-photo figcaption,
  .gb-family-grid figcaption { display: block; }
  .gameboy-hero-machine figcaption span,
  .gb-battery-grid figcaption span,
  .gb-link-photo figcaption span,
  .gb-cart-photo figcaption span,
  .gb-family-grid figcaption span { display: block; margin-top: .45rem; }
}

/* RCA Studio II — Console Outlier B02 */
body.studioii-page {
  --s2-ink: #171716;
  --s2-charcoal: #292a27;
  --s2-shell: #d9d3a9;
  --s2-shell-light: #f0ecd2;
  --s2-paper: #f8f5e8;
  --s2-red: #c83d2d;
  --s2-orange: #e68737;
  --s2-teal: #2f7775;
  --s2-line: #a8a27e;
  background: var(--s2-paper);
}

body.studioii-page .site-header { position: relative; z-index: 50; }
body.studioii-page .studioii-hero { min-height: 720px; grid-template-columns: minmax(0, 1.08fr) minmax(430px, .92fr); background: var(--s2-shell-light); }
body.studioii-page .studioii-hero .chapter-hero-copy { position: relative; z-index: 2; color: var(--s2-ink); background: linear-gradient(145deg, #f4f0d9, #d6d0a5); }
body.studioii-page .studioii-hero .chapter-hero-copy::after { content: "02"; position: absolute; right: clamp(20px, 4vw, 70px); bottom: 20px; z-index: 0; pointer-events: none; color: rgba(23,23,22,.065); font: 900 clamp(150px, 22vw, 340px)/.7 Inter, sans-serif; letter-spacing: -.14em; }
body.studioii-page .studioii-hero .chapter-hero-copy > * { position: relative; z-index: 1; }
body.studioii-page .studioii-hero h1 { max-width: 900px; color: var(--s2-ink); font-size: clamp(3.05rem, 5.45vw, 6.2rem); line-height: .9; }
body.studioii-page .studioii-hero .eyebrow { color: var(--s2-red); }
body.studioii-page .studioii-hero .chapter-deck { color: #4e4b3f; }
body.studioii-page .studioii-hero .chapter-byline { color: #595548; border-color: rgba(23,23,22,.25); }

.studioii-hero-machine { position: relative; z-index: 1; min-width: 0; margin: 0; padding: clamp(42px, 6vw, 86px); display: flex; flex-direction: column; justify-content: center; overflow: hidden; background: var(--s2-ink); border-left: 10px solid var(--s2-red); }
.studioii-hero-machine .studioii-grid { position: absolute; inset: 0; pointer-events: none; opacity: .2; background-image: linear-gradient(rgba(217,211,169,.2) 1px, transparent 1px), linear-gradient(90deg, rgba(217,211,169,.2) 1px, transparent 1px); background-size: 34px 34px; }
.studioii-hero-machine::after { content: "0 1 2 3 4 5 6 7 8 9"; position: absolute; right: -90px; top: 68px; transform: rotate(90deg); pointer-events: none; color: rgba(230,135,55,.35); font: 800 13px/1 "Courier New", monospace; letter-spacing: .45em; }
.studioii-hero-machine img { position: relative; z-index: 1; width: 100%; height: auto; object-fit: contain; filter: drop-shadow(0 26px 20px rgba(0,0,0,.42)); }
.studioii-hero-machine figcaption { position: relative; z-index: 1; margin-top: 28px; padding-top: 14px; display: flex; justify-content: space-between; gap: 18px; border-top: 1px solid rgba(240,236,210,.3); color: #cfc9a6; font: 700 11px/1.4 "Courier New", monospace; letter-spacing: .07em; text-transform: uppercase; }
.studioii-hero-machine figcaption b { color: var(--s2-orange); }

body.studioii-page .fact-strip > div { color: #fff; background: var(--s2-ink); }
body.studioii-page .fact-strip > div:nth-child(1) { box-shadow: inset 0 7px var(--s2-red); }
body.studioii-page .fact-strip > div:nth-child(2) { box-shadow: inset 0 7px var(--s2-orange); }
body.studioii-page .fact-strip > div:nth-child(3) { box-shadow: inset 0 7px var(--s2-teal); }
body.studioii-page .fact-strip > div:nth-child(4) { box-shadow: inset 0 7px var(--s2-shell); }
body.studioii-page .fact-strip small,
body.studioii-page .fact-strip strong { color: inherit; }
body.studioii-page .chapter-section:nth-of-type(2n) { background: var(--s2-paper); }
body.studioii-page .chapter-section:nth-of-type(2n + 1) { background: #fff; }
body.studioii-page .section-number { color: var(--s2-red); }

.studio-room-pose { margin: 44px 0; padding: 40px; display: grid; grid-template-columns: 1fr minmax(250px, .9fr) 1fr; align-items: center; background: var(--s2-ink); color: #fff; }
.studio-room-pose article { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 15px; color: var(--s2-shell); font: 800 11px/1 "Courier New", monospace; letter-spacing: .08em; }
.studio-room-pose article:last-child { grid-template-columns: 1fr auto; }
.studio-room-pose article i { height: 2px; background: var(--s2-red); }
.studio-room-pose strong { min-height: 110px; padding: 22px; display: grid; grid-template-columns: auto 1fr auto; place-items: center; gap: 12px; background: var(--s2-shell); border: 7px solid #aaa47f; color: var(--s2-ink); font-size: clamp(18px, 2vw, 26px); text-align: center; }
.studio-room-pose strong small { padding: 11px 8px; background: var(--s2-ink); color: #fff; font: 800 11px/1 "Courier New", monospace; }

.studio-family-chain { margin: 42px 0; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 17px; }
.studio-family-chain article { min-height: 148px; padding: 24px 20px; display: flex; flex-direction: column; justify-content: space-between; background: var(--s2-shell-light); border-top: 6px solid var(--s2-teal); }
.studio-family-chain article:nth-of-type(2) { border-color: var(--s2-orange); }
.studio-family-chain article:nth-of-type(3) { border-color: var(--s2-red); }
.studio-family-chain small,
.studio-family-chain span { color: #5f5b4d; font: 700 10px/1.3 "Courier New", monospace; letter-spacing: .06em; text-transform: uppercase; }
.studio-family-chain strong { margin: 12px 0; font-size: clamp(20px, 2.2vw, 29px); }
.studio-family-chain > b { color: var(--s2-red); font-size: 24px; }

.studio-board-photo,
.studio-angle-photo,
.studio-wire-photos figure { margin: 42px 0; overflow: hidden; background: var(--s2-ink); }
.studio-board-photo img,
.studio-angle-photo img,
.studio-wire-photos img { display: block; width: 100%; height: auto; object-fit: contain; }
.studio-board-photo figcaption,
.studio-angle-photo figcaption,
.studio-wire-photos figcaption { padding: 15px 18px; display: flex; justify-content: space-between; gap: 18px; color: #ddd6b8; font: 700 11px/1.4 "Courier New", monospace; letter-spacing: .06em; text-transform: uppercase; }
.studio-board-photo figcaption b,
.studio-angle-photo figcaption b,
.studio-wire-photos figcaption b { color: var(--s2-orange); }
.studio-board-photo { max-width: 850px; }

.studio-nameplate { max-width: 780px; margin: 42px 0; padding: clamp(34px, 6vw, 62px); display: grid; grid-template-columns: auto 1fr; gap: 6px 24px; align-items: end; background: var(--s2-shell); border: 9px solid #aaa47f; box-shadow: inset 0 0 0 2px #eeead0; }
.studio-nameplate small { align-self: start; color: var(--s2-red); font: 900 24px/1 Inter, sans-serif; }
.studio-nameplate strong { color: var(--s2-ink); font-family: Georgia, serif; font-size: clamp(48px, 7vw, 88px); font-style: italic; font-weight: 400; letter-spacing: -.055em; line-height: .8; }
.studio-nameplate span { grid-column: 2; padding-top: 18px; border-top: 1px solid #8f896a; color: #555142; font: 800 11px/1 "Courier New", monospace; letter-spacing: .24em; }

.studio-keypad-duo { margin: 42px 0; padding: 30px; display: grid; grid-template-columns: minmax(240px, 1fr) minmax(180px, .65fr) minmax(240px, 1fr); gap: 28px; align-items: center; background: var(--s2-shell); border: 1px solid var(--s2-line); }
.studio-keypad-duo > div { position: relative; padding: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; background: #f4f1db; border: 6px solid #8d8c7c; }
.studio-keypad-duo > div small { position: absolute; top: -20px; left: -18px; width: 38px; height: 38px; display: grid; place-items: center; background: var(--s2-red); color: #fff; font: 900 16px/1 Inter, sans-serif; }
.studio-keypad-duo > div span { min-height: 48px; display: grid; place-items: center; background: var(--s2-ink); color: #fff; border-bottom: 4px solid #555; font: 800 15px/1 "Courier New", monospace; }
.studio-keypad-duo > div span:last-child { grid-column: 2; }
.studio-keypad-duo > p { margin: 0; display: grid; gap: 5px; text-align: center; }
.studio-keypad-duo > p b { color: var(--s2-red); font: 800 12px/1.2 "Courier New", monospace; text-transform: uppercase; }
.studio-keypad-duo > p span { margin-bottom: 10px; color: #5a574b; font-size: 13px; }

.studio-pixel-panel { margin: 42px 0; display: grid; grid-template-columns: minmax(320px, 1.05fr) minmax(250px, .75fr); background: var(--s2-ink); color: #fff; }
.studio-pixel-field { min-height: 350px; background-color: #111; background-image: linear-gradient(90deg, transparent 0 17%, #f2edd6 17% 25%, transparent 25% 34%, #f2edd6 34% 67%, transparent 67% 76%, #f2edd6 76% 84%, transparent 84%), linear-gradient(0deg, transparent 0 15%, #f2edd6 15% 23%, transparent 23% 38%, #f2edd6 38% 47%, transparent 47% 62%, #f2edd6 62% 70%, transparent 70%); background-size: 32px 32px; image-rendering: pixelated; border: 18px solid #333; }
.studio-pixel-panel > div:last-child { padding: 42px; display: grid; grid-template-columns: auto auto auto; align-content: center; justify-content: center; gap: 8px 16px; }
.studio-pixel-panel span { color: var(--s2-orange); font: 900 clamp(44px, 6vw, 74px)/1 Inter, sans-serif; }
.studio-pixel-panel b { align-self: center; color: var(--s2-shell); font-size: 28px; }
.studio-pixel-panel strong { grid-column: 1 / -1; padding: 13px; background: #fff; color: var(--s2-ink); font: 800 12px/1 "Courier New", monospace; letter-spacing: .1em; text-align: center; }
.studio-pixel-panel p { grid-column: 1 / -1; margin: 12px 0 0; color: #ccc6ab; line-height: 1.55; text-align: center; }

.studio-time-split { margin: 42px 0; display: grid; grid-template-columns: 49fr 51fr; background: var(--s2-ink); border: 10px solid var(--s2-ink); }
.studio-time-split div { min-height: 230px; padding: 34px; display: flex; flex-direction: column; justify-content: center; }
.studio-time-split div:first-child { background: repeating-linear-gradient(135deg, #494b45 0 12px, #3b3c38 12px 24px); }
.studio-time-split div:last-child { background: var(--s2-red); }
.studio-time-split strong { color: #fff; font: 900 clamp(54px, 8vw, 96px)/.85 Inter, sans-serif; letter-spacing: -.07em; }
.studio-time-split span { margin-top: 20px; color: #fff; font: 800 11px/1 "Courier New", monospace; letter-spacing: .12em; }

.studio-byte-stack { margin: 42px 0; padding: 34px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; background: var(--s2-shell-light); border: 1px solid var(--s2-line); }
.studio-byte-stack span { min-height: 170px; padding: 28px; display: grid; align-content: center; background: #fff; color: #504d42; line-height: 1.5; }
.studio-byte-stack span b { display: block; color: var(--s2-red); font: 900 clamp(38px, 5vw, 60px)/1 Inter, sans-serif; }
.studio-byte-stack span small { margin-top: 12px; font: 700 10px/1.4 "Courier New", monospace; text-transform: uppercase; }
.studio-byte-stack > i { color: var(--s2-red); font: 900 28px/1 Inter, sans-serif; font-style: normal; }
.studio-byte-stack > strong { grid-column: 1 / -1; padding: 19px; background: var(--s2-ink); color: var(--s2-orange); font: 800 13px/1.3 "Courier New", monospace; letter-spacing: .08em; text-align: center; }

.studio-builtins { margin: 42px 0; display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--s2-line); }
.studio-builtins article { min-width: 0; padding: 25px 18px; background: #fff; border-top: 6px solid var(--s2-red); }
.studio-builtins article:nth-child(2) { border-color: var(--s2-orange); }
.studio-builtins article:nth-child(3) { border-color: var(--s2-teal); }
.studio-builtins article:nth-child(4) { border-color: #777760; }
.studio-builtins article:nth-child(5) { border-color: #b8a342; }
.studio-builtins article + article { border-left: 1px solid var(--s2-line); }
.studio-builtins span { color: var(--s2-red); font: 900 25px/1 Inter, sans-serif; }
.studio-builtins h3 { margin: 17px 0 10px; font-size: 19px; }
.studio-builtins p { margin: 0; color: #666254; font-size: 13px; line-height: 1.5; }

.studio-joyce { margin: 42px 0; display: grid; grid-template-columns: 1fr 1fr; background: var(--s2-ink); color: #fff; }
.studio-joyce > div { min-height: 220px; padding: 32px; display: flex; flex-direction: column; justify-content: space-between; border-top: 7px solid var(--s2-orange); }
.studio-joyce > div:nth-child(2) { border-left: 1px solid #55534b; border-top-color: var(--s2-red); }
.studio-joyce small { color: #c7c1a4; font: 700 10px/1 "Courier New", monospace; letter-spacing: .1em; }
.studio-joyce strong { color: #fff; font: 900 clamp(42px, 6vw, 70px)/1 Inter, sans-serif; letter-spacing: -.05em; }
.studio-joyce span { color: var(--s2-orange); font: 700 13px/1.3 "Courier New", monospace; }
.studio-joyce blockquote { grid-column: 1 / -1; margin: 0; padding: 28px 34px; background: var(--s2-shell); color: var(--s2-ink); font: italic 22px/1.55 Georgia, serif; }

.studio-wire-photos { margin: 42px 0 0; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr); align-items: stretch; background: var(--s2-ink); }
.studio-wire-photos figure { margin: 0; display: flex; flex-direction: column; }
.studio-wire-photos figure + figure { border-left: 1px solid #525149; }
.studio-wire-photos img { flex: 1; object-fit: contain; background: #fff; }
.studio-single-wire { margin: 0 0 42px; padding: 28px; display: grid; grid-template-columns: auto 1fr auto 1fr auto; gap: 15px; align-items: center; background: var(--s2-shell); color: var(--s2-ink); }
.studio-single-wire > span { padding: 13px; background: #fff; font: 800 11px/1.2 "Courier New", monospace; text-align: center; }
.studio-single-wire > i { height: 4px; background: var(--s2-ink); }
.studio-single-wire > strong { display: grid; gap: 6px; font: 800 10px/1 "Courier New", monospace; }
.studio-single-wire > strong b:first-child { color: var(--s2-red); }
.studio-single-wire > strong b:last-child { color: var(--s2-teal); }

.studio-clones { margin: 42px 0; display: grid; grid-template-columns: 1fr auto 1.2fr auto 1fr; gap: 17px; align-items: center; }
.studio-clones article { min-height: 160px; padding: 25px 20px; display: flex; flex-direction: column; justify-content: space-between; background: var(--s2-shell-light); border-top: 6px solid #777760; }
.studio-clones article:nth-of-type(2) { border-color: var(--s2-orange); }
.studio-clones article:nth-of-type(3) { border-color: var(--s2-red); }
.studio-clones small,
.studio-clones span { color: #5e5a4b; font: 700 10px/1.35 "Courier New", monospace; letter-spacing: .06em; text-transform: uppercase; }
.studio-clones strong { margin: 12px 0; font-size: clamp(20px, 2.3vw, 29px); }
.studio-clones > b { color: var(--s2-red); font-size: 24px; }

body.studioii-page .studioii-timeline { background: var(--s2-ink); color: #f2edd5; }
body.studioii-page .studioii-timeline h2,
body.studioii-page .studioii-timeline h3 { color: #fff; }
body.studioii-page .studioii-timeline .section-number,
body.studioii-page .studioii-timeline time { color: var(--s2-orange); }
body.studioii-page .studioii-timeline .fast-timeline-heading > p:last-child { color: #c9c3a7; }
body.studioii-page .studioii-timeline li,
body.studioii-page .studioii-timeline li + li,
body.studioii-page .studioii-timeline li:nth-child(2n + 1):not(:first-child),
body.studioii-page .studioii-timeline li:nth-child(3n + 1):not(:first-child),
body.studioii-page .studioii-timeline li:nth-child(n + 4) { border-color: rgba(230,135,55,.26); background: #34342f; }
body.studioii-page .studioii-timeline li p { color: #d2ccb1; }
body.studioii-page .studioii-related { background: var(--s2-teal); color: #fff; }
body.studioii-page .studioii-related h2,
body.studioii-page .studioii-related p { color: #fff; }
body.studioii-page .studioii-related .section-number { color: #d9f2e8; }
body.studioii-page .studioii-related a { background: var(--s2-orange); color: var(--s2-ink); }
body.studioii-page .studioii-sources { background: var(--s2-shell-light); }
body.studioii-page .chapter-sources > div > ul { margin-top: 26px; }
body.studioii-page .chapter-sources > div > ul li { margin: 0; }
body.studioii-page .chapter-sources > div > ul li a { position: relative; display: block; padding: 9px 34px 9px 0; line-height: 1.4; }
body.studioii-page .chapter-sources > div > ul li a em { display: inline; }
body.studioii-page .chapter-sources > div > ul li a::after { position: absolute; top: 50%; right: 0; transform: translateY(-50%); }
body.studioii-page .chapter-sources .credits-heading { margin: 32px 0 10px; }
body.studioii-page .chapter-sources .image-credit-list { margin: 0; line-height: 1.45; }
body.studioii-page .chapter-sources .image-credit-list a { display: inline; padding: 0; }
body.studioii-page .pagination-placeholder { min-height: 1px; }

@media (max-width: 1000px) {
  body.studioii-page .studioii-hero { grid-template-columns: 1fr; }
  .studioii-hero-machine { min-height: 540px; border-top: 10px solid var(--s2-red); border-left: 0; }
  .studio-keypad-duo { grid-template-columns: 1fr 1fr; }
  .studio-keypad-duo > p { grid-column: 1 / -1; grid-row: 2; grid-template-columns: repeat(3, 1fr 1fr); align-items: baseline; }
  .studio-builtins { grid-template-columns: repeat(3, 1fr); }
  .studio-builtins article:nth-child(4) { border-left: 0; }
  .studio-builtins article:nth-child(n + 4) { border-top-width: 1px; }
}

@media (max-width: 760px) {
  body.studioii-page .chapter-hero-copy h1 { max-width: 12ch; font-size: clamp(2.15rem, 10.2vw, 3.5rem); line-height: .94; }
  body.studioii-page .studioii-hero { min-height: 0; }
  .studioii-hero-machine { min-height: 410px; padding: 42px 24px 30px; }
  .studioii-hero-machine figcaption,
  .studio-board-photo figcaption,
  .studio-angle-photo figcaption,
  .studio-wire-photos figcaption { display: block; }
  .studioii-hero-machine figcaption span,
  .studio-board-photo figcaption span,
  .studio-angle-photo figcaption span,
  .studio-wire-photos figcaption span { display: block; margin-top: .45rem; }
  .studio-room-pose,
  .studio-family-chain,
  .studio-keypad-duo,
  .studio-pixel-panel,
  .studio-byte-stack,
  .studio-wire-photos,
  .studio-single-wire,
  .studio-clones { grid-template-columns: 1fr; }
  .studio-room-pose { gap: 18px; }
  .studio-room-pose article,
  .studio-room-pose article:last-child { grid-template-columns: auto 1fr; }
  .studio-room-pose article:last-child i { order: 2; }
  .studio-room-pose article:last-child span { order: 1; }
  .studio-family-chain > b,
  .studio-byte-stack > i,
  .studio-clones > b { justify-self: center; transform: rotate(90deg); }
  .studio-keypad-duo > p { grid-column: auto; grid-row: auto; grid-template-columns: 1fr 1fr; }
  .studio-pixel-field { min-height: 280px; }
  .studio-time-split { grid-template-columns: 1fr; }
  .studio-time-split div { min-height: 190px; }
  .studio-byte-stack > strong { grid-column: 1; }
  .studio-builtins { grid-template-columns: 1fr; }
  .studio-builtins article + article { border-left: 0; border-top: 1px solid var(--s2-line); }
  .studio-builtins article:nth-child(n + 1) { border-top-width: 1px; }
  .studio-builtins article:first-child { border-top-width: 6px; }
  .studio-joyce { grid-template-columns: 1fr; }
  .studio-joyce > div:nth-child(2) { border-left: 0; border-top: 1px solid #55534b; }
  .studio-joyce blockquote { grid-column: 1; }
  .studio-wire-photos figure + figure { border-top: 1px solid #525149; border-left: 0; }
  .studio-single-wire > i { width: 4px; height: 24px; justify-self: center; }
  .studio-single-wire > strong { justify-self: center; }
  .studio-nameplate { grid-template-columns: 1fr; }
  .studio-nameplate span { grid-column: 1; }
}

/* Commodore 64 Games System — Console Outlier B04 */
body.c64gs-page {
  --gs-cream: #eeeae0;
  --gs-shell: #d7d4cb;
  --gs-black: #151719;
  --gs-green: #45b56e;
  --gs-red: #e64c3c;
  --gs-orange: #f18a38;
  --gs-blue: #3b84ba;
  --gs-line: rgba(26,29,30,.2);
}
body.c64gs-page .site-header { position: relative; z-index: 30; }
body.c64gs-page .chapter { background: var(--gs-cream); }
body.c64gs-page .c64gs-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0,1.03fr) minmax(430px,.97fr);
  min-height: 740px;
  background: var(--gs-black);
  color: #fff;
}
body.c64gs-page .c64gs-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 auto 0 0;
  width: 11px;
  pointer-events: none;
  background: linear-gradient(180deg,var(--gs-red) 0 25%,var(--gs-orange) 25% 50%,var(--gs-green) 50% 75%,var(--gs-blue) 75%);
}
body.c64gs-page .chapter-hero-copy { align-self: center; }
body.c64gs-page .chapter-hero-copy .eyebrow { color: #6ed291; }
body.c64gs-page .chapter-hero-copy h1 { max-width: 13ch; color: #fff; font-size: clamp(3rem,5.25vw,5.9rem); line-height: .92; }
body.c64gs-page .chapter-deck { color: #d2d0c8; }
body.c64gs-page .chapter-byline { color: #aaa9a3; border-color: rgba(255,255,255,.22); }
.c64gs-hero-machine {
  position: relative;
  z-index: 0;
  min-width: 0;
  margin: 0;
  padding: 76px 46px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #e4e1d8;
  border-left: 1px solid #575a59;
}
.c64gs-hero-machine img { position: relative; z-index: 1; display: block; width: 100%; height: auto; object-fit: contain; filter: drop-shadow(0 24px 15px rgba(0,0,0,.25)); }
.c64gs-pixels {
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  background-image: linear-gradient(rgba(49,53,53,.09) 1px,transparent 1px),linear-gradient(90deg,rgba(49,53,53,.09) 1px,transparent 1px);
  background-size: 28px 28px;
}
.c64gs-hero-machine figcaption,.c64gs-console-photo figcaption,.c64gs-cartridge-photo figcaption,.c64gs-family-compare figcaption { display: flex; justify-content: space-between; gap: 18px; margin-top: 28px; padding-top: 12px; border-top: 1px solid #aaa9a2; color: #343737; font-size: .73rem; letter-spacing: .1em; text-transform: uppercase; }
.c64gs-hero-machine figcaption b { color: var(--gs-red); }
body.c64gs-page .fact-strip { border-top-color: #505252; background: #2a2c2d; color: #fff; }
body.c64gs-page .fact-strip > div { border-color: #505252; }
body.c64gs-page .fact-strip small { color: #b9b7b0; }
body.c64gs-page .fact-strip strong { color: #fff; }
body.c64gs-page .section-number { color: #a6312a; }
body.c64gs-page .chapter-section { border-color: var(--gs-line); }
.c64gs-boot-pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: stretch; margin: 38px 0; }
.c64gs-boot-pair article { min-width: 0; padding: 28px; border: 7px solid #756ead; background: #393174; color: #a7a0dc; font-family: "Courier New",monospace; }
.c64gs-boot-pair article:last-child { border-color: #414544; background: #151719; color: #fff; }
.c64gs-boot-pair small,.c64gs-boot-pair strong,.c64gs-boot-pair span { display: block; }
.c64gs-boot-pair small { margin-bottom: 30px; color: inherit; font-size: .68rem; letter-spacing: .1em; }
.c64gs-boot-pair strong { min-height: 2.2em; color: inherit; font-size: clamp(1.35rem,3vw,2.15rem); overflow-wrap: anywhere; }
.c64gs-boot-pair strong i { display: inline-block; width: .65em; height: 1em; margin-left: .12em; vertical-align: -.12em; background: currentColor; animation: gs-blink 1s steps(1,end) infinite; }
.c64gs-boot-pair span { margin-top: 18px; font: .72rem/1.4 Inter,Arial,sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.c64gs-boot-pair > b { align-self: center; color: var(--gs-red); font-size: 2rem; }
@keyframes gs-blink { 50% { opacity: 0; } }
.c64gs-subtraction { display: grid; grid-template-columns: 1fr auto 1fr auto 1.3fr; gap: 10px; align-items: center; margin: 36px 0; padding: 26px; background: #242728; color: #fff; }
.c64gs-subtraction span { padding: 16px 10px; border: 1px solid #585b5b; text-align: center; font-size: .76rem; font-weight: 800; letter-spacing: .1em; }
.c64gs-subtraction i { color: var(--gs-red); font-style: normal; font-size: 1.8rem; }
.c64gs-subtraction strong { grid-column: 1 / -1; padding-top: 8px; text-align: center; color: #73d497; font-size: clamp(1.4rem,3vw,2.2rem); }
.c64gs-console-photo,.c64gs-cartridge-photo { margin: 40px 0; padding: 34px; background: var(--gs-shell); }
.c64gs-console-photo img,.c64gs-cartridge-photo img { display: block; width: 100%; height: auto; object-fit: contain; }
.c64gs-family-compare { display: grid; grid-template-columns: 1fr 120px 1fr; gap: 0; margin: 40px 0; background: #d8d5cc; }
.c64gs-family-compare figure { min-width: 0; margin: 0; padding: 24px; }
.c64gs-family-compare img { display: block; width: 100%; height: 260px; object-fit: contain; }
.c64gs-family-compare > div { display: flex; flex-direction: column; justify-content: center; gap: 10px; background: #222526; color: #fff; }
.c64gs-family-compare > div strong { padding: 12px 6px; border-top: 1px solid #505353; text-align: center; font-size: .8rem; letter-spacing: .08em; }
.c64gs-family-compare > div strong:first-child { border-top: 0; }
.c64gs-family-compare figcaption { display: block; }
.c64gs-family-compare figcaption span { display: block; margin-top: .4rem; }
.c64gs-port-map { display: grid; grid-template-columns: 1fr 1fr; margin: 38px 0; border: 1px solid #b9b7af; }
.c64gs-port-map article { display: grid; grid-template-columns: repeat(2,1fr); }
.c64gs-port-map article + article { border-left: 1px solid #b9b7af; background: #dedbd2; }
.c64gs-port-map small { grid-column: 1 / -1; padding: 17px 20px; background: #252829; color: #fff; letter-spacing: .13em; }
.c64gs-port-map span,.c64gs-port-map del { padding: 19px; border-top: 1px solid #c8c6bd; font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-align: center; }
.c64gs-port-map span:nth-of-type(even),.c64gs-port-map del:nth-of-type(even) { border-left: 1px solid #c8c6bd; }
.c64gs-port-map del { color: #8d4b45; text-decoration-thickness: 2px; }
.c64gs-cartridge-photo { background: #232627; }
.c64gs-cartridge-photo img { max-height: 580px; }
.c64gs-cartridge-photo figcaption { color: #deddd6; border-color: #545757; }
.c64gs-cartridge-photo figcaption b { color: #6bd08f; }
.c64gs-banks { display: grid; grid-template-columns: 150px auto 1fr; align-items: center; gap: 18px; margin: 38px 0; }
.c64gs-banks > span { padding: 24px; background: #252829; color: #fff; text-align: center; font-size: .7rem; letter-spacing: .1em; }
.c64gs-banks span b { display: block; margin-top: 8px; color: #6ed291; font-size: 1.8rem; letter-spacing: 0; }
.c64gs-banks > i { color: var(--gs-orange); font-style: normal; font-size: 2rem; }
.c64gs-banks > div { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid #bbb9b0; }
.c64gs-banks small { padding: 24px 8px; border-left: 1px solid #bbb9b0; text-align: center; }
.c64gs-banks small:first-child { border-left: 0; }
.c64gs-game-cards { display: grid; grid-template-columns: repeat(4,1fr); margin: 38px 0; border: 1px solid #bdbbb2; }
.c64gs-game-cards article { min-width: 0; padding: 24px; border-top: 7px solid var(--gs-red); }
.c64gs-game-cards article + article { border-left: 1px solid #bdbbb2; }
.c64gs-game-cards article:nth-child(2) { border-top-color: var(--gs-orange); }
.c64gs-game-cards article:nth-child(3) { border-top-color: var(--gs-green); }
.c64gs-game-cards article:nth-child(4) { border-top-color: var(--gs-blue); }
.c64gs-game-cards article > span { color: #8a8b85; font-size: .65rem; letter-spacing: .13em; }
.c64gs-game-cards h3 { margin: 20px 0 12px; font-size: clamp(1.05rem,1.8vw,1.45rem); overflow-wrap: anywhere; }
.c64gs-game-cards p { margin: 0; font-size: .86rem; }
.c64gs-key-test { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 0; align-items: stretch; margin: 38px 0; background: #dedbd2; }
.c64gs-key-test span,.c64gs-key-test strong { display: flex; align-items: center; justify-content: center; padding: 25px 14px; text-align: center; font-size: .75rem; letter-spacing: .08em; }
.c64gs-key-test i { align-self: center; padding: 0 12px; color: var(--gs-green); font-style: normal; font-size: 1.7rem; }
.c64gs-key-test i:nth-of-type(2) { color: var(--gs-red); }
.c64gs-key-test strong { background: #252829; color: #fff; }
.c64gs-controller-layout { display: grid; grid-template-columns: minmax(220px,.72fr) 1.28fr; margin: 38px 0; background: #222526; color: #fff; }
.c64gs-controller-layout figure { display: flex; align-items: center; justify-content: center; min-width: 0; margin: 0; padding: 28px; background: #dedbd2; }
.c64gs-controller-layout img { display: block; width: 100%; max-height: 500px; height: auto; object-fit: contain; }
.c64gs-controller-layout > div { display: grid; grid-template-columns: 1fr 1fr; }
.c64gs-controller-layout span { display: flex; flex-direction: column; justify-content: flex-end; min-height: 175px; padding: 25px; border: solid #505353; border-width: 0 0 1px 1px; color: #bdbeb8; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.c64gs-controller-layout span b { margin-bottom: 8px; color: #fff; font-size: clamp(1.5rem,3.5vw,2.8rem); letter-spacing: 0; }
.c64gs-market-flow { display: grid; grid-template-columns: 1.2fr auto 1fr auto 1fr; align-items: center; gap: 12px; margin: 38px 0; }
.c64gs-market-flow span,.c64gs-market-flow strong { padding: 22px 12px; border: 1px solid #b9b7ae; text-align: center; font-size: .75rem; letter-spacing: .08em; }
.c64gs-market-flow span { background: #242728; color: #fff; }
.c64gs-market-flow i { color: var(--gs-green); font-style: normal; font-size: 1.8rem; }
.c64gs-market-flow b { color: var(--gs-orange); font-size: 1.5rem; }
.c64gs-choice-grid { display: grid; grid-template-columns: repeat(3,1fr); margin: 38px 0; border: 1px solid #bdbbb2; }
.c64gs-choice-grid article { min-width: 0; padding: 26px; border-top: 7px solid var(--gs-red); }
.c64gs-choice-grid article + article { border-left: 1px solid #bdbbb2; }
.c64gs-choice-grid article:nth-child(2) { border-top-color: var(--gs-green); }
.c64gs-choice-grid article:nth-child(3) { border-top-color: var(--gs-blue); }
.c64gs-choice-grid small,.c64gs-choice-grid strong,.c64gs-choice-grid span { display: block; }
.c64gs-choice-grid small { color: #777873; letter-spacing: .12em; }
.c64gs-choice-grid strong { margin: 16px 0; font-size: clamp(1.25rem,2.3vw,1.8rem); overflow-wrap: anywhere; }
.c64gs-choice-grid span { line-height: 1.65; }
.c64gs-verdict { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 22px; margin: 40px 0; padding: 30px; background: #242728; color: #fff; }
.c64gs-verdict span { text-align: center; color: #bbbcb7; font-size: .72rem; letter-spacing: .13em; }
.c64gs-verdict span b { display: block; margin-top: 7px; color: #fff; font-size: clamp(1.4rem,3.5vw,2.5rem); letter-spacing: 0; }
.c64gs-verdict strong { color: var(--gs-red); font-size: 2.3rem; }
body.c64gs-page .c64gs-timeline { background: #202324; color: #fff; }
body.c64gs-page .c64gs-timeline h2,body.c64gs-page .c64gs-timeline h3 { color: #fff; }
body.c64gs-page .c64gs-timeline time { color: #6dd291; }
body.c64gs-page .c64gs-timeline .fast-timeline-heading > p:last-child,body.c64gs-page .c64gs-timeline li p { color: #c7c7c1; }
body.c64gs-page .c64gs-timeline li,body.c64gs-page .c64gs-timeline li + li,body.c64gs-page .c64gs-timeline li:nth-child(2n + 1):not(:first-child),body.c64gs-page .c64gs-timeline li:nth-child(3n + 1):not(:first-child),body.c64gs-page .c64gs-timeline li:nth-child(n + 4) { border-color: rgba(69,181,110,.25); background: #313536; }
body.c64gs-page .c64gs-related { background: #353938; color: #fff; }
body.c64gs-page .c64gs-related h2,body.c64gs-page .c64gs-related p { color: #fff; }
body.c64gs-page .c64gs-related .section-number { color: #78d79a; }
body.c64gs-page .c64gs-related a { background: var(--gs-red); color: #fff; }
body.c64gs-page .c64gs-sources { background: #dedbd2; }
body.c64gs-page .chapter-sources > div > ul { margin-top: 26px; }
body.c64gs-page .chapter-sources > div > ul li { margin: 0; }
body.c64gs-page .chapter-sources > div > ul li a { position: relative; display: block; padding: 9px 34px 9px 0; line-height: 1.4; }
body.c64gs-page .chapter-sources > div > ul li a em { display: inline; }
body.c64gs-page .chapter-sources > div > ul li a::after { position: absolute; top: 50%; right: 0; transform: translateY(-50%); }
body.c64gs-page .chapter-sources .credits-heading { margin: 32px 0 10px; }
body.c64gs-page .chapter-sources .image-credit-list { margin: 0; line-height: 1.45; }
body.c64gs-page .chapter-sources .image-credit-list a { display: inline; padding: 0; }
body.c64gs-page .pagination-placeholder { min-height: 1px; }

@media (prefers-reduced-motion: reduce) { .c64gs-boot-pair strong i { animation: none; } }

@media (max-width: 1000px) {
  body.c64gs-page .c64gs-hero { grid-template-columns: 1fr; }
  .c64gs-hero-machine { min-height: 520px; border-top: 1px solid #575a59; border-left: 0; }
  .c64gs-game-cards { grid-template-columns: 1fr 1fr; }
  .c64gs-game-cards article:nth-child(3) { border-left: 0; }
}

@media (max-width: 760px) {
  body.c64gs-page .chapter-hero-copy h1 { max-width: 12.5ch; font-size: clamp(2rem,9.5vw,3.35rem); }
  .c64gs-hero-machine { min-height: 350px; padding: 42px 22px 26px; }
  .c64gs-hero-machine figcaption,.c64gs-console-photo figcaption,.c64gs-cartridge-photo figcaption { display: block; }
  .c64gs-hero-machine figcaption span,.c64gs-console-photo figcaption span,.c64gs-cartridge-photo figcaption span { display: block; margin-top: .45rem; }
  .c64gs-boot-pair,.c64gs-family-compare,.c64gs-port-map,.c64gs-banks,.c64gs-key-test,.c64gs-controller-layout,.c64gs-market-flow,.c64gs-choice-grid,.c64gs-verdict { grid-template-columns: 1fr; }
  .c64gs-boot-pair > b,.c64gs-market-flow i,.c64gs-market-flow b,.c64gs-verdict strong { justify-self: center; transform: rotate(90deg); }
  .c64gs-subtraction { grid-template-columns: 1fr; text-align: center; }
  .c64gs-subtraction i { justify-self: center; }
  .c64gs-subtraction span:nth-of-type(3),.c64gs-subtraction strong { grid-column: auto; }
  .c64gs-family-compare > div { flex-direction: row; padding: 8px; }
  .c64gs-family-compare > div strong { flex: 1; border-top: 0; border-left: 1px solid #505353; }
  .c64gs-family-compare > div strong:first-child { border-left: 0; }
  .c64gs-port-map article + article { border-top: 1px solid #b9b7af; border-left: 0; }
  .c64gs-banks > i { justify-self: center; transform: rotate(90deg); }
  .c64gs-banks > div { grid-template-columns: 1fr 1fr; }
  .c64gs-banks small:nth-child(3) { border-top: 1px solid #bbb9b0; border-left: 0; }
  .c64gs-banks small:nth-child(4) { border-top: 1px solid #bbb9b0; }
  .c64gs-game-cards { grid-template-columns: 1fr; }
  .c64gs-game-cards article + article { border-left: 0; }
  .c64gs-controller-layout > div { grid-template-columns: 1fr 1fr; }
  .c64gs-controller-layout span { min-height: 130px; padding: 18px; }
  .c64gs-choice-grid article + article { border-left: 0; }
  .c64gs-console-photo,.c64gs-cartridge-photo { padding: 20px; }
}

/* Amstrad GX4000 — Console Outlier B05 */
body.gx4000-page {
  --gx-paper: #f0eee8;
  --gx-shell: #dedfdc;
  --gx-ink: #171b23;
  --gx-magenta: #d81f68;
  --gx-cyan: #168ec0;
  --gx-yellow: #e4b525;
  --gx-green: #54a84f;
  --gx-line: rgba(23,27,35,.2);
}
body.gx4000-page .site-header { position: relative; z-index: 30; }
body.gx4000-page .chapter { background: var(--gx-paper); }
body.gx4000-page .gx4000-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0,1.02fr) minmax(440px,.98fr);
  min-height: 740px;
  background: var(--gx-ink);
  color: #fff;
}
body.gx4000-page .gx4000-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 10px;
  pointer-events: none;
  background: linear-gradient(90deg,var(--gx-magenta) 0 25%,var(--gx-cyan) 25% 50%,var(--gx-yellow) 50% 75%,var(--gx-green) 75%);
}
body.gx4000-page .chapter-hero-copy { align-self: center; }
body.gx4000-page .chapter-hero-copy .eyebrow { color: #f06b9d; }
body.gx4000-page .chapter-hero-copy h1 { max-width: 12ch; color: #fff; font-size: clamp(3.1rem,5.45vw,6rem); line-height: .91; }
body.gx4000-page .chapter-deck { color: #d4d5d7; }
body.gx4000-page .chapter-byline { color: #b1b3b7; border-color: rgba(255,255,255,.22); }
.gx4000-hero-machine {
  position: relative;
  z-index: 0;
  min-width: 0;
  margin: 0;
  padding: 76px 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: #e5e4df;
  border-left: 1px solid #555a62;
}
.gx4000-spectrum {
  position: absolute;
  z-index: 0;
  width: 540px;
  height: 540px;
  right: -180px;
  top: -170px;
  border-radius: 50%;
  pointer-events: none;
  opacity: .32;
  background: conic-gradient(var(--gx-magenta),var(--gx-yellow),var(--gx-green),var(--gx-cyan),var(--gx-magenta));
  filter: blur(2px);
}
.gx4000-hero-machine img { position: relative; z-index: 1; display: block; width: 100%; height: auto; object-fit: contain; filter: drop-shadow(0 26px 18px rgba(25,29,36,.25)); }
.gx4000-hero-machine figcaption,.gx4000-console-photo figcaption,.gx4000-photo-pair figcaption { display: flex; justify-content: space-between; gap: 18px; margin-top: 28px; padding-top: 12px; border-top: 1px solid #a9aaa7; color: #333943; font-size: .73rem; letter-spacing: .1em; text-transform: uppercase; }
.gx4000-hero-machine figcaption b { color: var(--gx-magenta); }
body.gx4000-page .fact-strip { border-top-color: #4a4e56; background: #272c35; color: #fff; }
body.gx4000-page .fact-strip > div { border-color: #4a4e56; }
body.gx4000-page .fact-strip small { color: #b3b8c0; }
body.gx4000-page .fact-strip strong { color: #fff; }
body.gx4000-page .section-number { color: #b51b58; }
body.gx4000-page .chapter-section { border-color: var(--gx-line); }

.gx4000-shelf-line,.gx4000-core,.gx4000-medium-flow,.gx4000-market-axis,.gx4000-verdict { display: grid; align-items: center; gap: 18px; margin: 38px 0; padding: 28px; background: #242a33; color: #fff; }
.gx4000-shelf-line { grid-template-columns: 1fr auto 1.1fr auto 1fr; }
.gx4000-shelf-line span,.gx4000-core span,.gx4000-medium-flow span,.gx4000-market-axis span,.gx4000-verdict span { text-align: center; color: #b9bec6; font-size: .7rem; letter-spacing: .12em; }
.gx4000-shelf-line span b,.gx4000-core span b,.gx4000-medium-flow span b,.gx4000-market-axis span b,.gx4000-verdict span b { display: block; margin-top: 8px; color: #fff; font-size: clamp(.9rem,2vw,1.35rem); letter-spacing: .02em; }
.gx4000-shelf-line i,.gx4000-core i,.gx4000-medium-flow i,.gx4000-verdict i { color: var(--gx-magenta); font-style: normal; font-size: 1.8rem; text-align: center; }
.gx4000-shelf-line strong,.gx4000-core strong,.gx4000-market-axis strong { padding: 22px 12px; border: 1px solid #59606b; color: #fff; text-align: center; font-size: clamp(1.2rem,2.4vw,2rem); }

.gx4000-family { display: grid; grid-template-columns: repeat(3,1fr); margin: 38px 0; border: 1px solid #bfc0bc; }
.gx4000-family article { min-width: 0; padding: 26px; border-top: 8px solid var(--gx-cyan); }
.gx4000-family article + article { border-left: 1px solid #bfc0bc; }
.gx4000-family article:nth-child(2) { border-top-color: var(--gx-yellow); }
.gx4000-family article:nth-child(3) { border-top-color: var(--gx-magenta); background: #fff; }
.gx4000-family small,.gx4000-family b,.gx4000-family span { display: block; }
.gx4000-family small { color: #73777d; font-size: .7rem; letter-spacing: .12em; }
.gx4000-family b { margin: 22px 0 10px; color: var(--gx-ink); font-size: clamp(1.35rem,2.5vw,2rem); }
.gx4000-family span { color: #5f646a; font-size: .86rem; }

.gx4000-feature-grid { display: grid; grid-template-columns: repeat(4,1fr); margin: 38px 0; border: 1px solid #bfc0bc; background: #fff; }
.gx4000-feature-grid article { min-width: 0; padding: 27px 18px; border-top: 8px solid var(--gx-magenta); }
.gx4000-feature-grid article + article { border-left: 1px solid #bfc0bc; }
.gx4000-feature-grid article:nth-child(2) { border-top-color: var(--gx-cyan); }
.gx4000-feature-grid article:nth-child(3) { border-top-color: var(--gx-yellow); }
.gx4000-feature-grid article:nth-child(4) { border-top-color: var(--gx-green); }
.gx4000-feature-grid strong,.gx4000-feature-grid span { display: block; }
.gx4000-feature-grid strong { color: var(--gx-ink); font-size: clamp(1.8rem,3.7vw,3rem); letter-spacing: -.05em; }
.gx4000-feature-grid span { margin-top: 12px; color: #686c71; font-size: .76rem; letter-spacing: .06em; }
.gx4000-core { grid-template-columns: 1fr auto 1.2fr auto 1fr; }
.gx4000-medium-flow { grid-template-columns: 1fr auto 1fr auto 1fr; }

.gx4000-road { position: relative; min-height: 270px; margin: 38px 0; overflow: hidden; display: grid; grid-template-columns: auto repeat(3,1fr) auto; align-items: end; gap: 0; padding: 30px; background: linear-gradient(#91cce1 0 42%,#d3bd68 42% 52%,#30343a 52%); color: #fff; }
.gx4000-road::before,.gx4000-road::after { content: ""; position: absolute; left: 50%; bottom: -80px; width: 13px; height: 220px; transform-origin: bottom; background: #f3f1db; }
.gx4000-road::before { transform: rotate(-22deg); }
.gx4000-road::after { transform: rotate(22deg); }
.gx4000-road span,.gx4000-road strong { position: relative; z-index: 1; padding: 12px; background: var(--gx-magenta); font-size: .78rem; letter-spacing: .12em; text-align: center; }
.gx4000-road strong { background: var(--gx-ink); }

.gx4000-conversion { display: grid; grid-template-columns: 1fr 1fr; margin: 38px 0; border: 1px solid #bfc0bc; }
.gx4000-conversion article { min-width: 0; padding: 30px; border-top: 8px solid var(--gx-yellow); }
.gx4000-conversion article + article { border-left: 1px solid #bfc0bc; border-top-color: var(--gx-magenta); background: #fff; }
.gx4000-conversion small,.gx4000-conversion strong,.gx4000-conversion span { display: block; }
.gx4000-conversion small { color: #74777b; letter-spacing: .12em; }
.gx4000-conversion strong { margin: 18px 0; font-size: clamp(1.5rem,3vw,2.3rem); }
.gx4000-conversion span { color: #666a70; line-height: 1.6; }

.gx4000-photo-pair { display: grid; grid-template-columns: 1fr 1.15fr; gap: 1px; margin: 40px 0; background: #aeb0ae; }
.gx4000-photo-pair figure { min-width: 0; margin: 0; display: flex; flex-direction: column; justify-content: center; padding: 28px; background: #e4e4df; }
.gx4000-photo-pair img { display: block; width: 100%; height: 310px; object-fit: contain; }
.gx4000-photo-pair figcaption { display: block; }
.gx4000-photo-pair figcaption span { display: block; margin-top: .4rem; }

.gx4000-price { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: stretch; margin: 38px 0; }
.gx4000-price article { padding: 28px; border: 1px solid #bfc0bc; border-top: 8px solid var(--gx-green); background: #fff; }
.gx4000-price article:last-child { border-top-color: var(--gx-magenta); }
.gx4000-price small,.gx4000-price strong,.gx4000-price span { display: block; }
.gx4000-price small { color: #72767b; letter-spacing: .12em; }
.gx4000-price strong { margin: 19px 0; color: var(--gx-ink); font-size: clamp(1.6rem,3.2vw,2.5rem); }
.gx4000-price span { color: #656a70; }
.gx4000-price > b { align-self: center; color: var(--gx-magenta); font-size: .7rem; letter-spacing: .1em; }
.gx4000-market-axis { grid-template-columns: 1fr .8fr 1fr; }
.gx4000-market-axis strong { border-color: var(--gx-magenta); color: #fff; }
.gx4000-verdict { grid-template-columns: 1fr auto 1fr; }
.gx4000-verdict span b { font-size: clamp(1.35rem,3.2vw,2.3rem); }
.gx4000-console-photo { margin: 42px 0 0; padding: 34px; background: var(--gx-shell); }
.gx4000-console-photo img { display: block; width: 100%; height: auto; max-height: 590px; object-fit: contain; }
body.gx4000-page .gx4000-timeline { background: #222832; color: #fff; }
body.gx4000-page .gx4000-timeline h2,body.gx4000-page .gx4000-timeline h3 { color: #fff; }
body.gx4000-page .gx4000-timeline time { color: #ef6799; }
body.gx4000-page .gx4000-timeline .fast-timeline-heading > p:last-child,body.gx4000-page .gx4000-timeline li p { color: #c6c9cd; }
body.gx4000-page .gx4000-timeline li,body.gx4000-page .gx4000-timeline li + li,body.gx4000-page .gx4000-timeline li:nth-child(2n + 1):not(:first-child),body.gx4000-page .gx4000-timeline li:nth-child(3n + 1):not(:first-child),body.gx4000-page .gx4000-timeline li:nth-child(n + 4) { border-color: rgba(216,31,104,.28); background: #303742; }
body.gx4000-page .gx4000-related { background: #d7d8d5; color: var(--gx-ink); }
body.gx4000-page .gx4000-related h2,body.gx4000-page .gx4000-related p { color: var(--gx-ink); }
body.gx4000-page .gx4000-related a { background: var(--gx-magenta); color: #fff; }
body.gx4000-page .gx4000-sources { background: #e1e0db; }
body.gx4000-page .chapter-sources > div > ul { margin-top: 26px; }
body.gx4000-page .chapter-sources > div > ul li { margin: 0; }
body.gx4000-page .chapter-sources > div > ul li a { position: relative; display: block; padding: 9px 34px 9px 0; line-height: 1.4; }
body.gx4000-page .chapter-sources > div > ul li a em { display: inline; }
body.gx4000-page .chapter-sources > div > ul li a::after { position: absolute; top: 50%; right: 0; transform: translateY(-50%); }
body.gx4000-page .chapter-sources .credits-heading { margin: 32px 0 10px; }
body.gx4000-page .chapter-sources .image-credit-list { margin: 0; line-height: 1.45; }
body.gx4000-page .chapter-sources .image-credit-list a { display: inline; padding: 0; }
body.gx4000-page .pagination-placeholder { min-height: 1px; }

@media (max-width: 1000px) {
  body.gx4000-page .gx4000-hero { grid-template-columns: 1fr; }
  .gx4000-hero-machine { min-height: 510px; border-top: 1px solid #555a62; border-left: 0; }
  .gx4000-feature-grid { grid-template-columns: 1fr 1fr; }
  .gx4000-feature-grid article:nth-child(3) { border-left: 0; }
}

@media (max-width: 760px) {
  body.gx4000-page .chapter-hero-copy h1 { max-width: 12ch; font-size: clamp(2.15rem,10vw,3.4rem); }
  .gx4000-hero-machine { min-height: 340px; padding: 42px 22px 26px; }
  .gx4000-hero-machine figcaption,.gx4000-console-photo figcaption { display: block; }
  .gx4000-hero-machine figcaption span,.gx4000-console-photo figcaption span { display: block; margin-top: .45rem; }
  .gx4000-shelf-line,.gx4000-core,.gx4000-medium-flow,.gx4000-family,.gx4000-feature-grid,.gx4000-conversion,.gx4000-photo-pair,.gx4000-price,.gx4000-market-axis,.gx4000-verdict { grid-template-columns: 1fr; }
  .gx4000-shelf-line i,.gx4000-core i,.gx4000-medium-flow i,.gx4000-verdict i,.gx4000-price > b { justify-self: center; transform: rotate(90deg); }
  .gx4000-family article + article,.gx4000-feature-grid article + article,.gx4000-conversion article + article { border-left: 0; }
  .gx4000-feature-grid article:nth-child(3) { border-left: 0; }
  .gx4000-road { min-height: 230px; padding: 22px; }
  .gx4000-photo-pair img { height: 250px; }
  .gx4000-console-photo { padding: 20px; }
}

/* Atari XEGS — Console Outlier B06 */
body.xegs-page {
  --xe-paper: #efede5;
  --xe-shell: #d8d4c4;
  --xe-ink: #17191a;
  --xe-blue: #b7d8df;
  --xe-yellow: #eadc8e;
  --xe-pink: #e9b4ac;
  --xe-lilac: #cfc0d9;
  --xe-red: #b33c32;
  --xe-line: rgba(23,25,26,.2);
}
body.xegs-page .site-header { position: relative; z-index: 30; }
body.xegs-page .chapter { background: var(--xe-paper); }
body.xegs-page .xegs-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0,1.04fr) minmax(440px,.96fr);
  min-height: 750px;
  background: var(--xe-ink);
  color: #fff;
}
body.xegs-page .xegs-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 10px;
  pointer-events: none;
  background: linear-gradient(90deg,var(--xe-blue) 0 25%,var(--xe-yellow) 25% 50%,var(--xe-pink) 50% 75%,var(--xe-lilac) 75%);
}
body.xegs-page .chapter-hero-copy { align-self: center; }
body.xegs-page .chapter-hero-copy .eyebrow { color: var(--xe-yellow); }
body.xegs-page .chapter-hero-copy h1 { max-width: 12ch; color: #fff; font-size: clamp(3rem,5.2vw,5.8rem); line-height: .91; }
body.xegs-page .chapter-deck { color: #d3d1ca; }
body.xegs-page .chapter-byline { color: #aaa9a3; border-color: rgba(255,255,255,.22); }
.xegs-hero-machine {
  position: relative;
  z-index: 0;
  min-width: 0;
  margin: 0;
  padding: 76px 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: #d9d6c8;
  border-left: 1px solid #55534e;
}
.xegs-soft-keys { position: absolute; z-index: 0; inset: 0; pointer-events: none; opacity: .42; background: radial-gradient(circle at 16% 20%,var(--xe-blue) 0 46px,transparent 47px),radial-gradient(circle at 38% 20%,var(--xe-yellow) 0 46px,transparent 47px),radial-gradient(circle at 60% 20%,var(--xe-pink) 0 46px,transparent 47px),radial-gradient(circle at 82% 20%,var(--xe-lilac) 0 46px,transparent 47px); }
.xegs-hero-machine img { position: relative; z-index: 1; display: block; width: 100%; height: auto; object-fit: contain; filter: drop-shadow(0 26px 18px rgba(0,0,0,.28)); }
.xegs-hero-machine figcaption,.xegs-keyboard-pair figcaption,.xegs-ports-photo figcaption { display: flex; justify-content: space-between; gap: 18px; margin-top: 28px; padding-top: 12px; border-top: 1px solid #9e9b91; color: #333432; font-size: .73rem; letter-spacing: .1em; text-transform: uppercase; }
.xegs-hero-machine figcaption b { color: var(--xe-red); }
body.xegs-page .fact-strip { border-top-color: #454746; background: #282a2a; color: #fff; }
body.xegs-page .fact-strip > div { border-color: #454746; }
body.xegs-page .fact-strip small { color: #b8b6ae; }
body.xegs-page .fact-strip strong { color: #fff; }
body.xegs-page .section-number { color: #96362f; }
body.xegs-page .chapter-section { border-color: var(--xe-line); }

.xegs-boot-fork { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: stretch; margin: 38px 0; }
.xegs-boot-fork article { min-width: 0; padding: 28px; border-top: 9px solid var(--xe-blue); background: #262929; color: #fff; font-family: "Courier New",ui-monospace,monospace; }
.xegs-boot-fork article:last-child { border-top-color: var(--xe-pink); }
.xegs-boot-fork small,.xegs-boot-fork strong,.xegs-boot-fork span { display: block; }
.xegs-boot-fork small { color: #afafa9; font-size: .68rem; letter-spacing: .12em; }
.xegs-boot-fork strong { min-height: 2.2em; margin: 28px 0 18px; color: #fff; font-size: clamp(1.3rem,2.7vw,2rem); overflow-wrap: anywhere; }
.xegs-boot-fork span { color: #c9c7c0; font: .72rem/1.4 Inter,Arial,sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.xegs-boot-fork > b { align-self: center; color: var(--xe-red); font-size: .75rem; letter-spacing: .14em; }

.xegs-family-line { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1.1fr; gap: 10px; align-items: stretch; margin: 38px 0; }
.xegs-family-line span,.xegs-family-line strong { padding: 24px 10px; border: 1px solid #bab7ad; text-align: center; color: #77746e; font-size: .7rem; letter-spacing: .11em; }
.xegs-family-line span b,.xegs-family-line strong { color: var(--xe-ink); font-size: clamp(1.05rem,2.4vw,1.65rem); letter-spacing: 0; }
.xegs-family-line span b { display: block; margin-top: 8px; }
.xegs-family-line strong { border-top: 8px solid var(--xe-pink); background: #fff; }
.xegs-family-line i { align-self: center; color: var(--xe-red); font-style: normal; font-size: 1.4rem; }

.xegs-keyboard-pair { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1px; margin: 40px 0; background: #aaa79c; }
.xegs-keyboard-pair figure { min-width: 0; margin: 0; padding: 28px; display: flex; flex-direction: column; justify-content: center; background: #dedbd0; }
.xegs-keyboard-pair img { display: block; width: 100%; height: 360px; object-fit: contain; }
.xegs-keyboard-pair figure:last-child { background: #f6f4ed; }
.xegs-keyboard-pair figcaption { display: block; }
.xegs-keyboard-pair figcaption span { display: block; margin-top: .45rem; }

.xegs-chip-grid { display: grid; grid-template-columns: repeat(4,1fr); margin: 38px 0; border: 1px solid #bbb8ae; }
.xegs-chip-grid article { min-width: 0; padding: 26px 20px; border-top: 8px solid var(--xe-blue); }
.xegs-chip-grid article + article { border-left: 1px solid #bbb8ae; }
.xegs-chip-grid article:nth-child(2) { border-top-color: var(--xe-yellow); }
.xegs-chip-grid article:nth-child(3) { border-top-color: var(--xe-pink); }
.xegs-chip-grid article:nth-child(4) { border-top-color: var(--xe-lilac); }
.xegs-chip-grid strong,.xegs-chip-grid span { display: block; }
.xegs-chip-grid strong { color: var(--xe-ink); font-size: clamp(1.25rem,2.5vw,1.9rem); }
.xegs-chip-grid span { margin-top: 16px; color: #66645f; font-size: .78rem; line-height: 1.5; }

.xegs-ports-photo { margin: 40px 0; padding: 30px; background: #d6d2c5; }
.xegs-ports-photo img { display: block; width: 100%; height: auto; object-fit: contain; }
.xegs-sio-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 12px; align-items: center; margin: 38px 0; }
.xegs-sio-flow span { padding: 22px 10px; border: 1px solid #b7b4aa; background: #fff; text-align: center; font-size: .72rem; font-weight: 800; letter-spacing: .09em; }
.xegs-sio-flow i { color: var(--xe-red); font-style: normal; font-size: 1.4rem; }

.xegs-library-scale { display: grid; grid-template-columns: auto repeat(7,1fr) auto; gap: 0; align-items: center; margin: 38px 0; padding: 25px; background: #262929; color: #fff; }
.xegs-library-scale span,.xegs-library-scale strong { padding: 12px; background: #444746; font-size: .72rem; letter-spacing: .1em; }
.xegs-library-scale strong { background: var(--xe-red); }
.xegs-library-scale i { height: 5px; background: var(--xe-blue); }
.xegs-library-scale i:nth-of-type(2n) { background: var(--xe-yellow); }
.xegs-library-scale i:nth-of-type(3n) { background: var(--xe-pink); }

.xegs-missile-field { position: relative; min-height: 310px; margin: 38px 0; overflow: hidden; background: #111516; border-bottom: 34px solid #6b4e33; }
.xegs-missile-field span { position: absolute; bottom: 0; width: 72px; height: 28px; border-radius: 60px 60px 0 0; background: var(--xe-blue); }
.xegs-missile-field span:nth-child(1) { left: 12%; }
.xegs-missile-field span:nth-child(2) { left: calc(50% - 36px); background: var(--xe-yellow); }
.xegs-missile-field span:nth-child(3) { right: 12%; background: var(--xe-pink); }
.xegs-missile-field i { position: absolute; top: -10px; width: 2px; height: 230px; transform-origin: top; background: #f5f1db; }
.xegs-missile-field i:nth-of-type(1) { left: 20%; transform: rotate(-27deg); }
.xegs-missile-field i:nth-of-type(2) { left: 50%; transform: rotate(11deg); }
.xegs-missile-field i:nth-of-type(3) { right: 20%; transform: rotate(30deg); }
.xegs-missile-field b { position: absolute; right: 22px; top: 22px; color: #fff; font-size: .76rem; letter-spacing: .13em; }

.xegs-bundle-grid { display: grid; grid-template-columns: repeat(3,1fr); margin: 38px 0; border: 1px solid #bbb8ae; }
.xegs-bundle-grid article { min-width: 0; padding: 27px; border-top: 8px solid var(--xe-blue); }
.xegs-bundle-grid article + article { border-left: 1px solid #bbb8ae; }
.xegs-bundle-grid article:nth-child(2) { border-top-color: var(--xe-pink); }
.xegs-bundle-grid article:nth-child(3) { border-top-color: var(--xe-lilac); }
.xegs-bundle-grid small,.xegs-bundle-grid strong,.xegs-bundle-grid span { display: block; }
.xegs-bundle-grid small { color: #79766e; letter-spacing: .12em; }
.xegs-bundle-grid strong { min-height: 2.3em; margin: 18px 0; font-size: clamp(1.15rem,2.2vw,1.7rem); overflow-wrap: anywhere; }
.xegs-bundle-grid span { color: #65635e; }

.xegs-button-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin: 40px 0; padding: 34px; background: #d0ccbf; }
.xegs-button-row span { aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: var(--xe-blue); box-shadow: inset 0 -8px 0 rgba(0,0,0,.1),0 12px 18px rgba(0,0,0,.1); color: #333532; font-size: .68rem; font-weight: 800; letter-spacing: .08em; }
.xegs-button-row span:nth-child(2) { background: var(--xe-yellow); }
.xegs-button-row span:nth-child(3) { background: var(--xe-pink); }
.xegs-button-row span:nth-child(4) { background: var(--xe-lilac); }

.xegs-atari-map { display: grid; grid-template-columns: repeat(4,1fr); margin: 38px 0; border: 1px solid #bbb8ae; }
.xegs-atari-map article { min-width: 0; padding: 25px 18px; border-top: 8px solid #9fa19d; }
.xegs-atari-map article + article { border-left: 1px solid #bbb8ae; }
.xegs-atari-map article:nth-child(2) { border-top-color: var(--xe-yellow); }
.xegs-atari-map article:nth-child(3) { border-top-color: var(--xe-pink); background: #fff; }
.xegs-atari-map article:nth-child(4) { border-top-color: var(--xe-blue); }
.xegs-atari-map small,.xegs-atari-map strong { display: block; }
.xegs-atari-map small { min-height: 2.5em; color: #74726b; font-size: .64rem; letter-spacing: .1em; }
.xegs-atari-map strong { margin-top: 20px; font-size: clamp(1.45rem,3vw,2.25rem); }

.xegs-verdict { display: grid; grid-template-columns: 1fr auto 1fr; gap: 22px; align-items: center; margin: 40px 0; padding: 32px; background: #252828; color: #fff; }
.xegs-verdict span { text-align: center; color: #c4c1b9; font-size: .72rem; letter-spacing: .13em; }
.xegs-verdict span b { display: block; margin-top: 8px; color: #fff; font-size: clamp(1.55rem,3.5vw,2.7rem); letter-spacing: 0; }
.xegs-verdict i { color: var(--xe-pink); font-style: normal; font-size: 2rem; }
body.xegs-page .xegs-timeline { background: #252828; color: #fff; }
body.xegs-page .xegs-timeline h2,body.xegs-page .xegs-timeline h3 { color: #fff; }
body.xegs-page .xegs-timeline time { color: var(--xe-yellow); }
body.xegs-page .xegs-timeline .fast-timeline-heading > p:last-child,body.xegs-page .xegs-timeline li p { color: #c9c6be; }
body.xegs-page .xegs-timeline li,body.xegs-page .xegs-timeline li + li,body.xegs-page .xegs-timeline li:nth-child(2n + 1):not(:first-child),body.xegs-page .xegs-timeline li:nth-child(3n + 1):not(:first-child),body.xegs-page .xegs-timeline li:nth-child(n + 4) { border-color: rgba(234,220,142,.25); background: #343736; }
body.xegs-page .xegs-related { background: #d8d4c7; color: var(--xe-ink); }
body.xegs-page .xegs-related h2,body.xegs-page .xegs-related p { color: var(--xe-ink); }
body.xegs-page .xegs-related a { background: var(--xe-red); color: #fff; }
body.xegs-page .xegs-sources { background: #dfdcd2; }
body.xegs-page .chapter-sources > div > ul { margin-top: 26px; }
body.xegs-page .chapter-sources > div > ul li { margin: 0; }
body.xegs-page .chapter-sources > div > ul li a { position: relative; display: block; padding: 9px 34px 9px 0; line-height: 1.4; }
body.xegs-page .chapter-sources > div > ul li a em { display: inline; }
body.xegs-page .chapter-sources > div > ul li a::after { position: absolute; top: 50%; right: 0; transform: translateY(-50%); }
body.xegs-page .chapter-sources .credits-heading { margin: 32px 0 10px; }
body.xegs-page .chapter-sources .image-credit-list { margin: 0; line-height: 1.45; }
body.xegs-page .chapter-sources .image-credit-list a { display: inline; padding: 0; }
body.xegs-page .pagination-placeholder { min-height: 1px; }

@media (max-width: 1000px) {
  body.xegs-page .xegs-hero { grid-template-columns: 1fr; }
  .xegs-hero-machine { min-height: 500px; border-top: 1px solid #55534e; border-left: 0; }
  .xegs-chip-grid,.xegs-atari-map { grid-template-columns: 1fr 1fr; }
  .xegs-chip-grid article:nth-child(3),.xegs-atari-map article:nth-child(3) { border-left: 0; }
}

@media (max-width: 760px) {
  body.xegs-page .chapter-hero-copy h1 { max-width: 11.5ch; font-size: clamp(2.05rem,9.7vw,3.25rem); }
  .xegs-hero-machine { min-height: 340px; padding: 42px 22px 26px; }
  .xegs-hero-machine figcaption,.xegs-ports-photo figcaption { display: block; }
  .xegs-hero-machine figcaption span,.xegs-ports-photo figcaption span { display: block; margin-top: .45rem; }
  .xegs-boot-fork,.xegs-family-line,.xegs-keyboard-pair,.xegs-chip-grid,.xegs-sio-flow,.xegs-bundle-grid,.xegs-atari-map,.xegs-verdict { grid-template-columns: 1fr; }
  .xegs-boot-fork > b,.xegs-family-line i,.xegs-sio-flow i,.xegs-verdict i { justify-self: center; transform: rotate(90deg); }
  .xegs-keyboard-pair img { height: 260px; }
  .xegs-chip-grid article + article,.xegs-bundle-grid article + article,.xegs-atari-map article + article { border-left: 0; }
  .xegs-button-row { gap: 8px; padding: 20px 12px; }
  .xegs-button-row span { font-size: .55rem; }
  .xegs-ports-photo { padding: 18px; }
}

/* Philips CD-i — Console Outlier B07 */
body.cdi-page {
  --cdi-paper: #f0eee8;
  --cdi-ink: #18191d;
  --cdi-violet: #6853a6;
  --cdi-cyan: #35a8a1;
  --cdi-magenta: #c94178;
  --cdi-yellow: #e9bf43;
  --cdi-line: rgba(24,25,29,.2);
}
body.cdi-page .site-header { position: relative; z-index: 30; }
body.cdi-page .chapter { background: var(--cdi-paper); }
body.cdi-page .cdi-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0,1.02fr) minmax(440px,.98fr);
  min-height: 760px;
  background: var(--cdi-ink);
  color: #fff;
}
body.cdi-page .cdi-hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0 0 auto;
  height: 10px;
  pointer-events: none;
  background: linear-gradient(90deg,var(--cdi-violet) 0 25%,var(--cdi-cyan) 25% 50%,var(--cdi-magenta) 50% 75%,var(--cdi-yellow) 75%);
}
body.cdi-page .chapter-hero-copy { position: relative; z-index: 1; align-self: center; }
body.cdi-page .chapter-hero-copy .eyebrow { color: var(--cdi-yellow); }
body.cdi-page .chapter-hero-copy h1 { max-width: 13ch; color: #fff; font-size: clamp(2.85rem,4.9vw,5.5rem); line-height: .91; }
body.cdi-page .chapter-deck { color: #d0cfd2; }
body.cdi-page .chapter-byline { color: #aaa9ae; border-color: rgba(255,255,255,.22); }
.cdi-hero-machine {
  position: relative;
  z-index: 1;
  min-width: 0;
  margin: 0;
  padding: 72px 42px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: #e3e1db;
  border-left: 1px solid #54545a;
}
.cdi-disc-rings {
  position: absolute;
  z-index: 0;
  right: -145px;
  top: -110px;
  width: 520px;
  aspect-ratio: 1;
  border: 55px solid rgba(104,83,166,.16);
  border-radius: 50%;
  box-shadow: inset 0 0 0 55px rgba(53,168,161,.12),inset 0 0 0 110px rgba(201,65,120,.09);
  pointer-events: none;
}
.cdi-hero-machine img { position: relative; z-index: 1; display: block; width: 100%; height: auto; object-fit: contain; filter: drop-shadow(0 25px 18px rgba(0,0,0,.23)); }
.cdi-hero-machine figcaption,.cdi-gamepad-photo figcaption,.cdi-video-pair figcaption,.cdi-player-photo figcaption { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 18px; margin-top: 27px; padding-top: 12px; border-top: 1px solid #9d9b97; color: #36363a; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.cdi-hero-machine figcaption b { color: var(--cdi-magenta); }
body.cdi-page .fact-strip { border-top-color: #46474c; background: #28292d; color: #fff; }
body.cdi-page .fact-strip > div { border-color: #46474c; }
body.cdi-page .fact-strip small { color: #b9b8bd; }
body.cdi-page .fact-strip strong { color: #fff; }
body.cdi-page .section-number { color: #8b3681; }
body.cdi-page .chapter-section { border-color: var(--cdi-line); }

.cdi-noun-switch { display: grid; grid-template-columns: 1fr auto 1.1fr; gap: 22px; align-items: center; margin: 40px 0; }
.cdi-noun-switch span,.cdi-noun-switch strong { padding: 30px 20px; border: 1px solid #b9b7b0; text-align: center; color: #69686a; font-size: .7rem; letter-spacing: .12em; }
.cdi-noun-switch span b,.cdi-noun-switch strong b { display: block; margin-top: 8px; color: var(--cdi-ink); font-size: clamp(1.35rem,3vw,2.3rem); letter-spacing: 0; }
.cdi-noun-switch strong { border-top: 9px solid var(--cdi-cyan); background: #fff; }
.cdi-noun-switch i { color: var(--cdi-magenta); font-style: normal; font-size: 2rem; }

.cdi-greenbook { position: relative; margin: 40px 0; padding: 38px 42px 38px 55px; overflow: hidden; background: #157061; color: #fff; box-shadow: 13px 13px 0 rgba(104,83,166,.2); }
.cdi-greenbook::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 16px; background: #104f46; pointer-events: none; }
.cdi-greenbook small,.cdi-greenbook strong,.cdi-greenbook span { display: block; }
.cdi-greenbook small { color: #bfe3d6; font-size: .7rem; letter-spacing: .18em; }
.cdi-greenbook strong { max-width: 19ch; margin: 28px 0; font-size: clamp(1.5rem,3.6vw,2.8rem); line-height: 1; }
.cdi-greenbook span { color: #d5eee6; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }

.cdi-gamepad-photo,.cdi-player-photo { margin: 40px 0; padding: 30px; background: #dedcd6; }
.cdi-gamepad-photo img,.cdi-player-photo img { display: block; width: 100%; height: auto; object-fit: contain; }
.cdi-control-axis { display: grid; grid-template-columns: 1fr 1.2fr 1fr 1.2fr 1fr; gap: 0; align-items: center; margin: 38px 0; }
.cdi-control-axis span { padding: 22px 10px; border: 1px solid #b9b7b0; background: #fff; text-align: center; color: #747276; font-size: .66rem; letter-spacing: .1em; }
.cdi-control-axis span b { display: block; margin-top: 7px; color: var(--cdi-ink); font-size: 1.15rem; letter-spacing: 0; }
.cdi-control-axis i { height: 4px; background: linear-gradient(90deg,var(--cdi-violet),var(--cdi-cyan),var(--cdi-magenta)); }

.cdi-stream-grid { display: grid; grid-template-columns: repeat(4,1fr); margin: 40px 0; border: 1px solid #b9b7b0; }
.cdi-stream-grid article { min-width: 0; padding: 27px 20px; border-top: 8px solid var(--cdi-violet); }
.cdi-stream-grid article + article { border-left: 1px solid #b9b7b0; }
.cdi-stream-grid article:nth-child(2) { border-top-color: var(--cdi-cyan); }
.cdi-stream-grid article:nth-child(3) { border-top-color: var(--cdi-magenta); }
.cdi-stream-grid article:nth-child(4) { border-top-color: var(--cdi-yellow); }
.cdi-stream-grid strong,.cdi-stream-grid span { display: block; }
.cdi-stream-grid strong { font-size: clamp(1.15rem,2.4vw,1.8rem); overflow-wrap: anywhere; }
.cdi-stream-grid span { margin-top: 17px; color: #68666a; font-size: .76rem; line-height: 1.5; }

.cdi-shelf { display: grid; grid-template-columns: repeat(5,1fr); margin: 40px 0; border: 1px solid #b9b7b0; }
.cdi-shelf span { min-width: 0; padding: 42px 10px 24px; border-top: 12px solid var(--cdi-violet); text-align: center; font-size: .67rem; font-weight: 800; letter-spacing: .1em; }
.cdi-shelf span + span { border-left: 1px solid #b9b7b0; }
.cdi-shelf span:nth-child(2) { border-top-color: var(--cdi-cyan); }
.cdi-shelf span:nth-child(3) { border-top-color: var(--cdi-magenta); }
.cdi-shelf span:nth-child(4) { border-top-color: var(--cdi-yellow); }
.cdi-shelf span:nth-child(5) { border-top-color: #64656a; }

.cdi-capacity { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: stretch; margin: 40px 0; }
.cdi-capacity article { padding: 30px; background: #dedcd6; border-top: 9px solid #77787c; }
.cdi-capacity article:last-child { border-top-color: var(--cdi-magenta); background: #fff; }
.cdi-capacity small,.cdi-capacity strong,.cdi-capacity span { display: block; }
.cdi-capacity small { color: #727074; font-size: .67rem; letter-spacing: .1em; }
.cdi-capacity strong { margin: 24px 0 15px; font-size: clamp(1.8rem,4vw,3.1rem); }
.cdi-capacity span { color: #656368; font-size: .78rem; }
.cdi-capacity > b { align-self: center; color: var(--cdi-violet); font-size: .68rem; letter-spacing: .1em; }

.cdi-video-pair { display: grid; grid-template-columns: 1.05fr .95fr; gap: 1px; margin: 40px 0; background: #a8a6a1; }
.cdi-video-pair figure { min-width: 0; margin: 0; padding: 30px; background: #e0ded8; }
.cdi-video-pair img { display: block; width: 100%; height: 330px; object-fit: contain; }
.cdi-video-pair > div { padding: 35px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 15px; place-items: center; background: #242529; color: #fff; text-align: center; }
.cdi-video-pair > div span { padding: 18px 12px; border: 1px solid #55565c; font-size: .78rem; letter-spacing: .1em; }
.cdi-video-pair > div i { color: var(--cdi-yellow); font-style: normal; font-size: 1.4rem; }
.cdi-video-pair > div strong { grid-column: 1/-1; color: #fff; font-size: clamp(1.4rem,3.4vw,2.5rem); line-height: 1; }

.cdi-game-cases,.cdi-dutch-grid { display: grid; grid-template-columns: repeat(3,1fr); margin: 40px 0; border: 1px solid #b9b7b0; }
.cdi-game-cases article,.cdi-dutch-grid article { min-width: 0; padding: 27px; border-top: 8px solid var(--cdi-violet); }
.cdi-game-cases article + article,.cdi-dutch-grid article + article { border-left: 1px solid #b9b7b0; }
.cdi-game-cases article:nth-child(2),.cdi-dutch-grid article:nth-child(2) { border-top-color: var(--cdi-cyan); }
.cdi-game-cases article:nth-child(3),.cdi-dutch-grid article:nth-child(3) { border-top-color: var(--cdi-magenta); }
.cdi-game-cases small,.cdi-game-cases strong,.cdi-game-cases span,.cdi-dutch-grid strong,.cdi-dutch-grid span { display: block; }
.cdi-game-cases small { min-height: 2.4em; color: #777579; font-size: .63rem; letter-spacing: .09em; }
.cdi-game-cases strong,.cdi-dutch-grid strong { margin: 18px 0; font-size: clamp(1.1rem,2.3vw,1.65rem); overflow-wrap: anywhere; }
.cdi-game-cases span,.cdi-dutch-grid span { color: #69676b; font-size: .75rem; line-height: 1.45; }

.cdi-memory-filter { display: grid; grid-template-columns: 1fr auto 1.1fr auto 1fr; gap: 15px; align-items: center; margin: 40px 0; padding: 32px; background: #25262a; color: #fff; }
.cdi-memory-filter span { text-align: center; color: #aaa9af; font-size: .68rem; letter-spacing: .1em; }
.cdi-memory-filter span b { display: block; margin-top: 7px; color: #fff; letter-spacing: 0; }
.cdi-memory-filter strong { padding: 28px 14px; border: 1px solid #57585e; color: var(--cdi-yellow); text-align: center; font-size: clamp(1.05rem,2.6vw,1.7rem); line-height: 1; }
.cdi-memory-filter i { color: var(--cdi-magenta); font-style: normal; font-size: 1.4rem; }

.cdi-dutch-grid article { background: rgba(255,255,255,.25); }
.cdi-dutch-grid strong { margin-top: 0; }
.cdi-player-photo { background: #d4d1c9; }
.cdi-player-photo img { border: 1px solid #b2afa8; }

.cdi-verdict { display: grid; grid-template-columns: 1fr auto 1fr; gap: 25px; align-items: center; margin: 40px 0; padding: 34px; background: #25262a; color: #fff; }
.cdi-verdict span { text-align: center; color: #bdbbc0; font-size: .7rem; letter-spacing: .12em; }
.cdi-verdict span b { display: block; margin-top: 9px; color: #fff; font-size: clamp(1.4rem,3.4vw,2.55rem); letter-spacing: 0; }
.cdi-verdict i { color: var(--cdi-yellow); font-style: normal; font-size: 2rem; }
body.cdi-page .cdi-timeline { background: #25262a; color: #fff; }
body.cdi-page .cdi-timeline h2,body.cdi-page .cdi-timeline h3 { color: #fff; }
body.cdi-page .cdi-timeline time { color: var(--cdi-yellow); }
body.cdi-page .cdi-timeline .fast-timeline-heading > p:last-child,body.cdi-page .cdi-timeline li p { color: #c8c6cb; }
body.cdi-page .cdi-timeline li,body.cdi-page .cdi-timeline li + li,body.cdi-page .cdi-timeline li:nth-child(2n + 1):not(:first-child),body.cdi-page .cdi-timeline li:nth-child(3n + 1):not(:first-child),body.cdi-page .cdi-timeline li:nth-child(n + 4) { border-color: rgba(233,191,67,.24); background: #34353a; }
body.cdi-page .cdi-related { background: #d7d4cc; color: var(--cdi-ink); }
body.cdi-page .cdi-related h2,body.cdi-page .cdi-related p { color: var(--cdi-ink); }
body.cdi-page .cdi-related a { background: var(--cdi-violet); color: #fff; }
body.cdi-page .cdi-sources { background: #dfdcd4; }
body.cdi-page .chapter-sources > div > ul { margin-top: 26px; }
body.cdi-page .chapter-sources > div > ul li { margin: 0; }
body.cdi-page .chapter-sources > div > ul li a { position: relative; display: block; padding: 9px 34px 9px 0; line-height: 1.4; }
body.cdi-page .chapter-sources > div > ul li a em { display: inline; }
body.cdi-page .chapter-sources > div > ul li a::after { position: absolute; top: 50%; right: 0; transform: translateY(-50%); }
body.cdi-page .chapter-sources .credits-heading { margin: 32px 0 10px; }
body.cdi-page .chapter-sources .image-credit-list { margin: 0; line-height: 1.45; }
body.cdi-page .chapter-sources .image-credit-list a { display: inline; padding: 0; }
body.cdi-page .pagination-placeholder { min-height: 1px; }

@media (max-width: 1000px) {
  body.cdi-page .cdi-hero { grid-template-columns: 1fr; }
  .cdi-hero-machine { min-height: 500px; border-top: 1px solid #54545a; border-left: 0; }
  .cdi-stream-grid { grid-template-columns: 1fr 1fr; }
  .cdi-stream-grid article:nth-child(3) { border-left: 0; }
}

@media (max-width: 760px) {
  body.cdi-page .chapter-hero-copy h1 { max-width: 12.5ch; font-size: clamp(1.95rem,9.2vw,3.1rem); }
  .cdi-hero-machine { min-height: 340px; padding: 42px 22px 26px; }
  .cdi-hero-machine figcaption,.cdi-gamepad-photo figcaption,.cdi-video-pair figcaption,.cdi-player-photo figcaption { display: block; }
  .cdi-hero-machine figcaption span,.cdi-gamepad-photo figcaption span,.cdi-video-pair figcaption span,.cdi-player-photo figcaption span { display: block; margin-top: .45rem; }
  .cdi-noun-switch,.cdi-capacity,.cdi-video-pair,.cdi-game-cases,.cdi-dutch-grid,.cdi-memory-filter,.cdi-verdict { grid-template-columns: 1fr; }
  .cdi-noun-switch i,.cdi-capacity > b,.cdi-memory-filter i,.cdi-verdict i { justify-self: center; transform: rotate(90deg); }
  .cdi-stream-grid { grid-template-columns: 1fr; }
  .cdi-stream-grid article + article,.cdi-game-cases article + article,.cdi-dutch-grid article + article { border-left: 0; }
  .cdi-control-axis { grid-template-columns: 1fr; gap: 0; }
  .cdi-control-axis i { width: 4px; height: 24px; justify-self: center; background: linear-gradient(180deg,var(--cdi-violet),var(--cdi-cyan),var(--cdi-magenta)); }
  .cdi-shelf { grid-template-columns: 1fr 1fr; }
  .cdi-shelf span + span { border-left: 0; }
  .cdi-shelf span:nth-child(2n) { border-left: 1px solid #b9b7b0; }
  .cdi-video-pair img { height: 260px; }
  .cdi-video-pair > div { min-height: 270px; padding: 25px; }
  .cdi-greenbook { padding: 30px 28px 30px 42px; }
  .cdi-gamepad-photo,.cdi-player-photo { padding: 18px; }
}
