@font-face {
    font-family: "IBM Plex Sans";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/assets/fonts/ibm-plex-sans-latin-400.woff2") format("woff2");
}

@font-face {
    font-family: "IBM Plex Sans";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/assets/fonts/ibm-plex-sans-latin-600.woff2") format("woff2");
}

@font-face {
    font-family: "IBM Plex Sans";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/assets/fonts/ibm-plex-sans-latin-700.woff2") format("woff2");
}

@font-face {
    font-family: "IBM Plex Serif";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/assets/fonts/ibm-plex-serif-latin-400.woff2") format("woff2");
}

@font-face {
    font-family: "IBM Plex Serif";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/assets/fonts/ibm-plex-serif-latin-600.woff2") format("woff2");
}

@font-face {
    font-family: "IBM Plex Mono";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/assets/fonts/ibm-plex-mono-latin-400.woff2") format("woff2");
}

@font-face {
    font-family: "IBM Plex Mono";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/assets/fonts/ibm-plex-mono-latin-600.woff2") format("woff2");
}

:root {
    color-scheme: light;
    --page: #fff;
    --paper: #f8f9fa;
    --paper-2: #eaecf0;
    --ink: #202122;
    --muted: #54595d;
    --line: #a2a9b1;
    --line-soft: #c8ccd1;
    --link: #0645ad;
    --link-visited: #0b0080;
    --cyan: #36c;
    --warning: #fff8d6;
    --field: #fff;
    --field-ink: #202122;
    --header: #fff;
    --hover: #f8f9fa;
    --active: #fff;
    --focus: #36c;
    --overlay: rgba(0, 0, 0, 0.16);
    --steam-bg: #1b2838;
    --steam-hover: #2a475e;
    --radius: 2px;
    --sticky-offset: 118px;
    --breadcrumb-sticky-top: 0px;
    --wide-nav-width: 224px;
    --wide-header-offset: 84px;
    --font-sans: "IBM Plex Sans", "SF Pro Text", "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
    --font-display: "IBM Plex Serif", "Linux Libertine", "Iowan Old Style", Charter, Georgia, "Times New Roman", serif;
    --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --page: #101113;
    --paper: #17191d;
    --paper-2: #22262b;
    --ink: #f2f3f5;
    --muted: #b9c0c9;
    --line: #606976;
    --line-soft: #353b44;
    --link: #8fc6ff;
    --link-visited: #d2b7ff;
    --cyan: #7db9ff;
    --warning: #2c2618;
    --field: #111317;
    --field-ink: #f4f5f7;
    --header: #101113;
    --hover: #22262b;
    --active: #2b3138;
    --focus: #9dc5ff;
    --overlay: rgba(0, 0, 0, 0.45);
    --steam-bg: #25608f;
    --steam-hover: #3275ad;
}

* {
    box-sizing: border-box;
}

html {
    scroll-padding-top: var(--sticky-offset);
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.6;
}

a {
    color: var(--link);
    text-decoration: none;
}

a:visited {
    color: var(--link-visited);
}

a:hover {
    text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
select:focus-visible,
summary:focus-visible,
input:focus-visible,
.nav-item:focus-visible,
.steam-cta:focus-visible,
.quick-card:focus-visible,
.enemy-card-link:focus-visible,
.item-card-link:focus-visible,
.weapon-index-card-link:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}

button,
input,
select {
    font: inherit;
}

code {
    border: 1px solid var(--line-soft);
    border-radius: 2px;
    background: var(--paper);
    color: var(--ink);
    font: 0.92em/1.2 var(--font-mono);
    padding: 1px 4px;
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 200;
    transform: translateY(-140%);
    border: 1px solid var(--focus);
    border-radius: 2px;
    background: var(--field);
    color: var(--link);
    font-weight: 700;
    padding: 8px 10px;
    text-decoration: none;
    transition: transform 120ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.wiki-shell {
    min-height: 100vh;
}

.wiki-header {
    position: sticky;
    top: 0;
    z-index: 80;
    display: grid;
    grid-template-columns: minmax(max-content, 1fr) minmax(320px, 680px) minmax(max-content, 1fr);
    grid-template-areas:
        "brand search cta"
        "nav nav nav";
    align-items: center;
    gap: 10px 18px;
    border-bottom: 0;
    background: var(--header);
    box-shadow: 0 1px 0 var(--line-soft);
    padding: 10px 24px 0;
}

.wiki-header::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    height: 36px;
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    background: var(--paper);
    pointer-events: none;
}

.wiki-header > * {
    position: relative;
    z-index: 1;
}

.brand {
    grid-area: brand;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
}

.brand:visited {
    color: var(--ink);
}

.brand img {
    display: block;
    width: 88px;
    height: auto;
}

.brand span {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0;
}

.wiki-search-wrap {
    grid-area: search;
    justify-self: center;
    width: 100%;
    max-width: 680px;
    position: relative;
}

.search-box {
    display: block;
}

.search-box span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.search-box input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    outline: none;
    background: var(--field);
    color: var(--field-ink);
    padding: 7px 9px;
}

.search-box input:focus,
.table-filter input:focus,
.live-leaderboard-controls select:focus {
    border-color: var(--focus);
    box-shadow: inset 0 0 0 1px var(--focus);
}

.search-results {
    position: absolute;
    top: calc(100% + 3px);
    left: 0;
    right: 0;
    z-index: 50;
    display: grid;
    gap: 0;
    border: 1px solid var(--line);
    background: var(--field);
    box-shadow: 0 3px 12px var(--overlay);
    max-height: min(70vh, 560px);
    overflow-y: auto;
}

.search-results[hidden] {
    display: none;
}

.search-result-list {
    display: grid;
}

.search-result {
    display: block;
    border-bottom: 1px solid var(--line-soft);
    color: var(--link);
    padding: 7px 9px;
    text-decoration: none;
}

.search-result:last-child {
    border-bottom: 0;
}

.search-result:hover,
.search-result.active {
    background: var(--hover);
    text-decoration: none;
}

.search-result strong {
    display: block;
    color: var(--link);
    font-size: 14px;
    line-height: 1.25;
}

.search-result span,
.search-empty {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.search-empty {
    margin: 0;
    padding: 8px 9px;
}

.search-results-footer,
.search-results-count {
    border-top: 1px solid var(--line-soft);
    margin: 0;
    padding: 8px 9px;
}

.search-results-more {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: var(--paper);
    color: var(--link);
    cursor: pointer;
    font-weight: 700;
    padding: 7px 9px;
    text-align: center;
}

.search-results-more:hover,
.search-results-more:focus-visible {
    border-color: var(--focus);
    background: var(--hover);
}

.search-results-count {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.header-actions {
    grid-area: cta;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.steam-cta {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    border: 1px solid var(--steam-bg);
    border-radius: 2px;
    background: var(--steam-bg);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    padding: 7px 12px;
    text-decoration: none;
    white-space: nowrap;
}

.steam-cta:visited {
    color: #fff;
}

.steam-cta:hover {
    background: var(--steam-hover);
    border-color: var(--steam-hover);
    color: #fff;
    text-decoration: none;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: var(--field);
    color: var(--ink);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    padding: 6px 10px;
    white-space: nowrap;
}

.theme-toggle:hover {
    border-color: var(--focus);
    background: var(--hover);
}

.theme-toggle-icon {
    position: relative;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.theme-toggle-icon::after {
    content: "";
    position: absolute;
    top: -3px;
    right: -4px;
    width: 10px;
    height: 18px;
    border-radius: 50%;
    background: var(--field);
    opacity: 0;
    transition: opacity 120ms ease;
}

:root[data-theme="dark"] .theme-toggle-icon::after {
    opacity: 1;
}

.page-nav {
    grid-area: nav;
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 0;
    justify-content: center;
    justify-self: center;
    width: min(100%, 1240px);
    min-width: 0;
    margin: 0;
    overflow-x: auto;
    border: 0;
    background: transparent;
    padding: 0 12px;
    scrollbar-width: thin;
}

.mobile-page-menu {
    display: none;
    grid-area: nav;
}

.mobile-page-menu span {
    display: block;
    margin: 0 0 4px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
}

.mobile-page-menu select {
    width: 100%;
    min-height: 36px;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: var(--field);
    color: var(--field-ink);
    padding: 6px 9px;
}

.local-index-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 620px;
    margin: 8px 0 14px;
}

.local-index-filter label {
    color: var(--ink);
    font-weight: 700;
    white-space: nowrap;
}

.local-index-filter input {
    width: 100%;
    min-height: 36px;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: var(--field);
    color: var(--field-ink);
    padding: 6px 9px;
}

.local-index-filter input:focus {
    border-color: var(--focus);
    box-shadow: inset 0 0 0 1px var(--focus);
    outline: none;
}

.nav-item {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    min-width: max-content;
    border: 0;
    border-right: 1px solid var(--line-soft);
    border-bottom: 2px solid transparent;
    color: var(--link);
    padding: 7px 10px 5px;
    text-decoration: none;
}

.nav-item:hover {
    background: var(--hover);
    text-decoration: none;
}

.nav-item.active {
    border-bottom-color: var(--focus);
    background: var(--active);
    color: var(--ink);
    font-weight: 700;
}

.nav-item.section-active {
    border-bottom-color: var(--line);
    background: var(--hover);
    color: var(--ink);
}

.nav-group {
    display: contents;
}

.nav-group-title {
    display: none;
}

.nav-icon,
.nav-summary {
    display: none;
}

.nav-copy {
    min-width: 0;
}

.nav-title {
    display: block;
    font-size: 13px;
    line-height: 1.25;
}

.nav-count {
    display: none;
}

.content-shell {
    background: var(--page);
}

.article-frame {
    max-width: 1240px;
    margin: 0 auto;
    padding: 22px 28px 46px;
}

.layout-wide .article-frame {
    max-width: 1720px;
    width: 100%;
    margin: 0 auto;
    padding-right: clamp(28px, 3vw, 58px);
    padding-left: clamp(28px, 3vw, 58px);
}

.layout-wide .article-layout {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
    gap: 18px 28px;
}

.layout-wide .page-hero p,
.layout-wide .article p {
    max-width: 960px;
}

.layout-wide .article ul,
.layout-wide .article ol {
    max-width: 980px;
}

.layout-wide .quick-grid,
.layout-wide .card-grid,
.layout-wide .stat-grid,
.layout-wide .wiki-portal-grid,
.layout-wide .article-index,
.layout-wide .guide-grid,
.layout-wide .screenshot-grid,
.layout-wide .lead-media,
.layout-wide .weapon-showcase,
.layout-wide .compact-index,
.layout-wide .catalog-index,
.layout-wide .category-box,
.layout-wide .navbox {
    max-width: 1600px;
}

.layout-wide .detail-table {
    max-width: 860px;
}

@media (min-width: 1121px) {
    .layout-wide-root {
        --sticky-offset: 126px;
        --breadcrumb-sticky-top: var(--wide-header-offset);
    }

    .layout-wide .article-layout {
        grid-template-columns: minmax(190px, 220px) minmax(0, 1fr) minmax(300px, 340px);
        grid-template-areas: "toc article infobox";
        gap: 18px 28px;
    }

    .layout-wide .toc-inline {
        position: sticky;
        top: var(--sticky-offset);
        z-index: 40;
        width: 100%;
        max-height: calc(100vh - var(--sticky-offset) - 18px);
        overflow-y: auto;
        scrollbar-width: thin;
    }

    .layout-wide .wiki-header {
        grid-template-areas: "brand search cta";
        margin-left: 0;
        padding-left: 24px;
        padding-bottom: 10px;
    }

    .layout-wide .wiki-header::after {
        display: none;
    }

    .layout-wide .content-shell {
        padding-left: var(--wide-nav-width);
    }

    .layout-wide .page-nav {
        position: fixed;
        top: calc(var(--wide-header-offset) + 1px);
        bottom: 0;
        left: 0;
        z-index: 70;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        justify-self: stretch;
        width: var(--wide-nav-width);
        min-width: 0;
        border-top: 0;
        border-right: 1px solid var(--line-soft);
        background: #f8f9fa;
        box-shadow: inset -1px 0 0 #fff;
        overflow-x: hidden;
        overflow-y: auto;
        padding: 8px 0 16px;
        scrollbar-width: thin;
    }

    .layout-wide .page-nav::before {
        content: "Navigation";
        border-bottom: 1px solid var(--line-soft);
        color: #202122;
        font-size: 12px;
        font-weight: 700;
        line-height: 1;
        margin: 0 0 4px;
        padding: 5px 12px 9px;
        text-transform: uppercase;
    }

    .layout-wide .nav-group {
        display: block;
        border-bottom: 1px solid var(--line-soft);
        margin: 0 0 5px;
        padding: 0 0 6px;
    }

    .layout-wide .nav-group:last-child {
        border-bottom: 0;
        margin-bottom: 0;
    }

    .layout-wide .nav-group-title {
        display: block;
        color: var(--muted);
        font-size: 11px;
        font-weight: 700;
        line-height: 1.1;
        padding: 8px 12px 5px;
        text-transform: uppercase;
    }

    .layout-wide .nav-group.has-active-page .nav-group-title {
        color: var(--ink);
    }

    .layout-wide .nav-item {
        display: flex;
        width: 100%;
        min-width: 0;
        min-height: 32px;
        border-left: 3px solid transparent;
        border-right: 0;
        border-bottom: 1px solid #eaecf0;
        color: var(--link);
        padding: 7px 12px 7px 9px;
    }

    .layout-wide .nav-item:hover {
        background: #fff;
    }

    .layout-wide .nav-item.active {
        border-left-color: var(--focus);
        border-bottom-color: #eaecf0;
        background: #fff;
        color: #202122;
    }

    .layout-wide .nav-item.section-active {
        border-left-color: var(--line);
    }

    .layout-wide .nav-title {
        font-size: 13px;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }
}

.article-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    position: sticky;
    top: var(--breadcrumb-sticky-top);
    z-index: 62;
    align-items: center;
    min-height: 34px;
    border-bottom: 1px solid var(--line-soft);
    background: var(--page);
    color: var(--muted);
    font-size: 12px;
    margin: -4px 0 8px;
    padding: 7px 0 6px;
}

.article-breadcrumbs span + span::before,
.article-breadcrumbs a + span::before,
.article-breadcrumbs span + a::before,
.article-breadcrumbs a + a::before {
    content: "/";
    color: var(--muted);
    margin-right: 6px;
}

.page-hero {
    border: 0;
    background: none !important;
    color: #202122;
}

.hero-overlay {
    padding: 0;
    background: none;
}

.page-kicker {
    margin: 0 0 3px;
    color: var(--muted);
    font-size: 13px;
}

.page-hero h1 {
    margin: 0;
    border-bottom: 1px solid var(--line);
    color: #000;
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 400;
    line-height: 1.25;
    padding-bottom: 4px;
}

.page-hero p {
    max-width: 820px;
    margin: 11px 0 0;
    color: #202122;
    font-size: 15px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 9px;
}

.tag,
.cell-tag,
.value-chip {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    border: 1px solid #a7d7f9;
    border-radius: 2px;
    background: #f8fbff;
    color: #202122;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    padding: 3px 6px;
}

.toc-inline {
    display: inline-block;
    position: sticky;
    top: calc(var(--sticky-offset) + 8px);
    z-index: 45;
    justify-self: start;
    min-width: 220px;
    max-width: 100%;
    border: 1px solid var(--line);
    background: #f8f9fa;
    margin: 0 0 16px;
    padding: 8px 12px 10px;
}

.toc-inline p {
    margin: 0 0 5px;
    color: #202122;
    font-weight: 700;
    text-align: center;
}

.table-caption {
    caption-side: top;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    padding: 0 0 6px;
    text-align: left;
}

.category-jump-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    border: 1px solid var(--line-soft);
    background: var(--paper);
    margin: 0 0 12px;
    padding: 8px 10px;
}

.category-jump-list a {
    border: 1px solid var(--line-soft);
    background: var(--page);
    color: var(--link);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    padding: 4px 7px;
}

#article-toc {
    display: grid;
    gap: 2px;
}

#article-toc a {
    color: var(--link);
    font-size: 13px;
    line-height: 1.35;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    grid-template-areas:
        "toc infobox"
        "article infobox";
    gap: 16px 24px;
    align-items: start;
    margin-top: 18px;
}

.toc-inline {
    grid-area: toc;
}

.article-infobox {
    grid-area: infobox;
}

.article {
    grid-area: article;
    min-width: 0;
}

.article-section {
    clear: left;
    margin: 0 0 24px;
    scroll-margin-top: var(--sticky-offset);
}

.article-section > h2 {
    margin: 0 0 8px;
    border-bottom: 1px solid var(--line);
    color: #000;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 400;
    line-height: 1.3;
    padding-bottom: 2px;
}

.article-section > h3 {
    margin: 18px 0 7px;
    color: #202122;
    font-size: 17px;
    line-height: 1.35;
}

.article p {
    max-width: 820px;
    margin: 0 0 10px;
}

.article ul,
.article ol {
    max-width: 850px;
    margin: 0 0 12px;
    padding-left: 26px;
}

.article li + li {
    margin-top: 3px;
}

.lead {
    color: #202122;
    font-size: 15px;
}

.callout {
    max-width: 860px;
    border: 1px solid var(--line-soft);
    background: #f8f9fa;
    color: #202122;
    margin: 0 0 14px;
    padding: 9px 12px;
}

.callout {
    background: var(--warning);
}

.callout p {
    margin: 0;
}

.spoiler-control {
    max-width: 900px;
    border: 1px solid var(--line);
    background: #f8f9fa;
    margin: 10px 0 0;
}

.spoiler-control summary {
    cursor: pointer;
    padding: 9px 12px;
    color: #202122;
    font-weight: 700;
}

.spoiler-control[open] summary {
    border-bottom: 1px solid var(--line);
}

.spoiler-body {
    padding: 10px;
}

.spoiler-body .data-panel {
    margin: 0;
}

.quote-box {
    max-width: 820px;
    border: 1px solid var(--line-soft);
    background: #f8f9fa;
    color: #202122;
    font-family: var(--font-display);
    font-size: 15px;
    margin: 8px 0 12px;
    padding: 8px 12px;
}

.detail-table {
    max-width: 720px;
    min-width: 0;
    table-layout: fixed;
    width: 100%;
    margin: 8px 0 12px;
}

.detail-table th {
    width: 38%;
}

.detail-table td,
.infobox-table td {
    overflow-wrap: anywhere;
}

.detail-table code,
.infobox-table code {
    white-space: normal;
    overflow-wrap: anywhere;
}

.quick-grid,
.card-grid,
.stat-grid,
.wiki-portal-grid,
.article-index,
.guide-grid,
.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 10px;
    max-width: 900px;
    margin: 12px 0 4px;
}

.quick-card,
.system-card,
.stat-card,
.wiki-portal,
.article-index section,
.guide-card,
.screenshot-card {
    border: 1px solid var(--line-soft);
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    padding: 10px 12px;
}

.quick-card {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    align-items: start;
    color: inherit;
}

.quick-card:hover {
    background: #f8f9fa;
    text-decoration: none;
}

.quick-card img {
    width: 42px;
    height: 42px;
    border: 1px solid #10141d;
    background: #10141d;
    object-fit: contain;
    padding: 8px;
    image-rendering: auto;
}

.quick-card h3,
.system-card h3,
.stat-card h3,
.wiki-portal h3,
.article-index h3 {
    margin: 0 0 5px;
    color: #202122;
    font-size: 15px;
    line-height: 1.25;
}

.wiki-portal h3,
.article-index h3 {
    border: 0;
    background: transparent;
    padding: 0;
}

.quick-card p,
.system-card p,
.stat-card p,
.guide-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.42;
}

.lead-media {
    max-width: 900px;
    margin: 0 0 18px;
}

.lead-media .screenshot-grid {
    margin-top: 0;
}

.mobile-infobox-media {
    display: none;
    overflow: hidden;
    max-width: 900px;
    margin: 0 0 14px;
    border: 1px solid var(--line-soft);
    background: #fff;
}

.mobile-infobox-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #10141d;
    object-fit: cover;
}

.mobile-infobox-media figcaption {
    margin: 0;
    border-top: 1px solid var(--line-soft);
    background: #f8f9fa;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
    padding: 7px 9px;
}

.screenshot-card {
    overflow: hidden;
    padding: 0;
}

.media-lightbox-trigger {
    position: relative;
    display: block;
    width: 100%;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    cursor: zoom-in;
    padding: 0;
    text-align: left;
}

.media-lightbox-trigger:focus-visible {
    outline: 3px solid #36c;
    outline-offset: -3px;
}

.screenshot-card .media-lightbox-trigger {
    border-bottom: 1px solid var(--line-soft);
}

.screenshot-image,
.screenshot-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.media-open-label {
    position: absolute;
    right: 8px;
    bottom: 8px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    background: rgba(32, 33, 34, 0.78);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    opacity: 0;
    padding: 5px 7px;
    pointer-events: none;
    transition: opacity 120ms ease;
}

.media-lightbox-trigger:hover .media-open-label,
.media-lightbox-trigger:focus-visible .media-open-label {
    opacity: 1;
}

.screenshot-card figcaption {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 8px 10px 9px;
}

.screenshot-card figcaption strong,
.guide-card h3 {
    color: #202122;
    font-size: 15px;
    line-height: 1.25;
}

.screenshot-card figcaption span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.38;
}

.weapon-showcase {
    max-width: 900px;
    border: 1px solid var(--line);
    background: #fff;
    margin: 8px 0 14px;
}

.weapon-showcase-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
    border-bottom: 1px solid #10141d;
    background: #10141d;
    color: #eaecf0;
    padding: 12px 14px;
}

.weapon-showcase-title {
    min-width: 0;
}

.weapon-kind-badge {
    display: inline-block;
    border: 1px solid rgba(214, 224, 255, 0.45);
    background: rgba(214, 224, 255, 0.08);
    color: #dbe4ff;
    font: 600 12px/1 var(--font-mono);
    padding: 4px 6px;
}

.weapon-showcase h3 {
    margin: 7px 0 4px;
    color: #fff;
    font-size: 20px;
    line-height: 1.2;
}

.weapon-showcase h4 {
    margin: 0 0 6px;
    color: #202122;
    font-size: 14px;
    line-height: 1.3;
}

.weapon-showcase p {
    max-width: none;
    margin: 0;
}

.weapon-showcase-header p {
    color: #d9dde8;
    line-height: 1.38;
}

.weapon-showcase-media {
    margin: 0;
    border-bottom: 1px solid var(--line-soft);
    background: #10141d;
}

.weapon-showcase-media .media-lightbox-trigger {
    display: block;
    width: 100%;
}

.weapon-showcase-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.weapon-showcase-media figcaption {
    margin: 0;
    background: #f8f9fa;
    color: #54595d;
    font-size: 13px;
    line-height: 1.35;
    padding: 7px 10px;
}

.weapon-level-readout {
    display: grid;
    gap: 3px;
    min-width: 96px;
    border: 1px solid rgba(214, 224, 255, 0.32);
    background: rgba(255, 255, 255, 0.07);
    color: #c9d4f5;
    padding: 8px 10px;
    text-align: right;
}

.weapon-level-readout span {
    font: 600 12px/1.2 var(--font-mono);
}

.weapon-level-readout strong {
    color: #fff;
    font: 700 20px/1.1 var(--font-mono);
}

.weapon-level-track {
    display: grid;
    grid-template-columns: repeat(8, minmax(24px, 1fr));
    gap: 5px;
    border-bottom: 1px solid var(--line-soft);
    background: #f8f9fa;
    padding: 10px 12px;
}

.weapon-level-pip {
    display: grid;
    place-items: center;
    min-width: 0;
    height: 18px;
    border: 1px solid #a2a9b1;
    background: #eaecf0;
    color: #54595d;
    font: 600 11px/1 var(--font-mono);
}

.weapon-level-pip.is-milestone {
    border-color: #36c;
    background: #36c;
    color: #fff;
}

.weapon-showcase-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
    margin: 0;
    border-bottom: 1px solid var(--line-soft);
}

.weapon-showcase-stats div {
    display: grid;
    gap: 2px;
    min-width: 0;
    border-right: 1px solid #eaecf0;
    padding: 8px 10px;
}

.weapon-showcase-stats div:last-child {
    border-right: 0;
}

.weapon-showcase-stats dt,
.weapon-showcase-body dt {
    color: #202122;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.weapon-showcase-stats dd,
.weapon-showcase-body dd {
    min-width: 0;
    margin: 0;
    color: #54595d;
    font-size: 13px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.weapon-showcase-body {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.weapon-showcase-body > section {
    min-width: 0;
    border-right: 1px solid var(--line-soft);
    padding: 10px 12px 12px;
}

.weapon-showcase-body > section:last-child {
    border-right: 0;
}

.weapon-showcase-body p,
.weapon-showcase-body li {
    color: #54595d;
    font-size: 13px;
    line-height: 1.42;
}

.weapon-showcase-body dl {
    display: grid;
    gap: 6px;
    margin: 0 0 8px;
}

.weapon-showcase-body dl div {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 8px;
}

.weapon-showcase-body ul {
    margin: 0;
    padding-left: 18px;
}

.weapon-milestone-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0 0 7px;
}

.weapon-milestone-chip {
    border: 1px solid #36c;
    background: #eef3ff;
    color: #0645ad;
    font: 600 12px/1 var(--font-mono);
    padding: 4px 6px;
}

.weapon-index-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 10px;
    margin: 0 0 14px;
}

.weapon-index-card {
    display: grid;
    grid-template-rows: auto auto auto 1fr auto;
    min-width: 0;
    border: 1px solid var(--line-soft);
    background: #fff;
}

.weapon-index-card-head {
    min-width: 0;
    border-bottom: 1px solid #d8dee8;
    background: #f8f9fa;
    padding: 9px 10px 8px;
}

.weapon-index-card-head .weapon-kind-badge {
    border-color: #a2a9b1;
    background: #fff;
    color: #54595d;
}

.weapon-index-card-media {
    margin: 0;
    border-bottom: 1px solid var(--line-soft);
    background: #10141d;
}

.weapon-index-card-media .media-lightbox-trigger {
    display: block;
    width: 100%;
}

.weapon-index-card-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.weapon-index-card-media figcaption {
    margin: 0;
    background: #f8f9fa;
    color: #54595d;
    font-size: 12px;
    line-height: 1.3;
    padding: 6px 8px;
}

.weapon-index-card h3 {
    margin: 7px 0 4px;
    color: #202122;
    font-size: 16px;
    line-height: 1.25;
}

.weapon-index-card h3 a {
    color: #0645ad;
}

.weapon-index-card p {
    margin: 0;
    color: #54595d;
    font-size: 13px;
    line-height: 1.38;
}

.weapon-index-card h4 {
    margin: 0 0 6px;
    color: #202122;
    font-size: 13px;
    line-height: 1.25;
}

.weapon-index-card-track {
    display: grid;
    gap: 0;
    min-width: 0;
    border-bottom: 1px solid var(--line-soft);
}

.weapon-index-card-track-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 10px 0;
    color: #54595d;
    font: 600 12px/1.2 var(--font-mono);
}

.weapon-index-card-track-head strong {
    color: #202122;
}

.weapon-index-card .weapon-level-track {
    border-bottom: 0;
    background: #fff;
    padding: 7px 10px 9px;
}

.weapon-index-card .weapon-level-pip {
    height: 16px;
}

.weapon-index-card-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    border-bottom: 1px solid var(--line-soft);
}

.weapon-index-card-stats div {
    display: grid;
    gap: 2px;
    min-width: 0;
    border-right: 1px solid #eaecf0;
    border-bottom: 1px solid #eaecf0;
    padding: 7px 8px;
}

.weapon-index-card-stats div:nth-child(2n) {
    border-right: 0;
}

.weapon-index-card-stats div:nth-last-child(-n + 2) {
    border-bottom: 0;
}

.weapon-index-card dt {
    color: #202122;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.weapon-index-card dd {
    min-width: 0;
    margin: 0;
    color: #54595d;
    font-size: 12px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.weapon-index-card-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
}

.weapon-index-card-body section {
    min-width: 0;
    border-bottom: 1px solid var(--line-soft);
    padding: 8px 10px 9px;
}

.weapon-index-card-body section:last-child {
    border-bottom: 0;
}

.weapon-index-card-link {
    display: block;
    border-top: 1px solid var(--line-soft);
    background: #f8f9fa;
    color: #0645ad;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    padding: 8px 10px;
}

.weapon-index-card-link:hover {
    background: #eef3ff;
}

.enemy-card-grid,
.item-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
    margin: 0 0 14px;
}

.enemy-card,
.item-card {
    display: grid;
    grid-template-rows: auto 1fr;
    border: 1px solid var(--line-soft);
    background: #fff;
    min-width: 0;
}

.enemy-card-link,
.item-card-link {
    display: grid;
    color: inherit;
    text-decoration: none;
}

.enemy-card-link:visited,
.item-card-link:visited {
    color: inherit;
}

.enemy-card-link:hover,
.item-card-link:hover {
    background: #f8f9fa;
    text-decoration: none;
}

.enemy-card-media,
.item-card-media {
    display: block;
    border-bottom: 1px solid var(--line-soft);
    background: #10141d;
}

.enemy-card-media .media-lightbox-trigger,
.item-card-media .media-lightbox-trigger {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
}

.enemy-card-media img,
.item-card-media img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.image-fallback-label {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 64px;
    border: 1px dashed #a2a9b1;
    background: #f8f9fa;
    color: #54595d;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    padding: 8px;
}

.enemy-card-media .image-fallback-label,
.item-card-media .image-fallback-label,
.weapon-showcase-media .media-lightbox-trigger .image-fallback-label,
.screenshot-card .media-lightbox-trigger .image-fallback-label,
.infobox-media .media-lightbox-trigger .image-fallback-label {
    aspect-ratio: 16 / 9;
    border: 0;
    background: #10141d;
    color: #c8ccd1;
}

.weapon-index-card-media .media-lightbox-trigger .image-fallback-label {
    aspect-ratio: 16 / 10;
    border: 0;
    background: #10141d;
    color: #c8ccd1;
}

td > .image-fallback-label {
    width: 34px;
    min-height: 34px;
    font-size: 10px;
    line-height: 1.1;
    padding: 3px;
}

.achievement-detail-head > .image-fallback-label {
    width: 72px;
    min-height: 72px;
}

.enemy-card-body,
.item-card-body {
    display: grid;
    gap: 2px;
    min-width: 0;
    padding: 8px 9px 7px;
}

.enemy-card-body strong,
.item-card-body strong {
    color: #202122;
    font-size: 14px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.enemy-card-body span,
.item-card-body span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.enemy-card dl,
.item-card dl {
    display: grid;
    gap: 0;
    border-top: 1px solid #eaecf0;
    margin: 0;
}

.enemy-card dl div,
.item-card dl div {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    border-bottom: 1px solid #eaecf0;
    min-width: 0;
}

.enemy-card dl div:last-child,
.item-card dl div:last-child {
    border-bottom: 0;
}

.enemy-card dt,
.enemy-card dd,
.item-card dt,
.item-card dd {
    margin: 0;
    padding: 4px 7px;
    font-size: 12px;
    line-height: 1.3;
}

.enemy-card dt,
.item-card dt {
    background: #f8f9fa;
    color: #202122;
    font-weight: 700;
}

.enemy-card dd,
.item-card dd {
    color: var(--muted);
    overflow-wrap: anywhere;
}

.guide-card h3 {
    margin: 0 0 5px;
}

.guide-card dl {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 5px 10px;
    margin: 9px 0 0;
    font-size: 13px;
}

.guide-card dt {
    color: #202122;
    font-weight: 700;
}

.guide-card dd {
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
}

.stat-card strong {
    display: block;
    color: #000;
    font-size: 24px;
    line-height: 1;
}

.wiki-portal ul,
.article-index ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wiki-portal li + li,
.article-index li + li {
    margin-top: 5px;
}

.compact-index {
    max-width: 1040px;
}

.compact-index .index-panel {
    padding: 0;
}

.compact-index .index-panel h3 {
    border-bottom: 1px solid var(--line);
    background: #eaecf0;
    margin: 0;
    padding: 6px 9px;
}

.compact-index-list {
    columns: 2 260px;
    column-gap: 24px;
    list-style: none;
    margin: 0;
    padding: 14px 16px 16px;
}

.compact-index-list li {
    break-inside: avoid;
    line-height: 1.35;
    margin: 0 0 11px;
    padding: 0 2px 1px;
}

.compact-index-list li:last-child {
    margin-bottom: 0;
}

.compact-index-list a {
    display: inline-block;
    font-weight: 700;
    line-height: 1.3;
}

.catalog-index {
    display: grid;
    gap: 9px;
    max-width: 1040px;
    margin: 14px 0 4px;
}

.catalog-anchor {
    display: block;
    height: 0;
    overflow: hidden;
    scroll-margin-top: var(--sticky-offset);
}

.catalog-index-group {
    border: 1px solid var(--line-soft);
    background: #fff;
}

.catalog-index-group summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    background: #f8f9fa;
    color: #202122;
    font-weight: 700;
    line-height: 1.25;
    padding: 11px 14px;
}

.catalog-index-group summary span:last-child {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.catalog-index-group[open] summary {
    border-bottom: 1px solid var(--line-soft);
    background: #eaecf0;
}

.index-summary {
    display: block;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
    margin-top: 4px;
    max-width: 52ch;
}

.achievement-index-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.achievement-index-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line-soft);
    background: #fff;
}

.achievement-index-icon img {
    display: block;
    max-width: 30px;
    max-height: 30px;
    object-fit: contain;
}

.achievement-index-copy {
    min-width: 0;
}

.index-reward {
    display: inline-flex;
    margin-left: 7px;
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}

.article-infobox {
    min-width: 0;
}

.wiki-infobox {
    border: 1px solid var(--line);
    background: #f8f9fa;
    color: #202122;
    font-size: 13px;
    overflow: hidden;
}

.infobox-title {
    border-bottom: 1px solid var(--line);
    background: #eaecf0;
    color: #000;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    padding: 7px 9px;
    text-align: center;
}

.infobox-media {
    margin: 0;
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.infobox-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.infobox-media figcaption {
    border-top: 1px solid #eaecf0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
    margin: 0;
    padding: 6px 8px;
}

.infobox-table {
    width: 100%;
    border-collapse: collapse;
}

.infobox-table th,
.infobox-table td {
    border-bottom: 1px solid #eaecf0;
    padding: 6px 8px;
    vertical-align: top;
}

.infobox-table th {
    width: 42%;
    background: #eaecf0;
    color: #202122;
    font-weight: 700;
    text-align: left;
}

body.has-media-lightbox {
    overflow: hidden;
}

.media-lightbox[hidden] {
    display: none;
}

.media-lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: 24px;
}

.media-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
}

.media-lightbox-panel {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    width: min(1180px, 96vw);
    max-height: 92vh;
    border: 1px solid #54595d;
    background: #fff;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.45);
}

.media-lightbox-image {
    display: block;
    width: 100%;
    max-height: calc(92vh - 110px);
    background: #10141d;
    object-fit: contain;
}

.media-lightbox-fallback {
    min-height: min(62vh, 520px);
    border: 0;
    border-bottom: 1px solid var(--line-soft);
    background: #10141d;
    color: #c8ccd1;
}

.media-lightbox-copy {
    border-top: 1px solid var(--line-soft);
    background: #f8f9fa;
    padding: 11px 14px 13px;
}

.media-lightbox-copy h2 {
    margin: 0 0 3px;
    color: #202122;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.2;
}

.media-lightbox-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.media-lightbox-close {
    position: absolute;
    top: 9px;
    right: 9px;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.84);
    background: rgba(32, 33, 34, 0.86);
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    line-height: 1;
    padding: 7px 9px;
}

.media-lightbox-close:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

.infobox-table tr:last-child th,
.infobox-table tr:last-child td {
    border-bottom: 0;
}

.infobox-links {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 8px;
    border-top: 1px solid var(--line);
    background: #fff;
    padding: 7px 8px;
}

.infobox-links a {
    font-size: 12px;
}

.live-leaderboard {
    max-width: 900px;
    border: 1px solid var(--line);
    background: #fff;
    margin: 12px 0 16px;
}

.live-leaderboard-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--line);
    background: #eaecf0;
    padding: 8px 10px;
}

.live-leaderboard-head h3 {
    margin: 0 0 2px;
    color: #000;
    font-size: 15px;
    line-height: 1.25;
}

.live-leaderboard-head p,
.live-leaderboard-status {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.live-leaderboard-refresh {
    min-height: 31px;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: #f8f9fa;
    color: #202122;
    cursor: pointer;
    padding: 4px 10px;
}

.live-leaderboard-refresh:hover {
    background: #fff;
}

.live-leaderboard-refresh:disabled {
    color: var(--muted);
    cursor: default;
}

.live-leaderboard-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    border-bottom: 1px solid var(--line-soft);
    background: #f8f9fa;
    padding: 8px 10px;
}

.live-leaderboard-controls label {
    display: grid;
    gap: 3px;
    min-width: 190px;
    color: #202122;
    font-size: 13px;
    font-weight: 700;
}

.live-leaderboard-controls select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: #fff;
    color: #202122;
    padding: 5px 7px;
}

.live-leaderboard-status {
    border-bottom: 1px solid var(--line-soft);
    background: #fff;
    padding: 7px 10px;
}

.live-leaderboard-table-wrap {
    overflow-x: auto;
    background: #fff;
}

.live-leaderboard-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    background: #fff;
    font-size: 13px;
}

.live-leaderboard-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    border: 1px solid var(--line);
    border-left: 0;
    background: #eaecf0;
    color: #202122;
    font-weight: 700;
    padding: 6px 8px;
    text-align: left;
}

.live-leaderboard-table th:last-child {
    border-right: 0;
}

.live-leaderboard-table td {
    border: 1px solid var(--line-soft);
    border-left: 0;
    padding: 6px 8px;
    vertical-align: middle;
}

.live-leaderboard-table td:last-child {
    border-right: 0;
}

.live-leaderboard-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.live-leaderboard-table tbody tr:hover {
    background: #eef6ff;
}

.live-leaderboard-rank {
    width: 72px;
    color: #202122;
    font-weight: 700;
}

.live-leaderboard-score {
    width: 150px;
    color: #202122;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    text-align: right;
}

.live-leaderboard-player,
.live-leaderboard-profile {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.live-leaderboard-profile:hover {
    text-decoration: none;
}

.live-leaderboard-avatar {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border: 1px solid var(--line-soft);
    background: #f8f9fa;
}

.live-leaderboard-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.live-leaderboard-name {
    min-width: 0;
    color: #202122;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.live-leaderboard-state td {
    color: var(--muted);
    text-align: center;
}

.data-panel {
    max-width: 100%;
    margin: 12px 0 4px;
}

.table-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    max-width: 100%;
    border: 1px solid var(--line);
    border-bottom: 0;
    background: #eaecf0;
    padding: 6px 8px;
}

.table-filter label {
    min-width: 160px;
    color: #202122;
    font-size: 13px;
    font-weight: 700;
}

.table-filter input {
    width: min(360px, 100%);
    border: 1px solid var(--line);
    border-radius: 2px;
    background: #fff;
    color: #202122;
    padding: 5px 7px;
}

.card-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    max-width: 100%;
    border: 1px solid var(--line);
    background: #eaecf0;
    margin: 10px 0 12px;
    padding: 6px 8px;
}

.card-filter label {
    min-width: 160px;
    color: #202122;
    font-size: 13px;
    font-weight: 700;
}

.card-filter input {
    width: min(360px, 100%);
    border: 1px solid var(--line);
    border-radius: 2px;
    background: #fff;
    color: #202122;
    padding: 5px 7px;
}

.table-scroll {
    overflow-x: auto;
    border: 1px solid var(--line);
    background: #fff;
}

.data-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    background: #fff;
    font-size: 13px;
}

.data-table.detail-table {
    min-width: 0;
}

.data-table th {
    position: sticky;
    top: 0;
    z-index: 2;
    border: 1px solid var(--line);
    background: #eaecf0;
    color: #202122;
    font-weight: 700;
    padding: 6px 8px;
    text-align: left;
}

.data-table td {
    border: 1px solid var(--line-soft);
    padding: 6px 8px;
    vertical-align: top;
}

.data-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.data-table tbody tr:hover {
    background: #eef6ff;
}

.achievement-icon {
    display: block;
    width: 34px;
    height: 34px;
    object-fit: contain;
    image-rendering: auto;
}

.achievement-infobox-media {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.achievement-infobox-icon {
    width: 96px;
    height: 96px;
    object-fit: contain;
    background: #fff;
    padding: 8px;
}

.achievement-detail-head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.achievement-detail-icon {
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.cell-name {
    color: #202122;
    font-weight: 700;
}

.cell-note {
    color: var(--muted);
}

.cell-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.cell-tag.family-dvd {
    background: #effaf3;
    border-color: #a3d9b1;
}

.cell-tag.family-system {
    background: #eef6ff;
    border-color: #a7d7f9;
}

.cell-tag.family-network {
    background: #f5f0ff;
    border-color: #c7b8ea;
}

.cell-tag.family-meme {
    background: #fff8d6;
    border-color: #f6d36b;
}

.cell-tag.family-core {
    background: #fff1f0;
    border-color: #e5b2ad;
}

.category-box,
.navbox {
    max-width: 900px;
    border: 1px solid var(--line);
    background: #f8f9fa;
    margin: 20px 0 0;
}

.category-box {
    padding: 7px 9px;
}

.category-box strong {
    margin-right: 6px;
}

.category-box span + span::before {
    content: "|";
    color: var(--muted);
    margin: 0 7px;
}

.navbox-title {
    border-bottom: 1px solid var(--line);
    background: #eaecf0;
    color: #202122;
    font-size: 13px;
    font-weight: 700;
    padding: 5px 8px;
    text-align: center;
}

.navbox-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    padding: 7px 9px;
}

:root[data-theme="dark"] .article-frame,
:root[data-theme="dark"] .article,
:root[data-theme="dark"] .toc-inline,
:root[data-theme="dark"] .article-breadcrumbs,
:root[data-theme="dark"] .category-box,
:root[data-theme="dark"] .navbox,
:root[data-theme="dark"] .wiki-infobox,
:root[data-theme="dark"] .article-index,
:root[data-theme="dark"] .catalog-index-group,
:root[data-theme="dark"] .data-panel,
:root[data-theme="dark"] .data-table,
:root[data-theme="dark"] .table-scroll,
:root[data-theme="dark"] .callout,
:root[data-theme="dark"] .spoiler-control,
:root[data-theme="dark"] .screenshot-card,
:root[data-theme="dark"] .enemy-card,
:root[data-theme="dark"] .item-card,
:root[data-theme="dark"] .weapon-index-card,
:root[data-theme="dark"] .quick-card,
:root[data-theme="dark"] .system-card,
:root[data-theme="dark"] .live-leaderboard-panel,
:root[data-theme="dark"] .achievement-detail-head {
    border-color: var(--line-soft);
    background-color: var(--paper);
    color: var(--ink);
}

:root[data-theme="dark"] .page-hero,
:root[data-theme="dark"] .media-lightbox-panel,
:root[data-theme="dark"] .image-fallback-label,
:root[data-theme="dark"] .infobox-image,
:root[data-theme="dark"] .screenshot-image,
:root[data-theme="dark"] .achievement-infobox-icon {
    background-color: #0b1018;
}

:root[data-theme="dark"] .hero-overlay {
    background: linear-gradient(90deg, rgba(10, 14, 21, 0.92), rgba(10, 14, 21, 0.64), rgba(10, 14, 21, 0.16));
}

:root[data-theme="dark"] .data-table th,
:root[data-theme="dark"] .infobox-title,
:root[data-theme="dark"] .infobox-table th,
:root[data-theme="dark"] .article-index h3,
:root[data-theme="dark"] .navbox-title,
:root[data-theme="dark"] .catalog-index-group summary,
:root[data-theme="dark"] .table-filter,
:root[data-theme="dark"] .value-chip,
:root[data-theme="dark"] .cell-tag {
    border-color: var(--line-soft);
    background-color: var(--paper-2);
    color: var(--ink);
}

:root[data-theme="dark"] .data-table tbody tr:nth-child(even),
:root[data-theme="dark"] .data-table tbody tr:hover,
:root[data-theme="dark"] .search-result:hover,
:root[data-theme="dark"] .search-result.active {
    background-color: var(--hover);
}

:root[data-theme="dark"] .data-table td,
:root[data-theme="dark"] .data-table th,
:root[data-theme="dark"] .infobox-table td,
:root[data-theme="dark"] .infobox-table th,
:root[data-theme="dark"] .article-index section,
:root[data-theme="dark"] .catalog-index-group li,
:root[data-theme="dark"] .navbox-links a,
:root[data-theme="dark"] .screenshot-card,
:root[data-theme="dark"] .enemy-card,
:root[data-theme="dark"] .item-card,
:root[data-theme="dark"] .weapon-index-card {
    border-color: var(--line-soft);
}

:root[data-theme="dark"] .table-filter input,
:root[data-theme="dark"] .card-filter input,
:root[data-theme="dark"] .live-leaderboard-controls select,
:root[data-theme="dark"] .live-leaderboard-controls input {
    background: var(--field);
    color: var(--field-ink);
}

:root[data-theme="dark"] .cell-name,
:root[data-theme="dark"] .article-section > h2,
:root[data-theme="dark"] .article-section > h3,
:root[data-theme="dark"] .infobox-table code {
    color: var(--ink);
}

:root[data-theme="dark"] .cell-note,
:root[data-theme="dark"] .index-summary,
:root[data-theme="dark"] .toc-inline p,
:root[data-theme="dark"] .infobox-media figcaption,
:root[data-theme="dark"] .screenshot-card figcaption,
:root[data-theme="dark"] .search-result span,
:root[data-theme="dark"] .search-empty,
:root[data-theme="dark"] .search-results-count,
:root[data-theme="dark"] .nav-summary,
:root[data-theme="dark"] .live-leaderboard-status,
:root[data-theme="dark"] .media-lightbox-copy p {
    color: var(--muted);
}

:root[data-theme="dark"] .weapon-index-card-link,
:root[data-theme="dark"] .enemy-card-link,
:root[data-theme="dark"] .item-card-link {
    background: var(--paper-2);
    color: var(--link);
}

:root[data-theme="dark"] .media-lightbox {
    background: rgba(0, 0, 0, 0.58);
}

:root[data-theme="dark"] .media-lightbox-close,
:root[data-theme="dark"] .media-open-label {
    background: rgba(15, 20, 29, 0.9);
    color: var(--ink);
}

:root[data-theme="dark"] .layout-wide .page-nav,
:root[data-theme="dark"] .page-nav {
    background: var(--paper);
    box-shadow: inset -1px 0 0 var(--line-soft);
}

:root[data-theme="dark"] .layout-wide .page-nav::before {
    color: var(--ink);
}

:root[data-theme="dark"] .page-hero,
:root[data-theme="dark"] .page-hero h1,
:root[data-theme="dark"] .hero-overlay,
:root[data-theme="dark"] .quick-card h3,
:root[data-theme="dark"] .system-card h3,
:root[data-theme="dark"] .stat-card h3,
:root[data-theme="dark"] .wiki-portal h3,
:root[data-theme="dark"] .article-index h3,
:root[data-theme="dark"] .guide-card h3,
:root[data-theme="dark"] .screenshot-card figcaption strong,
:root[data-theme="dark"] .spoiler-control summary,
:root[data-theme="dark"] .quote-box,
:root[data-theme="dark"] .live-leaderboard-head h3,
:root[data-theme="dark"] .live-leaderboard-controls label,
:root[data-theme="dark"] .live-leaderboard-rank,
:root[data-theme="dark"] .live-leaderboard-score,
:root[data-theme="dark"] .media-lightbox-copy h2,
:root[data-theme="dark"] .enemy-card-link,
:root[data-theme="dark"] .item-card-link,
:root[data-theme="dark"] .enemy-card strong,
:root[data-theme="dark"] .item-card strong,
:root[data-theme="dark"] .enemy-card dt,
:root[data-theme="dark"] .item-card dt,
:root[data-theme="dark"] .enemy-card dd,
:root[data-theme="dark"] .item-card dd {
    color: var(--ink);
}

:root[data-theme="dark"] .page-kicker,
:root[data-theme="dark"] .page-hero p,
:root[data-theme="dark"] #page-summary {
    color: var(--muted);
}

:root[data-theme="dark"] .hero-overlay {
    background: none;
}

:root[data-theme="dark"] .quick-card:hover {
    background: var(--hover);
}

:root[data-theme="dark"] .table-filter,
:root[data-theme="dark"] .card-filter,
:root[data-theme="dark"] .live-leaderboard-head,
:root[data-theme="dark"] .live-leaderboard-controls,
:root[data-theme="dark"] .live-leaderboard-status,
:root[data-theme="dark"] .live-leaderboard-table-wrap,
:root[data-theme="dark"] .live-leaderboard-table,
:root[data-theme="dark"] .media-lightbox-copy,
:root[data-theme="dark"] .infobox-media,
:root[data-theme="dark"] .infobox-media figcaption,
:root[data-theme="dark"] .infobox-links,
:root[data-theme="dark"] .enemy-card dl,
:root[data-theme="dark"] .item-card dl {
    background: var(--paper);
}

:root[data-theme="dark"] .live-leaderboard-refresh,
:root[data-theme="dark"] .search-results-more,
:root[data-theme="dark"] .table-filter input,
:root[data-theme="dark"] .card-filter input,
:root[data-theme="dark"] .live-leaderboard-controls select {
    background: var(--field);
    color: var(--field-ink);
}

:root[data-theme="dark"] .table-filter label,
:root[data-theme="dark"] .card-filter label {
    color: var(--ink);
}

:root[data-theme="dark"] .enemy-card dt,
:root[data-theme="dark"] .item-card dt,
:root[data-theme="dark"] .live-leaderboard-table th {
    background: var(--paper-2);
}

:root[data-theme="dark"] .tag {
    border-color: var(--line);
    background: var(--paper-2);
    color: var(--ink);
}

:root[data-theme="dark"] .live-leaderboard-table tbody tr:nth-child(even),
:root[data-theme="dark"] .live-leaderboard-table tbody tr:hover {
    background: var(--hover);
}

.hidden {
    display: none !important;
}

@media (max-width: 1120px) {
    :root {
        --sticky-offset: 52px;
        --breadcrumb-sticky-top: 0px;
    }

    .wiki-header {
        position: static;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "brand cta"
            "search search"
            "nav nav";
        gap: 8px;
        padding: 9px 14px 10px;
    }

    .wiki-header::after {
        display: none;
    }

    .brand {
        min-width: 0;
    }

    .brand img {
        width: 74px;
    }

    .wiki-search-wrap {
        grid-column: 1 / -1;
        max-width: none;
    }

    .steam-cta {
        justify-self: end;
    }

    .header-actions {
        justify-self: end;
    }

    .page-nav {
        display: none;
    }

    .mobile-page-menu {
        display: block;
        grid-column: 1 / -1;
        width: 100%;
    }

    .layout-wide .article-frame,
    .article-frame {
        max-width: none;
        width: 100%;
        margin: 0;
        padding: 18px 18px 40px;
    }

    .layout-wide .article-layout,
    .article-layout {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "toc"
            "article"
            "infobox";
        gap: 14px;
    }

    .layout-wide .page-hero p,
    .layout-wide .article p,
    .layout-wide .article ul,
    .layout-wide .article ol {
        max-width: 100%;
    }

    .article-infobox {
        width: 100%;
        max-width: 540px;
    }
}

@media (max-width: 640px) {
    :root {
        --sticky-offset: 52px;
        --breadcrumb-sticky-top: 0px;
    }

    body {
        font-size: 14px;
    }

    .wiki-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "brand cta"
            "search search"
            "nav nav";
        gap: 6px 8px;
        padding: 6px 10px 8px;
    }

    .brand {
        margin-bottom: 0;
    }

    .brand img {
        width: 48px;
    }

    .brand span {
        font-size: 16px;
        line-height: 1.1;
    }

    .steam-cta {
        justify-content: center;
        min-height: 32px;
        width: auto;
        margin-top: 0;
        font-size: 12px;
        padding: 5px 8px;
    }

    .header-actions {
        display: flex;
        gap: 6px;
        width: auto;
    }

    .theme-toggle {
        justify-content: center;
        min-height: 32px;
        gap: 5px;
        font-size: 12px;
        padding: 5px 8px;
    }

    .theme-toggle-icon {
        width: 14px;
        height: 14px;
    }

    .mobile-page-menu span {
        display: none;
    }

    .layout-wide .article-frame,
    .article-frame {
        padding: 10px 14px 34px;
    }

    .article-breadcrumbs {
        flex-wrap: nowrap;
        margin: -6px -14px 10px;
        overflow-x: auto;
        padding: 6px 14px;
        scrollbar-width: none;
        white-space: nowrap;
    }

    .article-breadcrumbs::-webkit-scrollbar {
        display: none;
    }

    .article-breadcrumbs a,
    .article-breadcrumbs span {
        flex: 0 0 auto;
    }

    .mobile-page-menu select,
    .search-box input,
    .local-index-filter input {
        min-height: 36px;
    }

    .search-box input {
        padding: 6px 8px;
    }

    .local-index-filter {
        align-items: stretch;
        flex-direction: column;
        gap: 5px;
    }

    .compact-index-list {
        columns: 1;
        padding: 12px 14px 14px;
    }

    .compact-index-list li {
        margin-bottom: 12px;
    }

    .catalog-index {
        gap: 8px;
    }

    .catalog-index-group summary {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
        padding: 11px 14px;
    }

    .page-hero h1 {
        font-size: 30px;
    }

    .page-hero p {
        font-size: 14px;
    }

    .toc-inline {
        display: block;
        position: static;
        width: 100%;
        border-color: var(--line-soft);
        margin-bottom: 12px;
        padding: 0;
    }

    .toc-inline p {
        margin: 0;
        border-bottom: 1px solid var(--line-soft);
        background: var(--paper-2);
        padding: 8px 10px;
        text-align: left;
    }

    #article-toc {
        grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
        gap: 6px;
        padding: 8px;
    }

    #article-toc a {
        display: flex;
        align-items: center;
        min-height: 36px;
        border: 1px solid var(--line-soft);
        background: var(--field);
        line-height: 1.25;
        padding: 7px 8px;
        text-decoration: none;
    }

    #article-toc a:hover,
    #article-toc a:focus-visible {
        background: var(--hover);
    }

    .quick-grid,
    .card-grid,
    .stat-grid,
    .wiki-portal-grid,
    .article-index,
    .guide-grid,
    .screenshot-grid {
        grid-template-columns: 1fr;
    }

    .guide-card dl {
        grid-template-columns: 1fr;
    }

    .table-filter {
        align-items: stretch;
        flex-direction: column;
    }

    .live-leaderboard-head,
    .live-leaderboard-controls {
        align-items: stretch;
        flex-direction: column;
    }

    .live-leaderboard-controls label {
        min-width: 0;
    }

    .table-filter input,
    .card-filter input {
        width: 100%;
    }

    .card-filter {
        align-items: stretch;
        flex-direction: column;
    }

    .card-filter label {
        min-width: 0;
    }

    .enemy-card-grid,
    .item-card-grid {
        grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    }

    .weapon-index-showcase-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .weapon-showcase-header {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        padding: 11px 12px;
    }

    .weapon-level-readout {
        width: 100%;
        text-align: left;
    }

    .weapon-level-track {
        grid-template-columns: repeat(4, minmax(36px, 1fr));
        padding: 9px 10px;
    }

    .weapon-showcase-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .weapon-showcase-stats div {
        border-right: 0;
        border-bottom: 1px solid var(--line-soft);
    }

    .weapon-showcase-body {
        grid-template-columns: minmax(0, 1fr);
    }

    .weapon-showcase-body > section {
        border-right: 0;
        border-bottom: 1px solid var(--line-soft);
    }

    .weapon-showcase-body > section:last-child {
        border-bottom: 0;
    }

    .weapon-showcase-body dl div {
        grid-template-columns: minmax(84px, 35%) minmax(0, 1fr);
    }

    .search-results {
        position: absolute;
        top: calc(100% + 3px);
        right: 0;
        left: 0;
        width: 100%;
        max-height: min(52vh, 360px);
    }

    .wiki-search-wrap {
        position: relative;
    }

    .article-infobox {
        max-width: none;
    }

    .has-mobile-infobox-media .mobile-infobox-media {
        display: block;
    }

    .has-mobile-infobox-media .article-infobox .infobox-media {
        display: none;
    }

	    .detail-table th {
	        width: 42%;
	    }

	    .detail-table,
	    .detail-table tbody,
	    .detail-table tr,
	    .detail-table th,
	    .detail-table td {
	        display: block;
	        width: 100%;
	    }

	    .detail-table tr {
	        display: grid;
	        grid-template-columns: minmax(118px, 40%) minmax(0, 1fr);
	        border-bottom: 1px solid var(--line-soft);
	        background: var(--paper);
	    }

	    .detail-table tr:last-child {
	        border-bottom: 0;
	    }

	    .detail-table th,
	    .detail-table td {
	        border: 0;
	        padding: 7px 9px;
	        text-align: left;
	    }

	    .detail-table th {
	        background: var(--paper-2);
	    }

	    .table-scroll {
	        overflow-x: visible;
	    }

    .data-table {
        min-width: 0;
        border-collapse: separate;
        border-spacing: 0;
        font-size: 13px;
    }

    .data-table .table-caption,
    .data-table caption {
        display: block;
        margin: 0 0 8px;
        padding: 0;
        text-align: left;
        white-space: normal;
    }

    .data-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .data-table,
    .data-table tbody,
    .data-table tr,
    .data-table td {
        display: block;
        width: 100%;
    }

    .data-table tr {
        border-bottom: 1px solid var(--line);
        background: var(--paper);
        padding: 4px 0;
    }

    .data-table tbody tr:nth-child(even) {
        background: var(--hover);
    }

    .data-table td {
        display: grid;
        grid-template-columns: minmax(96px, 36%) minmax(0, 1fr);
        gap: 8px;
        border: 0;
        border-bottom: 1px solid var(--line-soft);
        padding: 7px 9px;
    }

    .data-table td::before {
        content: attr(data-label);
        color: var(--ink);
        font-weight: 700;
    }

    .data-table td[data-label=""] {
        grid-template-columns: minmax(0, 1fr);
    }

    .data-table td[data-label=""]::before {
        display: none;
    }

    .achievement-icon {
        width: 40px;
        height: 40px;
    }

    .achievement-detail-head {
        align-items: flex-start;
    }

    .achievement-detail-icon {
        width: 58px;
        height: 58px;
    }

    .media-open-label {
        opacity: 1;
    }

    .media-lightbox {
        padding: 10px;
    }

    .media-lightbox-panel {
        width: 100%;
        max-height: 94vh;
    }

    .media-lightbox-image {
        max-height: calc(94vh - 130px);
    }

    .media-lightbox-copy {
        padding: 10px 11px 12px;
    }

    .media-lightbox-copy h2 {
        font-size: 19px;
    }

	    .data-table td:last-child {
	        border-bottom: 0;
	    }

	    .data-table.detail-table,
	    .data-table.detail-table tbody,
	    .data-table.detail-table tr,
	    .data-table.detail-table th,
	    .data-table.detail-table td {
	        display: block;
	        width: 100%;
	    }

	    .data-table.detail-table tr {
	        display: grid;
	        grid-template-columns: minmax(118px, 40%) minmax(0, 1fr);
	        border-bottom: 1px solid var(--line-soft);
	        padding: 0;
	    }

	    .data-table.detail-table th,
	    .data-table.detail-table td {
	        border: 0;
	        padding: 7px 9px;
	    }

    .data-table.detail-table td::before {
        content: "";
        display: none;
    }

    .live-leaderboard-table {
        min-width: 0;
        border-collapse: separate;
        border-spacing: 0;
    }

    .live-leaderboard-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .live-leaderboard-table,
    .live-leaderboard-table tbody,
    .live-leaderboard-table tr,
    .live-leaderboard-table td {
        display: block;
        width: 100%;
    }

    .live-leaderboard-table tr {
        border-bottom: 1px solid var(--line);
        padding: 4px 0;
    }

    .live-leaderboard-table td {
        display: grid;
        grid-template-columns: minmax(96px, 34%) minmax(0, 1fr);
        gap: 8px;
        border: 0;
        border-bottom: 1px solid var(--line-soft);
        padding: 7px 9px;
        text-align: left;
    }

    .live-leaderboard-table td::before {
        content: attr(data-label);
        color: var(--ink);
        font-weight: 700;
    }

    .live-leaderboard-table td:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 480px) {
    .brand span {
        display: none;
    }
}

:root[data-theme="dark"] .wiki-header,
:root[data-theme="dark"] .search-results,
:root[data-theme="dark"] .mobile-page-menu select,
:root[data-theme="dark"] .local-index-filter input,
:root[data-theme="dark"] .search-box input,
:root[data-theme="dark"] .theme-toggle {
    border-color: var(--line-soft);
    background: var(--field);
    color: var(--field-ink);
}

:root[data-theme="dark"] .layout-wide .page-nav,
:root[data-theme="dark"] .page-nav {
    border-color: var(--line-soft);
    background: #141b25;
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.03);
}

:root[data-theme="dark"] .layout-wide .page-nav::before,
:root[data-theme="dark"] .layout-wide .nav-group,
:root[data-theme="dark"] .layout-wide .nav-item {
    border-color: var(--line-soft);
}

:root[data-theme="dark"] .layout-wide .page-nav::before,
:root[data-theme="dark"] .layout-wide .nav-group-title {
    color: var(--muted);
}

:root[data-theme="dark"] .layout-wide .nav-group.has-active-page .nav-group-title {
    color: var(--ink);
}

:root[data-theme="dark"] .layout-wide .nav-item:hover,
:root[data-theme="dark"] .layout-wide .nav-item.active,
:root[data-theme="dark"] .layout-wide .nav-item.section-active {
    background: var(--active);
    color: var(--ink);
}

:root[data-theme="dark"] .layout-wide .nav-item.active {
    border-left-color: var(--focus);
}

:root[data-theme="dark"] .layout-wide .nav-item.section-active {
    border-left-color: var(--line);
}

:root[data-theme="dark"] .toc-inline,
:root[data-theme="dark"] .toc-inline p,
:root[data-theme="dark"] .article-breadcrumbs,
:root[data-theme="dark"] .category-box,
:root[data-theme="dark"] .navbox,
:root[data-theme="dark"] .wiki-infobox,
:root[data-theme="dark"] .quick-card,
:root[data-theme="dark"] .system-card,
:root[data-theme="dark"] .stat-card,
:root[data-theme="dark"] .wiki-portal,
:root[data-theme="dark"] .article-index section,
:root[data-theme="dark"] .guide-card,
:root[data-theme="dark"] .screenshot-card,
:root[data-theme="dark"] .catalog-index-group,
:root[data-theme="dark"] .weapon-showcase,
:root[data-theme="dark"] .weapon-index-card,
:root[data-theme="dark"] .enemy-card,
:root[data-theme="dark"] .item-card,
:root[data-theme="dark"] .live-leaderboard,
:root[data-theme="dark"] .data-panel,
:root[data-theme="dark"] .achievement-detail-head {
    border-color: var(--line-soft);
    background: var(--paper);
    color: var(--ink);
}

:root[data-theme="dark"] #article-toc a,
:root[data-theme="dark"] .table-filter,
:root[data-theme="dark"] .card-filter,
:root[data-theme="dark"] .compact-index .index-panel h3,
:root[data-theme="dark"] .catalog-index-group summary,
:root[data-theme="dark"] .catalog-index-group[open] summary,
:root[data-theme="dark"] .infobox-title,
:root[data-theme="dark"] .navbox-title,
:root[data-theme="dark"] .live-leaderboard-head,
:root[data-theme="dark"] .live-leaderboard-controls,
:root[data-theme="dark"] .weapon-level-track,
:root[data-theme="dark"] .weapon-index-card-head,
:root[data-theme="dark"] .weapon-index-card-track-head,
:root[data-theme="dark"] .enemy-card dt,
:root[data-theme="dark"] .item-card dt {
    border-color: var(--line-soft);
    background: var(--paper-2);
    color: var(--ink);
}

:root[data-theme="dark"] #article-toc a:hover,
:root[data-theme="dark"] #article-toc a:focus-visible,
:root[data-theme="dark"] .quick-card:hover,
:root[data-theme="dark"] .weapon-index-card-link:hover,
:root[data-theme="dark"] .enemy-card-link:hover,
:root[data-theme="dark"] .item-card-link:hover,
:root[data-theme="dark"] .live-leaderboard-refresh:hover,
:root[data-theme="dark"] .search-result:hover,
:root[data-theme="dark"] .search-result.active {
    background: var(--hover);
}

:root[data-theme="dark"] .lead,
:root[data-theme="dark"] .callout,
:root[data-theme="dark"] .quote-box,
:root[data-theme="dark"] .quick-card h3,
:root[data-theme="dark"] .system-card h3,
:root[data-theme="dark"] .stat-card h3,
:root[data-theme="dark"] .stat-card strong,
:root[data-theme="dark"] .wiki-portal h3,
:root[data-theme="dark"] .article-index h3,
:root[data-theme="dark"] .guide-card h3,
:root[data-theme="dark"] .guide-card dt,
:root[data-theme="dark"] .screenshot-card figcaption strong,
:root[data-theme="dark"] .weapon-showcase h4,
:root[data-theme="dark"] .weapon-showcase-stats dt,
:root[data-theme="dark"] .weapon-showcase-body dt,
:root[data-theme="dark"] .weapon-index-card h3,
:root[data-theme="dark"] .weapon-index-card h4,
:root[data-theme="dark"] .weapon-index-card dt,
:root[data-theme="dark"] .enemy-card-body strong,
:root[data-theme="dark"] .item-card-body strong,
:root[data-theme="dark"] .cell-name,
:root[data-theme="dark"] .live-leaderboard-head h3,
:root[data-theme="dark"] .live-leaderboard-controls label,
:root[data-theme="dark"] .live-leaderboard-rank,
:root[data-theme="dark"] .live-leaderboard-score,
:root[data-theme="dark"] .live-leaderboard-name {
    color: var(--ink);
}

:root[data-theme="dark"] .quick-card p,
:root[data-theme="dark"] .system-card p,
:root[data-theme="dark"] .guide-card p,
:root[data-theme="dark"] .screenshot-card figcaption,
:root[data-theme="dark"] .weapon-showcase-stats dd,
:root[data-theme="dark"] .weapon-showcase-body dd,
:root[data-theme="dark"] .weapon-showcase-body p,
:root[data-theme="dark"] .weapon-showcase-body li,
:root[data-theme="dark"] .weapon-showcase-media figcaption,
:root[data-theme="dark"] .weapon-index-card p,
:root[data-theme="dark"] .weapon-index-card dd,
:root[data-theme="dark"] .weapon-index-card-media figcaption,
:root[data-theme="dark"] .enemy-card-body span,
:root[data-theme="dark"] .item-card-body span,
:root[data-theme="dark"] .enemy-card dd,
:root[data-theme="dark"] .item-card dd,
:root[data-theme="dark"] .cell-note,
:root[data-theme="dark"] .index-summary,
:root[data-theme="dark"] .index-reward,
:root[data-theme="dark"] .infobox-media figcaption,
:root[data-theme="dark"] .live-leaderboard-head p,
:root[data-theme="dark"] .live-leaderboard-status,
:root[data-theme="dark"] .search-result span,
:root[data-theme="dark"] .search-empty,
:root[data-theme="dark"] .search-results-count {
    color: var(--muted);
}

:root[data-theme="dark"] .weapon-index-card h3 a,
:root[data-theme="dark"] .search-result strong {
    color: var(--link);
}

:root[data-theme="dark"] .table-scroll,
:root[data-theme="dark"] .data-table,
:root[data-theme="dark"] .data-table tr,
:root[data-theme="dark"] .data-table td,
:root[data-theme="dark"] .detail-table tr,
:root[data-theme="dark"] .detail-table td,
:root[data-theme="dark"] .live-leaderboard-table-wrap,
:root[data-theme="dark"] .live-leaderboard-table,
:root[data-theme="dark"] .live-leaderboard-table tr,
:root[data-theme="dark"] .live-leaderboard-table td,
:root[data-theme="dark"] .infobox-media,
:root[data-theme="dark"] .infobox-links,
:root[data-theme="dark"] .enemy-card dl,
:root[data-theme="dark"] .item-card dl,
:root[data-theme="dark"] .weapon-index-card .weapon-level-track {
    border-color: var(--line-soft);
    background: var(--paper);
    color: var(--ink);
}

:root[data-theme="dark"] .data-table th,
:root[data-theme="dark"] .detail-table th,
:root[data-theme="dark"] .infobox-table th,
:root[data-theme="dark"] .live-leaderboard-table th {
    border-color: var(--line-soft);
    background: var(--paper-2);
    color: var(--ink);
}

:root[data-theme="dark"] .data-table td,
:root[data-theme="dark"] .data-table th,
:root[data-theme="dark"] .detail-table th,
:root[data-theme="dark"] .detail-table td,
:root[data-theme="dark"] .infobox-table th,
:root[data-theme="dark"] .infobox-table td,
:root[data-theme="dark"] .live-leaderboard-table th,
:root[data-theme="dark"] .live-leaderboard-table td,
:root[data-theme="dark"] .weapon-showcase-stats div,
:root[data-theme="dark"] .weapon-showcase-body > section,
:root[data-theme="dark"] .weapon-index-card-head,
:root[data-theme="dark"] .weapon-index-card-track,
:root[data-theme="dark"] .weapon-index-card-stats div,
:root[data-theme="dark"] .weapon-index-card-body section,
:root[data-theme="dark"] .enemy-card dl div,
:root[data-theme="dark"] .item-card dl div,
:root[data-theme="dark"] .infobox-media figcaption {
    border-color: var(--line-soft);
}

:root[data-theme="dark"] .data-table tbody tr:nth-child(even),
:root[data-theme="dark"] .live-leaderboard-table tbody tr:nth-child(even) {
    background: #1a2330;
}

:root[data-theme="dark"] .data-table tbody tr:nth-child(even) td,
:root[data-theme="dark"] .live-leaderboard-table tbody tr:nth-child(even) td {
    background: #1a2330;
}

:root[data-theme="dark"] .data-table tbody tr:hover,
:root[data-theme="dark"] .live-leaderboard-table tbody tr:hover {
    background: #243044;
}

:root[data-theme="dark"] .data-table tbody tr:hover td,
:root[data-theme="dark"] .live-leaderboard-table tbody tr:hover td {
    background: #243044;
}

:root[data-theme="dark"] .data-table td::before,
:root[data-theme="dark"] .live-leaderboard-table td::before {
    color: var(--ink);
}

:root[data-theme="dark"] .table-filter input,
:root[data-theme="dark"] .card-filter input,
:root[data-theme="dark"] .live-leaderboard-controls select,
:root[data-theme="dark"] .live-leaderboard-refresh,
:root[data-theme="dark"] .search-results-more {
    border-color: var(--line);
    background: var(--field);
    color: var(--field-ink);
}

:root[data-theme="dark"] .tag,
:root[data-theme="dark"] .value-chip,
:root[data-theme="dark"] .cell-tag,
:root[data-theme="dark"] .weapon-milestone-chip,
:root[data-theme="dark"] .weapon-level-pip,
:root[data-theme="dark"] .weapon-index-card-head .weapon-kind-badge {
    border-color: var(--line);
    background: var(--paper-2);
    color: var(--ink);
}

:root[data-theme="dark"] .cell-tag.family-dvd {
    border-color: #3d8a5b;
    background: #183225;
    color: #c8f2d5;
}

:root[data-theme="dark"] .cell-tag.family-system {
    border-color: #527fab;
    background: #162b43;
    color: #cfe7ff;
}

:root[data-theme="dark"] .cell-tag.family-network {
    border-color: #7565b0;
    background: #251f43;
    color: #dfd7ff;
}

:root[data-theme="dark"] .cell-tag.family-meme {
    border-color: #9d7a2f;
    background: #332914;
    color: #f4dfaa;
}

:root[data-theme="dark"] .cell-tag.family-core {
    border-color: #9c5c58;
    background: #351f22;
    color: #ffd2ce;
}

:root[data-theme="dark"] .weapon-level-pip.is-milestone {
    border-color: var(--focus);
    background: #2d5f9f;
    color: #fff;
}

:root[data-theme="dark"] .achievement-index-icon,
:root[data-theme="dark"] .achievement-infobox-icon,
:root[data-theme="dark"] .live-leaderboard-avatar,
:root[data-theme="dark"] .image-fallback-label {
    border-color: var(--line-soft);
    background: #0b1018;
    color: var(--muted);
}

:root[data-theme="dark"] .callout,
:root[data-theme="dark"] .quote-box {
    border-color: var(--line-soft);
    background: var(--paper-2);
    color: var(--ink);
}

:root[data-theme="dark"] .quote-box {
    font-family: var(--font-sans);
    font-size: 14px;
}

:root[data-theme="dark"] .weapon-showcase,
:root[data-theme="dark"] .weapon-index-card {
    border-color: var(--line-soft);
    background: var(--paper);
    color: var(--ink);
}

:root[data-theme="dark"] .weapon-showcase-header,
:root[data-theme="dark"] .weapon-index-card-head {
    border-color: var(--line-soft);
    background: #121417;
    color: var(--ink);
}

:root[data-theme="dark"] .weapon-showcase h3,
:root[data-theme="dark"] .weapon-showcase-header p,
:root[data-theme="dark"] .weapon-level-readout,
:root[data-theme="dark"] .weapon-index-card-head p {
    color: var(--ink);
}

:root[data-theme="dark"] .weapon-showcase-media,
:root[data-theme="dark"] .weapon-index-card-media,
:root[data-theme="dark"] .enemy-card-media,
:root[data-theme="dark"] .item-card-media {
    border-color: var(--line-soft);
    background: #0d0f12;
}

:root[data-theme="dark"] .weapon-showcase-media figcaption,
:root[data-theme="dark"] .weapon-index-card-media figcaption,
:root[data-theme="dark"] .screenshot-card figcaption,
:root[data-theme="dark"] .live-leaderboard-status,
:root[data-theme="dark"] .live-leaderboard-table-wrap,
:root[data-theme="dark"] .live-leaderboard-table {
    background: var(--paper);
    color: var(--muted);
}

:root[data-theme="dark"] .weapon-showcase-media .media-lightbox-trigger .image-fallback-label,
:root[data-theme="dark"] .weapon-index-card-media .media-lightbox-trigger .image-fallback-label,
:root[data-theme="dark"] .screenshot-card .media-lightbox-trigger .image-fallback-label,
:root[data-theme="dark"] .infobox-media .media-lightbox-trigger .image-fallback-label,
:root[data-theme="dark"] .mobile-infobox-media .media-lightbox-trigger .image-fallback-label {
    min-height: 112px;
    border: 0;
    background: #0d0f12;
    color: var(--muted);
}

:root[data-theme="dark"] .weapon-showcase-media .media-lightbox-trigger .image-fallback-label,
:root[data-theme="dark"] .weapon-index-card-media .media-lightbox-trigger .image-fallback-label {
    aspect-ratio: 16 / 10;
}

:root[data-theme="dark"] .screenshot-card .media-lightbox-trigger .image-fallback-label,
:root[data-theme="dark"] .infobox-media .media-lightbox-trigger .image-fallback-label,
:root[data-theme="dark"] .mobile-infobox-media .media-lightbox-trigger .image-fallback-label {
    aspect-ratio: 16 / 9;
}

:root[data-theme="dark"] .data-table tbody tr:nth-child(even),
:root[data-theme="dark"] .data-table tbody tr:nth-child(even) td,
:root[data-theme="dark"] .live-leaderboard-table tbody tr:nth-child(even),
:root[data-theme="dark"] .live-leaderboard-table tbody tr:nth-child(even) td {
    background: #1c2026;
}

:root[data-theme="dark"] .data-table tbody tr:hover,
:root[data-theme="dark"] .data-table tbody tr:hover td,
:root[data-theme="dark"] .live-leaderboard-table tbody tr:hover,
:root[data-theme="dark"] .live-leaderboard-table tbody tr:hover td {
    background: #252b33;
}

:root[data-theme="dark"] .mobile-infobox-media,
:root[data-theme="dark"] .weapon-showcase-stats,
:root[data-theme="dark"] .weapon-showcase-body,
:root[data-theme="dark"] .weapon-index-card-track,
:root[data-theme="dark"] .weapon-index-card-stats,
:root[data-theme="dark"] .weapon-index-card-body,
:root[data-theme="dark"] .infobox-table,
:root[data-theme="dark"] .infobox-table tr,
:root[data-theme="dark"] .live-leaderboard-state td {
    border-color: var(--line-soft);
    background: var(--paper);
    color: var(--ink);
}

:root[data-theme="dark"] .mobile-infobox-media figcaption,
:root[data-theme="dark"] .weapon-showcase-media figcaption,
:root[data-theme="dark"] .weapon-index-card-media figcaption {
    border-color: var(--line-soft);
    background: var(--paper);
    color: var(--muted);
}

:root[data-theme="dark"] .mobile-infobox-image,
:root[data-theme="dark"] .infobox-image {
    background: #0d0f12;
}

:root[data-theme="dark"] .weapon-level-track,
:root[data-theme="dark"] .weapon-index-card .weapon-level-track {
    border-color: var(--line-soft);
    background: #151922;
}

:root[data-theme="dark"] .weapon-level-pip {
    border-color: #4d5663;
    background: #222831;
    color: #c2cad6;
}

:root[data-theme="dark"] .weapon-level-pip.is-milestone,
:root[data-theme="dark"] .weapon-milestone-chip {
    border-color: #5f96df;
    background: #17304f;
    color: #d8ebff;
}

:root[data-theme="dark"] .infobox-links,
:root[data-theme="dark"] .live-leaderboard-status,
:root[data-theme="dark"] .live-leaderboard-table-wrap,
:root[data-theme="dark"] .live-leaderboard-table,
:root[data-theme="dark"] .live-leaderboard-refresh:disabled {
    border-color: var(--line-soft);
    background: var(--paper);
    color: var(--muted);
}
