/* GameHub — Counter-Strike 2 tactical theme */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=Share+Tech+Mono&display=swap');

:root {
    --gh-navy: #090b10;
    --gh-navy-mid: #0d1117;
    --gh-navy-light: #151b24;
    --gh-card: #111820;
    --gh-accent: #22d3ee;
    --gh-gold: #22d3ee;
    --gh-gold-hover: #06b6d4;
    --gh-gold-light: #67e8f9;
    --gh-amber-glow: rgba(34, 211, 238, .25);
    --gh-ct: #22d3ee;
    --gh-t: #f97316;
    --gh-text: #f1f5f9;
    --gh-text-muted: #94a3b8;
    --gh-border: rgba(148, 163, 184, .14);
    --gh-success: #34d399;
    --gh-danger: #f87171;
    --gh-font: 'Rajdhani', 'Segoe UI', system-ui, sans-serif;
    --gh-mono: 'Share Tech Mono', ui-monospace, monospace;
    --cs2-orange: #f97316;
    --cs2-blue: #22d3ee;
}

body {
    font-family: var(--gh-font);
    background: var(--gh-navy);
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(74, 158, 255, .08), transparent),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(232, 160, 32, .06), transparent);
}

/* ─── Announce bar ─── */
.gh-announce {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 16px;
    background: #0a0e14;
    border-bottom: 1px solid rgba(34, 211, 238, .12);
    font-size: 12px;
    color: var(--gh-text-muted);
    overflow: hidden;
}
.gh-announce-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gh-accent);
    box-shadow: 0 0 10px var(--gh-accent);
    flex-shrink: 0;
    animation: gh-pulse 2s ease-in-out infinite;
}
@keyframes gh-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .5; transform: scale(.85); }
}
.gh-announce-text {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gh-announce-link {
    flex-shrink: 0;
    color: var(--gh-accent);
    font-weight: 600;
    text-decoration: none;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid rgba(34, 211, 238, .25);
    background: rgba(34, 211, 238, .06);
    transition: background .15s, border-color .15s;
}
.gh-announce-link:hover { background: rgba(34, 211, 238, .14); border-color: rgba(34, 211, 238, .45); color: #67e8f9; }

/* ─── Header v2 ─── */
.gh-header-v2 {
    background: #0d1117;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    box-shadow: 0 4px 24px rgba(0, 0, 0, .35);
}
.gh-header-v2 .gh-header-inner {
    min-height: 64px;
    gap: 16px;
}
.gh-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--gh-text);
    flex-shrink: 0;
    min-width: 0;
}
.gh-brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--gh-accent);
    background: rgba(34, 211, 238, .08);
    border: 1px solid rgba(34, 211, 238, .22);
    border-radius: 10px;
    flex-shrink: 0;
}
.gh-brand-text {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.gh-brand-name {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -.02em;
    white-space: nowrap;
}
.gh-brand-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 3px 7px;
    border-radius: 4px;
    background: rgba(34, 211, 238, .12);
    color: var(--gh-accent);
    border: 1px solid rgba(34, 211, 238, .2);
}
.gh-header-v2 .gh-nav a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--gh-text-muted);
    border: 1px solid transparent;
    transition: color .15s, background .15s, border-color .15s;
}
.gh-header-v2 .gh-nav a i { font-size: 12px; opacity: .75; }
.gh-header-v2 .gh-nav a:hover {
    color: var(--gh-text);
    background: rgba(255, 255, 255, .04);
}
.gh-header-v2 .gh-nav a.active {
    color: var(--gh-accent);
    background: rgba(34, 211, 238, .08);
    border-color: rgba(34, 211, 238, .2);
}
.gh-lang-segment {
    display: inline-flex;
    align-items: center;
    padding: 3px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    gap: 2px;
}
.gh-lang-segment-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--gh-text-muted);
    text-decoration: none;
    transition: color .15s, background .15s;
}
.gh-lang-segment-item:hover {
    color: var(--gh-text);
    background: rgba(255, 255, 255, .06);
}
.gh-lang-segment-item.is-active {
    color: #0d1117;
    background: var(--gh-accent);
}
.gh-btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #0d1117;
    background: var(--gh-accent);
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s, transform .15s, box-shadow .15s;
}
.gh-btn-contact:hover {
    background: #67e8f9;
    color: #0d1117;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(34, 211, 238, .3);
}
.gh-btn-admin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .1);
    color: var(--gh-text-muted);
    background: rgba(255, 255, 255, .03);
    text-decoration: none;
    transition: color .15s, border-color .15s, background .15s;
}
.gh-btn-admin:hover {
    color: var(--gh-accent);
    border-color: rgba(34, 211, 238, .3);
    background: rgba(34, 211, 238, .06);
}
.gh-header-v2 .gh-menu-toggle {
    border-color: rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .03);
}
.gh-header-v2.nav-open .gh-menu-icon-open { display: none; }
.gh-header-v2.nav-open .gh-menu-icon-close { display: inline; }
.gh-menu-icon-close { display: none; }
.gh-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 115;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(2px);
}
.gh-nav-overlay[hidden] { display: none !important; }
body.gh-nav-open { overflow: hidden; }

.gh-btn-primary, .gh-search-btn, .gh-btn-gold {
    background: linear-gradient(180deg, var(--gh-accent) 0%, #06b6d4 100%);
    color: #0d1117;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(34, 211, 238, .25);
    transition: transform .2s, box-shadow .2s;
}
.gh-btn-primary:hover, .gh-search-btn:hover, .gh-btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(34, 211, 238, .4);
    color: #0d1117;
}

/* ─── CS2 Hero ─── */
.cs2-hero {
    position: relative;
    min-height: min(92vh, 820px);
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    background: #040608;
}
.cs2-hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: .85;
}
.cs2-hero-scanlines {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, .12) 2px,
        rgba(0, 0, 0, .12) 4px
    );
    opacity: .4;
}
.cs2-hero-grid {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(74, 158, 255, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74, 158, 255, .04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}
.cs2-hero-vignette {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(4, 6, 8, .85) 100%);
}
.cs2-hero-layout {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 20px 56px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.cs2-hero-visual {
    position: relative;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 900px;
}
.cs2-scene-wrap {
    position: relative;
    width: min(100%, 420px);
    aspect-ratio: 1;
}
.cs2-scene-3d {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: cs2-float 8s ease-in-out infinite;
}
@keyframes cs2-float {
    0%, 100% { transform: rotateX(12deg) rotateY(-18deg); }
    50% { transform: rotateX(18deg) rotateY(12deg); }
}
.cs2-map-block {
    position: absolute;
    inset: 15%;
    transform-style: preserve-3d;
    animation: cs2-spin 24s linear infinite;
}
@keyframes cs2-spin {
    from { transform: rotateY(0deg) rotateX(8deg); }
    to { transform: rotateY(360deg) rotateX(8deg); }
}
.cs2-map-face {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(232, 160, 32, .5);
    background: linear-gradient(135deg, rgba(18, 26, 36, .9), rgba(10, 22, 40, .95));
    box-shadow: inset 0 0 40px rgba(74, 158, 255, .15), 0 0 60px rgba(232, 160, 32, .1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--gh-mono);
    font-size: 11px;
    color: var(--cs2-orange);
    letter-spacing: .2em;
    backface-visibility: visible;
}
.cs2-map-face--front  { transform: translateZ(120px); }
.cs2-map-face--back   { transform: rotateY(180deg) translateZ(120px); }
.cs2-map-face--right  { transform: rotateY(90deg) translateZ(120px); width: 240px; left: calc(50% - 120px); }
.cs2-map-face--left   { transform: rotateY(-90deg) translateZ(120px); width: 240px; left: calc(50% - 120px); }
.cs2-map-face--top    { transform: rotateX(90deg) translateZ(120px); height: 240px; top: calc(50% - 120px); }
.cs2-map-face--bottom { transform: rotateX(-90deg) translateZ(120px); height: 240px; top: calc(50% - 120px); }
.cs2-crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 48px;
    height: 48px;
    margin: -24px 0 0 -24px;
    z-index: 5;
    pointer-events: none;
    animation: cs2-pulse 2s ease-in-out infinite;
}
.cs2-crosshair::before,
.cs2-crosshair::after {
    content: '';
    position: absolute;
    background: rgba(232, 160, 32, .7);
}
.cs2-crosshair::before {
    top: 50%; left: 0; right: 0; height: 2px;
    margin-top: -1px;
    box-shadow: 0 0 8px var(--cs2-orange);
}
.cs2-crosshair::after {
    left: 50%; top: 0; bottom: 0; width: 2px;
    margin-left: -1px;
    box-shadow: 0 0 8px var(--cs2-orange);
}
@keyframes cs2-pulse {
    0%, 100% { opacity: .6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}
.cs2-hud-corner {
    position: absolute;
    width: 24px;
    height: 24px;
    border-color: var(--cs2-blue);
    border-style: solid;
    opacity: .7;
}
.cs2-hud-corner--tl { top: 0; left: 0; border-width: 2px 0 0 2px; }
.cs2-hud-corner--tr { top: 0; right: 0; border-width: 2px 2px 0 0; }
.cs2-hud-corner--bl { bottom: 0; left: 0; border-width: 0 0 2px 2px; }
.cs2-hud-corner--br { bottom: 0; right: 0; border-width: 0 2px 2px 0; }

.cs2-hero-text { text-align: left; }
.cs2-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(232, 160, 32, .12);
    border: 1px solid rgba(232, 160, 32, .4);
    color: var(--cs2-orange);
    font-family: var(--gh-mono);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 16px;
    animation: cs2-glow-badge 3s ease-in-out infinite;
}
.cs2-live-badge i { animation: cs2-blink 1.2s step-end infinite; }
@keyframes cs2-blink { 50% { opacity: 0; } }
@keyframes cs2-glow-badge {
    0%, 100% { box-shadow: 0 0 0 rgba(232, 160, 32, 0); }
    50% { box-shadow: 0 0 20px rgba(232, 160, 32, .2); }
}
.cs2-title {
    margin: 0 0 12px;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: .02em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #fff 0%, var(--cs2-orange) 45%, var(--cs2-blue) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: cs2-title-in .8s ease-out;
}
@keyframes cs2-title-in {
    from { opacity: 0; transform: translateY(20px); filter: blur(4px); }
    to { opacity: 1; transform: none; filter: none; }
}
.cs2-subtitle {
    margin: 0 0 28px;
    color: var(--gh-text-muted);
    font-size: 1.1rem;
    line-height: 1.55;
    max-width: 520px;
}
.cs2-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.cs2-tag {
    padding: 4px 10px;
    font-family: var(--gh-mono);
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
    border: 1px solid rgba(74, 158, 255, .3);
    color: var(--cs2-blue);
    background: rgba(74, 158, 255, .06);
}
.cs2-tag--t { border-color: rgba(232, 160, 32, .35); color: var(--cs2-orange); background: rgba(232, 160, 32, .06); }

/* Search — tactical panel */
.cs2-hero .gh-search {
    background: rgba(12, 18, 28, .85);
    border: 1px solid rgba(74, 158, 255, .2);
    border-left: 3px solid var(--cs2-orange);
    border-radius: 0;
    backdrop-filter: blur(8px);
}
.cs2-hero .gh-search-field label {
    font-family: var(--gh-mono);
    color: var(--cs2-blue);
}

/* Stats HUD bar */
.gh-stats-bar {
    background: linear-gradient(180deg, #0a1018, #06080c);
    border-bottom: 1px solid rgba(232, 160, 32, .15);
    padding: 0;
}
.gh-stats-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}
.gh-stats-inner > div {
    padding: 24px 16px;
    border-right: 1px solid rgba(74, 158, 255, .1);
    position: relative;
}
.gh-stats-inner > div:last-child { border-right: none; }
.gh-stats-inner strong {
    font-family: var(--gh-mono);
    font-size: 2.2rem;
    color: var(--cs2-orange);
    text-shadow: 0 0 24px rgba(232, 160, 32, .4);
    display: block;
}
.gh-stats-inner span {
    font-family: var(--gh-mono);
    font-size: 10px;
    letter-spacing: .12em;
    color: var(--cs2-blue);
}

/* CS2 showcase strip */
.cs2-showcase {
    background: linear-gradient(90deg, rgba(232, 160, 32, .06) 0%, transparent 50%, rgba(74, 158, 255, .06) 100%);
    border-bottom: 1px solid var(--gh-border);
    padding: 40px 0;
}
.cs2-showcase-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}
.cs2-showcase-head h2 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    display: flex;
    align-items: center;
    gap: 12px;
}
.cs2-showcase-head h2 i { color: var(--cs2-orange); }
.cs2-showcase-head p { margin: 6px 0 0; color: var(--gh-text-muted); font-size: 14px; }
.cs2-ticker {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
}
.cs2-ticker-card {
    flex: 0 0 auto;
    min-width: 200px;
    padding: 12px 16px;
    background: var(--gh-card);
    border: 1px solid rgba(232, 160, 32, .2);
    text-decoration: none;
    color: inherit;
    transition: border-color .2s, transform .2s;
}
.cs2-ticker-card:hover {
    border-color: var(--cs2-orange);
    transform: translateY(-2px);
    color: inherit;
    text-decoration: none;
}
.cs2-ticker-card strong {
    display: block;
    font-size: 13px;
    color: var(--gh-text);
    margin-bottom: 4px;
}
.cs2-ticker-card span {
    font-family: var(--gh-mono);
    font-size: 11px;
    color: var(--cs2-blue);
}
.cs2-ticker-card .cs2-ping {
    color: var(--cs2-orange);
    margin-left: 8px;
}

/* Server cards — HUD style */
.gh-server-card {
    background: linear-gradient(160deg, #0e141c 0%, #0a1018 100%);
    border: 1px solid rgba(74, 158, 255, .15);
    border-radius: 0;
    position: relative;
    overflow: visible;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.gh-server-card::before,
.gh-server-card::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-color: var(--cs2-orange);
    border-style: solid;
    opacity: 0;
    transition: opacity .25s;
    z-index: 2;
    pointer-events: none;
}
.gh-server-card::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.gh-server-card::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.gh-server-card:hover {
    border-color: rgba(232, 160, 32, .45);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .5), 0 0 30px rgba(232, 160, 32, .08);
}
.gh-server-card:hover::before,
.gh-server-card:hover::after { opacity: 1; }
.gh-server-card--cs2 {
    border-left: 3px solid var(--cs2-orange);
}
.gh-server-card--cs2 .gh-game-tag {
    background: rgba(232, 160, 32, .12);
    color: var(--cs2-orange);
}
.gh-server-media { position: relative; overflow: hidden; }
.gh-server-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(4, 6, 8, .85) 100%);
    pointer-events: none;
}
.gh-server-media img {
    transition: transform .4s ease;
}
.gh-server-card:hover .gh-server-media img { transform: scale(1.06); }
.gh-status-online { background: rgba(61, 214, 140, .15); color: var(--gh-success); }
.gh-status-maintenance { background: rgba(232, 160, 32, .15); color: var(--cs2-orange); }
.gh-players-bar span {
    background: linear-gradient(90deg, var(--cs2-blue), var(--cs2-orange));
}
.gh-players-count {
    font-family: var(--gh-mono);
    font-size: 1.4rem;
    color: var(--cs2-orange);
}
.gh-game-tag {
    font-family: var(--gh-mono);
    font-size: 10px;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.gh-ping {
    font-family: var(--gh-mono);
    color: var(--cs2-blue);
    font-size: 12px;
}

/* Sections */
.gh-section { padding: 48px 0; }
.gh-section-alt { background: rgba(12, 18, 28, .5); }
.gh-section-head h2 {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-size: 1.35rem;
}
.gh-section-head h2::before {
    content: '// ';
    color: var(--cs2-orange);
    font-family: var(--gh-mono);
}
.gh-link-more {
    font-family: var(--gh-mono);
    color: var(--cs2-blue);
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: 11px;
}
.gh-game-tag-lg {
    border-radius: 0;
    border-left: 3px solid var(--cs2-blue);
    transition: border-color .2s, transform .2s;
}
.gh-game-tag-lg:hover {
    border-left-color: var(--cs2-orange);
    transform: translateX(4px);
}
.gh-game-tag-lg span {
    background: rgba(74, 158, 255, .15);
    color: var(--cs2-blue);
}

/* About block */
.gh-about-script {
    background: linear-gradient(180deg, #0c1018, #080c12);
    border-color: rgba(232, 160, 32, .12);
}
.gh-about-script h2 { text-transform: uppercase; letter-spacing: .04em; }
.gh-about-features i { color: var(--cs2-orange); }

/* Footer */
.gh-footer {
    background: #040608;
    border-top: 1px solid rgba(232, 160, 32, .15);
}

@media (max-width: 900px) {
    .cs2-hero-layout {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 32px;
    }
    .cs2-hero-text { text-align: center; }
    .cs2-subtitle { margin-left: auto; margin-right: auto; }
    .cs2-hero-tags { justify-content: center; }
    .cs2-hero-visual { min-height: 260px; order: -1; }
    .cs2-scene-wrap { width: min(280px, 80vw); }
}
@media (max-width: 600px) {
    .gh-stats-inner { grid-template-columns: repeat(2, 1fr); }
    .gh-stats-inner > div:nth-child(2) { border-right: none; }
}
@media (max-width: 1099px) {
    .gh-header-v2 .gh-header-panel {
        z-index: 120;
        background: #0d1117;
        border-left: 1px solid rgba(34, 211, 238, .12);
        padding: 20px 16px;
    }
    .gh-header-v2 .gh-header-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 10px;
    }
    .gh-header-v2 .gh-lang-segment {
        justify-content: center;
        width: 100%;
    }
    .gh-header-v2 .gh-lang-segment-item { flex: 1; }
    .gh-header-v2 .gh-btn-contact { justify-content: center; width: 100%; }
    .gh-header-v2 .gh-btn-admin { width: 100%; height: 44px; }
    .gh-announce-text { font-size: 11px; }
}
@media (min-width: 1100px) {
    .gh-menu-toggle { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
    .cs2-map-block, .cs2-scene-3d, .cs2-crosshair, .cs2-live-badge i { animation: none; }
    .cs2-title { animation: none; }
}