:root {
    /* Color Palette - Cyber/Premium Theme */
    --bg-dark: #0a0b1e;
    --bg-surface: #161833;
    --accent-primary: #7000ff;
    --accent-secondary: #00d4ff;
    --text-main: #ffffff;
    --text-dim: #b0b3c1;
    --glass-bg: rgba(22, 24, 51, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-neon: 0 0 20px rgba(112, 0, 255, 0.3);
    --gradient-hero: linear-gradient(135deg, #7000ff 0%, #00d4ff 100%);
}

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

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

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Navigation */
header.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}

.logo-text span {
    color: var(--accent-secondary);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--accent-secondary);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.search-bar {
    display: flex;
    background: var(--bg-surface);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    border: 1px solid var(--glass-border);
}

.search-bar input {
    background: transparent;
    border: none;
    color: white;
    padding: 0.2rem 0.5rem;
    outline: none;
}

.search-bar button {
    background: transparent;
    border: none;
    cursor: pointer;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Mobile Actions */
.mobile-actions {
    display: none;
    align-items: center;
    gap: 1rem;
}

.mobile-search-toggle {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-header, .mobile-nav-footer {
    display: none;
}

@media (max-width: 900px) {
    .mobile-actions {
        display: flex;
        flex-shrink: 0;
    }
    .header-actions {
        display: none !important;
    }
    
    .logo {
        flex: 1;
        min-width: 0;
    }

    .logo-text {
        font-size: 1.4rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (max-width: 600px) {
    .logo-text {
        display: block;
        font-size: 1.2rem;
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 2100; /* Higher than nav#mainNav */
    position: relative;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.credit-badge {
    background: rgba(112, 0, 255, 0.15);
    border: 1px solid var(--accent-primary);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-secondary);
    white-space: nowrap;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 600px) {
    .credit-badge {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
        border-radius: 6px;
    }
}

.user-profile {
    position: relative;
}

.user-area {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-small {
    padding: 0.5rem 1.2rem;
    font-size: 0.8rem;
    border-radius: 8px;
}

.user-dropdown {
    position: absolute;
    top: 110%;
    right: 0;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.8rem;
    min-width: 160px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    z-index: 1000;
    backdrop-filter: blur(15px);
}

.user-dropdown span {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--accent-secondary);
}

.user-dropdown button {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: none;
    color: white;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.user-dropdown button:hover {
    background: rgba(255,255,255,0.1);
}

.hidden { display: none !important; }

/* Hero Section */
.hero {
    min-height: 80vh;
    padding-top: 120px;
    padding-bottom: 4rem;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding-top: 100px;
        flex-direction: column;
        text-align: center;
    }
}

.hero-content {
    flex: 1;
    z-index: 2;
    padding: 2rem;
}

.hero-badge {
    background: rgba(112, 0, 255, 0.2);
    color: var(--accent-secondary);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
    border: 1px solid var(--accent-primary);
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #b0b3c1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-dim);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--gradient-hero);
    color: white;
    box-shadow: var(--shadow-neon);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(112, 0, 255, 0.5);
}

.hero-image {
    position: absolute;
    right: -10%;
    top: 50%;
    transform: translateY(-50%) rotate(-5deg);
    width: 65%;
    height: 120%;
    background-size: cover;
    background-position: center;
    border-radius: 60px;
    opacity: 0.6;
    filter: brightness(0.8) contrast(1.2);
    box-shadow: -20px 0 50px rgba(0,0,0,0.5);
    transition: all 1s ease;
    z-index: 1;
}

@media (max-width: 768px) {
    .hero-image {
        position: relative;
        right: 0;
        top: 0;
        transform: none;
        width: 100%;
        height: 350px;
        margin-top: 2rem;
        border-radius: 30px;
        opacity: 1;
    }
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--bg-dark) 0%, transparent 50%);
}

/* Game Grid */
/* Categories Section */
.categories-section {
    padding: 3rem 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(112, 0, 255, 0.05) 50%, rgba(0,0,0,0) 100%);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.category-card {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    font-weight: 600;
}

.category-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
    background: rgba(112, 0, 255, 0.1);
    box-shadow: 0 10px 30px rgba(112, 0, 255, 0.2);
}

.cat-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.2));
}

@media (max-width: 768px) {
    .category-grid {
        display: flex;
        overflow-x: auto;
        padding-bottom: 1rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    .category-card {
        min-width: 130px;
        scroll-snap-align: start;
    }
}

.game-section {
    padding: 4rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 1.8rem;
    }
}

.filter-tabs {
    display: flex;
    gap: 1rem;
    background: var(--bg-surface);
    padding: 0.5rem;
    border-radius: 15px;
}

.tab {
    padding: 0.6rem 1.5rem;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: var(--text-dim);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.tab.active {
    background: var(--accent-primary);
    color: white;
}

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

@media (max-width: 1200px) {
    .game-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 600px) {
    .game-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.8rem;
    }
}

.game-card {
    background: var(--bg-surface);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--glass-border);
    position: relative;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-secondary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-img {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.favorite-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    z-index: 5;
    transition: all 0.3s;
    font-size: 1.2rem;
    color: white;
}

.favorite-btn.active {
    color: #ff4757;
    background: white;
}

.favorite-btn:hover {
    transform: scale(1.1);
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-secondary);
    color: var(--bg-dark);
    padding: 0.2rem 0.8rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
}

.top-rated-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: linear-gradient(90deg, #ff8a00, #e52e71);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(229, 46, 113, 0.4);
    z-index: 5;
    animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.card-info {
    padding: 1.5rem;
}

.card-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.user-rated {
    color: #ffcc00;
    font-weight: 800;
    text-shadow: 0 0 5px rgba(255, 204, 0, 0.3);
}

/* Ad Containers */
.ad-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

.ad-placeholder {
    width: 100%;
    max-width: 970px;
    height: 90px;
    background: var(--bg-surface);
    border: 1px dashed var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 0.8rem;
    border-radius: 10px;
}

/* Footer */
footer {
    background: var(--bg-surface);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

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

.footer-brand .logo {
    margin-bottom: 1.5rem;
}

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

.footer-links h4 {
    margin-bottom: 1.5rem;
    color: white;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: var(--accent-secondary);
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--accent-secondary);
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

/* Modal for Game Player */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0,0,0,0.9);
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.modal-content {
    background: var(--bg-dark);
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 30px;
    height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--glass-border);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    z-index: 10;
}

.game-player-container {
    flex: 1;
    background: #000;
}

#gameIframe {
    width: 100%;
    height: 100%;
}

.game-info {
    padding: 2rem;
    background: var(--bg-surface);
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.star-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 0.5rem;
}

.star {
    font-size: 1.5rem;
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.2s;
}

.star:hover, .star.hover, .star.active {
    color: #ffcc00;
    transform: scale(1.2);
    text-shadow: 0 0 10px rgba(255, 204, 0, 0.4);
}

#ratingValue {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-left: 0.5rem;
}

/* Auth Styling */
.auth-container {
    max-width: 450px !important;
    height: auto !important;
    padding: 3rem;
}

.auth-box h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.auth-box p {
    color: var(--text-dim);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.input-group input {
    width: 100%;
    background: var(--bg-dark);
    border: 1px solid var(--glass-border);
    padding: 1rem;
    border-radius: 12px;
    color: white;
    outline: none;
    transition: border-color 0.3s;
}

.input-group input:focus {
    border-color: var(--accent-primary);
}

.btn-block {
    width: 100%;
    margin-bottom: 1rem;
}

.auth-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: var(--glass-border);
    z-index: 1;
}

.auth-divider span {
    background: var(--bg-dark);
    padding: 0 1rem;
    position: relative;
    z-index: 2;
    color: var(--text-dim);
    font-size: 0.8rem;
}

#googleSignIn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    background: white;
    color: #333;
}

.auth-toggle {
    margin-top: 2rem;
    font-size: 0.9rem;
}

.auth-toggle a {
    color: var(--accent-secondary);
    text-decoration: none;
    font-weight: 700;
}

/* Newsletter Section */
.newsletter-section {
    padding: 6rem 0;
}

.newsletter-card {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
    background: linear-gradient(135deg, rgba(22, 24, 51, 0.9) 0%, rgba(112, 0, 255, 0.1) 100%);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.newsletter-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.newsletter-info p {
    color: var(--text-dim);
    font-size: 1.1rem;
    max-width: 500px;
}

.newsletter-form {
    flex: 1;
    max-width: 600px;
}

.form-inputs {
    display: flex;
    gap: 1rem;
}

.form-inputs input {
    flex: 1;
    background: var(--bg-dark);
    border: 1px solid var(--glass-border);
    padding: 1.2rem;
    border-radius: 12px;
    color: white;
    outline: none;
    transition: all 0.3s;
}

.form-inputs input:focus {
    border-color: var(--accent-secondary);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

.powered-by {
    font-size: 0.7rem;
    color: var(--text-dim);
    text-align: right;
    margin-top: 0.8rem;
    opacity: 0.6;
}

@media (max-width: 992px) {
    .newsletter-card {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding: 3rem 2rem;
    }
    .form-inputs {
        flex-direction: column;
    }
    .powered-by {
        text-align: center;
    }
}

/* Checkbox Styling */
.checkbox-group {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 1rem;
    margin-top: 1rem;
}

.checkbox-group input {
    width: auto !important;
    margin-top: 0.3rem;
    cursor: pointer;
}

.checkbox-group label {
    font-size: 0.85rem !important;
    line-height: 1.4;
    cursor: pointer;
}

.close-auth {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dim);
}

/* Loader */
.loader {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem;
    font-size: 1.5rem;
    color: var(--accent-secondary);
}

@media (max-width: 1024px) {
    .hero h1 { font-size: 3.5rem; }
    .hero-image { width: 50%; right: -5%; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .mobile-menu-toggle { display: flex; }
    
    nav#mainNav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px; /* Fixed width for better look on all phones */
        max-width: 85%; /* Don't cover everything on tiny phones */
        height: 100vh;
        background: var(--bg-surface);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 2000; /* Higher than header */
        padding: 6rem 2rem 4rem; /* More top padding for the fixed toggle area */
        box-shadow: -20px 0 50px rgba(0,0,0,0.8);
        border-left: 1px solid var(--accent-primary);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
    }

    nav#mainNav.active {
        right: 0;
    }

    .mobile-nav-header {
        width: 100%;
        padding-bottom: 2rem;
        border-bottom: 1px solid var(--glass-border);
        display: flex; /* Show only on mobile */
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .mobile-nav-header::before {
        content: 'ACCOUNT STATUS';
        font-size: 0.7rem;
        font-weight: 800;
        color: var(--text-dim);
        letter-spacing: 2px;
    }

    .mobile-nav-footer {
        width: 100%;
        padding-top: 2rem;
        border-top: 1px solid var(--glass-border);
        display: flex; /* Show only on mobile */
        justify-content: center;
    }

    nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        flex: 1;
        justify-content: center;
    }

    nav ul li a {
        font-size: 1.8rem;
        font-weight: 700;
        color: white;
        text-decoration: none;
    }

    /* Style for injected user info in mobile menu */
    .user-info-mobile {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .user-name-mobile {
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--accent-secondary);
    }

    .header-actions {
        display: none !important;
    }

    .search-bar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-surface);
        padding: 1rem;
        border-radius: 0;
        display: none;
        border-top: 1px solid var(--glass-border);
    }

    .search-bar.mobile-active {
        display: flex;
    }
}

@media (max-width: 768px) {
    .container { padding: 0 1rem; }
    
    .section-header { 
        flex-direction: column; 
        align-items: flex-start; 
        gap: 1.5rem; 
        margin-bottom: 2rem;
    }

    .hero h1 {
        font-size: 2.8rem;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .image-overlay {
        background: linear-gradient(0deg, var(--bg-dark) 0%, transparent 100%);
    }

    .card-img {
        height: 140px;
    }

    .card-info {
        padding: 0.8rem;
    }

    .card-info h3 {
        font-size: 0.95rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .card-meta {
        font-size: 0.7rem;
        flex-direction: column;
        gap: 0.3rem;
        align-items: flex-start;
    }

    .card-meta span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .footer-brand, .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .modal {
        padding: 0;
    }

    .modal-content {
        height: 100vh;
        width: 100%;
        border-radius: 0;
        max-width: none;
    }

    .game-info {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .modal-ad-placeholder {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .logo-text { font-size: 1.1rem; }
    .logo-icon { font-size: 1.3rem; }
    .btn { width: 100%; padding: 0.8rem 1.2rem; }
    .hero-actions { display: flex; flex-direction: column; gap: 0.8rem; }
    .container { padding: 0 0.8rem; }
    .game-grid { gap: 0.6rem; }
    .filter-tabs {
        overflow-x: auto;
        width: 100%;
        padding-bottom: 5px;
    }
    .tab {
        white-space: nowrap;
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}
