:root {
    --primary: #7c3aed;
    --primary-rgb: 124, 58, 237;
    --primary-dark: #5b21b6;
    --secondary: #10b981;
    --dark: #0b1120;
    --darker: #030712;
    --light: #e2e8f0;
    --lighter: #f8fafc;
    --accent: #ec4899;
    --accent-rgb: 236, 72, 153;
    --accent-cyan: #06b6d4;
    --gray: #1e293b;
    --gray-light: #475569;
    --success: #10b981;
    --error: #ef4444;
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --body-glow-1: rgba(124, 58, 237, 0.14);
    --body-glow-2: rgba(236, 72, 153, 0.10);
    --body-glow-3: rgba(6, 182, 212, 0.06);
    --header-bg: rgba(11, 17, 32, 0.88);
    --footer-bg: rgba(2, 6, 23, 0.95);
    --brand-text-glow: linear-gradient(135deg, #ffffff 0%, #a78bfa 50%, #ec4899 100%);
}

:root[data-theme="purple"] {
    --primary: #7c3aed;
    --primary-rgb: 124, 58, 237;
    --primary-dark: #5b21b6;
    --accent: #ec4899;
    --accent-rgb: 236, 72, 153;
    --body-glow-1: rgba(124, 58, 237, 0.14);
    --body-glow-2: rgba(236, 72, 153, 0.10);
    --body-glow-3: rgba(6, 182, 212, 0.06);
    --brand-text-glow: linear-gradient(135deg, #ffffff 0%, #a78bfa 50%, #ec4899 100%);
}

:root[data-theme="cyberpunk"] {
    --primary: #06b6d4;
    --primary-rgb: 6, 182, 212;
    --primary-dark: #0891b2;
    --accent: #3b82f6;
    --accent-rgb: 59, 130, 246;
    --body-glow-1: rgba(6, 182, 212, 0.16);
    --body-glow-2: rgba(59, 130, 246, 0.12);
    --body-glow-3: rgba(124, 58, 237, 0.08);
    --brand-text-glow: linear-gradient(135deg, #ffffff 0%, #67e8f9 50%, #3b82f6 100%);
}

:root[data-theme="emerald"] {
    --primary: #10b981;
    --primary-rgb: 16, 185, 129;
    --primary-dark: #059669;
    --accent: #06b6d4;
    --accent-rgb: 6, 182, 212;
    --body-glow-1: rgba(16, 185, 129, 0.15);
    --body-glow-2: rgba(6, 182, 212, 0.12);
    --body-glow-3: rgba(59, 130, 246, 0.06);
    --brand-text-glow: linear-gradient(135deg, #ffffff 0%, #6ee7b7 50%, #06b6d4 100%);
}

:root[data-theme="sunset"] {
    --primary: #f59e0b;
    --primary-rgb: 245, 158, 11;
    --primary-dark: #d97706;
    --accent: #ef4444;
    --accent-rgb: 239, 68, 68;
    --body-glow-1: rgba(245, 158, 11, 0.15);
    --body-glow-2: rgba(239, 68, 68, 0.12);
    --body-glow-3: rgba(236, 72, 153, 0.06);
    --brand-text-glow: linear-gradient(135deg, #ffffff 0%, #fde047 50%, #ef4444 100%);
}

:root[data-theme="crimson"] {
    --primary: #ef4444;
    --primary-rgb: 239, 68, 68;
    --primary-dark: #dc2626;
    --accent: #f97316;
    --accent-rgb: 249, 115, 22;
    --body-glow-1: rgba(239, 68, 68, 0.16);
    --body-glow-2: rgba(249, 115, 22, 0.12);
    --body-glow-3: rgba(236, 72, 153, 0.06);
    --brand-text-glow: linear-gradient(135deg, #ffffff 0%, #fca5a5 50%, #f97316 100%);
}

:root[data-theme="neon"] {
    --primary: #84cc16;
    --primary-rgb: 132, 204, 22;
    --primary-dark: #65a30d;
    --accent: #06b6d4;
    --accent-rgb: 6, 182, 212;
    --body-glow-1: rgba(132, 204, 22, 0.15);
    --body-glow-2: rgba(6, 182, 212, 0.12);
    --body-glow-3: rgba(16, 185, 129, 0.06);
    --brand-text-glow: linear-gradient(135deg, #ffffff 0%, #bef264 50%, #06b6d4 100%);
}

:root[data-theme="synthwave"] {
    --primary: #f43f5e;
    --primary-rgb: 244, 63, 94;
    --primary-dark: #e11d48;
    --accent: #a855f7;
    --accent-rgb: 168, 85, 247;
    --body-glow-1: rgba(244, 63, 94, 0.16);
    --body-glow-2: rgba(168, 85, 247, 0.13);
    --body-glow-3: rgba(236, 72, 153, 0.08);
    --brand-text-glow: linear-gradient(135deg, #ffffff 0%, #fda4af 50%, #a855f7 100%);
}

:root[data-theme="glacier"] {
    --primary: #38bdf8;
    --primary-rgb: 56, 189, 248;
    --primary-dark: #0284c7;
    --accent: #818cf8;
    --accent-rgb: 129, 140, 248;
    --body-glow-1: rgba(56, 189, 248, 0.16);
    --body-glow-2: rgba(129, 140, 248, 0.12);
    --body-glow-3: rgba(6, 182, 212, 0.07);
    --brand-text-glow: linear-gradient(135deg, #ffffff 0%, #7dd3fc 50%, #818cf8 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
}

body {
    background-color: var(--darker);
    background-image: 
        radial-gradient(at 0% 0%, var(--body-glow-1) 0px, transparent 55%),
        radial-gradient(at 100% 100%, var(--body-glow-2) 0px, transparent 55%),
        radial-gradient(at 50% 50%, var(--body-glow-3) 0px, transparent 55%);
    color: var(--lighter);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-image 0.5s ease;
}

html {
    scroll-behavior: smooth;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--darker);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--accent));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Hide scrollbar on horizontal category pill bars & tags lists */
.category-pill-bar,
.categories,
.game-tags-list {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.category-pill-bar::-webkit-scrollbar,
.categories::-webkit-scrollbar,
.game-tags-list::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Header & Brand Layout */
.site-header {
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: white;
    padding: 1.1rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 100;
    border-bottom: 1px solid rgba(var(--primary-rgb), 0.25);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
}

.logo-icon-wrapper {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.3), rgba(var(--accent-rgb), 0.3));
    border: 1px solid rgba(var(--primary-rgb), 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary);
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.3);
    transition: all 0.3s ease;
}

.logo:hover .logo-icon-wrapper {
    transform: scale(1.08) rotate(-4deg);
    border-color: var(--accent);
    box-shadow: 0 0 25px rgba(var(--accent-rgb), 0.5);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: var(--brand-text-glow);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.1;
}

.brand-tagline {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Redesigned Search Container */
.search-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 38%;
    max-width: 520px;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.search-icon-left {
    position: absolute;
    left: 1.15rem;
    color: #64748b;
    font-size: 0.95rem;
    pointer-events: none;
    transition: color 0.3s ease;
    z-index: 2;
}

.search-container input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 2.85rem !important;
    background-color: rgba(15, 23, 42, 0.85);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    outline: none;
    font-size: 0.92rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-input-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
    background: rgba(15, 23, 42, 0.95);
}

.search-input-wrapper input.search-highlight {
    border-color: var(--accent) !important;
    box-shadow: 0 0 25px rgba(236, 72, 153, 0.6) !important;
}

.search-container input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.3), 0 0 20px rgba(124, 58, 237, 0.25);
    background-color: rgba(2, 6, 23, 0.95);
}

.search-container input:focus ~ .search-icon-left {
    color: var(--primary);
}

/* Mobile Search Toggle Button */
.mobile-search-toggle-btn {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: white;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-search-toggle-btn:hover,
.mobile-search-toggle-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.4);
}

.search-action-btn {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.search-action-btn:hover {
    color: var(--error);
}

.search-submit-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
    flex-shrink: 0;
}

.search-submit-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.6);
}

/* Theme Picker Switcher */
.theme-picker-container {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.theme-toggle-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
    background: rgba(124, 58, 237, 0.2);
    color: var(--accent);
    border-color: rgba(124, 58, 237, 0.4);
    transform: rotate(30deg) scale(1.05);
}

.theme-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 0.5rem;
    display: none;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 140px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    z-index: 1000;
}

.theme-dropdown-menu.active {
    display: flex;
}

.theme-option-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
    background: transparent;
    border: none;
    color: #cbd5e1;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
}

.theme-option-btn:hover,
.theme-option-btn.active {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.theme-dot-preview {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
}

/* Nav */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 1.25rem;
    align-items: center;
}

.main-nav ul li a {
    font-family: var(--font-heading);
    color: #cbd5e1;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.3s ease;
    padding: 0.55rem 1.1rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.main-nav ul li a i {
    font-size: 0.9rem;
    color: #94a3b8;
    transition: color 0.3s ease, transform 0.3s ease;
}

.main-nav ul li a:hover {
    color: white;
    text-decoration: none !important;
    background: rgba(124, 58, 237, 0.2);
    border-color: rgba(124, 58, 237, 0.4);
    transform: translateY(-2px);
}

.main-nav ul li a:hover i {
    color: var(--accent);
    transform: scale(1.15);
}

.main-nav ul li a.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

.main-nav ul li a.active i {
    color: white;
}

.nav-divider,
.nav-legal-item {
    display: none;
}
nav ul li a:hover, nav ul li a.active {
    color: white;
    text-shadow: 0 0 10px rgba(236, 72, 153, 0.5);
    text-decoration: none !important;
}

/* Main */
main {
    padding: 2.5rem 2rem;
    max-width: 1600px;
    margin: 0 auto;
    flex: 1;
    width: 100%;
}

/* Categories Filter Bar */
.categories {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.categories a,
.category-btn {
    font-family: var(--font-heading);
    padding: 0.6rem 1.25rem;
    background: rgba(30, 41, 59, 0.5);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.88rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    outline: none;
    user-select: none;
    text-decoration: none !important;
}

.category-btn i {
    font-size: 0.95rem;
    color: #94a3b8;
    transition: color 0.3s ease, transform 0.3s ease;
}

.categories a:hover,
.category-btn:hover {
    background: rgba(124, 58, 237, 0.2);
    color: white;
    border-color: rgba(124, 58, 237, 0.4);
    transform: translateY(-2px);
    text-decoration: none !important;
}

.category-btn:hover i {
    color: var(--accent);
    transform: scale(1.15);
}

.category-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.5), 0 0 12px rgba(236, 72, 153, 0.3);
    transform: translateY(-2px);
    text-decoration: none !important;
}

.category-btn.active i {
    color: white;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    letter-spacing: -0.3px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 45px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.5);
}

/* Game Grid & Cards */
.game-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1.75rem;
    margin-top: 1.25rem;
}

.game-card {
    background: rgba(15, 23, 42, 0.7);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(5px);
    cursor: pointer;
}

.game-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-7px) scale(1.02);
    box-shadow: 0 20px 35px -5px rgba(124, 58, 237, 0.35), 0 0 20px rgba(6, 182, 212, 0.2);
    border-color: rgba(124, 58, 237, 0.5);
}

.game-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.game-card-category-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    background: rgba(15, 23, 42, 0.85);
    color: #a78bfa;
    border: 1px solid rgba(124, 58, 237, 0.4);
    backdrop-filter: blur(8px);
    padding: 0.25rem 0.65rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    pointer-events: none;
    transition: transform 0.3s ease;
}

.game-card:hover .game-card-category-badge {
    transform: translateY(-2px);
    border-color: var(--accent);
    color: white;
}

.game-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(3, 7, 18, 0.95) 0%, rgba(3, 7, 18, 0.4) 60%, transparent 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

.game-card:hover .play-overlay {
    opacity: 1;
}

.play-btn {
    font-family: var(--font-heading);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.65rem 1.4rem;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
}

.play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.6);
}

.game-info {
    padding: 1.1rem;
}

.game-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: white;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--gray-light);
}

.game-category {
    background: rgba(124, 58, 237, 0.2);
    color: #a78bfa;
    padding: 0.25rem 0.65rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid rgba(124, 58, 237, 0.3);
}

.game-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #fbbf24;
    font-weight: 600;
}

.game-card .favorite-btn {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    background: rgba(15, 23, 42, 0.75);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.game-card .favorite-btn:hover, .game-card .favorite-btn.favorited {
    background: var(--accent);
    color: white;
    box-shadow: 0 0 12px rgba(236, 72, 153, 0.6);
    border-color: transparent;
}

/* Empty State */
.no-games {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3.5rem 2rem;
    color: var(--gray-light);
    background: rgba(15, 23, 42, 0.5);
    border-radius: 16px;
    border: 1px dashed rgba(255, 255, 255, 0.15);
}

.no-games i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

/* Smart Fallback Empty State */
.empty-fallback-banner {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.25rem;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.7));
    border-left: 4px solid var(--primary);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.recent-games .empty-fallback-banner {
    border-left-color: #f59e0b;
}

.favorite-games .empty-fallback-banner {
    border-left-color: #ec4899;
}

.empty-fallback-banner i {
    font-size: 1.35rem;
    flex-shrink: 0;
}

.empty-fallback-text h4 {
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 0.15rem;
}

.empty-fallback-text p {
    font-size: 0.85rem;
    color: #94a3b8;
    margin: 0;
}

.empty-fallback-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    width: 100%;
}

/* Modal Player */
.game-player {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(3, 7, 18, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(12px);
    padding: 1.5rem 1rem;
}

.game-player.active {
    opacity: 1;
    pointer-events: all;
}

.modal-top-bar {
    width: 90%;
    max-width: 1250px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.modal-game-info {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
}

.modal-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(124, 58, 237, 0.2);
    color: #a78bfa;
    border: 1px solid rgba(124, 58, 237, 0.4);
    padding: 0.4rem 0.95rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.modal-link-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

.modal-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.modal-icon-btn:hover {
    background: rgba(124, 58, 237, 0.3);
    border-color: var(--primary);
    transform: scale(1.08);
}

.close-btn {
    position: static;
    background: rgba(239, 68, 68, 0.25);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    z-index: 1001;
}

.close-btn:hover {
    background: var(--error);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.6);
}

.game-frame-container {
    width: 90%;
    height: 80vh;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    aspect-ratio: 16/9;
    max-width: 1250px;
    max-height: 80vh;
    border: 1px solid rgba(124, 58, 237, 0.4);
}

/* Visibility State Rules */
.search-results { display: none; }
.search-results.active { display: block; }
.search-mode .recent-games,
.search-mode .favorite-games,
.search-mode .all-games-title,
.search-mode #all-games-container,
.search-mode .eeat-section { display: none; }

.favorite-games, .all-games-title { margin-top: 50px; }

.category-mode .recent-games,
.category-mode .favorite-games,
.category-mode .all-games-title,
.category-mode .eeat-section { display: none; }
.category-mode .category-title { display: block; }
.category-title { display: none; }

.favorites-mode .recent-games,
.favorites-mode .categories,
.favorites-mode .all-games-title,
.favorites-mode #all-games-container,
.favorites-mode .search-results,
.favorites-mode .category-title,
.favorites-mode .eeat-section { display: none; }
.favorites-mode .favorite-games { display: block; margin-top: 0; }

/* E-E-A-T AdSense Section Styling */
.eeat-section {
    margin-top: 4.5rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.eeat-container {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.eeat-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    backdrop-filter: none;
    position: relative;
}

.eeat-card::before {
    display: none;
}

.eeat-header {
    margin-bottom: 1.5rem;
}

.eeat-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(124, 58, 237, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(124, 58, 237, 0.35);
    padding: 0.4rem 0.95rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 0.85rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.eeat-title {
    font-family: var(--font-heading);
    font-size: 2.1rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
    line-height: 1.25;
}

.eeat-lead {
    font-size: 1.12rem;
    line-height: 1.75;
    color: #cbd5e1;
    margin-bottom: 1.25rem;
}

.eeat-card p,
main p {
    color: #94a3b8;
    line-height: 1.75;
    font-size: 1rem;
}

.eeat-card p a,
main p a {
    color: #a78bfa;
    text-decoration: none;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.eeat-card p a:hover,
main p a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.eeat-card p + p,
main p + p {
    margin-top: 1.1rem;
}

.eeat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.eeat-feature-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.eeat-feature-box:hover {
    border-color: rgba(124, 58, 237, 0.35);
    background: rgba(255, 255, 255, 0.04);
}

/* Unboxed Single Game Page Content & Details Layout */
.game-content-card {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    margin-bottom: 3rem;
}

.game-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0 1.5rem 0;
}

.game-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    transition: all 0.25s ease;
}

.game-tag-pill:hover {
    color: white;
    background: rgba(124, 58, 237, 0.25);
    border-color: rgba(124, 58, 237, 0.4);
    transform: translateY(-1px);
}

.game-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.85rem;
    margin-top: 1rem;
}

.game-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.85rem 1.1rem;
    border-radius: 12px;
    font-size: 0.93rem;
    color: #cbd5e1;
    line-height: 1.6;
}

.game-feature-item i {
    font-size: 1.1rem;
    color: #10b981;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

/* Single Game Page Stage & Player Styling */
.game-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-family: var(--font-heading);
    color: #94a3b8;
    flex-wrap: wrap;
}

.game-breadcrumbs a {
    color: #a78bfa;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.game-breadcrumbs a:hover {
    color: var(--accent);
}

.breadcrumb-sep {
    font-size: 0.75rem;
    color: #64748b;
}

.game-stage-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    backdrop-filter: none;
    margin-bottom: 2.5rem;
}

/* Structured Controls & How to Play Grid */
.controls-guide-section {
    margin: 2.5rem 0;
}

.controls-guide-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.walkthrough-video-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 1.5rem 0 2rem 0;
}

#gamemonetize-video {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Technical Specifications & Browser Support Grid UI */
.tech-spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

.tech-spec-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.6) 0%, rgba(30, 41, 59, 0.4) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 1.35rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.tech-spec-card:hover {
    border-color: rgba(124, 58, 237, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px -10px rgba(124, 58, 237, 0.25);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 41, 59, 0.6) 100%);
}

.tech-spec-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.tech-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border: 1px solid transparent;
}

.tech-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.tech-badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.tech-badge-purple {
    background: rgba(167, 139, 250, 0.15);
    color: #c4b5fd;
    border: 1px solid rgba(167, 139, 250, 0.3);
}

.tech-badge-amber {
    background: rgba(251, 191, 36, 0.15);
    color: #fcd34d;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.tech-badge-cyan {
    background: rgba(6, 182, 212, 0.15);
    color: #67e8f9;
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.tech-spec-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.35rem;
}

.tech-spec-desc {
    font-size: 0.88rem;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.browser-icon-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.browser-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
}

.fps-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.fps-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b 0%, #10b981 100%);
    border-radius: 10px;
}

/* Visual Recommended Games Discovery Matrix */
.rec-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.rec-game-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.6) 0%, rgba(30, 41, 59, 0.4) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 0.85rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.rec-game-card:hover {
    border-color: rgba(124, 58, 237, 0.45);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, rgba(30, 41, 59, 0.6) 100%);
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 10px 25px -5px rgba(124, 58, 237, 0.3);
}

.rec-game-thumb-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.rec-game-thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.rec-game-card:hover .rec-game-thumb-wrapper img {
    transform: scale(1.1);
}

.rec-game-rating {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    color: #fbbf24;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.rec-game-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.rec-game-cat {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #a78bfa;
    margin-bottom: 0.2rem;
}

.rec-game-title {
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.rec-game-card:hover .rec-game-title {
    color: #e0e7ff;
}

.rec-game-cta {
    font-size: 0.78rem;
    font-weight: 600;
    color: #38bdf8;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: gap 0.2s ease, color 0.2s ease;
}

.rec-game-card:hover .rec-game-cta {
    color: var(--accent);
    gap: 0.55rem;
}

.controls-guide-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Visual Gaming Keycaps Styling */
.keycap-display-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.keycap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 0.6rem;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(124, 58, 237, 0.4);
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: white;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Social Sharing Dock UI */
.game-share-dock {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 1.5rem 0 2rem 0;
    padding: 1rem 1.25rem;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.25s ease;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
}

.share-whatsapp {
    background: rgba(37, 211, 102, 0.15);
    color: #25D366;
    border-color: rgba(37, 211, 102, 0.3);
}

.share-whatsapp:hover {
    background: #25D366;
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.share-x {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.share-x:hover {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.share-copylink {
    background: rgba(124, 58, 237, 0.15);
    color: #c4b5fd;
    border-color: rgba(124, 58, 237, 0.3);
}

.share-copylink:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

/* Sticky Floating Quick Action Bar UI (Icon-Only Left Center Float) */
.sticky-action-dock {
    position: fixed;
    top: 50%;
    left: 1rem;
    right: auto;
    transform: translateY(-50%);
    z-index: 990;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.5rem;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(124, 58, 237, 0.35);
    border-radius: 50px;
    box-shadow: 5px 10px 30px rgba(0, 0, 0, 0.6), 0 0 25px rgba(124, 58, 237, 0.25);
    animation: stickySlideInLeft 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes stickySlideInLeft {
    from {
        opacity: 0;
        transform: translate(-20px, -50%);
    }
    to {
        opacity: 1;
        transform: translate(0, -50%);
    }
}

.sticky-dock-btn span {
    display: none !important;
}

.sticky-dock-btn {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    bottom: auto !important;
    width: 42px !important;
    height: 42px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: var(--font-heading);
    color: white;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.sticky-dock-btn i {
    font-size: 1.15rem;
    width: auto;
    text-align: center;
    flex-shrink: 0;
}

.sticky-btn-fs {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.sticky-btn-fs:hover {
    transform: translateX(3px);
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.5);
}

.sticky-btn-fav {
    background: rgba(255, 255, 255, 0.08);
    color: #f43f5e;
    border: 1px solid rgba(244, 63, 94, 0.3);
}

.sticky-btn-fav:hover, .sticky-btn-fav.favorited {
    background: #f43f5e;
    color: white;
    transform: translateX(3px);
}

.sticky-btn-share {
    background: rgba(255, 255, 255, 0.08);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.sticky-btn-share:hover {
    background: #0284c7;
    color: white;
    transform: translateX(3px);
}

.sticky-btn-random {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.sticky-btn-random:hover {
    transform: translateX(3px);
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.5);
}

/* Toast Notification Styling */
.game-toast {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    background: #10b981;
    color: white;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    opacity: 0;
    transform: translateY(-15px);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-toast.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .sticky-action-dock {
        left: 0.75rem;
        right: auto;
        padding: 0.5rem 0.4rem;
        border-radius: 50px;
    }
    .sticky-dock-btn span {
        display: none;
    }
    .sticky-dock-btn {
        padding: 0.65rem;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        justify-content: center;
    }
}

.controls-guide-row {
    display: grid;
    grid-template-columns: 240px 1fr;
    align-items: center;
    gap: 1.5rem;
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.controls-guide-row:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(var(--primary-rgb), 0.3);
}

.controls-guide-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.96rem;
    color: white;
    white-space: nowrap;
}

.controls-guide-label i {
    font-size: 1.1rem;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.controls-guide-desc {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.65;
}

@media (max-width: 768px) {
    .controls-guide-row {
        grid-template-columns: 1fr;
        gap: 0.35rem;
        padding: 0.85rem 1rem;
    }
}

.game-breadcrumbs ol {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.game-breadcrumbs li {
    display: inline-flex;
    align-items: center;
}

.game-stage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1.25rem;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0 0 0.5rem 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

.game-stage-title-wrap {
    flex: 1;
    min-width: 280px;
}

.game-stage-title {
    font-family: var(--font-heading);
    font-size: 2.35rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.65rem;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.game-stage-title .title-icon {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2rem;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 8px rgba(168, 85, 247, 0.4));
}

.game-stage-meta {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.88rem;
    color: #94a3b8;
    flex-wrap: wrap;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.meta-pill:hover {
    transform: translateY(-1px);
}

.meta-cat {
    background: rgba(124, 58, 237, 0.15);
    color: #c4b5fd;
    border-color: rgba(124, 58, 237, 0.3);
    text-decoration: none;
}

a.meta-cat:hover {
    background: rgba(124, 58, 237, 0.3) !important;
    color: white !important;
    border-color: rgba(124, 58, 237, 0.6) !important;
    transform: translateY(-1px);
}

.meta-rating {
    background: rgba(251, 191, 36, 0.15);
    color: #fcd34d;
    border-color: rgba(251, 191, 36, 0.3);
}

.meta-publisher {
    background: rgba(56, 189, 248, 0.12);
    color: #7dd3fc;
    border-color: rgba(56, 189, 248, 0.25);
    text-transform: none;
    text-decoration: none;
}

a.meta-publisher:hover {
    background: rgba(56, 189, 248, 0.25) !important;
    color: white !important;
    border-color: rgba(56, 189, 248, 0.5) !important;
    transform: translateY(-1px);
}

.meta-safe {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.3);
}


.game-action-toolbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.stage-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
}

.stage-btn-fullscreen {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.35);
}

.stage-btn-fullscreen:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5);
}

.stage-btn-fav {
    background: rgba(244, 63, 94, 0.12);
    color: #f43f5e;
    border: 1px solid rgba(244, 63, 94, 0.35) !important;
    position: relative !important;
    top: auto !important;
    right: auto !important;
    width: auto !important;
    height: auto !important;
    padding: 0.6rem 1.35rem !important;
    border-radius: 50px !important;
    font-size: 0.88rem !important;
}

.stage-btn-fav:hover, .stage-btn-fav.favorited {
    background: #f43f5e;
    color: white;
    box-shadow: 0 4px 18px rgba(244, 63, 94, 0.45);
    transform: translateY(-2px);
}

/* Under-Player Controls Bar UI */
.under-player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    margin-top: 1rem;
    padding: 0.25rem 0;
}

.player-control-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 1.4rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.player-btn-fullscreen {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.35);
}

.player-btn-fullscreen:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.5);
}

.player-btn-fav {
    background: rgba(255, 255, 255, 0.08);
    color: #f43f5e;
    border: 1px solid rgba(244, 63, 94, 0.3);
    position: relative !important;
    top: auto !important;
    right: auto !important;
    width: auto !important;
    height: auto !important;
    border-radius: 50px !important;
}

.player-btn-fav:hover, .player-btn-fav.favorited {
    background: #f43f5e;
    color: white;
    box-shadow: 0 4px 15px rgba(244, 63, 94, 0.4);
}

.safe-badge {
    color: var(--success);
    font-weight: 600;
}

.game-action-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.action-btn {
    font-family: var(--font-heading);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.action-btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

.action-btn-primary:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.6);
}

.action-btn-secondary {
    background: rgba(30, 41, 59, 0.6);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.action-btn-secondary:hover {
    background: rgba(124, 58, 237, 0.2);
    color: white;
    border-color: rgba(124, 58, 237, 0.4);
    transform: translateY(-2px);
}

.action-btn-fav {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    padding: 0;
    justify-content: center;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
}

.action-btn-fav.favorited {
    background: rgba(236, 72, 153, 0.25);
    color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.4);
}

.game-iframe-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    max-height: 75vh;
    border-radius: 18px;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(124, 58, 237, 0.4);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.eeat-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(236, 72, 153, 0.2));
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(124, 58, 237, 0.3);
}

.eeat-feature-box h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.6rem;
}

.eeat-feature-box p {
    color: #94a3b8;
    font-size: 0.93rem;
    line-height: 1.6;
}

.eeat-subtitle {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.eeat-subtitle i {
    color: var(--primary);
}

.eeat-checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 1.25rem;
}

.eeat-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--light);
    font-size: 0.96rem;
    line-height: 1.5;
}

.eeat-checklist li i {
    color: var(--success);
    margin-top: 0.2rem;
}

/* FAQ Accordion */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 1rem;
}

.faq-item {
    background: rgba(3, 7, 18, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item[open] {
    border-color: rgba(124, 58, 237, 0.45);
    background: rgba(15, 23, 42, 0.7);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.faq-question {
    font-family: var(--font-heading);
    padding: 1.1rem 1.5rem;
    font-weight: 700;
    font-size: 1.05rem;
    color: white;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    user-select: none;
    width: 100%;
}

.faq-question h3,
.faq-question-title {
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    color: white;
    margin: 0;
    padding: 0;
    display: inline-block;
    line-height: 1.4;
}

.faq-question::-webkit-details-marker,
.faq-question::marker {
    display: none;
}

.faq-icon {
    transition: transform 0.3s ease;
    color: #a78bfa;
    font-size: 0.95rem;
}

.faq-item[open] .faq-icon {
    transform: rotate(180deg);
    color: var(--accent);
}

.faq-answer {
    padding: 0 1.5rem 1.25rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 0.25rem;
    padding-top: 1rem;
}

.faq-answer p {
    color: #cbd5e1;
    font-size: 0.96rem;
    line-height: 1.7;
    margin: 0;
}

/* Site Footer */
.site-footer {
    background: rgba(2, 6, 23, 0.95);
    border-top: 1px solid rgba(124, 58, 237, 0.25);
    color: #cbd5e1;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
}

.footer-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 4rem 2.5rem 3rem;
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 2.5rem;
}

.footer-links-grid {
    display: contents;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    margin-bottom: 1.25rem;
}

.footer-description {
    color: #94a3b8;
    line-height: 1.7;
    font-size: 0.94rem;
    margin-bottom: 1.5rem;
    max-width: 400px;
}

.footer-socials {
    display: flex;
    gap: 0.75rem;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    background: var(--primary);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.4);
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-nav li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.92rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-nav li a i {
    font-size: 0.75rem;
    color: #64748b;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-nav li a:hover {
    color: white;
    transform: translateX(4px);
}

.footer-nav li a:hover i {
    color: var(--accent);
}

.footer-badges-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-badges-list li {
    font-size: 0.9rem;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.sub-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.4);
    padding: 1.5rem 2.5rem;
}

.sub-footer-container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.88rem;
    color: #64748b;
}

.sub-footer-container strong {
    color: #cbd5e1;
}

.footer-tagline {
    color: #64748b;
}

.sub-footer-container a {
    color: #a78bfa;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.sub-footer-container a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Popups */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(3, 7, 18, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(8px);
}

.popup-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.popup-content {
    background: var(--dark);
    padding: 2.5rem;
    max-width: 650px;
    width: 90%;
    max-height: 82vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid rgba(124, 58, 237, 0.4);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.popup-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: none;
    border: none;
    color: var(--light);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.popup-close:hover {
    color: var(--primary);
}

.popup-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    position: relative;
    padding-bottom: 0.5rem;
}

.popup-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

/* Header Action Group */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-menu-toggle-btn {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    main {
        padding: 1rem 0.75rem;
    }

    .site-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 1rem;
        position: relative;
    }

    .brand-title {
        font-size: 1.25rem;
    }

    .logo-icon-wrapper {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        border-radius: 10px;
    }

    .mobile-menu-toggle-btn,
    .mobile-search-toggle-btn {
        display: flex;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.12);
        color: white;
        align-items: center;
        justify-content: center;
        font-size: 0.95rem;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .mobile-menu-toggle-btn.active,
    .mobile-search-toggle-btn.active {
        background: var(--primary);
        border-color: var(--primary);
        box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.4);
    }

    /* Mobile Nav Overlay Menu */
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        right: 1rem;
        width: 210px;
        max-height: 80vh;
        overflow-y: auto;
        background: rgba(15, 23, 42, 0.96);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(var(--primary-rgb), 0.3);
        border-radius: 16px;
        padding: 0.6rem;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
        z-index: 1000;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .main-nav.mobile-active {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0.4rem;
        width: 100%;
    }

    .main-nav ul li {
        width: 100%;
    }

    .main-nav ul li a {
        width: 100%;
        padding: 0.65rem 0.9rem;
        border-radius: 10px;
        justify-content: flex-start;
        font-size: 0.9rem;
    }

    .nav-legal-item {
        display: block;
    }

    .nav-divider {
        display: block;
        width: 100%;
        height: 1px;
        background: rgba(255, 255, 255, 0.12);
        margin: 0.35rem 0;
    }

    .search-container {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        padding: 0.75rem 1rem;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(var(--primary-rgb), 0.3);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
        z-index: 1000;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .search-container.mobile-active {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }

    .game-container {
        grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
        gap: 0.85rem;
    }

    .empty-fallback-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.6rem;
    }

    .empty-fallback-grid .game-card:nth-child(n+4) {
        display: none;
    }

    .empty-fallback-grid .game-card-category-badge {
        font-size: 0.6rem;
        padding: 0.15rem 0.4rem;
        top: 6px;
        left: 6px;
    }

    .empty-fallback-grid .game-title {
        font-size: 0.78rem;
    }

    .empty-fallback-grid .game-info {
        padding: 0.55rem;
    }

    /* Mobile Footer Redesign */
    .site-footer {
        margin-top: 2.5rem;
    }

    .footer-container {
        display: flex;
        flex-direction: column;
        gap: 2.25rem;
        padding: 2.25rem 1.25rem 2rem;
        text-align: center;
    }

    .footer-col-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        background: radial-gradient(circle at top, rgba(124, 58, 237, 0.15) 0%, rgba(15, 23, 42, 0.6) 80%);
        border: 1px solid rgba(124, 58, 237, 0.25);
        border-radius: 20px;
        padding: 1.75rem 1.25rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    .footer-logo {
        margin-bottom: 0.85rem;
    }

    .footer-description {
        max-width: 100%;
        font-size: 0.88rem;
        line-height: 1.65;
        margin-bottom: 1.25rem;
        color: #cbd5e1;
    }

    .footer-socials {
        justify-content: center;
        gap: 0.85rem;
    }

    .footer-socials a {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        font-size: 1.1rem;
        background: rgba(124, 58, 237, 0.15);
        border-color: rgba(124, 58, 237, 0.35);
        color: #c4b5fd;
    }

    .footer-socials a:hover {
        background: var(--primary);
        color: white;
        transform: translateY(-2px);
    }

    /* 2-Column Balanced Link Grid for Mobile */
    .footer-links-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.75rem 1.25rem;
        text-align: left;
    }

    .footer-heading {
        font-size: 0.95rem;
        letter-spacing: 0.02em;
        margin-bottom: 0.9rem;
        padding-bottom: 0.4rem;
    }

    .footer-heading::after {
        left: 0;
        width: 35px;
    }

    .footer-nav li a {
        font-size: 0.85rem;
        padding: 0.35rem 0;
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
    }

    .footer-badges-list li {
        font-size: 0.82rem;
        padding: 0.3rem 0;
        display: flex;
        align-items: center;
        gap: 0.4rem;
    }

    .sub-footer {
        padding: 1.5rem 1.25rem;
    }

    .sub-footer-container {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        font-size: 0.84rem;
    }

    .footer-tagline {
        line-height: 1.6;
        font-size: 0.84rem;
    }

    .eeat-card {
        padding: 1.25rem;
        border-radius: 16px;
    }

    .categories {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        width: calc(100% + 1.5rem);
        margin-left: -0.75rem;
        margin-right: -0.75rem;
        padding: 0.5rem 0.75rem;
        margin-bottom: 1.75rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .categories::-webkit-scrollbar {
        display: none;
    }

    .category-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
}