/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #dc143c;
    --dark-color: #1a1a1a;
    --light-color: #f5f5f5;
    --border-color: #e0e0e0;
    --text-color: #333;
    --accent-color: #ff6b6b;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-4: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation Header */
.navbar {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(245,245,245,0.95) 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Logo Icon with C and Black Outline with Red Color */
.logo-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-color);
    border: 3px solid var(--dark-color);
    border-radius: 10px;
    background: linear-gradient(135deg, #fff 0%, #f5f5f5 100%);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.2);
}

.logo-icon:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.4);
}

.brand-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-color);
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-bar-small {
    position: relative;
}

.search-bar-small input {
    padding: 8px 15px;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    width: 200px;
    transition: all 0.3s ease;
}

.search-bar-small input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(220, 20, 60, 0.2);
}

.btn-signin {
    padding: 10px 25px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff6b6b 100%);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.3);
}

.btn-signin:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.4);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    padding: 120px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--gradient-1);
    border-radius: 50%;
    top: -100px;
    left: -100px;
    opacity: 0.1;
}

.hero::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--gradient-2);
    border-radius: 50%;
    bottom: -50px;
    right: -50px;
    opacity: 0.1;
}

.hero-background {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.floating-game {
    position: absolute;
    font-size: 48px;
    opacity: 0.15;
    animation: float 6s ease-in-out infinite;
}

.floating-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-2 {
    top: 20%;
    right: 15%;
    animation-delay: 1s;
}

.floating-3 {
    bottom: 20%;
    left: 15%;
    animation-delay: 2s;
}

.floating-4 {
    top: 50%;
    right: 10%;
    animation-delay: 1.5s;
}

.floating-5 {
    bottom: 10%;
    right: 20%;
    animation-delay: 0.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(10deg);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInDown 0.8s ease;
}

.hero-content h1 {
    font-size: 56px;
    margin-bottom: 15px;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-weight: 600;
}

.tagline {
    font-size: 18px;
    color: #aaa;
    font-style: italic;
    margin-bottom: 30px;
}

.btn-hero {
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff6b6b 100%);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(220, 20, 60, 0.4);
}

.btn-hero:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(220, 20, 60, 0.6);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Search Section */
.search-section {
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
    padding: 60px 20px;
    position: relative;
}

.search-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.search-box-wrapper {
    text-align: center;
}

.search-box-wrapper h2 {
    font-size: 36px;
    margin-bottom: 30px;
    color: var(--dark-color);
    font-weight: 700;
}

.search-box {
    display: flex;
    gap: 10px;
    max-width: 700px;
    margin: 0 auto 30px;
}

.search-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(220, 20, 60, 0.2);
}

.search-btn {
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff6b6b 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.3);
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.4);
}

/* Filter Tags */
.filter-tags {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    background: white;
    color: var(--text-color);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff6b6b 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.3);
}

/* Games Section */
.games-section {
    padding: 60px 20px;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--dark-color);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.game-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.game-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
}

.game-info {
    padding: 20px;
}

.game-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.game-genre {
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.game-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.4;
}

.game-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.game-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.btn-buy {
    padding: 8px 15px;
    background: var(--dark-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn-buy:hover {
    background: var(--primary-color);
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 18px;
}

/* Features Section */
.features {
    background: var(--light-color);
    padding: 60px 20px;
}

.features h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--dark-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.feature-card p {
    color: #666;
    font-size: 14px;
}

/* About Section */
.about {
    padding: 60px 20px;
    background: white;
}

.about h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 30px;
    color: var(--dark-color);
}

.about p {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    font-size: 16px;
    color: #666;
    line-height: 1.8;
}

/* Contact Section */
.contact {
    background: var(--light-color);
    padding: 60px 20px;
}

.contact h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: var(--dark-color);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-submit:hover {
    background: #b80e2f;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 50px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.footer-section p {
    font-size: 14px;
    color: #ccc;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
    color: #999;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        gap: 15px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .search-box {
        flex-direction: column;
    }

    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }

    .contact-form {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .nav-content {
        flex-wrap: wrap;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 15px;
        gap: 10px;
    }

    .logo {
        gap: 8px;
    }

    .brand-name {
        font-size: 18px;
    }

    .hero-content h1 {
        font-size: 24px;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }
}

/* ====== GAME MODAL STYLES ====== */

.game-modal {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.game-modal[style*="display: flex"] {
    display: flex !important;
}

/* Lock body scroll when modal is open */
body.game-modal-open {
    overflow: hidden;
    height: 100vh;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.game-modal-content {
    background: linear-gradient(135deg, #0a0e27 0%, #16213e 100%);
    border-radius: 15px;
    padding: 30px;
    width: 100%;
    max-width: 500px;
    height: auto;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.8);
    animation: slideUp 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Title at top */
.game-title-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 15px;
}

.game-title-section h1 {
    color: white;
    font-size: 36px;
    margin: 0;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(220, 20, 60, 0.3);
}

.close-game {
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.close-game:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* Game container - canvas area */
.game-container {
    position: relative;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    border: 3px solid var(--primary-color);
    width: 400px;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #87CEEB;
}

#gameCanvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.game-over-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.game-over-content {
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff6b6b 100%);
    padding: 50px;
    border-radius: 15px;
    text-align: center;
    color: white;
    animation: pulse 0.5s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.game-over-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.game-over-content p {
    font-size: 22px;
    margin: 15px 0;
    font-weight: 600;
}

.btn-retry {
    margin-top: 30px;
    padding: 15px 40px;
    background: white;
    color: var(--primary-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn-retry:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

/* Controls at bottom */
.game-controls-bottom {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 10px;
    align-items: center;
    justify-content: center;
}

.controls-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.btn-game-start,
.btn-game-pause,
.btn-game-resume,
.btn-game-restart {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff6b6b 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.3);
}

.btn-game-start:hover,
.btn-game-pause:hover,
.btn-game-resume:hover,
.btn-game-restart:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(220, 20, 60, 0.5);
}

.sound-controls {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.btn-sound {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff6b6b 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.3);
}

.btn-sound:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(220, 20, 60, 0.4);
}

/* Responsive Game Modal */
@media (max-width: 768px) {
    .game-modal-content {
        max-width: 95%;
        padding: 20px;
        gap: 15px;
    }
    
    .game-title-section h1 {
        font-size: 28px;
    }
    
    .game-container {
        width: 100%;
        height: auto;
        aspect-ratio: 2/3;
        min-height: 400px;
    }
    
    .game-over-content {
        padding: 30px;
    }
    
    .game-over-content h2 {
        font-size: 36px;
    }
    
    .game-over-content p {
        font-size: 18px;
    }
    
    .btn-retry {
        padding: 12px 30px;
        font-size: 16px;
    }
}

/* ====== TRENDING GAMES STYLING ====== */

.trending-section h2 {
    text-align: center;
    font-size: 40px;
    margin-bottom: 50px;
    color: var(--dark-color);
    font-weight: 800;
}

.trending-games {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.trending-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.trending-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.trend-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff6b6b 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(220, 20, 60, 0.3);
}

.trend-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    position: relative;
    overflow: hidden;
}

.trending-card:nth-child(2) .trend-image {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.trending-card:nth-child(3) .trend-image {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.trending-card:nth-child(4) .trend-image {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.trending-card h3 {
    font-size: 20px;
    font-weight: 700;
    padding: 20px 20px 10px;
    color: var(--dark-color);
    text-align: center;
}

.trending-card p {
    padding: 0 20px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    text-align: center;
}

.rating {
    padding: 10px 20px;
    color: #ff9800;
    font-weight: 600;
    text-align: center;
}

.btn-play {
    width: calc(100% - 40px);
    margin: 10px 20px 20px;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff6b6b 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.3);
}

.btn-play:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(220, 20, 60, 0.4);
}

@media (max-width: 768px) {
    .trending-games {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }
    
    .trending-card h3 {
        font-size: 16px;
        padding: 15px 15px 8px;
    }
    
    .trend-image {
        height: 140px;
        font-size: 60px;
    }
}

.game-stats {
    display: flex;
    gap: 30px;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
}

.stat-item {
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.stat-item span:first-child {
    font-size: 12px;
    color: #aaa;
    text-transform: uppercase;
}

.stat-item span:last-child {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.game-instructions {
    text-align: center;
    color: white;
    font-size: 14px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

/* ====== SNAKE GAME HUD STYLES ====== */

.snake-hud-container {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 8px;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    border: 1px solid var(--primary-color);
}

.snake-hud-item {
    color: #FFD700;
    font-weight: 600;
    font-size: 13px;
    padding: 4px 10px;
    background: rgba(220, 20, 60, 0.15);
    border-left: 2px solid var(--primary-color);
    border-radius: 3px;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.snake-hud-item span {
    color: #00FF00;
    font-weight: 700;
    font-size: 14px;
}
