:root {
  --bg: #1b1b1b;
  --bg-2: #141414;
  --header: #111111;
  --rail: #202020;
  --rail-2: #262626;
  --surface: #2b2b2b;
  --line: #3a3a3a;
  --text: #f3f3f3;
  --text-2: #a3a3a3;
  --text-3: rgba(163, 163, 163, 0.7);
  --accent: #f5c400;
  --accent-2: #ffd84a;
  --accent-bg: rgba(245, 196, 0, 0.14);
  --accent-rgb: 245, 196, 0;
  --on-accent: #1a1400;
  --live: #ff3b30;
  --nav-bg: #111111;
  --border: rgba(255, 255, 255, 0.08);
  --control-border: rgba(255, 255, 255, 0.16);
  --card-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --r: 6px;
  --r-lg: 10px;
  --topbar-h: 56px;
  --west: 236px;
  --east: 276px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}
html { overflow: hidden; }
body.shell {
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.pill--solid {
  background: var(--accent);
  color: var(--on-accent);
}
.pill--solid:hover { filter: brightness(1.06); }
.pill--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid var(--control-border);
}
.pill--ghost:hover { border-color: var(--accent); color: var(--accent); }
.pill--block { width: 100%; }

.wordmark {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
}
.wordmark img { height: 28px; width: auto; display: block; }
.wordmark__gold { color: var(--accent); }
.wordmark__pari { color: #fff; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--topbar-h);
  background: var(--header);
  border-bottom: 1px solid #000;
}
.topbar__inner {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 16px;
  padding: 0 12px 0 16px;
}
.wordmark { justify-self: start; }
.menubar {
  min-width: 0;
  overflow: hidden;
  justify-self: center;
}
.menubar__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.menubar__list::-webkit-scrollbar { display: none; }
.menubar__link {
  display: block;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #d8d8d8;
  white-space: nowrap;
}
.menubar__link:hover { color: #fff; }
.menubar__link--live { color: var(--live); }
.menubar__link.is-on,
.menubar__link--accent {
  color: var(--on-accent);
  background: var(--accent);
  border-radius: 3px;
  padding: 6px 10px;
}
.topbar__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  justify-self: end;
}
.tool-btn {
  display: none;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 4px;
}
.tool-btn--rail span {
  display: block;
  width: 16px;
  height: 2px;
  margin: 3px auto;
  background: #fff;
}

.workspace {
  display: grid;
  grid-template-columns: var(--west) minmax(0, 1fr) var(--east);
  height: calc(100vh - var(--topbar-h));
  min-height: 0;
}
.rail {
  background: var(--rail);
  border-color: #111;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.rail--west {
  border-right: 1px solid #111;
  overflow: hidden;
  scrollbar-width: none;
}
.rail--west::-webkit-scrollbar { display: none; width: 0; height: 0; }
.rail--west .discipline {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.rail--east {
  border-left: 1px solid #111;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--accent-rgb), .42) transparent;
}

.quicknav { padding: 6px 0; border-bottom: 1px solid var(--line); }
.quicknav__row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 13px;
  color: #ddd;
}
.quicknav__row:hover { background: var(--rail-2); }
.quicknav__mark {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.sitemap { display: none; padding: 6px 0; border-bottom: 1px solid var(--line); }
.sitemap__link {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #ccc;
}
.sitemap__link:hover { color: #fff; background: var(--rail-2); }
.sitemap__link.is-on {
  color: var(--on-accent);
  background: var(--accent);
}

.switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #191919;
}
.switcher__btn {
  padding: 10px 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-2);
  border-bottom: 2px solid transparent;
}
.switcher__btn.is-on {
  color: #fff;
  border-bottom-color: var(--accent);
  background: #242424;
}

.discipline { padding: 4px 0 10px; }
.discipline__all {
  display: block;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-2);
}
.discipline__row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 12px;
  font-size: 13px;
  color: #e8e8e8;
}
.discipline__row:hover { background: #2d2d2d; }
.discipline__n { color: var(--text-2); font-variant-numeric: tabular-nums; }
.discipline__n--live { color: var(--live); }

.canvas {
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--bg);
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--accent-rgb), .48) transparent;
}
.canvas::-webkit-scrollbar,
.rail--east::-webkit-scrollbar {
  width: 10px;
}
.canvas::-webkit-scrollbar-track,
.rail--east::-webkit-scrollbar-track {
  background: transparent;
  margin: 6px 0;
}
.canvas::-webkit-scrollbar-thumb,
.rail--east::-webkit-scrollbar-thumb {
  background-color: rgba(var(--accent-rgb), .42);
  border-radius: 99px;
  border: 3px solid var(--bg);
  background-clip: padding-box;
  min-height: 48px;
}
.rail--east::-webkit-scrollbar-thumb {
  border-color: var(--rail);
}
.canvas::-webkit-scrollbar-thumb:hover,
.rail--east::-webkit-scrollbar-thumb:hover {
  background-color: var(--accent);
}
.canvas::-webkit-scrollbar-thumb:active,
.rail--east::-webkit-scrollbar-thumb:active {
  background-color: var(--accent-2);
}
.canvas::-webkit-scrollbar-corner,
.rail--east::-webkit-scrollbar-corner {
  background: transparent;
}

.dimmer {
  display: none;
  position: fixed;
  inset: var(--topbar-h) 0 0 0;
  background: rgba(0,0,0,.55);
  z-index: 25;
}

.teaser {
  margin: 10px;
  padding: 14px;
  background: var(--rail-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.teaser--stream {
  background:
    linear-gradient(180deg, rgba(20,40,18,.55), rgba(32,32,32,.95)),
    repeating-linear-gradient(90deg, #1a3a16 0 8px, #163013 8px 16px);
  min-height: 150px;
}
.teaser--ticket { border-style: dashed; border-color: rgba(245,196,0,.35); }
.teaser__kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.teaser__title { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.teaser__text { margin: 0 0 12px; color: var(--text-2); font-size: 13px; }
.teaser__badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 8px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
  border-radius: 3px;
}

.carousel {
  --gpari-banner-n: 1;
  --gpari-banner-i: 0;
  position: relative;
  margin: 10px 10px 0;
  border-radius: var(--r);
  overflow: hidden;
  background: #0d0d0d;
}
.carousel__viewport {
  overflow: hidden;
  min-height: 240px;
}
.carousel__reel {
  display: flex;
  align-items: stretch;
  width: calc(var(--gpari-banner-n) * 100%);
  transform: translateX(calc(var(--gpari-banner-i) * -100% / var(--gpari-banner-n)));
  transition: transform .6s cubic-bezier(.22, .61, .36, 1);
}
.carousel__slide {
  flex: 0 0 calc(100% / var(--gpari-banner-n));
  width: calc(100% / var(--gpari-banner-n));
  box-sizing: border-box;
  display: grid;
  min-height: 240px;
  padding: 28px 32px 44px;
  grid-template-columns: 1fr minmax(160px, 280px);
  gap: 20px;
  align-items: center;
  background:
    radial-gradient(1200px 220px at 80% 20%, rgba(var(--accent-rgb), .18), transparent 55%),
    linear-gradient(90deg, #0c0c0c 0%, #161616 55%, #0a0a0a 100%);
}
@media (prefers-reduced-motion: reduce) {
  .carousel__reel { transition: none; }
}
.carousel__slide--race {
  background:
    radial-gradient(700px 240px at 85% 40%, rgba(180, 30, 30, .35), transparent 60%),
    linear-gradient(100deg, #0b0b0b 35%, #1a120c 100%);
}
.carousel__slide--crash {
  background:
    radial-gradient(600px 200px at 80% 50%, rgba(90, 20, 140, .4), transparent 60%),
    linear-gradient(100deg, #0b0b0b, #14101a);
}
.carousel__slide--pitch {
  background:
    radial-gradient(600px 200px at 82% 50%, rgba(20, 90, 30, .4), transparent 60%),
    linear-gradient(100deg, #0b0b0b, #0e160e);
}
.carousel__slide--gold {
  background:
    radial-gradient(600px 200px at 80% 40%, rgba(245, 196, 0, .28), transparent 60%),
    linear-gradient(100deg, #0b0b0b, #1a1508);
}
.carousel__slide--photo {
  position: relative;
  overflow: hidden;
  background: #0d0d0d;
  grid-template-columns: 1fr;
  min-height: 281px;
}
.carousel__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  z-index: 0;
  pointer-events: none;
}
.carousel__slide--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(8,8,8,.82) 0%, rgba(8,8,8,.48) 36%, rgba(8,8,8,.12) 62%, transparent 100%);
}
.carousel__slide--photo .carousel__copy {
  position: relative;
  z-index: 2;
  max-width: 36rem;
}
.carousel__slide--photo .carousel__chip {
  z-index: 2;
}
.carousel__slide--photo .carousel__kicker,
.carousel__slide--photo .carousel__title,
.carousel__slide--photo .carousel__text {
  text-shadow: 0 1px 14px rgba(0,0,0,.65);
}
.carousel__kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.carousel__title {
  margin: 0 0 8px;
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: .01em;
  text-transform: uppercase;
  line-height: 1.05;
}
.carousel__text { margin: 0 0 16px; color: #d0d0d0; max-width: 42ch; }
.carousel__art {
  position: relative;
  min-height: 140px;
}
.carousel__art img {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 160px;
  width: auto;
  object-fit: contain;
}
.carousel__chip {
  position: absolute;
  right: 8px;
  top: 12px;
  max-width: 140px;
  padding: 10px 12px;
  background: linear-gradient(180deg, #f5c400, #c99600);
  color: #1a1400;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  text-align: center;
  border-radius: 4px;
  box-shadow: var(--card-shadow);
}
.carousel__dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}
.carousel__dot {
  display: block;
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  appearance: none;
  line-height: 0;
  font-size: 0;
  background: rgba(255,255,255,.35);
}
.carousel__dot.is-on { background: var(--accent); }

.reel {
  padding: 12px 10px 8px;
  overflow: hidden;
}
.reel__track {
  display: flex;
  width: max-content;
  animation: gpari-games-marquee var(--gpari-games-dur, 36s) linear infinite;
  will-change: transform;
}
.reel:hover .reel__track {
  animation-play-state: paused;
}
.reel__set {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
  margin-right: 10px;
}
.thumb { flex: 0 0 148px; }
@keyframes gpari-games-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .reel__track { animation: none; }
}
.thumb__art {
  display: block;
  aspect-ratio: 4 / 3;
  height: auto;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}
.thumb__art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.thumb__fallback {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 8px;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
}
.thumb__name {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #ddd;
  text-align: center;
}
.thumb--gold .thumb__art { background: linear-gradient(135deg, #c9a227, #f5c400 45%, #8a5a00); }
.thumb--crystal .thumb__art { background: linear-gradient(135deg, #3a0a4a, #c84cff 50%, #1a0424); }
.thumb--crash .thumb__art { background: linear-gradient(135deg, #3a0808, #e23b2f 55%, #120404); }
.thumb--dice .thumb__art { background: linear-gradient(135deg, #0d2a12, #2f8a3a 50%, #061408); }
.thumb--tomb .thumb__art { background: linear-gradient(135deg, #143018, #4caf50 40%, #0a180c); }
.thumb--point .thumb__art { background: linear-gradient(135deg, #1a1040, #5b4dff 50%, #0c0820); }
.thumb--royal .thumb__art { background: linear-gradient(135deg, #3a2208, #d4a017 50%, #1a1004); }
.thumb--neon .thumb__art { background: linear-gradient(135deg, #042430, #22d3ee 50%, #021418); }
.thumb--ember .thumb__art { background: linear-gradient(135deg, #3a1408, #fb923c 50%, #1a0804); }
.thumb--ice .thumb__art { background: linear-gradient(135deg, #0b1c33, #60a5fa 50%, #061018); }

.counters { margin: 12px 10px; background: var(--surface); border-radius: var(--r); }
.counters__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.counter { padding: 14px 10px; text-align: center; border-right: 1px solid var(--line); }
.counter:last-child { border-right: 0; }
.counter__n { font-size: 20px; font-weight: 800; color: var(--accent); }
.counter__l { font-size: 12px; color: var(--text-2); margin-top: 4px; }

.post,
.heading {
  margin: 8px 10px 24px;
  background: var(--surface);
  border-radius: var(--r);
  padding: 22px 24px 28px;
}
.heading { margin-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.heading + .post { margin-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; }
.heading__title { margin: 8px 0 0; font-size: 30px; line-height: 1.2; }
.path { font-size: 12px; color: var(--text-2); }
.path a:hover { color: var(--accent); }
.path__sep { margin: 0 6px; opacity: .5; }

.post h1,
.post__h1 {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 1em;
}
.post h2 {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  margin: 1.25em 0;
}
.post h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  margin: 1em 0;
}
.post p { margin: 0 0 1em; color: #ddd; }
.post .content-block > *:first-child { margin-top: 0; }
.content-image {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  border-radius: var(--r);
  margin: 12px auto;
}
.table-wrapper { overflow-x: auto; margin: 12px 0; }
.post table { width: 100%; border-collapse: collapse; }
.post th, .post td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }

.points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}
.point {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px;
}
.point__icon { color: var(--accent); margin-bottom: 8px; }
.point__title { font-weight: 800; margin-bottom: 4px; }
.point__text { margin: 0; color: var(--text-2); font-size: 13px; }

.highlight { margin: 16px 0; }
.highlight__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: linear-gradient(90deg, #1a1508, #2a220c);
  border: 1px solid rgba(245,196,0,.35);
  border-radius: var(--r);
}
.highlight__badge {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  min-width: 72px;
}
.highlight__title { font-weight: 800; font-size: 18px; }
.highlight__text { margin: 4px 0 0; color: var(--text-2); }
.highlight__body { flex: 1; }

.quotes { margin: 18px 0; }
.quotes__h { font-weight: 800; font-size: 18px; margin-bottom: 10px; }
.quotes__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.quote {
  margin: 0;
  padding: 12px;
  background: var(--bg-2);
  border-radius: var(--r);
  border: 1px solid var(--line);
}
.quote__stars { display: flex; gap: 2px; margin-bottom: 8px; color: #555; }
.quote__star.is-on { color: var(--accent); }
.quote__text { margin: 0 0 8px; font-size: 13px; color: #ddd; }
.quote__who { color: var(--text-2); font-size: 12px; }

.studios {
  margin: 16px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
}
.studios__track {
  display: flex;
  width: max-content;
  animation: gpari-studios-marquee var(--gpari-studios-dur, 32s) linear infinite;
  will-change: transform;
}
@media (hover: hover) {
  .studios:hover .studios__track {
    animation-play-state: paused;
  }
}
.studios__set {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
  margin-right: 10px;
}
.studio {
  display: grid;
  place-items: center;
  flex: 0 0 148px;
  height: 64px;
  padding: 8px 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text-2);
}
.studio svg,
.studio-logo {
  max-height: 36px;
  width: auto;
  max-width: 120px;
}
.studio--text {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}
@keyframes gpari-studios-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .studios {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .studios::-webkit-scrollbar { display: none; }
  .studios__track { animation: none; }
  .studios__set[aria-hidden="true"] { display: none; }
}

.action-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0 8px;
  padding: 18px;
  background: #161616;
  border-left: 4px solid var(--accent);
  border-radius: var(--r);
}
.action-box__title { font-size: 20px; font-weight: 800; }
.action-box__sub { margin: 4px 0 0; color: var(--text-2); }

.basement {
  margin: 8px 10px 20px;
  padding: 20px;
  background: #151515;
  border-radius: var(--r);
  color: var(--text-2);
}
.basement__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 20px;
}
.basement__desc { margin: 10px 0 0; font-size: 13px; }
.basement__h { color: #fff; font-weight: 800; margin-bottom: 8px; }
.basement__links a { display: block; padding: 4px 0; }
.basement__links a:hover { color: var(--accent); }
.basement__bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.missing {
  margin: 40px 16px;
  text-align: center;
  padding: 40px 16px;
}
.missing__num { font-size: 72px; font-weight: 800; color: var(--accent); }
.missing__title { margin: 0 0 8px; }
.missing__sub { color: var(--text-2); }

.faq-list { margin: 16px 0; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.post h3.faq-question,
h3.faq-question {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}
.faq-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  text-align: left;
  font-weight: 700;
}
.faq-answer { padding: 0 0 14px; color: var(--text-2); }
.faq-answer p { margin: 0; color: inherit; }
.faq-icon::before { content: "+"; color: var(--accent); }
.faq-item.is-open .faq-icon::before { content: "–"; }

.toc {
  margin: 0 0 20px;
  padding: 0;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.toc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  user-select: none;
}
.toc-head:hover { background: var(--rail-2); }
.toc-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
}
.toc-toggle__icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  color: var(--text-2);
  transition: transform .2s ease, color .15s ease;
}
.toc-head[aria-expanded="false"] .toc-toggle__icon { transform: rotate(-90deg); }
.toc-head[aria-expanded="true"] .toc-toggle__icon { color: var(--accent); }
.toc-list {
  list-style: none;
  margin: 0;
  padding: 6px 8px 10px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 2px;
  counter-reset: toc;
}
.toc-list.collapsed { display: none; }
.toc-list > li { counter-increment: toc; }
.toc-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 4px;
  color: #e8e8e8;
  font-size: 14px;
  line-height: 1.35;
}
.toc-list a::before {
  content: counter(toc, decimal-leading-zero);
  flex: 0 0 1.7em;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.toc-list a::after {
  content: "";
  margin-left: auto;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--text-2);
  border-bottom: 1.5px solid var(--text-2);
  transform: rotate(-45deg);
  opacity: .45;
}
.toc-list a:hover {
  background: #2d2d2d;
  color: #fff;
}
.toc-list a:hover::after {
  border-color: var(--accent);
  opacity: 1;
}
.toc-sub a {
  padding-left: 22px;
  font-size: 13px;
  color: var(--text-2);
}
.toc-scope h2,
.toc-scope h3 { scroll-margin-top: 12px; }

.page-button {
  display: flex;
  gap: 8px;
  margin: 14px 0;
  justify-content: center;
}
.btn, .btn-ghost, .btn-dark, .btn-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 4px;
  font-weight: 700;
}
.btn-dark, .btn-lg { background: var(--accent); color: var(--on-accent); }
.btn-ghost { border: 1px solid var(--control-border); }

@media (max-width: 1100px) {
  .workspace { grid-template-columns: var(--west) minmax(0, 1fr); }
  .rail--east {
    position: fixed;
    top: var(--topbar-h);
    right: 0;
    bottom: 0;
    width: min(320px, 92vw);
    z-index: 30;
    transform: translateX(110%);
    transition: transform .2s ease;
  }
  .shell.is-east .rail--east { transform: none; }
  .tool-btn--east { display: grid; }
  .counters__row { grid-template-columns: repeat(2, 1fr); }
  .quotes__grid { grid-template-columns: 1fr; }
  .basement__grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .topbar__inner {
    display: flex;
    gap: 8px;
    padding: 0 8px;
  }
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .menubar { display: none; }
  .sitemap { display: block; }
  .menubar__link--go { display: none; }
  .tool-btn--rail { display: grid; }
  .wordmark { margin-right: auto; }
  .rail--west {
    position: fixed;
    top: var(--topbar-h);
    left: 0;
    bottom: 0;
    width: min(300px, 90vw);
    z-index: 30;
    transform: translateX(-110%);
    transition: transform .2s ease;
    overflow-x: hidden;
    overflow-y: auto;
  }
  .shell.is-west .rail--west { transform: none; }
  .shell.is-west .dimmer,
  .shell.is-east .dimmer { display: block; }
  .carousel { margin: 6px 4px 0; }
  .carousel__slide { grid-template-columns: 1fr; padding: 18px 12px 36px; }
  .carousel__chip { position: static; margin-top: 12px; }
  .carousel__slide--photo { min-height: 220px; }
  .carousel__slide--photo::after {
    background: linear-gradient(180deg, rgba(8,8,8,.78) 0%, rgba(8,8,8,.42) 58%, rgba(8,8,8,.18) 100%);
  }
  .reel { padding: 10px 4px 6px; }
  .studios { margin: 12px 0; }
  .studio { flex-basis: 128px; height: 56px; padding: 6px 10px; }
  .studio svg,
  .studio-logo { max-height: 30px; max-width: 104px; }
  .counters { margin: 8px 4px; }
  .post,
  .heading { margin: 6px 4px 16px; padding: 16px 12px 20px; }
  .basement { margin: 6px 4px 12px; padding: 14px 12px; }
  .missing { margin: 24px 8px; padding: 24px 8px; }
  .points { grid-template-columns: 1fr; }
  .highlight__inner { flex-direction: column; align-items: flex-start; }
  .action-box { flex-direction: column; align-items: flex-start; }
  .pill--ghost { display: none; }
}
