:root {
    --primary: #ef4444;
    --primary-glow: rgba(239,68,68,.5);
    --primary-gold: #f87171;
}

.ft-wrap {
    --primary: #ef4444;
}

/* =========================================
   VIREX — TEST RANGE (try before you buy)
   Loaded only on the homepage.
   ========================================= */

.range-section {
    padding: 20px 0 70px;
}

.range-lead {
    text-align: center;
    color: #7c7c7c;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    margin: 0 0 18px;
}

.range-shell {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    background: #0a0a0c;
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
    user-select: none;
}

    .range-shell:fullscreen {
        border-radius: 0;
        aspect-ratio: auto;
        height: 100%;
    }

#range-canvas,
#range-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

#range-overlay {
    pointer-events: none;
}

.range-shell.is-locked {
    cursor: none;
}

/* ---------- launch card ---------- */
.range-launch {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    padding: 26px 30px;
    background: radial-gradient(1200px 500px at 20% 0%, rgba(239, 68, 68, 0.10), transparent 60%), linear-gradient(180deg, rgba(10, 10, 12, 0.94) 0%, rgba(10, 10, 12, 0.82) 100%);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

.range-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .range-brand img {
        width: 40px;
        height: 40px;
        object-fit: contain;
    }

.range-brand-text strong {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
}

.range-brand-text span {
    display: block;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: #7d7d7d;
    text-transform: uppercase;
    margin-top: 2px;
}

.range-feature-line {
    margin: 12px 0 0;
    color: #9a9a9a;
    font-size: 0.82rem;
}

    .range-feature-line b {
        color: var(--primary);
        font-weight: 600;
    }

.range-menu {
    margin-top: 26px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-width: 420px;
}

.range-menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 11px 14px;
    background: none;
    border: none;
    border-left: 3px solid transparent;
    color: #9d9d9d;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: color .18s ease, border-color .18s ease, background .18s ease;
}

    .range-menu-item i {
        font-size: 0.85rem;
        width: 18px;
        color: inherit;
    }

    .range-menu-item em {
        margin-left: auto;
        font-size: 0.68rem;
        font-style: normal;
        font-weight: 600;
        letter-spacing: 0.6px;
        color: #6b6b6b;
        text-transform: uppercase;
    }

    .range-menu-item:hover,
    .range-menu-item:focus-visible {
        color: #fff;
        background: rgba(255, 255, 255, 0.03);
        border-left-color: rgba(239, 68, 68, 0.5);
        outline: none;
    }

    .range-menu-item.is-primary {
        color: #fff;
        border-left-color: var(--primary);
    }

        .range-menu-item.is-primary i {
            color: var(--primary);
        }

/* leaderboard */
.range-leaderboard {
    position: absolute;
    right: 30px;
    bottom: 74px;
    width: 240px;
    text-align: right;
}

.range-lb-head {
    display: flex;
    justify-content: space-between;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #6f6f6f;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.range-lb-list {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

    .range-lb-list li {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 10px;
        font-size: 0.78rem;
        color: #b9b9b9;
    }

.rlb-rank {
    color: var(--primary);
    font-weight: 800;
    font-size: 0.7rem;
}

.rlb-score {
    color: #fff;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
}

.rlb-meta {
    color: #6f6f6f;
    font-size: 0.7rem;
}

.rlb-empty {
    color: #6f6f6f;
    font-size: 0.76rem;
}

/* key hints */
.range-keys {
    position: absolute;
    left: 30px;
    right: 30px;
    bottom: 22px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    font-size: 0.72rem;
    color: #7e7e7e;
}

    .range-keys kbd {
        display: inline-block;
        padding: 3px 7px;
        margin-right: 5px;
        border-radius: 5px;
        background: rgba(255, 255, 255, 0.07);
        border: 1px solid rgba(255, 255, 255, 0.12);
        color: #ddd;
        font-family: inherit;
        font-size: 0.68rem;
        font-weight: 700;
    }

    .range-keys .range-tagline {
        margin-left: auto;
        font-size: 0.62rem;
        font-weight: 800;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: #5f5f5f;
    }

.range-result {
    margin-top: 18px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.28);
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

    .range-result strong {
        color: #fff;
        font-size: 0.95rem;
    }

    .range-result span {
        color: #bdbdbd;
        font-size: 0.82rem;
    }

    .range-result em {
        color: var(--primary);
        font-size: 0.78rem;
        font-style: normal;
        font-weight: 700;
    }

/* ---------- in-game HUD ---------- */
.range-hud {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    font-family: 'Space Grotesk', sans-serif;
}

.range-hud-tl {
    position: absolute;
    top: 20px;
    left: 24px;
}

#range-score {
    font-size: 2.6rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}

#range-sub {
    display: block;
    margin-top: 4px;
    font-size: 0.7rem;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #9a9a9a;
}

#range-timer {
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}

    #range-timer.is-low {
        color: #f87171;
        animation: rangePulse .6s infinite;
    }

@keyframes rangePulse {
    50% {
        opacity: .45;
    }
}

.range-hud-br {
    position: absolute;
    right: 24px;
    bottom: 74px;
    text-align: right;
}

.range-weapons {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    margin-bottom: 14px;
    pointer-events: auto;
}

.range-weapon {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: #9c9c9c;
    font-family: inherit;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all .18s ease;
}

    .range-weapon span {
        width: 17px;
        height: 17px;
        border-radius: 4px;
        background: rgba(255, 255, 255, 0.1);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 0.65rem;
    }

    .range-weapon.is-active {
        background: rgba(239, 68, 68, 0.16);
        border-color: var(--primary);
        color: #fff;
    }

        .range-weapon.is-active span {
            background: var(--primary);
            color: #111111;
        }

#range-ammo {
    font-size: 2.4rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

#range-mag {
    font-size: 1rem;
    color: #8a8a8a;
    margin-left: 2px;
}

.range-ammo-hint {
    display: block;
    margin-top: 5px;
    font-size: 0.64rem;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #7a7a7a;
}

.range-hud-keys {
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    display: flex;
    gap: 14px;
    padding: 8px 16px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 0.68rem;
    color: #9a9a9a;
    white-space: nowrap;
}

#range-popups {
    position: absolute;
    left: 50%;
    top: 58%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.range-popup {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    animation: rangePop .9s ease-out forwards;
}

    .range-popup.is-head {
        color: #f87171;
        font-size: 1.05rem;
    }

@keyframes rangePop {
    0% {
        opacity: 0;
        transform: translateY(6px) scale(.9);
    }

    18% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(-26px);
    }
}

#range-toast {
    position: absolute;
    left: 50%;
    top: 76px;
    transform: translateX(-50%);
    padding: 7px 15px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: var(--primary);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 1px;
    opacity: 0;
    transition: opacity .2s ease;
}

    #range-toast.show {
        opacity: 1;
    }

/* ---------- cheat menu ---------- */
.range-cheatmenu {
    position: absolute;
    inset: 0;
    z-index: 8;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 6, 8, 0.6);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.range-cm-panel {
    width: min(620px, 92%);
    max-height: 86%;
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    overflow: hidden;
    background: #121216;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.range-cm-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.range-cm-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.98rem;
    font-weight: 700;
    color: #fff;
}

    .range-cm-title b {
        color: var(--primary);
    }

.range-cm-sub {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #6f6f6f;
}

.range-cm-close {
    margin-left: auto;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    color: #bdbdbd;
    font-size: 1rem;
    cursor: pointer;
}

    .range-cm-close:hover {
        background: rgba(239, 68, 68, 0.18);
        color: var(--primary);
    }

.range-cm-body {
    display: grid;
    grid-template-columns: 150px 1fr;
    min-height: 260px;
    overflow: hidden;
}

.range-tabs {
    display: flex;
    flex-direction: column;
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.02);
    border-right: 1px solid rgba(255, 255, 255, 0.07);
}

.range-tab {
    padding: 10px 18px;
    background: none;
    border: none;
    border-left: 3px solid transparent;
    color: #8d8d8d;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    text-align: left;
    cursor: pointer;
    transition: all .18s ease;
}

    .range-tab:hover {
        color: #ddd;
    }

    .range-tab.is-active {
        color: #fff;
        border-left-color: var(--primary);
        background: rgba(239, 68, 68, 0.07);
    }

.range-panes {
    padding: 18px 20px;
    overflow-y: auto;
}

.range-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}

    .range-row:last-child {
        border-bottom: none;
    }

    .range-row > label:first-child,
    .range-row > .range-row-label {
        flex: 1;
        color: #d0d0d0;
        font-size: 0.85rem;
    }

    .range-row small {
        display: block;
        color: #6f6f6f;
        font-size: 0.7rem;
        margin-top: 2px;
    }

    .range-row input[type="range"] {
        width: 150px;
        accent-color: #ef4444;
    }

    .range-row output {
        min-width: 46px;
        text-align: right;
        color: var(--primary);
        font-size: 0.76rem;
        font-weight: 700;
    }

/* toggle */
.range-toggle {
    position: relative;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
}

    .range-toggle input {
        position: absolute;
        opacity: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        cursor: pointer;
    }

    .range-toggle span {
        position: absolute;
        inset: 0;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.1);
        transition: background .2s ease;
        pointer-events: none;
    }

        .range-toggle span::after {
            content: '';
            position: absolute;
            top: 3px;
            left: 3px;
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background: #888;
            transition: transform .2s ease, background .2s ease;
        }

    .range-toggle input:checked + span {
        background: rgba(239, 68, 68, 0.3);
    }

        .range-toggle input:checked + span::after {
            transform: translateX(18px);
            background: var(--primary);
        }

.range-seg {
    display: flex;
    gap: 6px;
}

    .range-seg button {
        padding: 6px 13px;
        border-radius: 7px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.08);
        color: #a5a5a5;
        font-family: inherit;
        font-size: 0.74rem;
        font-weight: 700;
        cursor: pointer;
        transition: all .18s ease;
    }

        .range-seg button:hover {
            color: #fff;
        }

        .range-seg button.is-active {
            background: var(--primary);
            border-color: var(--primary);
            color: #111111;
        }

.range-cm-foot {
    display: flex;
    justify-content: space-between;
    padding: 11px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: #6f6f6f;
}

    .range-cm-foot button {
        background: none;
        border: none;
        color: #6f6f6f;
        font: inherit;
        letter-spacing: inherit;
        text-transform: inherit;
        cursor: pointer;
    }

        .range-cm-foot button:hover {
            color: var(--primary);
        }

/* ---------- states ---------- */
.range-shell.is-loading .range-launch::after {
    content: 'Loading the range…';
    position: absolute;
    inset: auto 0 50% 0;
    text-align: center;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
}

.range-shell.is-live .range-launch,
.range-shell.is-live .range-pick,
.range-shell.is-live .range-spoof {
    display: none;
}

/* ---------- cheat / spoofer picker ---------- */
.range-pick {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: flex;
    flex-direction: column;
    padding: 26px 30px;
    background: radial-gradient(1200px 500px at 20% 0%, rgba(239, 68, 68, 0.10), transparent 60%), linear-gradient(180deg, rgba(10, 10, 12, 0.96) 0%, rgba(10, 10, 12, 0.88) 100%);
}

    .range-pick[hidden],
    .range-launch[hidden],
    .range-spoof[hidden] {
        display: none !important;
    }

.range-pick-title {
    margin: 28px 0 6px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.55rem;
    font-weight: 700;
    color: #fff;
}

.range-pick-sub {
    margin: 0 0 22px;
    color: #8a8a8a;
    font-size: 0.9rem;
}

.range-pick-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    max-width: 640px;
}

.range-pick-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 22px 18px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    text-align: left;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

    .range-pick-card i {
        font-size: 1.25rem;
        color: var(--primary);
    }

    .range-pick-card strong {
        font-family: 'Space Grotesk', sans-serif;
        font-size: 1.2rem;
        font-weight: 700;
    }

    .range-pick-card span {
        color: #8f8f8f;
        font-size: 0.82rem;
        line-height: 1.45;
    }

    .range-pick-card:hover,
    .range-pick-card:focus-visible {
        border-color: rgba(239, 68, 68, 0.55);
        background: rgba(239, 68, 68, 0.08);
        outline: none;
        transform: translateY(-1px);
    }

.range-back-pick {
    align-self: flex-start;
    margin: 14px 0 0;
    padding: 0;
    border: 0;
    background: none;
    color: #8a8a8a;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

    .range-back-pick:hover {
        color: #fff;
    }

    .range-back-pick i {
        margin-right: 6px;
    }

/* ---------- fake permanent spoof UI ---------- */
.range-spoof {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: #0a0a0c;
}

.spoof-app {
    width: min(720px, 100%);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.spoof-topbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
}

    .spoof-topbar img {
        width: 22px;
        height: 22px;
        object-fit: contain;
    }

    .spoof-topbar strong {
        font-family: 'Space Grotesk', sans-serif;
        letter-spacing: 0.18em;
        font-size: 0.95rem;
        color: #fff;
    }

.spoof-exit-pick {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #bbb;
    cursor: pointer;
}

    .spoof-exit-pick:hover {
        color: #fff;
        border-color: rgba(239, 68, 68, 0.45);
    }

.spoof-window {
    display: grid;
    grid-template-columns: 64px 1fr;
    min-height: 380px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #121214;
    overflow: hidden;
}

.spoof-rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px 0;
    background: #0e0e10;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.spoof-rail-ico {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: #777;
    font-size: 0.95rem;
}

    .spoof-rail-ico.is-active {
        background: #fff;
        color: #111;
    }

.spoof-rail-exit {
    margin-top: auto;
}

.spoof-main {
    padding: 22px 24px 20px;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

    .spoof-main h3 {
        margin: 0;
        font-family: 'Space Grotesk', sans-serif;
        font-size: 1.55rem;
        font-weight: 700;
        color: #fff;
    }

    .spoof-main > p {
        margin: 6px 0 16px;
        color: #8a8a8a;
        font-size: 0.88rem;
    }

.spoof-logs {
    flex: 1;
    min-height: 180px;
    border-radius: 12px;
    background: #0a0a0c;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.spoof-logs-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #666;
    margin-bottom: 8px;
}

.spoof-logs-body {
    flex: 1;
    overflow: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.78rem;
    line-height: 1.55;
    color: #cfcfcf;
}

.spoof-log-line {
    margin: 0 0 2px;
}

    .spoof-log-line.is-ok {
        color: #7dffb2;
    }

    .spoof-log-line.is-warn {
        color: #ffd27a;
    }

.spoof-run {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 16px;
    border: 0;
    border-radius: 12px;
    background: #fff;
    color: #111;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: transform .15s ease, opacity .15s ease;
}

    .spoof-run:hover:not(:disabled) {
        transform: translateY(-1px);
    }

    .spoof-run:disabled {
        opacity: 0.7;
        cursor: wait;
    }

@media (max-width: 700px) {
    .range-pick-grid {
        grid-template-columns: 1fr;
    }

    .spoof-window {
        grid-template-columns: 52px 1fr;
    }

    .spoof-main {
        padding: 16px;
    }
}

#range-error {
    position: absolute;
    left: 30px;
    bottom: 100px;
    color: #ff6b6b;
    font-size: 0.8rem;
}

/* touch devices can't pointer-lock — show a friendly note instead */
.range-touch-note {
    display: none;
}

.range-shell.is-touch .range-launch .range-menu,
.range-shell.is-touch .range-launch .range-keys {
    display: none;
}

.range-shell.is-touch .range-touch-note {
    display: block;
    margin-top: 24px;
    max-width: 420px;
    color: #9a9a9a;
    font-size: 0.85rem;
    line-height: 1.6;
}

    .range-shell.is-touch .range-touch-note b {
        color: var(--primary);
    }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
    .range-leaderboard {
        display: none;
    }

    .range-launch {
        padding: 20px;
    }

    .range-menu-item {
        font-size: 1.05rem;
        padding: 9px 12px;
    }

    .range-keys {
        left: 20px;
        right: 20px;
        font-size: 0.66rem;
    }

    .range-hud-keys {
        display: none;
    }

    #range-score {
        font-size: 2rem;
    }

    #range-ammo {
        font-size: 1.8rem;
    }

    .range-cm-body {
        grid-template-columns: 116px 1fr;
    }
}

@media (max-width: 600px) {
    .range-shell {
        aspect-ratio: 4 / 3;
        border-radius: 14px;
    }

    .range-brand-text strong {
        font-size: 1.1rem;
    }

    .range-keys {
        display: none;
    }
}

/* `hidden` must win over the display values set above, otherwise the
   launch screen / cheat menu stay on top and swallow clicks. */
.range-launch[hidden],
.range-cheatmenu[hidden],
.range-hud[hidden],
.range-pane[hidden],
.range-result[hidden] {
    display: none !important;
}

/* When the range section is the first thing on a page (the Free Trial page),
   it has to clear the fixed navbar itself — otherwise the eyebrow pill and
   heading slide underneath it. */
.range-section.is-page-top {
    padding-top: 150px;
}

@media (max-width: 768px) {
    .range-section.is-page-top {
        padding-top: 120px;
    }
}

@media (max-width: 480px) {
    .range-section.is-page-top {
        padding-top: 104px;
    }
}


/* Virex free-trial page chrome helpers */
.ft-page .container,
.range-section.container {
    width: min(1120px, calc(100% - 40px));
    margin-inline: auto;
}

.range-section .section-header {
    text-align: center;
    margin-bottom: 22px;
}

.range-section .section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(239,68,68,.35);
    background: rgba(239,68,68,.08);
    color: #fca5a5;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.range-section .section-header h2 {
    margin: 0 0 10px;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
}

.range-section .section-header p {
    margin: 0 auto;
    max-width: 520px;
    color: #9ca3af;
    line-height: 1.55;
}

.page-cta {
    position: relative;
    overflow: hidden;
    padding: 70px 20px 90px;
    text-align: center;
}

.page-cta-glow {
    position: absolute;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: min(900px, 115%);
    height: 400px;
    background: radial-gradient(ellipse at center, rgba(239,68,68,.14) 0%, rgba(239,68,68,.04) 45%, transparent 70%);
    filter: blur(20px);
    pointer-events: none;
}

.page-cta-inner {
    position: relative;
    max-width: 880px;
    margin: 0 auto;
}

.page-cta h2 {
    margin: 0;
    font-size: clamp(1.7rem, 4vw, 2.3rem);
    font-weight: 700;
    letter-spacing: -0.8px;
    color: #fff;
}

    .page-cta h2 span {
        color: var(--primary);
        text-shadow: 0 0 26px rgba(239,68,68,.4);
    }

.page-cta > .page-cta-inner > p {
    margin: 12px auto 30px;
    max-width: 480px;
    color: #8f8f8f;
    font-size: .97rem;
    line-height: 1.6;
}

.page-cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
}

.page-cta-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 26px 20px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.014) 100%);
    border: 1px solid rgba(255,255,255,.075);
    text-decoration: none;
    color: inherit;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

    .page-cta-card:hover,
    .page-cta-card:focus-visible {
        transform: translateY(-4px);
        border-color: rgba(239,68,68,.45);
        box-shadow: 0 16px 38px rgba(0,0,0,.45), 0 0 28px rgba(239,68,68,.14);
        outline: none;
    }

.page-cta-ico {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: rgba(239,68,68,.11);
    border: 1px solid rgba(239,68,68,.28);
    color: var(--primary);
    font-size: 1.15rem;
    margin-bottom: 4px;
}

.page-cta-card strong {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
}

.page-cta-card em {
    color: #8f8f8f;
    font-size: .84rem;
    font-style: normal;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .page-cta {
        padding: 50px 18px 60px;
    }

    .page-cta-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.range-pick[hidden],
.range-spoof[hidden] {
    display: none !important;
}
