/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #ec4899;
    --accent-color: #06b6d4;
    --background-dark: #0f0f23;
    --background-light: #1a1a2e;
    --surface-color: #16213e;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --border-color: #27272a;
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #8b5cf6 100%);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--background-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}







/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

.hero-particles {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(6, 182, 212, 0.3) 0%, transparent 50%);
    animation: particleFloat 15s ease-in-out infinite;
}

@keyframes particleFloat {

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

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

.hero-gradient-orbs {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, #6366f1, #8b5cf6);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, #ec4899, #f97316);
    top: 60%;
    right: 20%;
    animation-delay: -7s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: linear-gradient(45deg, #06b6d4, #3b82f6);
    bottom: 20%;
    left: 60%;
    animation-delay: -14s;
}

@keyframes orbFloat {

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

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

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

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    padding: 140px 20px 100px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    width: fit-content;
    backdrop-filter: blur(10px);
}

.badge-icon {
    font-size: 1.25rem;
}

.badge-text {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
}

.title-main {
    display: block;
    color: var(--text-primary);
    font-size: 4rem;
}

.title-highlight {
    display: block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 4.5rem;
    margin: -0.2rem 0;
}

.title-sub {
    display: block;
    color: var(--text-secondary);
    font-size: 2.5rem;
    font-weight: 600;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 520px;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin: 1rem 0;
}

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

.stat-number {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 0.25rem;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.4);
}

.btn-icon {
    font-size: 1.2rem;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    padding: 12px 26px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-showcase {
    position: relative;
    width: 100%;
    max-width: 450px;
}

.showcase-main {
    position: relative;
    z-index: 2;
}

.game-window {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.game-window:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.window-header {
    background: var(--background-light);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
}

.window-controls {
    display: flex;
    gap: 8px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.red {
    background: #ff5f57;
}

.control.yellow {
    background: #ffbd2e;
}

.control.green {
    background: #28ca42;
}

.window-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.window-content {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.featured-game-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out, transform 0.3s ease;
    z-index: 1;
}

.featured-game-img.active {
    opacity: 1;
    z-index: 2;
}

.game-window:hover .featured-game-img {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

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

.play-button {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.game-window:hover .play-button {
    transform: scale(1);
}

/* 轮播指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 4;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 12px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.indicator {
    position: relative;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.indicator.active {
    background: var(--primary-color);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.6);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.2);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

/* 进度环 */
.progress-ring {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: none;
}

.indicator.active .progress-ring {
    opacity: 1;
    animation: progress-ring 4s linear infinite;
}

@keyframes progress-ring {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* 轮播容器悬停效果 */
.game-showcase:hover .carousel-indicators {
    background: rgba(0, 0, 0, 0.5);
}

/* 平滑的图片切换动画 */
.featured-game-img {
    animation-duration: 0.8s;
    animation-fill-mode: both;
}

.featured-game-img.fade-in {
    animation-name: fadeIn;
}

.featured-game-img.fade-out {
    animation-name: fadeOut;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(1.05);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

.showcase-thumbnails {
    position: absolute;
    right: -80px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1;
}

.thumbnail-item {
    width: 60px;
    height: 45px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.thumbnail-item:hover {
    transform: scale(1.1);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Category Sections */
.category-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.category-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.03) 0%, rgba(139, 92, 246, 0.02) 50%, rgba(236, 72, 153, 0.03) 100%);
    z-index: 0;
}

.puzzle-section {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(99, 102, 241, 0.03) 100%);
}

.puzzle-section::after {
    content: '🧩';
    position: absolute;
    top: 20%;
    right: 5%;
    font-size: 8rem;
    opacity: 0.05;
    z-index: 0;
    animation: puzzleFloat 8s ease-in-out infinite;
}

@keyframes puzzleFloat {

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

    50% {
        transform: rotate(10deg) translateY(-20px);
    }
}

.action-section {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.04) 0%, rgba(249, 115, 22, 0.03) 100%);
}

.action-section::after {
    content: '💥';
    position: absolute;
    top: 15%;
    left: 5%;
    font-size: 10rem;
    opacity: 0.06;
    z-index: 0;
    animation: actionPulse 3s ease-in-out infinite;
}

@keyframes actionPulse {

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

    50% {
        transform: scale(1.1) rotate(5deg);
    }
}

.sports-section {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.04) 0%, rgba(16, 185, 129, 0.03) 100%);
}

.sports-section::after {
    content: '⚽';
    position: absolute;
    bottom: 10%;
    right: 8%;
    font-size: 9rem;
    opacity: 0.05;
    z-index: 0;
    animation: sportsBounce 4s ease-in-out infinite;
}

@keyframes sportsBounce {

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

    25% {
        transform: translateY(-15px) rotate(90deg);
    }

    50% {
        transform: translateY(-30px) rotate(180deg);
    }

    75% {
        transform: translateY(-15px) rotate(270deg);
    }
}

.category-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.section-title-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
}

.section-icon {
    font-size: 4rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 8px rgba(99, 102, 241, 0.3));
    animation: iconGlow 3s ease-in-out infinite;
}

@keyframes iconGlow {

    0%,
    100% {
        filter: drop-shadow(0 4px 8px rgba(99, 102, 241, 0.3));
    }

    50% {
        filter: drop-shadow(0 6px 12px rgba(99, 102, 241, 0.5));
    }
}

.puzzle-section .section-icon {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.action-section .section-icon {
    background: linear-gradient(135deg, #ef4444, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sports-section .section-icon {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.category-section .section-title {
    font-size: 2.75rem;
    margin-bottom: 0.75rem;
    position: relative;
}

.category-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    opacity: 0.7;
}

.puzzle-section .section-title::after {
    background: linear-gradient(90deg, #8b5cf6, #6366f1);
}

.action-section .section-title::after {
    background: linear-gradient(90deg, #ef4444, #f97316);
}

.sports-section .section-title::after {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

.category-section .section-subtitle {
    font-size: 1.1rem;
    margin: 0;
    color: var(--text-secondary);
    font-weight: 500;
}

.view-more-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
}

.view-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.view-more-btn:hover::before {
    left: 100%;
}

.view-more-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.4);
}

.puzzle-section .view-more-btn {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.puzzle-section .view-more-btn:hover {
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.4);
}

.action-section .view-more-btn {
    background: linear-gradient(135deg, #ef4444, #f97316);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
}

.action-section .view-more-btn:hover {
    box-shadow: 0 15px 35px rgba(239, 68, 68, 0.4);
}

.sports-section .view-more-btn {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.3);
}

.sports-section .view-more-btn:hover {
    box-shadow: 0 15px 35px rgba(34, 197, 94, 0.4);
}

/* Puzzle Games Layout - Grid Style like All Games */
.puzzle-games-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

.puzzle-games-layout .game-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.puzzle-games-layout .game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
}

.puzzle-games-layout .game-card .game-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.puzzle-games-layout .game-card:hover .game-image {
    transform: scale(1.05);
}

.puzzle-games-layout .game-card .game-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.puzzle-games-layout .game-card .game-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    color: var(--text-primary);
}

.puzzle-games-layout .game-card .game-description {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.puzzle-games-layout .game-card .game-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.puzzle-games-layout .game-card .game-category {
    background: rgba(139, 92, 246, 0.1);
    color: rgba(139, 92, 246, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.puzzle-games-layout .game-card .play-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.puzzle-games-layout .game-card .play-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

/* Action Games Layout - Hero Spotlight Style */
.action-games-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    padding: 1rem 0;
    height: 400px;
}

.action-games-layout .hero-card {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(249, 115, 22, 0.1));
    border: 2px solid rgba(239, 68, 68, 0.2);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.4s ease;
}

.action-games-layout .hero-card::before {
    content: '🔥 TRENDING';
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 3;
}

.action-games-layout .hero-card .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.action-games-layout .hero-card:hover .hero-bg {
    transform: scale(1.1);
}

.action-games-layout .hero-card .hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: white;
    padding: 2rem;
    z-index: 2;
}

.action-games-layout .hero-card .hero-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.action-games-layout .hero-card .hero-description {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.action-games-layout .hero-card .hero-play-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.75rem 2rem;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.action-games-layout .hero-card .hero-play-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.action-games-layout .hero-card:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 50px rgba(239, 68, 68, 0.3);
}

.action-games-layout .action-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.action-games-layout .action-list .game-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    height: 80px;
    cursor: pointer;
}

.action-games-layout .action-list .game-card .game-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    flex-shrink: 0;
}

.action-games-layout .action-list .game-card .game-info {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.action-games-layout .action-list .game-card .game-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.3;
    color: var(--text-primary);
}

.action-games-layout .action-list .game-card .game-category {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(239, 68, 68, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    width: fit-content;
}

.action-games-layout .action-list .game-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
}

/* Sports Games Layout - Tournament Bracket Style */
.sports-games-layout {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1.5rem;
    padding: 1rem 0;
    position: relative;
}



.sports-games-layout .game-card {
    background: var(--surface-color);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 2;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    /* height: 280px; */
}

.sports-games-layout .game-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #22c55e, #16a34a, #15803d, #22c55e);
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    background-size: 300% 300%;
    animation: sportsGradient 4s ease infinite;
}

@keyframes sportsGradient {
    0% {
        background-position: 0% 50%;
    }

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

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

.sports-games-layout .game-card:hover::before {
    opacity: 1;
}

.sports-games-layout .game-card .game-image {
    height: 160px;
    object-fit: cover;
    width: 100%;
    transition: transform 0.3s ease;
    position: relative;
}

.sports-games-layout .game-card:hover .game-image {
    transform: scale(1.1);
}

.sports-games-layout .game-card .game-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(34, 197, 94, 0.9);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 3;
}

.sports-games-layout .game-card:nth-child(1) .game-badge::before {
    content: '🏆 ';
}

.sports-games-layout .game-card:nth-child(2) .game-badge::before {
    content: '⚽ ';
}

.sports-games-layout .game-card:nth-child(3) .game-badge::before {
    content: '🏀 ';
}

.sports-games-layout .game-card:nth-child(4) .game-badge::before {
    content: '🏈 ';
}

.sports-games-layout .game-card .game-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sports-games-layout .game-card .game-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    color: var(--text-primary);
}

.sports-games-layout .game-card .game-description {
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sports-games-layout .game-card .game-meta {
    margin-top: auto;
}

.sports-games-layout .game-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(34, 197, 94, 0.2);
    z-index: 10;
}

/* Individual positioning effects */
.sports-games-layout .game-card:nth-child(1) {
    transform-origin: bottom right;
}

.sports-games-layout .game-card:nth-child(2) {
    transform-origin: bottom left;
}

.sports-games-layout .game-card:nth-child(3) {
    transform-origin: top right;
}

.sports-games-layout .game-card:nth-child(4) {
    transform-origin: top left;
}

/* Enhanced Game Card Styles for All Layouts */
.puzzle-games-layout .game-card .game-title,
.action-games-layout .game-card .game-title,
.sports-games-layout .game-card .game-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--text-primary), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.puzzle-games-layout .game-card:hover .game-title,
.action-games-layout .game-card:hover .game-title,
.sports-games-layout .game-card:hover .game-title {
    transform: translateY(-2px);
}

.puzzle-games-layout .game-card .game-description,
.action-games-layout .game-card .game-description,
.sports-games-layout .game-card .game-description {
    color: #efefef;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.puzzle-games-layout .game-card .game-meta,
.action-games-layout .game-card .game-meta,
.sports-games-layout .game-card .game-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.puzzle-games-layout .game-card .game-category,
.action-games-layout .game-card .game-category,
.sports-games-layout .game-card .game-category {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.puzzle-games-layout .game-card .play-btn,
.action-games-layout .game-card .play-btn,
.sports-games-layout .game-card .play-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.puzzle-games-layout .game-card .play-btn:hover,
.action-games-layout .game-card .play-btn:hover,
.sports-games-layout .game-card .play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

/* Special hover effects for each layout */
.puzzle-games-layout .game-card .play-btn:hover {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
}

.action-games-layout .game-card .play-btn:hover {
    background: linear-gradient(135deg, #ef4444, #f97316);
}

.sports-games-layout .game-card .play-btn:hover {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

/* Categories Section */
.categories {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.category-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover::before {
    opacity: 0.1;
}

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

.category-emoji {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.category-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.category-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Featured Games Section */
.featured-games {
    padding: 100px 0;
}

.games-showcase {
    position: relative;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.game-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

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

.game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover .game-image {
    transform: scale(1.05);
}

.game-info {
    padding: 1.5rem;
}

.game-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.game-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.game-category {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.play-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.play-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* All Games Section */
.all-games {
    padding: 100px 0;
    background: rgba(6, 182, 212, 0.02);
}

.games-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.games-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.load-more-container {
    text-align: center;
    margin-top: 3rem;
}

/* Footer */
.footer {
    background: var(--background-light);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    color: var(--text-secondary);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}


/* Responsive Design */
@media (max-width: 1024px) {

    .hero-content {
        gap: 3rem;
        padding: 100px 20px 60px;
    }

    .title-main {
        font-size: 3.5rem;
    }

    .title-highlight {
        font-size: 4rem;
    }

    .title-sub {
        font-size: 2.25rem;
    }

    .showcase-thumbnails {
        right: -60px;
    }

    .category-section .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    /* Responsive layouts for tablets */
    .category-section {
        padding: 80px 0;
    }

    .section-icon {
        font-size: 3rem;
    }

    .category-section .section-title {
        font-size: 2.25rem;
    }

    /* Puzzle Games - 2 columns on tablet */
    .puzzle-games-layout {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .puzzle-games-layout .game-card {
        height: 350px;
    }

    /* Action Games - Stack vertically */
    .action-games-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        height: auto;
    }

    .action-games-layout .hero-card {
        height: 300px;
    }

    .action-games-layout .action-list {
        display: flex;
        flex-direction: row;
        gap: 1rem;
        overflow-x: auto;
    }

    .action-games-layout .action-list .game-card {
        flex: 0 0 200px;
        /* height: 100px; */
    }

    /* Sports Games - Keep 2x2 grid */
    .sports-games-layout {
        gap: 1.5rem;
    }

    .sports-games-layout .game-card {
        height: 250px;
    }

    .sports-games-layout .game-card .game-image {
        height: 140px;
    }

    /* Sports Games - Reduce card width */
    .sports-games-layout .game-card {
        flex: 0 0 250px;
        height: 320px;
    }

    .sports-games-layout .game-card .game-image {
        height: 180px;
    }
}

.mobile-nav-menu {
    display: none;
}

@media (max-width: 768px) {
    .mobile-nav-menu {
        display: block;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 100px 20px 60px;
    }

    .title-main {
        font-size: 2.5rem;
    }

    .title-highlight {
        font-size: 3rem;
    }

    .title-sub {
        font-size: 1.75rem;
    }

    .hero-stats {
        gap: 2rem;
        justify-content: center;
    }

    .hero-visual {
        height: auto;
        margin: 20px 0
    }

    .showcase-thumbnails {
        display: none;
    }

    .category-section .section-header {
        text-align: center;
        align-items: center;
    }

    /* Mobile layouts */
    .category-section {
        padding: 60px 0;
    }

    .category-section::after,
    .puzzle-section::after,
    .action-section::after,
    .sports-section::after {
        display: none;
    }

    .section-title-wrapper {
        gap: 1rem;
    }

    .section-icon {
        font-size: 2.5rem;
    }

    .category-section .section-title {
        font-size: 1.75rem;
    }

    .view-more-btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    /* Puzzle Games - Single column */
    .puzzle-games-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .puzzle-games-layout .game-card {
        height: 380px;
    }

    /* Action Games - Single column stack */
    .action-games-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        height: auto;
    }

    .action-games-layout .hero-card {
        height: 330px;
    }

    .action-games-layout .hero-card .hero-title {
        font-size: 1.5rem;
    }

    .action-games-layout .action-list {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
        overflow-x: visible;
    }

    .action-games-layout .action-list .game-card {
        flex: none;
        /* height: 120px; */
    }

    /* Sports Games - Single column */
    .sports-games-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .sports-games-layout::before,
    .sports-games-layout::after {
        display: none;
    }

    .sports-games-layout .game-card {
        height: 280px;
    }

    .sports-games-layout .game-card .game-image {
        height: 160px;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .games-filter {
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }

    .filter-btn {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 80px 15px 40px;
    }

    .title-main {
        font-size: 2rem;
    }

    .title-highlight {
        font-size: 2.5rem;
    }

    .title-sub {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .game-showcase {
        max-width: 300px;
    }

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

    .category-section .section-title {
        font-size: 1.75rem;
    }

    /* Small screen optimizations */
    .puzzle-games-layout .game-card,
    .action-games-layout .game-card,
    .sports-games-layout .game-card {
        margin-bottom: 0.5rem;
    }

    .action-games-layout .game-card .game-info {
        padding: 1rem;
    }

    .sports-games-layout .game-card .game-image {
        height: 150px;
    }
}