/* ============================================
   GameHub - Premium Gaming UI v3
   Dark theme - Neon accents - Glassmorphism
   Modern · Clean · Professional
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Orbitron:wght@500;700;900&display=swap');

:root {
    /* Background layers */
    --gh-bg:        #0a0a1a;
    --gh-bg2:       #0f0f23;
    --gh-surface:   #15152b;
    --gh-surface2:  #1c1c3a;
    --gh-surface3:  #232347;

    /* Brand colors */
    --gh-primary:   #7c5cfc;
    --gh-primary-d: #5b3fd6;
    --gh-primary-l: #9d85ff;
    --gh-accent:    #00e5ff;
    --gh-accent-d:  #00b8d4;
    --gh-pink:      #ff3d8b;
    --gh-gold:      #ffd700;
    --gh-success:   #28c864;
    --gh-danger:    #e74c3c;
    --gh-warning:   #ffc107;

    /* Text */
    --gh-text:      #e8e8f0;
    --gh-text-dim:  #8888aa;
    --gh-text-mid:  #b0b0d0;

    /* Borders */
    --gh-border:    rgba(255,255,255,0.08);
    --gh-border-l:  rgba(255,255,255,0.14);

    /* Radius scale */
    --gh-radius:    14px;
    --gh-radius-sm: 10px;
    --gh-radius-lg: 20px;
    --gh-radius-xl: 24px;

    /* Shadows & glows */
    --gh-shadow:    0 4px 24px rgba(0,0,0,0.3);
    --gh-shadow-lg: 0 12px 40px rgba(0,0,0,0.4);
    --gh-glow:      0 0 20px rgba(124,92,252,0.3);
    --gh-glow-cyan: 0 0 20px rgba(0,229,255,0.3);
    --gh-glow-pink: 0 0 20px rgba(255,61,139,0.3);

    /* Spacing scale */
    --gh-space-xs:  0.25rem;
    --gh-space-sm:  0.5rem;
    --gh-space-md:  1rem;
    --gh-space-lg:  1.5rem;
    --gh-space-xl:  2.5rem;
    --gh-space-2xl: 4rem;

    /* Transitions */
    --gh-transition:       all 0.3s cubic-bezier(0.4,0,0.2,1);
    --gh-transition-fast:  all 0.15s cubic-bezier(0.4,0,0.2,1);
    --gh-transition-slow:  all 0.5s cubic-bezier(0.4,0,0.2,1);

    /* Typography */
    --gh-font:       'Inter', system-ui, -apple-system, sans-serif;
    --gh-font-display: 'Orbitron', sans-serif;
    --gh-font-mono:  'SF Mono', 'Fira Code', 'Consolas', monospace;
}

* { scrollbar-width: thin; scrollbar-color: var(--gh-primary-d) var(--gh-bg); }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: var(--gh-bg); }
*::-webkit-scrollbar-thumb { background: var(--gh-primary-d); border-radius: 4px; }
*::-webkit-scrollbar-thumb:hover { background: var(--gh-primary); }

html { scroll-behavior: smooth; }

body {
    background: var(--gh-bg);
    color: var(--gh-text);
    font-family: var(--gh-font);
    font-size: 0.95rem;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(124,92,252,0.10) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(0,229,255,0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(255,61,139,0.04) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.container { position: relative; z-index: 1; }
a { color: var(--gh-accent); text-decoration: none; transition: var(--gh-transition-fast); }
a:hover { text-decoration: underline; }
.text-muted { color: var(--gh-text-dim) !important; }
.text-dark { color: var(--gh-text) !important; }
.text-decoration-none { text-decoration: none !important; }
code { color: var(--gh-accent); font-family: var(--gh-font-mono); }
h1, h2, h3, h4, h5, h6 { letter-spacing: -0.02em; }
p { line-height: 1.7; }

/* Navbar */
.gh-navbar {
    background: rgba(10,10,26,0.80);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--gh-border);
    padding: 0.65rem 0;
    transition: var(--gh-transition);
}
.gh-navbar.scrolled {
    background: rgba(10,10,26,0.95);
    box-shadow: 0 4px 30px rgba(0,0,0,0.4);
    border-bottom-color: var(--gh-border-l);
}
.gh-brand {
    font-family: var(--gh-font-display);
    font-weight: 900;
    font-size: 1.35rem;
    background: linear-gradient(135deg, var(--gh-primary), var(--gh-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: 1px;
    transition: var(--gh-transition);
}
.gh-brand:hover { transform: scale(1.02); text-decoration: none; }
.gh-brand i { -webkit-text-fill-color: var(--gh-primary); filter: drop-shadow(0 0 8px rgba(124,92,252,0.5)); }
.gh-nav-link {
    color: var(--gh-text-dim) !important;
    font-weight: 500;
    font-size: 0.88rem;
    padding: 0.5rem 0.95rem !important;
    border-radius: 8px;
    transition: var(--gh-transition);
    position: relative;
}
.gh-nav-link:hover { color: var(--gh-text) !important; background: rgba(124,92,252,0.10); text-decoration: none; }
.gh-nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px; left: 50%;
    width: 0; height: 2px;
    background: linear-gradient(90deg, var(--gh-primary), var(--gh-accent));
    transition: var(--gh-transition);
    transform: translateX(-50%);
    border-radius: 2px;
}
.gh-nav-link:hover::after { width: 50%; }
.gh-search-input {
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid var(--gh-border) !important;
    color: var(--gh-text) !important;
    border-radius: 24px !important;
    padding: 0.45rem 1.1rem !important;
    font-size: 0.88rem !important;
    transition: var(--gh-transition);
}
.gh-search-input:focus {
    background: rgba(255,255,255,0.10) !important;
    border-color: var(--gh-primary) !important;
    box-shadow: 0 0 0 3px rgba(124,92,252,0.15) !important;
}
.gh-search-input::placeholder { color: var(--gh-text-dim); }
.gh-search-btn {
    background: linear-gradient(135deg, var(--gh-primary), var(--gh-primary-d)) !important;
    border: none !important;
    border-radius: 50% !important;
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    transition: var(--gh-transition);
    color: #fff;
}
.gh-search-btn:hover { transform: scale(1.08); box-shadow: var(--gh-glow); }

/* Hero */
.gh-hero {
    background: linear-gradient(135deg, rgba(124,92,252,0.12), rgba(0,229,255,0.06));
    border: 1px solid var(--gh-border);
    border-radius: var(--gh-radius-xl);
    padding: 3.5rem 2rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.gh-hero::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(124,92,252,0.08), transparent, rgba(0,229,255,0.08), transparent);
    animation: gh-rotate 25s linear infinite;
    pointer-events: none;
}
.gh-hero > * { position: relative; z-index: 1; }
.gh-hero h1 {
    font-family: var(--gh-font-display);
    font-weight: 900;
    font-size: 2.75rem;
    background: linear-gradient(135deg, #fff, var(--gh-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
    letter-spacing: 2px;
}
.gh-hero p { color: var(--gh-text-mid); font-size: 1.1rem; max-width: 600px; margin: 0 auto 1.5rem; line-height: 1.7; }
.gh-hero-stats { display: flex; justify-content: center; gap: 2.5rem; flex-wrap: wrap; }
.gh-hero-stat { text-align: center; }
.gh-hero-stat .num { font-family: var(--gh-font-display); font-size: 1.8rem; font-weight: 700; color: var(--gh-accent); }
.gh-hero-stat .label { font-size: 0.75rem; color: var(--gh-text-dim); text-transform: uppercase; letter-spacing: 1.5px; margin-top: 2px; }
@keyframes gh-rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Banner Slider */
.banner-slider {
    position: relative;
    border-radius: var(--gh-radius-lg);
    overflow: hidden;
    border: 1px solid var(--gh-border);
    box-shadow: var(--gh-shadow-lg);
    aspect-ratio: 21/9;
    background: var(--gh-bg2);
}
.banner-track {
    position: relative;
    width: 100%;
    height: 100%;
}
.banner-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s ease-in-out;
    pointer-events: none;
}
.banner-slide.active {
    opacity: 1;
    pointer-events: auto;
}
.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.banner-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}
.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,26,0.85) 0%, rgba(10,10,26,0.3) 50%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 2rem 2.5rem;
}
.banner-content { position: relative; z-index: 1; }
.banner-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 0.4rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.6);
    line-height: 1.2;
}
.banner-subtitle {
    color: rgba(255,255,255,0.85);
    font-size: 1rem;
    max-width: 600px;
    margin: 0;
    text-shadow: 0 1px 10px rgba(0,0,0,0.5);
}
.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(15,15,35,0.7);
    border: 1px solid var(--gh-border);
    color: var(--gh-text);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--gh-transition);
    z-index: 10;
    backdrop-filter: blur(4px);
}
.banner-arrow:hover {
    background: var(--gh-primary);
    border-color: var(--gh-primary);
    box-shadow: var(--gh-glow);
}
.banner-prev { left: 16px; }
.banner-next { right: 16px; }
.banner-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.banner-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: var(--gh-transition);
    padding: 0;
}
.banner-dot.active {
    background: var(--gh-accent);
    box-shadow: 0 0 8px rgba(0,229,255,0.5);
    transform: scale(1.2);
}

/* Stats row (below banner) */
.gh-hero-stats-row {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    padding: 1.75rem 1.5rem;
    background: linear-gradient(135deg, rgba(124,92,252,0.06), rgba(0,229,255,0.04));
    border: 1px solid var(--gh-border);
    border-radius: var(--gh-radius-lg);
}
.gh-hero-stats-row .gh-hero-stat { text-align: center; }
.gh-hero-stats-row .gh-hero-stat .num {
    font-family: var(--gh-font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gh-accent);
    text-shadow: 0 0 15px rgba(0,229,255,0.2);
    line-height: 1;
}
.gh-hero-stats-row .gh-hero-stat .label {
    font-size: 0.72rem;
    color: var(--gh-text-dim);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 6px;
}
.online-stat .num { color: var(--gh-success) !important; text-shadow: 0 0 15px rgba(40,200,100,0.25) !important; }
.online-indicator {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 4px;
    border-radius: 50%;
    background: var(--gh-success);
    box-shadow: 0 0 8px rgba(40,200,100,0.6);
    vertical-align: 1px;
    animation: gh-pulse 2s ease-in-out infinite;
}
@keyframes gh-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@media (max-width: 768px) {
    .banner-slider { aspect-ratio: 16/9; }
    .banner-overlay { padding: 1.2rem; }
    .banner-title { font-size: 1.3rem; }
    .banner-subtitle { font-size: 0.85rem; }
    .banner-arrow { width: 36px; height: 36px; }
    .gh-hero-stats-row { gap: 1.5rem; padding: 1rem; }
    .gh-hero-stats-row .gh-hero-stat .num { font-size: 1.5rem; }
}

/* Section Title */
.section-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gh-text);
    letter-spacing: -0.01em;
}
.section-title i { color: var(--gh-primary); filter: drop-shadow(0 0 6px rgba(124,92,252,0.4)); }
.section-title a { font-size: 0.82rem; font-weight: 500; color: var(--gh-accent); text-decoration: none; transition: var(--gh-transition); }
.section-title a:hover { text-decoration: underline; opacity: 0.85; }

/* Game Card */
.game-card {
    background: var(--gh-surface);
    border: 1px solid var(--gh-border);
    border-radius: var(--gh-radius);
    overflow: hidden;
    transition: var(--gh-transition);
    position: relative;
}
.game-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--gh-radius);
    padding: 1px;
    background: linear-gradient(135deg, transparent, rgba(124,92,252,0.3), transparent);
    -webkit-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.3s;
    pointer-events: none;
    z-index: 1;
}
.game-card:hover {
    transform: translateY(-6px);
    border-color: rgba(124,92,252,0.25);
    box-shadow: var(--gh-shadow-lg), 0 0 20px rgba(124,92,252,0.12);
}
.game-card:hover::before { opacity: 1; }
.game-card-cover {
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--gh-surface2);
    position: relative;
}
.game-card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.game-card:hover .game-card-cover img { transform: scale(1.08); }
.game-card-cover::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(to top, var(--gh-surface), transparent);
    pointer-events: none;
}
.game-cover-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    font-family: var(--gh-font-display);
    font-size: 0.6rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 10px;
    letter-spacing: 0.5px;
    pointer-events: none;
    backdrop-filter: blur(4px);
}
.game-cover-badge.badge-new {
    background: rgba(0,229,255,0.85);
    color: #0a0a1a;
    box-shadow: 0 0 10px rgba(0,229,255,0.4);
}
.game-cover-badge.badge-updated {
    background: rgba(255,193,7,0.85);
    color: #1a1a2e;
    box-shadow: 0 0 10px rgba(255,193,7,0.4);
}
.game-cover-badge.badge-language {
    top: 10px;
    left: 10px;
    right: auto;
    font-family: var(--gh-font);
    font-size: 0.68rem;
    font-weight: 600;
    padding: 3px 10px;
    background: rgba(15,15,35,0.80);
    color: var(--gh-text);
    border: 1px solid var(--gh-border-l);
    backdrop-filter: blur(8px);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.game-card .card-body { padding: 0.85rem; position: relative; z-index: 2; }
.game-card .card-title { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.35rem; line-height: 1.35; }
.game-card .card-title a { color: var(--gh-text) !important; text-decoration: none; transition: var(--gh-transition); }
.game-card .card-title a:hover { color: var(--gh-accent) !important; }
.game-stats { display: flex; gap: 0.7rem; font-size: 0.75rem; color: var(--gh-text-dim); margin-bottom: 0.5rem; }
.game-stats span { display: inline-flex; align-items: center; gap: 3px; }
.game-stats i { font-size: 0.8rem; }
.platform-icons { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.platform-badge {
    font-size: 0.68rem;
    background: rgba(255,255,255,0.05);
    color: var(--gh-text-dim);
    padding: 2px 8px;
    border-radius: 6px;
    white-space: nowrap;
    border: 1px solid var(--gh-border);
    transition: var(--gh-transition-fast);
}
.platform-badge:hover { background: rgba(255,255,255,0.08); color: var(--gh-text-mid); }

/* Tags */
.tag-list { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag-chip {
    font-size: 0.75rem;
    background: rgba(124,92,252,0.10);
    color: var(--gh-primary-l);
    padding: 3px 11px;
    border-radius: 20px;
    text-decoration: none;
    border: 1px solid rgba(124,92,252,0.18);
    transition: var(--gh-transition);
    font-weight: 500;
}
.tag-chip:hover { background: var(--gh-primary); color: #fff; border-color: var(--gh-primary); box-shadow: var(--gh-glow); text-decoration: none; }
.tag-chip.active { background: var(--gh-primary); color: #fff; border-color: var(--gh-primary); }
.tag-chip .badge { background: rgba(255,255,255,0.15) !important; color: var(--gh-text-dim) !important; }

.tag-panel {
    max-height: 280px;
    overflow-y: auto;
    border: 1px solid var(--gh-border);
    border-radius: 10px;
    padding: 10px;
    background: rgba(0,0,0,0.2);
}
.tag-panel-item {
    display: inline-block;
    margin: 2px;
    padding: 4px 12px;
    border: 1px solid var(--gh-border);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.82rem;
    transition: var(--gh-transition);
    user-select: none;
    color: var(--gh-text-dim);
    background: rgba(255,255,255,0.03);
}
.tag-panel-item:hover { border-color: var(--gh-primary); background: rgba(124,92,252,0.1); color: var(--gh-text); }
.tag-panel-item.selected { background: var(--gh-primary); color: #fff; border-color: var(--gh-primary); box-shadow: 0 0 10px rgba(124,92,252,0.3); }

.filter-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(124,92,252,0.15);
    color: var(--gh-primary);
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.8rem;
    border: 1px solid rgba(124,92,252,0.3);
}
.filter-chip a { color: var(--gh-primary); text-decoration: none; font-weight: bold; opacity: 0.7; transition: opacity 0.2s; }
.filter-chip a:hover { opacity: 1; }

/* Cards generic */
.card { background: var(--gh-surface) !important; border: 1px solid var(--gh-border) !important; border-radius: var(--gh-radius) !important; color: var(--gh-text) !important; }
.card-header { background: rgba(0,0,0,0.2) !important; border-bottom: 1px solid var(--gh-border) !important; color: var(--gh-text) !important; font-weight: 600; }
.card-body { color: var(--gh-text) !important; }

/* Download */
.download-tabs .nav-tabs { border-bottom: 1px solid var(--gh-border); gap: 4px; }
.download-tabs .nav-tabs .nav-link {
    color: var(--gh-text-dim);
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    transition: var(--gh-transition);
    font-weight: 500;
    padding: 0.6rem 1rem;
}
.download-tabs .nav-tabs .nav-link:hover { color: var(--gh-text); border-bottom-color: rgba(124,92,252,0.3); }
.download-tabs .nav-tabs .nav-link.active { color: var(--gh-accent) !important; border-bottom-color: var(--gh-accent); background: transparent; }
.download-link-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: var(--gh-surface2);
    border: 1px solid var(--gh-border);
    border-radius: var(--gh-radius-sm);
    margin-bottom: 8px;
    text-decoration: none;
    color: var(--gh-text);
    transition: var(--gh-transition);
}
.download-link-btn:hover {
    border-color: var(--gh-primary);
    background: rgba(124,92,252,0.08);
    transform: translateX(4px);
    box-shadow: 0 0 15px rgba(124,92,252,0.1);
    text-decoration: none;
}
.download-link-btn .provider-name { font-weight: 600; color: var(--gh-text); }
.download-link-btn .file-info { font-size: 0.8rem; color: var(--gh-text-dim); }
.report-link-btn {
    font-size: 0.78rem;
    color: var(--gh-text-dim);
    text-decoration: none;
    padding: 4px 12px;
    border-radius: 16px;
    border: 1px solid var(--gh-border);
    transition: var(--gh-transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.report-link-btn:hover {
    color: #ffc107;
    border-color: rgba(255,193,7,0.3);
    background: rgba(255,193,7,0.05);
    text-decoration: none;
}

/* Like & Share — base styles (overridden by .gh-action-row on detail page) */
.like-btn {
    border: 1px solid var(--gh-border-l);
    background: var(--gh-surface);
    color: var(--gh-text);
    border-radius: 10px;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 0.88rem;
    transition: var(--gh-transition);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    line-height: 1;
}
.like-btn:hover { border-color: var(--gh-pink); color: var(--gh-pink); background: rgba(255,61,139,0.08); }
.like-btn.liked { background: var(--gh-pink); color: #fff; border-color: var(--gh-pink); }
.share-btn {
    border: 1px solid var(--gh-border-l);
    background: var(--gh-surface);
    color: var(--gh-text);
    border-radius: 10px;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 0.88rem;
    transition: var(--gh-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    line-height: 1;
}
.share-btn:hover { border-color: var(--gh-primary); color: var(--gh-primary); background: rgba(124,92,252,0.08); text-decoration: none; }

/* Leaderboard */
.leaderboard-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.leaderboard-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 24px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gh-text-dim);
    background: var(--gh-surface);
    border: 1px solid var(--gh-border);
    text-decoration: none;
    transition: var(--gh-transition);
}
.leaderboard-tab:hover {
    color: var(--gh-text);
    border-color: rgba(124,92,252,0.3);
    background: var(--gh-surface2);
    text-decoration: none;
}
.leaderboard-tab.active {
    background: linear-gradient(135deg, var(--gh-primary), var(--gh-primary-d));
    color: #fff;
    border-color: transparent;
    box-shadow: var(--gh-glow);
}
.leaderboard-periods {
    display: inline-flex;
    border: 1px solid var(--gh-border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--gh-surface);
}
.leaderboard-period {
    padding: 8px 20px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gh-text-dim);
    text-decoration: none;
    transition: var(--gh-transition);
    border-right: 1px solid var(--gh-border);
}
.leaderboard-period:last-child { border-right: none; }
.leaderboard-period:hover {
    color: var(--gh-text);
    background: var(--gh-surface2);
    text-decoration: none;
}
.leaderboard-period.active {
    color: var(--gh-accent);
    background: rgba(0,229,255,0.08);
    box-shadow: inset 0 -2px 0 var(--gh-accent);
}
.leaderboard-row {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid var(--gh-border);
    transition: var(--gh-transition);
    gap: 14px;
}
.leaderboard-row:hover { background: rgba(124,92,252,0.05); }
.leaderboard-row:last-child { border-bottom: none; }
.leaderboard-rank {
    font-family: var(--gh-font-display);
    font-size: 1.25rem;
    font-weight: 700;
    width: 42px;
    min-width: 42px;
    text-align: center;
    color: var(--gh-text-dim);
}
.leaderboard-rank.top-1 { color: var(--gh-gold); text-shadow: 0 0 10px rgba(255,215,0,0.4); }
.leaderboard-rank.top-2 { color: #c0c0c0; text-shadow: 0 0 8px rgba(192,192,192,0.3); }
.leaderboard-rank.top-3 { color: #cd7f32; text-shadow: 0 0 8px rgba(205,127,50,0.3); }
.leaderboard-cover {
    width: 56px;
    height: 32px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--gh-border);
    flex-shrink: 0;
}
.leaderboard-row .leaderboard-info { flex-grow: 1; min-width: 0; }
.leaderboard-row .leaderboard-info a {
    color: var(--gh-text);
    font-weight: 600;
    text-decoration: none;
    transition: var(--gh-transition);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}
.leaderboard-row .leaderboard-info a:hover { color: var(--gh-accent); }
.leaderboard-score {
    text-align: right;
    flex-shrink: 0;
}
.leaderboard-score .score-num {
    font-family: var(--gh-font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gh-text);
}
.leaderboard-score .score-label {
    font-size: 0.72rem;
    color: var(--gh-text-dim);
}

/* Maintenance banner */
.alert-maintenance {
    border-radius: 0;
    border-left: 4px solid #ffc107;
    background: rgba(255,193,7,0.1) !important;
    color: var(--gh-text) !important;
    border-top: none; border-right: none; border-bottom: none;
}
.alert-maintenance a { color: #ffc107 !important; }

/* Search autocomplete */
.autocomplete-suggestions {
    position: absolute;
    background: var(--gh-surface);
    border: 1px solid var(--gh-border);
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    width: 100%;
}
.autocomplete-suggestion {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--gh-border);
    color: var(--gh-text);
    transition: background 0.15s;
}
.autocomplete-suggestion:hover { background: rgba(124,92,252,0.1); }
.autocomplete-suggestion:last-child { border-bottom: none; }
.autocomplete-suggestion .type-label { font-size: 0.7rem; color: var(--gh-text-dim); margin-left: 6px; }

/* Game detail */
.game-detail-cover {
    border-radius: var(--gh-radius);
    overflow: hidden;
    box-shadow: var(--gh-shadow-lg);
    border: 1px solid var(--gh-border);
    position: relative;
}
.game-detail-cover img {
    aspect-ratio: 16/9;
    object-fit: cover;
    width: 100%;
}
.game-detail-cover::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 45%;
    background: linear-gradient(to top, rgba(10,10,26,0.5), transparent);
    pointer-events: none;
}
.game-detail-title {
    font-family: var(--gh-font-display);
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--gh-text);
    margin-bottom: 0.6rem;
    line-height: 1.25;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.dev-status-badge {
    font-family: var(--gh-font);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    vertical-align: middle;
    white-space: nowrap;
}
.dev-status-ongoing {
    background: rgba(0,229,255,0.12);
    color: var(--gh-accent);
    border: 1px solid rgba(0,229,255,0.25);
}
.dev-status-completed {
    background: rgba(40,200,100,0.12);
    color: var(--gh-success);
    border: 1px solid rgba(40,200,100,0.25);
}
.game-detail-section-title {
    font-family: var(--gh-font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--gh-text);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gh-border);
    display: flex;
    align-items: center;
    gap: 8px;
}
.game-detail-section-title i { color: var(--gh-primary); }
.game-detail-synopsis {
    color: var(--gh-text-mid);
    line-height: 1.75;
    font-size: 0.95rem;
}
.game-detail-about {
    color: var(--gh-text-mid);
    line-height: 1.75;
    font-size: 0.95rem;
}
.game-detail-info-card .info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--gh-border);
}
.game-detail-info-card .info-row:last-child { border-bottom: none; }
.game-detail-info-card .info-label {
    color: var(--gh-text-dim);
    font-size: 0.85rem;
    font-weight: 500;
}
.game-detail-info-card .info-value {
    color: var(--gh-text);
    font-weight: 600;
    font-size: 0.9rem;
    text-align: right;
}
.game-detail-info-card .info-value a { color: var(--gh-accent); text-decoration: none; }
.game-detail-info-card .info-value a:hover { text-decoration: underline; }
.game-detail-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    text-align: center;
}
.game-detail-stats .stat-item {
    padding: 10px 4px;
    border-radius: var(--gh-radius-sm);
    transition: var(--gh-transition);
}
.game-detail-stats .stat-item:hover { background: var(--gh-surface2); }
.game-detail-stats .stat-num {
    font-family: var(--gh-font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gh-text);
}
.game-detail-stats .stat-label {
    font-size: 0.7rem;
    color: var(--gh-text-dim);
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.game-detail-specs {
    background: var(--gh-bg2);
    border: 1px solid var(--gh-border);
    border-radius: var(--gh-radius-sm);
    padding: 14px 18px;
    overflow-x: auto;
}
.game-detail-specs code {
    color: var(--gh-accent);
    font-size: 0.88rem;
    line-height: 1.7;
    font-family: var(--gh-font-mono);
}

/* Riwayat Update (game detail) */
.game-update-history {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 1rem;
}
.game-update-item {
    background: var(--gh-bg2);
    border: 1px solid var(--gh-border);
    border-left: 3px solid var(--gh-primary);
    border-radius: var(--gh-radius-sm);
    padding: 14px 18px;
}
.game-update-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.game-update-date {
    color: var(--gh-text-dim);
    font-size: 0.85rem;
}
.game-update-link {
    margin-left: auto;
    font-size: 0.85rem;
    color: var(--gh-primary);
    text-decoration: none;
}
.game-update-link:hover { text-decoration: underline; }
.game-update-body { font-size: 0.92rem; line-height: 1.6; }
.game-update-body p:last-child { margin-bottom: 0; }
.game-update-body ul { margin: 0 0 0 1.2rem; padding: 0; }
.screenshot-gallery img {
    border-radius: var(--gh-radius-sm);
    cursor: pointer;
    transition: var(--gh-transition);
    border: 1px solid var(--gh-border);
    aspect-ratio: 16/9;
    object-fit: cover;
    width: 100%;
}
.screenshot-gallery img:hover { transform: scale(1.03); box-shadow: var(--gh-glow); }

/* Screenshot lightbox navigation */
.screenshot-nav {
    opacity: 0.7;
    transition: opacity 0.2s;
    z-index: 10;
}
.screenshot-nav:hover { opacity: 1; }
#screenshotModal .modal-content { background: transparent; }
#screenshotModal img { box-shadow: 0 0 30px rgba(0,0,0,0.5); }

/* Report page */
.report-page-card {
    max-width: 600px;
    margin: 0 auto;
}
.report-page-card .card-header {
    background: rgba(255,193,7,0.08) !important;
    border-bottom: 1px solid var(--gh-border) !important;
    padding: 16px 20px;
}
.report-page-card .card-header i { color: #ffc107; }
.report-form .form-control {
    background: var(--gh-surface2);
    border: 1px solid var(--gh-border);
    color: var(--gh-text);
    border-radius: 10px;
    transition: var(--gh-transition);
}
.report-form .form-control:focus {
    background: var(--gh-surface2);
    border-color: var(--gh-primary);
    box-shadow: 0 0 0 3px rgba(124,92,252,0.15);
    color: var(--gh-text);
}
.report-form .form-control::placeholder { color: var(--gh-text-dim); }
.report-btn-submit {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    border: none;
    color: #1a1a2e;
    font-weight: 700;
    border-radius: 24px;
    padding: 10px 28px;
    transition: var(--gh-transition);
}
.report-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,193,7,0.3);
    color: #1a1a2e;
}
.report-success-icon {
    font-size: 3rem;
    color: #28c864;
    filter: drop-shadow(0 0 12px rgba(40,200,100,0.4));
}

/* Request card */
.request-card {
    border: 1px solid var(--gh-border);
    border-radius: var(--gh-radius);
    padding: 1.25rem;
    margin-bottom: 12px;
    background: var(--gh-surface);
    transition: var(--gh-transition);
}
.request-card:hover { border-color: rgba(124,92,252,0.2); box-shadow: var(--gh-shadow); }
.vote-btn {
    border: 2px solid var(--gh-primary);
    background: transparent;
    color: var(--gh-primary);
    border-radius: 20px;
    padding: 6px 18px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--gh-transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.vote-btn:hover { background: rgba(124,92,252,0.10); box-shadow: 0 0 10px rgba(124,92,252,0.2); transform: translateY(-1px); }
.vote-btn.voted { background: var(--gh-primary); color: #fff; box-shadow: 0 0 12px rgba(124,92,252,0.3); }

/* Announcement */
.announcement-type-badge {
    font-size: 0.72rem;
    padding: 3px 12px;
    border-radius: 12px;
    font-weight: 600;
}
.type-news { background: rgba(0,229,255,0.15); color: var(--gh-accent); }
.type-update { background: rgba(40,200,100,0.15); color: #28c864; }
.type-changelog { background: rgba(124,92,252,0.15); color: var(--gh-primary); }
.type-maintenance { background: rgba(255,193,7,0.15); color: #ffc107; }
.type-event { background: rgba(255,61,139,0.15); color: var(--gh-pink); }

.markdown-body { color: var(--gh-text); line-height: 1.7; }
.markdown-body h2 { font-size: 1.4rem; margin-top: 1.5rem; color: var(--gh-text); }
.markdown-body h3 { font-size: 1.2rem; margin-top: 1rem; color: var(--gh-text); }
.markdown-body p { color: var(--gh-text-dim); }
.markdown-body a { color: var(--gh-accent); }
.markdown-body pre {
    background: var(--gh-bg2);
    border: 1px solid var(--gh-border);
    border-radius: 8px;
    padding: 12px;
    overflow-x: auto;
}
.markdown-body code { background: var(--gh-surface2); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; color: var(--gh-accent); }
.markdown-body pre code { background: none; padding: 0; color: var(--gh-text); }
.markdown-body blockquote { border-left: 4px solid var(--gh-primary); padding-left: 12px; color: var(--gh-text-dim); }
.markdown-body ul, .markdown-body ol { color: var(--gh-text-dim); }

/* Admin */
.admin-sidebar {
    min-height: calc(100vh - 56px);
    background: var(--gh-bg2);
    border-right: 1px solid var(--gh-border);
    padding: 0.75rem 0;
}
.admin-sidebar .nav-link {
    color: var(--gh-text-dim);
    border-radius: 8px;
    margin: 2px 8px;
    padding: 0.55rem 0.85rem;
    transition: var(--gh-transition);
    font-size: 0.88rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}
.admin-sidebar .nav-link i { font-size: 1rem; }
.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active {
    color: var(--gh-text);
    background: rgba(124,92,252,0.12);
    border-left: 3px solid var(--gh-primary);
    padding-left: calc(0.85rem - 3px);
}

/* Forms */
.form-control, .form-select {
    background: var(--gh-surface2) !important;
    border: 1px solid var(--gh-border) !important;
    color: var(--gh-text) !important;
    border-radius: var(--gh-radius-sm) !important;
    transition: var(--gh-transition);
    font-size: 0.9rem;
}
.form-control:focus, .form-select:focus {
    background: var(--gh-surface2) !important;
    border-color: var(--gh-primary) !important;
    box-shadow: 0 0 0 3px rgba(124,92,252,0.15) !important;
    color: var(--gh-text) !important;
}
.form-control::placeholder { color: var(--gh-text-dim); }
.form-label { color: var(--gh-text-mid); font-weight: 500; margin-bottom: 0.4rem; font-size: 0.88rem; }
.input-group-text { background: var(--gh-surface2) !important; border-color: var(--gh-border) !important; color: var(--gh-text-dim) !important; }

/* Buttons */
.btn { font-weight: 600; transition: var(--gh-transition); border-radius: var(--gh-radius-sm); }
.btn-primary {
    background: linear-gradient(135deg, var(--gh-primary), var(--gh-primary-d)) !important;
    border: none !important;
    font-weight: 600;
    transition: var(--gh-transition);
}
.btn-primary:hover { box-shadow: var(--gh-glow); transform: translateY(-1px); }
.btn-outline-primary { color: var(--gh-primary) !important; border-color: var(--gh-primary) !important; }
.btn-outline-primary:hover { background: var(--gh-primary) !important; color: #fff !important; border-color: var(--gh-primary) !important; }
.btn-outline-light { color: var(--gh-text-dim) !important; border-color: var(--gh-border) !important; }
.btn-outline-light:hover { background: rgba(255,255,255,0.05) !important; color: var(--gh-text) !important; }
.btn-outline-secondary { color: var(--gh-text-dim) !important; border-color: var(--gh-border) !important; }
.btn-outline-secondary:hover { background: rgba(255,255,255,0.05) !important; }
.btn-outline-danger { color: var(--gh-danger) !important; border-color: rgba(231,76,60,0.3) !important; }
.btn-outline-danger:hover { background: rgba(231,76,60,0.1) !important; }
.btn-outline-warning { color: var(--gh-warning) !important; border-color: rgba(255,193,7,0.3) !important; }
.btn-outline-warning:hover { background: rgba(255,193,7,0.1) !important; }
.btn-outline-success { color: var(--gh-success) !important; border-color: rgba(40,200,100,0.3) !important; }
.btn-outline-success:hover { background: rgba(40,200,100,0.1) !important; }
.btn-outline-info { color: var(--gh-accent) !important; border-color: rgba(0,229,255,0.3) !important; }
.btn-outline-info:hover { background: rgba(0,229,255,0.1) !important; }
.btn-danger { background: var(--gh-danger) !important; border: none !important; }
.btn-success { background: var(--gh-success) !important; border: none !important; }
.btn-warning { background: var(--gh-warning) !important; color: #000 !important; border: none !important; }
.btn-secondary { background: var(--gh-surface2) !important; border: 1px solid var(--gh-border) !important; color: var(--gh-text) !important; }

/* Badges */
.badge { font-weight: 500; border-radius: 6px; }
.badge.bg-secondary { background: var(--gh-surface2) !important; color: var(--gh-text-dim) !important; }
.badge.bg-light { background: rgba(255,255,255,0.1) !important; color: var(--gh-text-dim) !important; }
.badge.bg-danger { background: var(--gh-danger) !important; }
.badge.bg-success { background: var(--gh-success) !important; }
.badge.bg-warning { background: var(--gh-warning) !important; color: #000 !important; }
.badge.bg-info { background: var(--gh-accent) !important; color: #000 !important; }
.badge.bg-primary { background: var(--gh-primary) !important; }

/* Tables */
.table { color: var(--gh-text) !important; }
.table thead th { border-bottom: 1px solid var(--gh-border) !important; color: var(--gh-text-dim) !important; font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; }
.table td { border-color: var(--gh-border) !important; padding: 0.75rem !important; }
.table-hover tbody tr:hover { background: rgba(124,92,252,0.05) !important; }

/* Pagination */
.pagination .page-link {
    background: var(--gh-surface);
    border-color: var(--gh-border);
    color: var(--gh-text-dim);
    transition: var(--gh-transition);
    border-radius: 8px !important;
    margin: 0 2px;
}
.pagination .page-link:hover { background: var(--gh-surface2); color: var(--gh-text); border-color: var(--gh-primary); }
.pagination .page-item.active .page-link { background: var(--gh-primary); border-color: var(--gh-primary); color: #fff; }

/* Alerts */
.alert { border-radius: var(--gh-radius-sm); padding: 0.85rem 1.1rem; }
.alert-success { background: rgba(40,200,100,0.10); border-color: rgba(40,200,100,0.25); color: #5dd99a; }
.alert-danger { background: rgba(231,76,60,0.10); border-color: rgba(231,76,60,0.25); color: #ff7b6b; }
.alert-warning { background: rgba(255,193,7,0.10); border-color: rgba(255,193,7,0.25); color: #ffd54f; }
.alert-info { background: rgba(0,229,255,0.10); border-color: rgba(0,229,255,0.25); color: var(--gh-accent); }
.alert a { color: inherit; }

/* Dropdown */
.dropdown-menu {
    background: var(--gh-surface);
    border: 1px solid var(--gh-border);
    border-radius: var(--gh-radius-sm);
    box-shadow: var(--gh-shadow-lg);
    padding: 6px;
}
.dropdown-item { color: var(--gh-text-dim); transition: var(--gh-transition-fast); border-radius: 6px; padding: 8px 12px; }
.dropdown-item:hover { background: rgba(124,92,252,0.10); color: var(--gh-text); }
.dropdown-divider { border-color: var(--gh-border); }

/* Nav tabs (generic) */
.nav-tabs { border-bottom: 1px solid var(--gh-border); }
.nav-tabs .nav-link { color: var(--gh-text-dim); border: none; transition: var(--gh-transition); }
.nav-tabs .nav-link:hover { color: var(--gh-text); }
.nav-tabs .nav-link.active { color: var(--gh-accent); background: transparent; }

/* HR */
hr { border-color: var(--gh-border) !important; opacity: 0.5; }
.border-secondary { border-color: var(--gh-border) !important; }

/* Link row (admin) */
.link-row {
    background: var(--gh-surface2);
    border-color: var(--gh-border) !important;
}

/* Login page */
.login-card {
    background: var(--gh-surface);
    border: 1px solid var(--gh-border);
}

/* Responsive */
@media (max-width: 992px) {
    .game-detail-title { font-size: 1.5rem; }
}

@media (max-width: 768px) {
    .gh-hero h1 { font-size: 1.8rem; letter-spacing: 1px; }
    .gh-hero { padding: 2rem 1rem; }
    .gh-hero p { font-size: 1rem; }
    .search-box-nav { width: 100%; margin-top: 8px; }
    .section-title { font-size: 1.15rem; }
    .game-detail-title { font-size: 1.4rem; }
    .game-detail-section-title { font-size: 0.95rem; margin-top: 1.5rem; }
    .banner-title { font-size: 1.2rem !important; }
    .banner-subtitle { font-size: 0.85rem !important; }
    .gh-hero-stats-row { gap: 1.5rem; padding: 1.25rem 1rem; }
    .gh-hero-stats-row .gh-hero-stat .num { font-size: 1.5rem; }
    .leaderboard-row { padding: 12px 14px; gap: 10px; }
    .leaderboard-cover { width: 48px; height: 28px; }
    .leaderboard-rank { font-size: 1.1rem; width: 32px; min-width: 32px; }
    .download-link-btn { padding: 12px 14px; }
    .download-link-btn:hover { transform: none; }
    .like-btn, .share-btn, .wishlist-detail-btn { padding: 8px 14px; font-size: 0.82rem; }
    /* Game detail: stack columns on mobile */
    .game-detail-cover { margin-bottom: 1rem; }
    /* Download tabs: scrollable on mobile */
    .download-tabs .nav-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .download-tabs .nav-tabs .nav-link { white-space: nowrap; }
    /* Leaderboard tabs wrap */
    .leaderboard-tabs { gap: 6px; }
    .leaderboard-tab { padding: 6px 14px; font-size: 0.8rem; }
    .leaderboard-periods { flex-wrap: wrap; }
    /* Game detail stats: 2x2 grid on mobile */
    .game-detail-stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .game-detail-stats .stat-item { padding: 12px 4px; }
    /* Info card tighter */
    .game-detail-info-card .info-row { padding: 8px 0; }
    /* Screenshot gallery: 2 columns on tablet */
    .screenshot-gallery .col-md-4 { width: 50%; }
}

@media (max-width: 576px) {
    .gh-hero h1 { font-size: 1.5rem; }
    .gh-hero { padding: 1.5rem 1rem; border-radius: var(--gh-radius-lg); }
    .gh-hero-stats { gap: 1.25rem; }
    .gh-hero-stat .num { font-size: 1.4rem; }
    .gh-hero-stats-row { gap: 1rem; padding: 1rem 0.5rem; }
    .gh-hero-stats-row .gh-hero-stat .num { font-size: 1.25rem; }
    .gh-hero-stats-row .gh-hero-stat .label { font-size: 0.65rem; }
    .game-card .card-body { padding: 0.65rem; }
    .game-card .card-title { font-size: 0.82rem; }
    .game-stats { font-size: 0.7rem; gap: 0.5rem; }
    .platform-badge { font-size: 0.62rem; padding: 1px 6px; }
    .tag-chip { font-size: 0.7rem; padding: 2px 8px; }
    .section-title { font-size: 1.05rem; gap: 6px; }
    .section-title a { font-size: 0.75rem; }
    .game-detail-title { font-size: 1.2rem; gap: 8px; }
    .dev-status-badge { font-size: 0.62rem; padding: 3px 10px; }
    .banner-overlay { padding: 1rem; }
    .banner-title { font-size: 1rem !important; }
    .banner-arrow { width: 32px !important; height: 32px !important; }
    .banner-dot { width: 8px; height: 8px; }
    .download-link-btn { flex-direction: column; align-items: flex-start; gap: 4px; }
    .download-link-btn:hover { transform: none; }
    .leaderboard-row { flex-wrap: wrap; }
    .leaderboard-score { width: 100%; text-align: left; margin-top: 4px; }
    /* Language badge smaller on mobile */
    .game-cover-badge.badge-language { font-size: 0.6rem; padding: 2px 8px; }
    /* Navbar brand smaller */
    .gh-brand { font-size: 1.15rem; }
    .gh-theme-toggle, .gh-fav-toggle { width: 34px; height: 34px; font-size: 0.9rem; }
    .gh-nav-actions { gap: 4px; }
    /* Container tighter padding */
    .container { padding-left: 0.75rem; padding-right: 0.75rem; }
    /* Footer columns stack */
    .gh-footer { padding: 2rem 0 1rem; }
    .gh-footer .col-md-2 { margin-bottom: 1rem; }
    /* Like/share/wishlist buttons full width row */
    .gh-action-row { gap: 6px; }
    .gh-action-row .like-btn,
    .gh-action-row .wishlist-detail-btn,
    .gh-action-row .share-btn { flex: 1; justify-content: center; padding: 9px 8px; font-size: 0.78rem; }
    /* Game card cover badge language: compact */
    .game-cover-badge.badge-language { top: 6px; left: 6px; }
    .game-cover-badge { top: 6px; right: 6px; }
    /* Screenshot gallery: 1 column on very small screens */
    .screenshot-gallery .col-md-4,
    .screenshot-gallery .col-6 { width: 100%; }
    /* Game detail stats: 2x2 */
    .game-detail-stats { grid-template-columns: repeat(2, 1fr); }
    /* Download link button: stack content */
    .download-link-btn .file-info { font-size: 0.75rem; }
    /* Report link button full width */
    .report-link-btn { width: 100%; justify-content: center; }
}

/* Fade-in animation */
.gh-fade-in {
    animation: gh-fade-in 0.5s ease-out;
}
@keyframes gh-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Smooth scroll reveal */
@media (prefers-reduced-motion: no-preference) {
    .game-card { animation: gh-fade-in 0.4s ease-out both; }
    .leaderboard-row { animation: gh-fade-in 0.3s ease-out both; }
}

/* Stat card (admin dashboard) */
.card.text-white.bg-primary { background: linear-gradient(135deg, var(--gh-primary), var(--gh-primary-d)) !important; border: none !important; }
.card.text-white.bg-info { background: linear-gradient(135deg, var(--gh-accent), #00b8d4) !important; color: #000 !important; border: none !important; }
.card.text-white.bg-danger { background: linear-gradient(135deg, var(--gh-pink), #c92e6f) !important; border: none !important; }
.card.text-white.bg-success { background: linear-gradient(135deg, #28c864, #1a9b4a) !important; border: none !important; }
.card.text-white.bg-warning { background: linear-gradient(135deg, #ffc107, #f59e0b) !important; color: #000 !important; border: none !important; }
.card.text-white.bg-secondary { background: linear-gradient(135deg, var(--gh-surface2), var(--gh-surface)) !important; border: 1px solid var(--gh-border) !important; }
.card.text-white { color: #fff !important; }
.card.text-white .text-muted { color: rgba(255,255,255,0.7) !important; }

/* Ad slots */
.ad-slot {
    background: var(--gh-surface);
    border: 1px solid var(--gh-border);
    border-radius: var(--gh-radius);
    overflow: hidden;
    text-align: center;
}
.ad-slot .ad-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gh-text-dim);
    padding: 4px 8px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid var(--gh-border);
}
.ad-slot .ad-content {
    padding: 12px;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ad-slot .ad-content:empty { display: none; }
.ad-slot img,
.ad-slot ins,
.ad-slot iframe { max-width: 100%; border-radius: 8px; }

/* Footer */
.gh-footer {
    background: var(--gh-bg2);
    border-top: 1px solid var(--gh-border);
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}
.gh-footer .gh-brand { font-size: 1.1rem; }
.gh-footer a { transition: var(--gh-transition-fast); }
.gh-footer a:hover { color: var(--gh-accent) !important; }
.gh-footer hr { margin: 1.5rem 0 1rem; }

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid var(--gh-primary);
    outline-offset: 2px;
}

/* Selection */
::selection {
    background: rgba(124,92,252,0.3);
    color: #fff;
}

/* Theme toggle & Favorite button */
.gh-nav-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}
@media (min-width: 992px) {
    .gh-nav-actions { margin-left: 0; }
}
.gh-theme-toggle, .gh-fav-toggle {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--gh-border);
    color: var(--gh-text-dim);
    border-radius: 10px;
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    transition: var(--gh-transition);
    text-decoration: none;
    flex-shrink: 0;
    font-size: 1rem;
    position: relative;
}
.gh-theme-toggle:hover, .gh-fav-toggle:hover {
    background: rgba(124,92,252,0.12);
    color: var(--gh-primary);
    border-color: rgba(124,92,252,0.3);
}
.gh-theme-toggle:active, .gh-fav-toggle:active {
    transform: scale(0.95);
}
.gh-fav-toggle .fav-badge {
    position: absolute;
    top: -5px; right: -5px;
    background: var(--gh-pink);
    color: #fff;
    font-size: 0.58rem;
    font-weight: 700;
    border-radius: 10px;
    padding: 1px 5px;
    min-width: 17px;
    height: 17px;
    line-height: 15px;
    text-align: center;
    display: none;
    border: 2px solid var(--gh-bg);
}
.gh-fav-toggle .fav-badge.visible { display: block; }

/* Wishlist button on game card */
.wishlist-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    z-index: 4;
    background: rgba(15,15,35,0.85);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--gh-text);
    border-radius: 8px;
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: var(--gh-transition);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 0.85rem;
}
.wishlist-btn:hover {
    color: var(--gh-pink);
    border-color: var(--gh-pink);
    background: rgba(255,61,139,0.15);
}
.wishlist-btn.active {
    background: var(--gh-pink);
    color: #fff;
    border-color: var(--gh-pink);
}

/* Action row (like / wishlist / share) on game detail */
.gh-action-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.gh-action-row .like-btn,
.gh-action-row .wishlist-detail-btn,
.gh-action-row .share-btn {
    border: 1px solid var(--gh-border-l);
    background: var(--gh-surface);
    color: var(--gh-text);
    border-radius: 10px;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 0.88rem;
    transition: var(--gh-transition);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    line-height: 1;
}
.gh-action-row .like-btn:hover {
    border-color: var(--gh-pink);
    color: var(--gh-pink);
    background: rgba(255,61,139,0.08);
}
.gh-action-row .like-btn.liked {
    background: var(--gh-pink);
    color: #fff;
    border-color: var(--gh-pink);
}
.gh-action-row .wishlist-detail-btn:hover {
    border-color: var(--gh-gold);
    color: var(--gh-gold);
    background: rgba(255,215,0,0.08);
}
.gh-action-row .wishlist-detail-btn.active {
    background: var(--gh-gold);
    color: #1a1a2e;
    border-color: var(--gh-gold);
}
.gh-action-row .share-btn:hover {
    border-color: var(--gh-primary);
    color: var(--gh-primary);
    background: rgba(124,92,252,0.08);
    text-decoration: none;
}

/* Collection card */
.collection-card {
    background: var(--gh-surface);
    border: 1px solid var(--gh-border);
    border-radius: var(--gh-radius);
    overflow: hidden;
    transition: var(--gh-transition);
    position: relative;
    display: block;
    text-decoration: none;
    color: var(--gh-text);
}
.collection-card:hover {
    transform: translateY(-4px);
    border-color: rgba(124,92,252,0.25);
    box-shadow: var(--gh-shadow-lg);
    text-decoration: none;
}
.collection-card-cover {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--gh-surface2);
    position: relative;
}
.collection-card-cover img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease;
}
.collection-card:hover .collection-card-cover img { transform: scale(1.05); }
.collection-card-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,26,0.8), transparent 60%);
}
.collection-card-body {
    padding: 1rem;
    position: relative;
    z-index: 2;
}
.collection-card-title {
    font-family: var(--gh-font-display);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--gh-text);
}
.collection-card-desc {
    font-size: 0.82rem;
    color: var(--gh-text-dim);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Filter sidebar enhancements */
.filter-sidebar .form-check-input {
    background-color: var(--gh-surface2);
    border-color: var(--gh-border-l);
}
.filter-sidebar .form-check-input:checked {
    background-color: var(--gh-primary);
    border-color: var(--gh-primary);
}
.filter-sidebar .form-check-label {
    color: var(--gh-text-mid);
    font-size: 0.85rem;
    cursor: pointer;
}

/* Light theme */
[data-theme="light"] {
    --gh-bg:        #f5f5fa;
    --gh-bg2:       #ffffff;
    --gh-surface:   #ffffff;
    --gh-surface2:  #f0f0f5;
    --gh-surface3:  #e8e8f0;
    --gh-border:    rgba(0,0,0,0.10);
    --gh-border-l:  rgba(0,0,0,0.16);
    --gh-text:      #1a1a2e;
    --gh-text-dim:  #6a6a8a;
    --gh-text-mid:  #4a4a6a;
}
[data-theme="light"] body::before {
    background:
        radial-gradient(ellipse at 20% 0%, rgba(124,92,252,0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(0,229,255,0.04) 0%, transparent 50%);
}
[data-theme="light"] .gh-navbar {
    background: rgba(255,255,255,0.85);
    border-bottom-color: var(--gh-border);
}
[data-theme="light"] .gh-navbar.scrolled {
    background: rgba(255,255,255,0.95);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
[data-theme="light"] .game-card-cover::after {
    background: linear-gradient(to top, var(--gh-surface), transparent);
}
[data-theme="light"] .game-detail-cover::after {
    background: linear-gradient(to top, rgba(255,255,255,0.4), transparent);
}
[data-theme="light"] .banner-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
}
[data-theme="light"] .wishlist-btn {
    background: rgba(255,255,255,0.85);
    border-color: rgba(0,0,0,0.12);
}
[data-theme="light"] .game-cover-badge.badge-language {
    background: rgba(255,255,255,0.85);
}
[data-theme="light"] .gh-theme-toggle,
[data-theme="light"] .gh-fav-toggle {
    background: rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.10);
}
[data-theme="light"] .gh-fav-toggle .fav-badge {
    border-color: #fff;
}
