body.village-topic-body {
    background:
        radial-gradient(circle at 14% 10%, rgba(171, 35, 45, 0.18), rgba(171, 35, 45, 0) 26%),
        radial-gradient(circle at 88% 16%, rgba(205, 169, 86, 0.12), rgba(205, 169, 86, 0) 24%),
        linear-gradient(180deg, #07090b 0%, #0a0d10 45%, #050607 100%);
}

body.village-topic-body::before {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0) 24%, rgba(255, 255, 255, 0.02)),
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0) 38%);
    opacity: 0.48;
}

.village-shell {
    width: min(1240px, calc(100vw - 1rem));
    margin: 0 auto;
    padding: clamp(2rem, 4vw, 3rem) 0 0;
}

.village-shell--tool {
    padding-top: clamp(1.75rem, 3vw, 2.6rem);
}

.village-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(290px, 0.75fr);
    gap: 1rem;
    align-items: stretch;
    padding: clamp(1.2rem, 3vw, 1.8rem);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(5, 7, 9, 0.24), rgba(5, 7, 9, 0.88)),
        linear-gradient(90deg, rgba(5, 7, 9, 0.94), rgba(5, 7, 9, 0.22) 58%, rgba(5, 7, 9, 0.74)),
        url("../images/re-home/crops/village-hub.jpg") center 30% / cover no-repeat;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
    overflow: hidden;
}

.village-hero--tool {
    background:
        linear-gradient(180deg, rgba(5, 7, 9, 0.18), rgba(5, 7, 9, 0.92)),
        linear-gradient(90deg, rgba(5, 7, 9, 0.96), rgba(5, 7, 9, 0.18) 54%, rgba(5, 7, 9, 0.82)),
        url("../images/re-village/gm79/route-panel.jpg") center center / cover no-repeat;
}

.village-hero__copy,
.village-hero__figure,
.village-panel,
.village-topic-nav__inner,
.village-card,
.village-media-card,
.village-link-card,
.village-stat-card {
    min-width: 0;
}

.village-hero__copy {
    position: relative;
    z-index: 1;
    padding: 0.2rem;
}

.village-hero__kicker,
.village-panel__tag,
.village-card__kicker,
.gm79-fix__eyebrow {
    margin: 0;
    color: rgba(246, 241, 234, 0.66);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.village-hero h1 {
    margin-top: 0.75rem;
    max-width: 11ch;
    font-size: clamp(2.6rem, 5vw, 4.8rem);
    line-height: 0.95;
}

.village-hero__lede,
.village-panel__lede,
.village-card p,
.village-link-card span,
.village-link-card code,
.gm79-inline-list,
.gm79-status p,
.gm79-fix p,
.gm79-advice p {
    color: rgba(232, 224, 215, 0.86);
    overflow-wrap: anywhere;
}

.village-hero__lede {
    max-width: 42rem;
    margin-top: 0.9rem;
    font-size: 1.08rem;
}

.village-hero__actions,
.village-feature__actions,
.village-layout,
.village-grid,
.village-pill-row,
.choice-chips,
.village-data-grid {
    display: grid;
    gap: 1rem;
}

.village-hero__actions,
.village-feature__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.35rem;
}

.village-pill-row {
    grid-template-columns: repeat(3, minmax(0, auto));
    justify-content: start;
    margin-top: 1rem;
    gap: 0.65rem;
}

.village-pill-row span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0.45rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(246, 241, 234, 0.9);
    font-size: 0.9rem;
}

.village-hero__figure,
.village-media-card {
    position: relative;
    align-self: stretch;
    padding: 0.75rem;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0)),
        rgba(8, 10, 12, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.village-hero__figure img,
.village-media-card img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.24);
}

.village-hero__figure figcaption,
.village-media-card figcaption {
    margin-top: 0.75rem;
    color: rgba(246, 241, 234, 0.68);
    font-size: 0.92rem;
}

.village-media-card--flush {
    margin-top: 1rem;
}

.village-layout {
    grid-template-columns: minmax(230px, 260px) minmax(0, 1fr);
    align-items: start;
    margin-top: 1rem;
}

.village-topic-nav {
    position: sticky;
    top: 92px;
}

.village-topic-nav__inner,
.village-panel,
.village-card,
.village-link-card,
.village-stat-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
        linear-gradient(180deg, rgba(12, 17, 20, 0.86), rgba(7, 9, 11, 0.96));
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.24);
}

.village-topic-nav__inner {
    padding: 1rem;
}

.village-topic-nav__title,
.village-topic-nav__subtitle {
    margin: 0;
    color: rgba(246, 241, 234, 0.92);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.village-topic-nav__subtitle {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: rgba(246, 241, 234, 0.62);
}

.village-topic-nav__menu {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.village-topic-nav__link {
    display: grid;
    gap: 0.25rem;
    padding: 0.9rem 0.95rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    transition: transform 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

.village-topic-nav__link:hover,
.village-topic-nav__link.is-active,
.village-topic-nav__link.is-current-page {
    transform: translateY(-1px);
    border-color: rgba(216, 61, 76, 0.3);
    background: rgba(216, 61, 76, 0.08);
}

.village-topic-nav__label {
    color: rgba(246, 241, 234, 0.94);
    font-family: "Oswald", sans-serif;
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.village-topic-nav__description {
    color: rgba(246, 241, 234, 0.62);
    font-size: 0.9rem;
}

.village-topic-nav__footer {
    margin-top: 1rem;
}

.village-topic-nav__cta {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.8rem 1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(216, 61, 76, 0.92), rgba(145, 17, 31, 0.94));
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.village-panel__inner {
    padding: clamp(1.15rem, 3vw, 1.6rem);
}

.village-panel__title,
.village-card__title,
.gm79-status h3,
.gm79-advice h3,
.gm79-fix h3 {
    margin-top: 0.55rem;
    font-size: clamp(1.45rem, 3vw, 2.1rem);
    line-height: 1.12;
    overflow-wrap: anywhere;
}

.village-section + .village-section {
    margin-top: 1.6rem;
    padding-top: 1.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.village-grid {
    margin-top: 1rem;
}

.village-grid--stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.village-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.village-grid--tool {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.village-grid--tight {
    gap: 0.8rem;
}

.village-feature {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.village-feature--wide {
    grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
    align-items: start;
}

.village-card,
.village-link-card {
    padding: clamp(1rem, 3vw, 1.35rem);
}

.village-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 1rem;
    list-style: none;
}

.village-list li {
    position: relative;
    padding-left: 0.95rem;
    color: rgba(232, 224, 215, 0.86);
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.village-list li::before {
    content: "";
    position: absolute;
    top: 0.58rem;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(135deg, #d83d4c, #d2a24d);
}

.village-list--ordered {
    list-style: decimal;
    padding-left: 1.2rem;
}

.village-list--ordered li {
    padding-left: 0.15rem;
}

.village-list--ordered li::before {
    content: none;
}

.village-list--ordered li.is-complete {
    color: rgba(246, 241, 234, 0.96);
}

.village-list--ordered li.is-pending {
    color: rgba(246, 241, 234, 0.62);
}

.gm79-status,
.gm79-route-card,
.gm79-advice,
.gm79-fix {
    margin-top: 0.95rem;
    padding: 1rem;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.gm79-status__badge,
.gm79-advice__badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.gm79-status__badge--ready,
.gm79-advice__badge {
    background: rgba(118, 206, 176, 0.16);
    color: #bfe9dd;
}

.gm79-status__badge--blocked {
    background: rgba(216, 61, 76, 0.16);
    color: #ffd7dc;
}

.gm79-status__note,
.gm79-advice__watch {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(246, 241, 234, 0.68);
}

.gm79-checklist {
    display: grid;
    gap: 0.8rem;
    margin-top: 1rem;
}

.gm79-check {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.8rem;
    align-items: start;
    padding: 0.85rem 0.9rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
}

.gm79-check input {
    width: 18px;
    height: 18px;
    margin-top: 0.18rem;
    accent-color: #d83d4c;
}

.gm79-check__copy {
    display: grid;
    gap: 0.25rem;
}

.gm79-check__copy strong {
    color: rgba(246, 241, 234, 0.92);
}

.gm79-check__copy span {
    color: rgba(246, 241, 234, 0.66);
}

.choice-chips {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.choice-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    color: rgba(246, 241, 234, 0.82);
    font: inherit;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
    overflow-wrap: anywhere;
}

.choice-chip:hover,
.choice-chip.is-active {
    transform: translateY(-1px);
    border-color: rgba(210, 162, 77, 0.3);
    background: rgba(210, 162, 77, 0.1);
    color: rgba(246, 241, 234, 0.96);
}

.village-card--ammo.is-recommended {
    border-color: rgba(118, 206, 176, 0.26);
    background:
        linear-gradient(180deg, rgba(118, 206, 176, 0.08), rgba(255, 255, 255, 0)),
        linear-gradient(180deg, rgba(12, 17, 20, 0.86), rgba(7, 9, 11, 0.96));
}

.gm79-inline-list {
    margin-top: 0.8rem;
    font-size: 0.95rem;
}

.gm79-fix__action {
    margin-top: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: rgba(216, 61, 76, 0.08);
    color: rgba(255, 226, 230, 0.96);
}

.village-data-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 1rem;
}

.village-stat-card {
    padding: 1rem;
}

.village-stat-card span {
    display: block;
    color: rgba(246, 241, 234, 0.62);
    font-size: 0.84rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.village-stat-card strong {
    display: block;
    margin-top: 0.45rem;
    color: rgba(246, 241, 234, 0.96);
    font-family: "Oswald", sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.village-link-card {
    display: grid;
    gap: 0.4rem;
}

.village-link-card strong {
    color: rgba(246, 241, 234, 0.96);
    font-size: 1.05rem;
}

.village-link-card code {
    display: block;
    padding: 0.6rem 0.7rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(246, 241, 234, 0.86);
    font-size: 0.84rem;
    line-height: 1.45;
    white-space: normal;
}

.gm79-error {
    color: #ffd7dc;
}

@media (max-width: 1024px) {
    .village-layout,
    .village-grid--stats,
    .village-grid--two,
    .village-grid--tool,
    .village-feature--wide,
    .village-data-grid,
    .village-hero {
        grid-template-columns: 1fr;
    }

    .village-topic-nav {
        position: static;
    }
}

@media (max-width: 680px) {
    .village-shell {
        width: min(100vw - 1rem, 1240px);
    }

    .village-hero,
    .village-topic-nav__inner,
    .village-panel,
    .village-card,
    .village-link-card,
    .village-stat-card,
    .village-media-card,
    .gm79-status,
    .gm79-route-card,
    .gm79-advice,
    .gm79-fix {
        border-radius: 22px;
    }

    .village-panel__inner,
    .village-card,
    .village-link-card {
        padding: 1rem;
    }

    .village-hero__actions,
    .village-feature__actions {
        flex-direction: column;
    }

    .village-pill-row {
        grid-template-columns: 1fr;
    }

    .choice-chips {
        grid-template-columns: 1fr;
    }
}
