/* Gunsmith — site styles (warm olive/gold; legacy var names kept for compatibility) */
:root {
    --sushi-cyan: #d8b04a;
    --sushi-cyan-dark: #8f6222;
    --sushi-teal: #5a431d;
    --sushi-deep: #191209;
    --sushi-yellow: #f3bf56;
    --sushi-yellow-dark: #b9761b;
    --sushi-card: rgba(49, 34, 14, 0.8);
    --sushi-border: rgba(243, 191, 86, 0.4);
    --sushi-text: #f8efe0;
    --sushi-muted: #d7c19a;
    --nav-bg: rgba(24, 17, 10, 0.96);
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    /* Windows Chrome/Opera: флаги-эмодзи не должны наследовать текстовый Segoe UI */
    --font-emoji: "Noto Color Emoji", "Segoe UI Emoji", "Apple Color Emoji", "Twemoji Mozilla", emoji, sans-serif;
    --site-nav-height: 64px;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100vw;
    /* Fills gutter under custom scrollbar corner (no white flash) */
    background-color: var(--sushi-deep);
}

body {
    margin: 0;
    font-family: var(--font);
    background: linear-gradient(165deg, var(--sushi-deep) 0%, #6d4f22 46%, #3b2912 100%);
    color: var(--sushi-text);
    min-height: 100vh;
    overflow-x: hidden;
    max-width: 100vw;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
}

.hidden {
    display: none !important;
}

/* Блокировка прокрутки страницы при открытом lightbox скриншота */
html.is-modal-open,
body.is-modal-open {
    overflow: hidden !important;
    overscroll-behavior: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.container--narrow {
    max-width: 900px;
}

/* Шапка: без ограничения 1200px — иначе на широком мониторе логотип и меню выглядят «колонкой» по центру экрана */
.site-nav .container.site-nav__inner {
    max-width: none;
    width: 100%;
}

@media (min-width: 1280px) {
    .site-nav .container.site-nav__inner {
        padding-left: clamp(1rem, 4vw, 2.5rem);
        padding-right: clamp(1rem, 4vw, 2.5rem);
    }
}

/* Nav — бренд слева, ссылки + язык справа */
/* direction: ltr + dir на <nav> — при html[dir=rtl] flex/order не ломает шапку (как изоляция карусели в devil-crushers) */
.site-nav {
    direction: ltr;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 3px solid var(--sushi-cyan);
    box-shadow: 0 4px 22px rgba(243, 191, 86, 0.22);
}

.site-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    /* Чуть меньше сверху: крупный логотип + метрики шрифта иначе визуально «сядут» ниже центра */
    padding-top: 0.65rem;
    padding-bottom: 1rem;
    box-sizing: border-box;
}

.site-nav__brand {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    color: #fff;
    letter-spacing: -0.02em;
}

.site-nav__end {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    min-width: 0;
}

@media (min-width: 1024px) {
    .site-nav__end {
        gap: 1.5rem;
    }
}

.site-nav__brand:hover {
    color: var(--sushi-yellow);
}

.site-nav__links {
    display: none;
    gap: 2rem;
    flex-wrap: wrap;
    row-gap: 0.5rem;
}

.site-nav__links a {
    display: inline-flex;
    align-items: center;
    line-height: 1.2;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 500;
}

.site-nav__links a:hover {
    color: var(--sushi-yellow);
}

.site-nav__news-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: 0.35rem;
}

.site-nav__link--news {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 1.15rem 0.35rem 0.15rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 500;
}

.site-nav__link--news:hover {
    color: var(--sushi-yellow);
}

.site-nav__news-text {
    display: inline-block;
}

/* Some scripts have taller glyph metrics and can inflate nav height. */
html[lang="my"] .site-nav__inner,
html[lang="km"] .site-nav__inner,
html[lang="lo"] .site-nav__inner,
html[lang="th"] .site-nav__inner,
html[lang="si"] .site-nav__inner,
html[lang="hi"] .site-nav__inner,
html[lang="ne"] .site-nav__inner,
html[lang="bn"] .site-nav__inner,
html[lang="pa"] .site-nav__inner,
html[lang="ta"] .site-nav__inner,
html[lang="te"] .site-nav__inner {
    padding-top: 0.52rem;
    padding-bottom: 0.82rem;
}

html[lang="my"] .site-nav__links a,
html[lang="km"] .site-nav__links a,
html[lang="lo"] .site-nav__links a,
html[lang="th"] .site-nav__links a,
html[lang="si"] .site-nav__links a,
html[lang="hi"] .site-nav__links a,
html[lang="ne"] .site-nav__links a,
html[lang="bn"] .site-nav__links a,
html[lang="pa"] .site-nav__links a,
html[lang="ta"] .site-nav__links a,
html[lang="te"] .site-nav__links a,
html[lang="my"] .site-nav__link--news,
html[lang="km"] .site-nav__link--news,
html[lang="lo"] .site-nav__link--news,
html[lang="th"] .site-nav__link--news,
html[lang="si"] .site-nav__link--news,
html[lang="hi"] .site-nav__link--news,
html[lang="ne"] .site-nav__link--news,
html[lang="bn"] .site-nav__link--news,
html[lang="pa"] .site-nav__link--news,
html[lang="ta"] .site-nav__link--news,
html[lang="te"] .site-nav__link--news,
html[lang="my"] .lang-switcher__trigger,
html[lang="km"] .lang-switcher__trigger,
html[lang="lo"] .lang-switcher__trigger,
html[lang="th"] .lang-switcher__trigger,
html[lang="si"] .lang-switcher__trigger,
html[lang="hi"] .lang-switcher__trigger,
html[lang="ne"] .lang-switcher__trigger,
html[lang="bn"] .lang-switcher__trigger,
html[lang="pa"] .lang-switcher__trigger,
html[lang="ta"] .lang-switcher__trigger,
html[lang="te"] .lang-switcher__trigger {
    line-height: 1.05;
}

.site-nav__badge-new {
    position: absolute;
    /* Было top: -0.35rem — бейдж уезжал к верхней кромке шапки; держим на уровне середины ссылки «Новости» */
    top: 50%;
    right: -0.08rem;
    z-index: 2;
    display: inline-block;
    padding: 0.18rem 0.42rem;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.15;
    color: #fff;
    background: linear-gradient(160deg, #ef5350, #c62828);
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(0, 0, 0, 0.2) inset;
    transform: translateY(calc(-50% + 3px)) rotate(25deg);
    transform-origin: 100% 50%;
    pointer-events: none;
}

.wiki-news-page {
    /* Ярче и насыщеннее, верх — тёплый янтарь (не белый / не крем) */
    --wiki-news-gold: #f0ca4a;
    --wiki-news-gold-dim: #9a6e12;
    --wiki-news-title-top: #d4ad5c;
    --wiki-news-title-mid: #e8bf2e;
    --wiki-news-card-bg: rgba(35, 44, 18, 0.62);
    /* Под фиксированную шапку (~56–60px): заметный зазор до крошек; крошки — близко к h1 (margin у nav ниже) */
    padding: calc(var(--site-nav-height) + 1.15rem) 0 4rem;
    min-height: 40vh;
    background:
        radial-gradient(ellipse 120% 80% at 50% -20%, rgba(240, 198, 74, 0.12), transparent 55%),
        linear-gradient(180deg, #11130b 0%, var(--sushi-deep) 45%, #1d2112 100%);
    color: rgba(255, 255, 255, 0.9);
}

.wiki-news-page__inner {
    max-width: 52rem;
}

.wiki-news-crumbs {
    margin: 0 0 0.15rem;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.55);
}

.wiki-news-crumbs__sep {
    margin: 0 0.4rem;
    color: rgba(255, 255, 255, 0.28);
    font-weight: 500;
}

.wiki-news-crumbs__link {
    color: rgba(255, 255, 255, 0.62);
    text-decoration: none;
    font-weight: 500;
}

.wiki-news-crumbs__link:hover {
    color: var(--sushi-yellow);
    text-decoration: underline;
}

.wiki-news-crumbs__muted {
    color: rgba(255, 255, 255, 0.45);
    font-weight: 500;
    cursor: default;
}

.wiki-news-crumbs__current {
    color: var(--wiki-news-gold);
    font-weight: 600;
}

.wiki-news-page__title {
    margin: 0 0 0.75rem;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: clamp(2rem, 5vw, 2.65rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: left;
    line-height: 1.1;
    background: linear-gradient(
        180deg,
        var(--wiki-news-title-top) 0%,
        var(--wiki-news-title-mid) 26%,
        #ecc22f 52%,
        var(--wiki-news-gold) 70%,
        var(--wiki-news-gold-dim) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.wiki-news-page__lead {
    margin: 0 0 2rem;
    max-width: 42rem;
    text-align: left;
    color: var(--sushi-muted);
    font-size: 1.05rem;
    line-height: 1.55;
}

.news-list {
    display: grid;
    gap: 1.1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.news-list__item {
    display: flex;
    min-width: 0;
}

.news-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    width: 100%;
    min-height: 11.875rem;
    padding: 0;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    background: var(--wiki-news-card-bg);
    border: 1px solid var(--sushi-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.news-card:hover {
    border-color: rgba(243, 191, 86, 0.55);
    background: rgba(50, 58, 24, 0.72);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    transform: translateY(-2px);
}

.news-card__thumb {
    flex: 0 0 clamp(7.5rem, 28vw, 11.5rem);
    background: rgba(25, 18, 9, 0.55);
    overflow: hidden;
}

.news-card__thumb--empty {
    min-width: clamp(5rem, 18vw, 8rem);
    background: linear-gradient(145deg, rgba(240, 198, 74, 0.15), rgba(35, 44, 18, 0.9));
}

.news-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 7.5rem;
    display: block;
}

.news-card__body {
    flex: 1;
    min-width: 0;
    padding: 1rem 1.15rem 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.news-card__title {
    margin: 0 0 0.35rem;
    font-size: clamp(0.95rem, 2.5vw, 1.05rem);
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--wiki-news-gold);
    line-height: 1.25;
}

.news-card__date {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--sushi-muted);
    margin-bottom: 0.45rem;
}

/* News list cards: same excerpt clamp for all posts (adjust here only). */
.news-card__excerpt {
    margin: 0;
    font-size: 0.9rem;
    color: var(--sushi-muted);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card__cta {
    margin-top: auto;
    padding-top: 0.55rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--sushi-yellow);
}

.wiki-news-page--article .wiki-section-back {
    margin-top: 2rem;
}

/* После крошек до h1: на списке сразу .wiki-news-page__title (крупнее); в статье — .wiki-news-article__title
   поменьше — без доп. отступа блок визуально «прилипает» к крошкам сильнее списка. */
.wiki-news-page--article .wiki-news-article {
    margin-top: clamp(0.45rem, 1.35vw, 0.9rem);
}

.wiki-news-article__header {
    margin: 0 0 1rem;
    text-align: left;
}

.wiki-news-article__title {
    margin: 0 0 0.5rem;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: clamp(1.55rem, 4vw, 2.05rem);
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    line-height: 1.15;
    background: linear-gradient(
        180deg,
        var(--wiki-news-title-top) 0%,
        var(--wiki-news-title-mid) 26%,
        #ecc22f 52%,
        var(--wiki-news-gold) 70%,
        var(--wiki-news-gold-dim) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.wiki-news-article__date {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.875rem;
    color: var(--sushi-muted);
    font-weight: 500;
}

.wiki-news-article__date-icon {
    color: rgba(255, 215, 0, 0.75);
    font-size: 0.9rem;
}

.wiki-news-article__lead {
    margin: 0 0 1.25rem;
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--sushi-text);
    font-weight: 500;
}

.wiki-news-article__figure {
    margin: 0 0 1.75rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(232, 197, 71, 0.2);
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.4);
}

.wiki-news-article__img {
    display: block;
    width: 100%;
    height: auto;
}

.wiki-news-article__body {
    max-width: none;
    margin: 0;
}

/* Разделитель между крупными секциями (h2) */
.wiki-news-article__rule {
    border: 0;
    height: 1px;
    /* Симметрия: зазор до линии и после — как между завершённым блоком и разделителем */
    margin: 1.75rem 0 1.75rem;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(243, 191, 86, 0.15) 12%,
        rgba(243, 191, 86, 0.65) 50%,
        rgba(243, 191, 86, 0.15) 88%,
        transparent 100%
    );
    box-shadow: 0 0 8px rgba(243, 191, 86, 0.2);
}

.wiki-news-article__rule + .wiki-news-article__h2 {
    margin-top: 0;
}

.wiki-news-article__h2 {
    margin: 1.75rem 0 0.65rem;
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.02em;
}

.wiki-news-article__h2--section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.75rem 0 0.85rem;
    padding: 0.7rem 0.95rem;
    border-radius: 12px;
    border: 1px solid rgba(240, 202, 74, 0.28);
    background: linear-gradient(
        105deg,
        rgba(79, 111, 24, 0.42) 0%,
        rgba(35, 44, 18, 0.72) 55%,
        rgba(28, 32, 14, 0.85) 100%
    );
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
    font-size: 1.15rem;
    color: #fff8e8;
}

.wiki-news-article__h2-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 10px;
    border: 1px solid rgba(240, 202, 74, 0.35);
    background: rgba(0, 0, 0, 0.28);
    color: var(--wiki-news-gold, #f3bf56);
    font-size: 1.05rem;
}

.wiki-news-article__h2-text {
    flex: 1;
    min-width: 0;
    line-height: 1.25;
}

.wiki-news-article__h2:first-child {
    margin-top: 0;
}

.wiki-news-article__h2--section:first-child {
    margin-top: 0;
}

.wiki-news-article__h3 {
    margin: 1.25rem 0 0.45rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: rgba(255, 215, 0, 0.92);
}

.wiki-news-article__h3-link {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.14em;
}

.wiki-news-article__h3-link:hover {
    color: #fff3c6;
}

/* Плотнее между соседними абзацами; крупные секции отделяет hr + h2 */
.wiki-news-article__p {
    margin: 0 0 0.5rem;
    line-height: 1.68;
    color: rgba(255, 255, 255, 0.88);
}

.wiki-news-article__body > .wiki-news-article__p:last-of-type {
    margin-bottom: 0.75rem;
}

/* «On this site: … video page … Media Library» — жёлтая подсветка ссылок */
.wiki-news-article__p--site-links .wiki-news-article__site-link {
    display: inline;
    margin: 0 0.04em;
    padding: 0.1em 0.42em 0.14em;
    border-radius: 0.28em;
    font-weight: 700;
    color: #1a1408;
    text-decoration: none;
    background: linear-gradient(180deg, #fff59d 0%, #ffeb3b 42%, #fdd835 100%);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.18);
}

.wiki-news-article__p--site-links .wiki-news-article__site-link:hover {
    color: #0d0a04;
    background: linear-gradient(180deg, #fffde7 0%, #fff176 45%, #ffeb3b 100%);
}

.wiki-news-article__p--site-links .wiki-news-article__site-link:focus-visible {
    outline: 2px solid rgba(243, 191, 86, 0.65);
    outline-offset: 2px;
}

.wiki-news-article__inline-link {
    font-weight: 700;
    color: #ffeb3b;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 235, 59, 0.45);
    transition: color 0.15s ease, border-color 0.15s ease;
}

.wiki-news-article__inline-link:hover {
    color: #fff9c4;
    border-bottom-color: rgba(255, 249, 196, 0.75);
}

.wiki-news-article__inline-link:focus-visible {
    outline: 2px solid rgba(243, 191, 86, 0.65);
    outline-offset: 2px;
    border-radius: 2px;
}

.wiki-news-article__section-cta {
    margin: 0.35rem 0 1.1rem;
}

.wiki-news-article__section-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(240, 202, 74, 0.5);
    background: linear-gradient(180deg, rgba(200, 48, 40, 0.92) 0%, rgba(150, 32, 28, 0.98) 100%);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.28);
    color: #fff;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    transition:
        filter 0.15s ease,
        transform 0.15s ease;
}

.wiki-news-article__section-cta-link:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    color: #fff;
}

.wiki-news-article__section-cta-link:focus-visible {
    outline: 2px solid rgba(243, 191, 86, 0.65);
    outline-offset: 2px;
}

.wiki-news-article__list {
    margin: 0.35rem 0 1rem;
    padding-left: 1.35rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.6;
}

.wiki-news-article__list li {
    margin-bottom: 0.35rem;
}

.wiki-news-article__list li::marker {
    color: var(--wiki-news-gold, #f3bf56);
}

/* RTL: wiki/news list + article should read from right edge */
[dir="rtl"] .wiki-news-crumbs,
[dir="rtl"] .wiki-news-page__title,
[dir="rtl"] .wiki-news-page__lead,
[dir="rtl"] .news-card__body,
[dir="rtl"] .news-card__title,
[dir="rtl"] .news-card__excerpt,
[dir="rtl"] .news-card__cta,
[dir="rtl"] .wiki-news-article__header,
[dir="rtl"] .wiki-news-article__lead,
[dir="rtl"] .wiki-news-article__body,
[dir="rtl"] .wiki-news-article__h2,
[dir="rtl"] .wiki-news-article__h3,
[dir="rtl"] .wiki-news-article__p,
[dir="rtl"] .wiki-news-page--article .wiki-section-back {
    text-align: center;
}

[dir="rtl"] .wiki-news-crumbs {
    direction: rtl;
}

[dir="rtl"] .wiki-news-article__date {
    flex-direction: row-reverse;
}

[dir="rtl"] .news-card__body {
    align-items: flex-end;
}

@media (max-width: 520px) {
    .news-card {
        flex-direction: column;
        min-height: 0;
    }

    .news-card__thumb {
        flex: none;
        width: 100%;
        max-height: 11rem;
    }

    .news-card__img {
        min-height: 8rem;
        max-height: 11rem;
        object-fit: cover;
    }
}

.site-nav__mobile .site-nav__news-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0;
}

.site-nav__mobile .site-nav__link--news {
    display: inline-flex;
    padding: 0;
}

.site-nav__mobile .site-nav__badge-new {
    position: static;
    transform: none;
    margin: 0;
    vertical-align: baseline;
    pointer-events: auto;
}

.site-nav__toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #fff;
}

.site-nav__toggle-bar {
    width: 24px;
    height: 3px;
    background: currentColor;
    border-radius: 2px;
}

.site-nav__mobile {
    padding: 0 1rem 1rem;
    border-top: 1px solid var(--sushi-border);
}

.site-nav__mobile a {
    display: block;
    padding: 0.75rem 0;
    text-decoration: none;
    color: var(--sushi-muted);
    font-weight: 500;
}

.site-nav__mobile a:hover {
    color: var(--sushi-yellow);
}

/* Desktop horizontal nav only from 1024px — tablets use hamburger + mobile menu */
@media (min-width: 1024px) {
    .site-nav__links {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        row-gap: 0.5rem;
    }

    .site-nav__toggle {
        display: none;
    }

    .site-nav__mobile {
        display: none !important;
    }

    /* Если desktop-меню переносится в 2 ряда, принудительно включаем mobile-nav */
    .site-nav.site-nav--force-mobile .site-nav__links {
        display: none !important;
    }

    .site-nav.site-nav--force-mobile .site-nav__toggle {
        display: flex !important;
    }

    .site-nav.site-nav--force-mobile .site-nav__mobile {
        display: block !important;
    }

    .site-nav.site-nav--force-mobile .site-nav__mobile.hidden {
        display: none !important;
    }
}

.site-nav__tools {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

/* Language switcher (devilcrushers-style: gold border, dark panel, scrollable list) */
.lang-switcher {
    position: relative;
    z-index: 110;
}

.lang-switcher__trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.42rem 0.6rem;
    margin: 0;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--sushi-yellow);
    background: rgba(25, 18, 9, 0.94);
    border: 1px solid rgba(255, 215, 0, 0.45);
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.lang-switcher__trigger:hover {
    border-color: rgba(255, 215, 0, 0.65);
    background: rgba(35, 44, 18, 0.95);
}

/* Флаги: как devil-crushers — Noto Color Emoji подгружается с Google Fonts в <head>, иначе Windows/Opera показывают «битые» флаги */
.lang-switcher__flag {
    font-family: "Noto Color Emoji", "Segoe UI Emoji", "Apple Color Emoji", "Twemoji Mozilla", emoji, sans-serif;
    font-size: 1.1rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    unicode-bidi: isolate;
}

.lang-switcher__label {
    font-family: var(--font);
    max-width: 7.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lang-switcher__caret {
    display: block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--sushi-yellow);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.lang-switcher__trigger[aria-expanded="true"] .lang-switcher__caret {
    transform: rotate(180deg);
}

.lang-switcher__list {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: min(16rem, calc(100vw - 2rem));
    max-height: min(70vh, 22rem);
    overflow-x: hidden;
    overflow-y: auto;
    scroll-behavior: auto;
    margin: 0;
    padding: 0.35rem 0;
    list-style: none;
    background: rgba(25, 18, 9, 0.98);
    border: 1px solid rgba(255, 215, 0, 0.42);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 215, 0, 0.35) rgba(25, 18, 9, 0.6);
}

.lang-switcher__list::-webkit-scrollbar {
    width: 8px;
}

.lang-switcher__list::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.28);
    border-radius: 8px;
}

[dir="rtl"] .lang-switcher__list {
    right: auto;
    left: 0;
}

.site-nav[dir="ltr"] .lang-switcher__list {
    right: 0;
    left: auto;
}

.lang-switcher__item {
    margin: 0;
}

.lang-switcher__option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.35rem;
    padding: 0.42rem 0.85rem;
    font-size: 0.9rem;
    line-height: 1.2;
    font-weight: 500;
    color: var(--sushi-text);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.lang-switcher__option:hover,
.lang-switcher__option:focus-visible {
    background: rgba(243, 191, 86, 0.12);
    color: #fff;
    outline: none;
}

.lang-switcher__option.is-active {
    color: var(--sushi-yellow);
    font-weight: 700;
    background: rgba(255, 215, 0, 0.08);
}

.lang-switcher__opt-flag {
    font-family: "Noto Color Emoji", "Segoe UI Emoji", "Apple Color Emoji", "Twemoji Mozilla", emoji, sans-serif;
    font-size: 1.15rem;
    line-height: 1;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    unicode-bidi: isolate;
}

.lang-switcher__opt-label {
    font-family: var(--font);
    flex: 1;
    min-width: 0;
    line-height: 1.2;
    white-space: nowrap;
}

@media (max-width: 1023px) {
    .lang-switcher__label {
        max-width: 5.5rem;
    }
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 1rem 4rem;
    overflow: hidden;
    border-bottom: 3px solid var(--sushi-cyan);
    box-shadow: 0 8px 32px rgba(240, 198, 74, 0.15);
    background: #222717;
    isolation: isolate;
}

/* Постер до загрузки видео; при отказе видео остаётся на фоне */
.hero__poster {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: #222717 url("/Decor/gunsmith-factory-banner.jpg") center center / cover no-repeat;
    pointer-events: none;
    transition: opacity 1.15s ease;
}

.hero.hero--video-on.hero--video-ready .hero__poster {
    opacity: 0;
}

.hero__video-shell {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1.15s ease;
}

.hero.hero--video-on.hero--video-ready .hero__video-shell {
    opacity: 1;
}

.hero__video-shell iframe,
.hero__iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 177.78vh;
    height: 100vh;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    border: 0;
    pointer-events: none;
}

.hero__video-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(35, 44, 18, 0.36) 0%, rgba(18, 20, 11, 0.66) 100%);
    opacity: 1;
    pointer-events: none;
    transition: background 1s ease;
}

/* Сильнее затемняем поверх видео после перехода с постера */
.hero.hero--video-on.hero--video-ready .hero__video-overlay {
    background: linear-gradient(180deg, rgba(35, 44, 18, 0.5) 0%, rgba(18, 20, 11, 0.84) 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255, 255, 255, 0.12), transparent 50%),
        linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 100% 100%, 112px 112px, 112px 112px;
    background-repeat: no-repeat, repeat, repeat;
    background-position: 0 0, 0 0, 0 0;
    opacity: 0.35;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .hero__video-shell,
    .hero__video-overlay {
        display: none !important;
    }

    .hero__poster {
        transition: none;
    }

    .hero::before {
        opacity: 0.5;
    }
}

.hero__content {
    position: relative;
    z-index: 4;
    width: 100%;
    max-width: min(72rem, 100%);
    margin-inline: auto;
    padding-inline: clamp(0.75rem, 4vw, 2rem);
    box-sizing: border-box;
    text-align: center;
}

.hero__title {
    margin: 0 0 0.75rem;
    /* Меньше vw — длинные SEO-заголовки (ru, de, …) реже ломаются на 2 строки до JS-fit */
    font-size: clamp(1.35rem, 4.8vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.015em;
    color: #fff;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
    max-width: 100%;
    margin-inline: auto;
}

/* После initHeroTitleFit() — одна строка, если влезает; иначе остаётся перенос */
.hero__title.hero__title--single-line {
    white-space: nowrap;
}

.hero__tagline {
    margin: 0 0 2rem;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--sushi-muted);
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    font-family: inherit;
}

.btn__icon {
    flex-shrink: 0;
}

.btn--primary {
    background: linear-gradient(135deg, #7fb539 0%, #4f6f18 100%);
    color: #fff;
    box-shadow:
        0 6px 22px rgba(79, 111, 24, 0.55),
        0 2px 8px rgba(243, 191, 86, 0.22);
}

.btn--primary:hover {
    transform: translateY(-3px);
    box-shadow:
        0 10px 28px rgba(79, 111, 24, 0.6),
        0 4px 14px rgba(243, 191, 86, 0.32);
    border-color: rgba(255, 255, 255, 0.35);
}

.btn--lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Sections */
.section {
    padding: 4rem 0;
    border-top: 1px solid var(--sushi-border);
    box-shadow: 0 -4px 16px rgba(240, 198, 74, 0.08);
}

.section__lead {
    text-align: center;
    margin: -1.5rem 0 2rem;
    color: var(--sushi-muted);
    font-size: 1rem;
}

.section--reviews {
    /* Как .section--events: один «тёмный пояс» по странице */
    background: linear-gradient(180deg, var(--sushi-deep) 0%, #1d2112 100%);
    overflow-x: clip;
}

/* Review slide cards */
.review-slide-card {
    text-align: start;
    min-width: 0;
    margin: 0;
    padding: 1.5rem 1.35rem;
    border-radius: 12px;
    background: linear-gradient(155deg, rgba(240, 198, 74, 0.1), rgba(45, 55, 24, 0.72));
    border: 1px solid rgba(255, 215, 0, 0.22);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

/* Изоляция bidi/flex на RTL-странице (как landing-review-card в devil-crushers) */
.review-slide-card[dir="ltr"] {
    unicode-bidi: isolate;
}

.review-slide-card__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.review-slide-card__author {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    min-width: 0;
}

.review-slide-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 215, 0, 0.35);
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.45), rgba(35, 44, 18, 0.5));
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 235, 180, 0.95);
}

.review-slide-card__flag {
    font-family: var(--font-emoji);
    font-size: 1rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55));
    unicode-bidi: isolate;
}

.review-slide-card__code {
    line-height: 1;
}

.review-slide-card__stars {
    margin: 0 0 0.85rem;
    letter-spacing: 0.12em;
    color: var(--sushi-yellow);
    font-size: 1.05rem;
    line-height: 1;
}

.review-slide-card__text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--sushi-muted);
}

/* Карусель: JS (translate3d) и порядок flex рассчитаны на LTR; при dir=rtl на <html> трек зеркалится — слайд «уезжает» */
[dir="rtl"] .reviews-carousel {
    direction: ltr;
}
[dir="rtl"] .reviews-carousel-slide {
    direction: ltr;
}
[dir="rtl"] .review-slide-card {
    direction: ltr;
}
.review-slide-card__text[dir="rtl"],
[dir="rtl"] .review-slide-card__text {
    direction: rtl;
    unicode-bidi: isolate;
    text-align: start;
}
[dir="rtl"] .reviews-carousel-slide .review-slide-card__stars {
    text-align: end;
}

/* Reviews carousel: full-bleed track, edge dimming, arrows over slides */
.reviews-carousel {
    position: relative;
    width: 100%;
    min-width: 0;
    padding: 0;
}

.reviews-carousel--bleed {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.reviews-carousel-viewport {
    overflow: hidden;
    width: 100%;
    min-width: 0;
    position: relative;
}

.reviews-carousel-track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    .reviews-carousel-track {
        transition: none;
    }
}

.reviews-carousel-slide {
    min-width: 0;
    box-sizing: border-box;
    padding: 0 3px;
    position: relative;
    z-index: 0;
    transition: z-index 0s linear 0.2s;
}

.reviews-carousel-slide.is-active {
    z-index: 2;
}

.reviews-carousel-slide .review-slide-card {
    width: 100%;
    max-width: 100%;
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1), box-shadow 0.4s ease,
        border-color 0.4s ease;
}

.reviews-carousel-slide.is-active .review-slide-card {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
    border-color: rgba(255, 215, 0, 0.45);
}

.reviews-carousel-slide.is-adjacent .review-slide-card {
    opacity: 0.78;
    transform: scale(0.99);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.reviews-carousel-slide:not(.is-active):not(.is-adjacent) .review-slide-card {
    opacity: 0.42;
    transform: scale(0.97);
}

@media (prefers-reduced-motion: reduce) {
    .reviews-carousel-slide .review-slide-card {
        transition: opacity 0.2s ease;
    }

    .reviews-carousel-slide:not(.is-active) .review-slide-card {
        transform: none;
    }
}

.reviews-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 12;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 215, 0, 0.5);
    background: rgba(25, 18, 9, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--sushi-yellow);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.reviews-carousel-prev {
    left: max(0.5rem, env(safe-area-inset-left, 0px));
}

.reviews-carousel-next {
    right: max(0.5rem, env(safe-area-inset-right, 0px));
}

@media (max-width: 639px) {
    .reviews-carousel-btn {
        width: 2.45rem;
        height: 2.45rem;
    }

    .reviews-carousel-prev {
        left: max(0.35rem, env(safe-area-inset-left, 0px));
    }

    .reviews-carousel-next {
        right: max(0.35rem, env(safe-area-inset-right, 0px));
    }
}

.reviews-carousel-btn:hover {
    background: rgba(240, 198, 74, 0.22);
    border-color: rgba(255, 215, 0, 0.65);
    transform: translateY(-50%) scale(1.06);
}

.reviews-carousel-btn:focus-visible {
    outline: 2px solid var(--sushi-yellow);
    outline-offset: 2px;
    transform: translateY(-50%);
}

@media (prefers-reduced-motion: reduce) {
    .reviews-carousel-btn:hover {
        transform: translateY(-50%);
    }
}

.reviews-carousel-dots {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding: 0 max(1rem, env(safe-area-inset-left, 0px)) 0 max(1rem, env(safe-area-inset-right, 0px));
}

.reviews-carousel-dot {
    width: 0.5rem;
    height: 0.5rem;
    padding: 0;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.22);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.reviews-carousel-dot.is-active {
    background: var(--sushi-yellow);
    transform: scale(1.25);
}

.reviews-carousel-dot:focus-visible {
    outline: 2px solid var(--sushi-yellow);
    outline-offset: 2px;
}

.section--shots {
    /* Как .section--events */
    background: linear-gradient(180deg, var(--sushi-deep) 0%, #1d2112 100%);
}

.section--features {
    background: linear-gradient(180deg, #30381a 0%, #181c10 100%);
}

/* Тот же фон, что у Key Features: градиент как у .section--features */
.section--gameplay {
    background: linear-gradient(180deg, #30381a 0%, #181c10 100%);
}

.gameplay-video {
    max-width: 56rem;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--sushi-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    aspect-ratio: 16 / 9;
    background: #000;
}

.gameplay-video__iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.section--events {
    background: linear-gradient(180deg, var(--sushi-deep) 0%, #1d2112 100%);
}

.section--about {
    background: linear-gradient(180deg, #181c10 0%, var(--sushi-deep) 100%);
    padding-bottom: 1.5rem;
}

.section__title {
    margin: 0 0 2.5rem;
    font-size: clamp(1.75rem, 4vw, 2rem);
    font-weight: 800;
    text-align: center;
    color: #fff;
}

/* Carousel */
.carousel-wrap {
    margin: 0 -1rem;
}

@media (min-width: 768px) {
    .carousel-wrap {
        margin: 0;
    }
}

.carousel {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding: 2rem calc(50px + 1rem);
    width: 100vw;
    max-width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.screenshot-card {
    flex: 0 0 auto;
    width: min(88vw, 720px);
    aspect-ratio: 16 / 9;
    height: auto;
    padding: 0;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: var(--sushi-card);
    border: 1px solid var(--sushi-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screenshot-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.screenshot-card:hover {
    transform: scale(1.04);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

@media (max-width: 1023px) {
    .screenshot-card {
        width: min(90vw, 560px);
    }

    .carousel {
        padding: 2.5rem 1.5rem 2.5rem 3.75rem;
        gap: 1.5rem;
    }
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

@media (min-width: 769px) {
    .carousel-indicators {
        display: none;
    }
}

.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.carousel-indicators button.is-active {
    background: var(--sushi-yellow);
    transform: scale(1.15);
}

/* Feature grid */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 600px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Last lone card in 2-col layout: center like first column width */
    .feature-grid .feature-card:nth-child(9) {
        grid-column: 1 / -1;
        justify-self: center;
        width: calc((100% - 1rem) / 2);
        max-width: 100%;
    }
}

@media (min-width: 1024px) {
    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .feature-grid .feature-card:nth-child(9) {
        grid-column: auto;
        justify-self: stretch;
        width: auto;
        max-width: none;
    }
}

.feature-card {
    padding: 1.5rem 1.25rem;
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(240, 198, 74, 0.12), rgba(35, 44, 18, 0.5));
    border: 1px solid rgba(255, 215, 0, 0.12);
    backdrop-filter: blur(8px);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 215, 0, 0.35);
    box-shadow: 0 8px 28px rgba(240, 198, 74, 0.15);
}

.feature-card__title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0 0 0.75rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
}

.feature-card__emoji {
    font-family: var(--font-emoji);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 3.35rem;
    height: 3.35rem;
    padding: 0;
    font-size: 1.85rem;
    line-height: 1;
    unicode-bidi: isolate;
    background: linear-gradient(145deg, rgba(143, 179, 55, 0.42), rgba(35, 44, 18, 0.72));
    border: 1px solid rgba(255, 215, 0, 0.45);
    border-radius: 12px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 0 0 1px rgba(243, 191, 86, 0.22),
        0 0 14px rgba(243, 191, 86, 0.38),
        0 0 22px rgba(127, 181, 57, 0.2),
        0 4px 12px rgba(0, 0, 0, 0.35);
    text-shadow:
        0 0 10px rgba(243, 191, 86, 0.42),
        0 0 2px rgba(255, 235, 150, 0.5);
}

.feature-card__title-text {
    flex: 1;
    min-width: 0;
}

.feature-card__text {
    margin: 0;
    color: var(--sushi-muted);
    line-height: 1.55;
    font-size: 0.95rem;
}

/* Events — те же карточные хром, что у feature-grid; на широких экранах 2×2, не четыре узкие колонки */
.event-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    max-width: 56rem;
    margin-inline: auto;
}

@media (min-width: 640px) {
    .event-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

.event-item {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
    text-align: start;
    padding: 1.35rem 1.35rem 1.4rem;
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(240, 198, 74, 0.1), rgba(35, 44, 18, 0.52));
    border: 1px solid rgba(255, 215, 0, 0.14);
    backdrop-filter: blur(8px);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
    min-width: 0;
}

.event-item__body {
    flex: 1;
    min-width: 0;
}

.event-item:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 215, 0, 0.32);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.event-item__icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(165deg, rgba(130, 88, 32, 0.95), rgba(38, 24, 10, 0.98));
    border: 1px solid rgba(240, 198, 74, 0.42);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 4px 16px rgba(0, 0, 0, 0.35);
}

.event-item:hover .event-item__icon {
    border-color: rgba(240, 198, 74, 0.62);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 4px 20px rgba(240, 198, 74, 0.12);
}

.event-item__emoji {
    font-family: var(--font-emoji);
    font-size: 1.65rem;
    line-height: 1;
    display: block;
}

.event-item__title {
    margin: 0 0 0.55rem;
    font-size: 1.08rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

.event-item__text {
    margin: 0;
    font-size: 0.92rem;
    color: var(--sushi-muted);
    line-height: 1.55;
}

/* About */
.about-card {
    padding: 2rem;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(240, 198, 74, 0.1), rgba(35, 44, 18, 0.55));
    border: 1px solid var(--sushi-border);
}

.about-card__p {
    margin: 0 0 1.25rem;
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--sushi-muted);
    text-align: left;
}

.about-card__p:last-of-type {
    margin-bottom: 0;
}

.text-accent {
    color: var(--sushi-yellow);
}

.about-card__cta {
    margin-top: 2rem;
    text-align: center;
}

/* Footer */
.site-footer {
    padding: 0.875rem 1rem 2.25rem;
    background: linear-gradient(135deg, #4f3514 0%, #1c140b 52%, #6d4a1d 100%);
    border-top: 3px solid rgba(243, 191, 86, 0.85);
    box-shadow: 0 -4px 20px rgba(243, 191, 86, 0.2);
}

.site-footer__store-social {
    padding-top: 0.25rem;
    margin-bottom: 0.25rem;
}

.site-footer__store-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.site-footer__store-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    border-radius: 0.5rem;
    background: rgba(0, 0, 0, 0.38);
    border: 1px solid rgba(255, 215, 0, 0.45);
    color: var(--sushi-yellow);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition:
        color 0.15s ease,
        border-color 0.15s ease,
        background 0.15s ease,
        box-shadow 0.15s ease;
}

.site-footer__store-btn:hover {
    color: #fff3a3;
    border-color: rgba(255, 236, 150, 0.75);
    background: rgba(255, 215, 0, 0.1);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.2);
}

.site-footer__store-btn:focus-visible {
    outline: 2px solid rgba(255, 215, 0, 0.85);
    outline-offset: 2px;
}

.site-footer__store-icon {
    flex-shrink: 0;
    pointer-events: none;
}

.site-footer__social {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin: 0.65rem 0 0.55rem;
    padding: 0;
    list-style: none;
}

.site-footer__social-item {
    margin: 0;
    padding: 0;
}

.site-footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem;
    border-radius: 0.35rem;
    color: var(--sushi-yellow);
    text-decoration: none;
    transition:
        color 0.15s ease,
        opacity 0.15s ease,
        filter 0.15s ease;
}

.site-footer__social-link:hover {
    color: #fff3a3;
    opacity: 1;
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.45));
}

.site-footer__social-link:focus-visible {
    outline: 2px solid rgba(255, 215, 0, 0.85);
    outline-offset: 2px;
}

.site-footer__social-link--disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.site-footer__social-icon {
    font-size: 1.25rem;
    line-height: 1;
    /* Иначе клик может «дублироваться» (иконка + ссылка) и открывать вкладку дважды */
    pointer-events: none;
}

.site-footer__gold-line {
    height: 1px;
    margin-top: 0.25rem;
    background: linear-gradient(90deg, transparent, rgba(240, 198, 74, 0.35), transparent);
}

.site-footer__gold-line--copy {
    margin-top: 0;
    margin-bottom: 1rem;
}

.site-footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
    margin-top: 0.75rem;
}

@media (min-width: 768px) {
    .site-footer__inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 2rem;
        text-align: left;
    }
}

.site-footer__title {
    margin: 0 0 0.35rem;
    font-size: 1.5rem;
    color: #fff;
}

.site-footer__sub {
    margin: 0;
    color: var(--sushi-muted);
    font-size: 0.95rem;
}

.site-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.site-footer__links a {
    color: var(--sushi-muted);
    text-decoration: none;
    font-size: 0.95rem;
}

.site-footer__links a:hover {
    color: var(--sushi-yellow);
}

.site-footer__copy {
    margin: 1.5rem 0 0;
    padding-top: 0;
    border-top: none;
    text-align: center;
}

.site-footer__copy p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--sushi-muted);
    opacity: 0.85;
}

.site-footer__copy a {
    color: rgba(240, 198, 74, 0.55);
    text-decoration: none;
}

.site-footer__copy a:hover {
    color: var(--sushi-yellow);
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right))
        max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
    overflow: auto;
    overscroll-behavior: contain;
}

.modal.hidden {
    display: none;
}

.modal:not(.hidden) {
    display: flex;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
}

.modal__box {
    position: relative;
    z-index: 1;
    margin: auto;
    max-width: min(96vw, 1200px);
    max-height: min(90vh, 900px);
}

.modal__img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: min(85vh, 810px);
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.modal__close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 2;
    box-sizing: border-box;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.modal__close:hover {
    color: var(--sushi-yellow);
}

/* Legal pages */
.legal-page {
    padding: calc(var(--site-nav-height) + 1.15rem) 1rem 4rem;
    min-height: 100vh;
}

.legal-page__title {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--sushi-yellow);
    margin: 0 0 2rem;
}

.legal-glass {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 16px;
    background: rgba(35, 44, 18, 0.55);
    border: 1px solid var(--sushi-border);
    backdrop-filter: blur(10px);
}

.legal-glass h2 {
    margin: 0.875rem 0 0.5rem;
    font-size: 1.35rem;
    color: #fff;
}

/* Разделитель между логическими секциями: заголовок после текста/списка предыдущего блока */
.legal-glass p + h2,
.legal-glass ul + h2 {
    margin-top: 1.75rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(240, 198, 74, 0.22);
}

.legal-glass p:not(.legal-meta),
.legal-glass li {
    color: var(--sushi-muted);
    line-height: 1.6;
}

.legal-glass p {
    margin: 0.5rem 0;
}

.legal-glass h2 + p {
    margin-top: 0;
}

.legal-glass h2 + ul {
    margin-top: 0;
}

.legal-glass ul {
    margin: 0.5rem 0;
    padding-left: 1.25rem;
}

.legal-glass a {
    color: var(--sushi-yellow);
}

.legal-glass a:hover {
    text-decoration: underline;
}

.legal-glass h2:first-of-type {
    margin-top: 0;
}

.legal-glass .legal-binding-note {
    margin-top: 0.5rem;
    margin-bottom: 0;
    padding-top: 0;
    font-size: 0.75rem;
    line-height: 1.45;
    color: var(--sushi-muted);
}

.legal-glass .legal-binding-note__link {
    color: var(--sushi-yellow);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-glass .legal-binding-note__link:hover {
    color: #fff3a3;
}

.legal-glass p.legal-meta {
    margin-top: 2rem;
    margin-bottom: 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--sushi-border);
    text-align: center;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--sushi-text);
    opacity: 0.65;
}

.legal-contact {
    margin-top: 0.5rem;
    padding: 0.625rem 0.75rem;
    border-radius: 8px;
    background: rgba(240, 198, 74, 0.08);
    border: 1px solid var(--sushi-border);
}

.legal-contact p {
    margin: 0;
    line-height: 1.45;
}

.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--sushi-muted);
    font-weight: 500;
}

.legal-back:hover {
    color: var(--sushi-yellow);
}

/* Wiki hub and media pages */
.wiki-hub-grid,
.media-list {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: 1fr;
    gap: 1rem;
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 760px) {
    .wiki-hub-grid,
    .media-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.wiki-hub-card,
.media-card {
    display: flex;
    min-height: 100%;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--sushi-border);
    background: rgba(35, 44, 18, 0.55);
    color: inherit;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
    transition:
        transform 0.16s ease,
        border-color 0.16s ease,
        background 0.16s ease;
}

.wiki-hub-card:hover,
.media-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 215, 0, 0.55);
    background: rgba(50, 58, 24, 0.68);
}

.wiki-hub-card {
    align-items: flex-start;
    gap: 1rem;
    height: 100%;
    min-height: 8.6rem;
    padding: 1.2rem;
}

.wiki-hub-card__icon {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 8px;
    color: var(--sushi-yellow);
    background: rgba(255, 215, 0, 0.1);
}

.wiki-hub-card__body,
.media-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 0;
}

.wiki-hub-card__title,
.media-card__title {
    color: #fff;
    font-size: 1.18rem;
    font-weight: 800;
    line-height: 1.25;
}

.wiki-hub-card__text,
.media-card__text {
    color: var(--sushi-muted);
    line-height: 1.5;
}

.wiki-hub-card__text {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.media-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1.4rem 0 0;
}

.media-tabs a {
    display: inline-flex;
    align-items: center;
    min-height: 2.25rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid rgba(255, 215, 0, 0.35);
    border-radius: 8px;
    color: var(--sushi-yellow);
    background: rgba(35, 44, 18, 0.55);
    text-decoration: none;
    font-weight: 700;
}

.media-section {
    margin-top: 2rem;
}

.media-section h2 {
    margin: 0 0 0.9rem;
    color: #fff;
    font-size: 1.35rem;
}

.media-card {
    flex-direction: column;
}

.media-list__item {
    display: flex;
    min-width: 0;
}

.media-list__item > .media-card {
    width: 100%;
    height: 100%;
}

.media-card__thumb {
    position: relative;
    flex: 0 0 auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.25);
}

.media-card__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-card__play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    color: #1a1006;
    background: var(--sushi-yellow);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35);
}

.media-card__body {
    flex: 1;
    padding: 1rem;
}

.media-card__type {
    align-self: flex-start;
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
    color: #1a1006;
    background: var(--sushi-yellow);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.2;
}

.media-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
}

.media-card__date {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--sushi-muted);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.3;
}

.media-card__cta {
    margin-top: auto;
    padding-top: 0.25rem;
    color: var(--sushi-yellow);
    font-weight: 800;
}

.media-list__empty {
    color: var(--sushi-muted);
}

.wiki-media-empty {
    margin: 2rem 0 0;
    max-width: 36rem;
    color: var(--sushi-muted);
    font-size: 1.05rem;
    line-height: 1.55;
}

.media-video {
    max-width: 52rem;
    margin: 0;
}

.media-video__header {
    margin-bottom: 1rem;
}

.media-video__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.media-video__meta .media-card__type {
    font-size: 0.72rem;
}

.wiki-media-video-page .wiki-news-article__title {
    font-size: clamp(1.45rem, 3.5vw, 1.9rem);
    letter-spacing: 0.018em;
}

.media-video__lead {
    max-width: 48rem;
}

.media-video__frame {
    margin: 1.25rem auto 2rem;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(232, 197, 71, 0.2);
    background: #000;
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.4);
}

.media-video__frame--short {
    aspect-ratio: 9 / 16;
    max-width: 430px;
}

.media-video__frame--video {
    aspect-ratio: 16 / 9;
    width: 100%;
    max-width: 100%;
}

.media-video__frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.media-video__seo {
    margin-top: 1.75rem;
}

.media-video__seo-link {
    margin-top: 0.95rem;
}

.media-video__seo-link a {
    color: var(--sushi-yellow);
    font-weight: 700;
    text-decoration: none;
}

.media-video__seo-link a:hover {
    text-decoration: underline;
}

/* Wiki changelog */
.wiki-changelog-page .wiki-news-page__inner {
    max-width: 76rem;
}

.changelog-panel {
    margin-top: 2rem;
    padding: clamp(1.1rem, 2.5vw, 1.7rem);
    border: 1px solid var(--sushi-border);
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(52, 34, 14, 0.84), rgba(96, 66, 26, 0.5)),
        rgba(30, 20, 10, 0.6);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

.changelog-panel__title {
    margin: 0;
    color: #fff;
    font-size: clamp(1.55rem, 3vw, 2.1rem);
    font-weight: 900;
    line-height: 1.12;
}

.changelog-panel__title--list {
    margin-top: 2.5rem;
}

.changelog-panel__lead {
    margin: 0.75rem 0 1.1rem;
    color: var(--sushi-muted);
    font-size: 1rem;
    line-height: 1.55;
}

.changelog-latest {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
}

.changelog-latest__item {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
    padding: 1rem;
    border: 1px solid rgba(255, 215, 0, 0.24);
    border-radius: 8px;
    background: rgba(35, 44, 18, 0.58);
}

.changelog-latest__icon {
    color: var(--sushi-yellow);
    font-size: 1.25rem;
    line-height: 1;
}

.changelog-latest__label,
.changelog-entry__meta {
    color: var(--sushi-muted);
    font-weight: 800;
    line-height: 1.3;
}

.changelog-latest__version {
    color: #fff;
    font-size: 1.2rem;
    line-height: 1.15;
}

.changelog-latest__date {
    color: var(--sushi-muted);
    font-size: 0.9rem;
    line-height: 1.35;
}

.changelog-list {
    border-top: 1px solid rgba(255, 215, 0, 0.2);
}

.changelog-entry {
    padding: 1rem 0 1.1rem;
    border-bottom: 1px solid rgba(255, 215, 0, 0.16);
}

.changelog-entry__title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
    color: #fff;
    font-size: clamp(1.15rem, 2.2vw, 1.55rem);
    font-weight: 900;
    line-height: 1.2;
}

.changelog-entry__title span {
    color: var(--sushi-yellow);
    font-size: 0.85rem;
}

.changelog-entry__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    margin: 0.35rem 0 0.75rem 1.4rem;
    font-size: 0.92rem;
}

.changelog-entry__list {
    display: grid;
    gap: 0.4rem;
    margin: 0;
    padding-left: 2.8rem;
    color: var(--sushi-text);
    line-height: 1.48;
}

.changelog-entry__list li::marker {
    color: var(--sushi-yellow);
}

@media (max-width: 900px) {
    .changelog-latest {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .changelog-latest {
        grid-template-columns: 1fr;
    }

    .changelog-panel {
        padding: 1rem;
    }

    .changelog-entry__meta {
        margin-left: 0;
    }

    .changelog-entry__list {
        padding-left: 1.35rem;
    }
}

/* Wiki catalog (items + buildings) */
.wiki-catalog-page .wiki-news-page__inner,
.wiki-weapons-page .wiki-news-page__inner,
.wiki-items-page .wiki-news-page__inner,
.wiki-buildings-page .wiki-news-page__inner {
    max-width: 78rem;
}

.wiki-catalog-detail-page .wiki-news-page__inner,
.wiki-weapon-page .wiki-news-page__inner {
    max-width: 60rem;
}

.wiki-catalog-detail-page .wiki-news-crumbs,
.wiki-weapon-page .wiki-news-crumbs {
    margin-bottom: 0.8rem;
}

/* Items list: jump nav + craft-location sections */
.wiki-items-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 1.5rem 0 1.75rem;
}

.wiki-items-jump__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.75rem;
    border: 1px solid var(--sushi-border);
    border-radius: 8px;
    background: rgba(35, 44, 18, 0.58);
    color: var(--sushi-text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    transition:
        border-color 0.15s ease,
        background 0.15s ease,
        color 0.15s ease;
}

.wiki-items-jump__chip:hover {
    border-color: rgba(255, 215, 0, 0.55);
    background: rgba(50, 58, 24, 0.72);
    color: var(--sushi-yellow);
}

.wiki-items-jump__count {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--sushi-yellow);
    opacity: 0.95;
}

.wiki-items-groups {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
}

.wiki-items-group__title {
    margin: 0 0 1rem;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--wiki-news-gold, #f0ca4a);
    scroll-margin-top: 5.5rem;
}

.wiki-items-group__count {
    margin-left: 0.35rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--sushi-muted);
    opacity: 0.75;
}

.wiki-items-group .weapon-list {
    margin: 0;
}

@media (max-width: 520px) {
    .wiki-items-jump__chip {
        flex: 1 1 calc(50% - 0.55rem);
        justify-content: center;
    }
}

/* Catalog prev/next (detail) + back to wiki (list) */
.wiki-catalog-pager {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    margin: 2rem 0 0;
    padding-top: 1.25rem;
    border-top: 1px solid var(--sushi-border);
}

.wiki-catalog-pager__link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 3rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--sushi-border);
    border-radius: 8px;
    background: rgba(35, 44, 18, 0.55);
    color: var(--sushi-yellow);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.25;
    transition:
        border-color 0.16s ease,
        background 0.16s ease,
        color 0.16s ease;
}

.wiki-catalog-pager__link:hover {
    border-color: rgba(255, 215, 0, 0.55);
    background: rgba(50, 58, 24, 0.68);
    color: #fff;
}

.wiki-catalog-pager__link--prev {
    justify-content: flex-start;
    text-align: left;
}

.wiki-catalog-pager__link--next {
    justify-content: flex-end;
    text-align: right;
}

.wiki-catalog-pager__name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wiki-catalog-pager__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 215, 0, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.wiki-catalog-pager__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.wiki-catalog-pager__icon--placeholder {
    color: var(--sushi-yellow);
    font-size: 0.9rem;
    opacity: 0.85;
}

.wiki-catalog-pager__chev {
    flex-shrink: 0;
    font-size: 1.35rem;
    line-height: 1;
    opacity: 0.9;
}

.wiki-catalog-pager__slot--empty {
    display: block;
    min-height: 3rem;
}

.wiki-section-back {
    margin: 2.25rem 0 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(240, 202, 74, 0.2);
    text-align: center;
}

.wiki-back-to-wiki {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: min(100%, 16rem);
    padding: 0.75rem 1.35rem;
    border-radius: 10px;
    border: 1px solid rgba(240, 202, 74, 0.55);
    background: linear-gradient(180deg, rgba(200, 48, 40, 0.95) 0%, rgba(160, 32, 28, 0.98) 100%);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition:
        filter 0.15s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.wiki-back-to-wiki:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
    color: #fff;
}

.wiki-back-to-wiki__icon {
    font-size: 1.1rem;
    line-height: 1;
}

@media (max-width: 520px) {
    .wiki-catalog-pager {
        grid-template-columns: 1fr;
    }

    .wiki-catalog-pager__link--next {
        justify-content: flex-start;
        text-align: left;
    }

    .wiki-catalog-pager__link--next .wiki-catalog-pager__name {
        text-align: left;
    }
}

.building-recipes {
    margin-top: 2rem;
}

.building-recipes__chips {
    margin-top: 1rem;
}

.wiki-item-meta {
    margin-top: 0.85rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(11rem, max-content));
    gap: 0.5rem;
    width: max-content;
    max-width: 100%;
    align-items: stretch;
}

.wiki-item-meta .wiki-item-pricing {
    display: contents;
}

.wiki-item-pricing {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.wiki-item-meta .wiki-craft-at,
.wiki-item-meta .wiki-output-craft {
    margin-top: 0;
}

/* Label may grow in the grid cell; price side stays content-width only. */
.wiki-item-meta .wiki-price-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.wiki-item-meta .wiki-price-row__label {
    flex: unset;
    max-width: none;
    min-width: 0;
}

.wiki-item-meta .wiki-price-row__amount {
    flex: unset;
    width: auto;
    max-width: max-content;
    justify-self: end;
}

.wiki-item-meta .wiki-output-craft,
.wiki-item-meta .wiki-craft-at {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.wiki-item-meta .wiki-output-craft__label,
.wiki-item-meta .wiki-craft-at__label {
    flex: unset;
    max-width: none;
    min-width: 0;
}

.wiki-item-meta .wiki-output-craft__value,
.wiki-item-meta .wiki-craft-at__link {
    flex: unset;
    width: auto;
    max-width: max-content;
    justify-self: end;
}

@media (max-width: 480px) {
    .wiki-item-meta {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .wiki-item-meta .wiki-price-row,
    .wiki-item-meta .wiki-craft-at,
    .wiki-item-meta .wiki-output-craft {
        width: 100%;
        max-width: 100%;
    }
}

.wiki-output-craft {
    display: inline-flex;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    width: auto;
    max-width: 100%;
    min-width: 0;
    min-height: 2.45rem;
    padding: 0;
    padding-left: 0.65rem;
    border-radius: 8px;
    border: 1px solid var(--sushi-border);
    background: rgba(35, 44, 18, 0.58);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.wiki-output-craft__label {
    display: flex;
    align-items: center;
    flex: 0 1 auto;
    padding: 0.42rem 0.5rem 0.42rem 0;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--sushi-muted);
    max-width: 5.75rem;
}

.wiki-output-craft__value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    align-self: stretch;
    padding: 0.42rem 0.62rem;
    border: none;
    border-left: 1px solid rgba(255, 215, 0, 0.28);
    border-radius: 0;
    background: rgba(0, 0, 0, 0.34);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
    color: var(--sushi-yellow);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.wiki-craft-at {
    display: inline-flex;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    width: auto;
    max-width: 100%;
    min-width: 0;
    min-height: 2.45rem;
    padding: 0;
    padding-left: 0.65rem;
    border-radius: 8px;
    border: 1px solid var(--sushi-border);
    background: rgba(35, 44, 18, 0.58);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.wiki-craft-at__label {
    display: flex;
    align-items: center;
    flex: 0 1 auto;
    padding: 0.42rem 0.5rem 0.42rem 0;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--sushi-muted);
    max-width: 6.25rem;
}

.wiki-craft-at__link {
    display: inline-flex;
    flex: 0 0 auto;
    align-self: stretch;
    width: auto;
    min-width: 0;
    color: inherit;
    text-decoration: none;
    transition: filter 0.16s ease;
}

.wiki-craft-at__link:hover {
    filter: brightness(1.1);
}

.wiki-craft-at__link:hover .wiki-craft-at__target {
    background: rgba(0, 0, 0, 0.38);
}

.wiki-craft-at__target {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex: 0 0 auto;
    width: auto;
    padding: 0.42rem 0.55rem;
    white-space: nowrap;
    border: none;
    border-left: 1px solid rgba(255, 215, 0, 0.22);
    border-radius: 0;
    background: rgba(0, 0, 0, 0.32);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.wiki-craft-at__target--static {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    align-self: stretch;
    width: auto;
    min-width: 0;
    padding: 0.42rem 0.55rem;
    white-space: nowrap;
    border: none;
    border-left: 1px solid rgba(255, 215, 0, 0.18);
    border-radius: 0;
    background: rgba(0, 0, 0, 0.32);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.wiki-craft-at__name {
    font-weight: 800;
    font-size: 0.95rem;
    line-height: 1.1;
    color: var(--sushi-yellow);
}

.wiki-craft-at__link:hover .wiki-craft-at__name {
    color: #fff;
}

.wiki-craft-at__icon {
    width: 1.65rem;
    height: 1.65rem;
    object-fit: contain;
    flex-shrink: 0;
}

.wiki-craft-at__icon--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--sushi-yellow);
    font-size: 1rem;
}

.wiki-price-row {
    display: inline-flex;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    width: auto;
    max-width: 100%;
    min-width: 0;
    min-height: 2.45rem;
    padding: 0;
    padding-left: 0.62rem;
    border-radius: 8px;
    border: 1px solid var(--sushi-border);
    background: rgba(35, 44, 18, 0.58);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.wiki-price-row__label {
    display: flex;
    align-items: center;
    flex: 0 1 auto;
    padding: 0.42rem 0.5rem 0.42rem 0;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--sushi-muted);
    max-width: 6.25rem;
}

.wiki-price-row__amount {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.32rem;
    flex: 0 0 auto;
    align-self: stretch;
    width: auto;
    min-width: 0;
    padding: 0.42rem 0.55rem;
    white-space: nowrap;
    border: none;
    border-left: 1px solid rgba(255, 215, 0, 0.22);
    border-radius: 0;
    background: rgba(0, 0, 0, 0.34);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.wiki-price-row--unlock .wiki-price-row__amount {
    border-left-color: rgba(255, 215, 0, 0.38);
    background: rgba(0, 0, 0, 0.42);
}

.wiki-money-icon {
    width: 1.25rem;
    height: 1.25rem;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

.wiki-money-amount {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.wiki-price-row--unlock .wiki-money-amount {
    color: var(--sushi-yellow);
}

.wiki-price-row--buy .wiki-money-amount,
.wiki-price-row--sell .wiki-money-amount {
    color: #f4e8c8;
}

.building-upgrade-card__head {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    width: 100%;
    min-width: 0;
}

.building-upgrade-card__unlock {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.5rem;
    border-radius: 0.4rem;
    background: rgba(243, 191, 86, 0.12);
    border: 1px solid rgba(243, 191, 86, 0.32);
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--sushi-yellow);
    white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.building-upgrade-card__unlock .wiki-money-icon {
    width: 1.05rem;
    height: 1.05rem;
}

.building-upgrade-card__unlock-value {
    font-variant-numeric: tabular-nums;
}

.building-upgrade-card__badges {
    display: inline-flex;
    flex-shrink: 0;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
}

.building-upgrade-card__capacity {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 0.28rem;
    padding: 0.2rem 0.5rem;
    border-radius: 0.4rem;
    background: rgba(243, 191, 86, 0.12);
    border: 1px solid rgba(243, 191, 86, 0.35);
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--sushi-yellow);
    white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.building-upgrade-card__capacity-icon {
    font-size: 0.72rem;
    opacity: 0.9;
}

.building-upgrade-card__capacity-value {
    font-variant-numeric: tabular-nums;
}

.weapon-component__body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.weapon-component__cost {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--sushi-yellow);
}

.weapon-component--link {
    padding: 0;
    transition:
        border-color 0.16s ease,
        background 0.16s ease,
        box-shadow 0.16s ease;
}

.weapon-component--link .weapon-component__link {
    display: inline-flex;
    align-items: center;
    min-height: 2.55rem;
    color: inherit;
    text-decoration: none;
}

.weapon-component--link:hover {
    border-color: rgba(255, 215, 0, 0.55);
    background: rgba(50, 58, 24, 0.68);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.sales-center-prices {
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--sushi-border);
}

.sales-center-prices__heading {
    margin: 0 0 0.55rem;
    font-size: clamp(1.2rem, 2.2vw, 1.45rem);
    font-weight: 800;
    color: var(--sushi-yellow);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.sales-center-prices__lead {
    margin: 0 0 1.15rem;
    max-width: 42rem;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--sushi-muted);
}

.sales-center-prices__group {
    margin-bottom: 1.15rem;
}

.sales-center-prices__group:last-child {
    margin-bottom: 0;
}

.sales-center-prices__group-title {
    margin: 0 0 0.5rem;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(243, 191, 86, 0.88);
}

.sales-center-prices__list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sales-center-price-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.42rem 0.6rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.22);
    background: rgba(35, 44, 18, 0.48);
    transition:
        border-color 0.16s ease,
        background 0.16s ease;
}

.sales-center-price-row:hover {
    border-color: rgba(255, 215, 0, 0.45);
    background: rgba(50, 58, 24, 0.62);
}

.sales-center-price-row__link {
    display: inline-flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.sales-center-price-row__link:hover .sales-center-price-row__name {
    color: var(--sushi-yellow);
}

.sales-center-price-row__icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.24);
}

.sales-center-price-row__icon img {
    width: 1.9rem;
    height: 1.9rem;
    object-fit: contain;
}

.sales-center-price-row__icon--placeholder {
    color: var(--sushi-yellow);
    font-size: 1rem;
}

.sales-center-price-row__name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--sushi-muted);
    overflow-wrap: anywhere;
}

.sales-center-price-row__price {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 0.28rem;
    padding: 0.2rem 0.48rem;
    border-radius: 0.4rem;
    background: rgba(243, 191, 86, 0.12);
    border: 1px solid rgba(243, 191, 86, 0.32);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--sushi-yellow);
    white-space: nowrap;
}

.sales-center-price-row__price .wiki-money-icon {
    width: 1rem;
    height: 1rem;
}

.sales-center-price-row__amount {
    font-variant-numeric: tabular-nums;
}

.supply-center-prices {
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--sushi-border);
}

.supply-center-prices__heading {
    margin: 0 0 0.55rem;
    font-size: clamp(1.2rem, 2.2vw, 1.45rem);
    font-weight: 800;
    color: var(--sushi-yellow);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.supply-center-prices__lead {
    margin: 0 0 1rem;
    max-width: 42rem;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--sushi-muted);
}

.wiki-catalog-price-table-wrap {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid var(--sushi-border);
    background: rgba(35, 44, 18, 0.45);
}

.wiki-catalog-price-table {
    width: 100%;
    min-width: 16rem;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.wiki-catalog-price-table thead th {
    padding: 0.55rem 0.75rem;
    text-align: start;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(243, 191, 86, 0.9);
    background: rgba(0, 0, 0, 0.22);
    border-bottom: 1px solid var(--sushi-border);
}

.wiki-catalog-price-table thead th:last-child {
    text-align: end;
    width: 8.5rem;
}

.wiki-catalog-price-table tbody tr {
    transition: background 0.16s ease;
}

.wiki-catalog-price-table tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.12);
}

.wiki-catalog-price-table tbody tr:hover {
    background: rgba(50, 58, 24, 0.55);
}

.wiki-catalog-price-table td {
    padding: 0.5rem 0.75rem;
    vertical-align: middle;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.wiki-catalog-price-table tbody tr:last-child td {
    border-bottom: 0;
}

.wiki-catalog-price-table__item {
    min-width: 0;
}

.wiki-catalog-price-table__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.wiki-catalog-price-table__link:hover .wiki-catalog-price-table__name {
    color: var(--sushi-yellow);
}

.wiki-catalog-price-table__icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.24);
}

.wiki-catalog-price-table__icon img {
    width: 1.75rem;
    height: 1.75rem;
    object-fit: contain;
}

.wiki-catalog-price-table__icon--placeholder {
    color: var(--sushi-yellow);
    font-size: 0.9rem;
}

.wiki-catalog-price-table__name {
    font-weight: 700;
    color: var(--sushi-muted);
    overflow-wrap: anywhere;
}

.wiki-catalog-price-table__price {
    text-align: end;
    white-space: nowrap;
}

.wiki-catalog-price-table__price-badge {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.28rem;
    padding: 0.2rem 0.48rem;
    border-radius: 0.4rem;
    background: rgba(243, 191, 86, 0.12);
    border: 1px solid rgba(243, 191, 86, 0.32);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--sushi-yellow);
}

.wiki-catalog-price-table__price-badge .wiki-money-icon {
    width: 1rem;
    height: 1rem;
}

.wiki-catalog-price-table__price-value {
    font-variant-numeric: tabular-nums;
}

.building-upgrades {
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--sushi-border);
}

.building-upgrades__heading {
    margin: 0 0 1rem;
    font-size: clamp(1.2rem, 2.2vw, 1.45rem);
    font-weight: 800;
    color: var(--sushi-yellow);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.building-upgrade-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.building-upgrade-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.85rem;
    width: 100%;
    padding: 1rem 1.1rem;
    border-radius: 8px;
    border: 1px solid var(--sushi-border);
    background: rgba(35, 44, 18, 0.55);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
    transition:
        border-color 0.16s ease,
        background 0.16s ease,
        box-shadow 0.16s ease;
}

.building-upgrade-card:hover {
    border-color: rgba(255, 215, 0, 0.55);
    background: rgba(50, 58, 24, 0.68);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

.building-upgrade-card__icon-wrap {
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    border-radius: 8px;
    background: radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.1), rgba(0, 0, 0, 0.18) 58%);
    border: 1px solid rgba(243, 191, 86, 0.25);
    overflow: visible;
}

.building-upgrade-card__icon {
    width: 4rem;
    height: 4rem;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35));
}

.building-upgrade-card__icon--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--sushi-yellow);
    font-size: 1.75rem;
}

.building-upgrade-card__roman {
    position: absolute;
    right: -0.2rem;
    bottom: -0.15rem;
    z-index: 2;
    min-width: 1.4rem;
    padding: 0.12rem 0.38rem;
    border-radius: 5px;
    background: linear-gradient(180deg, var(--sushi-yellow) 0%, var(--sushi-yellow-dark) 100%);
    color: #1c1408;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0.02em;
    text-align: center;
    box-shadow:
        0 2px 5px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(90, 55, 10, 0.55);
    pointer-events: none;
}

.building-upgrade-card__body {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    width: 100%;
}

.building-upgrade-card__title {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    text-align: start;
}

.building-upgrade-card__text {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--sushi-muted);
    text-align: start;
}

.weapon-seo-block {
    max-width: 54rem;
    margin-top: 1.4rem;
    padding: 1rem 1.1rem;
    border-left: 3px solid var(--sushi-yellow);
    border-radius: 8px;
    background: rgba(35, 44, 18, 0.45);
}

.weapon-seo-block p {
    margin: 0;
    color: var(--sushi-muted);
    line-height: 1.65;
}

.weapon-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 760px) {
    .weapon-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.weapon-list__item {
    display: flex;
    min-width: 0;
}

.weapon-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100%;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--sushi-border);
    background: rgba(35, 44, 18, 0.55);
    color: inherit;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
    transition:
        transform 0.16s ease,
        border-color 0.16s ease,
        background 0.16s ease;
}

.weapon-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 215, 0, 0.55);
    background: rgba(50, 58, 24, 0.68);
}

.weapon-card__thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 10.5rem;
    padding: 1.35rem;
    background: radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.1), rgba(0, 0, 0, 0.18) 58%);
}

.weapon-card__thumb img {
    display: block;
    width: 100%;
    max-width: 22rem;
    height: auto;
    max-height: 8rem;
    object-fit: contain;
}

.weapon-card__thumb--empty {
    color: var(--sushi-yellow);
    font-size: 2rem;
}

.weapon-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.55rem;
    padding: 1rem;
}

.weapon-card__title {
    color: #fff;
    font-size: 1.18rem;
    font-weight: 800;
    line-height: 1.25;
}

.weapon-card__text {
    color: var(--sushi-muted);
    line-height: 1.5;
}

.weapon-card__cta {
    margin-top: auto;
    padding-top: 0.25rem;
    color: var(--sushi-yellow);
    font-weight: 800;
}

.weapon-profile {
    margin: 0;
    max-width: 56rem;
}

.weapon-profile__hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 0;
    padding: clamp(0.95rem, 1.9vw, 1.2rem);
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.22);
    background:
        linear-gradient(90deg, rgba(52, 34, 14, 0.86), rgba(102, 68, 28, 0.54)),
        rgba(30, 20, 10, 0.64);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.weapon-profile__image-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: clamp(9.5rem, 17vw, 12rem);
    margin: 0 auto;
    padding-bottom: clamp(0.95rem, 1.8vw, 1.25rem);
    border-radius: 0;
    border: 0;
    border-bottom: 1px solid rgba(255, 215, 0, 0.22);
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 42%, rgba(255, 215, 0, 0.2), rgba(90, 62, 22, 0.14) 36%, rgba(35, 44, 18, 0.06) 58%, transparent 78%);
    box-shadow: none;
}

.weapon-profile__image-wrap::before {
    content: none;
}

.weapon-profile__image {
    display: block;
    position: relative;
    z-index: 1;
    top: -0.5rem;
    width: min(100%, 26rem);
    height: auto;
    max-width: none;
    max-height: clamp(7rem, 16vw, 10rem);
    object-fit: contain;
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.38));
}

.weapon-profile--shuriken .weapon-profile__image {
    top: -1.15rem;
    width: min(360%, 42rem);
    max-height: clamp(15rem, 29vw, 20rem);
}

.weapon-profile__image-placeholder {
    color: var(--sushi-yellow);
    font-size: 3rem;
}

.weapon-profile__intro {
    min-width: 0;
    padding-top: clamp(0.95rem, 1.8vw, 1.15rem);
    border-top: 0;
}

.weapon-profile__title {
    margin: 0;
    color: #fff;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    line-height: 1.05;
    letter-spacing: 0;
}

.weapon-profile__lead {
    max-width: 42rem;
    margin: 0.55rem 0 0;
    color: var(--sushi-muted);
    font-size: clamp(0.95rem, 1.45vw, 1.05rem);
    line-height: 1.48;
}

.weapon-profile__intro > .wiki-price-row {
    margin-top: 0.95rem;
}

.weapon-profile__specs {
    margin-top: 1rem;
}

.weapon-profile__section-title,
.weapon-components h3 {
    margin: 0 0 0.65rem;
    color: var(--sushi-yellow);
    font-size: 0.95rem;
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
}

.weapon-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.5rem;
}

.weapon-stat {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr);
    column-gap: 0.55rem;
    align-items: center;
    flex: 1 1 9rem;
    max-width: 12rem;
    min-height: 3.45rem;
    overflow: visible;
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    background: rgba(35, 44, 18, 0.62);
}

.weapon-stat__icon {
    grid-row: 1 / span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    color: var(--sushi-yellow);
    font-size: 1.1rem;
    background: rgba(0, 0, 0, 0.32);
}

.weapon-stat__label {
    align-self: end;
    color: var(--sushi-muted);
    min-width: 0;
    padding-top: 0.36rem;
    padding-right: 0.55rem;
    font-size: clamp(0.58rem, 0.75vw, 0.68rem);
    font-weight: 800;
    line-height: 1.08;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.weapon-stat__value {
    align-self: start;
    color: #fff;
    min-width: 0;
    padding-right: 0.55rem;
    padding-bottom: 0.36rem;
    font-size: clamp(1rem, 1.65vw, 1.28rem);
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.weapon-components {
    margin-top: 0.9rem;
    padding: 0;
    border-radius: 8px;
    border: 0;
    background: transparent;
}

.weapon-components ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.weapon-component {
    display: inline-flex;
    align-items: center;
    min-height: 2.55rem;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    background: rgba(35, 44, 18, 0.62);
}

.weapon-component__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.55rem;
    height: 2.55rem;
    color: var(--sushi-yellow);
    background: rgba(0, 0, 0, 0.24);
}

.weapon-component__icon img {
    width: 2.1rem;
    height: 2.1rem;
    object-fit: contain;
}

.weapon-component__name {
    padding: 0 0.65rem;
    color: var(--sushi-muted);
    font-size: 0.86rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.weapon-component__qty {
    align-self: stretch;
    display: inline-flex;
    align-items: center;
    padding: 0 0.65rem;
    color: #1a1006;
    background: var(--sushi-yellow);
    font-size: 0.88rem;
}

.weapon-component--empty {
    padding: 0 0.9rem;
    color: var(--sushi-muted);
}

.weapon-profile__body {
    margin-top: 1.35rem;
    max-width: none;
}

@media (max-width: 560px) {
    .weapon-profile__image-wrap {
        min-height: 10rem;
    }

    .weapon-stat {
        max-width: none;
    }
}

/* Wiki — in-game Research / development tree */
.wiki-dev-tree-page .wiki-news-page__inner {
    max-width: 72rem;
}

.dev-tree {
    margin-top: 1.5rem;
    padding: clamp(1rem, 2.5vw, 1.35rem);
    border-radius: 8px;
    border: 1px solid var(--sushi-border);
    background:
        linear-gradient(90deg, rgba(52, 34, 14, 0.84), rgba(96, 66, 26, 0.5)),
        rgba(30, 20, 10, 0.6);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

.dev-tree__hint {
    margin: 0 0 0.85rem;
    color: var(--sushi-muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.dev-tree__shell {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dev-tree__panels {
    min-width: 0;
    flex: 0 0 auto;
}

.dev-tree__panel[hidden] {
    display: none;
}

.dev-tree__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(14rem, 20rem);
    gap: 0.85rem;
    align-items: stretch;
    min-height: clamp(11rem, 30vh, 19rem);
}

.dev-tree__track-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 100%;
    padding: 0.65rem 0.45rem;
    border-radius: 8px;
    border: 1px solid rgba(243, 191, 86, 0.14);
    background: rgba(15, 10, 6, 0.35);
    overflow-x: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(243, 191, 86, 0.45) rgba(25, 18, 9, 0.5);
}

.dev-tree__track-wrap::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.dev-tree__track-wrap::-webkit-scrollbar-track {
    background: rgba(25, 18, 9, 0.55);
    border-radius: 8px;
}

.dev-tree__track-wrap::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--sushi-yellow-dark), var(--sushi-yellow));
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.dev-tree__track {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.25rem 0.15rem;
    min-width: min-content;
    width: max-content;
    max-width: none;
    margin: 0;
    padding: 0.25rem 0.15rem;
}

/* In-game progression chevron (white triangle) */
.dev-tree__arrow {
    flex: 0 0 auto;
    display: inline-block;
    width: 0;
    height: 0;
    margin: 0 0.15rem;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 11px solid rgba(255, 255, 255, 0.95);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55));
    user-select: none;
}

.dev-tree__node {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    width: 8.5rem;
    padding: 0.6rem 0.5rem 0.65rem;
    border: 2px solid rgba(243, 191, 86, 0.28);
    border-radius: 8px;
    background: rgba(35, 44, 18, 0.72);
    color: inherit;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.dev-tree__node:hover {
    border-color: rgba(255, 215, 0, 0.5);
    background: rgba(50, 58, 24, 0.82);
}

.dev-tree__node.is-selected {
    border-color: var(--sushi-yellow);
    background: rgba(50, 58, 24, 0.88);
    box-shadow:
        0 0 0 1px rgba(243, 191, 86, 0.35),
        0 0 20px rgba(243, 191, 86, 0.22);
}

.dev-tree__node-icon-wrap {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
}

.dev-tree__node-img {
    display: block;
    width: 5.35rem;
    height: 5.35rem;
    object-fit: contain;
    border-radius: 6px;
    background: radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.08), rgba(0, 0, 0, 0.12) 58%);
}

.dev-tree__node-img--empty {
    display: grid;
    place-items: center;
    width: 5.35rem;
    height: 5.35rem;
    font-size: 1.6rem;
    color: var(--sushi-muted);
}

.dev-tree__node .dev-tree__roman {
    right: -0.12rem;
    bottom: -0.08rem;
    min-width: 1.15rem;
    padding: 0.1rem 0.3rem;
    font-size: 0.62rem;
    border-radius: 4px;
}

.dev-tree__node-name {
    display: none;
}

.dev-tree__detail {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    box-sizing: border-box;
    height: 100%;
    min-height: 100%;
    padding: 0.85rem 0.95rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--sushi-border);
    background: rgba(35, 44, 18, 0.55);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    align-self: stretch;
    max-height: none;
    overflow-y: auto;
}

.dev-tree__detail-main {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    min-width: 0;
}

.dev-tree__detail-title {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.25;
    color: #fff;
}

.dev-tree__detail-kicker {
    margin: 0.55rem 0 0.2rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--sushi-yellow);
}

.dev-tree__detail-desc {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--sushi-muted);
}

.dev-tree__stat {
    margin: 0.85rem 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.5rem;
}

.dev-tree__stat-label {
    font-size: 0.82rem;
    color: var(--sushi-muted);
}

.dev-tree__stat-value {
    font-size: 1.15rem;
    color: var(--sushi-yellow);
}

.dev-tree__unlock,
.dev-tree__starter {
    margin: 0.75rem 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    font-size: 0.88rem;
}

.dev-tree__unlock-label {
    color: var(--sushi-muted);
}

.dev-tree__unlock-value {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(243, 191, 86, 0.35);
    background: rgba(243, 191, 86, 0.12);
    color: var(--sushi-yellow);
    font-weight: 700;
}

.dev-tree__unlock-value img {
    width: 1.1rem;
    height: 1.1rem;
    object-fit: contain;
}

.dev-tree__starter {
    color: var(--sushi-yellow);
    font-weight: 600;
}

.dev-tree__detail-foot {
    flex: 0 0 auto;
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(243, 191, 86, 0.22);
}

.dev-tree__wiki-btn {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.4rem;
    width: auto;
    max-width: 100%;
    margin: 0;
    padding: 0.4rem 0.7rem;
    border-radius: 6px;
    border: 1px solid rgba(243, 191, 86, 0.42);
    background: rgba(243, 191, 86, 0.08);
    color: var(--sushi-yellow);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: left;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: none;
    cursor: pointer;
    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

.dev-tree__wiki-btn:hover {
    border-color: rgba(243, 191, 86, 0.65);
    background: rgba(243, 191, 86, 0.16);
    color: #fff;
    transform: none;
    box-shadow: none;
}

.dev-tree__wiki-btn:focus-visible {
    outline: 2px solid rgba(243, 191, 86, 0.55);
    outline-offset: 2px;
}

.dev-tree__wiki-btn-icon {
    flex-shrink: 0;
    font-size: 0.72rem;
    opacity: 0.85;
}

.dev-tree__tabs {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    padding: 0.75rem 0 0.1rem;
    border-top: 1px solid rgba(243, 191, 86, 0.22);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(243, 191, 86, 0.45) rgba(25, 18, 9, 0.5);
}

.dev-tree__tab {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    overflow: visible;
    min-width: 4.1rem;
    min-height: 4.1rem;
    padding: 0.28rem 0.32rem;
    border: 1px solid rgba(130, 52, 10, 0.75);
    border-radius: 10px;
    background: linear-gradient(180deg, #f7a848 0%, #e88a2c 42%, #c45f12 100%);
    color: #1a1006;
    cursor: pointer;
    box-shadow:
        0 3px 0 rgba(70, 28, 4, 0.55),
        inset 0 1px 0 rgba(255, 214, 150, 0.4);
    transition: transform 0.12s ease, filter 0.12s ease, border-color 0.12s ease;
}

.dev-tree__tab:hover {
    filter: brightness(1.06);
    border-color: rgba(160, 65, 12, 0.9);
}

.dev-tree__tab:active {
    transform: translateY(1px);
    box-shadow:
        0 2px 0 rgba(70, 28, 4, 0.5),
        inset 0 1px 0 rgba(255, 214, 150, 0.35);
}

.dev-tree__tab.is-active {
    outline: none;
}

/* In-game tab selection: four white corner brackets */
.dev-tree__tab-frame {
    display: none;
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
}

.dev-tree__tab.is-active .dev-tree__tab-frame {
    display: block;
}

.dev-tree__tab-corner {
    position: absolute;
    width: 0.85rem;
    height: 0.85rem;
    border: 3px solid #fff;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.7));
    box-sizing: border-box;
}

.dev-tree__tab-corner--tl {
    top: 0.2rem;
    left: 0.2rem;
    border-right: none;
    border-bottom: none;
    border-top-left-radius: 4px;
}

.dev-tree__tab-corner--tr {
    top: 0.2rem;
    right: 0.2rem;
    border-left: none;
    border-bottom: none;
    border-top-right-radius: 4px;
}

.dev-tree__tab-corner--bl {
    bottom: 0.2rem;
    left: 0.2rem;
    border-right: none;
    border-top: none;
    border-bottom-left-radius: 4px;
}

.dev-tree__tab-corner--br {
    bottom: 0.2rem;
    right: 0.2rem;
    border-left: none;
    border-top: none;
    border-bottom-right-radius: 4px;
}

.dev-tree__tab-icon {
    font-size: 1.15rem;
    line-height: 1;
}

.dev-tree__tab-img {
    display: block;
    width: 3.15rem;
    height: 3.15rem;
    object-fit: contain;
    pointer-events: none;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.dev-tree__tab-label {
    display: none;
}

@media (max-width: 900px) {
    .dev-tree__tabs {
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    .dev-tree__tab {
        flex: 0 0 auto;
    }

    .dev-tree__row {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .dev-tree__detail {
        order: 1;
        height: auto;
        min-height: 0;
        max-height: none;
    }

    .dev-tree__track-wrap {
        order: 2;
        min-height: clamp(9rem, 26vh, 14rem);
    }

}

@media (max-width: 560px) {
    .dev-tree {
        padding: 0.85rem 0.65rem 1rem;
    }

    .dev-tree__node {
        width: 7.25rem;
    }

    .dev-tree__node-img {
        width: 4.5rem;
        height: 4.5rem;
    }

    .dev-tree__node-img--empty {
        width: 4.5rem;
        height: 4.5rem;
    }

    .dev-tree__arrow {
        border-top-width: 6px;
        border-bottom-width: 6px;
        border-left-width: 8px;
    }
}

/* Scrollbar (desktop) */
@media (min-width: 769px) {
    ::-webkit-scrollbar {
        width: 10px;
    }

    ::-webkit-scrollbar-track {
        background: var(--sushi-deep);
    }

    ::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, var(--sushi-cyan), var(--sushi-teal));
        border-radius: 5px;
        border: 1px solid var(--sushi-border);
    }

    /* Browser default corner is white; paint it like the track */
    ::-webkit-scrollbar-corner {
        background: var(--sushi-deep);
    }
}

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

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