/* ============================================================
   MYTHOS GAMES - NEXT GEN LAYOUT
   Futuristic, immersive gaming experience design
   ============================================================ */

:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #141824;
    --bg-card: rgba(20, 24, 36, 0.6);
    --accent-pink: #f107a3;
    --accent-purple: #7b2ff7;
    --accent-cyan: #00f0ff;
    --text-primary: #e1e1e1;
    --text-secondary: #8c8c8c;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.games-page {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Exo 2', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Override any main site grid layouts */
.games-page .main-grid,
.games-page.main-grid {
    display: block !important;
    grid-template-columns: none !important;
    max-width: 100% !important;
    transform: none !important;
}

/* ============================================================
   FLOATING NAVIGATION - FIXED TOP
   ============================================================ */
.games-floating-nav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    z-index: 10000 !important;
    padding: 0.75rem 1.5rem;
    background: rgba(15, 15, 25, 0.75);
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
    transform: translateZ(0);
    /* CRITICAL: Prevent vertical scrolling/dragging of menu */
    height: 60px !important;
    /* Fixed height - no vertical expansion */
    max-height: 60px !important;
    overflow-y: hidden !important;
    overflow-x: auto;
    touch-action: pan-x !important;
    /* Only allow horizontal swipe */
    -webkit-overflow-scrolling: touch;
    /* Smooth scrolling on iOS */
    flex-wrap: nowrap !important;
    /* Never wrap items vertically */
}

.nav-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.nav-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
    position: relative;
}

.nav-logo-link:hover {
    transform: scale(1.1);
}

.nav-logo-img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(241, 7, 163, 0.5));
    transition: filter 0.3s ease;
}

.nav-logo-link:hover .nav-logo-img {
    filter: drop-shadow(0 0 20px rgba(241, 7, 163, 0.8));
}

.nav-menu-sections {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    justify-content: flex-start;
    flex-shrink: 1;
    min-width: 0;
    overflow: visible;
    touch-action: pan-x !important;
    /* Only horizontal swipe */
    flex-wrap: nowrap !important;
    /* Never wrap */
}

.nav-menu-sections .nav-filter-btn {
    flex-shrink: 0;
}

.nav-spacer {
    flex: 1;
    min-width: 0;
}

.nav-home-link {
    flex-shrink: 0;
}

.nav-section {
    position: relative;
    flex-shrink: 0;
}

.nav-section-btn {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    position: relative;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-section-btn:hover {
    border-color: rgba(241, 7, 163, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.nav-section.active .nav-section-btn {
    border-color: var(--accent-pink);
    background: rgba(241, 7, 163, 0.15);
}

.nav-section.active .nav-section-btn {
    border-color: var(--accent-pink);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(241, 7, 163, 0.3);
}

/* Desktop hover support */
@media (hover: hover) and (pointer: fine) {
    .nav-section-btn:hover {
        border-color: var(--accent-pink);
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(241, 7, 163, 0.3);
    }
}

.nav-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.nav-section.active .nav-arrow {
    transform: rotate(180deg);
}

.nav-section-link {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-section-link:hover {
    border-color: rgba(241, 7, 163, 0.5);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.nav-section-link.active {
    border-color: var(--accent-pink);
    color: #fff;
    background: rgba(241, 7, 163, 0.15);
}

.nav-section-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: rgba(20, 20, 35, 0.95);
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    min-width: 180px;
    max-width: calc(100vw - 2rem);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    z-index: 10001;
}

.nav-section.active .nav-section-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

/* Desktop hover support (optional enhancement) */
@media (hover: hover) and (pointer: fine) {
    .nav-section:hover .nav-section-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.nav-section-dropdown a {
    display: block;
    padding: 0.7rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-section-dropdown a:last-child {
    border-bottom: none;
}

.nav-section-dropdown a:hover {
    background: rgba(241, 7, 163, 0.15);
    color: #fff;
    padding-left: 1.25rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-action-btn {
    padding: 0.6rem 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.nav-action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(241, 7, 163, 0.3), transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.nav-action-btn:hover::before {
    width: 200px;
    height: 200px;
}

.nav-action-btn:hover {
    border-color: var(--accent-pink);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(241, 7, 163, 0.3);
}

.nav-filter-btn {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
}

.nav-filter-btn:hover {
    border-color: rgba(0, 240, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.nav-filter-btn.active {
    border-color: var(--accent-cyan);
    background: rgba(0, 240, 255, 0.15);
}

.nav-filter-btn svg {
    width: 18px;
    height: 18px;
}

/* Home link styling - same as other nav-section-links */
.nav-home-link {
    /* Uses same styles as .nav-section-link */
}

.nav-filter-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.nav-filter-btn:hover {
    border-color: var(--accent-cyan);
    background: rgba(0, 240, 255, 0.1);
    transform: rotate(90deg);
}

.nav-filter-btn:hover svg {
    transform: scale(1.1);
}

/* ============================================================
   HERO SECTION - FULL SCREEN IMMERSIVE
   ============================================================ */
.games-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
}

.particle-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(241, 7, 163, 0.3), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(123, 47, 247, 0.3), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(0, 240, 255, 0.4), transparent);
    background-size: 200% 200%;
    animation: particleMove 20s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes particleMove {

    0%,
    100% {
        background-position: 0% 0%, 100% 100%, 50% 50%;
    }

    50% {
        background-position: 100% 100%, 0% 0%, 50% 50%;
    }
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: orbFloat 15s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-pink), transparent);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-purple), transparent);
    bottom: -150px;
    right: -150px;
    animation-delay: 5s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-cyan), transparent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(50px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-30px, 30px) scale(0.9);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1200px;
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--accent-cyan);
    animation: pulseBadge 2s ease-in-out infinite;
}

@keyframes pulseBadge {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
    }

    50% {
        box-shadow: 0 0 30px rgba(0, 240, 255, 0.6);
    }
}

.hero-title {
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.title-line {
    display: block;
    position: relative;
    background: linear-gradient(135deg,
            var(--accent-pink) 0%,
            var(--accent-purple) 50%,
            var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    animation: titleGlow 3s ease-in-out infinite;
}

.title-line:nth-child(2) {
    animation-delay: 0.5s;
}

@keyframes titleGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 20px rgba(241, 7, 163, 0.5));
    }

    50% {
        filter: drop-shadow(0 0 40px rgba(241, 7, 163, 0.8)) drop-shadow(0 0 60px rgba(123, 47, 247, 0.6));
    }
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: bounceIndicator 2s ease-in-out infinite;
}

@keyframes bounceIndicator {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(180deg, var(--accent-pink), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% {
        height: 40px;
        opacity: 1;
    }

    50% {
        height: 20px;
        opacity: 0.5;
    }

    100% {
        height: 40px;
        opacity: 1;
    }
}

/* ============================================================
   FILTER PANEL
   ============================================================ */
.filter-panel {
    position: fixed;
    top: 70px;
    right: -400px;
    width: 320px;
    max-width: calc(100vw - 2rem);
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    overflow-x: hidden;
    background: rgba(20, 20, 35, 0.95);
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    z-index: 9999;
    transition: right 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.filter-panel::-webkit-scrollbar {
    width: 6px;
}

.filter-panel::-webkit-scrollbar-track {
    background: transparent;
}

.filter-panel::-webkit-scrollbar-thumb {
    background: rgba(241, 7, 163, 0.3);
    border-radius: 3px;
}

.filter-panel.active {
    right: 1rem;
}

.filter-panel-content h3 {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.filter-groups {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.filter-group label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.filter-chip {
    padding: 0.4rem 0.85rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: var(--text-primary);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-chip:hover {
    border-color: rgba(241, 7, 163, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.filter-chip.active {
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
    border-color: var(--accent-pink);
    color: #fff;
    box-shadow: 0 2px 10px rgba(241, 7, 163, 0.3);
}

/* ============================================================
   GAMES MAIN CONTENT
   ============================================================ */
.games-main {
    position: relative;
    padding: 6rem 2rem;
    max-width: 1600px;
    margin: 0 auto;
    z-index: 1;
}

.games-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
    perspective: 1000px;
}

/* ============================================================
   GAME CARDS - GLOW EFFECT
   ============================================================ */
.game-card {
    height: 500px;
    position: relative;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-card:hover {
    transform: translateY(-10px);
}

.game-card.featured {
    grid-column: span 2;
}

.game-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.game-card-front {
    display: flex;
    flex-direction: column;
    padding: 2.5rem;
    position: relative;
    overflow: visible;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Edge glow effect */
.game-card-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg,
            var(--accent-pink),
            var(--accent-purple),
            var(--accent-cyan));
    -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.4s ease;
    z-index: -1;
}

.game-card:hover .game-card-front::before {
    opacity: 0.8;
}

/* Outer glow on hover */
.game-card-front::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 26px;
    background: linear-gradient(135deg,
            rgba(241, 7, 163, 0.4),
            rgba(123, 47, 247, 0.4),
            rgba(0, 240, 255, 0.4));
    filter: blur(12px);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -2;
}

.game-card:hover .game-card-front::after {
    opacity: 1;
}

/* Remove back card - no longer needed */
.game-card-back {
    display: none;
}

/* Background glow animation */
.game-card-front {
    background: linear-gradient(135deg,
            rgba(33, 35, 40, 0.6) 0%,
            rgba(26, 28, 32, 0.8) 100%);
}

.game-card:hover .game-card-front {
    background: linear-gradient(135deg,
            rgba(33, 35, 40, 0.8) 0%,
            rgba(26, 28, 32, 0.9) 100%);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(241, 7, 163, 0.3),
        0 0 60px rgba(123, 47, 247, 0.2),
        0 0 80px rgba(0, 240, 255, 0.1);
}

.game-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.game-badge {
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    backdrop-filter: blur(10px);
}

.game-badge.coming-soon {
    background: linear-gradient(135deg, rgba(241, 7, 163, 0.3), rgba(123, 47, 247, 0.3));
    border: 1px solid var(--accent-pink);
    color: var(--accent-pink);
}

.game-badge.in-development {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.3), rgba(123, 47, 247, 0.3));
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
}

.game-badge.playable {
    background: linear-gradient(135deg, rgba(0, 255, 100, 0.4), rgba(0, 240, 255, 0.4));
    border: 2px solid #00ff64;
    color: #00ff64;
    animation: playablePulse 2s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(0, 255, 100, 0.5);
}

@keyframes playablePulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(0, 255, 100, 0.5);
    }

    50% {
        box-shadow: 0 0 30px rgba(0, 255, 100, 0.8);
    }
}

/* Play button styling */
.game-action-btn.play-btn {
    background: linear-gradient(135deg, #00ff64, #00f0ff) !important;
    color: #0a0e1a !important;
    font-weight: 700;
    text-decoration: none;
    animation: playBtnGlow 2s ease-in-out infinite;
}

.game-action-btn.play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(0, 255, 100, 0.8);
}

@keyframes playBtnGlow {

    0%,
    100% {
        box-shadow: 0 0 15px rgba(0, 255, 100, 0.5);
    }

    50% {
        box-shadow: 0 0 25px rgba(0, 255, 100, 0.8);
    }
}

/* Play now button on card back */
.play-now-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #00ff64, #00f0ff);
    color: #0a0e1a;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.play-now-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(0, 255, 100, 0.8);
}

/* Featured game card */
.game-card.featured {
    border: 2px solid #00ff64;
    box-shadow: 0 0 30px rgba(0, 255, 100, 0.3);
}

.game-card.featured:hover {
    box-shadow: 0 0 50px rgba(0, 255, 100, 0.5);
}

.game-icon {
    font-size: 4rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(241, 7, 163, 0.2), rgba(123, 47, 247, 0.2));
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 0 20px rgba(241, 7, 163, 0.3),
        0 0 40px rgba(123, 47, 247, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: iconPulse 3s ease-in-out infinite, iconFloat 4s ease-in-out infinite;
    position: relative;
}

.game-icon::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple), var(--accent-cyan));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.game-card:hover .game-icon::before {
    opacity: 0.6;
    animation: iconGlow 2s ease-in-out infinite;
}

.game-card:hover .game-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow:
        0 0 30px rgba(241, 7, 163, 0.5),
        0 0 60px rgba(123, 47, 247, 0.3),
        0 0 90px rgba(0, 240, 255, 0.2);
}

@keyframes iconFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes iconPulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(241, 7, 163, 0.3), 0 0 40px rgba(123, 47, 247, 0.2);
    }

    50% {
        box-shadow: 0 0 30px rgba(241, 7, 163, 0.5), 0 0 60px rgba(123, 47, 247, 0.3);
    }
}

@keyframes iconGlow {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 0.8;
    }
}

.game-card-body {
    flex: 1;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.game-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.game-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.game-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
}

.game-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.game-action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
    border: none;
    border-radius: 12px;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.game-action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.game-action-btn:hover::before {
    width: 300px;
    height: 300px;
}

.game-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(241, 7, 163, 0.5);
}

.game-action-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.game-action-btn:hover svg {
    transform: translateX(5px);
}

/* ============================================================
   FOOTER
   ============================================================ */
.games-footer {
    background: linear-gradient(180deg, rgba(10, 10, 20, 0.95) 0%, rgba(5, 5, 15, 1) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 2rem 1.5rem;
    margin-top: 4rem;
    position: relative !important;
    width: 100% !important;
    display: block !important;
    clear: both;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
    min-width: 250px;
}

.footer-links {
    flex: 0 0 auto;
}

.footer-social {
    flex: 0 0 auto;
}

.footer-logo-link {
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease;
}

.footer-logo-link:hover {
    transform: scale(1.05);
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.footer-logo span {
    font-weight: 400;
    opacity: 0.8;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 300px;
}

.footer-links h4,
.footer-social h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent-cyan);
}

.games-footer .social-links {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 1rem;
    justify-content: flex-start;
}

.games-footer .social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.games-footer .social-links a:hover {
    background: rgba(241, 7, 163, 0.15);
    border-color: var(--accent-pink);
    color: var(--accent-pink);
    transform: translateY(-3px);
}

.games-footer .social-links svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 1024px) {
    .game-card.featured {
        grid-column: span 1;
    }

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

    .footer-content {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 2rem;
    }

    .footer-brand {
        flex: 1 1 100%;
        min-width: 100%;
    }

    .footer-links,
    .footer-social {
        flex: 1;
    }

    .filter-panel {
        width: 280px;
        max-width: calc(100vw - 1rem);
        right: -300px;
        top: 60px;
        max-height: calc(100vh - 80px);
        padding: 1.25rem;
    }

    .filter-panel.active {
        right: 0.5rem;
    }
}

/* Mobile Landscape */
@media (max-width: 1024px) and (orientation: landscape) {
    .games-hero {
        min-height: 100vh;
        padding-top: 80px;
    }

    .hero-title {
        font-size: clamp(2.5rem, 6vw, 5rem);
    }

    .hero-description {
        font-size: clamp(0.9rem, 1.5vw, 1.1rem);
        margin-bottom: 2rem;
    }

    .hero-stats {
        gap: 2rem;
    }

    .games-main {
        padding: 4rem 2rem;
    }
}

/* Mobile Portrait */
@media (max-width: 768px) and (orientation: portrait) {
    .games-floating-nav {
        padding: 0.75rem 1rem !important;
        flex-wrap: wrap;
        gap: 0.75rem;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        transform: translateZ(0) !important;
    }

    .nav-logo-wrapper {
        order: 1;
        flex: 0 0 auto;
    }

    .nav-logo-img {
        height: 28px;
    }

    .nav-menu-sections {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        gap: 0.5rem;
        overflow-x: auto;
        overflow-y: visible !important;
        padding-bottom: 0.25rem;
        padding-right: 0.5rem;
        -webkit-overflow-scrolling: touch;
        position: relative;
        z-index: 10000;
        scrollbar-width: thin;
        scrollbar-color: rgba(241, 7, 163, 0.3) transparent;
        flex-wrap: nowrap;
        min-width: 0;
    }

    .nav-menu-sections::-webkit-scrollbar {
        height: 4px;
    }

    .nav-menu-sections::-webkit-scrollbar-track {
        background: transparent;
    }

    .nav-menu-sections::-webkit-scrollbar-thumb {
        background: rgba(241, 7, 163, 0.3);
        border-radius: 2px;
    }

    .nav-menu-sections::-webkit-scrollbar-thumb:hover {
        background: rgba(241, 7, 163, 0.5);
    }

    .nav-section {
        position: relative !important;
        flex-shrink: 0;
        min-width: fit-content;
        max-width: calc(50% - 0.25rem);
        z-index: 10000;
    }

    .nav-section-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
        white-space: nowrap;
        flex-shrink: 0;
        min-width: fit-content;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .nav-section-btn:hover {
        transform: scale(1.05);
        z-index: 10002;
    }

    .nav-actions {
        order: 2;
        margin-left: auto;
        gap: 0.5rem;
    }

    .nav-action-btn {
        padding: 0.5rem 0.9rem;
        font-size: 0.75rem;
        white-space: nowrap;
    }

    .nav-filter-btn {
        width: 36px;
        height: 36px;
    }

    .nav-filter-btn svg {
        width: 16px;
        height: 16px;
    }

    .nav-section-dropdown {
        position: absolute !important;
        top: calc(100% + 5px) !important;
        width: 200px !important;
        max-width: calc(100vw - 2rem) !important;
        max-height: calc(100vh - 150px) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        z-index: 10002 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        display: block !important;
        pointer-events: none !important;
        background: var(--glass-bg);
        backdrop-filter: blur(30px) saturate(180%);
        border: 1px solid var(--glass-border);
        border-radius: 12px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
        transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    }

    /* Games dropdown - centered */
    .nav-section:first-child .nav-section-dropdown {
        left: 0 !important;
        right: auto !important;
        transform: translateY(-10px) !important;
    }

    .nav-section:first-child.active .nav-section-dropdown {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateY(0) !important;
    }

    /* Categories dropdown - positioned to right */
    .nav-section:nth-child(2) .nav-section-dropdown {
        left: auto !important;
        right: 0 !important;
        transform: translateY(-10px) !important;
    }

    .nav-section:nth-child(2).active .nav-section-dropdown {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateY(0) !important;
    }

    /* Ensure all active dropdowns are visible */
    .nav-section.active .nav-section-dropdown {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateY(0) !important;
    }

    /* Filter button styling in nav sections */
    .nav-menu-sections .nav-filter-btn {
        margin-left: auto;
        order: 999;
        flex-shrink: 0;
    }

    .nav-section-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
        white-space: nowrap;
        flex-shrink: 0;
        min-width: fit-content;
        max-width: calc(33% - 0.5rem);
        overflow: visible;
        text-overflow: ellipsis;
    }

    /* Expand link on hover/tap in portrait */
    .nav-section-link:hover {
        transform: scale(1.1);
        z-index: 10002;
    }

    /* Tooltip shows full text */
    .nav-section-link::after {
        bottom: calc(100% + 8px);
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    .nav-section-link {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .games-hero {
        min-height: 100vh;
        padding-top: 100px;
        padding-bottom: 2rem;
    }

    .hero-content {
        padding: 1rem;
    }

    .hero-badge {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .hero-title {
        font-size: clamp(2rem, 10vw, 3.5rem);
        margin-bottom: 1rem;
        line-height: 1.1;
    }

    .hero-description {
        font-size: clamp(0.85rem, 3vw, 1rem);
        line-height: 1.6;
        margin-bottom: 2rem;
        padding: 0 0.5rem;
    }

    .hero-stats {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: space-around;
    }

    .stat-item {
        flex: 0 0 calc(33.333% - 1rem);
        min-width: 80px;
    }

    .stat-value {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

    .stat-label {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }

    .hero-scroll-indicator {
        bottom: 1.5rem;
        font-size: 0.7rem;
    }

    .games-main {
        padding: 3rem 1rem;
    }

    .games-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .game-card {
        height: auto;
        min-height: 400px;
    }

    .game-card-front {
        padding: 1.5rem;
    }

    .game-card-header {
        margin-bottom: 1.5rem;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .game-badge {
        padding: 0.4rem 1rem;
        font-size: 0.7rem;
    }

    .game-icon {
        font-size: 2rem;
    }

    .game-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 0.75rem;
    }

    .game-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .game-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding-top: 1rem;
    }

    .game-meta {
        font-size: 0.75rem;
    }

    .game-action-btn {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    .filter-panel {
        width: calc(100% - 2rem);
        right: -100%;
        left: auto;
        top: 80px;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        padding: 1.5rem;
        z-index: 9998;
        position: fixed;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .filter-panel.active {
        right: 1rem;
        left: auto;
    }

    /* Add overlay when filter panel is open on mobile */
    /* Add overlay when filter panel is open on mobile */
    .games-page::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(4px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 9997;
        pointer-events: none;
    }

    .games-page.filter-panel-open::after {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .filter-panel.active {
        z-index: 9998;
    }

    .filter-panel-content h3 {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .filter-groups {
        gap: 1.5rem;
    }

    .filter-group label {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
    }

    .filter-chips {
        gap: 0.4rem;
    }

    .filter-chip {
        padding: 0.4rem 0.9rem;
        font-size: 0.75rem;
    }

    /* Hide particle layer on mobile for performance */
    .particle-layer {
        opacity: 0.3;
    }

    /* Reduce orb sizes on mobile */
    .orb-1,
    .orb-2,
    .orb-3 {
        filter: blur(60px);
    }

    .orb-1 {
        width: 300px;
        height: 300px;
    }

    .orb-2 {
        width: 350px;
        height: 350px;
    }

    .orb-3 {
        width: 250px;
        height: 250px;
    }
}

/* Hide cards based on filter */
.game-card.hidden {
    display: none;
}

/* Mobile Portrait - Additional fixes */
@media (max-width: 768px) and (orientation: portrait) {

    /* Ensure nav doesn't overflow */
    .games-floating-nav {
        min-height: auto;
    }

    /* Better spacing for nav sections */
    .nav-menu-sections {
        margin-top: 0;
    }

    /* Fix hero content overflow */
    .hero-content {
        max-width: 100%;
        width: 100%;
    }

    /* Better game card layout on mobile */
    .game-card {
        max-width: 100%;
    }

    /* Improve filter panel on mobile */
    .filter-panel {
        border-radius: 16px;
    }

    /* Better text sizing */
    .hero-description br {
        display: none;
    }

    /* Stack stats better on small screens */
    @media (max-width: 480px) {
        .hero-stats {
            gap: 1rem;
        }

        .stat-item {
            flex: 0 0 calc(50% - 0.5rem);
        }

        .stat-value {
            font-size: 2rem;
        }
    }
}