body {
    background: #0f0f1f; /* Deeper background for more contrast */
    color: #eee;
    font-family: 'Orbitron', sans-serif;
    overflow-x: hidden;
    margin: 0;
    cursor: url('assets/cursor-pixel.png'), auto;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(100, 43, 115, 0.1) 0%, rgba(4, 0, 4, 0.1) 90%),
        radial-gradient(circle at 90% 80%, rgba(0, 255, 231, 0.05) 0%, rgba(0, 0, 0, 0) 70%);
    background-attachment: fixed;

.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

.bg-element {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(255, 99, 71, 0.7), rgba(30, 144, 255, 0.7));
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    animation: float 7s ease-in-out infinite;
    opacity: 0.5;
}

.bg-element-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: -100px;
    animation-delay: 0s;
}

.bg-element-2 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: calc(100% - 200px);
    animation-delay: 1.5s;
}

.bg-element-3 {
    width: 150px;
    height: 150px;
    bottom: 10%;
    left: 0;
    animation-delay: 3s;
}

.bg-element-4 {
    width: 400px;
    height: 400px;
    bottom: -50px;
    right: -50px;
    animation-delay: 4.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

.navbar {
    background: rgba(15, 15, 31, 0.85);
    backdrop-filter: blur(15px);
    box-shadow: 0 5px 25px rgba(0, 255, 231, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 255, 231, 0.3);
    position: relative;
    overflow: hidden;
    min-height: 56px;
}

.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 231, 0.8), transparent);
    animation: glow-line 3s infinite;
}

@keyframes glow-line {
    0% { opacity: 0.3; transform: translateX(-100%); }
    50% { opacity: 1; }
    100% { opacity: 0.3; transform: translateX(100%); }
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.logo-icon {
    font-size: 2.5rem;
    animation: pulse 4s ease-in-out infinite;
    color: #00ffe7;
    text-shadow: 0 0 15px #00ffe7;
    position: relative;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.1); filter: brightness(1.3); }
}

.logo {
    font-size: 2rem;
    color: #fff;
    font-weight: 900;
    text-shadow: 0 0 8px #00ffe7;
    background: linear-gradient(90deg, #fff, #00ffe7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: #00ffe7;
    letter-spacing: 2px;
    display: block;
    text-transform: uppercase;
    font-weight: 300;
    margin-top: -5px;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1.2rem;
}

.search-container {
    position: relative;
    flex: 1;
    max-width: 500px;
    margin: 0 1rem;
}

.search-wrapper {
    position: relative;
}

.search-bar {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 3rem;
    font-size: 1rem;
    border-radius: 30px;
    border: 1px solid rgba(0, 255, 231, 0.3);
    background: rgba(15, 15, 31, 0.5);
    color: white;
    font-family: 'Orbitron', sans-serif;
    backdrop-filter: blur(5px);
    transition: all 0.3s;
    box-shadow: 0 0 10px rgba(0, 255, 231, 0.1);
}

.search-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 25px;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, #00ffe7, transparent);
    box-shadow: 0 0 15px rgba(0, 255, 231, 0.5);
}

.search-bar:focus {
    outline: none;
    box-shadow: 0 0 15px rgba(0, 255, 231, 0.4);
    background: rgba(15, 15, 31, 0.7);
    border-color: #00ffe7;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #00ffe7;
    font-size: 1.2rem;
    text-shadow: 0 0 5px #00ffe7;
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 5px #00ffe7; }
    to { text-shadow: 0 0 10px #00ffe7, 0 0 15px #00ffe7; }
}

.nav-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-btn {
    position: relative;
    padding: 0.5rem 1rem;
    background: rgba(15, 15, 31, 0.5);
    border: 1px solid rgba(0, 255, 231, 0.3);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Orbitron', sans-serif;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 255, 231, 0.1);
    transition: all 0.3s;
    position: relative;
}

.sound-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(15, 15, 31, 0.7);
    border: 1px solid rgba(0, 255, 231, 0.3);
    color: #00ffe7;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 0 10px rgba(0, 255, 231, 0.2);
    backdrop-filter: blur(5px);
}

.sound-btn i {
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.sound-btn:hover {
    background: rgba(0, 255, 231, 0.2);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 255, 231, 0.4);
}

.sound-btn.muted {
    background: rgba(255, 71, 87, 0.2);
    border-color: rgba(255, 71, 87, 0.3);
    color: #ff4757;
}

.sound-btn.muted:hover {
    background: rgba(255, 71, 87, 0.3);
    box-shadow: 0 0 20px rgba(255, 71, 87, 0.4);
}

@keyframes playPulse {
    0% { transform: scale(1); box-shadow: 0 0 20px rgba(0, 255, 231, 0.3); }
    50% { transform: scale(1.05); box-shadow: 0 0 30px rgba(0, 255, 231, 0.5); }
    100% { transform: scale(1); box-shadow: 0 0 20px rgba(0, 255, 231, 0.3); }
}

.game-card.playing {
    animation: playPulse 1s ease-in-out;
}

.btn-icon {
    display: inline-block;
    font-size: 1.2em;
    margin-right: 0.5rem;
    text-shadow: 0 0 5px #00ffe7;
}

.btn-text {
    display: none;
}

.btn-glow {
    position: absolute;
    background: rgba(0, 255, 231, 0.3);
    top: -50%;
    bottom: -50%;
    left: -50%;
    right: -50%;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00ffe7, transparent, #00ffe7);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 20px;
}

.nav-btn:hover {
    background: rgba(15, 15, 31, 0.7);
    color: #00ffe7;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 231, 0.3);
}

.nav-btn:hover::before {
    opacity: 1;
}

.nav-btn:hover .btn-glow {
    opacity: 1;
    transform: scale(1.2);
}

.filter-bar {
    background: rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 0;
    position: relative;
}

.filter-bar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 231, 0.5), transparent);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.filter-btn {
    background: rgba(15, 15, 31, 0.5);
    color: #fff;
    padding: 10px 25px;
    font-size: 0.9rem;
    border: 1px solid rgba(0, 255, 231, 0.3);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 255, 231, 0.1);
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 231, 0.2), transparent);
    transition: left 0.5s ease;
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-icon {
    font-size: 1.2rem;
}

.filter-btn.active, .filter-btn:hover {
    background: rgba(0, 255, 231, 0.2);
    box-shadow: 0 0 20px rgba(0, 255, 231, 0.5);
    transform: translateY(-2px);
    color: #00ffe7;
    text-shadow: 0 0 5px #00ffe7;
}

.hero-banner {
    background: radial-gradient(circle at center, #1b1b2f, #1b1b1f);
    color: #fff;
    padding: 3rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #00ffe7;
    text-shadow: 0 0 8px #00ffe7;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #eee;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1rem 0;
}

.hero-stat {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #00ffe7;
    text-shadow: 0 0 5px #00ffe7;
}

.stat-label {
    font-size: 0.9rem;
}

.hero-visual {
    position: relative;
    z-index: -1;
}

.floating-games {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 2rem;
    position: relative;
}

.floating-game {
    font-size: 2.5rem;
    color: #00ffe7;
    text-shadow: 0 0 10px #00ffe7;
    animation: bounce 5s infinite alternate ease-in-out;
}

.floating-game.game-1 {
    animation-delay: 0s;
}

.floating-game.game-2 {
    animation-delay: 0.5s;
}

.floating-game.game-3 {
    animation-delay: 1s;
}

.floating-game.game-4 {
    animation-delay: 1.5s;
}

.floating-game.game-5 {
    animation-delay: 2s;
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-15px); }
}

.main-footer {
    background: #111;
    color: #eee;
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
}

.footer-section h3, .footer-section h4 {
    color: #00ffe7;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: #00ffe7;
}

.social-links {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.social-link {
    font-size: 1.5rem;
}

.footer-bottom {
    margin-top: 2rem;
    border-top: 1px solid #444;
    padding-top: 1rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.footer-bottom p {
    margin-bottom: 0;
}

.footer-links a {
    margin: 0 10px;
    color: #00ffe7;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #fff;
}

/* Featured Game Banner */
.featured-banner {
    position: relative;
    margin: 0 auto 3rem;
    max-width: 1200px;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 255, 231, 0.3);
}

.featured-content {
    display: flex;
    height: 100%;
    position: relative;
}

.featured-info {
    position: relative;
    width: 40%;
    padding: 3rem;
    background: linear-gradient(90deg, rgba(26, 22, 37, 0.9) 70%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
}

.featured-badge {
    display: inline-block;
    background: linear-gradient(90deg, #ff2a6d, #d61c4e);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 1rem;
    box-shadow: 0 0 15px rgba(255, 42, 109, 0.5);
    letter-spacing: 1px;
}

.featured-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.featured-description {
    color: #b8b8b8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.featured-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.featured-category, .featured-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #00ffe7;
    font-size: 1rem;
}

.featured-play-btn {
    align-self: flex-start;
    background: linear-gradient(90deg, #00ffe7, #7b68ee);
    color: #181a1b;
    border: none;
    border-radius: 30px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 0 20px rgba(0, 255, 231, 0.5);
    position: relative;
    overflow: hidden;
}

.featured-play-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.featured-play-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0, 255, 231, 0.7);
}

.featured-play-btn:hover::before {
    transform: translateX(100%);
}

.featured-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.featured-image {
    width: 100%;
    height: 100%;
    min-height: 260px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    border-radius: 18px;
    box-shadow: 0 0 24px #00ffe7;
    transition: transform 10s ease;
}

.featured-banner:hover .featured-image {
    transform: scale(1.1);
}

.featured-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(26, 22, 37, 0.8) 0%, rgba(26, 22, 37, 0.4) 50%, rgba(26, 22, 37, 0.2) 100%);
}
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(24,26,27,0.98);
    box-shadow: 0 2px 16px #00ffe7cc;
    border-bottom: 2px solid #00ffe7;
}
.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
}
.nav-left, .nav-center, .nav-right {
    display: flex;
    align-items: center;
}
.nav-center {
    flex: 1;
    justify-content: center;
}
.nav-right {
    gap: 1rem;
}
.theme-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #00ffe7;
    cursor: pointer;
    transition: color 0.2s;
}
.theme-toggle:hover {
    color: #fff;
    text-shadow: 0 0 8px #00ffe7;
}

.my-games-btn {
    background: linear-gradient(90deg, #ff4757 60%, #00ffe7 100%);
    border: none;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
}

.my-games-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 71, 87, 0.5);
}
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #1e1e2f 0%, #2c2c36 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    font-size: 3.2rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 2px;
    text-shadow: 0 4px 24px #00ffe7, 2px 2px 8px #000, 0 1px 0 #fff;
    margin-bottom: 0.5rem;
    font-family: 'Orbitron', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.tagline {
    font-size: 1.1rem;
    color: #00ffe7;
    font-weight: 500;
    letter-spacing: 1px;
    text-shadow: 0 1px 8px #000, 0 0px 2px #00ffe7;
    margin-bottom: 0.5rem;
}

/* Search Section */
.search-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.search-bar {
    width: 100%;
    max-width: 500px;
    padding: 15px 20px;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    outline: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.search-bar:focus {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Games Section */
.games-section h2 {
    color: #fff;
    font-size: 2.7rem;
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 0 4px 24px #00ffe7, 2px 2px 8px #000, 0 1px 0 #fff;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
}
.section-icon {
    font-size: 2.2rem;
    vertical-align: middle;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    justify-content: center;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.game-card {
    background: rgba(35, 37, 38, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 255, 231, 0.3);
    box-shadow: 0 8px 32px 0 rgba(0,255,231,0.15), 0 1.5px 8px #000;
    border-radius: 22px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(.25,.8,.25,1);
    cursor: url('assets/cursor-pixel.png'), pointer;
    position: relative;
    width: 100%;
    max-width: 320px;
    height: 420px;
}

.favorite-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(15, 15, 31, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(5px);
    transition: all 0.3s;
    color: #fff;
}

.favorite-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 71, 87, 0.2);
    border-color: rgba(255, 71, 87, 0.4);
    box-shadow: 0 0 15px rgba(255, 71, 87, 0.4);
}

.favorite-btn.favorited {
    color: #ff4757;
    background: rgba(255, 71, 87, 0.2);
    border-color: rgba(255, 71, 87, 0.4);
    animation: heartPulse 0.5s ease-out;
}

@keyframes heartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}
}

.game-card:hover {
    transform: translateY(-14px) scale(1.08) rotate(-1deg) translateZ(20px);
    box-shadow: 0 24px 48px 0 #00ffe7cc, 0 1.5px 8px #000;
    border-bottom: 10px solid #00ffe7;
    z-index: 2;
    cursor: url('assets/cursor-laser.png'), pointer;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(0, 255, 231, 0.1) 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 22px;
    pointer-events: none;
}

.game-card:hover::before {
    opacity: 1;
}

.game-thumbnail {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: #181a1b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    border-bottom: 2px solid #00ffe7;
    position: relative;
    overflow: hidden;
}
.game-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.play-btn {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%) scale(0.9);
    background: linear-gradient(90deg, #00ffe7 60%, #764ba2 100%);
    color: #181a1b;
    border: none;
    border-radius: 30px;
    padding: 0.7em 2em;
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 1px;
    box-shadow: 0 2px 12px #00ffe7cc;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    cursor: pointer;
    z-index: 3;
    overflow: hidden;
}

.play-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.play-btn:hover::before {
    transform: translateX(100%);
}

.game-tags {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 2;
}

.game-tag {
    background: rgba(0, 0, 0, 0.6);
    color: #00ffe7;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 255, 231, 0.3);
    box-shadow: 0 0 5px rgba(0, 255, 231, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.game-tag.new {
    background: rgba(255, 71, 87, 0.8);
    color: white;
    border-color: rgba(255, 71, 87, 0.5);
    box-shadow: 0 0 5px rgba(255, 71, 87, 0.5);
}

.game-tag.hot {
    background: rgba(255, 165, 2, 0.8);
    color: white;
    border-color: rgba(255, 165, 2, 0.5);
    box-shadow: 0 0 5px rgba(255, 165, 2, 0.5);
}
.game-card:hover .play-btn {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) scale(1.08);
    box-shadow: 0 4px 24px #00ffe7cc;
}

/* Favorite button animation */
.favorite-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: transform 0.3s, background-color 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.favorite-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(255, 105, 180, 0.7);
}

.favorite-btn.favorited {
    animation: heartPulse 0.7s ease-in-out;
    background: rgba(255, 105, 180, 0.3);
    box-shadow: 0 0 15px rgba(255, 105, 180, 0.7);
    border-color: rgba(255, 105, 180, 0.5);
}

@keyframes heartPulse {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1.1); }
    75% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.game-info {
    padding: 1.5rem;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 0;
    position: relative;
}

.game-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 0.5rem;
}

.game-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.game-category {
    background: linear-gradient(90deg, #00ffe7 60%, #764ba2 100%);
    color: #181a1b;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-right: 0.5em;
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    box-shadow: 0 2px 10px rgba(0, 255, 231, 0.5);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: subpixel-antialiased;
}

.game-rating {
    color: #ffd700;
    font-weight: bold;
    margin-left: 0.5em;
    font-size: 1.1em;
    text-shadow: 0 1px 4px #000;
}

.new-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(90deg, #ff4757 60%, #00ffe7 100%);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    animation: pulse 2s infinite;
    box-shadow: 0 2px 8px #00ffe7cc;
    border: 1.5px solid #fff;
    letter-spacing: 1px;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Stats Section */
.stats-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #00ffe7;
    text-shadow: 0 2px 8px #764ba2, 0 1px 0 #fff;
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .games-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .logo {
        font-size: 2rem;
    }
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 0.5rem;
    }
    .game-card {
        width: 100%;
        max-width: none;
        height: 350px;
    }
    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }
    .filter-btn {
        width: 200px;
    }
    .nav-content {
        flex-direction: column;
        gap: 0.5em;
    }
    .nav-right {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .game-card {
        height: 320px;
    }
}

/* Loading Animation */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    color: white;
    font-size: 1.2rem;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid white;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-right: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced animations */
@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 10px #00ffe7;
    }
    50% {
        box-shadow: 0 0 20px #00ffe7, 0 0 30px #00ffe7;
    }
}

.filter-btn.active {
    animation: glow 2s ease-in-out infinite;
}

/* Staggered animation delay for cards */
.game-card:nth-child(1) { animation-delay: 0.1s; }
.game-card:nth-child(2) { animation-delay: 0.2s; }
.game-card:nth-child(3) { animation-delay: 0.3s; }
.game-card:nth-child(4) { animation-delay: 0.4s; }
.game-card:nth-child(5) { animation-delay: 0.5s; }
.game-card:nth-child(6) { animation-delay: 0.6s; }

/* Light theme */
body.light-theme {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
}

body.light-theme .navbar {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 16px rgba(0, 123, 255, 0.3);
    border-bottom: 2px solid #007bff;
}

body.light-theme .logo {
    color: #333;
    text-shadow: 0 4px 24px #007bff, 2px 2px 8px rgba(0,0,0,0.1);
}

body.light-theme .theme-toggle {
    color: #007bff;
}

body.light-theme .game-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #007bff;
    box-shadow: 0 8px 32px 0 rgba(0,123,255,0.15), 0 1.5px 8px rgba(0,0,0,0.1);
    border-bottom: 6px solid #007bff;
}

body.light-theme .game-card:hover {
    box-shadow: 0 24px 48px 0 rgba(0,123,255,0.3), 0 1.5px 8px rgba(0,0,0,0.1);
    border-bottom: 10px solid #007bff;
}

body.light-theme .game-title {
    color: #333;
}

body.light-theme .game-description {
    color: rgba(0, 0, 0, 0.7);
}

body.light-theme .games-section h2 {
    color: #333;
    text-shadow: 0 4px 24px #007bff, 2px 2px 8px rgba(0,0,0,0.1);
}

body.light-theme .stat-number {
    color: #007bff;
    text-shadow: 0 2px 8px rgba(0,123,255,0.3);
}

body.light-theme .stat-label {
    color: rgba(0, 0, 0, 0.7);
}

/* Favorite heart button */
.favorite-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 4;
}

.favorite-btn:hover {
    background: rgba(255, 0, 0, 0.8);
    transform: scale(1.1);
}

.favorite-btn.favorited {
    background: rgba(255, 0, 0, 0.8);
    color: #fff;
}



/* Profile Modal Styles */
.profile-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.profile-modal {
    background: linear-gradient(135deg, #232526 0%, #414345 100%);
    border: 2px solid #00ffe7;
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 255, 231, 0.3);
    animation: slideInScale 0.4s ease;
}

.profile-modal.large {
    max-width: 700px;
    max-height: 90vh;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #00ffe7;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #fff;
    text-shadow: 0 0 8px #00ffe7;
}

.profile-modal h2 {
    color: #00ffe7;
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 255, 231, 0.5);
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

#nicknameInput {
    padding: 12px 16px;
    border: 2px solid #00ffe7;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.1rem;
    outline: none;
    transition: all 0.3s ease;
}

#nicknameInput:focus {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 15px rgba(0, 255, 231, 0.5);
}

.avatar-selection p {
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 500;
}

.avatar-options {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
}

.avatar-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 0.8rem;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.avatar-btn:hover {
    background: rgba(0, 255, 231, 0.2);
    border-color: #00ffe7;
}

.avatar-btn.active {
    background: rgba(0, 255, 231, 0.3);
    border-color: #00ffe7;
    box-shadow: 0 0 10px rgba(0, 255, 231, 0.5);
}

.save-profile-btn {
    background: linear-gradient(90deg, #00ffe7 60%, #764ba2 100%);
    color: #181a1b;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.save-profile-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 255, 231, 0.4);
}

/* Welcome Message */
.welcome-message {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(0, 255, 231, 0.1);
    border: 1px solid #00ffe7;
    border-radius: 25px;
    padding: 0.5rem 1rem;
}

.welcome-text {
    color: #fff;
    font-weight: 500;
    font-size: 0.9rem;
}

.profile-btn {
    background: linear-gradient(90deg, #00ffe7 60%, #764ba2 100%);
    color: #181a1b;
    border: none;
    border-radius: 15px;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 255, 231, 0.4);
}

/* Profile Header */
.profile-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(0, 255, 231, 0.3);
}

.profile-avatar {
    font-size: 4rem;
    background: rgba(0, 255, 231, 0.2);
    border: 3px solid #00ffe7;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-info h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-align: left;
}

.profile-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

/* Profile Stats */
.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(0, 255, 231, 0.1);
    border: 1px solid #00ffe7;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
}

.stat-value {
    color: #00ffe7;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Achievements Section */
.achievements-section {
    margin-bottom: 2rem;
}

.achievements-section h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.achievement-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.achievement-badge.unlocked {
    background: rgba(0, 255, 231, 0.1);
    border-color: #00ffe7;
    box-shadow: 0 0 15px rgba(0, 255, 231, 0.2);
}

.achievement-badge.locked {
    opacity: 0.5;
    filter: grayscale(100%);
}

.achievement-icon {
    font-size: 2rem;
    width: 50px;
    text-align: center;
}

.achievement-name {
    color: #fff;
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.achievement-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Settings Form */
.settings-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 231, 0.3);
}

.setting-item label {
    color: #fff;
    font-weight: 500;
    flex: 1;
}

.setting-item select,
.setting-item input[type="checkbox"] {
    background: rgba(0, 255, 231, 0.1);
    border: 1px solid #00ffe7;
    border-radius: 5px;
    color: #fff;
    padding: 0.5rem;
}

.setting-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #00ffe7;
}

/* Profile Actions */
.profile-actions,
.settings-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.profile-actions button,
.settings-actions button {
    background: linear-gradient(90deg, #00ffe7 60%, #764ba2 100%);
    color: #181a1b;
    border: none;
    border-radius: 10px;
    padding: 0.8rem 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-actions button:hover,
.settings-actions button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 231, 0.4);
}

/* Achievement Notification */
.achievement-notification {
    position: fixed;
    top: 100px;
    right: -400px;
    background: linear-gradient(135deg, #232526 0%, #414345 100%);
    border: 2px solid #ffd700;
    border-radius: 15px;
    padding: 1rem;
    max-width: 350px;
    z-index: 1001;
    transition: right 0.5s ease;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.achievement-notification.show {
    right: 20px;
}

.achievement-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.achievement-notification .achievement-icon {
    font-size: 2.5rem;
    background: rgba(255, 215, 0, 0.2);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.achievement-title {
    color: #ffd700;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.achievement-notification .achievement-name {
    color: #fff;
    font-weight: bold;
    margin-bottom: 0.2rem;
}

.achievement-notification .achievement-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* General Notification */
.notification {
    position: fixed;
    top: 20px;
    right: -300px;
    background: linear-gradient(135deg, #00ffe7 0%, #764ba2 100%);
    color: #181a1b;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-weight: bold;
    z-index: 1001;
    transition: right 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 255, 231, 0.4);
}

.notification.show {
    right: 20px;
}

/* Animations */
@keyframes slideInScale {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Light theme overrides for new components */
body.light-theme .profile-modal {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-color: #007bff;
    box-shadow: 0 20px 60px rgba(0, 123, 255, 0.3);
}

body.light-theme .profile-modal h2 {
    color: #007bff;
}

body.light-theme .close-btn {
    color: #007bff;
}

body.light-theme #nicknameInput {
    border-color: #007bff;
    background: rgba(0, 123, 255, 0.1);
    color: #333;
}

body.light-theme .avatar-btn:hover,
body.light-theme .avatar-btn.active {
    border-color: #007bff;
    background: rgba(0, 123, 255, 0.2);
}

body.light-theme .welcome-message {
    background: rgba(0, 123, 255, 0.1);
    border-color: #007bff;
}

body.light-theme .welcome-text {
    color: #333;
}

body.light-theme .profile-header {
    border-bottom-color: rgba(0, 123, 255, 0.3);
}

body.light-theme .profile-avatar {
    border-color: #007bff;
    background: rgba(0, 123, 255, 0.2);
}

body.light-theme .stat-card {
    background: rgba(0, 123, 255, 0.1);
    border-color: #007bff;
}

body.light-theme .stat-value {
    color: #007bff;
}

body.light-theme .achievement-badge.unlocked {
    background: rgba(0, 123, 255, 0.1);
    border-color: #007bff;
}

body.light-theme .setting-item {
    background: rgba(0, 123, 255, 0.05);
    border-color: rgba(0, 123, 255, 0.3);
}



/* Responsive Design for New Components */
@media (max-width: 768px) {
    .profile-modal {
        width: 95%;
        padding: 1.5rem;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .avatar-options {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .recent-games-row {
        gap: 0.5rem;
    }
    
    .recent-game-item {
        flex: 0 0 120px;
    }
    
    .recent-thumbnail {
        width: 120px;
        height: 80px;
    }
    
    .welcome-message {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .achievement-notification {
        right: -350px;
        max-width: 300px;
    }
    
    .achievement-notification.show {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .profile-stats {
        grid-template-columns: 1fr;
    }
    
    .profile-actions,
    .settings-actions {
        flex-direction: column;
    }
    
    .setting-item {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}
