/*
Theme Name: CSNADES
Theme URI: http://csnades.local
Author: CSNADES
Description: Counter-Strike inspired training theme for CS Nades.
Version: 1.1.6
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
Text Domain: csnades
*/

:root {
    color-scheme: dark;
    --bg: #151b18;
    --panel: #46543f;
    --panel-strong: #53634a;
    --ink: #eef0e6;
    --muted: #c4cbb9;
    --line: #7c8872;
    --line-soft: rgba(190, 202, 174, 0.26);
    --classic-border: rgba(124, 136, 114, 0.52);
    --classic-border-strong: rgba(126, 138, 114, 0.68);
    --classic-separator: rgba(190, 202, 174, 0.13);
    --amber: #f3c247;
    --green: #8ea65c;
    --red: #cf5f45;
    --blue: #5f8da8;
    --shadow: rgba(0, 0, 0, 0.46);
    --classic-hi: rgba(232, 239, 220, 0.18);
    --classic-lo: rgba(0, 0, 0, 0.42);
    --classic-face: rgba(70, 84, 63, 0.86);
    --classic-face-dark: rgba(45, 57, 42, 0.88);
    --home-bg-opacity: 0.6;
    --home-bg-overlay-opacity: 0.72;
    --mono: "Lucida Console", "Courier New", monospace;
    --ui: Tahoma, Verdana, Arial, sans-serif;
    --header-height: 58px;
    --shell-width: 1320px;
    --shell-gutter: 32px;
    --layout-gap: 10px;
    --tools-sticky-gap: 12px;
    --tools-sticky-space: 90px;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    min-height: 100%;
    background: var(--bg);
    scroll-behavior: smooth;
}

body {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 82% 16%, rgba(65, 78, 116, 0.28), transparent 34%),
        radial-gradient(circle at 70% 42%, rgba(210, 220, 72, 0.08), transparent 26%),
        linear-gradient(135deg, #0e151b 0%, #1a251d 42%, #111711 100%);
    color: var(--ink);
    font-family: var(--ui);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: url("assets/images/home-hero-bg.jpg") right bottom / 75% auto no-repeat;
    filter: grayscale(1) contrast(0.95) brightness(0.62);
    opacity: var(--home-bg-opacity);
    z-index: 0;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 76% 28%, transparent 0 24%, rgba(0, 0, 0, 0.38) 76%),
        linear-gradient(90deg, rgba(14, 21, 27, 0.66), rgba(14, 19, 14, 0.34) 48%, rgba(5, 7, 7, 0.72)),
        repeating-linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0.018),
            rgba(255, 255, 255, 0.018) 1px,
            transparent 1px,
            transparent 5px
        );
    opacity: var(--home-bg-overlay-opacity);
    z-index: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

.hud-bar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr);
    align-items: center;
    gap: 18px;
    min-height: 58px;
    padding: 10px clamp(16px, 4vw, 42px);
    border-bottom: 1px solid var(--line);
    background: rgba(48, 60, 44, 0.88);
    box-shadow:
        inset 0 1px 0 var(--classic-hi),
        inset 0 -1px 0 var(--classic-lo),
        0 14px 32px rgba(0, 0, 0, 0.44);
    backdrop-filter: blur(8px);
}

.brand,
.map-nav button,
.map-nav a {
    font-family: var(--mono);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: max-content;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--ink);
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 30px;
    border: 1px solid rgba(126, 138, 114, 0.9);
    background: #3f4d38;
    color: var(--amber);
    box-shadow:
        inset 1px 1px 0 var(--classic-hi),
        inset -1px -1px 0 var(--classic-lo);
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    grid-column: 3;
    min-width: 0;
}

.theme-toggle {
    --toggle-x: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid var(--classic-border);
    background: rgba(46, 58, 42, 0.72);
    color: rgba(184, 176, 145, 0.78);
    cursor: pointer;
    font-family: var(--mono);
    font-size: 10px;
    line-height: 1;
    text-transform: uppercase;
    transition:
        border-color 140ms ease,
        background 140ms ease,
        color 140ms ease;
}

.theme-toggle__label {
    min-width: 42px;
    color: rgba(184, 176, 145, 0.56);
    transition: color 140ms ease;
}

.theme-toggle__label--classic {
    text-align: right;
}

.theme-toggle__label--dark {
    text-align: left;
}

.theme-toggle__label.is-active {
    color: var(--amber);
}

.theme-toggle__track {
    position: relative;
    flex: 0 0 auto;
    width: 38px;
    height: 18px;
    border: 1px solid var(--classic-border);
    border-radius: 999px;
    background: rgba(16, 22, 16, 0.72);
    box-shadow:
        inset 1px 1px 0 rgba(0, 0, 0, 0.38),
        inset -1px -1px 0 rgba(255, 255, 255, 0.05);
}

.theme-toggle__thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--amber);
    box-shadow:
        0 0 8px rgba(243, 194, 71, 0.36),
        0 1px 2px rgba(0, 0, 0, 0.42);
    transform: translateX(var(--toggle-x));
    transition:
        transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
        background 140ms ease,
        box-shadow 140ms ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
    border-color: rgba(243, 194, 71, 0.72);
    background: rgba(67, 80, 60, 0.82);
    color: var(--amber);
    outline: none;
}

.theme-toggle[aria-pressed="true"] {
    --toggle-x: 20px;
    border-color: rgba(95, 141, 168, 0.58);
    color: rgba(241, 234, 210, 0.84);
}

.theme-toggle[aria-pressed="true"] .theme-toggle__thumb {
    background: #d7dae0;
    box-shadow:
        0 0 8px rgba(215, 218, 224, 0.28),
        0 1px 2px rgba(0, 0, 0, 0.42);
}

.map-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    grid-column: 2;
}

.map-nav button,
.map-nav a {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 92px;
    min-height: 36px;
    padding: 0 10px;
    border: 1px solid var(--classic-border);
    background: rgba(63, 76, 57, 0.78);
    color: var(--muted);
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    text-transform: uppercase;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.28);
}

.map-icon {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    object-fit: contain;
    opacity: 0.95;
    filter: drop-shadow(1px 1px 0 #000);
    image-rendering: auto;
}

.map-nav button:hover,
.map-nav button:focus-visible,
.map-nav button.is-active,
.map-nav a:hover,
.map-nav a:focus-visible {
    border-color: var(--amber);
    background: rgba(76, 89, 67, 0.86);
    color: var(--ink);
    outline: none;
}

.map-nav button.is-active {
    box-shadow:
        inset 0 -2px 0 rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(243, 194, 71, 0.18);
}

.map-nav button.is-empty,
.map-nav a.is-empty {
    border-color: rgba(120, 124, 112, 0.44);
    background: rgba(49, 61, 46, 0.58);
    color: rgba(184, 184, 174, 0.54);
}

.map-nav button.is-empty .map-icon,
.map-nav a.is-empty .map-icon {
    opacity: 0.46;
    filter: grayscale(1) contrast(0.82) drop-shadow(1px 1px 0 #000);
}

.map-nav button.is-empty:hover,
.map-nav button.is-empty:focus-visible,
.map-nav a.is-empty:hover,
.map-nav a.is-empty:focus-visible {
    border-color: rgba(170, 174, 156, 0.72);
    background: rgba(63, 76, 57, 0.72);
    color: rgba(232, 232, 218, 0.78);
}

.map-nav button.is-empty:hover .map-icon,
.map-nav button.is-empty:focus-visible .map-icon,
.map-nav a.is-empty:hover .map-icon,
.map-nav a.is-empty:focus-visible .map-icon {
    opacity: 0.68;
}

.map-nav button.is-empty.is-active,
.map-nav a.is-empty.is-active {
    border-color: rgba(170, 174, 156, 0.74);
    background: rgba(67, 80, 60, 0.76);
    color: rgba(232, 232, 218, 0.82);
    box-shadow:
        inset 0 -2px 0 rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(170, 174, 156, 0.14);
}

.map-nav button:active {
    transform: translateY(1px);
    box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.32);
}

.map-nav a:active {
    transform: translateY(1px);
    box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.32);
}

html.theme-clean {
    --bg: #0b0c10;
    --panel: #17181d;
    --panel-strong: #202126;
    --ink: #f5f5f7;
    --muted: #a7a8b0;
    --line: #3a3b42;
    --line-soft: rgba(255, 255, 255, 0.12);
    --shadow: rgba(0, 0, 0, 0.34);
    --classic-hi: rgba(255, 255, 255, 0.08);
    --classic-lo: rgba(0, 0, 0, 0.28);
    --classic-face: rgba(19, 20, 24, 0.82);
    --classic-face-dark: rgba(12, 13, 16, 0.86);
    --home-bg-opacity: 0.6;
    --home-bg-overlay-opacity: 0.8;
}

html.theme-clean body {
    background:
        radial-gradient(circle at 50% -18%, rgba(116, 119, 128, 0.18), transparent 42%),
        linear-gradient(180deg, #101115 0%, #0b0c10 100%);
}

html.theme-clean body::before {
    display: block;
    filter: grayscale(1) contrast(0.9) brightness(0.52);
}

html.theme-clean .hud-bar,
html.theme-clean .map-console,
html.theme-clean .console-aside,
html.theme-clean .page-console {
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

html.theme-clean .site-footer {
    border-top-color: rgba(255, 255, 255, 0.1);
    background: rgba(22, 23, 27, 0.84);
    box-shadow: 0 -18px 48px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(16px) saturate(1.2);
}

html.theme-clean .hud-bar {
    border-bottom-color: rgba(255, 255, 255, 0.1);
    background: rgba(22, 23, 27, 0.84);
    backdrop-filter: blur(16px) saturate(1.2);
}

html.theme-clean .console-aside,
html.theme-clean .aside-panel,
html.theme-clean .map-console,
html.theme-clean .profile-check input,
html.theme-clean .service-link,
html.theme-clean .page-console {
    background: rgba(19, 20, 24, 0.78);
}

html.theme-clean .map-nav button,
html.theme-clean .map-nav a,
html.theme-clean .grenade-filter,
html.theme-clean .utility-card,
html.theme-clean .card-video,
html.theme-clean .screenshot-thumb,
html.theme-clean .profile-check input,
html.theme-clean .service-link {
    background-image: none;
}

html.theme-clean .map-console,
html.theme-clean .console-top,
html.theme-clean .console-aside,
html.theme-clean .console-spoiler {
    border-color: rgba(255, 255, 255, 0.12);
}

html.theme-clean .brand-mark,
html.theme-clean .map-nav button,
html.theme-clean .map-nav a,
html.theme-clean .theme-toggle,
html.theme-clean .theme-toggle__track,
html.theme-clean .console-spoiler,
html.theme-clean .aside-close,
html.theme-clean .profile-check > button,
html.theme-clean .grenade-filter,
html.theme-clean .service-link {
    border-color: rgba(255, 255, 255, 0.12);
    background-color: rgba(32, 33, 38, 0.78);
}

html.theme-clean .brand-mark {
    background: rgba(37, 38, 44, 0.84);
}

html.theme-clean .map-nav button:hover,
html.theme-clean .map-nav button:focus-visible,
html.theme-clean .map-nav button.is-active,
html.theme-clean .map-nav a:hover,
html.theme-clean .map-nav a:focus-visible,
html.theme-clean .theme-toggle:hover,
html.theme-clean .theme-toggle:focus-visible {
    border-color: rgba(243, 194, 71, 0.72);
    background-color: rgba(42, 43, 49, 0.92);
}

html.theme-clean .map-nav button.is-empty,
html.theme-clean .map-nav a.is-empty {
    border-color: rgba(255, 255, 255, 0.08);
    background-color: rgba(25, 26, 30, 0.66);
    color: rgba(167, 168, 176, 0.58);
}

html.theme-clean .console-top {
    background: rgba(15, 16, 20, 0.72);
}

html.theme-clean .aside-panel {
    background:
        linear-gradient(180deg, rgba(23, 24, 29, 0.82), rgba(14, 15, 19, 0.86));
}

html.theme-clean .utility-card {
    background: rgba(23, 24, 29, 0.78);
    box-shadow: none;
}

html.theme-clean .card-video,
html.theme-clean .screenshot-thumb,
html.theme-clean .profile-check input {
    background-color: rgba(8, 9, 12, 0.82);
}

html.theme-clean .profile-check input:focus {
    border-color: rgba(243, 194, 71, 0.7);
    box-shadow: 0 0 0 1px rgba(243, 194, 71, 0.14);
}

html.theme-clean .footer-dot {
    border-color: rgba(95, 141, 168, 0.9);
    background: var(--blue);
    box-shadow: 0 0 8px rgba(95, 141, 168, 0.56);
}

.site-shell {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    width: min(var(--shell-width), calc(100% - var(--shell-gutter)));
    margin: 0 auto;
    padding: 12px 0 12px;
}

.console-layout {
    display: flex;
    align-items: stretch;
    flex: 1 1 auto;
    gap: var(--layout-gap);
    min-width: 0;
    margin-top: 0;
}

.tools-drawer {
    position: sticky;
    top: calc(var(--header-height) + var(--tools-sticky-gap));
    display: flex;
    align-items: stretch;
    align-self: stretch;
    flex: 0 0 auto;
    height: auto;
    min-height: 0;
    max-height: none;
    min-width: 0;
    z-index: 7;
}

.console-spoiler {
    display: grid;
    place-items: center;
    flex: 0 0 22px;
    width: 22px;
    height: 100%;
    min-height: 0;
    padding: 0;
    border: 1px solid var(--classic-border-strong);
    background: var(--classic-face-dark);
    box-shadow:
        inset 1px 1px 0 var(--classic-hi),
        inset -1px -1px 0 var(--classic-lo);
    color: rgba(184, 176, 145, 0.82);
    cursor: pointer;
    font-family: var(--mono);
    font-size: 14px;
    line-height: 1;
    transition:
        flex-basis 220ms ease,
        width 220ms ease,
        border-color 160ms ease,
        color 160ms ease,
        background 160ms ease;
}

.console-spoiler:hover,
.console-spoiler:focus-visible {
    border-color: rgba(243, 194, 71, 0.72);
    background: rgba(76, 89, 67, 0.95);
    color: var(--amber);
    outline: none;
}

.console-spoiler span {
    transition: transform 180ms ease;
}

.console-aside {
    flex: 0 0 0;
    width: 0;
    height: 100%;
    max-height: 100%;
    min-width: 0;
    overflow: hidden;
    border: 1px solid transparent;
    transition:
        flex-basis 240ms ease,
        width 240ms ease,
        min-width 240ms ease,
        max-width 240ms ease,
        border-color 160ms ease;
}

.console-layout.is-aside-open .console-aside {
    flex: 0 0 260px;
    width: 260px;
    border-color: rgba(124, 136, 114, 0.26);
}

.aside-panel {
    width: 260px;
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 12px;
    background: linear-gradient(180deg, var(--classic-face), var(--classic-face-dark));
    font-family: var(--mono);
    scrollbar-width: thin;
    text-transform: uppercase;
}

.aside-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--classic-separator);
}

.aside-title {
    color: var(--amber);
    font-size: 12px;
    line-height: 1;
}

.aside-close {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 1px solid var(--classic-border);
    background: rgba(5, 7, 5, 0.38);
    color: rgba(184, 176, 145, 0.82);
    cursor: pointer;
    font-family: var(--mono);
    font-size: 17px;
    line-height: 1;
    transition:
        border-color 140ms ease,
        color 140ms ease,
        background 140ms ease;
}

.aside-close:hover,
.aside-close:focus-visible {
    border-color: rgba(243, 194, 71, 0.72);
    background: rgba(32, 36, 25, 0.72);
    color: var(--amber);
    outline: none;
}

.aside-close span {
    transform-origin: center;
}

.aside-close.is-spinning span {
    animation: close-spin 420ms cubic-bezier(0.32, 0, 0.2, 1) both;
}

@keyframes close-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(180deg);
    }
}

.profile-check {
    display: grid;
    gap: 8px;
    text-transform: none;
}

.profile-check-label,
.tool-label {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--amber);
    font-size: 11px;
    line-height: 1;
}

.tool-label {
    margin-bottom: 8px;
}

.profile-check-icon {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    filter:
        drop-shadow(1px 1px 0 rgba(0, 0, 0, 0.82));
    opacity: 0.9;
}

.profile-check-fields {
    display: grid;
    gap: 6px;
}

.profile-check-row {
    display: grid;
    --player-color: rgba(124, 136, 114, 0.7);
    --player-color-strong: rgba(126, 138, 114, 0.82);
    grid-template-columns: 9px minmax(0, 1fr);
    align-items: center;
    gap: 6px;
    max-height: 34px;
    opacity: 1;
    overflow: hidden;
    transition:
        max-height 180ms ease,
        opacity 160ms ease,
        transform 180ms ease;
}

.profile-check-row[data-player-index="0"] {
    --player-color: rgba(142, 166, 92, 0.9);
    --player-color-strong: #a9c86c;
}

.profile-check-row[data-player-index="1"] {
    --player-color: rgba(243, 194, 71, 0.9);
    --player-color-strong: #ffd866;
}

.profile-check-row[data-player-index="2"] {
    --player-color: rgba(217, 133, 50, 0.9);
    --player-color-strong: #f59a3d;
}

.profile-check-row[data-player-index="3"] {
    --player-color: rgba(155, 110, 214, 0.9);
    --player-color-strong: #b987ff;
}

.profile-check-row[data-player-index="4"] {
    --player-color: rgba(95, 141, 168, 0.9);
    --player-color-strong: #79bce0;
}

.profile-input-shell {
    position: relative;
    display: block;
    min-width: 0;
}

.profile-check-row.is-entering,
.profile-check-row.is-removing {
    max-height: 0;
    opacity: 0;
    transform: translateX(-8px);
}

.profile-player-dot {
    width: 7px;
    height: 7px;
    border: 1px solid var(--player-color);
    background: var(--player-color);
    opacity: 0.88;
    box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.72);
    transition:
        background 140ms ease,
        border-color 140ms ease,
        box-shadow 140ms ease;
}

.profile-check-row.has-value .profile-player-dot {
    border-color: var(--player-color-strong);
    background: var(--player-color-strong);
    opacity: 1;
}

.profile-check-row[data-player-index="0"].has-value .profile-player-dot {
    box-shadow: 0 0 7px rgba(142, 166, 92, 0.7);
}

.profile-check-row[data-player-index="1"].has-value .profile-player-dot {
    box-shadow: 0 0 7px rgba(243, 194, 71, 0.7);
}

.profile-check-row[data-player-index="2"].has-value .profile-player-dot {
    box-shadow: 0 0 7px rgba(217, 133, 50, 0.7);
}

.profile-check-row[data-player-index="3"].has-value .profile-player-dot {
    box-shadow: 0 0 7px rgba(155, 110, 214, 0.7);
}

.profile-check-row[data-player-index="4"].has-value .profile-player-dot {
    box-shadow: 0 0 7px rgba(95, 141, 168, 0.7);
}

.profile-check input {
    width: 100%;
    min-height: 34px;
    padding: 0 25px 0 9px;
    border: 1px solid var(--classic-border-strong);
    background: rgba(37, 47, 35, 0.92);
    color: rgba(241, 234, 210, 0.92);
    font-family: var(--mono);
    font-size: 11px;
    outline: none;
    text-align: left;
    text-transform: none;
    box-shadow:
        inset 1px 1px 0 rgba(0, 0, 0, 0.72),
        inset -1px -1px 0 rgba(255, 255, 255, 0.035);
    transition:
        border-color 140ms ease,
        box-shadow 140ms ease;
}

.profile-check input::placeholder {
    color: rgba(184, 176, 145, 0.42);
}

.profile-check input:focus {
    border-color: rgba(243, 194, 71, 0.72);
    box-shadow:
        inset 1px 1px 0 rgba(0, 0, 0, 0.72),
        0 0 0 1px rgba(243, 194, 71, 0.16);
}

.profile-clear {
    position: absolute;
    top: 1px;
    right: 1px;
    display: grid;
    place-items: center;
    width: 24px;
    height: 32px;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(241, 234, 210, 0.62);
    cursor: pointer;
    font-family: var(--mono);
    font-size: 13px;
    line-height: 1;
}

.profile-clear[hidden] {
    display: none;
}

.profile-clear:hover,
.profile-clear:focus-visible {
    color: rgba(241, 234, 210, 0.92);
    outline: none;
}

.profile-check > button {
    min-height: 34px;
    padding: 0;
    border: 1px solid var(--classic-border-strong);
    background: rgba(63, 76, 57, 0.86);
    color: rgba(184, 176, 145, 0.82);
    cursor: pointer;
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    transition:
        border-color 140ms ease,
        color 140ms ease,
        background 140ms ease;
}

.profile-check > button:hover,
.profile-check > button:focus-visible {
    border-color: rgba(243, 194, 71, 0.72);
    background: rgba(78, 92, 68, 0.94);
    color: var(--amber);
    outline: none;
}

.services-tool {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--classic-separator);
}

.service-links {
    display: grid;
    gap: 5px;
}

.service-link {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-height: 28px;
    padding: 5px 7px;
    border: 1px solid var(--classic-border);
    background: rgba(42, 53, 39, 0.72);
    color: rgba(241, 234, 210, 0.72);
    font-family: var(--mono);
    font-size: 10px;
    line-height: 1;
    text-transform: none;
    transition:
        border-color 140ms ease,
        color 140ms ease,
        background 140ms ease;
}

.service-link img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    filter: drop-shadow(1px 1px 0 rgba(0, 0, 0, 0.82));
}

.service-link span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.service-link:hover,
.service-link:focus-visible {
    border-color: rgba(243, 194, 71, 0.7);
    background: rgba(64, 77, 58, 0.9);
    color: var(--amber);
    outline: none;
}

.map-console {
    display: flex;
    order: 2;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    margin-top: 0;
    border: 1px solid var(--classic-border-strong);
    background: linear-gradient(180deg, var(--classic-face), var(--classic-face-dark));
    box-shadow:
        0 24px 60px var(--shadow),
        inset 1px 1px 0 var(--classic-hi),
        inset -1px -1px 0 var(--classic-lo);
}

.map-panel {
    flex: 1 1 auto;
    min-height: 260px;
}

.map-panel[hidden] {
    display: none !important;
}

.map-panel.is-active {
    display: flex;
    flex-direction: column;
}

.map-panel-loader {
    display: grid;
    place-items: center;
    min-height: 260px;
    color: rgba(184, 176, 145, 0.7);
    font-family: var(--mono);
    font-size: 12px;
    text-transform: uppercase;
}

.console-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 40px;
    padding: 11px 14px;
    border-bottom: 1px solid var(--classic-border-strong);
    background: rgba(53, 65, 49, 0.86);
    color: var(--amber);
    font-family: var(--mono);
    font-size: 12px;
    text-transform: uppercase;
}

.console-controls {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 12px;
    min-width: 0;
}

.console-map {
    flex: 0 0 auto;
    color: var(--amber);
    text-transform: lowercase;
}

.console-map-action {
    flex: 0 0 auto;
}

.console-map-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: rgba(184, 176, 145, 0.72);
    transition: color 140ms ease;
}

.console-map-link:hover,
.console-map-link:focus-visible {
    color: var(--amber);
    outline: none;
}

.console-map-icon {
    display: inline-block;
    position: relative;
    width: 23px;
    height: 23px;
    background: url("assets/ui/radar-cs16.svg") center / contain no-repeat;
    filter:
        drop-shadow(1px 1px 0 rgba(0, 0, 0, 0.82));
    opacity: 0.78;
    transition:
        filter 140ms ease,
        opacity 140ms ease;
}

.console-map-icon::before,
.console-map-icon::after {
    content: "";
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(241, 234, 210, 0.9);
    box-shadow: 0 0 4px rgba(241, 234, 210, 0.52);
    opacity: 0;
    animation: radar-contact 3.8s ease-in-out infinite;
}

.console-map-icon::before {
    top: 7px;
    left: 13px;
}

.console-map-icon::after {
    right: 7px;
    bottom: 8px;
    animation-delay: 1.7s;
}

.console-map-link:hover .console-map-icon,
.console-map-link:focus-visible .console-map-icon {
    opacity: 1;
    filter:
        drop-shadow(0 0 4px rgba(0, 214, 0, 0.38))
        drop-shadow(1px 1px 0 rgba(0, 0, 0, 0.82));
}

@keyframes radar-contact {
    0%,
    38%,
    100% {
        opacity: 0;
        transform: scale(0.72);
    }

    48%,
    70% {
        opacity: 0.78;
        transform: scale(1);
    }
}

.console-count {
    flex: 0 0 auto;
    margin-left: auto;
    color: rgba(184, 176, 145, 0.72);
}

.grenade-filters {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 0 1 auto;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.grenade-filter {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 26px;
    padding: 3px 7px;
    border: 1px solid var(--classic-border);
    background: rgba(18, 21, 14, 0.62);
    color: rgba(184, 176, 145, 0.72);
    cursor: pointer;
    user-select: none;
    transition:
        border-color 140ms ease,
        background 140ms ease,
        color 140ms ease;
}

.grenade-filter:has(.grenade-filter__input:checked) {
    border-color: rgba(243, 194, 71, 0.62);
    background: rgba(32, 36, 25, 0.76);
    color: rgba(241, 234, 210, 0.92);
}

.grenade-filter:hover {
    border-color: rgba(243, 194, 71, 0.72);
}

.grenade-filter__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.grenade-filter__check {
    width: 11px;
    height: 11px;
    border: 1px solid rgba(184, 176, 145, 0.58);
    background: rgba(5, 7, 5, 0.72);
    box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.04);
}

.grenade-filter__input:checked ~ .grenade-filter__check {
    border-color: rgba(243, 194, 71, 0.86);
    background:
        linear-gradient(135deg, transparent 42%, rgba(243, 194, 71, 0.95) 42%, rgba(243, 194, 71, 0.95) 58%, transparent 58%),
        rgba(37, 34, 18, 0.92);
}

.grenade-filter__icon {
    width: 21px;
    height: 21px;
    object-fit: contain;
    opacity: 0.34;
    filter:
        grayscale(1)
        drop-shadow(1px 1px 0 rgba(0, 0, 0, 0.8));
    transition:
        filter 140ms ease,
        opacity 140ms ease,
        transform 140ms ease;
}

.grenade-filter__input:checked ~ .grenade-filter__icon {
    opacity: 1;
    filter:
        drop-shadow(1px 0 0 rgba(241, 234, 210, 0.28))
        drop-shadow(-1px 0 0 rgba(241, 234, 210, 0.28))
        drop-shadow(0 1px 0 rgba(241, 234, 210, 0.28))
        drop-shadow(0 -1px 0 rgba(241, 234, 210, 0.28))
        drop-shadow(1px 1px 0 rgba(0, 0, 0, 0.82));
}

.grenade-filter:hover .grenade-filter__icon {
    transform: translateY(-1px);
}

.grenade-filter__label {
    white-space: nowrap;
}

.grenade-filter__count {
    margin-left: -5px;
    color: rgba(243, 194, 71, 0.62);
    font-size: 10px;
    white-space: nowrap;
}

.grenade-filter__input:not(:checked) ~ .grenade-filter__label {
    color: rgba(184, 176, 145, 0.46);
}

.grenade-filter__input:not(:checked) ~ .grenade-filter__count {
    color: rgba(184, 176, 145, 0.38);
}

.grenade-filters-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    place-items: center;
    flex: 0 0 auto;
    width: 30px;
    height: 26px;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(243, 194, 71, 0.82);
    cursor: pointer;
    transition:
        color 140ms ease,
        transform 140ms ease;
}

.grenade-filters-reset svg {
    display: block;
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.35;
    stroke-linecap: round;
    stroke-linejoin: miter;
    filter: drop-shadow(1px 1px 0 rgba(0, 0, 0, 0.82));
    transform-origin: 50% 50%;
}

.grenade-filters-reset:hover,
.grenade-filters-reset:focus-visible {
    color: var(--amber);
    outline: none;
}

.grenade-filters-reset:active {
    transform: translateY(1px);
}

.grenade-filters-reset.is-spinning svg {
    animation: reload-spin 640ms cubic-bezier(0.34, 0, 0.18, 1) both;
}

@keyframes reload-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .grenade-filters-reset.is-spinning svg {
        animation-duration: 1ms;
    }
}

.cards-grid {
    display: grid;
    flex: 1 1 auto;
    grid-template-columns: repeat(auto-fill, minmax(258px, 276px));
    justify-content: start;
    align-content: start;
    gap: 12px;
    padding: 12px;
}

.utility-card {
    display: grid;
    grid-template-rows: auto auto 1fr;
    min-height: 0;
    padding: 9px;
    border: 1px solid var(--line-soft);
    background: rgba(21, 24, 16, 0.84);
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.3);
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.utility-card[hidden],
.utility-card.is-filtered-out {
    display: none !important;
}

.utility-card.is-linked {
    border-color: rgba(243, 194, 71, 0.76);
    box-shadow:
        inset 0 -2px 0 rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(243, 194, 71, 0.24),
        0 0 18px rgba(243, 194, 71, 0.13);
}

.card-gallery {
    position: relative;
}

.grenade-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 4;
    width: 44px;
    height: 44px;
    filter:
        drop-shadow(1px 0 0 rgba(241, 234, 210, 0.35))
        drop-shadow(-1px 0 0 rgba(241, 234, 210, 0.35))
        drop-shadow(0 1px 0 rgba(241, 234, 210, 0.35))
        drop-shadow(0 -1px 0 rgba(241, 234, 210, 0.35))
        drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.76));
    object-fit: contain;
}

.card-video {
    position: relative;
    display: grid;
    place-items: center;
    z-index: 1;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--line-soft);
    background: #20281f;
    color: rgba(184, 176, 145, 0.52);
    font-family: var(--mono);
    font-size: 12px;
    text-transform: uppercase;
    overflow: hidden;
    transition:
        border-color 140ms ease,
        box-shadow 140ms ease;
}

.card-video video {
    position: relative;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.card-video.is-video:hover,
.card-video.is-video:focus-visible {
    border-color: rgba(243, 194, 71, 0.72);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.32),
        0 0 12px rgba(241, 234, 210, 0.06);
}

.card-video.is-video:focus-visible {
    outline: none;
}

.card-video.is-video::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 46%, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, 0.26) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.2));
    opacity: 0.46;
    transition: opacity 160ms ease;
}

.card-video.is-video:hover::after,
.card-video.is-video:focus-visible::after {
    opacity: 0.24;
}

.media-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 32px;
    height: 32px;
    padding: 0;
    z-index: 4;
    pointer-events: none;
    border: 0;
    border-radius: 50%;
    background: rgba(241, 234, 210, 0.3);
    box-shadow:
        inset 0 0 0 1px rgba(241, 234, 210, 0.28),
        0 3px 9px rgba(0, 0, 0, 0.4);
    color: transparent;
    font-size: 0;
    line-height: 1;
    opacity: 0.94;
    transform: translate(-50%, -50%);
    backdrop-filter: blur(2px);
    transition:
        background 160ms ease,
        box-shadow 160ms ease,
        opacity 160ms ease,
        transform 160ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.media-play::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 10px solid rgba(255, 255, 255, 0.96);
    filter: none;
    transition: border-left-color 160ms ease;
    transform: translate(-36%, -50%);
}

.card-video.is-video:hover .media-play,
.card-video.is-video:focus-visible .media-play {
    opacity: 1;
    background: rgba(241, 234, 210, 0.42);
    box-shadow:
        inset 0 0 0 1px rgba(241, 234, 210, 0.34),
        0 4px 12px rgba(0, 0, 0, 0.46);
    transform: translate(-50%, -50%) scale(1.06);
}

.card-video.is-video:hover .media-play::before,
.card-video.is-video:focus-visible .media-play::before {
    border-left-color: rgba(255, 255, 255, 0.96);
}

.screenshot-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    margin-top: 5px;
}

.screenshot-thumb {
    appearance: none;
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    width: 100%;
    padding: 0;
    border: 1px solid var(--line-soft);
    background: rgba(10, 13, 8, 0.86);
    cursor: pointer;
    overflow: hidden;
    z-index: 1;
    transition:
        border-color 140ms ease,
        box-shadow 140ms ease;
}

.screenshot-thumb:hover,
.screenshot-thumb:focus-visible {
    border-color: rgba(243, 194, 71, 0.72);
    z-index: 2;
    box-shadow: 0 0 0 1px rgba(243, 194, 71, 0.12);
    outline: none;
}

.screenshot-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.screenshot-thumb.is-empty {
    cursor: default;
    opacity: 0.54;
}

.card-details {
    display: grid;
    gap: 0;
    margin: 12px 0 0;
    font-family: var(--mono);
}

.card-details div {
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 8px;
    padding: 6px 0;
    border-top: 1px solid var(--classic-separator);
}

.card-details dt,
.card-details dd {
    margin: 0;
    font-size: 11px;
    line-height: 1.35;
}

.card-details dt {
    color: var(--green);
    text-transform: uppercase;
}

.card-details dd {
    color: var(--muted);
}

.card-actions {
    display: flex;
    justify-content: flex-end;
    align-self: end;
    margin-top: auto;
    padding-top: 9px;
}

.nade-share {
    appearance: none;
    display: inline-grid;
    grid-template-areas: "stack";
    place-items: center;
    min-width: 48px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(184, 176, 145, 0.62);
    cursor: pointer;
    line-height: 1;
    transition:
        color 140ms ease,
        opacity 140ms ease;
}

.nade-share svg {
    grid-area: stack;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity 130ms ease,
        transform 130ms ease;
}

.nade-share span {
    grid-area: stack;
    color: var(--amber);
    font-family: var(--mono);
    font-size: 10px;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    text-transform: uppercase;
    transform: translateY(4px);
    transition:
        opacity 130ms ease,
        transform 130ms ease;
}

.nade-share:hover,
.nade-share:focus-visible {
    color: rgba(241, 234, 210, 0.9);
    outline: none;
}

.nade-share.is-copied {
    color: var(--amber);
}

.nade-share.is-copied svg {
    opacity: 0;
    transform: translateY(-4px);
}

.nade-share.is-copied span {
    opacity: 1;
    transform: translateY(0);
}

.nade-share.is-failed {
    color: var(--red);
}

.empty-console {
    margin: 0;
    padding: clamp(24px, 4vw, 42px);
    font-family: var(--mono);
    color: rgba(184, 176, 145, 0.68);
    font-size: 12px;
    text-transform: uppercase;
}

.page-shell {
    justify-content: center;
}

.page-console {
    border: 1px solid var(--classic-border-strong);
    background: linear-gradient(180deg, var(--classic-face), var(--classic-face-dark));
    box-shadow:
        0 24px 60px var(--shadow),
        inset 1px 1px 0 var(--classic-hi),
        inset -1px -1px 0 var(--classic-lo);
}

.page-content {
    max-width: 860px;
    padding: clamp(20px, 3vw, 34px);
    color: rgba(241, 234, 210, 0.88);
    font-size: 15px;
    line-height: 1.7;
}

.page-content > *:first-child {
    margin-top: 0;
}

.page-content > *:last-child {
    margin-bottom: 0;
}

.page-content h2,
.page-content h3 {
    color: var(--amber);
    font-family: var(--mono);
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.page-content a {
    color: var(--amber);
}

.page-content a:hover,
.page-content a:focus-visible {
    color: var(--ink);
    outline: none;
}

.page-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 clamp(20px, 3vw, 34px) clamp(20px, 3vw, 34px);
    font-family: var(--mono);
}

.page-actions a,
.page-actions button {
    appearance: none;
    display: inline-grid;
    place-items: center;
    min-height: 30px;
    padding: 0 12px;
    border: 1px solid var(--classic-border);
    background: rgba(63, 76, 57, 0.78);
    color: rgba(241, 234, 210, 0.76);
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    line-height: 1;
    text-transform: uppercase;
    transition:
        border-color 140ms ease,
        color 140ms ease,
        background 140ms ease;
}

.page-actions a:hover,
.page-actions a:focus-visible,
.page-actions button:hover,
.page-actions button:focus-visible {
    border-color: rgba(243, 194, 71, 0.72);
    background: rgba(78, 92, 68, 0.94);
    color: var(--amber);
    outline: none;
}

.pswp-video-slide {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.pswp-video-frame {
    position: relative;
    display: grid;
    width: 100%;
    height: 100%;
}

.pswp-video-frame video {
    grid-area: 1 / 1;
    width: 100%;
    height: 100%;
    background: #050604;
    object-fit: contain;
    pointer-events: auto;
}

.video-keys-hint {
    max-width: min(88%, 780px);
    color: #fff;
    font-family: var(--ui);
    font-size: clamp(18px, 2.2vw, 34px);
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    text-shadow:
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000,
        2px 2px 0 #000,
        0 4px 10px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    text-transform: none;
    z-index: 2;
}

.video-keys-hint {
    align-self: end;
    justify-self: center;
    grid-area: 1 / 1;
    margin-bottom: clamp(72px, 8vh, 108px);
}

.pswp-video-controls {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    pointer-events: auto;
}

.pswp-video-autoplay,
.pswp-video-share {
    appearance: none;
    display: inline-grid;
    place-items: center;
    min-height: 28px;
    border: 0;
    background: transparent;
    color: rgba(184, 176, 145, 0.72);
    cursor: pointer;
    font-family: var(--mono);
    font-size: 10px;
    line-height: 1;
    text-transform: uppercase;
    transition:
        color 140ms ease,
        opacity 140ms ease;
}

.pswp-video-autoplay {
    min-width: 54px;
    padding: 0 4px;
}

.pswp-video-share {
    grid-template-areas: "stack";
    width: 30px;
    padding: 0;
}

.pswp-video-share svg,
.pswp-video-share span {
    grid-area: stack;
}

.pswp-video-share svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity 130ms ease,
        transform 130ms ease;
}

.pswp-video-share span {
    color: var(--amber);
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px);
    transition:
        opacity 130ms ease,
        transform 130ms ease;
}

.pswp-video-autoplay:hover,
.pswp-video-autoplay:focus-visible,
.pswp-video-autoplay.is-active,
.pswp-video-share:hover,
.pswp-video-share:focus-visible {
    color: rgba(241, 234, 210, 0.92);
    outline: none;
}

.pswp-video-share.is-copied {
    color: var(--amber);
}

.pswp-video-share.is-copied svg {
    opacity: 0;
    transform: translateY(-4px);
}

.pswp-video-share.is-copied span {
    opacity: 1;
    transform: translateY(0);
}

.pswp-video-share.is-failed {
    color: var(--red);
}

.pswp-media-strip {
    position: absolute;
    right: 20px;
    bottom: 8px;
    left: 20px;
    z-index: 1;
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 6px 8px;
    overflow-x: auto;
    pointer-events: auto;
}

.pswp-media-thumb {
    appearance: none;
    position: relative;
    flex: 0 0 auto;
    width: 76px;
    aspect-ratio: 16 / 9;
    padding: 0;
    border: 1px solid rgba(184, 176, 145, 0.44);
    background: rgba(10, 13, 8, 0.92);
    cursor: pointer;
    overflow: hidden;
}

.pswp-media-thumb:hover,
.pswp-media-thumb:focus-visible,
.pswp-media-thumb.is-active {
    border-color: var(--amber);
    outline: none;
}

.pswp-media-thumb img,
.pswp-media-thumb video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pswp-media-thumb span {
    position: absolute;
    right: 4px;
    bottom: 4px;
    padding: 2px 4px;
    background: rgba(10, 13, 8, 0.82);
    color: var(--amber);
    font-family: var(--mono);
    font-size: 9px;
    line-height: 1;
    text-transform: uppercase;
}

.site-footer {
    flex: 0 0 auto;
    position: relative;
    z-index: 1;
    width: min(var(--shell-width), calc(100% - var(--shell-gutter)));
    margin-right: auto;
    margin-top: auto;
    margin-left: auto;
    border: 1px solid var(--classic-border-strong);
    background: rgba(48, 60, 44, 0.9);
    box-shadow:
        inset 1px 1px 0 var(--classic-hi),
        inset -1px -1px 0 var(--classic-lo),
        0 -14px 36px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(8px);
}

.footer-hud {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    min-height: 40px;
    padding: 9px 14px 10px;
    color: rgba(184, 176, 145, 0.78);
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
}

.footer-status,
.footer-nav {
    display: flex;
    align-items: center;
    min-width: 0;
}

.footer-status {
    gap: 8px;
}

.footer-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border: 1px solid rgba(142, 166, 92, 0.92);
    background: var(--green);
    box-shadow: 0 0 8px rgba(142, 166, 92, 0.7);
}

.footer-muted {
    color: rgba(184, 176, 145, 0.46);
}

.footer-author {
    color: rgba(241, 234, 210, 0.72);
    transition: color 140ms ease;
}

.footer-author:hover,
.footer-author:focus-visible {
    color: var(--amber);
    outline: none;
}

.footer-nav {
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
}

.footer-nav ul {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-nav li {
    margin: 0;
    padding: 0;
}

.footer-nav a {
    padding: 5px 0;
    color: rgba(241, 234, 210, 0.72);
    transition: color 140ms ease;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
    color: var(--amber);
    outline: none;
}

@media (max-width: 860px) {
    .hud-bar {
        align-items: flex-start;
        grid-template-columns: 1fr;
        min-height: 54px;
    }

    .map-nav {
        grid-column: 1;
        justify-content: flex-start;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: thin;
    }

    .header-actions {
        grid-column: 1;
        grid-row: 1;
        justify-self: end;
    }

    .map-nav button {
        flex: 0 0 auto;
    }

    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
    }

    .console-layout.is-aside-open .console-aside {
        flex: 0 0 210px;
        width: 210px;
    }

    .aside-panel {
        width: 210px;
    }

    .footer-hud {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-nav {
        justify-content: flex-start;
    }

}

@media (max-width: 520px) {
    .site-shell {
        width: min(100% - 18px, 1180px);
        padding-top: 10px;
    }

    .console-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .console-controls {
        width: 100%;
    }

    .grenade-filters {
        justify-content: flex-start;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

}
