@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/barlow-condensed-extrabold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}
@font-face { font-family: "Barlow"; src: url("assets/fonts/Barlow-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("assets/fonts/Barlow-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("assets/fonts/Barlow-Medium.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("assets/fonts/Barlow-SemiBold.ttf") format("truetype"); font-weight: 600 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Monocraft"; src: url("assets/fonts/Monocraft.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
:root {
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --game: "Monocraft", ui-monospace, Consolas, monospace;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
  --head-h: 56px;
  --gutter: clamp(16px, 1rem + 1.6vw, 44px);
  --gap: clamp(24px, 0.8rem + 2.4vw, 64px);
  --nav-w: clamp(12.5rem, 10rem + 5vw, 16rem);
  --rail-w: clamp(10.5rem, 8rem + 4vw, 13.5rem);
  --measure: 74ch;
  --lede-measure: 34rem;
  --art-start: 30rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --page: #140f0b;
  --raised: #1d1611;
  --field: #1b1410;
  --line: #3a2d22;
  --hair: #2a2019;
  --muted: #a6988a;
  --text: #ddd3c8;
  --strong: #fffaf4;
  --amber: #ff9c3e;
  --amber-soft: #ff9c3e1c;
  --title-tone: #ffdda8;
  --code-bg: #251c15;
  --code-text: #ffcf9a;
  --hover: #ffffff0a;
  --row-hover: #ffffff07;
  --head-bg: #140f0b;
  --shadow: 0 18px 40px #00000080;
  --art-opacity: .72;
  --surface: #1b1510;
  --link: #ead0b0;
  --lede: #e9dfd3;
  --cmd-bg: #261d15;
  --cmd-line: #47362a;
  --cmd-hover: #33261b;
  --cmd-name: #ffd9a8;
  --zebra: #ffffff06;
  --title-shadow: #3d2a1a;
  --chat: #000000b8;
  color-scheme: dark;
}
[data-theme=light] {
  --page: #f6efe4;
  --raised: #fffaf3;
  --field: #fffaf3;
  --line: #d9c6ac;
  --hair: #e6d9c6;
  --muted: #67584a;
  --text: #2e241b;
  --strong: #1f160e;
  --amber: #a8520b;
  --amber-soft: #c8650f17;
  --title-tone: #b25a0e;
  --code-bg: #efe2cf;
  --code-text: #803f0a;
  --hover: #5a3a1a0d;
  --row-hover: #5a3a1a09;
  --head-bg: #f6efe4;
  --shadow: 0 18px 40px #5a3a1a2e;
  --art-opacity: .5;
  --surface: #fcf7ef;
  --link: #5c3a1a;
  --lede: #3a2e23;
  --cmd-bg: #f2e5d2;
  --cmd-line: #dcc4a3;
  --cmd-hover: #f8e3c8;
  --cmd-name: #7a3d08;
  --zebra: #5a3a1a0a;
  --title-shadow: #e3cfb4;
  --chat: #000000c4;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { --toc-bar: 0px; --stick-top: calc(var(--head-h) + var(--toc-bar)); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html:has(body[data-rail=inline]) { --toc-bar: 41px; }
.article [id], .hero [id], #content { scroll-margin-top: calc(var(--stick-top) + 18px); }
body {
  margin: 0;
  font: 400 clamp(15px, 14.2px + .14vw, 16px)/1.6 var(--body);
  font-kerning: normal;
  color: var(--text);
  background: var(--page);
  overflow-wrap: break-word;
}
h1, h2, h3, h4, h5, h6, p, ul, ol, blockquote, pre, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { flex: none; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; border-radius: 3px; }
::selection { background: #ff9c3e55; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-button { display: none; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line); border: 3px solid var(--page); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }
.sidebar-scroll::-webkit-scrollbar, .toc::-webkit-scrollbar, .search-panel::-webkit-scrollbar, .tablebox::-webkit-scrollbar, .toc-list::-webkit-scrollbar { width: 6px; height: 6px; }
.sidebar-scroll::-webkit-scrollbar-thumb, .toc::-webkit-scrollbar-thumb, .search-panel::-webkit-scrollbar-thumb, .tablebox::-webkit-scrollbar-thumb { border: 0; background: transparent; }
.sidebar-scroll:hover::-webkit-scrollbar-thumb, .toc:hover::-webkit-scrollbar-thumb, .search-panel::-webkit-scrollbar-thumb, .tablebox::-webkit-scrollbar-thumb { background: var(--hair); }
.sidebar-scroll::-webkit-scrollbar-thumb:hover, .toc::-webkit-scrollbar-thumb:hover, .search-panel::-webkit-scrollbar-thumb:hover, .tablebox:hover::-webkit-scrollbar-thumb { background: var(--line); }
@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-color: var(--line) var(--page); }
  .sidebar-scroll, .toc, .search-panel, .tablebox { scrollbar-width: thin; scrollbar-color: var(--hair) transparent; }
}
.skip-link { position: absolute; left: 12px; top: -100px; z-index: 100; padding: 8px 14px; background: #ff9a32; color: #2c1607; font-weight: 650; border-radius: 6px; }
.skip-link:focus { top: 8px; }

.announce { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 4px 10px; min-height: 28px; padding: 3px 12px; font-size: 12.5px; font-weight: 650; line-height: 1.3; text-align: center; background: #ff9a32; color: #2c1607; }
.announce a { padding: 0 7px; border: 1px solid #ab671e; border-radius: 3px; font-size: 12px; }
.announce a:hover { background: #ffffff33; }

.site-head { position: sticky; top: 0; z-index: 40; background: var(--head-bg); border-bottom: 1px solid var(--hair); view-transition-name: site-head; }
.head-inner { display: flex; align-items: center; gap: clamp(8px, .3rem + .9vw, 22px); max-width: 1600px; height: var(--head-h); margin-inline: auto; padding-inline: var(--gutter); }
.brand { display: flex; align-items: center; gap: 8px; color: var(--strong); }
.brand img { width: 30px; height: 30px; }
.brand-name { font-weight: 900; font-size: 19px; letter-spacing: -.05em; }
.brand-name b { color: var(--amber); font-weight: 900; }
.wiki-tag { padding-left: clamp(8px, .6vw, 14px); border-left: 1px solid var(--line); font: 800 18px/1 var(--display); letter-spacing: .01em; color: var(--title-tone); white-space: nowrap; }
.wiki-tag:hover { color: var(--amber); }
.mainnav { display: flex; align-items: center; gap: 2px; order: 2; }
.mainnav a { padding: 6px clamp(6px, .4vw, 10px); border-radius: 6px; font-size: 13.5px; font-weight: 550; color: var(--muted); white-space: nowrap; }
.mainnav a:hover { color: var(--strong); background: var(--hover); }
.mainnav a[aria-current] { color: var(--amber); }
.searchbox { position: relative; flex: 1 1 16rem; max-width: 27rem; min-width: 0; margin-inline: auto; order: 1; }
.search { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 8px 0 11px; background: var(--field); border: 1px solid var(--line); border-radius: 9px; cursor: text; }
.search:hover { border-color: color-mix(in srgb, var(--amber) 40%, var(--line)); }
.search:focus-within { border-color: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); }
.search svg { width: 16px; height: 16px; color: var(--muted); }
.search input { flex: 1; min-width: 0; height: 100%; padding: 0; font-size: 14px; background: transparent; border: 0; outline: none; }
.search input::placeholder { color: var(--muted); opacity: .85; }
.search input::-webkit-search-cancel-button { display: none; }
kbd { padding: 0 6px; font: 600 12px/18px var(--body); color: var(--muted); border: 1px solid var(--line); border-radius: 4px; }
.search input:focus ~ kbd, .search input:not(:placeholder-shown) ~ kbd { opacity: 0; }
.discord { display: flex; align-items: center; gap: 7px; order: 3; height: 34px; padding: 0 12px; border-radius: 8px; font-size: 13.5px; font-weight: 650; color: #fff; background: #545fb6; }
.discord:hover { background: #626ecb; }
.discord svg { width: 17px; height: 17px; }
.theme, .menu { display: flex; align-items: center; justify-content: center; order: 4; width: 34px; height: 34px; padding: 0; color: var(--muted); background: none; border: 0; border-radius: 8px; cursor: pointer; }
.theme:hover, .menu:hover { color: var(--strong); background: var(--hover); }
.theme svg, .menu svg { width: 18px; height: 18px; }
.theme .icon-moon, [data-theme=light] .theme .icon-sun { display: none; }
[data-theme=light] .theme .icon-moon { display: block; }
.menu { display: none; order: 0; margin-left: -6px; }

.search-panel { position: absolute; z-index: 50; top: calc(100% + 8px); left: 0; width: max(100%, min(34rem, 92vw)); max-height: min(72vh, 640px); overflow: auto; overscroll-behavior: contain; background-color: var(--raised); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.search-panel[hidden] { display: none; }
.search-status { padding: 12px 16px; font-size: 13px; color: var(--muted); }
.search-status:empty, .search-results:empty { display: none; }
.search-results { list-style: none; margin: 0; padding: 6px; }
.search-result a { display: block; padding: 8px 12px; border-radius: 8px; }
.search-result.is-active a, .search-result a:hover { background: var(--amber-soft); }
.result-path { display: block; font-size: 12px; color: var(--muted); }
.result-title { display: block; font-weight: 650; color: var(--strong); line-height: 1.35; }
.result-heading { color: var(--amber); }
.result-heading::before { content: "›"; margin: 0 6px; color: var(--muted); }
.result-snippet { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; font-size: 13px; line-height: 1.45; color: var(--muted); }
mark { padding: 0 1px; border-radius: 2px; background: #ff9c3e40; color: inherit; }

.layout {
  display: grid;
  grid-template-columns: var(--nav-w) minmax(0, 1fr) var(--rail-w);
  grid-template-rows: auto auto 1fr;
  grid-template-areas: "nav hero hero" "nav toc toc" "nav main rail";
  column-gap: var(--gap);
  max-width: 1600px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
[data-rail=side] .layout { grid-template-areas: "nav hero hero" "nav main rail" "nav main rail"; }
[data-rail=side] .toc { grid-area: rail; }
[data-rail=inline] .layout, [data-rail=none] .layout { grid-template-columns: var(--nav-w) minmax(0, 1fr); grid-template-areas: "nav hero" "nav toc" "nav main"; }

.sidebar { grid-area: nav; position: sticky; top: var(--head-h); align-self: start; height: calc(100vh - var(--head-h)); margin-left: -8px; view-transition-name: wiki-nav; }
.sidebar-scroll:focus { outline: none; }
.sidebar-scroll { height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: clamp(18px, 1rem + .8vw, 30px) 8px 40px 0; }
.groups ul { list-style: none; margin: 0; padding: 0; }
.groups summary { display: flex; align-items: center; gap: 10px; padding: 4px 8px; border-radius: 7px; list-style: none; cursor: pointer; }
.groups summary::-webkit-details-marker { display: none; }
.pointer-moved .groups summary:hover { background: var(--hover); }
.nav-icon { display: inline-block; flex: none; width: 16px; height: 16px; background: url("assets/wiki-sections.png") 0 var(--sprite-y) / 16px 320px; image-rendering: pixelated; filter: saturate(.8); }
details[open] > summary .nav-icon, .pointer-moved summary:hover .nav-icon { filter: none; }
.nav-top { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; color: var(--text); }
li.top > .nav-top { display: flex; align-items: center; gap: 10px; padding: 4px 8px; border-radius: 7px; }
.pointer-moved li.top > .nav-top:hover { background: var(--hover); }
.home-link::before, .all-link::before { content: ""; flex: none; width: 16px; height: 16px; background: url("assets/akuma.png") center / 16px 16px; }
.all-link::before { background: linear-gradient(var(--amber), var(--amber)) 2px 3px / 12px 2px no-repeat, linear-gradient(var(--amber), var(--amber)) 2px 7px / 12px 2px no-repeat, linear-gradient(var(--amber), var(--amber)) 2px 11px / 8px 2px no-repeat; }
li.top:last-child { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--hair); }
.pointer-moved .nav-top:hover, .nav-top.is-current { color: var(--amber); }
.chevron { flex: none; width: 7px; height: 7px; margin: 0 3px 0 6px; border: solid var(--muted); border-width: 0 1.5px 1.5px 0; transform: rotate(-45deg); opacity: .7; transition: transform .2s var(--ease); }
details[open] > summary > .chevron { transform: rotate(45deg); }
.groups details ul { margin: 2px 0 8px 15px; padding-left: 10px; border-left: 1px solid var(--hair); }
.nav-link { position: relative; display: block; padding: 3px 8px; border-radius: 6px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.pointer-moved .nav-link:hover { color: var(--strong); background: var(--hover); }
.nav-link.is-current { color: var(--amber); font-weight: 600; background: var(--amber-soft); }
.groups details ul .nav-link.is-current::before { content: ""; position: absolute; left: -11px; top: 5px; bottom: 5px; width: 2px; border-radius: 2px; background: var(--amber); }
details.sub > summary { gap: 0; padding: 0; }
.pointer-moved details.sub > summary:hover { background: none; }
details.sub > summary > .nav-link { flex: 1; }
.sitelinks { display: none; flex-wrap: wrap; gap: 2px 4px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--hair); }
.sitelinks a { padding: 3px 8px; border-radius: 6px; font-size: 13px; color: var(--muted); }
.sitelinks a:hover { color: var(--strong); background: var(--hover); }
.sitelinks a[aria-current] { color: var(--amber); }
@supports selector(::details-content) {
  :root { interpolate-size: allow-keywords; }
  .groups details::details-content { block-size: 0; overflow: clip; transition: block-size .22s var(--ease), content-visibility .22s allow-discrete; }
  .groups details[open]::details-content { block-size: auto; }
}

.hero { grid-area: hero; position: relative; isolation: isolate; padding-block: clamp(22px, .6rem + 2.6vw, 52px) clamp(16px, .4rem + 1.6vw, 30px); }
.hero-art { position: absolute; z-index: -1; inset: 0 calc(-1 * var(--gutter)) -12px var(--art-start); background: url("assets/gens.webp") 50% 28% / cover; opacity: var(--art-opacity); -webkit-mask-image: linear-gradient(90deg, transparent 0 5rem, #000 22rem, #000 86%, transparent), linear-gradient(180deg, #000 20%, transparent 96%); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0 5rem, #000 22rem, #000 86%, transparent), linear-gradient(180deg, #000 20%, transparent 96%); mask-composite: intersect; pointer-events: none; }
[data-mode=atlas] .hero-art { background-image: url("assets/islands.webp"); background-position: 50% 50%; }
[data-mode=index] .hero { padding-block: clamp(18px, .5rem + 1.8vw, 38px) clamp(12px, .3rem + 1vw, 22px); }
.hero-inner { position: relative; max-width: min(100%, 54rem); }
.crumb { display: flex; flex-wrap: wrap; gap: 2px 8px; margin-bottom: 6px; font-size: 13px; color: var(--muted); }
.crumb a { }
.crumb a:hover { color: var(--amber); }
.crumb span { opacity: .55; }
h1 { font: 800 clamp(2.25rem, 1.3rem + 2.7vw, 3.75rem)/.98 var(--display); letter-spacing: .005em; text-transform: uppercase; color: var(--strong); text-shadow: .055em .055em 0 var(--title-shadow); text-wrap: balance; }
[data-mode=index] h1 { font-size: clamp(2rem, 1.2rem + 2.2vw, 3.1rem); }

.toc { grid-area: toc; position: sticky; top: calc(var(--head-h) + 24px); align-self: start; max-height: calc(100vh - var(--head-h) - 48px); overflow-y: auto; padding: 4px 0 24px; }
.toc-title { margin-bottom: 10px; font-size: 14px; font-weight: 600; color: var(--muted); }
.toc-toggle { display: none; }
.toc-list { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--hair); }
.toc-list a { display: block; margin-left: -1px; padding: 3px 0 3px 12px; border-left: 2px solid transparent; font-size: 13px; line-height: 1.4; color: var(--muted); }
.toc-sub a { padding-left: 22px; font-size: 12.5px; }
.toc-list a:hover { color: var(--strong); }
.toc-list a.current { color: var(--amber); border-left-color: var(--amber); }
[data-rail=inline] .toc { position: sticky; top: var(--head-h); z-index: 30; display: flex; align-items: center; gap: 18px; height: var(--toc-bar); max-height: none; overflow: visible; margin: 0 -12px clamp(16px, .8rem + 1vw, 26px); padding: 0 12px; background: var(--page); border-bottom: 1px solid var(--hair); }
[data-rail=inline] .toc-title { flex: none; margin: 0; }
[data-rail=inline] .toc-list { display: flex; flex: 1; min-width: 0; gap: 20px; overflow: hidden; white-space: nowrap; border: 0; }
[data-rail=inline] .toc-list::-webkit-scrollbar { display: none; }
[data-rail=inline] .toc-list a { margin: 0; padding: 0; line-height: calc(var(--toc-bar) - 3px); border: 0; border-bottom: 2px solid transparent; }
[data-rail=inline] .toc-list a.current { border-bottom-color: var(--amber); }
[data-rail=inline] .toc-sub { display: none; }
.toc-more { display: none; position: relative; flex: none; }
[data-rail=inline] .toc-more:not([hidden]) { display: block; }
.toc-more-button { display: flex; align-items: center; gap: 7px; height: calc(var(--toc-bar) - 1px); padding: 0 2px; font: 600 13px/1 var(--body); color: var(--muted); white-space: nowrap; background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer; }
.toc-more-button::after { content: ""; width: 6px; height: 6px; margin-top: -3px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.toc-more-button:hover, .toc-more.open .toc-more-button { color: var(--strong); }
.toc-more-button.current { color: var(--amber); border-bottom-color: var(--amber); }
.toc-overflow { display: none; position: absolute; z-index: 45; top: 100%; right: 0; min-width: 13rem; max-height: 60vh; overflow-y: auto; margin: 0; padding: 6px; list-style: none; background: var(--raised); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.toc-more.open .toc-overflow { display: block; }
.toc-overflow li { display: block; }
.toc-overflow a { display: block; padding: 6px 10px; border-radius: 6px; font-size: 13.5px; line-height: 1.35; color: var(--text); white-space: nowrap; }
.toc-overflow a:hover { background: var(--hover); color: var(--strong); }
.toc-overflow a.current { color: var(--amber); }
.toc-overflow .toc-sub { display: none; }

.main { grid-area: main; min-width: 0; padding-bottom: clamp(40px, 5vw, 80px); outline: none; }
.part + .part { margin-top: clamp(34px, 1.4rem + 1.6vw, 56px); }
.part > * + * { margin-top: .85em; }
.part > h2 + * { margin-top: .75em; }
.part > h3 + *, .part > h4 + * { margin-top: .45em; }
.part > p, .part > ul, .part > ol, .part > blockquote, .part > pre, .part > h3, .part > h4, .part > h5, .part > .group, .part > .qa-list, .part > .formula, .part > .deflist { max-width: 68ch; }
.part > h3, .part > h4, .part > .minor-heading { margin-top: 1.6em; }
.part h2 { position: relative; font-size: 1.5rem; font-weight: 600; line-height: 1.25; letter-spacing: -.005em; color: var(--strong); }
.part h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.35; color: var(--strong); }
.part h4, .part h5, .part h6, .minor-heading { font-size: 1rem; font-weight: 600; color: var(--strong); }
.heading-anchor { display: inline-flex; vertical-align: middle; margin-left: 8px; color: var(--muted); opacity: 0; }
.part h2 .heading-anchor { margin-left: -3px; }
.heading-anchor svg { width: 14px; height: 14px; }
h2:hover > .heading-anchor, h3:hover > .heading-anchor, h4:hover > .heading-anchor, .heading-anchor:focus-visible { opacity: 1; }
.heading-anchor:hover { color: var(--amber); }
@media (hover: none) { .heading-anchor { opacity: .45; } }
.article :target { animation: target 1.6s var(--ease); }
@keyframes target { from { background: var(--amber-soft); } }

.lede { margin-top: clamp(10px, .35rem + .5vw, 16px); max-width: var(--lede-measure); font-size: clamp(1.125rem, .95rem + .45vw, 1.3125rem); line-height: 1.5; color: var(--lede); text-wrap: pretty; }
.lede a { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--amber) 55%, transparent); text-underline-offset: 3px; }
.lede a:hover { color: var(--amber); }

.article strong { color: var(--strong); font-weight: 650; }
.article a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, var(--amber) 50%, transparent); text-underline-offset: 3px; }
.article a:hover { color: var(--amber); text-decoration-color: currentColor; }
.article a.heading-anchor { color: var(--muted); text-decoration: none; }
.article a.heading-anchor:hover { color: var(--amber); }

.part ul:not([class]) { list-style: none; padding-left: 1.35em; }
.part ul:not([class]) > li { position: relative; }
.part ul:not([class]) > li::before { content: ""; position: absolute; left: -1em; top: .68em; width: 5px; height: 5px; border-radius: 50%; background: var(--muted); }
.part li > ul:not([class]) { padding-left: 1.3em; }
.part ul:not([class]) ul:not([class]) > li::before { width: 5px; height: 5px; background: none; border: 1px solid var(--muted); }
.part li + li { margin-top: .32em; }
.part li > ul, .part li > ol { margin-top: .3em; }
.part ol:not(.steps) { padding-left: 1.4em; }
.part ol:not(.steps) > li::marker { color: var(--muted); font-weight: 650; font-variant-numeric: tabular-nums; }

ol.steps { list-style: none; padding: 0; counter-reset: step; }
ol.steps > li { position: relative; padding: 0 0 .45em 1.9em; counter-increment: step; }
ol.steps > li + li { margin-top: 0; }
ol.steps > li:last-child { padding-bottom: 0; }
ol.steps > li::before { content: counter(step) "."; position: absolute; left: 0; top: 0; width: 1.6em; font-family: var(--body); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--amber); }

.group > * + * { margin-top: .45em; }
.group-label { font-weight: 600; color: var(--strong); }
.group > .table-block { margin-top: .5em; }

dl.deflist { display: grid; grid-template-columns: fit-content(16rem) minmax(0, 1fr); margin: 0; }

dl.deflist > div { display: contents; }
dl.deflist dt, dl.deflist dd { padding: 5px 0 6px; }
dl.deflist > div:first-child > dt, dl.deflist > div:first-child > dd { border-top: 0; padding-top: 2px; }
dl.deflist dt { padding-right: clamp(16px, 1rem + 1vw, 32px); font-weight: 650; color: var(--strong); }
dl.deflist dd { margin: 0; color: var(--text); font-variant-numeric: tabular-nums; }
dl.deflist dd > * + * { margin-top: .4em; }

.qa-list { display: flex; flex-direction: column; gap: 8px; }
.qa { position: relative; padding: 12px 18px 13px 50px; background: var(--surface); border: 1px solid var(--hair); border-radius: 8px; }
.qa::before { content: "?"; position: absolute; left: 15px; top: 13px; display: grid; place-items: center; width: 22px; height: 22px; font: 700 14px/1 var(--body); color: #2c1607; background: #ff9c3e; border-radius: 50%; }
.q { font-weight: 650; font-size: 1.03em; color: var(--strong); line-height: 1.45; }
.a { margin-top: 5px; color: var(--text); }
@media (max-width: 560px) {
  .qa { padding: 11px 14px 12px 44px; }
  .qa::before { left: 12px; top: 12px; }
}

.formula { padding: 10px 16px; font: 600 1.05em/1.6 var(--body); font-variant-numeric: tabular-nums; color: var(--strong); background: var(--surface); border-left: 2px solid var(--amber); }
.formula .op { color: var(--amber); font-weight: 700; }
.group > .formula { margin-top: .5em; }

.callout { padding: 0; }
.callout-label { margin-right: 4px; font-weight: 600; color: var(--amber); }

blockquote.quote { padding: 2px 0 2px 16px; border-left: 2px solid var(--amber); }
blockquote > * + * { margin-top: .5em; }
blockquote.tooltip { display: inline-block; max-width: 100%; padding: 6px 8px 8px; font: 400 18px/20px var(--game); color: #aaaaaa; text-shadow: 2px 2px 0 #2a2a2a; background: linear-gradient(#100010f0, #100010f0) padding-box, linear-gradient(#5000ff, #28007f) border-box; border: 2px solid transparent; outline: 2px solid #100010f0; outline-offset: 0; }

.entry { padding: clamp(12px, .55rem + .6vw, 18px) clamp(14px, .7rem + .8vw, 22px) clamp(14px, .6rem + .7vw, 20px); background: var(--surface); border-radius: 4px; }
.part > .entry + .entry { margin-top: 10px; }
.entry > * + * { margin-top: .6em; }
.entry > h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; font-size: 1.08em; }
.entry > h3 + * { margin-top: .55em; }
.entry > blockquote.tooltip + * { margin-top: .8em; }
.entry > p, .entry > ul, .entry > ol, .entry > .group, .entry > .formula, .entry > .deflist { max-width: var(--measure); }
.entry .table-frame { margin-inline: -12px; }
.entry > h3 { font-size: 1.125rem; }
h3 .badge, h2 .badge { font-size: .78em; }

ul.see-also { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
ul.see-also > li + li { margin-top: 0; }
.article a.see-tile { display: inline-flex; align-items: center; gap: 9px; min-height: 34px; padding: 5px 12px 5px 10px; color: var(--text); text-decoration: none; background: var(--surface); border-radius: 4px; }
.article a.see-tile:hover { color: var(--strong); background: var(--amber-soft); }
.see-title { font-weight: 600; }
.see-note { font-size: .86em; color: var(--muted); }
.nav-icon.akuma { background: url("assets/akuma.png") center / 16px 16px; }

ul.page-index { columns: 2 19rem; column-gap: var(--gap); margin: 0; padding: 0; list-style: none; }
ul.page-index > li { display: flex; gap: 11px; padding: 7px 0; break-inside: avoid; }
ul.page-index > li + li { margin-top: 0; }
ul.page-index .nav-icon { margin-top: 4px; }
.index-title { line-height: 1.4; }
.article .index-title a { font-weight: 650; color: var(--strong); text-decoration: none; }
.article .index-title a:hover { color: var(--amber); }
.index-text { margin-top: 1px; font-size: .92em; line-height: 1.5; color: var(--muted); }

code, pre, kbd, var { font-family: var(--mono); }
code.code { padding: 0 .1em; font: 400 .9em/1 var(--mono); color: var(--code-text); }
code.cmd { position: relative; display: inline; max-width: 100%; padding: .2em .5em .25em; font: 500 .88em/1.4 var(--mono); font-style: normal; color: #ffffff; white-space: nowrap; vertical-align: .05em; background: var(--chat); border-radius: 0; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
code.cmd[data-copy] { cursor: copy; }
code.cmd[data-copy]:hover, code.cmd[data-copy]:focus-visible { background: #000000e6; box-shadow: inset 0 -2px 0 #ffffff26; }
.cmd-slash { color: #ffffff; }
.cmd-name { color: #ffffff; }
.cmd var { font-style: normal; color: #55ffff; }
.cmd var:nth-of-type(5n+2) { color: #ffff55; }
.cmd var:nth-of-type(5n+3) { color: #55ff55; }
.cmd var:nth-of-type(5n+4) { color: #ff55ff; }
.cmd var:nth-of-type(5n+5) { color: #ffaa00; }
code.cmd.copied { background: #3a2410; box-shadow: inset 0 -2px 0 var(--amber); }
.actionbar { position: fixed; z-index: 60; left: 50%; bottom: max(28px, env(safe-area-inset-bottom)); max-width: calc(100vw - 32px); padding: 4px 10px 5px; font: 500 14px/1.4 var(--body); color: #ffffff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: #000000b8; transform: translate(-50%, 6px); opacity: 0; pointer-events: none; transition: opacity .2s var(--ease), transform .2s var(--ease); }
.actionbar.show { opacity: 1; transform: translate(-50%, 0); }
a > code.cmd { color: inherit; }
td code.cmd { white-space: nowrap; }
pre { display: table; max-width: 100%; overflow-x: auto; padding: 6px 12px 8px; font: 400 18px/20px var(--game); color: #ffffff; text-align: center; text-shadow: 2px 2px 0 #3f3f3f; background: #000000b0; border-radius: 0; }
pre code { font: inherit; }
hr { height: 1px; border: 0; background: var(--hair); }
.article img { max-width: 100%; }
.article td img { max-width: none; }
@media (max-width: 620px) {
  code.cmd { white-space: normal; }
  code.cmd var, .cmd-head { white-space: nowrap; }
  dl.deflist { grid-template-columns: minmax(0, 1fr); }
  dl.deflist.short-terms { grid-template-columns: fit-content(42%) minmax(0, 1fr); }
  dl.deflist.short-terms dd { padding-top: 5px; }
  dl.deflist.short-terms dt { padding-bottom: 6px; }
  dl.deflist.short-terms > div:first-child > dd { padding-top: 4px; }
  dl.deflist dd { padding-top: 0; border-top: 0; }
  dl.deflist > div:first-child > dd { padding-top: 0; }
  dl.deflist dt { padding-bottom: 2px; }
}

.table-block { max-width: 100%; }
.table-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 6px; }
.table-filter { display: flex; align-items: center; gap: 7px; flex: 0 1 15rem; min-width: 0; height: 30px; padding: 0 9px; background: var(--field); border: 1px solid var(--hair); border-radius: 7px; }
.table-filter:focus-within { border-color: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); }
.table-filter svg { color: var(--muted); }
.table-filter input { flex: 1; min-width: 0; font-size: 13px; background: none; border: 0; outline: none; }
.table-count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.table-reset { height: 26px; padding: 0 10px; font-size: 12px; font-weight: 600; color: var(--amber); background: none; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
.table-reset:hover { background: var(--amber-soft); }
.table-reset[hidden] { display: none; }
.table-hint { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 6px; padding: 2px 9px 3px; font: 600 12.5px/1.4 var(--body); color: var(--amber); background: var(--amber-soft); border: 0; border-radius: 6px; cursor: pointer; }
.table-hint::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(-45deg); }
.table-hint[hidden] { display: none; }
.table-frame { position: relative; margin-inline: -12px; }
.table-frame::before, .table-frame::after { content: ""; position: absolute; z-index: 3; top: 0; bottom: 0; width: 18px; pointer-events: none; opacity: 0; transition: opacity .15s; }
.table-frame::after { right: 0; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--page) 70%, transparent)); box-shadow: inset -2px 0 0 color-mix(in srgb, var(--amber) 55%, transparent); }
.table-frame::before { left: var(--stuck, 0px); background: linear-gradient(270deg, transparent, color-mix(in srgb, var(--page) 70%, transparent)); }
.table-frame.more-right::after, .table-frame.more-left::before { opacity: 1; }
.tablebox { overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; }
.tablebox.is-fitting { overflow: visible; }
.tablebox.is-scrolling { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.tablebox.is-scrolling::-webkit-scrollbar { height: 8px; }
.tablebox.is-scrolling::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }
table { width: auto; max-width: none; border-collapse: separate; border-spacing: 0; font-size: .92em; line-height: 1.4; font-variant-numeric: tabular-nums; }
th, td { padding: 6px 12px; text-align: left; vertical-align: middle; }
th { position: relative; z-index: 2; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--page); border-bottom: 1px solid var(--line); box-shadow: 0 -3px 0 var(--page); }
th { min-width: 3.5em; }
table.is-long { font-size: .85em; }
table.is-long td { padding-block: 4px; }
td { border-bottom: 0; }
td.align-right, td.nw { white-space: nowrap; }
td.cell-wrap, th.cell-wrap { min-width: 9em; max-width: 26em; }
td.sparse, th.sparse { max-width: 14em; }
td code.cmd, th code.cmd { white-space: normal; }
td code.cmd var { white-space: nowrap; }
td code.code { overflow-wrap: normal; word-break: normal; }
tbody tr { background: none; }
tbody tr:nth-child(even) { background: var(--zebra); }
tbody tr:hover { background: var(--row-hover); }
th.align-right, td.align-right { text-align: right; }
th.align-center, td.align-center { text-align: center; }
th.align-left, td.align-left { text-align: left; }
td.after-num, th.after-num { padding-left: 26px; }
table:not(.numbered):not(.grid) td:first-child { font-weight: 600; color: var(--strong); }
table.numbered td:first-child { color: var(--muted); }
[data-mode=index] table.numbered td:first-child { color: var(--amber); font-weight: 600; }
table.named td:nth-child(2) { font-weight: 650; color: var(--strong); }
table.headless thead { display: none; }
table.equal { table-layout: fixed; }
table.equal td, table.equal th { overflow-wrap: normal; white-space: normal; }
table.equal td.align-right { overflow-wrap: normal; }
table.grid td { white-space: normal; }
td img { max-width: none; margin: -2px 8px -2px 0; vertical-align: middle; image-rendering: pixelated; }
td img.block-icon { width: 20px; height: 20px; image-rendering: auto; }
.tablebox.is-scrolling .stuck { position: sticky; z-index: 2; background: var(--page); }
.tablebox.is-scrolling thead .stuck { z-index: 4; }
.tablebox.is-scrolling tbody tr:nth-child(even) .stuck { background: linear-gradient(var(--zebra), var(--zebra)), var(--page); }
.table-frame.more-left .stuck:last-of-type, .table-frame.more-left tr > .stuck + .stuck { box-shadow: 8px 0 10px -8px #00000099; }
[data-theme=light] .table-frame.more-left .stuck:last-of-type, [data-theme=light] .table-frame.more-left tr > .stuck + .stuck { box-shadow: 8px 0 10px -8px #5a3a1a55; }
.head-floating thead th { box-shadow: 0 -3px 0 var(--page), 0 6px 10px -8px #00000080; }
.tablebox.stacked table, .tablebox.stacked tbody, .tablebox.stacked tr, .tablebox.stacked td { display: block; width: auto; }
.tablebox.stacked { overflow: visible; }
.tablebox.stacked table { width: 100%; }
.tablebox.stacked thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.tablebox.stacked tbody tr { padding: 9px 12px 10px; background: none; }
.tablebox.stacked tbody tr:nth-child(even) { background: var(--zebra); }
.tablebox.stacked td { display: flow-root; padding: 2px 0 2px calc(6.5rem + 10px); white-space: normal; text-align: left; }
.tablebox.stacked td::before { content: attr(data-label); float: left; width: 6.5rem; margin: 1px 0 0 calc(-6.5rem - 10px); font-size: 12.5px; font-weight: 600; line-height: 1.4; color: var(--muted); }
.tablebox.stacked td.empty { display: none; }
.tablebox.stacked td, .tablebox.stacked td.sparse, .tablebox.stacked td.cell-wrap { min-width: 0; max-width: none; }
.tablebox.stacked td:first-child { padding: 0 0 4px; font-size: 1.05em; }
.tablebox.stacked td:first-child::before { content: none; }
.tablebox.stacked table.numbered td:first-child::before { content: attr(data-label) " "; float: none; width: auto; margin: 0; font: inherit; color: inherit; }
.tablebox.stacked td.after-num { padding-left: calc(6.5rem + 10px); }
.tablebox.stacked td img { margin-right: 6px; }
.sort-button { display: inline-flex; align-items: center; gap: 4px; padding: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; text-align: inherit; background: none; border: 0; cursor: pointer; }
.sort-button:hover { color: var(--strong); }
th.align-right .sort-button { flex-direction: row-reverse; }
.sort-indicator { display: inline-flex; opacity: 0; }
th:hover .sort-indicator { opacity: .5; }
th[aria-sort=ascending] .sort-indicator, th[aria-sort=descending] .sort-indicator { color: var(--amber); opacity: 1; }
th[aria-sort=ascending] .sort-arrow-down, th[aria-sort=descending] .sort-arrow-up { opacity: .2; }
.table-empty td { text-align: center; font-style: italic; color: var(--muted); }

.badge { display: inline-flex; align-items: center; gap: 7px; font-size: .92em; font-weight: 600; color: var(--ink); white-space: nowrap; }
.badge::before { content: ""; flex: none; width: 6px; height: 6px; margin: 0 1px; background: currentColor; transform: rotate(45deg); }
.Common { --ink: #bcb6a9; } .Rare { --ink: #8cb5de; } .Epic { --ink: #c39ee2; } .Legendary { --ink: #e9bb5e; } .Masterful { --ink: #e39989; }
.Mythic { --ink: #e597d4; } .Mythical, .Magical, .Enhanced, .Advanced { --ink: #d79ce0; } .Divine { --ink: #e2d27a; } .Basic { --ink: #a9a49d; }
.Treasure, .Ultimate, .Expert { --ink: #e39989; } .Simple { --ink: #a8c98f; } .Super { --ink: #8fcfcc; }
[data-theme=light] .Common { --ink: #6b6253; } [data-theme=light] .Rare { --ink: #2f689e; } [data-theme=light] .Epic { --ink: #7b4bab; }
[data-theme=light] .Legendary { --ink: #855a00; } [data-theme=light] .Masterful, [data-theme=light] .Treasure, [data-theme=light] .Ultimate, [data-theme=light] .Expert { --ink: #ad4433; }
[data-theme=light] .Mythic { --ink: #a83a8c; } [data-theme=light] .Mythical, [data-theme=light] .Magical, [data-theme=light] .Enhanced, [data-theme=light] .Advanced { --ink: #9a3fa3; }
[data-theme=light] .Divine { --ink: #6f6000; } [data-theme=light] .Basic { --ink: #66615b; } [data-theme=light] .Simple { --ink: #476c2d; } [data-theme=light] .Super { --ink: #1c6b68; }

.pager { display: flex; justify-content: space-between; gap: 16px; max-width: var(--measure); margin-top: clamp(48px, 2.5rem + 2vw, 80px); }
.pager a { display: flex; flex-direction: column; min-width: 0; max-width: 48%; }
.pager-next { margin-left: auto; text-align: right; }
.pager small { font-size: 12px; color: var(--muted); }
.pager span { font-weight: 600; color: var(--strong); }
.pager a:hover span { color: var(--amber); }

.sprite { display: inline-block; flex: none; width: 32px; height: 32px; margin-top: 2px; background: url("assets/wiki-sections.png") 0 calc(var(--sprite-y) * 2) / 32px 640px; image-rendering: pixelated; }
.sprite.list-icon { background: linear-gradient(var(--amber), var(--amber)) 4px 6px / 24px 4px no-repeat, linear-gradient(var(--amber), var(--amber)) 4px 14px / 24px 4px no-repeat, linear-gradient(var(--amber), var(--amber)) 4px 22px / 16px 4px no-repeat; }
.home-sections { columns: 2 24rem; column-gap: var(--gap); margin-top: clamp(24px, 1rem + 1vw, 36px); }
.home-sections > .part { break-inside: avoid; margin: 0 0 clamp(22px, 1rem + 1vw, 34px); }
.entry-list { margin: 0; padding: 0; list-style: none; }
.part .entry-list { max-width: none; padding: 0; }
.entry-list > li { display: flex; gap: 12px; padding: 7px 0; }
.part .entry-list > li + li { margin-top: 0; }
.entry-head { line-height: 1.5; }
.article .entry-head > a:not(.heading-anchor) { font-weight: 650; color: var(--strong); text-decoration: none; }
.article .entry-head > a:hover { color: var(--amber); }
.entry-text { color: var(--muted); }
.entry-links { margin-top: 3px; font-size: 13px; line-height: 1.55; color: var(--muted); }
.article .entry-links a:not(.heading-anchor) { color: var(--text); text-decoration-color: var(--line); }
.article .entry-links a:not(.heading-anchor):hover { color: var(--amber); text-decoration-color: currentColor; }
.question-list { margin: 0; padding: 0; list-style: none; }
.part .question-list { max-width: none; padding: 0; }
.question-list > li { margin: 0; }
.part .question-list > li + li { margin-top: 0; }
.article .question-list a:not(.heading-anchor) { display: flex; justify-content: space-between; gap: 12px; padding: 8px 2px; color: var(--text); text-decoration: none; }
.article .question-list a:hover { color: var(--amber); }

.all-pages { columns: 3 15rem; column-gap: var(--gap); }
.all-pages-group { break-inside: avoid; margin-bottom: clamp(22px, 2vw, 34px); }
.all-pages-group h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 1.15rem; font-weight: 600; color: var(--strong); }
.article .all-pages-group h2 a { color: inherit; text-decoration: none; }
.article .all-pages-group h2 a:hover { color: var(--amber); }
.all-pages-group ul { margin: 0; padding: 0; list-style: none; }
.all-pages-group ul ul { margin: 1px 0 4px 3px; padding-left: 11px; border-left: 1px solid var(--hair); }
.article .all-pages-group li a { display: block; padding: 2px 0; font-size: 14px; color: var(--text); text-decoration: none; }
.article .all-pages-group li a:hover { color: var(--amber); }
.page-all-pages .part-lead > p > a { margin-left: 4px; }
.all-pages { margin-top: clamp(24px, 1rem + 1vw, 36px); }

.site-foot { border-top: 1px solid var(--hair); }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; max-width: 1600px; margin-inline: auto; padding: 18px var(--gutter) 22px; font-size: 13px; color: var(--muted); }
.foot-inner .brand img { width: 24px; height: 24px; }
.foot-inner .brand-name { font-size: 16px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-left: auto; }
.foot-links a { }
.foot-links a:hover { color: var(--amber); }

.theme-switching, .theme-switching *, .theme-switching *::before, .theme-switching *::after { transition: background-color .25s, color .25s, border-color .25s, opacity .25s !important; }
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }

.glue, .cmd-head { white-space: nowrap; }
.swatch { display: inline-block; width: .9em; height: .9em; margin-right: .35em; vertical-align: -.1em; background: var(--swatch); border-radius: 3px; box-shadow: 0 0 0 1px #00000040, inset 0 0 0 1px #ffffff26; }
.article .all-pages-group h2 a { text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, var(--amber) 45%, transparent); text-underline-offset: 4px; }
code.cmd { padding: .12em .36em .16em; margin-inline: .04em; }
.glue > code.cmd { padding-inline: .2em; margin-inline: 0; }
.glue { margin-right: .06em; }
h2 code.cmd, h3 code.cmd, h4 code.cmd { font-size: .78em; vertical-align: .12em; }
.formula-label { margin-right: 6px; font-weight: 600; color: var(--amber); }
.formula + * , .group + * { margin-top: 1em; }
.group > .formula + *, .group > p + .deflist, .group > p + ul, .group > p + ol { margin-top: .6em; }
dl.deflist > div:first-child > dt, dl.deflist > div:first-child > dd { padding-top: 4px; }
dd.cap::first-letter, .index-text.cap::first-letter { text-transform: uppercase; }
.index-cmds { margin-left: 6px; font-size: .92em; }
.index-cmds code.cmd { font-size: .82em; }
[data-theme=light] .nav-icon, [data-theme=light] .sprite:not(.list-icon) { filter: drop-shadow(0 0 .6px #2e241bcc) drop-shadow(0 0 .6px #2e241b99); }
td img.item-icon, td img.block-icon { filter: drop-shadow(0 0 1px #ffffff40); }
[data-theme=light] td img.item-icon, [data-theme=light] td img.block-icon { filter: drop-shadow(0 0 .6px #2e241bcc) drop-shadow(0 0 .6px #2e241b80); }
.question-list > li { position: relative; }
.article .question-list a:not(.heading-anchor) { display: flex; justify-content: flex-start; align-items: baseline; gap: 10px; padding: 7px 2px; color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: color-mix(in srgb, var(--amber) 45%, transparent); text-underline-offset: 3px; }
.article .question-list a:not(.heading-anchor)::before { content: "?"; flex: none; display: grid; place-items: center; width: 18px; height: 18px; font: 700 12px/1 var(--body); color: #2c1607; background: #ff9c3e; border-radius: 50%; text-decoration: none; transform: translateY(2px); }
.article .question-list a:not(.heading-anchor):hover { color: var(--amber); text-decoration-color: currentColor; }
.all-pages-home { margin-bottom: clamp(22px, 2vw, 34px); }

@media (max-width: 620px) {
  th, td { padding-inline: 7px; }
  .table-frame, .entry .table-frame { margin-inline: -7px; }
  .tablebox.stacked tbody tr { padding-inline: 7px; }
}
@media (max-width: 1280px) {
  .discord { width: 34px; padding: 0; justify-content: center; }
  .discord span { display: none; }
}
@media (max-width: 1180px) {
  .wiki-tag, .mainnav a:not([aria-current]) { display: none; }
  .sitelinks { display: flex; }
  [data-rail=side] .layout { grid-template-columns: var(--nav-w) minmax(0, 1fr); grid-template-areas: "nav hero" "nav toc" "nav main"; }
  [data-rail=side] .toc { grid-area: toc; }
  html:has(body[data-rail=side]) { --toc-bar: 41px; }
  [data-rail=side] .toc { position: sticky; top: var(--head-h); z-index: 30; display: flex; align-items: center; gap: 18px; height: var(--toc-bar); max-height: none; overflow: visible; margin: 0 -12px clamp(16px, .8rem + 1vw, 26px); padding: 0 12px; background: var(--page); border-bottom: 1px solid var(--hair); }
  [data-rail=side] .toc-title { flex: none; margin: 0; }
  [data-rail=side] .toc-list { display: flex; flex: 1; min-width: 0; gap: 20px; overflow: hidden; white-space: nowrap; border: 0; }
  [data-rail=side] .toc-list::-webkit-scrollbar { display: none; }
  [data-rail=side] .toc-list a { margin: 0; padding: 0; line-height: calc(var(--toc-bar) - 3px); border: 0; border-bottom: 2px solid transparent; }
  [data-rail=side] .toc-list a.current { border-bottom-color: var(--amber); }
  [data-rail=side] .toc-sub { display: none; }
  [data-rail=side] .toc-more:not([hidden]) { display: block; }
}
@media (max-width: 860px) {
  :root { --head-h: 52px; }
  .menu { display: flex; }
  .wiki-tag, .discord { display: none; }
  .searchbox { margin-inline: 4px 0; max-width: none; }
  .search-panel { position: fixed; top: calc(var(--head-h) + 6px); left: 8px; right: 8px; width: auto; }
  .layout, [data-rail] .layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "nav" "hero" "toc" "main"; }
  .sidebar { margin: 0; height: auto; }
  .js .sidebar { position: fixed; z-index: 39; top: var(--head-h); left: 0; right: 0; max-height: calc(100dvh - var(--head-h)); background: var(--page); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s linear .18s; }
  .js .sidebar.open { opacity: 1; visibility: visible; transform: none; transition: opacity .18s var(--ease), transform .18s var(--ease); }
  .js .sidebar-scroll { max-height: calc(100dvh - var(--head-h)); padding: 12px var(--gutter) 28px; }
  .hero-art { inset: 0 calc(-1 * var(--gutter)) 48% 30%; opacity: var(--art-opacity); -webkit-mask-image: linear-gradient(90deg, transparent, #000 55%), linear-gradient(180deg, #000 20%, transparent 85%); mask-image: linear-gradient(90deg, transparent, #000 55%), linear-gradient(180deg, #000 20%, transparent 85%); }
  .js .toc { display: block; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .js .toc-title { display: none; }
  .js .toc-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; height: calc(var(--toc-bar) - 1px); padding: 0; font-size: 14px; font-weight: 600; color: var(--muted); background: none; border: 0; cursor: pointer; }
  .js .toc-toggle[aria-expanded=true] .chevron { transform: rotate(45deg); }
  .js .toc .toc-list { position: absolute; top: 100%; left: 0; right: 0; display: block; max-height: 60vh; overflow-y: auto; padding: 6px var(--gutter) 12px; white-space: normal; background: var(--page); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); -webkit-mask-image: none; mask-image: none; }
  .js .toc:not(.open) .toc-list { display: none; }
  .js .toc .toc-list li:last-child { padding-right: 0; }
  .js .toc .toc-list a { padding: 6px 0; line-height: 1.4; border: 0; }
  .js .toc .toc-list a.current { border: 0; }
  .home-sections, .all-pages { columns: 1; }
  .pager a { max-width: 50%; }
}
@media (max-width: 520px) {
  .brand-name { display: none; }
  kbd { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .announce, .site-head, .hero-art, .sidebar, .toc, .pager, .table-toolbar, .heading-anchor, .skip-link, .site-foot { display: none !important; }
  .layout { display: block; }
  th { position: static; }
  .tablebox, .tablebox.is-boxed { max-height: none; overflow: visible; }
}
