/* ============================================================
   Theme: Quantum Arcade — Indigo/Cyan Premium Dark
   Prefix: gx- (all classes renamed)
   ============================================================ */

/* ============ ROOT VARIABLES ============ */
:root {
    --gx-primary: #00e676;
    --gx-primary-dark: #00c853;
    --gx-primary-light: #69f0ae;
    --gx-secondary: #00e5ff;
    --gx-secondary-dark: #00b3cc;
    --gx-accent: #00e5ff;
    --gx-accent-warm: #f59e0b;
    --gx-error: #ef4444;
    --gx-success: #00c853;
    --gx-warning: #f59e0b;

    --gx-bg: #070716;
    --gx-surface: #0c0c24;
    --gx-card: #121233;
    --gx-card-hover: #1a1a45;
    --gx-card-alt: #0f0f2e;
    --gx-overlay-bg: rgba(7, 7, 22, 0.85);

    --gx-text: #f1f5f9;
    --gx-text-secondary: #94a3b8;
    --gx-text-muted: #64748b;
    --gx-text-inverse: #0f172a;

    --gx-border: #1e2844;
    --gx-border-light: rgba(0, 230, 118, 0.2);
    --gx-border-glow: rgba(0, 230, 118, 0.4);

    --gx-radius: 16px;
    --gx-radius-sm: 10px;
    --gx-radius-lg: 20px;
    --gx-radius-xl: 24px;
    --gx-radius-full: 9999px;

    --gx-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
    --gx-shadow-md: 0 4px 20px rgba(0, 0, 0, 0.35);
    --gx-shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --gx-shadow-glow: 0 0 30px rgba(0, 230, 118, 0.2);

    --gx-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gx-transition-fast: all 0.15s ease;

    --gx-topbar-h: 64px;
    --gx-font: 'Segoe UI', system-ui, -apple-system, sans-serif;

    --gx-gradient-primary: linear-gradient(135deg, #00e676 0%, #00e5ff 100%);
    --gx-gradient-accent: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --gx-gradient-card: linear-gradient(135deg, rgba(0, 230, 118, 0.1), rgba(0, 229, 255, 0.05));
    --gx-gradient-hero: linear-gradient(180deg, #0c0c2d 0%, #070716 60%);
}

/* ============ RESET / BASE ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--gx-font);
    background: var(--gx-bg);
    color: var(--gx-text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 600px 400px at 15% 20%, rgba(0, 230, 118, 0.04), transparent 70%),
        radial-gradient(ellipse 500px 350px at 85% 60%, rgba(6, 182, 212, 0.03), transparent 70%),
        radial-gradient(ellipse 400px 300px at 50% 90%, rgba(139, 92, 246, 0.03), transparent 70%);
}

a { color: var(--gx-primary-light); text-decoration: none; transition: var(--gx-transition-fast); }
a:hover { color: var(--gx-secondary); }

img { max-width: 100%; height: auto; display: block; }

ul, ol { list-style: none; padding: 0; margin: 0; }

button { font-family: var(--gx-font); cursor: pointer; }

input, textarea, select { font-family: var(--gx-font); }

h1, h2, h3, h4, h5, h6 { color: var(--gx-text); line-height: 1.25; }

::selection { background: rgba(0, 230, 118, 0.4); color: #fff; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--gx-surface); }
::-webkit-scrollbar-thumb { background: var(--gx-border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gx-text-muted); }

/* ============ LAYOUT CONTAINERS ============ */
.gx-container {
    width: 100%;
    margin: 0 auto;
    padding: 0 16px;
}

.gx-page {
    background: var(--gx-card);
    border: 1px solid var(--gx-border);
    border-radius: var(--gx-radius-lg);
    padding: 36px;
    margin-bottom: 36px;
    box-shadow: var(--gx-shadow-sm);
}

.gx-section { margin-bottom: 48px; }

.gx-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

.gx-wrapper {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    position: relative;
}

/* Utility: text ellipsis */
.gx-text-ellipsis-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--gx-text-secondary);
    font-size: 13px;
    line-height: 1.5;
}

/* ============ TOP BAR (navbar replacement) ============ */
.gx-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--gx-topbar-h);
    background: rgba(7, 7, 22, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 230, 118, 0.12);
    z-index: 1050;
    display: flex;
    align-items: stretch;
    padding: 0;
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.3);
}

.gx-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 0 16px;
}

/* Brand with icon accent */
.gx-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    flex-shrink: 0;
    position: relative;
}

.gx-brand .logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--gx-text);
    text-decoration: none;
    letter-spacing: -0.5px;
    padding: 6px 0;
}

.gx-brand .logo::before {
    content: none;
}

.gx-brand .logo-img {
    display: inline-block;
    height: 28px;
    width: auto;
    max-height: 28px;
    flex-shrink: 0;
    vertical-align: middle;
}


.gx-brand .logo:hover { color: var(--gx-primary-light); }

.gx-search {
    flex: 1;
    max-width: 420px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gx-search input {
    flex: 1;
    width: 100%;
    height: 48px;
    min-height: 48px;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--gx-radius);
    color: var(--gx-text);
    font-size: 14px;
    outline: none;
    transition: all 0.25s ease;
}

.gx-search input::placeholder { color: var(--gx-text-muted); }

.gx-search input:focus {
    border-color: var(--gx-primary);
    box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.12);
    background: rgba(255, 255, 255, 0.06);
}

.gx-search .search-btn {
    flex: 0 0 auto;
    position: static;
    transform: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--gx-radius);
    color: var(--gx-text-muted);
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.gx-search .search-btn:hover {
    color: var(--gx-primary-light);
    border-color: var(--gx-primary);
    background: rgba(0, 230, 118, 0.06);
}

/* ---- Auth in topbar ---- */
.gx-auth {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.gx-auth-group { display: flex; gap: 8px; }

.gx-auth-btn {
    padding: 8px 22px;
    border-radius: var(--gx-radius);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.gx-auth-btn--signin {
    background: rgba(255, 255, 255, 0.04);
    color: var(--gx-text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.gx-auth-btn--signin:hover {
    border-color: var(--gx-primary);
    color: var(--gx-text);
    background: rgba(0, 230, 118, 0.08);
}

.gx-auth-btn--signup {
    background: var(--gx-gradient-primary);
    color: #fff;
    box-shadow: 0 2px 12px rgba(0, 230, 118, 0.3);
}

.gx-auth-btn--signup:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 230, 118, 0.5);
}

/* User area */
.gx-user { display: none; align-items: center; gap: 10px; position: relative; }
.gx-user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: transparent;
    border: 1px solid var(--gx-border);
    border-radius: var(--gx-radius-full);
    color: var(--gx-text);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--gx-transition-fast);
}
.gx-user-btn:hover { border-color: var(--gx-primary); }

.gx-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gx-gradient-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.gx-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--gx-card);
    border: 1px solid var(--gx-border);
    border-radius: var(--gx-radius);
    min-width: 180px;
    padding: 8px;
    box-shadow: var(--gx-shadow-lg);
    display: none;
    z-index: 200;
}

.gx-dropdown.active { display: block; }

.gx-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: var(--gx-radius-sm);
    color: var(--gx-text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--gx-transition-fast);
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.gx-dropdown-item:hover {
    background: rgba(0, 230, 118, 0.1);
    color: var(--gx-text);
}

/* ---- Drawer Toggle Button (Floating) ---- */
.gx-drawer-trigger {
    position: fixed;
    right: 16px;
    bottom: 24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--gx-gradient-primary);
    border: none;
    color: #fff;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 4px 24px rgba(0, 230, 118, 0.5);
    transition: all 0.3s ease;
}

.gx-drawer-trigger:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 32px rgba(0, 230, 118, 0.65);
}

.gx-drawer-trigger.is-hidden { opacity: 0; pointer-events: none; transform: scale(0.8); }

.gx-drawer-trigger-icon { line-height: 1; }

/* ---- Old drawer btn (inline, kept for compat) ---- */
.gx-drawer-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--gx-radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--gx-text-secondary);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--gx-transition-fast);
    flex-shrink: 0;
}

.gx-drawer-btn:hover {
    border-color: var(--gx-primary);
    color: var(--gx-primary-light);
    background: rgba(0, 230, 118, 0.08);
}

/* ============ MAIN CONTENT ============ */
.gx-main {
    margin-top: calc(var(--gx-topbar-h) + 32px);
    min-height: calc(100vh - var(--gx-topbar-h) - 200px);
}



/* ============ HERO SECTION (Full-Width Immersive) ============ */
.gx-hero {
    background: linear-gradient(165deg, #0b0b35 0%, #111148 15%, #0d0d3d 35%, #08082a 55%, #070716 80%);
    border-radius: 0;
    padding: 100px 24px 70px;
    margin: calc(-1 * var(--gx-topbar-h) - 32px) -24px 48px -24px;
    position: relative;
    overflow: hidden;
    text-align: center;
    border-bottom: 1px solid var(--gx-border);
}

.gx-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 900px 600px at 15% 5%, rgba(0, 230, 118, 0.22), transparent 55%),
        radial-gradient(ellipse 700px 500px at 75% 60%, rgba(6, 182, 212, 0.16), transparent 55%),
        radial-gradient(ellipse 600px 400px at 45% 90%, rgba(139, 92, 246, 0.12), transparent 55%),
        radial-gradient(ellipse 400px 300px at 55% 20%, rgba(245, 158, 11, 0.06), transparent 55%);
    pointer-events: none;
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { 
        opacity: 0.8;
        background: 
            radial-gradient(ellipse 900px 600px at 15% 5%, rgba(0, 230, 118, 0.22), transparent 55%),
            radial-gradient(ellipse 700px 500px at 75% 60%, rgba(6, 182, 212, 0.16), transparent 55%),
            radial-gradient(ellipse 600px 400px at 45% 90%, rgba(139, 92, 246, 0.12), transparent 55%);
    }
    50% {
        opacity: 1;
        background: 
            radial-gradient(ellipse 900px 600px at 25% 10%, rgba(139, 92, 246, 0.2), transparent 55%),
            radial-gradient(ellipse 700px 500px at 65% 55%, rgba(0, 230, 118, 0.2), transparent 55%),
            radial-gradient(ellipse 600px 400px at 50% 85%, rgba(6, 182, 212, 0.15), transparent 55%);
    }
    100% {
        opacity: 0.85;
        background: 
            radial-gradient(ellipse 900px 600px at 10% 15%, rgba(6, 182, 212, 0.18), transparent 55%),
            radial-gradient(ellipse 700px 500px at 80% 45%, rgba(0, 230, 118, 0.22), transparent 55%),
            radial-gradient(ellipse 600px 400px at 40% 95%, rgba(245, 158, 11, 0.1), transparent 55%);
    }
}

.gx-hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(0, 230, 118, 0.04) 1px, transparent 1px),
        radial-gradient(circle at 60% 20%, rgba(6, 182, 212, 0.04) 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 35% 80%, rgba(0, 230, 118, 0.03) 1px, transparent 1px);
    background-size: 50px 50px, 70px 70px, 55px 55px, 65px 65px;
    background-position: 0 0, 25px 15px, 10px 5px, 35px 25px;
    pointer-events: none;
    opacity: 0.7;
}

.gx-hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    animation: heroParticlesDrift 15s ease-in-out infinite;
    background: 
        radial-gradient(2.5px 2.5px at 12% 18%, rgba(0, 230, 118, 0.6), transparent),
        radial-gradient(2px 2px at 82% 28%, rgba(6, 182, 212, 0.5), transparent),
        radial-gradient(1.5px 1.5px at 42% 55%, rgba(139, 92, 246, 0.55), transparent),
        radial-gradient(2px 2px at 68% 12%, rgba(245, 158, 11, 0.35), transparent),
        radial-gradient(1.5px 1.5px at 28% 72%, rgba(6, 182, 212, 0.45), transparent),
        radial-gradient(2.5px 2.5px at 55% 82%, rgba(0, 230, 118, 0.4), transparent),
        radial-gradient(1px 1px at 90% 65%, rgba(139, 92, 246, 0.5), transparent),
        radial-gradient(2px 2px at 18% 45%, rgba(0, 230, 118, 0.35), transparent);
}

@keyframes heroParticlesDrift {
    0% { opacity: 0.5; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-6px); }
    100% { opacity: 0.6; transform: translateY(0); }
}

.gx-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
}

.gx-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 22px;
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.3);
    border-radius: var(--gx-radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--gx-primary-light);
    margin-bottom: 24px;
    letter-spacing: 0.8px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(0, 230, 118, 0.12);
    animation: heroBadgePulse 3s ease-in-out infinite;
}

@keyframes heroBadgePulse {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 230, 118, 0.12); }
    50% { box-shadow: 0 0 30px rgba(0, 230, 118, 0.25), 0 0 60px rgba(0, 230, 118, 0.06); }
}

.gx-hero-title {
    font-size: clamp(32px, 5vw, 60px);
    font-weight: 900;
    line-height: 1.08;
    margin-bottom: 20px;
    letter-spacing: -2px;
    color: var(--gx-text);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 0 80px rgba(0, 230, 118, 0.15);
}

.gx-hero-title mark {
    background: linear-gradient(135deg, #69f0ae 0%, #00e5ff 30%, #00e5ff 70%, #69f0ae 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: heroGradientShift 4s ease-in-out infinite;
}

@keyframes heroGradientShift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.gx-hero-desc {
    font-size: 18px;
    color: var(--gx-text-secondary);
    line-height: 1.75;
    margin-bottom: 36px;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.gx-hero-btns { 
    display: flex; 
    gap: 16px; 
    flex-wrap: wrap; 
    justify-content: center;
    margin-bottom: 48px; 
}

.gx-btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    border-radius: var(--gx-radius-full);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border: none;
    position: relative;
    overflow: hidden;
}

.gx-btn-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.gx-btn-hero-fill {
    background: var(--gx-gradient-primary);
    color: #fff;
    box-shadow: 0 4px 24px rgba(0, 230, 118, 0.35), 0 0 0 0 rgba(0, 230, 118, 0.3);
}

.gx-btn-hero-fill::before {
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
}
.gx-btn-hero-fill:hover::before { opacity: 1; }

.gx-btn-hero-fill:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 40px rgba(0, 230, 118, 0.55), 0 0 0 8px rgba(0, 230, 118, 0.06);
    color: #fff;
}

.gx-btn-hero-ghost {
    background: rgba(255, 255, 255, 0.03);
    color: var(--gx-text);
    border: 2px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.gx-btn-hero-ghost:hover {
    background: rgba(0, 230, 118, 0.08);
    border-color: rgba(0, 230, 118, 0.5);
    color: var(--gx-primary-light);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 230, 118, 0.15);
}

.gx-hero-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 48px;
}

.gx-hero-stat {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--gx-radius);
    padding: 18px 32px;
    text-align: center;
    transition: all 0.35s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    min-width: 130px;
}

.gx-hero-stat:hover {
    background: rgba(0, 230, 118, 0.08);
    border-color: rgba(0, 230, 118, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 230, 118, 0.12);
}

.gx-hero-stat strong {
    display: block;
    font-size: 34px;
    font-weight: 900;
    background: var(--gx-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
    line-height: 1.2;
}

.gx-hero-stat span {
    font-size: 11px;
    color: var(--gx-text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

/* Hero Game Strip */
.gx-hero-strip-wrap {
    max-width: 100%;
    overflow: hidden;
    padding: 8px 0;
}

.gx-hero-strip-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--gx-accent-warm);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    padding: 6px 18px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: var(--gx-radius-full);
    animation: stripLabelPulse 2s ease-in-out infinite;
}

@keyframes stripLabelPulse {
    0%, 100% { box-shadow: 0 0 12px rgba(245, 158, 11, 0.1); }
    50% { box-shadow: 0 0 24px rgba(245, 158, 11, 0.2); }
}

.gx-hero-strip {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
    scrollbar-width: none;
}

.gx-hero-strip::-webkit-scrollbar { display: none; }

.gx-hero-strip-card {
    flex: 0 0 auto;
    width: 180px;
    scroll-snap-align: start;
    text-decoration: none;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
    border-radius: var(--gx-radius);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0 0 10px 0;
}

.gx-hero-strip-card:hover { 
    transform: translateY(-8px); 
    border-color: rgba(0, 230, 118, 0.4);
    box-shadow: 0 12px 40px rgba(0, 230, 118, 0.2), 0 0 0 1px rgba(0, 230, 118, 0.15);
}

.gx-hero-strip-img {
    position: relative;
    width: calc(100% - 8px);
    aspect-ratio: 16/10;
    border-radius: var(--gx-radius-sm);
    overflow: hidden;
    background: var(--gx-card);
    border: 1px solid var(--gx-border);
    margin: 4px auto 10px;
    transition: all 0.35s ease;
}

.gx-hero-strip-card:hover .gx-hero-strip-img {
    border-color: var(--gx-primary);
    box-shadow: 0 8px 30px rgba(0, 230, 118, 0.3);
}

.gx-hero-strip-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gx-hero-strip-card:hover .gx-hero-strip-img img { transform: scale(1.1); }

.gx-hero-strip-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(7, 7, 22, 0.6);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.35s ease;
    color: #fff;
    font-size: 28px;
}

.gx-hero-strip-card:hover .gx-hero-strip-play { opacity: 1; }

.gx-hero-strip-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gx-text);
    text-align: center;
    line-height: 1.3;
    padding: 0 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.gx-hero-strip-card:hover .gx-hero-strip-name { color: var(--gx-primary-light); }

/* ============ SECTION HEADER ============ */
.gx-sect-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 14px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--gx-border);
    position: relative;
}

.gx-sect-head::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--gx-gradient-primary);
    border-radius: 3px;
    box-shadow: 0 0 12px rgba(0, 230, 118, 0.5);
}

.gx-sect-head-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.gx-sect-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: rgba(0, 230, 118, 0.1);
    color: var(--gx-primary-light);
    border: 1px solid rgba(0, 230, 118, 0.2);
    border-radius: var(--gx-radius-full);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
}

.gx-sect-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--gx-text);
    letter-spacing: -0.5px;
    position: relative;
}

.gx-link-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gx-primary-light);
    transition: all 0.3s ease;
    padding: 10px 20px;
    border-radius: var(--gx-radius-full);
    border: 1px solid rgba(0, 230, 118, 0.2);
    background: rgba(0, 230, 118, 0.04);
}

.gx-link-more:hover { 
    color: #fff; 
    gap: 12px; 
    background: rgba(0, 230, 118, 0.18);
    border-color: var(--gx-primary);
    box-shadow: 0 4px 20px rgba(0, 230, 118, 0.15);
}

/* ============ GAME GRID & CARDS (Bento Mixed Layout) ============ */
.gx-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 22px;
}

.gx-card {
    background: var(--gx-card);
    border: 1px solid var(--gx-border);
    border-radius: var(--gx-radius);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.gx-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: var(--gx-gradient-primary);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.gx-card:hover::before {
    opacity: 0.3;
}



/* Card hover - slide-up with glow */
.gx-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 230, 118, 0.6);
    box-shadow: 0 20px 56px rgba(0, 230, 118, 0.25), 0 0 0 1px rgba(0, 230, 118, 0.15);
    z-index: 2;
}

.gx-card-media {
    position: relative;
    overflow: hidden;
    height: 190px;
    background: var(--gx-surface);
}

.gx-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gx-card:hover .gx-card-media img { transform: scale(1.12); }

/* Card hover bottom gradient overlay */
.gx-card-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(0, 230, 118, 0.12) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.gx-card:hover .gx-card-media::after { opacity: 1; }

.gx-card-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(7, 7, 22, 0.5);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 2;
}

.gx-card:hover .gx-card-play { opacity: 1; }

.gx-card-play span {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gx-gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #fff;
    box-shadow: 0 4px 28px rgba(0, 230, 118, 0.6);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    animation: playBtnFloat 2.5s ease-in-out infinite;
}

@keyframes playBtnFloat {
    0%, 100% { box-shadow: 0 4px 28px rgba(0, 230, 118, 0.6); }
    50% { box-shadow: 0 8px 40px rgba(0, 230, 118, 0.85); }
}

.gx-card:hover .gx-card-play span { transform: scale(1.2); }

.gx-card-info { 
    padding: 20px;
    position: relative;
}

.gx-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--gx-text);
    line-height: 1.35;
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.gx-card:hover .gx-card-title { color: var(--gx-primary-light); }

.gx-card-tag {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(0, 230, 118, 0.08);
    color: var(--gx-primary-light);
    border: 1px solid rgba(0, 230, 118, 0.15);
    border-radius: var(--gx-radius-full);
    font-size: 11px;
    font-weight: 600;
}

.gx-card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
}

.gx-card-rating .gx-star { color: #fbbf24; font-size: 15px; text-shadow: 0 0 8px rgba(251, 191, 36, 0.4); }

.gx-card-stats {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--gx-text-muted);
}

/* Card tag overlay on media */
.gx-card-tags {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 6px;
    z-index: 3;
}

.gx-card-badge {
    padding: 4px 11px;
    background: rgba(7, 7, 22, 0.8);
    backdrop-filter: blur(6px);
    color: #fff;
    border-radius: var(--gx-radius-full);
    font-size: 11px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ============ ALTERNATE CARD (list page etc.) ============ */
.gx-card-alt {
    background: var(--gx-card);
    border: 1px solid var(--gx-border);
    border-radius: var(--gx-radius);
    overflow: hidden;
    transition: var(--gx-transition);
    box-shadow: var(--gx-shadow-sm);
}

.gx-card-alt:hover {
    transform: translateY(-5px);
    box-shadow: var(--gx-shadow-lg);
    border-color: var(--gx-primary);
}

.gx-card-alt > a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.gx-card-alt-media {
    position: relative;
    overflow: hidden;
    height: 160px;
    background: var(--gx-surface);
}

.gx-card-alt-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--gx-transition);
}

.gx-card-alt:hover .gx-card-alt-media img { transform: scale(1.05); }

.gx-card-alt .gx-card-play { opacity: 0; }
.gx-card-alt:hover .gx-card-play { opacity: 1; }

.gx-card-alt-body { padding: 14px; }

.gx-card-alt-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--gx-text);
    margin-bottom: 6px;
    line-height: 1.3;
}

.gx-card-alt-title a {
    color: inherit;
    text-decoration: none;
}

.gx-card-alt-title a:hover { color: var(--gx-primary-light); }

.gx-card-alt-meta { margin-bottom: 8px; }

.gx-card-alt-tag {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(0, 230, 118, 0.1);
    color: var(--gx-primary-light);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.gx-card-alt-desc {
    font-size: 13px;
    color: var(--gx-text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gx-btn-mini {
    display: inline-block;
    padding: 8px 18px;
    background: var(--gx-gradient-primary);
    color: #fff;
    border: none;
    border-radius: var(--gx-radius-full);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: var(--gx-transition-fast);
}

.gx-btn-mini:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 230, 118, 0.4);
    color: #fff;
}

/* ============ FEATURES SECTION ============ */
.gx-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.gx-feature {
    background: var(--gx-card);
    border: 1px solid var(--gx-border);
    border-radius: var(--gx-radius-lg);
    padding: 32px;
    text-align: center;
    transition: var(--gx-transition);
}

.gx-feature:hover {
    transform: translateY(-4px);
    border-color: var(--gx-primary);
    box-shadow: var(--gx-shadow-glow);
}

.gx-feature-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--gx-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    font-size: 28px;
    background: rgba(0, 230, 118, 0.12);
    color: var(--gx-primary-light);
}

.gx-feature h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.gx-feature p {
    font-size: 14px;
    color: var(--gx-text-secondary);
    line-height: 1.6;
}

/* ============ FOOTER ============ */
.gx-foot {
    background: var(--gx-surface);
    border-top: 1px solid var(--gx-border);
    padding-top: 48px;
    margin-top: 60px;
}

.gx-foot-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    padding-bottom: 36px;
}

.gx-foot-col .gx-foot-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--gx-text);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gx-foot-col a, .gx-foot-col p, .gx-foot-col li {
    font-size: 13px;
    color: var(--gx-text-secondary);
    line-height: 2;
    display: block;
}

.gx-foot-col a:hover { color: var(--gx-primary-light); }

.gx-foot-brand {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--gx-text);
}

.gx-foot-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gx-social {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.gx-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--gx-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gx-text-secondary);
    font-size: 15px;
    transition: var(--gx-transition-fast);
}

.gx-social a:hover {
    border-color: var(--gx-primary);
    background: rgba(0, 230, 118, 0.1);
    color: var(--gx-primary-light);
    transform: translateY(-2px);
}

.gx-foot-bar {
    border-top: 1px solid var(--gx-border);
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: var(--gx-text-muted);
}

/* ============ DRAWER (global sidebar) ============ */
.gx-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 380px;
    max-width: 90vw;
    height: 100vh;
    height: 100dvh;
    background: var(--gx-card);
    z-index: 9999;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.5);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    pointer-events: none;
}

.gx-drawer.is-open { transform: translateX(0); pointer-events: auto; }

.gx-drawer.is-open { transform: translateX(0); }

.gx-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    display: none;
}

.gx-drawer-overlay.is-open,
.gx-drawer-overlay.is-visible { display: block; }

.gx-drawer-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid var(--gx-border);
    flex-shrink: 0;
}

.gx-drawer-head h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--gx-text);
    margin: 0;
}

.gx-drawer-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    color: var(--gx-text-secondary);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--gx-transition-fast);
}

.gx-drawer-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--gx-text);
}

.gx-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

.gx-drawer-block { margin-bottom: 28px; }

.gx-drawer-block h4 {
    font-size: 12px;
    font-weight: 700;
    color: var(--gx-text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
}

.gx-drawer-nav { display: flex; flex-direction: column; gap: 2px; }

.gx-drawer-nav a {
    display: block;
    padding: 10px 16px;
    border-radius: var(--gx-radius-sm);
    color: var(--gx-text-secondary);
    font-size: 14px;
    transition: var(--gx-transition-fast);
    text-decoration: none;
}

.gx-drawer-nav a:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--gx-text);
}

.gx-drawer-nav a.gx-drawer-nav--home {
    background: rgba(0, 230, 118, 0.08);
    color: var(--gx-primary-light);
    font-weight: 600;
}

.gx-drawer-nav a.is-active {
    background: rgba(0, 230, 118, 0.15);
    color: var(--gx-primary-light);
    font-weight: 600;
    border-left: 3px solid var(--gx-primary);
}

/* Drawer info links */
.gx-drawer-info { display: flex; flex-direction: column; gap: 2px; }
.gx-drawer-info a {
    display: block;
    padding: 8px 12px;
    border-radius: var(--gx-radius-sm);
    color: var(--gx-text-secondary);
    font-size: 13px;
    text-decoration: none;
    transition: var(--gx-transition-fast);
}
.gx-drawer-info a:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--gx-text);
}

/* ============ PAGE HERO (about/contact/policy etc.) ============ */
.gx-page-hero {
    background: var(--gx-gradient-hero);
    border: 1px solid var(--gx-border);
    border-radius: var(--gx-radius-lg);
    padding: 40px 36px;
    margin-bottom: 36px;
    text-align: center;
}

.gx-page-hero h1 {
    font-size: 34px;
    font-weight: 900;
    margin-bottom: 10px;
}

.gx-page-hero p {
    font-size: 15px;
    color: var(--gx-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ============ ABOUT PAGE ============ */
.gx-about-hero { text-align: center; }

.gx-about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin: 36px 0;
}

.gx-about-stat {
    background: var(--gx-card);
    border: 1px solid var(--gx-border);
    border-radius: var(--gx-radius);
    padding: 24px;
    text-align: center;
}

.gx-about-stat strong {
    display: block;
    font-size: 36px;
    font-weight: 800;
    background: var(--gx-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gx-about-stat span {
    font-size: 13px;
    color: var(--gx-text-muted);
}

.gx-about-block {
    background: var(--gx-card);
    border: 1px solid var(--gx-border);
    border-radius: var(--gx-radius-lg);
    padding: 36px;
    margin-bottom: 28px;
}

.gx-about-block.is-alt {
    background: var(--gx-card-alt);
}

.gx-about-block h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 16px;
}

.gx-about-block h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.gx-about-block p {
    font-size: 14px;
    color: var(--gx-text-secondary);
    line-height: 1.8;
}

/* Reading-width container for text-heavy pages */
.gx-narrow {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

/* About heading accent bar */
.gx-about-block h2 {
    position: relative;
    padding-left: 18px;
}
.gx-about-block h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    border-radius: 4px;
    background: var(--gx-gradient-primary);
}

.gx-about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.gx-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.gx-value {
    background: var(--gx-card-alt);
    border: 1px solid var(--gx-border);
    border-radius: var(--gx-radius);
    padding: 28px;
    transition: var(--gx-transition);
}

.gx-value:hover {
    border-color: var(--gx-primary);
    transform: translateY(-3px);
}

.gx-value-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--gx-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: rgba(0, 230, 118, 0.12);
    color: var(--gx-primary-light);
    margin-bottom: 14px;
}

.gx-value h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }

.gx-value p { font-size: 13px; color: var(--gx-text-secondary); line-height: 1.7; }

.gx-team {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.gx-person {
    background: var(--gx-card);
    border: 1px solid var(--gx-border);
    border-radius: var(--gx-radius);
    padding: 28px;
    text-align: center;
    transition: var(--gx-transition);
}

.gx-person:hover {
    border-color: var(--gx-primary);
    transform: translateY(-3px);
}

.gx-person-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--gx-gradient-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    margin-bottom: 14px;
}

.gx-person h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }

.gx-person .gx-person-role {
    font-size: 12px;
    color: var(--gx-primary-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.gx-person p { font-size: 13px; color: var(--gx-text-secondary); line-height: 1.6; }

.gx-timeline {
    position: relative;
    padding-left: 28px;
    margin-top: 24px;
}

.gx-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gx-border);
}

.gx-timeline-item {
    position: relative;
    margin-bottom: 28px;
    padding-left: 20px;
}

.gx-timeline-item::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gx-primary);
    border: 2px solid var(--gx-card);
}

.gx-timeline-item h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.gx-timeline-item .gx-timeline-date {
    font-size: 12px;
    color: var(--gx-primary-light);
    margin-bottom: 6px;
}

.gx-timeline-item p {
    font-size: 13px;
    color: var(--gx-text-secondary);
}

/* ============ CONTACT PAGE ============ */
.gx-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.gx-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gx-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gx-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gx-text-secondary);
}

.gx-field input,
.gx-field textarea,
.gx-field select {
    padding: 12px 16px;
    background: var(--gx-surface);
    border: 1px solid var(--gx-border);
    border-radius: var(--gx-radius-sm);
    color: var(--gx-text);
    font-size: 14px;
    outline: none;
    transition: var(--gx-transition-fast);
}

.gx-field input:focus,
.gx-field textarea:focus,
.gx-field select:focus {
    border-color: var(--gx-primary);
    box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.1);
}

.gx-field textarea { min-height: 140px; resize: vertical; }

.gx-btn-submit {
    padding: 14px 36px;
    background: var(--gx-gradient-primary);
    color: #fff;
    border: none;
    border-radius: var(--gx-radius-full);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--gx-transition);
    align-self: flex-start;
}

.gx-btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 230, 118, 0.4);
}

.gx-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ============ FAQ ============ */
.gx-faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.gx-faq {
    background: var(--gx-card);
    border: 1px solid var(--gx-border);
    border-radius: var(--gx-radius);
    overflow: hidden;
    transition: var(--gx-transition-fast);
}

.gx-faq:hover { border-color: var(--gx-primary); }

.gx-faq-btn {
    width: 100%;
    padding: 18px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    color: var(--gx-text);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.gx-faq-btn::after {
    content: '+';
    font-size: 20px;
    transition: transform 0.3s ease;
}

.gx-faq.is-open .gx-faq-btn::after {
    content: '−';
}

.gx-faq-body {
    padding: 0 22px 18px;
    font-size: 14px;
    color: var(--gx-text-secondary);
    line-height: 1.7;
    display: none;
}

.gx-faq.is-open .gx-faq-body { display: block; }

.gx-faq-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--gx-text);
    margin-bottom: 20px;
}

/* Contact FAQ question accent */
.gx-page h3 {
    position: relative;
    padding-left: 16px;
    margin-top: 24px;
    margin-bottom: 8px;
    font-size: 17px;
    font-weight: 700;
    color: var(--gx-text);
}
.gx-page h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    border-radius: 4px;
    background: var(--gx-gradient-primary);
}

/* FAQ section header (toggle) */
.gx-faq-section-toggle { cursor: pointer; }

/* ============ POLICY PAGES ============ */
.gx-policy-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    align-items: start;
}

.gx-policy-nav {
    position: sticky;
    top: calc(var(--gx-topbar-h) + 24px);
}

.gx-policy-card {
    background: var(--gx-card);
    border: 1px solid var(--gx-border);
    border-radius: var(--gx-radius);
    padding: 22px;
}

.gx-policy-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--gx-text);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gx-border);
}

.gx-policy-toc { display: flex; flex-direction: column; gap: 2px; }

.gx-policy-toc a {
    display: block;
    padding: 8px 12px;
    border-radius: var(--gx-radius-sm);
    color: var(--gx-text-secondary);
    font-size: 13px;
    text-decoration: none;
    transition: var(--gx-transition-fast);
}

.gx-policy-toc a:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--gx-primary-light);
}

.gx-policy-body { min-width: 0; }

.gx-policy-section {
    background: var(--gx-card);
    border: 1px solid var(--gx-border);
    border-radius: var(--gx-radius-lg);
    padding: 36px;
}

.gx-policy-block {
    margin-bottom: 32px;
}

.gx-policy-block:last-child { margin-bottom: 0; }

.gx-policy-block h2 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 14px;
}

.gx-policy-block h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
    margin-top: 20px;
}

.gx-policy-block p,
.gx-policy-block li {
    font-size: 14px;
    color: var(--gx-text-secondary);
    line-height: 1.8;
    margin-bottom: 10px;
}

.gx-policy-block ul {
    padding-left: 20px;
    margin-bottom: 10px;
    list-style: disc;
}

.gx-policy-block ul li { margin-bottom: 6px; }

/* Policy block accent + dividers for clean single-column reading */
.gx-policy-block {
    position: relative;
    padding-top: 30px;
    border-top: 1px solid var(--gx-border);
}
.gx-policy-block:first-of-type { padding-top: 0; border-top: none; }
.gx-policy-block h2 {
    position: relative;
    padding-left: 18px;
}
.gx-policy-block h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    bottom: 3px;
    width: 4px;
    border-radius: 4px;
    background: var(--gx-gradient-primary);
}

/* ============ TOOLBAR (list/tags pages) ============ */
.gx-toolbar {
    background: var(--gx-card);
    border: 1px solid var(--gx-border);
    border-radius: var(--gx-radius);
    padding: 16px 24px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.gx-toolbar-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--gx-text);
}

.gx-toolbar-count {
    font-size: 12px;
    color: var(--gx-text-muted);
    background: rgba(255, 255, 255, 0.04);
    padding: 4px 12px;
    border-radius: var(--gx-radius-full);
}

.gx-toolbar-actions { display: flex; gap: 8px; }

/* ============ PAGINATION ============ */
.gx-pager-wrap,
.pagination-container {
    display: flex;
    justify-content: center;
    margin: 48px 0 36px;
}

.gx-pager-list,
.pagination-list {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.gx-pager-link,
.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    background: var(--gx-card);
    color: var(--gx-text-secondary);
    border: 1px solid var(--gx-border);
    border-radius: var(--gx-radius-sm);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--gx-transition-fast);
    cursor: pointer;
}

.gx-pager-link:hover,
.pagination-link:hover {
    border-color: var(--gx-primary);
    color: var(--gx-primary-light);
    background: rgba(0, 230, 118, 0.06);
    transform: translateY(-2px);
}

.gx-pager-item.is-active .gx-pager-link,
.pagination-item.active .pagination-link,
.pagination-link.current {
    background: var(--gx-gradient-primary);
    color: #fff;
    border-color: transparent;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(0, 230, 118, 0.3);
    cursor: default;
}

.gx-pager-item.is-active .gx-pager-link:hover,
.pagination-item.active .pagination-link:hover,
.pagination-link.current:hover { transform: none; }

.gx-pager-link.gx-pager-link--prev,
.gx-pager-link.gx-pager-link--next,
.pagination-link.prev,
.pagination-link.next {
    font-size: 18px;
    font-weight: 700;
}

.gx-pager-link.gx-pager-link--prev:hover,
.gx-pager-link.gx-pager-link--next:hover,
.pagination-link.prev:hover,
.pagination-link.next:hover {
    background: var(--gx-primary);
    color: #fff;
    border-color: var(--gx-primary);
}

.gx-pager-link.is-disabled,
.pagination-link.disabled {
    color: var(--gx-text-muted);
    background: var(--gx-surface);
    border-color: var(--gx-border);
    cursor: not-allowed;
    opacity: 0.5;
    pointer-events: none;
}

.gx-pager-link.is-disabled:hover,
.pagination-link.disabled:hover {
    transform: none;
    background: var(--gx-surface);
    color: var(--gx-text-muted);
}

/* ============ TAGS PAGE ============ */
.gx-tag-block { margin-bottom: 48px; }

.gx-tag-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.gx-tag-head h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--gx-text);
    margin: 0;
}

.gx-tag-head .gx-tag-head-count {
    font-size: 12px;
    color: var(--gx-text-muted);
    background: var(--gx-surface);
    padding: 4px 12px;
    border-radius: var(--gx-radius-full);
}

.gx-tag-head .gx-tag-head-icon { font-size: 28px; }

.gx-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.gx-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: var(--gx-card);
    border: 1px solid var(--gx-border);
    border-radius: var(--gx-radius-full);
    font-size: 14px;
    font-weight: 500;
    color: var(--gx-text-secondary);
    cursor: pointer;
    transition: var(--gx-transition);
    text-decoration: none;
}

.gx-tag-pill:hover {
    border-color: var(--gx-primary);
    background: rgba(0, 230, 118, 0.06);
    color: var(--gx-primary-light);
    transform: translateY(-3px);
    box-shadow: var(--gx-shadow-md);
}

.gx-tag-pill .gx-tag-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.gx-tag-pill .gx-tag-count {
    font-size: 11px;
    color: var(--gx-text-muted);
    background: rgba(255, 255, 255, 0.04);
    padding: 2px 8px;
    border-radius: var(--gx-radius-full);
}

.gx-tag-dot--genre { background: #00e676; }
.gx-tag-dot--status { background: #f59e0b; }
.gx-tag-dot--feature { background: #10b981; }
.gx-tag-dot--platform { background: #06b6d4; }
.gx-tag-dot--theme { background: #00e5ff; }

.gx-tag-pill.is-lg {
    padding: 14px 28px;
    font-size: 17px;
    font-weight: 700;
    border-width: 2px;
}

.gx-tag-pill.is-md {
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 600;
}

.gx-tag-pill.is-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* ============ DETAIL PAGE ============ */
.gx-player {
    margin-bottom: 32px;
    border-radius: var(--gx-radius-lg);
    overflow: hidden;
    background: #000;
}

.gx-crumb {
    font-size: 13px;
    color: var(--gx-text-muted);
    margin-bottom: 14px;
}

.gx-crumb a { color: var(--gx-primary-light); }

.gx-crumb a:hover { text-decoration: underline; }

.gx-detail-head { margin-bottom: 24px; }

.gx-detail-title {
    font-size: 30px;
    font-weight: 800;
    color: var(--gx-text);
    margin-bottom: 12px;
    line-height: 1.3;
}

.gx-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 14px;
}

.gx-detail-tags .gx-detail-meta {
    font-size: 13px;
    color: var(--gx-text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.gx-tag {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(0, 230, 118, 0.08);
    color: var(--gx-primary-light);
    border-radius: var(--gx-radius-full);
    font-size: 12px;
    font-weight: 600;
}

.gx-detail-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    align-items: center;
}

.gx-btn-play {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    background: var(--gx-gradient-primary);
    color: #fff;
    border: none;
    border-radius: var(--gx-radius-full);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--gx-transition);
}

.gx-btn-play:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 230, 118, 0.5);
}

.gx-share {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* .gx-detail-grid / .gx-detail-main now defined in DETAIL PAGE OVERRIDES section below */

.gx-detail-block {
    background: var(--gx-card);
    border: 1px solid var(--gx-border);
    border-radius: var(--gx-radius);
    padding: 28px;
}

.gx-detail-block h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gx-text);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gx-border);
}

.gx-detail-block p {
    font-size: 14px;
    color: var(--gx-text-secondary);
    line-height: 1.8;
}

.gx-detail-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gx-detail-side-card {
    background: var(--gx-card);
    border: 1px solid var(--gx-border);
    border-radius: var(--gx-radius);
    padding: 22px;
}

.gx-detail-side-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--gx-text);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gx-border);
}

/* Game iframe */
.gx-iframe-wrapper {
    width: 100%;
    border-radius: var(--gx-radius);
    overflow: hidden;
    background: #000;
}

.gx-iframe-wrapper iframe {
    width: 100%;
    border: none;
    display: block;
}

/* Game stats — see DETAIL PAGE OVERRIDES section for .gx-game-stat-row / .gx-game-stat-val */

.gx-game-stat-lbl {
    display: block;
    font-size: 11px;
    color: var(--gx-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============ SIDEBAR MINI CARDS ============ */
.gx-side-links { display: flex; flex-direction: column; gap: 2px; }

.gx-side-link {
    display: block;
    padding: 10px 14px;
    border-radius: var(--gx-radius-sm);
    color: var(--gx-text-secondary);
    font-size: 14px;
    transition: var(--gx-transition-fast);
    text-decoration: none;
}

.gx-side-link:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--gx-text);
}

/* .gx-mini-grid / .gx-mini-card now defined in DETAIL PAGE OVERRIDES section below */

/* ============ PROFILE PAGE ============ */
.gx-profile-wrap { max-width: 1060px; margin: 0 auto; }

.gx-profile-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    align-items: start;
}

.gx-profile-side { display: flex; flex-direction: column; gap: 20px; }

.gx-profile-body { display: flex; flex-direction: column; gap: 20px; }

.gx-profile-card {
    background: var(--gx-card);
    border: 1px solid var(--gx-border);
    border-radius: var(--gx-radius);
    padding: 26px;
}

.gx-profile-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gx-text);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gx-border);
}

.gx-profile-header {
    text-align: center;
    padding: 28px;
    background: var(--gx-card);
    border: 1px solid var(--gx-border);
    border-radius: var(--gx-radius);
}

.gx-profile-hero-bg {
    background: linear-gradient(135deg, #00e676 0%, #00e5ff 100%);
}

.gx-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    margin: 0 auto 16px;
    border: 3px solid rgba(255, 255, 255, 0.25);
}

.gx-profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.gx-profile-nav { display: flex; flex-direction: column; gap: 4px; }

.gx-profile-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--gx-radius-sm);
    color: var(--gx-text-secondary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--gx-transition-fast);
}

.gx-profile-nav-link:hover,
.gx-profile-nav-link.is-active {
    background: rgba(0, 230, 118, 0.1);
    color: var(--gx-primary-light);
}

.gx-profile-section {
    background: var(--gx-card);
    border: 1px solid var(--gx-border);
    border-radius: var(--gx-radius);
    padding: 28px;
}

.gx-profile-section h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gx-text);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gx-border);
}

.gx-profile-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.gx-profile-info-row:last-child { border-bottom: none; }

.gx-profile-info-lbl {
    font-size: 14px;
    color: var(--gx-text-secondary);
    font-weight: 500;
}

.gx-profile-info-val {
    font-size: 14px;
    color: var(--gx-text);
    font-weight: 600;
    text-align: right;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gx-profile-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: var(--gx-radius-full);
    font-size: 12px;
    font-weight: 600;
}

.gx-profile-badge--free {
    background: rgba(0, 230, 118, 0.1);
    color: var(--gx-primary-light);
}

.gx-profile-badge--premium {
    background: var(--gx-gradient-accent);
    color: #fff;
}

.gx-profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 16px;
}

.gx-profile-stat {
    text-align: center;
    padding: 14px 8px;
    background: var(--gx-surface);
    border-radius: var(--gx-radius-sm);
}

.gx-profile-stat .gx-stat-num {
    font-size: 24px;
    font-weight: 800;
    color: var(--gx-primary-light);
}

.gx-profile-stat .gx-stat-lbl {
    font-size: 11px;
    color: var(--gx-text-muted);
    margin-top: 2px;
}

/* Profile mini games grid */
.gx-profile-mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.gx-profile-mini-card {
    background: var(--gx-surface);
    border-radius: var(--gx-radius-sm);
    overflow: hidden;
    transition: var(--gx-transition-fast);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.gx-profile-mini-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--gx-shadow-md);
}

.gx-profile-mini-thumb {
    width: 100%;
    height: 100px;
    background: var(--gx-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.gx-profile-mini-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gx-profile-mini-info { padding: 10px 12px; }

.gx-profile-mini-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--gx-text);
    margin-bottom: 4px;
}

.gx-profile-mini-cat {
    font-size: 11px;
    color: var(--gx-text-muted);
}

/* Profile empty state */
.gx-profile-empty {
    text-align: center;
    padding: 40px 20px;
}

.gx-profile-empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.gx-profile-empty p {
    font-size: 14px;
    color: var(--gx-text-muted);
    margin-bottom: 12px;
}

.gx-profile-empty a {
    display: inline-block;
    color: var(--gx-primary-light);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.gx-profile-empty a:hover { text-decoration: underline; }

/* Profile form */
.gx-profile-form { display: flex; flex-direction: column; gap: 18px; }

.gx-field-g { display: flex; flex-direction: column; gap: 6px; }

.gx-field-g label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gx-text-secondary);
}

.gx-field-g input,
.gx-field-g textarea {
    padding: 10px 14px;
    border: 1px solid var(--gx-border);
    border-radius: var(--gx-radius-sm);
    background: var(--gx-surface);
    color: var(--gx-text);
    font-size: 14px;
    outline: none;
    transition: var(--gx-transition-fast);
}

.gx-field-g input:focus,
.gx-field-g textarea:focus {
    border-color: var(--gx-primary);
}

.gx-btn-save {
    padding: 12px 32px;
    background: var(--gx-gradient-primary);
    color: #fff;
    border: none;
    border-radius: var(--gx-radius-full);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--gx-transition);
    align-self: flex-start;
}

.gx-btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 230, 118, 0.35);
}

.gx-btn-clear {
    padding: 12px 24px;
    background: transparent;
    color: var(--gx-text-secondary);
    border: 1px solid var(--gx-border);
    border-radius: var(--gx-radius-full);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--gx-transition-fast);
}

.gx-btn-clear:hover {
    border-color: var(--gx-error);
    color: var(--gx-error);
}

.gx-profile-alert {
    padding: 12px 16px;
    border-radius: var(--gx-radius-sm);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 12px;
}

.gx-profile-alert.is-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--gx-success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.gx-profile-alert.is-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--gx-error);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Profile activity */
.gx-profile-activity { display: flex; flex-direction: column; }

.gx-profile-activity-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.gx-profile-activity-item:last-child { border-bottom: none; }

.gx-profile-activity-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--gx-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.gx-profile-activity-icon.act-play { background: rgba(16, 185, 129, 0.1); color: var(--gx-success); }
.gx-profile-activity-icon.act-fav { background: rgba(245, 158, 11, 0.1); color: var(--gx-accent-warm); }
.gx-profile-activity-icon.act-login { background: rgba(0, 230, 118, 0.1); color: var(--gx-primary-light); }

.gx-profile-activity-text { flex: 1; }

.gx-profile-activity-text p {
    font-size: 14px;
    color: var(--gx-text);
    font-weight: 500;
    margin: 0;
}

.gx-profile-activity-text span {
    font-size: 12px;
    color: var(--gx-text-muted);
}

/* Profile actions */
.gx-profile-actions { display: flex; gap: 12px; }

.gx-profile-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--gx-radius-full);
    border: 1px solid rgba(239, 68, 68, 0.3);
    background: var(--gx-card);
    color: var(--gx-error);
    cursor: pointer;
    transition: var(--gx-transition-fast);
}

.gx-profile-action-btn:hover {
    background: var(--gx-error);
    color: #fff;
    border-color: var(--gx-error);
}

.gx-profile-loading {
    text-align: center;
    padding: 40px;
}

.gx-profile-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gx-border);
    border-top-color: var(--gx-primary);
    border-radius: 50%;
    animation: gx-spin 0.8s linear infinite;
    margin: 0 auto 12px;
}

.gx-profile-loading-text {
    font-size: 14px;
    color: var(--gx-text-muted);
}

.gx-profile-load-more { text-align: center; margin-top: 16px; }

/* ============ AUTH MODAL ============ */
.gx-auth-overlay {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.gx-auth-card {
    background: var(--gx-card);
    border: 1px solid var(--gx-border);
    border-radius: var(--gx-radius-lg);
    padding: 40px;
    max-width: 460px;
    width: 100%;
    box-shadow: var(--gx-shadow-lg);
    position: relative;
}

.gx-auth-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    color: var(--gx-text-secondary);
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--gx-transition-fast);
}

.gx-auth-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--gx-text);
}

.gx-auth-head {
    text-align: center;
    margin-bottom: 28px;
}

.gx-auth-head h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}

.gx-auth-head p {
    font-size: 14px;
    color: var(--gx-text-secondary);
}

.gx-auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 28px;
    background: var(--gx-surface);
    border-radius: var(--gx-radius-full);
    padding: 4px;
}

.gx-auth-tab {
    flex: 1;
    padding: 10px 20px;
    border-radius: var(--gx-radius-full);
    font-size: 14px;
    font-weight: 600;
    border: none;
    background: transparent;
    color: var(--gx-text-muted);
    cursor: pointer;
    transition: var(--gx-transition-fast);
}

.gx-auth-tab.is-active {
    background: var(--gx-gradient-primary);
    color: #fff;
}

.gx-auth-form { display: none; flex-direction: column; gap: 18px; }

.gx-auth-form.is-active { display: flex; }

.gx-auth-foot {
    text-align: center;
    margin-top: 8px;
    font-size: 13px;
    color: var(--gx-text-muted);
}

.gx-auth-foot a { color: var(--gx-primary-light); font-weight: 600; }

.gx-btn-auth {
    padding: 14px;
    background: var(--gx-gradient-primary);
    color: #fff;
    border: none;
    border-radius: var(--gx-radius-full);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--gx-transition-fast);
}

.gx-btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 230, 118, 0.4);
}

.gx-btn-auth:disabled { opacity: 0.6; cursor: not-allowed; }
.gx-btn-auth.loading { opacity: 0.7; cursor: wait; }

.alert-box {
    padding: 12px 16px;
    border-radius: var(--gx-radius-sm);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    display: none;
}

.alert-box.show { display: block; }
.alert-box.success { background: rgba(16, 185, 129, 0.1); color: var(--gx-success); border: 1px solid rgba(16, 185, 129, 0.2); }
.alert-box.error { background: rgba(239, 68, 68, 0.1); color: var(--gx-error); border: 1px solid rgba(239, 68, 68, 0.2); }

.password-toggle { position: relative; }
.password-toggle input { padding-right: 42px; }
.toggle-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--gx-text-muted);
    font-size: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gx-text-secondary);
}

.form-group input {
    padding: 12px 16px;
    background: var(--gx-surface);
    border: 1px solid var(--gx-border);
    border-radius: var(--gx-radius-sm);
    color: var(--gx-text);
    font-size: 14px;
    outline: none;
    transition: var(--gx-transition-fast);
}

.form-group input:focus { border-color: var(--gx-primary); }

.form-group.has-error input { border-color: var(--gx-error); }

.error-text {
    font-size: 12px;
    color: var(--gx-error);
    margin-top: 4px;
}

/* ============ COMMENTS SYSTEM ============ */
.gx-comments { margin-top: 40px; }

.gx-comments-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--gx-border);
}

.gx-comments-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--gx-text);
}

.gx-comments-count {
    font-size: 14px;
    color: var(--gx-text-secondary);
    background: rgba(0, 230, 118, 0.08);
    padding: 4px 12px;
    border-radius: var(--gx-radius-full);
}

.gx-comments-list { display: flex; flex-direction: column; gap: 18px; }

.gx-comments-loading { text-align: center; padding: 30px; color: var(--gx-text-secondary); }

.gx-comments-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--gx-text-secondary);
}

.gx-comments-empty-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.4; }


.gx-comment-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.gx-comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gx-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--gx-text-secondary);
    flex-shrink: 0;
}

.gx-comment-author {
    font-size: 14px;
    font-weight: 600;
    color: var(--gx-text);
}

.gx-comment-date {
    font-size: 12px;
    color: var(--gx-text-muted);
    margin-left: auto;
}

.gx-comment-body {
    font-size: 14px;
    color: var(--gx-text-secondary);
    line-height: 1.7;
    padding: 12px 16px;
    background: var(--gx-surface);
    border-radius: var(--gx-radius-sm);
    margin-left: 52px;
}

.gx-comment-form {
    margin-top: 24px;
    padding: 22px;
    background: var(--gx-card);
    border: 1px solid var(--gx-border);
    border-radius: var(--gx-radius);
}

.gx-comment-form-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.gx-comment-form-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gx-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--gx-text-muted);
}

.gx-comment-form-author {
    font-size: 14px;
    font-weight: 600;
    color: var(--gx-text);
}

.gx-comment-form-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.gx-star {
    font-size: 22px;
    color: var(--gx-border);
    cursor: pointer;
    transition: color 0.15s;
}

.gx-star:hover, .gx-star.is-active { color: #fbbf24; }

.gx-comment-form-textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 1px solid var(--gx-border);
    border-radius: var(--gx-radius-sm);
    background: var(--gx-surface);
    color: var(--gx-text);
    font-size: 14px;
    resize: vertical;
    outline: none;
    transition: var(--gx-transition-fast);
}

.gx-comment-form-textarea:focus { border-color: var(--gx-primary); }

.gx-comment-form-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.gx-comment-hint { font-size: 13px; color: var(--gx-text-muted); }

.gx-btn-comment {
    padding: 10px 24px;
    background: var(--gx-gradient-primary);
    color: #fff;
    border: none;
    border-radius: var(--gx-radius-full);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--gx-transition-fast);
}

.gx-btn-comment:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 230, 118, 0.4);
}

.gx-comments-load-more { text-align: center; margin-top: 18px; }

.gx-btn-load-more {
    padding: 10px 28px;
    background: var(--gx-card);
    color: var(--gx-text-secondary);
    border: 1px solid var(--gx-border);
    border-radius: var(--gx-radius-full);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--gx-transition-fast);
}

.gx-btn-load-more:hover {
    color: var(--gx-text);
    border-color: var(--gx-primary);
}

/* ============ COOKIE BANNER ============ */
.gx-cookie {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gx-card);
    border-top: 1px solid var(--gx-border);
    padding: 16px 28px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.gx-cookie-text {
    flex: 1;
    font-size: 13px;
    color: var(--gx-text-secondary);
    line-height: 1.6;
    min-width: 250px;
}

.gx-cookie-text a { color: var(--gx-primary-light); text-decoration: underline; }

.gx-cookie-btns { display: flex; gap: 8px; flex-shrink: 0; }

.gx-btn-cookie {
    padding: 8px 22px;
    border-radius: var(--gx-radius-full);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--gx-transition-fast);
    border: none;
}

.gx-btn-cookie.accept {
    background: var(--gx-gradient-primary);
    color: #fff;
}

.gx-btn-cookie.decline {
    background: transparent;
    color: var(--gx-text-secondary);
    border: 1px solid var(--gx-border);
}

.gx-btn-cookie.decline:hover { background: rgba(255, 255, 255, 0.04); }

/* ============ CONFIRM MODAL ============ */
.gx-confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.gx-confirm-modal {
    background: var(--gx-card);
    border: 1px solid var(--gx-border);
    border-radius: var(--gx-radius-lg);
    padding: 32px;
    max-width: 420px;
    width: 100%;
    box-shadow: var(--gx-shadow-lg);
}

.gx-confirm-head { text-align: center; margin-bottom: 18px; }

.gx-confirm-icon { font-size: 48px; margin-bottom: 12px; }

.gx-confirm-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--gx-text);
    margin-bottom: 6px;
}

.gx-confirm-body { margin-bottom: 22px; }

.gx-confirm-text {
    font-size: 14px;
    color: var(--gx-text-secondary);
    line-height: 1.7;
    text-align: center;
}

.gx-confirm-actions { display: flex; gap: 10px; justify-content: center; }

.gx-btn-confirm {
    padding: 10px 28px;
    border-radius: var(--gx-radius-full);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--gx-transition-fast);
    border: none;
}

.gx-btn-confirm.cancel {
    background: rgba(255, 255, 255, 0.06);
    color: var(--gx-text-secondary);
}

.gx-btn-confirm.cancel:hover { background: rgba(255, 255, 255, 0.1); }

.gx-btn-confirm.danger {
    background: var(--gx-gradient-accent);
    color: #fff;
}

.gx-btn-confirm.danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
}

/* ============ OVERLAY ============ */
.gx-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    display: none;
}

.gx-overlay.is-open { display: block; }

.gx-overlay-exit {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--gx-transition-fast);
}

.gx-overlay-exit:hover { background: rgba(255, 255, 255, 0.2); }

/* ============ TOAST NOTIFICATION ============ */
.gx-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 300px;
    max-width: 420px;
    background: var(--gx-card);
    border-radius: var(--gx-radius);
    box-shadow: var(--gx-shadow-lg);
    z-index: 10000;
    overflow: hidden;
    animation: gx-toast-in 0.3s ease;
}

.gx-toast.is-hiding { animation: gx-toast-out 0.3s ease forwards; }

.gx-toast.is-success { border-left: 4px solid var(--gx-success); }
.gx-toast.is-error { border-left: 4px solid var(--gx-error); }

.gx-toast-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 14px;
}

.gx-toast.is-success .gx-toast-head { color: var(--gx-success); background: rgba(16, 185, 129, 0.08); }
.gx-toast.is-error .gx-toast-head { color: var(--gx-error); background: rgba(239, 68, 68, 0.08); }

.gx-toast-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
    line-height: 1;
    padding: 0 4px;
}

.gx-toast-close:hover { opacity: 1; }

.gx-toast-body {
    padding: 12px 16px;
    font-size: 14px;
    color: var(--gx-text-secondary);
    line-height: 1.5;
}

@keyframes gx-toast-in {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes gx-toast-out {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(100px); }
}

/* ============ EMPTY STATE ============ */
.gx-empty {
    text-align: center;
    padding: 60px 20px;
    max-width: 500px;
    margin: 0 auto;
}

.gx-empty-icon {
    font-size: 64px;
    color: var(--gx-border);
    margin-bottom: 20px;
}

.gx-empty p {
    color: var(--gx-text-secondary);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 10px;
}

.gx-empty-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 28px;
    flex-wrap: wrap;
}

.gx-btn-empty {
    display: inline-block;
    padding: 12px 28px;
    background: var(--gx-gradient-primary);
    color: #fff;
    border-radius: var(--gx-radius-full);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--gx-transition);
}

.gx-btn-empty:hover {
    transform: translateY(-2px);
    box-shadow: var(--gx-shadow-md);
    color: #fff;
}

.gx-btn-empty--secondary {
    display: inline-block;
    padding: 12px 28px;
    background: var(--gx-card);
    color: var(--gx-text);
    border: 2px solid var(--gx-border);
    border-radius: var(--gx-radius-full);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--gx-transition-fast);
}

.gx-btn-empty--secondary:hover {
    border-color: var(--gx-primary);
    color: var(--gx-primary-light);
}

/* ============ FAVORITE / RATING ICONS ============ */
.gx-rating-star { color: #fbbf24; font-size: 16px; }

.gx-fav-icon {
    font-size: 22px;
    cursor: pointer;
    transition: transform 0.2s;
    color: var(--gx-text-secondary);
}

.gx-fav-icon:hover {
    transform: scale(1.2);
    color: #ef4444;
}

/* Action buttons */
.gx-btn-remove {
    padding: 8px 18px;
    background: transparent;
    color: var(--gx-error);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--gx-radius-full);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--gx-transition-fast);
}

.gx-btn-remove:hover { background: rgba(239, 68, 68, 0.1); }

.gx-btn-mini-play {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: var(--gx-gradient-primary);
    color: #fff;
    border: none;
    border-radius: var(--gx-radius-full);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--gx-transition-fast);
}

.gx-btn-mini-play:hover { transform: translateY(-1px); }

/* ============ AVATAR UPLOAD ============ */
.gx-avatar-section {
    padding: 22px;
    background: var(--gx-card);
    border-radius: var(--gx-radius);
    margin-bottom: 20px;
}

.gx-avatar-section-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.gx-avatar-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--gx-text);
}

.gx-avatar-section-info {
    font-size: 12px;
    color: var(--gx-text-muted);
}

.gx-avatar-preview-wrap { text-align: center; margin-bottom: 16px; }

.gx-avatar-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gx-surface);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--gx-text-muted);
    border: 3px solid var(--gx-border);
    overflow: hidden;
}

.gx-avatar-preview img { width: 100%; height: 100%; object-fit: cover; }

.gx-avatar-btns { display: flex; gap: 10px; justify-content: center; }

.gx-btn-upload {
    padding: 8px 20px;
    background: var(--gx-gradient-primary);
    color: #fff;
    border: none;
    border-radius: var(--gx-radius-full);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--gx-transition-fast);
}

.gx-btn-upload:hover { transform: translateY(-2px); }

.gx-btn-remove-avatar {
    padding: 8px 20px;
    background: transparent;
    color: var(--gx-error);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--gx-radius-full);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--gx-transition-fast);
}

.gx-btn-remove-avatar:hover { background: rgba(239, 68, 68, 0.1); }

.gx-file-input { display: none; }

/* ============ GAME ACTIONS ============ */
.gx-game-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.gx-game-image {
    width: 100%;
    border-radius: var(--gx-radius);
    overflow: hidden;
}

.gx-game-image img { width: 100%; display: block; }

/* ============ DETAIL PAGE EXTENDED ============ */
.gx-detail-content { display: flex; flex-direction: column; gap: 30px; }

.gx-detail-content-block {
    background: var(--gx-card);
    border: 1px solid var(--gx-border);
    border-radius: var(--gx-radius);
    padding: 28px;
}

.gx-detail-content-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--gx-text);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gx-border);
}

.gx-detail-content-text {
    font-size: 14px;
    color: var(--gx-text-secondary);
    line-height: 1.8;
}

/* ============ DRAWER AUTH ============ */
.gx-drawer-auth { margin-top: 8px; }

/* ============ SIDEPANEL (left sidebar replaced old sidebar) ============ */
.gx-sidepanel {
    width: 260px;
    flex-shrink: 0;
    height: calc(100vh - var(--gx-topbar-h));
    position: sticky;
    top: var(--gx-topbar-h);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 0;
}
.gx-sidepanel-body { display: flex; flex-direction: column; gap: 12px; padding: 0 12px; }
.gx-sidepanel::-webkit-scrollbar { width: 4px; }
.gx-sidepanel::-webkit-scrollbar-track { background: transparent; }
.gx-sidepanel::-webkit-scrollbar-thumb { background: var(--gx-border); border-radius: 99px; }

.gx-sidepanel-auth {
    padding: 8px 4px;
    margin-bottom: 8px;
}
.gx-sidepanel-auth .gx-auth-group { display: flex; flex-direction: column; gap: 6px; }
.gx-sidepanel-auth .gx-auth-btn {
    width: 100%;
    justify-content: center;
    padding: 10px 16px;
    font-size: 13px;
}

.gx-sidepanel-user {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 12px;
    background: var(--gx-card);
    border-radius: var(--gx-radius);
    border: 1px solid var(--gx-border);
    gap: 8px;
}
.gx-sidepanel-user .gx-user-avatar {
    width: 48px;
    height: 48px;
    font-size: 20px;
}
.gx-sidepanel-user .gx-user-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--gx-text);
}
.gx-sidepanel-link {
    display: block;
    text-align: center;
    font-size: 12px;
    color: var(--gx-primary-light);
    text-decoration: none;
    font-weight: 500;
    padding: 4px 0;
}
.gx-sidepanel-link:hover { text-decoration: underline; }
.gx-sidepanel-logout {
    display: block;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gx-error);
    background: rgba(239, 68, 68, 0.08);
    border: none;
    border-radius: var(--gx-radius-full);
    cursor: pointer;
    transition: var(--gx-transition-fast);
    text-decoration: none;
    text-align: center;
}
.gx-sidepanel-logout:hover {
    background: rgba(239, 68, 68, 0.16);
}

.gx-sidepanel-block {
    margin-bottom: 4px;
}
.gx-sidepanel-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--gx-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 12px 6px;
    margin: 0;
}
.gx-sidepanel-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.gx-sidepanel-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: var(--gx-radius-sm);
    color: var(--gx-text-secondary);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--gx-transition-fast);
}
.gx-sidepanel-item:hover {
    background: rgba(0, 230, 118, 0.08);
    color: var(--gx-primary-light);
}
.gx-sidepanel-item .icon {
    width: 20px;
    text-align: center;
    font-size: 14px;
    flex-shrink: 0;
}

.gx-sidepanel-collapse {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    width: 100%;
    background: transparent;
    border: none;
    border-radius: var(--gx-radius-sm);
    color: var(--gx-text-muted);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--gx-transition-fast);
    text-align: left;
}
.gx-sidepanel-collapse:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--gx-text);
}
.gx-sidepanel-arrow {
    margin-left: auto;
    font-size: 10px;
    transition: transform 0.2s ease;
}
.gx-sidepanel-collapse[aria-expanded="false"] .gx-sidepanel-arrow {
    transform: rotate(-90deg);
}
.gx-sidepanel-collapse[aria-expanded="false"] + nav,
#info-pages.collapsed { display: none; }

/* ============ LEGACY AUTH (in main.js for overlay login forms) ============ */
.gx-alert {
    padding: 12px 16px;
    border-radius: var(--gx-radius-sm);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    display: none;
}
.gx-alert.is-visible { display: block; }
.gx-alert.success { background: rgba(16, 185, 129, 0.1); color: var(--gx-success); border: 1px solid rgba(16, 185, 129, 0.2); }
.gx-alert.error { background: rgba(239, 68, 68, 0.1); color: var(--gx-error); border: 1px solid rgba(239, 68, 68, 0.2); }

.gx-field.has-error input,
.gx-field.has-error textarea { border-color: var(--gx-error); }
.gx-field-error {
    font-size: 12px;
    color: var(--gx-error);
    margin-top: 4px;
}

.gx-pass-toggle { position: relative; }
.gx-pass-toggle input { padding-right: 42px; }
.gx-pass-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--gx-text-muted);
    font-size: 16px;
}

.gx-drawer-auth .gx-auth-group { flex-direction: column; gap: 6px; }

.gx-drawer-auth .gx-auth-btn { width: 100%; justify-content: center; }

.gx-drawer-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--gx-surface);
    border-radius: var(--gx-radius-sm);
    margin-top: 8px;
}

/* ============ PROFILE-TUNED OVERRIDES ============ */
.gx-profile-grid {
    display: flex;
    gap: 2rem;
}
.gx-profile-side {
    width: 280px;
    flex-shrink: 0;
}
.gx-profile-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--gx-card);
    border-radius: var(--gx-radius-lg);
    box-shadow: var(--gx-shadow-md);
    margin-bottom: 1.5rem;
}
.gx-profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gx-gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
}
.gx-profile-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.gx-profile-info { min-width: 0; }
.gx-profile-info h2 {
    font-size: 1.125rem;
    color: var(--gx-text);
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.gx-profile-info p {
    color: var(--gx-text-secondary);
    font-size: 0.875rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.gx-profile-nav {
    background: var(--gx-card);
    border-radius: var(--gx-radius-lg);
    box-shadow: var(--gx-shadow-md);
    overflow: hidden;
}
.gx-profile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    color: var(--gx-text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--gx-transition);
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: var(--gx-font);
    border-left: 3px solid transparent;
}
.gx-profile-nav-link:hover {
    background: var(--gx-surface);
    color: var(--gx-primary-light);
}
.gx-profile-nav-link.is-active {
    background: rgba(0, 230, 118, 0.15);
    color: var(--gx-primary-light);
    border-left-color: var(--gx-primary);
}
.gx-profile-nav-link i { width: 20px; text-align: center; }

.gx-profile-main { flex: 1; min-width: 0; }
.gx-profile-panel {
    background: var(--gx-card);
    border-radius: var(--gx-radius-lg);
    box-shadow: var(--gx-shadow-md);
    padding: 1.5rem;
}
.gx-profile-tab { display: none; }
.gx-profile-tab.is-active { display: block; }
.gx-profile-heading {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--gx-text);
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--gx-border);
}
.gx-profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.gx-stat-val { font-size: 1.5rem; font-weight: 700; color: var(--gx-primary-light); }
.gx-stat-label { font-size: 0.875rem; color: var(--gx-text-secondary); }

/* Profile Mini Cards */
.gx-profile-mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}
.gx-profile-mini-card {
    background: var(--gx-surface);
    border-radius: var(--gx-radius);
    overflow: hidden;
    transition: var(--gx-transition);
    text-decoration: none;
    display: block;
    border: 1px solid var(--gx-border);
}
.gx-profile-mini-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--gx-shadow-lg);
    border-color: var(--gx-primary);
}
.gx-profile-mini-card a { text-decoration: none; color: inherit; display: block; }
.gx-mini-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}
.gx-mini-body { padding: 0.75rem; }
.gx-mini-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gx-text);
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.gx-mini-meta { font-size: 0.75rem; color: var(--gx-text-muted); }
.gx-mini-actions { padding: 0.4rem 0.6rem; border-top: 1px solid var(--gx-border); }
.gx-btn-unfav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    width: 100%;
    padding: 0.5rem;
    background: rgba(239, 68, 68, 0.1);
    color: var(--gx-error);
    border: none;
    border-radius: var(--gx-radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--gx-transition);
    font-family: var(--gx-font);
}
.gx-btn-unfav:hover { background: var(--gx-error); color: #fff; }

/* Profile Form */
.gx-profile-form { max-width: 500px; }
.gx-field-g { margin-bottom: 1.25rem; }
.gx-field-g label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--gx-text);
    font-weight: 500;
    font-size: 0.875rem;
}
.gx-field-g input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gx-border);
    border-radius: var(--gx-radius);
    font-size: 0.95rem;
    font-family: var(--gx-font);
    transition: var(--gx-transition);
    background: var(--gx-surface);
    color: var(--gx-text);
    box-sizing: border-box;
}
.gx-field-g input:focus {
    outline: none;
    border-color: var(--gx-primary);
    box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.25);
}
.gx-field-g input:disabled {
    background: var(--gx-surface);
    color: var(--gx-text-muted);
    opacity: 0.6;
}

/* Avatar upload zone */
.gx-avatar-zone {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--gx-surface);
    border-radius: var(--gx-radius);
    border: 2px solid var(--gx-border);
}
.gx-avatar-zone-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.gx-avatar-zone-title { font-size: 0.95rem; font-weight: 600; color: var(--gx-text); }
.gx-avatar-row { display: flex; align-items: center; gap: 1.5rem; }
.gx-avatar-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gx-gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #fff;
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
    border: 3px solid var(--gx-border);
    transition: var(--gx-transition);
}
.gx-avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.gx-avatar-preview:hover { border-color: var(--gx-primary); transform: scale(1.05); }
.gx-avatar-actions { display: flex; flex-direction: column; gap: 0.75rem; }
.gx-btn-upload {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--gx-primary);
    color: #fff;
    border: none;
    border-radius: var(--gx-radius);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--gx-transition);
    font-family: var(--gx-font);
}
.gx-btn-upload:hover { background: var(--gx-primary-light); transform: translateY(-1px); }
.gx-btn-remove-av {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: transparent;
    color: var(--gx-text-secondary);
    border: 2px solid var(--gx-border);
    border-radius: var(--gx-radius);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--gx-transition);
    font-family: var(--gx-font);
}
.gx-btn-remove-av:hover { background: var(--gx-error); color: #fff; border-color: var(--gx-error); }
.gx-avatar-hint { margin-top: 0.75rem; font-size: 0.75rem; color: var(--gx-text-muted); }

/* Confirm Dialog */
.gx-confirm-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.gx-confirm-overlay.is-open { opacity: 1; visibility: visible; }
.gx-confirm-dialog {
    background: var(--gx-card);
    border-radius: var(--gx-radius-lg);
    padding: 1.5rem;
    min-width: 320px;
    max-width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    border: 1px solid var(--gx-border);
}
.gx-confirm-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.gx-confirm-icon {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--gx-error);
}
.gx-confirm-title { font-size: 1.125rem; font-weight: 600; color: var(--gx-text); }
.gx-confirm-body { margin-bottom: 1.5rem; }
.gx-confirm-text { font-size: 0.875rem; color: var(--gx-text-secondary); line-height: 1.6; }
.gx-confirm-foot { display: flex; gap: 0.75rem; }
.gx-confirm-btn {
    flex: 1;
    padding: 0.625rem 1rem;
    border-radius: var(--gx-radius);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    outline: none;
    font-family: var(--gx-font);
}
.gx-confirm-btn:focus { box-shadow: 0 0 0 2px var(--gx-card), 0 0 0 4px var(--gx-primary); }
.gx-confirm-btn.cancel { background: var(--gx-surface); color: var(--gx-text-secondary); }
.gx-confirm-btn.cancel:hover { background: var(--gx-border); }
.gx-confirm-btn.confirm { background: var(--gx-error); color: #fff; }
.gx-confirm-btn.confirm:hover { background: #dc2626; }
.gx-confirm-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Profile responsive */
@media (max-width: 900px) {
    .gx-profile-grid { flex-direction: column; }
    .gx-profile-side { width: 100%; }
    .gx-profile-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0.5rem; }
    .gx-profile-nav-link {
        flex: 1;
        min-width: calc(50% - 0.5rem);
        padding: 0.75rem;
        border-left: none;
        border-bottom: 2px solid transparent;
        justify-content: center;
    }
    .gx-profile-nav-link.is-active { border-left: none; border-bottom-color: var(--gx-primary); }
    .gx-profile-mini-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .gx-profile-wrap { padding: 1rem 0.5rem; }
    .gx-profile-panel { padding: 1rem; }
    .gx-profile-nav-link { min-width: 60px; font-size: 0.875rem; }
    .gx-profile-nav-link span { display: none; }
    .gx-profile-mini-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .gx-mini-body { padding: 0.5rem; }
    .gx-mini-title { font-size: 0.75rem; }
}

/* ============ UTILITY CLASSES ============ */
.gx-text-ellipsis-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gx-sep {
    display: inline-block;
    width: 1px;
    height: 16px;
    background: var(--gx-border);
    margin: 0 6px;
    vertical-align: middle;
}

.gx-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ============ LAZYLOAD ============ */
.gx-lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gx-lazy.is-loaded { opacity: 1; }

/* ============ FONT AWESOME ROUGH POLYFILL ============ */
.fa { display: inline-block; font-style: normal; font-variant: normal; text-rendering: auto; line-height: 1; }
.fa-star:before { content: '\2605'; }
.fa-heart:before { content: '\2665'; }
.fa-heart-o:before { content: '\2661'; }
.fa-facebook:before { content: 'f'; font-weight: bold; }
.fa-twitter:before { content: 't'; font-weight: bold; }
.fa-instagram:before { content: '\25CF'; }
.fa-youtube:before { content: '\25B6'; }
.fa-chevron-right:before { content: '\203A'; font-weight: bold; }
.fa-gamepad:before { content: '\25B6'; }
.fa-play:before { content: '\25B6'; }
.fa-times:before { content: '\2715'; font-weight: bold; }
.fa-chevron-down:before { content: '\2228'; }
.fa-chevron-up:before { content: '\2227'; }
.fa-eye:before { content: '\25C9'; }
.fa-eye-slash:before { content: '\2299'; }
.fa-share:before { content: '\21AA'; }
.fa-bars:before { content: '\2261'; font-weight: bold; }

/* ============ ANIMATIONS ============ */
@keyframes gx-spin {
    to { transform: rotate(360deg); }
}

@keyframes gx-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.gx-anim-fade { animation: gx-fade-in 0.4s ease; }

/* ============ UTILITY / ALERT CLASSES (from header inline) ============ */
.error-message-container {
    background: rgba(239, 68, 68, 0.1);
    border-bottom: 1px solid rgba(239, 68, 68, 0.2);
    padding: 10px 0;
}
.alert {
    position: relative;
    padding: 12px 20px;
    margin-bottom: 0;
    border: 1px solid transparent;
    border-radius: 8px;
}
.alert-warning {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.2);
}
.alert i.fa-exclamation-triangle { margin-right: 8px; }
.img-fluid { width: 100%; }
.star-full { color: #fbbf24; }
.star-empty { color: var(--gx-border); }

/* ---- Card overlay tags (used in index.html etc) ---- */
.gx-card-tags {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
    z-index: 2;
}
.gx-card-badge {
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

/* ---- Sidebar Game List ---- */
.gx-side-game-list { padding: 0.5rem 0; }
.gx-side-game-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1.25rem;
    text-decoration: none;
    transition: var(--gx-transition-fast);
    border-left: 3px solid transparent;
}
.gx-side-game-item:hover {
    background: var(--gx-surface);
    border-left-color: var(--gx-primary);
}
.gx-side-game-img {
    width: 48px;
    height: 36px;
    border-radius: var(--gx-radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}
.gx-side-game-info { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gx-side-game-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gx-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.gx-side-game-meta { font-size: 0.72rem; color: var(--gx-text-muted); }

/* ---- Sidebar Category List ---- */
.gx-side-cat-list { padding: 0.25rem 0; }
.gx-side-cat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.25rem;
    text-decoration: none;
    color: var(--gx-text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--gx-transition-fast);
    border-left: 3px solid transparent;
}
.gx-side-cat-item:hover,
.gx-side-cat-item.is-active {
    background: var(--gx-surface);
    color: var(--gx-primary-light);
    border-left-color: var(--gx-primary);
}

/* ---- Quick Nav Bar ---- */
.gx-quick-nav {
    border-bottom: 1px solid var(--gx-border);
    background: var(--gx-card);
}
.gx-quick-nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 0;
    overflow-x: auto;
    padding: 0 0.5rem;
}
.gx-quick-nav a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.85rem 1rem;
    text-decoration: none;
    color: var(--gx-text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: var(--gx-transition-fast);
    flex-shrink: 0;
}
.gx-quick-nav a:hover {
    color: var(--gx-primary-light);
    border-bottom-color: var(--gx-primary);
    background: var(--gx-surface);
}
.gx-quick-nav-icon { font-size: 1rem; }

/* ---- Toolbar Inner ---- */
.gx-toolbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* .gx-drawer-info — defined earlier in DRAWER section */

/* ---- Sidebar card wrapper ---- */
.gx-side-card {
    background: var(--gx-card);
    border-radius: var(--gx-radius-lg);
    border: 1px solid var(--gx-border);
    margin-bottom: 1.5rem;
    overflow: hidden;
}
.gx-side-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    padding: 1rem 1.25rem;
    margin: 0;
    border-bottom: 2px solid var(--gx-border);
    color: var(--gx-text);
}

/* ---- Responsive for policy-layout/toolbar (extension) ---- */
@media (max-width: 1100px) {
    .gx-policy-layout { flex-direction: column; }
    .gx-policy-nav { width: 100%; position: static; order: -1; }
    .gx-policy-toc { display: flex; flex-wrap: wrap; gap: 0; }
    .gx-policy-toc a { white-space: nowrap; padding: 0.5rem 0.75rem; font-size: 0.8rem; }
    .gx-hero-title { font-size: 2.4rem; }
    .gx-drawer { width: 300px; }
    .gx-grid { grid-template-columns: repeat(4, 1fr); }
    .gx-card:first-child { grid-column: span 2; grid-row: span 1; }
    .gx-card:first-child .gx-card-media { height: 200px; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1200px) {
    .gx-grid { grid-template-columns: repeat(4, 1fr); }
    .gx-hero-title { font-size: 44px; }
    .gx-hero { padding: 60px 20px 50px; }
}

@media (max-width: 1024px) {
    .gx-hero { padding: 50px 16px 40px; margin: -20px -16px 32px -16px; }
    .gx-hero-title { font-size: 36px; }
    .gx-hero-desc { font-size: 16px; max-width: 480px; }
    .gx-hero-strip-card { width: 140px; }
    .gx-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .gx-card:first-child { grid-column: span 2; grid-row: span 1; }
    .gx-card:first-child .gx-card-media { height: 220px; }
    .gx-card:first-child .gx-card-title { font-size: 17px; }
    .gx-detail-grid { flex-direction: column; }
    .gx-detail-side { width: 100%; }
    .gx-contact-grid { grid-template-columns: 1fr; }
    .gx-search { max-width: 280px; }
}

@media (max-width: 768px) {
    .gx-container { padding: 0 16px; }
    .gx-topbar-inner { padding: 0 16px; }
    .gx-search { display: none; }
    .gx-user-name { display: none; }


    .gx-hero {
        padding: 40px 14px 32px;
        margin: calc(-1 * var(--gx-topbar-h) - 20px) -16px 28px -16px;
    }

    .gx-hero-badge { font-size: 12px; padding: 5px 16px; }
    .gx-hero-title { font-size: 28px; letter-spacing: -1px; }
    .gx-hero-desc { font-size: 14px; margin-bottom: 20px; }
    .gx-hero-btns { margin-bottom: 24px; }
    .gx-btn-hero { padding: 12px 22px; font-size: 14px; }

    .gx-hero-stats { gap: 10px; margin-bottom: 28px; }
    .gx-hero-stat { padding: 12px 16px; min-width: auto; }
    .gx-hero-stat strong { font-size: 22px; }
    .gx-hero-stat span { font-size: 9px; }
    .gx-hero-stat:first-child { display: none; }

    .gx-hero-strip-card { width: 120px; }
    .gx-hero-strip-name { font-size: 11px; }

    .gx-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .gx-card:first-child { grid-column: span 1; grid-row: span 1; }
    .gx-card:first-child .gx-card-media { height: 140px; }
    .gx-card:first-child .gx-card-title { font-size: 14px; }
    .gx-card:first-child .gx-card-info { padding: 14px; }
    .gx-card-media { height: 140px; }
    .gx-card-info { padding: 14px; }
    .gx-card-title { font-size: 14px; }

    .gx-sect-title { font-size: 20px; }
    .gx-sect-head::after { width: 40px; height: 2px; }

    .gx-main { margin-top: calc(var(--gx-topbar-h) + 20px); }

    .gx-page { padding: 24px; border-radius: var(--gx-radius); }
    .gx-page-hero { padding: 28px 24px; margin-top: 16px; }
    .gx-page-hero h1 { font-size: 26px; }

    .gx-policy-layout { grid-template-columns: 1fr; }
    .gx-policy-nav { position: static; }

    .gx-foot-row { grid-template-columns: repeat(2, 1fr); }

    .gx-profile-grid { grid-template-columns: 1fr; }
    .gx-avatar { width: 70px; height: 70px; font-size: 28px; }
    .gx-profile-card { padding: 20px; }

    .gx-profile-mini-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; }

    .gx-features { grid-template-columns: 1fr 1fr; }

    .gx-toolbar { flex-direction: column; align-items: flex-start; }
    .gx-pager-link,
    .pagination-link { min-width: 36px; height: 36px; font-size: 13px; }

    .gx-drawer { width: 320px; }

    .gx-cookie { flex-direction: column; padding: 14px 16px; gap: 10px; }
    .gx-cookie-btns { width: 100%; }
    .gx-btn-cookie { flex: 1; text-align: center; }
}

@media (max-width: 480px) {
    .gx-hero { padding: 32px 12px 24px; }
    .gx-hero-badge { font-size: 11px; padding: 4px 12px; margin-bottom: 14px; }
    .gx-hero-title { font-size: 22px; letter-spacing: -0.5px; }
    .gx-hero-desc { font-size: 13px; }
    .gx-hero-btns { flex-direction: column; }
    .gx-btn-hero { width: 100%; justify-content: center; padding: 12px 20px; }

    .gx-hero-stats { flex-wrap: wrap; justify-content: center; gap: 8px; }
    .gx-hero-stat { padding: 10px 12px; min-width: auto; }
    .gx-hero-stat strong { font-size: 18px; }
    .gx-hero-stat span { font-size: 9px; }

    .gx-hero-strip-card { width: 110px; }
    .gx-hero-strip-name { font-size: 11px; }

    .gx-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .gx-card:first-child { grid-column: span 1; }
    .gx-card:first-child .gx-card-media { height: 120px; }
    .gx-card:first-child .gx-card-title { font-size: 13px; }
    .gx-card-media { height: 120px; }
    .gx-card-title { font-size: 13px; }
    .gx-card-info { padding: 10px; }
    .gx-card-tag { font-size: 10px; padding: 3px 10px; }

    .gx-page { padding: 16px; border-radius: var(--gx-radius-sm); }
    .gx-page-hero { padding: 22px 16px; margin-bottom: 20px; }
    .gx-page-hero h1 { font-size: 22px; }

    .gx-features { grid-template-columns: 1fr; }

    .gx-foot-row { grid-template-columns: 1fr; }

    .gx-about-stats { grid-template-columns: 1fr; }

    .gx-about-block { padding: 20px 16px; }

    .gx-values { grid-template-columns: 1fr; }

    .gx-team { grid-template-columns: 1fr; }

    .gx-person { padding: 20px; }

    .gx-detail-title { font-size: 20px; }
    .gx-detail-block { padding: 20px 16px; }

    .gx-policy-section { padding: 20px 16px; border-radius: var(--gx-radius-sm); }
    .gx-policy-block h2 { font-size: 16px; }
    .gx-policy-block p, .gx-policy-block li { font-size: 12px; }

    .gx-profile-mini-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
    .gx-avatar { width: 60px; height: 60px; font-size: 24px; }
    .gx-profile-card, .gx-profile-section { padding: 18px; }

    .gx-profile-info-row { flex-direction: column; align-items: flex-start; gap: 4px; }
    .gx-profile-info-val { text-align: left; }

    .gx-drawer { width: 100%; max-width: 100vw; }

    .gx-toast { left: 20px; right: 20px; min-width: auto; max-width: none; }

    .gx-pager-link,
    .pagination-link { min-width: 32px; height: 32px; font-size: 12px; padding: 0 6px; }
    .gx-pager-list,
    .pagination-list { gap: 3px; }

    .gx-auth-card { padding: 28px 20px; }
}

/* ============ COOKIE BANNER (PRIVACY PAGE) ============ */
.gx-cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--gx-card); color: var(--gx-text);
    padding: 16px 32px; z-index: 9999;
    display: none; align-items: center; gap: 20px;
    flex-wrap: wrap;
    border-top: 1px solid var(--gx-border);
    backdrop-filter: blur(12px);
}
.gx-cookie-banner.show { display: flex; }
.gx-cookie-btn {
    padding: 10px 20px; border: none;
    border-radius: var(--gx-radius-full); cursor: pointer;
    font-size: 13px; font-weight: 600;
    transition: var(--gx-transition-fast);
}
.gx-cookie-btn.accept { background: var(--gx-gradient-primary); color: #fff; }
.gx-cookie-btn.accept:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0, 230, 118, 0.4); }
.gx-cookie-btn.decline { background: transparent; border: 1px solid var(--gx-border); color: var(--gx-text-secondary); }
.gx-cookie-btn.decline:hover { border-color: var(--gx-text-secondary); color: var(--gx-text); }

/* ============ DETAIL PAGE OVERRIDES ============ */
/* Breadcrumb */
.gx-crumb { margin: 1.25rem 0; }
.gx-crumb ol {
    display: flex; align-items: center; flex-wrap: wrap;
    list-style: none; padding: 0; margin: 0; gap: 0.5rem;
}
.gx-crumb li { display: flex; align-items: center; }
.gx-crumb a {
    text-decoration: none; color: var(--gx-primary-light);
    font-weight: 500; font-size: 0.9rem; transition: var(--gx-transition-fast);
}
.gx-crumb a:hover { color: var(--gx-secondary); }
.gx-crumb .gx-sep { color: var(--gx-text-muted); font-size: 0.8rem; user-select: none; }
.gx-crumb .current { color: var(--gx-text-secondary); font-weight: 600; font-size: 0.9rem; }

/* Player */
.gx-player {
    width: 100%; margin-bottom: 1.5rem;
    border-radius: var(--gx-radius-lg); overflow: hidden; background: #000;
}
.gx-player iframe { width: 100%; display: block; border: none; }

/* Two-Column Layout */
.gx-detail-grid { display: flex; gap: 2rem; align-items: flex-start; }
.gx-detail-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.gx-detail-side { width: 320px; flex-shrink: 0; }

/* Title Area */
.gx-detail-head { margin-bottom: 1.5rem; }
.gx-detail-title { font-size: 2rem; font-weight: 800; margin-bottom: 0.6rem; line-height: 1.3; }
.gx-detail-meta-row {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 0.75rem 1.5rem; margin-bottom: 0.75rem;
}
.gx-detail-meta {
    display: flex; align-items: center; gap: 0.4rem;
    font-size: 0.88rem; color: var(--gx-text-secondary);
}
.gx-detail-tags-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.75rem; }
.gx-tag {
    display: inline-block; padding: 0.25rem 0.85rem;
    border-radius: 50px; background: rgba(0, 230, 118, 0.12);
    color: var(--gx-primary-light); font-size: 0.8rem; font-weight: 600;
}
.gx-detail-rating-row { display: flex; align-items: center; gap: 12px; min-height: 32px; margin-bottom: 1rem; }

/* Action Buttons */
.gx-detail-btns { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.gx-btn-play {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.85rem 2.5rem; background: var(--gx-gradient-primary);
    color: #fff; border: none; border-radius: 50px;
    font-size: 1rem; font-weight: 700; cursor: pointer; transition: var(--gx-transition);
}
.gx-btn-play:hover { transform: translateY(-2px); box-shadow: 0 6px 25px rgba(0, 230, 118, 0.5); }
.gx-share { display: flex; align-items: center; gap: 0.75rem; }
.gx-share strong { font-size: 0.9rem; color: var(--gx-text-secondary); }
.gx-share a {
    width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; background: var(--gx-surface); border: 1px solid var(--gx-border);
    color: var(--gx-text-secondary); font-size: 0.9rem; transition: var(--gx-transition-fast);
}
.gx-share a:hover { background: var(--gx-primary); border-color: var(--gx-primary); color: #fff; }

/* Detail Sidebar */
.gx-detail-side-sticky { position: sticky; top: calc(var(--gx-topbar-h, 64px) + 1rem); }
.gx-detail-side-card {
    background: var(--gx-card); border-radius: var(--gx-radius-lg);
    border: 1px solid var(--gx-border); padding: 1.25rem; margin-bottom: 1rem;
}
.gx-detail-side-card h3 {
    font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem;
    padding-bottom: 0.5rem; border-bottom: 2px solid var(--gx-border);
}

/* Mini Grid in Sidebar */
.gx-mini-grid {
    display: grid; grid-template-columns: 1fr; gap: 0.75rem; overflow: hidden;
}
.gx-mini-card {
    background: var(--gx-card); border-radius: var(--gx-radius-sm);
    padding: 0.5rem; transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--gx-border); min-width: 0; overflow: hidden;
}
.gx-mini-card:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0,0,0,0.15); }
.gx-mini-card a { text-decoration: none; display: block; color: inherit; }
.gx-mini-card img {
    width: 100%; border-radius: 6px; aspect-ratio: 16/9;
    object-fit: cover; margin-bottom: 0.4rem;
}
.gx-mini-card .gx-mini-title {
    font-size: 0.78rem; font-weight: 600; color: var(--gx-text);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.3;
}
.gx-mini-card .gx-mini-meta {
    font-size: 0.7rem; color: var(--gx-text-muted); margin-top: 2px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.3;
}
.gx-mini-card .gx-btn-mini-play {
    display: block; text-align: center; margin-top: 0.4rem; padding: 4px 8px;
    background: var(--gx-gradient-primary); color: #fff; border-radius: var(--gx-radius-sm);
    font-size: 0.7rem; font-weight: 600; transition: opacity 0.2s;
}
.gx-mini-card:hover .gx-btn-mini-play { opacity: 0.9; }

/* Content Sections */
.gx-detail-content-section { margin-bottom: 2rem; }
.gx-detail-content-section h2 {
    font-size: 1.4rem; font-weight: 700; margin-bottom: 1rem;
    padding-bottom: 0.5rem; border-bottom: 2px solid var(--gx-border);
}
.gx-detail-content-section .gx-detail-section-text {
    color: var(--gx-text-secondary); line-height: 1.8; font-size: 0.95rem;
}
.gx-detail-content {
    color: var(--gx-text-secondary); line-height: 1.8; font-size: 0.95rem;
}
.gx-detail-content img { border-radius: var(--gx-radius-sm); margin: 1rem 0; max-width: 100%; }
.gx-detail-content h2, .gx-detail-content h3, .gx-detail-content h4 {
    color: var(--gx-text); margin-top: 1.5rem; margin-bottom: 0.75rem;
}

/* FAQ Accordion */
.gx-faq-section {
    margin-bottom: 2rem; border: 1px solid var(--gx-border);
    border-radius: var(--gx-radius); overflow: hidden;
}
.gx-faq-section > .gx-faq-toggle-btn {
    display: flex; align-items: center; gap: 0.75rem;
    font-size: 1.3rem; font-weight: 700; padding: 1rem 1.25rem;
    margin: 0; cursor: pointer; user-select: none; background: var(--gx-card); border: none; width: 100%;
    color: var(--gx-text); text-align: left;
}
.gx-faq-section > .gx-faq-toggle-btn:hover { background: var(--gx-card-hover); }
.gx-faq-section-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--gx-primary); color: #fff; font-size: 0.7rem;
    transition: transform 0.3s; flex-shrink: 0;
}
.gx-faq-section.open .gx-faq-section-toggle { transform: rotate(90deg); background: var(--gx-primary-light); }
.gx-faq-list { display: none; }
.gx-faq-section.open .gx-faq-list { display: block; }
.gx-faq {
    border-bottom: 1px solid var(--gx-border);
    background: transparent; border-radius: 0; overflow: visible;
}
.gx-faq:last-child { border-bottom: none; }
.gx-faq-btn {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 1rem 1.25rem; font-weight: 600; font-size: 0.95rem;
    color: var(--gx-text); cursor: pointer; width: 100%;
    background: transparent; border: none;
}
.gx-faq-btn:hover { color: var(--gx-primary-light); }
.gx-faq-btn::before {
    content: '\f059'; font-family: 'FontAwesome';
    color: var(--gx-primary-light); font-size: 0.85rem; flex-shrink: 0;
}
.gx-faq-body {
    display: none; padding: 0 1.25rem 1rem 2.5rem;
    font-size: 0.9rem; line-height: 1.75; color: var(--gx-text-secondary);
}
.gx-faq.is-open .gx-faq-btn { color: var(--gx-primary-light); }
.gx-faq.is-open .gx-faq-body { display: block; }

/* Game Stats in Sidebar */
.gx-game-stat-row {
    display: flex; justify-content: space-between; padding: 0.5rem 0;
    border-bottom: 1px solid var(--gx-border); font-size: 0.88rem;
}
.gx-game-stat-row:last-child { border-bottom: none; }
.gx-game-stat-lbl { color: var(--gx-text-muted); }
.gx-game-stat-val { color: var(--gx-text); font-weight: 600; }

/* Player Wrapper / Overlay */
.game-player-wrapper {
    width: 100% !important; background: #000 !important; margin-bottom: 20px !important;
}
.detail-hero-img {
    position: relative !important; width: 100% !important; aspect-ratio: 16 / 9 !important;
    background: #000 !important; overflow: hidden !important;
}
.detail-hero-img iframe { width: 100% !important; height: 100% !important; border: none !important; display: block !important; }

.game-iframe-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.92); z-index: 9999; display: flex; flex-direction: column;
}
.game-iframe-wrapper { flex: 1; min-height: 0; }
.game-iframe-wrapper iframe { width: 100%; height: 100%; border: none; background: #fff; }
.game-iframe-overlay .overlay-exit-btn {
    position: absolute; top: 16px; right: 16px; z-index: 10;
    width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
    border: none; border-radius: 50%; background: rgba(0, 0, 0, 0.6); color: #fff;
    font-size: 20px; cursor: pointer;
}
.game-iframe-overlay .overlay-exit-btn:hover { background: rgba(0, 0, 0, 0.85); }

/* Favorite Icon (detail page) */
.gx-fav-icon {
    position: relative; cursor: pointer; color: var(--gx-primary-light);
    margin-left: 10px; font-size: 20px; line-height: 1; flex-shrink: 0;
    transition: transform var(--gx-transition-fast);
    display: inline-flex; align-items: center; justify-content: center;
    width: 20px; height: 20px;
}
.gx-fav-icon:hover { transform: scale(1.1); }
.gx-fav-icon .fa-heart-o, .gx-fav-icon .fa-heart {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    transition: opacity 0.2s ease; font-size: 20px; line-height: 1;
}
.gx-fav-icon .fa-heart-o { opacity: 1; }
.gx-fav-icon .fa-heart { opacity: 0; }
.gx-fav-icon.favorited .fa-heart-o { opacity: 0; }
.gx-fav-icon.favorited .fa-heart { opacity: 1; }

/* Toast */
.toast-message {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
    padding: 0.75rem 1.5rem; background: var(--gx-card); color: var(--gx-text);
    border-radius: var(--gx-radius); box-shadow: var(--gx-shadow-lg);
    z-index: 10000; opacity: 0; transition: opacity 0.3s; font-size: 0.88rem;
}
.toast-message.show { opacity: 1; }
.toast-message.success { background: var(--gx-success); color: white; }
.toast-message.error { background: var(--gx-error); color: white; }
.toast-message.warning { background: var(--gx-accent-warm); color: white; }

/* Comments (detail page) */
.gx-comments {
    width: 100%; box-sizing: border-box; margin-top: 30px; padding: 20px;
    background: var(--gx-surface); border-radius: var(--gx-radius-lg);
}
.gx-comments-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.gx-comments-title { font-size: 1.25rem; font-weight: 700; color: var(--gx-text); }
.gx-comments-count { color: var(--gx-text-secondary); font-size: 0.85rem; }
.gx-comments-list { display: flex; flex-direction: column; gap: 15px; }
.gx-comment {
    padding: 15px; background: var(--gx-card); border-radius: var(--gx-radius);
    border: 1px solid var(--gx-border);
}
.gx-comment-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.gx-comment-avatar {
    width: 40px; height: 40px; border-radius: 50%; background: var(--gx-gradient-primary);
    display: flex; align-items: center; justify-content: center; color: white;
    font-weight: 600; font-size: 14px; overflow: hidden; flex-shrink: 0;
}
.gx-comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.gx-comment-author { font-weight: 600; color: var(--gx-text); }
.gx-comment-date { font-size: 0.75rem; color: var(--gx-text-muted); }
.gx-comment-star { margin-left: auto; font-size: 14px; }
.gx-comment-body { color: var(--gx-text-secondary); line-height: 1.6; font-size: 0.85rem; }
.gx-comments-empty { text-align: center; padding: 40px; color: var(--gx-text-secondary); }
.gx-comments-empty-icon { font-size: 48px; margin-bottom: 15px; opacity: 0.5; }
.gx-comments-loading { text-align: center; padding: 20px; color: var(--gx-text-secondary); }
.gx-comments-load-more { margin-top: 20px; text-align: center; }
.gx-btn-load-more {
    display: inline-block; padding: 10px 25px; background: var(--gx-surface);
    color: var(--gx-text); border: 1px solid var(--gx-border); border-radius: var(--gx-radius);
    cursor: pointer; font-size: 0.85rem;
}
.gx-btn-load-more:hover { background: var(--gx-card-hover); color: var(--gx-text); }
.gx-btn-load-more:disabled { opacity: 0.6; cursor: not-allowed; }

/* Comment Form */
.gx-comment-form {
    margin-bottom: 20px; padding: 20px; background: var(--gx-card);
    border-radius: var(--gx-radius); border: 1px solid var(--gx-border);
}
.gx-comment-form-head { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.gx-comment-form-avatar {
    width: 40px; height: 40px; border-radius: 50%; background: var(--gx-gradient-primary);
    display: flex; align-items: center; justify-content: center; color: white;
    font-weight: 600; font-size: 14px; overflow: hidden; flex-shrink: 0;
}
.gx-comment-form-avatar img { width: 100%; height: 100%; object-fit: cover; }
.gx-comment-form-author { font-weight: 600; color: var(--gx-text); }
.gx-comment-form-rating { margin-bottom: 10px; display: flex; align-items: center; gap: 5px; }
.gx-comment-form-rating label { font-size: 0.85rem; color: var(--gx-text-secondary); margin-right: 10px; }
.gx-star {
    font-size: 24px; cursor: pointer; color: var(--gx-text-muted); transition: color 0.2s;
}
.gx-star:hover, .gx-star.is-active { color: var(--gx-accent-warm); }
.gx-comment-form-textarea {
    width: 100%; padding: 12px; border: 1px solid var(--gx-border); border-radius: var(--gx-radius);
    background: var(--gx-surface); color: var(--gx-text); font-size: 0.85rem;
    resize: vertical; min-height: 100px; margin-bottom: 15px; box-sizing: border-box;
}
.gx-comment-form-textarea:focus { outline: none; border-color: var(--gx-primary); }
.gx-comment-form-foot { display: flex; justify-content: flex-end; gap: 10px; }
.gx-btn-comment {
    padding: 10px 25px; background: var(--gx-gradient-primary); color: white;
    border: none; border-radius: var(--gx-radius); cursor: pointer;
    font-size: 0.85rem; font-weight: 600;
}
.gx-btn-comment:hover { background: linear-gradient(135deg, var(--gx-primary-dark), var(--gx-primary)); }
.gx-btn-comment:disabled { opacity: 0.6; cursor: not-allowed; }
.gx-comment-hint { text-align: center; padding: 20px; color: var(--gx-text-secondary); font-size: 0.85rem; }
.gx-comment-hint a { color: var(--gx-primary-light); text-decoration: none; }
.gx-comment-hint a:hover { text-decoration: underline; }

/* Detail Responsive */
@media (max-width: 900px) {
    .gx-detail-grid { flex-direction: column; }
    .gx-detail-side { width: 100%; }
    .gx-detail-side-sticky { position: static; }
    .gx-detail-title { font-size: 1.5rem; }
    .gx-detail-btns { flex-direction: column; align-items: stretch; }
    .gx-btn-play { justify-content: center; }
    .gx-share { justify-content: center; }
}
@media (max-width: 768px) { .detail-hero-img { aspect-ratio: 4 / 3 !important; } }
@media (max-width: 480px) { .gx-mini-grid { grid-template-columns: 1fr; gap: 0.5rem; } }

/* ============================================================
   NAV MENU DROPDOWN v3 — Topbar-anchored glassmorphism dropdown
   Button sits in topbar far-right; panel drops below on click.
   ============================================================ */

/* ---- Nav Menu Wrapper (relative anchor) ---- */
.gx-nav-menu {
    position: relative;
    flex-shrink: 0;
}

/* Indicate active state (button toggled) */
.gx-nav-menu.is-active .gsidebar-toggle {
    background: rgba(0, 230, 118, 0.15);
    border-color: rgba(0, 230, 118, 0.55);
    box-shadow:
        0 0 18px rgba(0, 230, 118, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ---- Toggle Button: Compact Neon Pill (in topbar) ---- */
.gsidebar-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px 7px 11px;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(0, 230, 118, 0.25);
    border-radius: var(--gx-radius);
    color: var(--gx-text);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-family: var(--gx-font);
    line-height: 1;
    outline: none;
}

/* Rotating border gradient */
.gsidebar-toggle::before {
    content: '';
    position: absolute;
    inset: -1.5px;
    border-radius: calc(var(--gx-radius) + 1.5px);
    padding: 1.5px;
    background: conic-gradient(
        from 0deg,
        #00e676, #00e5ff, #00e5ff, #f59e0b, #00e676
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: gsidebar-border-rotate 3s linear infinite;
}

.gsidebar-toggle:hover::before,
.gx-nav-menu.is-active .gsidebar-toggle::before { opacity: 0.6; }

.gsidebar-toggle:hover {
    background: rgba(0, 230, 118, 0.1);
    border-color: rgba(0, 230, 118, 0.5);
    box-shadow: 0 0 18px rgba(0, 230, 118, 0.18);
}

.gsidebar-toggle:active {
    transform: scale(0.96);
    transition: all 0.1s ease;
}

.gsidebar-toggle:focus-visible {
    outline: 2px solid rgba(0, 230, 118, 0.6);
    outline-offset: 2px;
    border-radius: calc(var(--gx-radius) + 2px);
}

.gsidebar-toggle-icon {
    font-size: 16px;
    line-height: 1;
    background: var(--gx-gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.35s ease;
}

.gx-nav-menu.is-active .gsidebar-toggle-icon {
    transform: rotate(90deg);
}

.gsidebar-toggle-label { font-weight: 700; }

/* ---- Panel: Dropdown (anchored to button) ---- */
.gsidebar-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: auto;
    max-width: none;
    max-height: 75vh;
    max-height: 75dvh;
    z-index: 1100;
    background: rgba(13, 13, 40, 0.97);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(0, 230, 118, 0.2);
    border-radius: 0 0 20px 20px;
    box-shadow:
        0 0 80px rgba(0, 230, 118, 0.15),
        0 20px 60px rgba(0, 0, 0, 0.7),
        0 4px 12px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transform-origin: top center;
    transition:
        transform 0.28s cubic-bezier(0.34, 1.3, 0.64, 1),
        opacity 0.22s ease;
    overflow: hidden;
}

/* Open: slide down + fade in */
.gsidebar-panel.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* Glow ring */
.gsidebar-panel::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 0 0 21px 21px;
    padding: 1.5px;
    background: conic-gradient(
        from 180deg at 50% 50%,
        rgba(0, 230, 118, 0.45),
        rgba(6, 182, 212, 0.25),
        rgba(139, 92, 246, 0.45),
        rgba(245, 158, 11, 0.15),
        rgba(0, 230, 118, 0.45)
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: gsidebar-panel-glow 4s linear infinite;
    pointer-events: none;
}

/* Corner glow accents */
.gsidebar-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 0 0 20px 20px;
    background:
        radial-gradient(circle 70px at 0% 0%, rgba(0, 230, 118, 0.06), transparent),
        radial-gradient(circle 50px at 100% 100%, rgba(6, 182, 212, 0.05), transparent);
}

/* ---- Panel Inner ---- */
.gsidebar-panel-inner {
    position: relative;
    z-index: 1;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    scroll-behavior: smooth;
}

.gsidebar-panel-inner::-webkit-scrollbar { width: 4px; }
.gsidebar-panel-inner::-webkit-scrollbar-track { background: transparent; }
.gsidebar-panel-inner::-webkit-scrollbar-thumb {
    background: rgba(0, 230, 118, 0.2);
    border-radius: 99px;
}
.gsidebar-panel-inner::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 230, 118, 0.4);
}

/* ---- Panel Header ---- */
.gsidebar-panel-header {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 20px;
    border-bottom: 1px solid rgba(0, 230, 118, 0.08);
    flex-shrink: 0;
}

.gsidebar-panel-header h3 {
    font-size: 16px;
    font-weight: 800;
    color: var(--gx-text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 9px;
    letter-spacing: -0.3px;
}

.gsidebar-panel-header h3 .gsidebar-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--gx-gradient-primary);
    font-size: 15px;
    box-shadow: 0 3px 12px rgba(0, 230, 118, 0.3);
}

/* Close button */
.gsidebar-panel-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(255, 255, 255, 0.06);
    color: var(--gx-text-secondary);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.gsidebar-panel-close:hover {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.35);
    color: #ef4444;
    transform: rotate(90deg);
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.2);
}

/* ---- Section ---- */
.gsidebar-section {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
}

.gsidebar-section-title {
    font-size: 10px;
    font-weight: 700;
    color: var(--gx-text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 11px;
    padding-bottom: 7px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    gap: 6px;
}

.gsidebar-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(0, 230, 118, 0.15), transparent);
}

/* ---- Category List — Compact Grid ---- */
.gsidebar-cat-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

.gsidebar-cat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--gx-text-secondary);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.gsidebar-cat-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: var(--gx-gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.gsidebar-cat-item:hover {
    background: rgba(0, 230, 118, 0.08);
    border-color: rgba(0, 230, 118, 0.3);
    color: var(--gx-text);
    transform: translateY(-1px);
    box-shadow:
        0 4px 16px rgba(0, 230, 118, 0.12),
        0 0 0 1px rgba(0, 230, 118, 0.1);
}

.gsidebar-cat-item:hover::before { opacity: 0.04; }

.gsidebar-cat-item.active,
.gsidebar-cat-item.is-active {
    background: rgba(0, 230, 118, 0.12);
    border-color: rgba(0, 230, 118, 0.4);
    color: var(--gx-primary-light);
    font-weight: 700;
    box-shadow: 0 0 14px rgba(0, 230, 118, 0.1);
}

.gsidebar-cat-item.active::before,
.gsidebar-cat-item.is-active::before {
    opacity: 0.08;
}

/* Home chip */
.gsidebar-cat-home {
    background: var(--gx-gradient-primary);
    color: #fff;
    font-weight: 700;
    border: none;
}

.gsidebar-cat-home:hover {
    background: var(--gx-gradient-primary);
    color: #fff;
    border: none;
    transform: translateY(-2px);
    box-shadow:
        0 6px 20px rgba(0, 230, 118, 0.3),
        0 0 0 2px rgba(0, 230, 118, 0.25);
}

.gsidebar-cat-home::before { display: none; }

/* ---- Information Links ---- */
.gsidebar-info-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gsidebar-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    color: var(--gx-text-secondary);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.gsidebar-info-item:hover {
    background: rgba(255, 255, 255, 0.025);
    color: var(--gx-text);
    padding-left: 16px;
}

/* ---- Keyframes ---- */
@keyframes gsidebar-border-rotate {
    to { transform: rotate(360deg); }
}

@keyframes gsidebar-panel-glow {
    0% { opacity: 0.3; }
    50% { opacity: 0.7; }
    100% { opacity: 0.3; }
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .gsidebar-cat-list {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .gsidebar-cat-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .gsidebar-toggle-label { display: none; }
    .gsidebar-toggle {
        padding: 7px 12px;
    }
    .gsidebar-panel {
        border-radius: 0 0 14px 14px;
        max-height: 65vh;
        max-height: 65dvh;
    }
    .gsidebar-panel::before { border-radius: 0 0 15px 15px; }
    .gsidebar-panel::after { border-radius: 0 0 14px 14px; }
    .gsidebar-panel-header {
        padding: 16px 16px 16px;
    }
    .gsidebar-panel-header h3 { font-size: 14px; }
    .gsidebar-panel-inner {
        padding: 16px 16px 20px;
    }
    .gsidebar-cat-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }
    .gsidebar-cat-item {
        padding: 7px 10px;
        font-size: 11px;
    }
}

@media (max-width: 420px) {
    .gsidebar-toggle-label { display: none; }
    .gsidebar-cat-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============ PRINT ============ */
@media print {
    .gx-topbar, .gx-drawer, .gx-cookie, .gx-cookie-banner, .gx-toast, .gx-overlay,
    .gx-nav-menu, .gsidebar-toggle, .gsidebar-panel { display: none !important; }
    .gx-main { margin-top: 0; }
    body { background: #fff; color: #000; }
}

.hero-section{
    padding-top: 20px!important;
}
/* ============ HERO SECTION — THEME OVERRIDE ============ */
/* Overrides the inline <style> in common/game_index_hero_0001 so the hero
   matches the project's --gx-* theme (green/cyan) instead of hardcoded #10ddb4. */
.hero-tagline {
    background: rgba(0, 230, 118, 0.12) !important;
    color: var(--gx-primary) !important;
    border-color: var(--gx-border-light) !important;
}
.hero-section h1 {
    color: var(--gx-primary) !important;
}
.hero-description {
    color: var(--gx-text-secondary) !important;
}
.hero-subdescription {
    color: var(--gx-text-muted) !important;
}
.hero-stats {
    border-top-color: var(--gx-border) !important;
}
.hero-stats .stat-number {
    color: var(--gx-primary) !important;
}
.stat-label {
    color: var(--gx-text-muted) !important;
}
.hero-actions .btn-primary {
    background: var(--gx-gradient-primary) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(0, 230, 118, 0.3) !important;
}
.hero-actions .btn-primary:hover {
    box-shadow: 0 6px 25px rgba(0, 230, 118, 0.45) !important;
}
.hero-actions .btn-outline {
    color: var(--gx-primary) !important;
    border-color: var(--gx-border-light) !important;
}
.hero-actions .btn-outline:hover {
    border-color: var(--gx-primary) !important;
    background: rgba(0, 230, 118, 0.08) !important;
    color: var(--gx-primary-light) !important;
}