/* Warhammer Online hub — carved stone / iron / Order gold / Destruction crimson
   Structure mirrors Star Citizen (nav + tool tiles); look is WAR, not space-cyan. */

body.theme-war {
    background-color: #0a0806;
    --bg: #0a0806;
    --panel: rgba(16, 13, 10, 0.9);
    --panel-border: rgba(120, 98, 72, 0.5);
    --text: #f0e6d2;
    --muted: #a89878;
    --accent: #c9a227;
    --accent-soft: rgba(201, 162, 39, 0.14);
    --shadow: 0 18px 42px rgba(0, 0, 0, 0.65);
    --hero-bg: rgba(12, 10, 8, 0.92);
    --btn-radius: 4px;
    --btn-border: #1a1612;
    --btn-bg: linear-gradient(180deg, #4a4640 0%, #2a2620 100%);
    --btn-shadow:
        inset 0 1px 0 rgba(255, 240, 200, 0.18),
        inset 0 -2px 0 rgba(0, 0, 0, 0.65),
        0 4px 10px rgba(0, 0, 0, 0.75);
    --war-gold: #c9a227;
    --war-gold-hi: #f3cf68;
    --war-gold-lo: #8a6a12;
    --war-gold-border: #6e4d02;
    --war-gold-text: #2e1d03;
    --war-red: #9b1c1c;
    --war-red-hi: #c43a3a;
    --war-red-lo: #5c1010;
    --war-red-border: #3f0c0c;
    --war-stone-text: #e8dcc4;
    --war-iron-text: #c4b090;
    --war-stone-slab: url('/assets/war/stones/slab.png');
    --war-stone-slab-alt: url('/assets/war/stones/slab-alt.png');
    --war-stone-chunk: url('/assets/war/stones/chunk.png');
    --war-stone-round: url('/assets/war/stones/round.png');
    /* Wood hierarchy: planks = parent shells; grain = inner cards/tiles */
    --war-wood-grain: url('/assets/war/wood/wood-grain-a.jpg');
    --war-wood-planks: url('/assets/war/wood/wood-planks-b.jpg');
    --war-wood-a: var(--war-wood-grain);
    --war-wood-b: var(--war-wood-planks);
    --war-wood-scrim: linear-gradient(165deg, rgba(10, 8, 6, 0.72), rgba(6, 5, 4, 0.84));
    --war-wood-scrim-soft: linear-gradient(165deg, rgba(12, 10, 8, 0.55), rgba(8, 6, 4, 0.72));
    --war-bronze: rgba(168, 122, 72, 0.72);
    --war-bronze-hi: rgba(220, 180, 120, 0.28);
    --war-bronze-lo: rgba(40, 24, 10, 0.5);
}

body.theme-war .tunnel-layer,
body.theme-war .tunnel-backdrop,
body.theme-war .space-backdrop {
    display: none;
}

/* Atmosphere: splash art + SVG gothic + stone tile grain */
body.theme-war .war-backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background-color: #0a0806;
    background-image:
        linear-gradient(180deg, rgba(8, 6, 4, 0.55) 0%, transparent 22%, transparent 70%, rgba(8, 6, 4, 0.72) 100%),
        radial-gradient(ellipse 70% 55% at 18% 78%, rgba(201, 162, 39, 0.14), transparent 58%),
        radial-gradient(ellipse 65% 50% at 82% 22%, rgba(139, 26, 26, 0.18), transparent 55%),
        url('/assets/warhammer-splash.png'),
        url('/assets/war/war-backdrop.svg');
    background-position: center, 18% 78%, 82% 22%, center, center;
    background-size: cover, auto, auto, cover, cover;
    background-repeat: no-repeat;
}

body.theme-war .war-backdrop::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.22;
    background-image:
        linear-gradient(90deg, rgba(40, 32, 24, 0.55) 1px, transparent 1px),
        linear-gradient(0deg, rgba(40, 32, 24, 0.55) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, #000 20%, transparent 75%);
}

body.theme-war .war-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        radial-gradient(ellipse 80% 70% at 50% 45%, transparent 18%, rgba(8, 6, 4, 0.4) 58%, rgba(8, 6, 4, 0.88) 100%),
        linear-gradient(180deg, rgba(8, 6, 4, 0.5) 0%, transparent 16%, transparent 78%, rgba(8, 6, 4, 0.6) 100%);
}

body.theme-war .page {
    position: relative;
    z-index: 1;
}

/* Parent shells — horizontal planks wood */
body.theme-war .hero {
    background-color: #14100c;
    background-image: var(--war-wood-scrim), var(--war-wood-planks);
    background-size: auto, cover;
    background-position: center, center;
    background-repeat: no-repeat;
    border: 2px solid rgba(90, 70, 48, 0.55);
    box-shadow:
        inset 0 1px 0 rgba(255, 230, 180, 0.06),
        0 12px 36px rgba(0, 0, 0, 0.55);
}

body.theme-war .brand {
    color: var(--war-gold);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.72rem;
    font-weight: 700;
}

body.theme-war .hero-title {
    font-family: 'Cinzel', 'DM Sans', Georgia, serif;
    letter-spacing: 0.06em;
    color: #f5ecd8;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75), 0 0 28px rgba(201, 162, 39, 0.12);
}

body.theme-war .hero-lead {
    color: var(--muted);
    max-width: 42rem;
}

body.theme-war .hero-sub {
    background-color: #12100c;
    background-image: var(--war-wood-scrim-soft), var(--war-wood-planks);
    background-size: auto, cover;
    background-position: center, 40% 50%;
    background-repeat: no-repeat;
    border: 1px solid rgba(90, 70, 48, 0.45);
}

/* Parent section shells — planks wood (inner cards sit on top) */
body.theme-war .section-panel {
    background-color: #14100c;
    background-image: var(--war-wood-scrim), var(--war-wood-planks);
    background-size: auto, cover;
    background-position: center, center;
    background-repeat: no-repeat;
    border: 2px solid rgba(90, 70, 48, 0.5);
    box-shadow:
        inset 0 1px 0 rgba(255, 230, 180, 0.05),
        0 10px 28px rgba(0, 0, 0, 0.45);
}

body.theme-war .section-header h2 {
    font-family: 'Cinzel', 'DM Sans', Georgia, serif;
    letter-spacing: 0.04em;
    color: #f0e6d2;
}

body.theme-war .section-icon {
    background-color: #6a6560;
    background-image:
        linear-gradient(180deg, rgba(201, 162, 39, 0.28) 0%, rgba(20, 16, 12, 0.45) 100%),
        var(--war-stone-round);
    background-size: auto, 135% 135%;
    background-position: center, center;
    background-repeat: no-repeat;
    border: 2px solid rgba(201, 162, 39, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 230, 180, 0.12);
}

/* —— Real rock vectors (public/assets/war/stones/) as carved button material —— */
body.theme-war .btn {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: 8px;
    border-width: 2px;
    border-style: solid;
    /* Iron / bronze rim — stone slab is the hero, not a candy frame */
    border-color: #3a342c;
    background-color: #3a3836;
    background-image:
        linear-gradient(180deg, rgba(36, 34, 32, 0.5) 0%, rgba(28, 26, 24, 0.52) 45%, rgba(14, 12, 10, 0.62) 100%),
        var(--war-stone-slab);
    background-size: auto, cover;
    background-position: center, center;
    background-repeat: no-repeat;
    background-blend-mode: multiply, normal;
    box-shadow:
        inset 0 1px 0 rgba(255, 240, 210, 0.22),
        inset 0 -2px 0 rgba(0, 0, 0, 0.5),
        0 4px 10px rgba(0, 0, 0, 0.7);
    color: #f5ecd8;
    font-family: 'Cinzel', 'DM Sans', Georgia, serif;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.72rem;
    text-shadow: 1px 2px 3px rgba(0, 0, 0, 0.92);
    transition:
        transform 0.15s ease,
        background-color 0.15s ease,
        filter 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        color 0.15s ease;
}

/* Extra carved depth under the label */
body.theme-war .btn::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.28;
    background-image: var(--war-stone-slab-alt);
    background-size: 140% 140%;
    background-position: 30% 40%;
    background-repeat: no-repeat;
    mix-blend-mode: overlay;
}

/* Etched inner bevel — stone plaque edge */
body.theme-war .btn::after {
    content: "";
    position: absolute;
    inset: 4px;
    z-index: 1;
    border-radius: 4px;
    border: 1px solid rgba(255, 230, 180, 0.14);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.32);
    pointer-events: none;
}

body.theme-war .btn:hover {
    background-color: #454240;
    background-image:
        linear-gradient(180deg, rgba(42, 40, 38, 0.42) 0%, rgba(30, 28, 26, 0.45) 42%, rgba(14, 12, 10, 0.55) 100%),
        var(--war-stone-slab);
    border-color: #5a4a30;
    color: #fff8e8;
    box-shadow:
        inset 0 1px 0 rgba(255, 240, 210, 0.28),
        inset 0 -2px 0 rgba(0, 0, 0, 0.45),
        0 5px 12px rgba(0, 0, 0, 0.65);
    transform: translateY(-1px);
    filter: brightness(1.05);
}

body.theme-war .btn:active {
    transform: translateY(2px);
    filter: brightness(0.96);
    box-shadow:
        inset 0 3px 6px rgba(0, 0, 0, 0.7),
        0 1px 2px rgba(0, 0, 0, 0.4);
}

body.theme-war .btn:focus-visible {
    outline: 2px solid var(--war-gold-hi);
    outline-offset: 3px;
}

body.theme-war .btn-cta {
    padding: 12px 20px;
    min-height: 46px;
}

/* Destruction — iron/bronze rim + thin crimson accent; stone face dominates */
body.theme-war .btn-war {
    border-color: #2e2a24;
    background-color: #3a3836;
    background-image:
        linear-gradient(180deg, rgba(36, 34, 32, 0.5) 0%, rgba(28, 26, 24, 0.52) 50%, rgba(14, 12, 10, 0.62) 100%),
        var(--war-stone-slab);
    background-blend-mode: multiply, normal;
    color: #f5ecd8;
    text-shadow: 1px 2px 3px rgba(0, 0, 0, 0.92);
    box-shadow:
        inset 0 1px 0 rgba(255, 240, 210, 0.2),
        inset 0 -2px 0 rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(140, 100, 55, 0.35),
        0 0 0 1px rgba(110, 40, 36, 0.4),
        0 4px 10px rgba(0, 0, 0, 0.7);
}

body.theme-war .btn-war::after {
    border-color: rgba(140, 48, 44, 0.32);
}

body.theme-war .btn-war:hover {
    background-color: #454240;
    background-image:
        linear-gradient(180deg, rgba(42, 40, 38, 0.42) 0%, rgba(30, 28, 26, 0.45) 48%, rgba(14, 12, 10, 0.55) 100%),
        var(--war-stone-slab);
    border-color: #3a342c;
    color: #fff8e8;
    box-shadow:
        inset 0 1px 0 rgba(255, 240, 210, 0.26),
        inset 0 -2px 0 rgba(0, 0, 0, 0.45),
        inset 0 0 0 1px rgba(160, 115, 60, 0.4),
        0 0 0 1px rgba(130, 48, 42, 0.45),
        0 5px 12px rgba(0, 0, 0, 0.65);
}

body.theme-war .btn-war:focus-visible {
    outline-color: #c9a227;
}

/* Order — iron rim + thin gold accent; stone remains the face */
body.theme-war .btn-gold {
    border-color: #2e2a24;
    background-color: #3a3836;
    background-image:
        linear-gradient(180deg, rgba(36, 34, 32, 0.5) 0%, rgba(28, 26, 24, 0.52) 48%, rgba(14, 12, 10, 0.62) 100%),
        var(--war-stone-slab);
    background-blend-mode: multiply, normal;
    color: #f5ecd8;
    text-shadow: 1px 2px 3px rgba(0, 0, 0, 0.92);
    box-shadow:
        inset 0 1px 0 rgba(255, 240, 210, 0.24),
        inset 0 -2px 0 rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(180, 140, 40, 0.28),
        0 0 0 1px rgba(201, 162, 39, 0.4),
        0 4px 10px rgba(0, 0, 0, 0.7);
}

body.theme-war .btn-gold::after {
    border-color: rgba(201, 162, 39, 0.35);
}

body.theme-war .btn-gold:hover {
    background-color: #454240;
    background-image:
        linear-gradient(180deg, rgba(42, 40, 38, 0.42) 0%, rgba(30, 28, 26, 0.45) 45%, rgba(14, 12, 10, 0.55) 100%),
        var(--war-stone-slab);
    border-color: #3a342c;
    color: #fff8e8;
    box-shadow:
        inset 0 1px 0 rgba(255, 245, 220, 0.3),
        inset 0 -2px 0 rgba(0, 0, 0, 0.45),
        inset 0 0 0 1px rgba(201, 162, 39, 0.35),
        0 0 0 1px rgba(201, 162, 39, 0.55),
        0 5px 12px rgba(0, 0, 0, 0.65);
}

body.theme-war .btn-ghost {
    border-color: #3a342c;
    background-color: #3a3836;
    background-image:
        linear-gradient(180deg, rgba(36, 34, 32, 0.5) 0%, rgba(28, 26, 24, 0.52) 50%, rgba(14, 12, 10, 0.62) 100%),
        var(--war-stone-slab-alt);
    background-blend-mode: multiply, normal;
    color: var(--war-iron-text);
}

body.theme-war .btn-ghost:hover {
    border-color: #5a4a30;
    background-color: #454240;
    color: #f0e6d2;
}

body.theme-war a:not(.btn):not(.war-tool-link) {
    color: var(--war-gold);
}

body.theme-war a:not(.btn):not(.war-tool-link):hover {
    color: #fde68a;
}

html[data-theme="light"] body.theme-war {
    background-color: #f5f0e6;
    --bg: #f5f0e6;
    --text: #1c1610;
    --muted: #5c5040;
    --panel: rgba(255, 252, 245, 0.92);
    --panel-border: rgba(120, 98, 72, 0.35);
}

html[data-theme="light"] body.theme-war .war-backdrop {
    opacity: 0.28;
}

html[data-theme="light"] body.theme-war .hero,
html[data-theme="light"] body.theme-war .section-panel,
html[data-theme="light"] body.theme-war .hero-sub {
    background-color: #e8dfd0;
    background-image:
        linear-gradient(165deg, rgba(255, 252, 245, 0.7), rgba(245, 240, 230, 0.8)),
        var(--war-wood-planks);
    background-size: auto, cover;
    background-position: center, center;
    background-repeat: no-repeat;
    border-color: rgba(120, 98, 72, 0.35);
    box-shadow: 0 8px 24px rgba(60, 40, 10, 0.08);
}

html[data-theme="light"] body.theme-war .hero-title {
    color: #2a2010;
    text-shadow: none;
}

html[data-theme="light"] body.theme-war .btn-war,
html[data-theme="light"] body.theme-war .btn-gold {
    color: #1c1610;
    text-shadow: 0 1px 0 rgba(255, 250, 230, 0.35);
}

html[data-theme="light"] body.theme-war .war-news-item,
html[data-theme="light"] body.theme-war .war-addon-card,
html[data-theme="light"] body.theme-war .war-screenshot-card,
html[data-theme="light"] body.theme-war .wh-callout,
html[data-theme="light"] body.theme-war .war-tool-link {
    background-color: #e8dfd0;
    background-image:
        linear-gradient(165deg, rgba(255, 252, 245, 0.72), rgba(245, 240, 230, 0.84)),
        var(--war-wood-grain);
    background-size: auto, cover;
    background-position: center, center;
    background-repeat: no-repeat;
    border-color: rgba(140, 100, 55, 0.55);
    color: var(--text);
}

/* Inner cells — grain wood + thin bronze rim */
.war-tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.war-tool-link {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 18px 16px;
    border: 1px solid var(--war-bronze);
    border-radius: 5px;
    background-color: #1a1410;
    background-image: var(--war-wood-scrim-soft), var(--war-wood-grain);
    background-size: auto, cover;
    background-position: center, center;
    background-repeat: no-repeat;
    box-shadow:
        inset 0 1px 0 var(--war-bronze-hi),
        inset 0 -1px 0 var(--war-bronze-lo),
        0 8px 20px rgba(0, 0, 0, 0.4);
    text-decoration: none;
    color: var(--text);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

body.theme-war .war-tool-link:hover {
    transform: translateY(-3px);
    border-color: rgba(201, 162, 39, 0.7);
    filter: brightness(1.05);
    box-shadow:
        inset 0 1px 0 rgba(255, 230, 180, 0.16),
        0 12px 28px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(201, 162, 39, 0.12);
}

body.theme-war .war-tool-link:focus-visible {
    outline: 2px solid var(--war-gold-hi);
    outline-offset: 3px;
}

.war-tool-kicker {
    font-size: 0.65rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--war-gold);
}

.war-tool-link strong {
    font-size: 1.08rem;
    font-family: 'Cinzel', 'DM Sans', Georgia, serif;
    letter-spacing: 0.03em;
    color: #f5ecd8;
}

.war-tool-desc {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.45;
}

.war-news-controls {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0 0 16px;
    padding: 14px 16px 16px;
    border: 1px solid var(--war-bronze);
    border-radius: 6px;
    background-color: #16120e;
    background-image: var(--war-wood-scrim-soft), var(--war-wood-grain);
    background-size: auto, cover;
    background-position: center, center;
    box-shadow:
        inset 0 1px 0 var(--war-bronze-hi),
        inset 0 -1px 0 var(--war-bronze-lo),
        0 4px 12px rgba(0, 0, 0, 0.35);
}

.war-news-control-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.war-news-control-label {
    font-family: 'Cinzel', 'DM Sans', Georgia, serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #d4c4a0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75);
}

.war-news-filter,
.war-news-sort {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Carved stone chips — same material language as .btn, sized for filters */
.war-news-chip {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin: 0;
    padding: 7px 14px;
    min-height: 34px;
    border-radius: 7px;
    border: 2px solid #3a342c;
    background-color: #3a3836;
    background-image:
        linear-gradient(180deg, rgba(36, 34, 32, 0.5) 0%, rgba(28, 26, 24, 0.52) 50%, rgba(14, 12, 10, 0.62) 100%),
        var(--war-stone-slab-alt);
    background-size: auto, cover;
    background-position: center, center;
    background-repeat: no-repeat;
    background-blend-mode: multiply, normal;
    box-shadow:
        inset 0 1px 0 rgba(255, 240, 210, 0.18),
        inset 0 -2px 0 rgba(0, 0, 0, 0.48),
        0 3px 8px rgba(0, 0, 0, 0.55);
    color: #c9bda8;
    font-family: 'Cinzel', 'DM Sans', Georgia, serif;
    font-weight: 700;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9);
    cursor: pointer;
    transition:
        transform 0.15s ease,
        filter 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease,
        box-shadow 0.15s ease;
}

.war-news-chip::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 4px;
    border: 1px solid rgba(255, 230, 180, 0.1);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.28);
    pointer-events: none;
}

.war-news-chip:hover {
    border-color: #5a4a30;
    color: #fff8e8;
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.war-news-chip.is-active {
    border-color: #3a342c;
    color: #fff8e8;
    background-image:
        linear-gradient(180deg, rgba(42, 40, 38, 0.4) 0%, rgba(30, 28, 26, 0.42) 45%, rgba(14, 12, 10, 0.55) 100%),
        var(--war-stone-slab);
    box-shadow:
        inset 0 1px 0 rgba(255, 245, 220, 0.28),
        inset 0 -2px 0 rgba(0, 0, 0, 0.45),
        inset 0 0 0 1px rgba(201, 162, 39, 0.35),
        0 0 0 1px rgba(201, 162, 39, 0.5),
        0 4px 10px rgba(0, 0, 0, 0.6);
}

.war-news-chip.is-active::after {
    border-color: rgba(201, 162, 39, 0.32);
}

.war-news-chip:focus-visible {
    outline: 2px solid var(--war-gold-hi);
    outline-offset: 2px;
}

.war-news-chip:active {
    transform: translateY(1px);
    filter: brightness(0.96);
}

.war-news-chip-pin.is-active {
    box-shadow:
        inset 0 1px 0 rgba(255, 245, 220, 0.28),
        inset 0 -2px 0 rgba(0, 0, 0, 0.45),
        inset 0 0 0 1px rgba(180, 140, 40, 0.4),
        0 0 0 1px rgba(201, 162, 39, 0.55),
        0 4px 10px rgba(0, 0, 0, 0.6);
}

html[data-theme="light"] body.theme-war .war-news-controls {
    background-color: #f3ebe0;
    background-image: linear-gradient(165deg, rgba(255, 250, 240, 0.72), rgba(240, 228, 210, 0.78)), var(--war-wood-grain);
    border-color: rgba(140, 100, 55, 0.45);
}

html[data-theme="light"] body.theme-war .war-news-control-label {
    color: #5a4a30;
    text-shadow: none;
}

html[data-theme="light"] body.theme-war .war-news-chip {
    color: #3a342c;
    text-shadow: 0 1px 0 rgba(255, 250, 240, 0.35);
}

html[data-theme="light"] body.theme-war .war-news-chip:hover,
html[data-theme="light"] body.theme-war .war-news-chip.is-active {
    color: #1a1612;
}

.war-news-list,
.war-addon-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.war-news-item,
.war-addon-card {
    padding: 14px 16px;
    border: 1px solid var(--war-bronze);
    border-radius: 5px;
    background-color: #16120e;
    background-image: var(--war-wood-scrim-soft), var(--war-wood-grain);
    background-size: auto, cover;
    background-position: center, center;
    background-repeat: no-repeat;
    box-shadow:
        inset 0 1px 0 var(--war-bronze-hi),
        inset 0 -1px 0 var(--war-bronze-lo);
}

.war-news-item.is-pinned {
    border-color: rgba(201, 162, 39, 0.6);
    box-shadow: inset 4px 0 0 var(--war-gold), inset 0 1px 0 rgba(255, 230, 180, 0.08);
}

.war-news-item h3 {
    margin: 0 0 6px;
    font-family: 'Cinzel', 'DM Sans', Georgia, serif;
    font-size: 1.05rem;
    color: #f0e6d2;
}

.war-news-item p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.war-news-body {
    color: var(--muted);
    line-height: 1.55;
}

.war-news-body p {
    margin: 0 0 0.75em;
}

.war-news-body p:last-child {
    margin-bottom: 0;
}

.war-news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 6px;
    font-size: 0.78rem;
    color: var(--muted);
}

.war-news-link {
    margin-top: 10px !important;
}

.war-news-link a {
    color: var(--war-gold, #c9a227);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(201, 162, 39, 0.35);
}

.war-news-link a:hover {
    border-bottom-color: var(--war-gold, #c9a227);
}

body.theme-war .war-admin-panel.admin-panel {
    margin-top: 18px;
    border-radius: 5px;
    border: 1px solid var(--war-bronze);
    background-color: #16120e;
    background-image: var(--war-wood-scrim-soft), var(--war-wood-grain);
    background-size: auto, cover;
    background-position: center, center;
    box-shadow:
        inset 0 1px 0 var(--war-bronze-hi),
        inset 0 -1px 0 var(--war-bronze-lo);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body.theme-war .war-admin-panel .admin-form input,
body.theme-war .war-admin-panel .admin-form textarea,
body.theme-war .war-admin-panel .admin-form select {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border-radius: 4px;
    border: 1px solid var(--war-bronze);
    background: rgba(8, 6, 4, 0.72);
    color: #f0e6d2;
    font: inherit;
}

body.theme-war .war-admin-panel .admin-form textarea {
    resize: vertical;
    min-height: 72px;
}

.war-news-editor {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.war-news-edit-card {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid rgba(201, 162, 39, 0.28);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.28);
}

.war-news-edit-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
}

.war-news-edit-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    align-items: end;
}

.war-news-edit-row .admin-label {
    display: grid;
    gap: 4px;
}

.war-news-pin-label {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
}

.war-news-pin-label input {
    width: auto !important;
}

body.theme-war .war-admin-panel .admin-hint,
body.theme-war .war-admin-panel .admin-label {
    color: var(--muted);
}

body.theme-war .war-admin-panel .admin-status.is-success {
    color: #86efac;
}

body.theme-war .war-admin-panel .admin-status.is-error {
    color: #fca5a5;
}

.war-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    border: 1px solid transparent;
}

.war-badge-server {
    background: rgba(201, 162, 39, 0.2);
    border-color: rgba(201, 162, 39, 0.4);
    color: #fde68a;
}

.war-badge-skill {
    background: rgba(88, 120, 72, 0.32);
    border-color: rgba(120, 160, 90, 0.45);
    color: #c8e6a8;
}

.war-badge-patch {
    background: rgba(139, 26, 26, 0.28);
    border-color: rgba(185, 28, 28, 0.4);
    color: #fca5a5;
}

.war-badge-addons {
    background: rgba(90, 70, 140, 0.28);
    border-color: rgba(140, 110, 190, 0.4);
    color: #d4c4f0;
}

.war-badge-launcher {
    background: rgba(70, 100, 140, 0.3);
    border-color: rgba(110, 150, 190, 0.45);
    color: #b8d4f0;
}

.war-badge-news {
    background: rgba(140, 100, 55, 0.28);
    border-color: rgba(180, 140, 80, 0.4);
    color: #e8d4a8;
}

.war-addon-card .btn {
    margin-top: 10px;
    align-self: flex-start;
}

.war-screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.war-screenshot-card {
    border: 1px solid var(--war-bronze);
    border-radius: 5px;
    overflow: hidden;
    background-color: #14100c;
    background-image: var(--war-wood-scrim-soft), var(--war-wood-grain);
    background-size: auto, cover;
    background-position: center, center;
    background-repeat: no-repeat;
    box-shadow:
        inset 0 1px 0 var(--war-bronze-hi),
        0 8px 20px rgba(0, 0, 0, 0.4);
    margin: 0;
}

.war-screenshot-open {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.war-screenshot-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: #0d0a08;
}

.war-screenshot-caption {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    font-size: 0.88rem;
    color: var(--muted);
}

.war-screenshot-caption strong {
    color: var(--text);
    font-weight: 600;
}

.war-screenshot-caption time {
    font-size: 0.78rem;
    opacity: 0.8;
}

.war-screenshot-card[data-faction="order"] {
    border-color: rgba(201, 162, 39, 0.5);
}

.war-screenshot-card[data-faction="destruction"] {
    border-color: rgba(185, 28, 28, 0.5);
}

.war-screenshot-form {
    display: grid;
    gap: 12px;
}

.war-screenshot-form input[type="text"],
.war-screenshot-form input[type="file"],
.war-screenshot-form textarea,
.war-screenshot-form select,
.war-screenshot-admin-fields input[type="text"],
.war-screenshot-admin-fields textarea,
.war-screenshot-admin-fields select {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border-radius: 4px;
    border: 1px solid var(--war-bronze);
    background: rgba(8, 6, 4, 0.72);
    color: #f0e6d2;
    font: inherit;
}

.war-screenshot-form input[type="file"] {
    padding: 8px;
}

.war-screenshot-admin {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.war-screenshot-admin-card {
    display: grid;
    grid-template-columns: minmax(120px, 180px) 1fr;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(201, 162, 39, 0.28);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.28);
}

.war-screenshot-admin-card.is-pending {
    border-color: rgba(234, 179, 8, 0.45);
}

.war-screenshot-admin-preview {
    position: relative;
}

.war-screenshot-admin-preview img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 3px;
    background: #0d0a08;
}

.war-screenshot-status-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(0, 0, 0, 0.7);
    color: #e8d4a8;
}

.war-screenshot-status-badge.is-pending {
    color: #fde68a;
    border: 1px solid rgba(234, 179, 8, 0.5);
}

.war-screenshot-status-badge.is-approved {
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.45);
}

.war-screenshot-admin-fields {
    display: grid;
    gap: 8px;
}

.war-screenshot-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.war-screenshot-lightbox {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(4, 3, 2, 0.88);
    cursor: zoom-out;
}

.war-screenshot-lightbox[hidden] {
    display: none !important;
}

.war-screenshot-lightbox-figure {
    margin: 0;
    max-width: min(1100px, 96vw);
    max-height: 92vh;
    cursor: default;
}

.war-screenshot-lightbox-figure img {
    display: block;
    max-width: 100%;
    max-height: calc(92vh - 48px);
    margin: 0 auto;
    border: 1px solid var(--war-bronze);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
    background: #0d0a08;
}

.war-screenshot-lightbox-figure figcaption {
    margin-top: 10px;
    text-align: center;
    color: #e8d4a8;
    font-size: 0.95rem;
}

.war-screenshot-lightbox-close {
    position: absolute;
    top: 14px;
    right: 18px;
    width: 40px;
    height: 40px;
    border: 1px solid var(--war-bronze);
    border-radius: 4px;
    background: rgba(20, 14, 8, 0.9);
    color: #f0e6d2;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

body.war-lightbox-open {
    overflow: hidden;
}

html[data-theme="light"] body.theme-war .war-screenshot-form input[type="text"],
html[data-theme="light"] body.theme-war .war-screenshot-form textarea,
html[data-theme="light"] body.theme-war .war-screenshot-form select,
html[data-theme="light"] body.theme-war .war-screenshot-admin-fields input[type="text"],
html[data-theme="light"] body.theme-war .war-screenshot-admin-fields textarea,
html[data-theme="light"] body.theme-war .war-screenshot-admin-fields select {
    background: rgba(255, 250, 240, 0.92);
    color: #2a2118;
}

@media (max-width: 720px) {
    .war-screenshot-admin-card {
        grid-template-columns: 1fr;
    }
}

.war-page .wh-lead,
.war-page .wh-callout,
.war-page .wh-steps,
.war-page .wh-ports {
    color: var(--text);
}

.war-page .wh-lead {
    line-height: 1.55;
}

.war-page .wh-callout {
    padding: 14px 16px;
    border: 1px solid var(--war-bronze);
    border-radius: 5px;
    background-color: #1a1410;
    background-image: var(--war-wood-scrim-soft), var(--war-wood-grain);
    background-size: auto, cover;
    background-position: center, center;
    background-repeat: no-repeat;
    box-shadow:
        inset 0 1px 0 var(--war-bronze-hi),
        inset 0 -1px 0 var(--war-bronze-lo);
}

.war-page .wh-callout p + p {
    margin-top: 10px;
}

.war-page .wh-steps {
    margin: 0;
    padding-left: 1.25rem;
    line-height: 1.55;
}

.war-page .wh-steps li + li {
    margin-top: 8px;
}

.war-page .wh-ports {
    margin: 10px 0 12px;
    padding-left: 1.35rem;
    line-height: 1.5;
}

.war-page .wh-downloads {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.war-page .wh-downloads .btn {
    width: auto;
    max-width: 100%;
}

.war-page .downloads-hint {
    color: var(--muted);
    line-height: 1.5;
}

.war-page .downloads-hint code,
.war-page .wh-steps code,
.war-page .wh-lead code {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.85em;
    color: #fde68a;
    background: rgba(0, 0, 0, 0.35);
    padding: 0.1em 0.35em;
    border-radius: 3px;
}

.war-status {
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 0.88rem;
    margin-bottom: 12px;
}

.war-status.warn {
    border: 1px solid rgba(201, 162, 39, 0.45);
    background: rgba(120, 90, 15, 0.18);
    color: #fde68a;
}

.war-status.error {
    border: 1px solid rgba(185, 28, 28, 0.45);
    background: rgba(139, 26, 26, 0.18);
    color: #fca5a5;
}

body.theme-war .footer-note {
    color: var(--muted);
}

/* —— Feedback board —— */
.war-feedback-form {
    display: grid;
    gap: 12px;
}

.war-feedback-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.war-feedback-form input[type="text"],
.war-feedback-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border-radius: 4px;
    border: 1px solid var(--war-bronze);
    background: rgba(8, 6, 4, 0.72);
    color: #f0e6d2;
    font: inherit;
}

.war-feedback-form textarea {
    resize: vertical;
    min-height: 120px;
}

.war-feedback-tag-fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

.war-feedback-tag-picks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 6px;
}

.war-feedback-tag-picks label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 0.92rem;
    cursor: pointer;
}

.war-feedback-tag-picks input {
    width: auto;
    accent-color: var(--war-gold);
}

.war-feedback-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.war-feedback-tag-btn {
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid var(--war-bronze);
    background: rgba(8, 6, 4, 0.55);
    color: var(--muted);
    font: inherit;
    font-size: 0.82rem;
    cursor: pointer;
}

.war-feedback-tag-btn:hover,
.war-feedback-tag-btn.is-active {
    border-color: rgba(201, 162, 39, 0.55);
    color: #f0e6d2;
    background: rgba(201, 162, 39, 0.12);
}

.war-feedback-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.war-feedback-item {
    padding: 14px 16px;
    border: 1px solid var(--war-bronze);
    border-radius: 5px;
    background-color: #16120e;
    background-image: var(--war-wood-scrim-soft), var(--war-wood-grain);
    background-size: auto, cover;
    background-position: center, center;
    box-shadow:
        inset 0 1px 0 var(--war-bronze-hi),
        inset 0 -1px 0 var(--war-bronze-lo);
}

.war-feedback-item h3 {
    margin: 0 0 8px;
    font-family: 'Cinzel', 'DM Sans', Georgia, serif;
    font-size: 1.02rem;
    color: #f0e6d2;
}

.war-feedback-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 6px;
    font-size: 0.78rem;
    color: var(--muted);
}

.war-feedback-status-badge {
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.war-feedback-status-badge.is-open {
    border: 1px solid rgba(120, 98, 72, 0.55);
    color: var(--muted);
}

.war-feedback-status-badge.is-ack {
    border: 1px solid rgba(201, 162, 39, 0.45);
    color: #fde68a;
    background: rgba(201, 162, 39, 0.1);
}

.war-feedback-contact {
    font-style: italic;
}

.war-feedback-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.war-feedback-tag {
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    border: 1px solid rgba(201, 162, 39, 0.35);
    color: #fde68a;
    background: rgba(201, 162, 39, 0.08);
}

.war-feedback-body {
    color: var(--muted);
    line-height: 1.55;
}

.war-feedback-body p {
    margin: 0 0 0.75em;
}

.war-feedback-body p:last-child {
    margin-bottom: 0;
}

.war-feedback-admin {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.war-feedback-admin-card {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid rgba(201, 162, 39, 0.28);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.28);
}

.war-feedback-admin-head {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: baseline;
    justify-content: space-between;
}

.war-feedback-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: end;
}

.war-status.success {
    border: 1px solid rgba(34, 197, 94, 0.4);
    background: rgba(22, 101, 52, 0.18);
    color: #86efac;
}

@media (max-width: 640px) {
    .war-tool-grid,
    .war-screenshot-grid {
        grid-template-columns: 1fr;
    }

    body.theme-war .hero-cta {
        width: 100%;
    }

    body.theme-war .hero-cta .btn {
        flex: 1 1 auto;
        justify-content: center;
    }
}
