/* Own tokens: a client wiki never loads the base's tokens.css. Same
   fonts and radii as the base, so the template reads as family. On a
   published subdomain the font URLs are rewritten to the portal. */
@font-face {
  font-family: "Outfit";
  src: url("https://wiki-vibe.com/fonts/outfit-variable.woff2") format("woff2");
  font-weight: 500 800;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("https://wiki-vibe.com/fonts/instrument-sans-regular.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("https://wiki-vibe.com/fonts/geist-mono-variable.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}
/* Theme faces (theme.font): display only, loaded by a page only when its
   wiki chooses one. A single-weight face declares the whole weight range so
   browsers never fake a bold. The private preview embeds the chosen face
   from these same rules (scripts/styles.mjs reads theme-<key>.woff2). */
@font-face {
  font-family: "Wiki Montserrat";
  src: url("https://wiki-vibe.com/fonts/theme-montserrat.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Wiki Fredoka";
  src: url("https://wiki-vibe.com/fonts/theme-fredoka.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Wiki Bangers";
  src: url("https://wiki-vibe.com/fonts/theme-bangers.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Wiki Oswald";
  src: url("https://wiki-vibe.com/fonts/theme-oswald.woff2") format("woff2");
  font-weight: 200 700;
  font-display: swap;
}
@font-face {
  font-family: "Wiki Titillium";
  src: url("https://wiki-vibe.com/fonts/theme-titillium.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Wiki Press Start";
  src: url("https://wiki-vibe.com/fonts/theme-press-start.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  size-adjust: 62%;
}
@font-face {
  font-family: "Wiki Source Sans";
  src: url("https://wiki-vibe.com/fonts/theme-source-sans.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: "Wiki Creepster";
  src: url("https://wiki-vibe.com/fonts/theme-creepster.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --bg: #f7f7f5;
  --bg-2: #efefec;
  --bg-raised: #ffffff;
  --fg: #17191d;
  --fg-2: #5c6068;
  --line: #e2e2de;
  --line-2: #cbcbc5;
  --link: #17191d;
  --accent-from: hsl(84 62% 38%);
  --accent-to: hsl(132 78% 58%);
  /* The game's colour never carries text: it tints surfaces, rules and marks. */
  --accent: var(--accent-from);
  --accent-soft: color-mix(in srgb, var(--accent-from) 12%, var(--bg));
  --accent-soft-2: color-mix(in srgb, var(--accent-from) 22%, var(--bg));
  --tip: #1e7f55;
  --tip-soft: color-mix(in srgb, #1e7f55 10%, var(--bg));
  --warning: #b3620c;
  --warning-soft: color-mix(in srgb, #d97a12 12%, var(--bg));
  --shadow-card: 0 1px 2px rgba(23, 25, 29, 0.05);
  --display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  /* Corner scale (theme.radius): sharp 0.25, soft 1, round 1.75. */
  --radius: 1;
  color-scheme: light;
}
:root[data-wiki-radius="sharp"] {
  --radius: 0.25;
}
:root[data-wiki-radius="round"] {
  --radius: 1.75;
}
/* A theme face replaces the display font only; body text keeps the reading face. */
:root[data-wiki-font] {
  --display-tracking: 0;
}
:root[data-wiki-font="montserrat"] {
  --display: "Wiki Montserrat", "Segoe UI", system-ui, sans-serif;
  --display-tracking: -0.01em;
}
:root[data-wiki-font="fredoka"] {
  --display: "Wiki Fredoka", "Segoe UI", system-ui, sans-serif;
}
:root[data-wiki-font="bangers"] {
  --display: "Wiki Bangers", Impact, "Segoe UI", system-ui, sans-serif;
  --display-tracking: 0.03em;
}
:root[data-wiki-font="oswald"] {
  --display: "Wiki Oswald", "Arial Narrow", "Segoe UI", system-ui, sans-serif;
}
:root[data-wiki-font="titillium"] {
  --display: "Wiki Titillium", "Segoe UI", system-ui, sans-serif;
}
:root[data-wiki-font="press-start"] {
  --display: "Wiki Press Start", ui-monospace, monospace;
}
:root[data-wiki-font="source-sans"] {
  --display: "Wiki Source Sans", "Segoe UI", system-ui, sans-serif;
}
:root[data-wiki-font="creepster"] {
  --display: "Wiki Creepster", "Segoe UI", system-ui, sans-serif;
  --display-tracking: 0.02em;
}
/* Dark tokens, twice: for a dark device unless the wiki forces light, and
   for a wiki that forces dark (theme.surface). Keep both copies identical. */
@media (prefers-color-scheme: dark) {
  :root:not([data-wiki-surface="light"]) {
    --bg: #111214;
    --bg-2: #17191c;
    --bg-raised: #1e2024;
    --fg: #ecece8;
    --fg-2: #9a9ca3;
    --line: #2a2c31;
    --line-2: #3a3d43;
    --link: #ecece8;
    --accent: var(--accent-to);
    --accent-soft: color-mix(in srgb, var(--accent-to) 14%, var(--bg));
    --accent-soft-2: color-mix(in srgb, var(--accent-to) 26%, var(--bg));
    --tip: #3fbf87;
    --tip-soft: color-mix(in srgb, #3fbf87 14%, var(--bg));
    --warning: #f0a04b;
    --warning-soft: color-mix(in srgb, #f0a04b 14%, var(--bg));
    --shadow-card: none;
    color-scheme: dark;
  }
}
:root[data-wiki-surface="dark"] {
  --bg: #111214;
  --bg-2: #17191c;
  --bg-raised: #1e2024;
  --fg: #ecece8;
  --fg-2: #9a9ca3;
  --line: #2a2c31;
  --line-2: #3a3d43;
  --link: #ecece8;
  --accent: var(--accent-to);
  --accent-soft: color-mix(in srgb, var(--accent-to) 14%, var(--bg));
  --accent-soft-2: color-mix(in srgb, var(--accent-to) 26%, var(--bg));
  --tip: #3fbf87;
  --tip-soft: color-mix(in srgb, #3fbf87 14%, var(--bg));
  --warning: #f0a04b;
  --warning-soft: color-mix(in srgb, #f0a04b 14%, var(--bg));
  --shadow-card: none;
  color-scheme: dark;
}
:root[data-wiki-palette="forest"] {
  --bg: #f3f6ee;
  --bg-2: #e8efdf;
  --fg: #172319;
  --fg-2: #4f6154;
}
:root[data-wiki-palette="ocean"] {
  --bg: #eef5f8;
  --bg-2: #ddebf1;
  --fg: #162731;
  --fg-2: #496272;
}
:root[data-wiki-palette="ember"] {
  --bg: #faf3ed;
  --bg-2: #f1e4d7;
  --fg: #2d1c18;
  --fg-2: #705448;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-wiki-surface="light"])[data-wiki-palette="forest"] {
    --bg: #111b14;
    --bg-2: #1b2a20;
    --bg-raised: #203025;
    --fg: #e9f1e4;
    --fg-2: #a5b5a3;
    --line: #334838;
  }
  :root:not([data-wiki-surface="light"])[data-wiki-palette="ocean"] {
    --bg: #101c24;
    --bg-2: #192d3a;
    --bg-raised: #1e3543;
    --fg: #e5f0f8;
    --fg-2: #a0b8c7;
    --line: #324b5c;
  }
  :root:not([data-wiki-surface="light"])[data-wiki-palette="ember"] {
    --bg: #211613;
    --bg-2: #31211a;
    --bg-raised: #3b291f;
    --fg: #f5e9df;
    --fg-2: #c1aa99;
    --line: #533c2d;
  }
}
:root[data-wiki-surface="dark"][data-wiki-palette="forest"] {
  --bg: #111b14;
  --bg-2: #1b2a20;
  --bg-raised: #203025;
  --fg: #e9f1e4;
  --fg-2: #a5b5a3;
  --line: #334838;
}
:root[data-wiki-surface="dark"][data-wiki-palette="ocean"] {
  --bg: #101c24;
  --bg-2: #192d3a;
  --bg-raised: #1e3543;
  --fg: #e5f0f8;
  --fg-2: #a0b8c7;
  --line: #324b5c;
}
:root[data-wiki-surface="dark"][data-wiki-palette="ember"] {
  --bg: #211613;
  --bg-2: #31211a;
  --bg-raised: #3b291f;
  --fg: #f5e9df;
  --fg-2: #c1aa99;
  --line: #533c2d;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--display);
  letter-spacing: var(--display-tracking, -0.02em);
  text-wrap: balance;
}
p {
  margin: 0;
  text-wrap: pretty;
}
a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
  border-radius: calc(3px * var(--radius));
}
a:hover {
  background: var(--accent-soft);
  text-decoration-color: currentColor;
}
:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
  border-radius: calc(6px * var(--radius));
}
img {
  display: block;
  max-width: 100%;
}
code {
  font-family: var(--mono);
  font-size: 0.85em;
}
.wrap {
  width: min(1312px, 100% - 48px);
  margin-inline: auto;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  padding: 8px 12px;
  background: var(--fg);
  color: var(--bg);
  border-radius: calc(6px * var(--radius));
  z-index: 2147483001;
}
.skip-link:focus {
  top: 52px;
}
.label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-2);
}

/* Status banner: drafts and prerelease wikis only. */
.demo {
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  font-size: 13px;
  color: var(--fg-2);
}
.demo .wrap {
  display: block;
}

/* Masthead: a band tinted by the game's colour, its icon, name and actions. */
.masthead {
  padding-block: 28px 24px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--accent-soft), var(--bg));
}
.masthead.has-cover {
  padding-top: 0;
}
.wiki-cover {
  width: 100%;
  height: clamp(140px, 22vw, 280px);
  object-fit: cover;
  border-radius: 0 0 calc(16px * var(--radius)) calc(16px * var(--radius));
  margin-bottom: 20px;
}
.masthead-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.wicon {
  display: grid;
  place-items: center;
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: calc(14px * var(--radius));
  background: linear-gradient(135deg, var(--accent-from), var(--accent-to));
  color: #fff;
  font-family: var(--display);
  font-size: 32px;
  font-weight: 800;
  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}
.wicon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wident {
  min-width: 0;
}
.wtitle {
  display: inline-block;
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: var(--display-tracking, -0.03em);
  color: var(--fg);
  text-decoration: none;
}
.wtitle:hover {
  background: none;
}
.wtitle small {
  margin-left: 8px;
  font-size: 0.55em;
  font-weight: 600;
  color: var(--fg-2);
  letter-spacing: 0;
}
.wtagline {
  margin-top: 6px;
  font-size: 15px;
  color: var(--fg-2);
}
.wactions {
  margin-left: auto;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  font-size: 13px;
  color: var(--fg-2);
}
.wplay {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: calc(6px * var(--radius));
  background: var(--fg);
  color: var(--bg);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}
.wplay:hover {
  background: var(--fg-2);
  color: var(--bg);
}
.wupdated {
  margin: 0;
}

/* Three regions: pages navigation, article, and the article's rail. */
.layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 280px;
  gap: 48px;
  padding-block: 36px 72px;
}
.sidebar {
  position: sticky;
  top: 56px;
  align-self: start;
  max-height: calc(100dvh - 72px);
  overflow-y: auto;
  font-size: 14px;
}
.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.nav-label,
.sidebar summary {
  display: none;
}
.sidebar-group + .sidebar-group {
  margin-top: 22px;
}
.sidebar-heading {
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.sidebar ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.sidebar li {
  position: relative;
  padding: 5px 10px;
  margin-left: -10px;
  border-radius: calc(6px * var(--radius));
  color: var(--fg-2);
}
.sidebar a {
  display: block;
  color: inherit;
  text-decoration: none;
}
.sidebar a:hover {
  background: none;
  color: var(--fg);
}
.sidebar li[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--fg);
  font-weight: 600;
}
.sidebar li[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: calc(3px * var(--radius));
  background: var(--accent);
}
.sidebar-note {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--fg-2);
}

/* Article: a comfortable measure, the rest breathes around it. */
.article {
  min-width: 0;
  max-width: 720px;
  font-size: 17px;
  overflow-wrap: anywhere;
}
.article [id],
#article {
  scroll-margin-top: 60px;
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--fg-2);
}
.crumbs li + li::before {
  content: "›";
  margin-right: 6px;
}
.crumbs a {
  text-decoration: none;
}
.crumbs a:hover {
  text-decoration: underline;
}
.article h1 {
  font-size: clamp(34px, 4.2vw, 46px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: var(--display-tracking, -0.03em);
}
.lede {
  margin-top: 12px;
  font-size: 19px;
  line-height: 1.45;
  color: var(--fg-2);
}
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--fg-2);
}
.article h2 {
  margin-top: 44px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
}
.article h3 {
  margin-top: 28px;
  font-size: 19px;
  font-weight: 600;
}
.article h2 + p,
.article h3 + p,
.article p + p,
.article p + ul,
.article p + ol {
  margin-top: 14px;
}
.article ol,
.article ul {
  margin: 14px 0 0;
  padding-left: 24px;
}
.article li + li {
  margin-top: 6px;
}
.article li::marker {
  color: var(--accent);
}
.article > section {
  padding-top: 4px;
}

/* Home: the wiki's pages as cards before the home article. */
.explore {
  margin-top: 28px;
}
.explore-group + .explore-group {
  margin-top: 24px;
}
.article .explore-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.article .cards {
  margin-top: 0;
  padding-left: 0;
}
.article .cards li + li {
  margin-top: 0;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: calc(10px * var(--radius));
  background: var(--bg-raised);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  font-size: 14px;
  color: var(--fg-2);
  transition: border-color 120ms ease;
}
.card b {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
}
.card:hover {
  background: var(--bg-raised);
  border-color: var(--accent);
}

/* Rail: fiche and sommaire, sticky next to the article. */
.rail {
  position: sticky;
  top: 56px;
  align-self: start;
  max-height: calc(100dvh - 72px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.infobox {
  border: 1px solid var(--line);
  border-radius: calc(12px * var(--radius));
  background: var(--bg-raised);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  font-size: 13px;
}
.infobox-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.infobox-title {
  padding: 12px 14px 8px;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  border-top: 3px solid var(--accent);
}
.infobox dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  margin: 0;
  padding: 0 14px 14px;
}
.infobox dt {
  color: var(--fg-2);
}
.infobox dd {
  margin: 0;
  font-weight: 500;
}
.toc {
  margin-top: 20px;
  font-size: 14px;
}
.infobox + .toc {
  margin-top: 24px;
}
.toc-heading {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.toc ol {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  border-left: 2px solid var(--line);
}
.toc li {
  margin: 0;
}
.toc a {
  display: block;
  padding: 5px 12px;
  margin-left: -2px;
  border-left: 2px solid transparent;
  color: var(--fg-2);
  text-decoration: none;
  border-radius: 0;
}
.toc a:hover {
  color: var(--fg);
  border-left-color: var(--accent);
  background: none;
}
/* Inline rail: the private preview keeps the fiche beside the first sections. */
.rail-inline {
  position: static;
  max-height: none;
  overflow: visible;
}
.rail-inline .infobox {
  float: right;
  width: 280px;
  margin: 24px 0 16px 32px;
}
.rail-inline .toc {
  max-width: 420px;
  margin-top: 24px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: calc(8px * var(--radius));
  background: var(--bg-2);
}

/* Blocks. */
.table-wrap {
  margin-top: 16px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: calc(10px * var(--radius));
  background: var(--bg-raised);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.table-wrap table {
  min-width: 440px;
  overflow-wrap: normal;
}
caption {
  padding: 10px 12px 6px;
  text-align: left;
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  color: var(--fg);
}
th,
td {
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
thead th {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-2);
  background: var(--bg-2);
}
tbody th {
  font-weight: 600;
}
tbody tr:nth-child(even) {
  background: color-mix(in srgb, var(--bg-2) 45%, transparent);
}
.callout {
  margin-top: 16px;
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 calc(10px * var(--radius)) calc(10px * var(--radius)) 0;
  font-size: 15px;
}
.callout strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--display);
  font-size: 15px;
}
.callout strong::before {
  display: inline-block;
  width: 18px;
  margin-right: 6px;
  font-family: var(--mono);
  font-weight: 600;
  text-align: center;
  color: var(--accent);
}
.callout-info strong::before {
  content: "i";
}
.callout-tip {
  border-left-color: var(--tip);
  background: var(--tip-soft);
}
.callout-tip strong::before {
  content: "✓";
  color: var(--tip);
}
.callout-warning {
  border-left-color: var(--warning);
  background: var(--warning-soft);
}
.callout-warning strong::before {
  content: "!";
  color: var(--warning);
}
.callout p {
  margin: 0;
}
/* Live game figures (<GameStats />): filled by the portal's pinned stats
   client on a published wiki; dashes until then, or when Roblox is silent. */
.game-stats {
  margin-block: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: calc(12px * var(--radius));
  background: var(--bg-raised);
  box-shadow: var(--shadow-card);
}
.game-stats dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px 16px;
  margin: 0;
}
.game-stats dl > div {
  display: flex;
  flex-direction: column-reverse;
  gap: 2px;
}
.game-stats dt {
  font-size: 13px;
  color: var(--fg-2);
}
.game-stats dd {
  margin: 0;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: var(--display-tracking, -0.02em);
  font-variant-numeric: tabular-nums;
}
.game-stats-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--fg-2);
}
.game-stats-live::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 999px;
  background: var(--fg-2);
  vertical-align: 1px;
}
.game-stats[data-state="live"] .game-stats-live::before {
  background: var(--tip);
}
.game-stats .wplay {
  padding: 8px 14px;
  font-size: 14px;
}
.wiki-image {
  margin: 24px 0 0;
}
.wiki-image img {
  width: 100%;
  height: auto;
  border-radius: calc(10px * var(--radius));
  border: 1px solid var(--line);
}
.wiki-image figcaption {
  margin-top: 8px;
  color: var(--fg-2);
  font-size: 13px;
}
.source-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--fg-2);
}
.source-note a {
  color: inherit;
  text-decoration-color: var(--line-2);
}

/* Article end: related pages, categories, sources. */
.related {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.article .related-title {
  margin: 0 0 12px;
  font-size: 20px;
}
.categories {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-size: 13px;
  color: var(--fg-2);
}
.categories-label {
  margin-right: 4px;
}
.categories a {
  padding: 4px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--fg);
  text-decoration: none;
}
.categories a:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.sources {
  clear: both;
  margin-top: 32px;
  border: 1px solid var(--line);
  border-radius: calc(10px * var(--radius));
  background: var(--bg-2);
  font-size: 13px;
  color: var(--fg-2);
}
.sources summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
  color: var(--fg);
}
.sources summary::-webkit-details-marker {
  display: none;
}
.sources summary::before {
  content: "›";
  display: inline-block;
  width: 12px;
  font-size: 18px;
  line-height: 1;
  color: var(--fg-2);
  transition: transform 120ms ease;
}
.sources[open] summary::before {
  transform: rotate(90deg);
}
.article .sources h3,
.article .sources h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}
.sources-count {
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-2);
}
.sources > p,
.source-list {
  padding-inline: 16px;
}
.sources > p {
  margin: 0;
}
.article .source-list {
  margin: 8px 0 0;
  padding: 0 16px 14px 34px;
  overflow-wrap: anywhere;
}
.source-list b {
  color: var(--fg);
}

/* Footer. */
.wfoot {
  padding: 24px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--fg-2);
}
.wfoot .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}
.wfoot b {
  color: var(--fg);
}
.wfoot a {
  color: inherit;
}

/* Medium: the rail sits above the article, the navigation stays. */
@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 208px minmax(0, 1fr);
    gap: 40px;
  }
  .sidebar {
    grid-row: 1 / span 2;
  }
  .rail {
    grid-column: 2;
    grid-row: 1;
    position: static;
    max-height: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    align-items: start;
  }
  .rail .toc,
  .rail .infobox + .toc {
    margin-top: 0;
  }
  .article {
    grid-column: 2;
    grid-row: 2;
    max-width: none;
  }
}
/* Narrow: one column, the navigation folds behind a toggle. */
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 20px;
  }
  .sidebar {
    /* Undo the medium span: it pushed the sidebar into an implicit column. */
    grid-row: 1;
    grid-column: 1;
    position: static;
    max-height: none;
    border: 1px solid var(--line);
    border-radius: calc(10px * var(--radius));
    background: var(--bg-raised);
  }
  .nav-label,
  .sidebar summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    cursor: pointer;
    font-weight: 600;
    color: var(--fg);
  }
  .nav-label::after,
  .sidebar summary::after {
    content: "+";
    font-family: var(--mono);
    color: var(--fg-2);
  }
  .nav-toggle:checked ~ .nav-label::after,
  .sidebar[open] summary::after {
    content: "−";
  }
  .nav-toggle:focus-visible ~ .nav-label {
    outline: 2px solid var(--fg);
    outline-offset: -2px;
    border-radius: calc(10px * var(--radius));
  }
  .sidebar .sidebar-body {
    display: none;
    padding: 4px 14px 14px;
  }
  .nav-toggle:checked ~ .sidebar-body,
  .sidebar[open] .sidebar-body {
    display: block;
  }
  .sidebar li {
    margin-left: 0;
  }
  .sidebar li[aria-current="page"]::before {
    display: none;
  }
  .rail,
  .article {
    grid-column: 1;
  }
  .rail {
    grid-row: 2;
  }
  .article {
    grid-row: 3;
    font-size: 16px;
  }
  .masthead {
    padding-block: 20px 18px;
  }
  .wicon {
    width: 48px;
    height: 48px;
    font-size: 24px;
    border-radius: calc(12px * var(--radius));
  }
  /* The Play button stays on phones; only the date leaves the masthead. */
  .wupdated {
    display: none;
  }
  .wplay {
    padding: 8px 12px;
    font-size: 14px;
  }
}
@media (max-width: 640px) {
  .wrap {
    width: min(1312px, 100% - 32px);
  }
  .wtagline {
    display: none;
  }
  .wiki-cover {
    border-radius: 0 0 calc(12px * var(--radius)) calc(12px * var(--radius));
  }
  .rail-inline .infobox {
    float: none;
    width: 100%;
    margin: 24px 0 0;
  }
  .rail-inline .toc {
    max-width: none;
  }
  .lede {
    font-size: 17px;
  }
}

/* In-wiki search: the slot stays empty without the portal's script. */
.wsearch-slot {
  margin-top: 18px;
}
.wsearch {
  position: relative;
  width: min(480px, 100%);
}
.wsearch-input {
  width: 100%;
  height: 42px;
  padding: 0 40px 0 14px;
  border: 1px solid var(--line-2);
  border-radius: calc(6px * var(--radius));
  background: var(--bg-raised);
  color: var(--fg);
  font: inherit;
  font-size: 15px;
}
.wsearch-input::placeholder {
  color: var(--fg-2);
}
.wsearch-input:focus {
  outline: 2px solid var(--fg);
  outline-offset: 1px;
}
.wsearch-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.wsearch-hint {
  position: absolute;
  right: 12px;
  top: 11px;
  min-width: 20px;
  padding: 0 6px;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: calc(4px * var(--radius));
  font-family: var(--mono);
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  color: var(--fg-2);
  pointer-events: none;
}
.wsearch-input:focus ~ .wsearch-hint {
  display: none;
}
.wsearch-panel {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  max-height: min(60vh, 480px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: calc(10px * var(--radius));
  background: var(--bg-raised);
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.35);
  font-size: 14px;
}
.wsearch-status {
  margin: 0;
  padding: 10px 14px 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.wsearch-results {
  margin: 0;
  padding: 0 6px 6px;
  list-style: none;
}
.wsearch-link {
  display: block;
  padding: 8px 10px;
  border-radius: calc(6px * var(--radius));
  color: var(--fg);
  text-decoration: none;
}
.wsearch-link:hover,
.wsearch-link.is-active {
  background: var(--accent-soft);
}
.wsearch-title {
  font-family: var(--display);
  font-weight: 700;
}
.wsearch-section {
  color: var(--fg-2);
}
.wsearch-section::before {
  content: " › ";
}
.wsearch-snippet {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--fg-2);
}
.wsearch-snippet mark {
  background: var(--accent-soft-2);
  color: var(--fg);
  border-radius: calc(2px * var(--radius));
}
@media (max-width: 900px) {
  .wsearch-slot {
    margin-top: 14px;
  }
}
