:root {
    --sw-bg: #0a0f1c;
    --sw-panel: #111827;
    --sw-panel-soft: rgba(17, 24, 39, 0.88);
    --sw-line: rgba(255, 255, 255, 0.08);
    --sw-cyan: #00e5ff;
    --sw-red: #ff3b30;
    --sw-text: #f8fafc;
    --sw-muted: rgba(248, 250, 252, 0.68);
    --sw-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
    --sw-radius-xl: 28px;
    --sw-radius-lg: 22px;
    --sw-radius-md: 18px;
}

body.tactical-home.esports-home {
    font-family: 'Inter', sans-serif;
    color: var(--sw-text);
    background:
        radial-gradient(circle at 20% 10%, rgba(0, 229, 255, 0.12), transparent 18%),
        radial-gradient(circle at 85% 16%, rgba(255, 59, 48, 0.12), transparent 16%),
        radial-gradient(circle at 50% 82%, rgba(0, 229, 255, 0.08), transparent 18%),
        linear-gradient(180deg, #0a0f1c 0%, #0b1222 50%, #070b14 100%);
}

body.tactical-home.esports-home::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 46px 46px;
    opacity: 0.26;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 95%);
}

body.tactical-home.esports-home::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 18%, rgba(0, 229, 255, 0.06), transparent 26%),
        radial-gradient(circle at 80% 72%, rgba(255, 59, 48, 0.06), transparent 18%);
    filter: blur(24px);
    opacity: 0.8;
}

body.tactical-home .header,
body.tactical-home .main-container,
body.tactical-home .footer {
    position: relative;
    z-index: 1;
}

body.tactical-home .header.topbar {
    position: sticky;
    top: 0;
    max-width: 1440px;
    margin: 0 auto;
    padding: 10px 18px 0;
    background: transparent;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
}

.topbar-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    min-height: 58px;
    padding: 8px 14px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 15, 28, 0.72);
    backdrop-filter: blur(18px);
    box-shadow: var(--sw-shadow);
}

.topbar.is-scrolled .topbar-inner {
    background: rgba(9, 14, 25, 0.92);
    border-color: rgba(0, 229, 255, 0.16);
}

body.tactical-home .logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

body.tactical-home .logo-icon {
    filter: drop-shadow(0 0 16px rgba(255, 122, 61, 0.28));
    transition: transform 0.2s ease, filter 0.2s ease;
}

body.tactical-home .logo:hover .logo-icon {
    transform: translateY(-1px);
    filter: drop-shadow(0 0 22px rgba(255, 122, 61, 0.42));
}

body.tactical-home .logo-text {
    font-family: 'Oxanium', sans-serif;
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sw-text);
}

body.tactical-home .nav-item {
    position: relative;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(248, 250, 252, 0.72);
}

body.tactical-home .nav-item::before {
    display: none;
}

body.tactical-home .nav-item::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 5px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--sw-cyan), transparent);
    transform: scaleX(0);
    transition: transform 0.18s ease;
}

body.tactical-home .nav-item:hover,
body.tactical-home .nav-item.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}

body.tactical-home .nav-item:hover::after,
body.tactical-home .nav-item.active::after {
    transform: scaleX(1);
}

body.tactical-home .header-pill,
body.tactical-home .button-link,
body.tactical-home .search-drawer-close {
    font-family: 'Oxanium', sans-serif;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--sw-text);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

body.tactical-home .header-pill {
    min-height: 36px;
    padding: 0 12px;
    font-size: 11px;
}

body.tactical-home .header-pill:not(.secondary),
body.tactical-home .button-link:not(.secondary) {
    border-color: rgba(0, 229, 255, 0.2);
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.18), rgba(255, 59, 48, 0.14));
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.12);
}

body.tactical-home .button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 18px;
    text-decoration: none;
    font-weight: 800;
}

body.tactical-home .button-link.secondary {
    background: rgba(255, 255, 255, 0.04);
}

body.tactical-home .header-pill:hover,
body.tactical-home .button-link:hover,
body.tactical-home .search-drawer-close:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 229, 255, 0.22);
    box-shadow: 0 0 18px rgba(0, 229, 255, 0.14);
}

body.tactical-home .lang-switch {
    padding: 4px;
    gap: 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

body.tactical-home .lang-switch-link.active {
    color: #07101c;
    background: linear-gradient(135deg, var(--sw-cyan), #80f2ff);
}

body.tactical-home .main-container.tactical-shell.esports-shell {
    max-width: 1440px;
    padding: 12px 18px 30px;
}

body.tactical-home .search-drawer,
body.tactical-home .game-stage,
body.tactical-home .game-section,
body.tactical-home .combat-frame-shell {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.014)), var(--sw-panel-soft);
    border: 1px solid var(--sw-line);
    box-shadow: var(--sw-shadow);
    backdrop-filter: blur(18px);
}

.search-drawer,
.game-stage,
.game-section {
    border-radius: var(--sw-radius-xl);
    padding: 18px;
    margin-bottom: 18px;
}

.search-drawer-head,
.stage-heading,
.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
}

body.tactical-home .page-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #b8f6ff;
    font-family: 'Oxanium', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-banner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
    gap: 18px;
    align-items: stretch;
    margin-bottom: 18px;
}

.hero-copy-esports {
    min-height: 320px;
    padding: 28px;
    border-radius: var(--sw-radius-xl);
    background:
        radial-gradient(circle at top right, rgba(0, 229, 255, 0.16), transparent 28%),
        radial-gradient(circle at 20% 15%, rgba(255, 59, 48, 0.14), transparent 18%),
        linear-gradient(160deg, rgba(17, 24, 39, 0.98), rgba(10, 15, 28, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: var(--sw-shadow);
    display: grid;
    align-content: center;
    gap: 14px;
    overflow: hidden;
}

.hero-kicker {
    display: inline-flex;
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.18);
    color: #b7f8ff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy-esports h1 {
    margin: 0;
    font-family: 'Oxanium', sans-serif;
    font-size: clamp(2.6rem, 6vw, 5.2rem);
    line-height: 0.94;
    letter-spacing: -0.05em;
    text-transform: uppercase;
}

.hero-copy-esports p {
    max-width: 44ch;
    color: var(--sw-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.hero-actions,
.hero-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-art {
    position: relative;
    min-height: 320px;
    border-radius: var(--sw-radius-xl);
    overflow: hidden;
    background:
        radial-gradient(circle at 40% 30%, rgba(0, 229, 255, 0.2), transparent 24%),
        radial-gradient(circle at 70% 70%, rgba(255, 59, 48, 0.18), transparent 20%),
        linear-gradient(160deg, rgba(17, 24, 39, 0.98), rgba(7, 11, 20, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: var(--sw-shadow);
}

.hero-art::before,
.hero-art::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-art::before {
    background:
        linear-gradient(115deg, transparent 0 34%, rgba(0, 229, 255, 0.12) 34% 36%, transparent 36%),
        linear-gradient(260deg, transparent 0 62%, rgba(255, 59, 48, 0.12) 62% 64%, transparent 64%);
    opacity: 0.9;
}

.hero-art-panel {
    position: absolute;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
        rgba(10, 15, 28, 0.72);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.hero-art-panel-a {
    top: 22px;
    left: 22px;
    width: 58%;
    height: 62%;
    transform: skewX(-8deg);
}

.hero-art-panel-b {
    right: 18px;
    bottom: 18px;
    width: 40%;
    height: 44%;
    transform: skewX(8deg);
}

.hero-art-overlay {
    position: absolute;
    inset: auto 20px 20px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(10, 15, 28, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.hero-art-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 59, 48, 0.14);
    color: #ffd0cb;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hero-art-hud {
    color: rgba(248, 250, 252, 0.76);
    font-size: 12px;
}

.combat-frame-shell {
    position: relative;
    overflow: hidden;
    min-height: 66vh;
    border-radius: var(--sw-radius-xl);
}

.combat-frame-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.08), inset 0 0 36px rgba(0, 229, 255, 0.06);
}

.combat-frame-shell iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.frame-fullscreen-button {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid rgba(0, 229, 255, 0.18);
    background: rgba(10, 15, 28, 0.8);
    color: var(--sw-text);
    backdrop-filter: blur(12px);
    box-shadow: 0 0 18px rgba(0, 229, 255, 0.12);
}

.frame-fullscreen-button:hover {
    border-color: rgba(0, 229, 255, 0.28);
    box-shadow: 0 0 24px rgba(0, 229, 255, 0.18);
}

.combat-loading {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    gap: 14px;
    background: linear-gradient(180deg, rgba(10, 15, 28, 0.92), rgba(10, 15, 28, 0.72));
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.combat-radar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px solid rgba(0, 229, 255, 0.28);
    border-top-color: rgba(0, 229, 255, 0.9);
    animation: radarSpin 1.2s linear infinite;
}

.combat-loading-copy {
    text-align: center;
    display: grid;
    gap: 4px;
}

.combat-loading-copy span {
    color: rgba(248, 250, 252, 0.62);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 11px;
}

.combat-loading-copy strong {
    color: #fff;
    font-family: 'Oxanium', sans-serif;
    font-size: 1rem;
}

.combat-frame-shell.is-loaded .combat-loading {
    opacity: 0;
    visibility: hidden;
}

.frame-corner {
    position: absolute;
    width: 18px;
    height: 18px;
    z-index: 1;
    border-color: rgba(0, 229, 255, 0.7);
}

.corner-a,
.corner-b,
.corner-c,
.corner-d {
    border-style: solid;
}

.corner-a {
    top: 14px;
    left: 14px;
    border-width: 2px 0 0 2px;
}

.corner-b {
    top: 14px;
    right: 14px;
    border-width: 2px 2px 0 0;
}

.corner-c {
    bottom: 14px;
    left: 14px;
    border-width: 0 0 2px 2px;
}

.corner-d {
    right: 14px;
    bottom: 14px;
    border-width: 0 2px 2px 0;
}

.stage-meta-bar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.stage-meta-item {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.stage-label {
    display: block;
    margin-bottom: 6px;
    color: rgba(248, 250, 252, 0.56);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.stage-meta-item strong {
    color: #fff;
    font-size: 14px;
}

.games-grid,
.category-grid,
.mode-grid,
.weapon-rail {
    display: grid;
    gap: 16px;
}

.games-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.games-grid-featured {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.category-grid {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.mode-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.weapon-rail {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.game-card,
.category-card,
.mode-card,
.weapon-card,
.jump-card,
.site-note {
    position: relative;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(17, 24, 39, 0.9);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

.game-card {
    display: grid;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.game-card:hover,
.category-card:hover,
.mode-card:hover,
.weapon-card:hover,
.jump-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 229, 255, 0.22);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.32), 0 0 24px rgba(0, 229, 255, 0.08);
}

.game-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.game-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.game-card:hover .game-card-media img {
    transform: scale(1.08);
}

.game-card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(10, 15, 28, 0.88) 100%);
}

.game-card-play {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(0, 229, 255, 0.14);
    border: 1px solid rgba(0, 229, 255, 0.2);
    color: #fff;
    font-family: 'Oxanium', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.game-card:hover .game-card-play {
    opacity: 1;
    transform: translateY(0);
}

.game-card-body {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.game-card-top,
.game-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.game-card-body strong,
.category-card strong,
.mode-card strong,
.weapon-card strong,
.jump-card h3 {
    color: #fff;
}

.game-card-rating {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ffd26a;
    font-size: 12px;
    font-weight: 700;
}

.game-card-meta {
    color: rgba(248, 250, 252, 0.56);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.category-card,
.mode-card,
.weapon-card {
    display: grid;
    gap: 10px;
    padding: 18px;
}

.category-card {
    text-decoration: none;
    color: inherit;
}

.category-card-icon,
.mode-card-icon,
.weapon-card-icon,
.jump-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--hub-accent-soft, rgba(0, 229, 255, 0.12));
    color: var(--hub-accent, var(--sw-cyan));
}

.category-card-count {
    color: rgba(248, 250, 252, 0.62);
    font-size: 12px;
}

.category-card .catalog-tags,
.game-card .catalog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.catalog-tags span {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(248, 250, 252, 0.82);
    font-size: 11px;
}

.jump-card {
    padding: 18px;
    text-decoration: none;
    color: inherit;
}

.jump-card h3 {
    margin: 10px 0 0;
}

.jump-card h3 a {
    color: inherit;
    text-decoration: none;
}

.jump-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: rgba(248, 250, 252, 0.62);
    font-size: 12px;
}

.section-head {
    margin-bottom: 14px;
}

.site-note {
    padding: 18px;
    color: rgba(248, 250, 252, 0.72);
}

.site-note p {
    color: rgba(248, 250, 252, 0.72);
}

body.tactical-home .footer {
    max-width: 1440px;
    margin: 0 auto;
    padding: 18px 18px 24px;
}

body.tactical-home .footer-links,
body.tactical-home .footer-summary,
body.tactical-home .footer-meta {
    color: rgba(248, 250, 252, 0.62);
}

@keyframes radarSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 1180px) {
    .topbar-inner {
        grid-template-columns: auto 1fr;
    }

    .topbar-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .hero-banner {
        grid-template-columns: 1fr;
    }

    .stage-meta-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    body.tactical-home .header.topbar {
        padding: 10px 14px 0;
    }

    .topbar-inner {
        grid-template-columns: 1fr auto;
        padding: 10px 12px;
        gap: 10px;
    }

    body.tactical-home .main-container.tactical-shell.esports-shell,
    body.tactical-home .footer {
        padding-left: 14px;
        padding-right: 14px;
    }

    .hero-copy-esports,
    .hero-art,
    .search-drawer,
    .game-stage,
    .game-section {
        border-radius: 20px;
    }

    .hero-copy-esports {
        min-height: 280px;
        padding: 22px;
    }

    .combat-frame-shell {
        min-height: 56vh;
    }

    .stage-meta-bar,
    .games-grid,
    .category-grid,
    .mode-grid,
    .weapon-rail {
        grid-template-columns: 1fr;
    }

    .header-pill,
    .button-link {
        width: 100%;
    }

    .frame-fullscreen-button {
        right: 12px;
        bottom: 12px;
    }
}

@media (max-width: 520px) {
    .hero-copy-esports h1 {
        font-size: 2.4rem;
    }

    .frame-fullscreen-button span {
        display: none;
    }
}
