/* Custom scrollbar to match the playful theme */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #ff58ed;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d848c8;
}

.logo-text {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -1px;
    text-shadow: 2px 2px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

.hero-bg {
    background-image: linear-gradient(135deg, rgba(255,105,180,0.8) 0%, rgba(255,235,59,0.8) 50%, rgba(100,240,150,0.8) 100%), url('../images/background-hero-mobile.webp');
    background-size: cover;
    background-position: center;
}

@media (min-width: 768px) {
    .hero-bg {
        background-image: linear-gradient(135deg, rgba(255,105,180,0.8) 0%, rgba(255,235,59,0.8) 50%, rgba(100,240,150,0.8) 100%), url('../images/background-hero.webp');
    }
}

.btn-cartoon:active {
    transform: translate(2px, 2px);
    box-shadow: 0px 0px 0px 0px rgba(0,0,0,1);
}

html {
    scroll-behavior: smooth;
}

.games-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.games-section-header-main {
    flex: 1 1 auto;
    min-width: 0;
}

.games-section-title {
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 700;
    color: rgb(31 41 55);
}

.games-section-subtitle {
    width: 100%;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.625;
    color: rgb(75 85 99);
    font-weight: 500;
}

.language-dropdown {
    position: relative;
    flex-shrink: 0;
}

.language-button {
    min-width: 56px;
    height: 42px;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
    font-size: 12px;
    font-weight: 700;
    color: #1f2937;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 14px;
    transition: all 0.2s ease;
}

.language-button:hover {
    border-color: #d1d5db;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.16);
}

.language-button i {
    font-size: 10px;
    color: #9ca3af;
    transition: transform 0.2s ease;
}

.language-dropdown.open .language-button i {
    transform: rotate(180deg);
}

.language-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 0px);
    min-width: 100%;
    width: max-content;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
    padding: 6px;
    z-index: 40;
}

.language-menu[hidden] {
    display: none;
}

.lang-option {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    border-radius: 10px;
    padding: 8px 10px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #374151;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.lang-option:hover {
    background: #f3f4f6;
    color: #111827;
}

@media (min-width: 768px) {
    .games-section-title {
        font-size: 1.75rem;
        line-height: 2rem;
    }

    .games-section-subtitle {
        font-size: 0.95rem;
    }
}

@media (max-width: 767px) {
    .site-main {
        z-index: 1;
        pointer-events: none;
    }

    .site-main > * {
        pointer-events: auto;
    }

    .mobile-site-header {
        z-index: 200;
        pointer-events: auto;
    }

    .mobile-site-menu:not(.hidden) {
        z-index: 150;
        pointer-events: auto;
    }
}
