.nv-7d {
    --nv-7d-bg: #0d0d10;
    --nv-7d-panel: rgba(19, 16, 14, 0.88);
    --nv-7d-panel-strong: rgba(26, 20, 16, 0.94);
    --nv-7d-line: rgba(255, 136, 66, 0.2);
    --nv-7d-rust: #ff8f4a;
    --nv-7d-fire: #ffb45c;
    --nv-7d-ink: #f4eee6;
    --nv-7d-muted: #d0b7a3;
    --nv-7d-ash: #a79a92;
    --nv-7d-danger: #ff655f;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(circle at top, rgba(255, 143, 74, 0.14), transparent 34%),
        linear-gradient(180deg, #0a0a0c 0%, #121214 36%, #171311 100%);
    color: var(--nv-7d-ink);
}

.nv-7d__ambient {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

.nv-7d__haze,
.nv-7d__grid {
    position: absolute;
}

.nv-7d__haze {
    width: 46rem;
    height: 46rem;
    border-radius: 999px;
    filter: blur(42px);
    opacity: 0.28;
}

.nv-7d__haze--one {
    top: -10rem;
    left: -12rem;
    background: rgba(255, 108, 54, 0.2);
}

.nv-7d__haze--two {
    right: -14rem;
    top: 24rem;
    background: rgba(255, 201, 117, 0.12);
}

.nv-7d__grid {
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
    background-size: 82px 82px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.5), transparent 88%);
}

.nv-7d__shell {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 96px;
}

.nv-7d__breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 24px;
    font-size: 0.95rem;
    color: var(--nv-7d-muted);
}

.nv-7d__breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--nv-7d-ink);
    text-decoration: none;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.nv-7d__breadcrumb a:hover,
.nv-7d__breadcrumb a:focus-visible {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
    transform: translateY(-1px);
}

.nv-7d-hero {
    display: grid;
    gap: 22px;
    margin-bottom: 54px;
}

.nv-7d-hero__stage,
.nv-7d-hero__content,
.nv-7d-memory,
.nv-7d-finale {
    border: 1px solid var(--nv-7d-line);
    background: linear-gradient(180deg, rgba(26, 20, 16, 0.95), rgba(15, 13, 12, 0.98));
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.32);
}

.nv-7d-hero__stage {
    position: relative;
    min-height: min(74vw, 820px);
    border-radius: 30px;
    overflow: hidden;
    padding: clamp(20px, 2.5vw, 32px);
}

.nv-7d-hero__stage::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 8, 7, 0.1), rgba(10, 9, 8, 0.84));
    z-index: 7;
    pointer-events: none;
}

.nv-7d-scene__sky {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(180deg, rgba(14, 10, 8, 0.08) 0%, rgba(18, 13, 11, 0.18) 34%, rgba(14, 11, 10, 0.66) 100%),
        radial-gradient(circle at 75% 18%, rgba(255, 214, 132, 0.42), transparent 12%),
        url('../images/games/7-days-to-die/hero/wasteland-sunset-bg.png');
    background-size: cover, cover, cover;
    background-position: center, center, center;
    background-repeat: no-repeat;
    transform: scale(1.02);
    filter: saturate(1.04) contrast(1.02);
}

.nv-7d-scene__sky::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent 24%, rgba(0,0,0,0.1));
}

.nv-7d-scene__hint {
    position: absolute;
    left: 24px;
    top: 20px;
    z-index: 10;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    background: rgba(9, 8, 8, 0.6);
    border: 1px solid rgba(255,255,255,0.14);
    color: var(--nv-7d-muted);
    font-size: 0.84rem;
    max-width: min(60ch, calc(100% - 40px));
}

.nv-7d-scene__layer {
    position: absolute;
    inset: 0;
    will-change: transform;
    transition: transform 220ms ease-out;
    transform: translate3d(0, 0, 0);
}

.nv-7d-scene__layer img {
    position: absolute;
    max-width: none;
    user-select: none;
    pointer-events: none;
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.28));
}

.nv-7d-scene__layer--compound { z-index: 2; }
.nv-7d-scene__layer--compound img {
    width: clamp(350px, 37vw, 580px);
    right: -2%;
    bottom: 15%;
}

.nv-7d-scene__layer--horde { z-index: 3; }
.nv-7d-scene__layer--horde img {
    width: clamp(430px, 46vw, 720px);
    left: 18%;
    bottom: 14%;
}

.nv-7d-scene__layer--bridge { z-index: 4; }
.nv-7d-scene__layer--bridge img {
    width: clamp(330px, 36vw, 560px);
    right: 5%;
    bottom: -1%;
}

.nv-7d-scene__layer--checkpoint { z-index: 5; }
.nv-7d-scene__layer--checkpoint img {
    width: clamp(260px, 28vw, 430px);
    left: -2%;
    bottom: 0%;
}

.nv-7d-scene__layer--watchtower { z-index: 6; }
.nv-7d-scene__layer--watchtower img {
    width: clamp(280px, 29vw, 450px);
    left: 2%;
    bottom: 12%;
}

.nv-7d-hero__content {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(270px, 0.65fr);
    gap: 24px;
    align-items: stretch;
    padding: clamp(24px, 3vw, 34px);
    border-radius: 26px;
}

.nv-7d-hero__copy h1 {
    margin: 14px 0 12px;
    font-size: clamp(2.7rem, 5vw, 4.9rem);
    line-height: 0.96;
    letter-spacing: -0.04em;
    color: #fff0de;
}

.nv-7d-hero__eyebrow,
.nv-7d-section__heading span,
.nv-7d-finale > span,
.nv-7d-plan__head span,
.nv-7d-memory span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--nv-7d-rust);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.74rem;
    font-weight: 700;
}

.nv-7d-hero__tagline {
    margin: 0;
    font-size: clamp(1.04rem, 1.45vw, 1.2rem);
    line-height: 1.72;
    color: #fff6ee;
}

.nv-7d-hero__description {
    margin: 14px 0 0;
    color: var(--nv-7d-muted);
    line-height: 1.78;
}

.nv-7d-hero__side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    padding-left: 22px;
    border-left: 1px solid rgba(255,255,255,0.08);
}

.nv-7d-hero__actions,
.nv-7d-finale__actions,
.nv-7d-section__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.nv-7d-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.85rem 1.25rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
    cursor: pointer;
}

.nv-7d-btn:hover,
.nv-7d-btn:focus-visible {
    transform: translateY(-2px);
}

.nv-7d-btn--primary {
    background: linear-gradient(135deg, var(--nv-7d-fire), var(--nv-7d-rust));
    color: #28140a;
    box-shadow: 0 14px 32px rgba(255, 143, 74, 0.24);
}

.nv-7d-btn--ghost {
    background: rgba(255,255,255,0.035);
    color: var(--nv-7d-ink);
    border-color: rgba(255,255,255,0.12);
}

.nv-7d-hero__markers,
.nv-7d-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.nv-7d-hero__markers span span,
.nv-7d-hero__stats article {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    padding: 0.7rem 0.9rem;
    border-radius: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--nv-7d-ink);
    font-size: 0.84rem;
}

.nv-7d-hero__stats article {
    min-width: 120px;
}

.nv-7d-hero__stats small {
    color: var(--nv-7d-ash);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.nv-7d-hero__stats strong {
    font-size: 1rem;
    color: #fff;
}

.nv-7d-section {
    margin-top: 66px;
}

.nv-7d-section__heading {
    max-width: 780px;
    margin-bottom: 24px;
}

.nv-7d-section__heading h2,
.nv-7d-finale h2 {
    margin: 12px 0 14px;
    font-size: clamp(2rem, 3vw, 3.2rem);
    line-height: 1.05;
    color: #fff0de;
}

.nv-7d-section__heading p,
.nv-7d-finale p {
    margin: 0;
    color: var(--nv-7d-muted);
    line-height: 1.8;
    font-size: 1.02rem;
}










.nv-7d-plans__tab.is-active__tab:hover__tab:focus-visible {
    background: linear-gradient(180deg, rgba(255, 143, 74, 0.12), rgba(255,255,255,0.03));
    border-color: rgba(255, 180, 92, 0.32);
    transform: translateY(-1px);
}









.nv-7d-memories {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.nv-7d-memory {
    border-radius: 20px;
    padding: 20px;
    transform: rotate(var(--rotation));
}

.nv-7d-memory p {
    margin: 14px 0 18px;
    color: var(--nv-7d-ink);
    line-height: 1.78;
}

.nv-7d-memory strong {
    color: var(--nv-7d-muted);
    font-size: 0.9rem;
}

.nv-7d-finale {
    margin-top: 66px;
    border-radius: 28px;
    padding: clamp(28px, 4vw, 42px);
    text-align: center;
}

.nv-7d-finale small {
    display: block;
    margin-top: 24px;
    color: var(--nv-7d-muted);
    font-size: 0.92rem;
}

[data-7d-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 550ms ease, transform 550ms ease;
}

[data-7d-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1100px) {
    .nv-7d-memories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nv-7d-hero__content {
        grid-template-columns: 1fr;
    }

    .nv-7d-hero__side {
        padding-left: 0;
        padding-top: 20px;
        border-left: 0;
        border-top: 1px solid rgba(255,255,255,0.08);
    }
}

@media (max-width: 760px) {
    .nv-7d__shell {
        width: min(100% - 20px, 1220px);
        padding-top: 18px;
        padding-bottom: 72px;
    }

    .nv-7d-hero__stage {
        min-height: 620px;
        border-radius: 24px;
    }

    .nv-7d-hero__content {
        padding: 20px;
        border-radius: 20px;
    }

    .nv-7d-scene__hint {
        left: 14px;
        right: 14px;
        max-width: none;
        font-size: 0.78rem;
    }

    .nv-7d-hero__copy h1 {
        font-size: 2.5rem;
    }

    .nv-7d-scene__layer--compound img {
        width: 360px;
        right: -64px;
        bottom: 28%;
    }

    .nv-7d-scene__layer--horde img {
        width: 500px;
        left: 50%;
        transform: translateX(-50%);
        bottom: 18%;
    }

    .nv-7d-scene__layer--bridge img {
        width: 360px;
        right: -56px;
        bottom: -1%;
    }

    .nv-7d-scene__layer--checkpoint img {
        width: 250px;
        left: -54px;
        bottom: 4%;
    }

    .nv-7d-scene__layer--watchtower img {
        width: 260px;
        left: -22px;
        bottom: 22%;
    }

    .nv-7d-memories {
        grid-template-columns: 1fr;
    }

    .nv-7d-finale {
        border-radius: 20px;
    }

    .nv-7d-memory {
        transform: none;
    }
}

/* 7 Days to Die horde-defense minigame */
.nv-7d-section--game {
    margin-bottom: 54px;
}

.nv-7d-game {
    border-radius: 28px;
    border: 1px solid var(--nv-7d-line);
    background: linear-gradient(180deg, rgba(21, 15, 12, 0.95), rgba(11, 10, 10, 0.98));
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.32);
    overflow: hidden;
}

.nv-7d-game__chrome,
.nv-7d-game__footer {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
}

.nv-7d-game__hud {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.nv-7d-game__hud article {
    min-width: 120px;
    padding: 0.8rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.nv-7d-game__hud small {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--nv-7d-muted);
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.nv-7d-game__hud strong {
    font-size: 1.2rem;
    color: #fff3e0;
}

.nv-7d-game__button {
    border: 0;
    border-radius: 999px;
    padding: 0.95rem 1.35rem;
    background: linear-gradient(135deg, var(--nv-7d-rust), var(--nv-7d-fire));
    color: #1e130d;
    font-weight: 800;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
    box-shadow: 0 14px 28px rgba(255, 127, 64, 0.28);
}

.nv-7d-game__button:hover,
.nv-7d-game__button:focus-visible {
    transform: translateY(-1px);
}

.nv-7d-game__button:disabled {
    opacity: 0.78;
    cursor: default;
    transform: none;
}

.nv-7d-game__viewport {
    position: relative;
    padding: 18px 20px;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.22)),
        radial-gradient(circle at top right, rgba(255, 176, 97, 0.12), transparent 30%);
}

.nv-7d-game__viewport::before {
    content: '';
    position: absolute;
    inset: 18px 20px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.nv-7d-game canvas {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: linear-gradient(180deg, #1e0f0c 0%, #50311f 50%, #171311 100%);
    cursor: crosshair;
}

.nv-7d-game__footer {
    align-items: flex-start;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.nv-7d-game__status {
    margin: 0;
    font-size: 1rem;
    color: #fff2e4;
}

.nv-7d-game__note {
    margin: 0;
    max-width: 38ch;
    color: var(--nv-7d-muted);
    line-height: 1.6;
    text-align: right;
}

@media (max-width: 960px) {
    .nv-7d-game__chrome,
    .nv-7d-game__footer {
        flex-direction: column;
        align-items: stretch;
    }

    .nv-7d-game__button,
    .nv-7d-game__note {
        width: 100%;
        text-align: center;
    }

    .nv-7d-game__hud article {
        flex: 1 1 140px;
    }
}

@media (max-width: 640px) {
    .nv-7d-game__viewport {
        padding: 14px;
    }

    .nv-7d-game__viewport::before {
        inset: 14px;
    }

    .nv-7d-game__chrome,
    .nv-7d-game__footer {
        padding: 16px;
    }

    .nv-7d-game__hud {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .nv-7d-game__hud article:last-child {
        grid-column: 1 / -1;
    }
}
