/* Custom Styles for Retro Arcade World */
:root {
    --arcade-blue: #2547f4;
    --arcade-dark: #101322;
}

body {
    margin: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #101322;
    color: #e2e8f0;
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.5;
}

img {
    max-width: 100%;
    height: auto;
}

input,
button,
textarea,
select {
    font: inherit;
}

/* Scanlines CRT Effect */
.scanlines {
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
    opacity: 0.07;
    background-image: repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.6) 2px,
            rgba(0, 0, 0, 0.6) 4px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--arcade-dark);
}

::-webkit-scrollbar-thumb {
    background: rgba(37, 71, 244, 0.2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(37, 71, 244, 0.4);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(37, 71, 244, 0.2) var(--arcade-dark);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Glow Effects */
.glow-blue {
    box-shadow: 0 0 20px rgba(37, 71, 244, 0.3);
}

.text-glow {
    text-shadow: 0 0 12px rgba(37, 71, 244, 0.8);
}

/* Hide scrollbar for gallery row */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Glassmorphism */
.glass {
    background: rgba(26, 29, 45, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(37, 71, 244, 0.15);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.glass-dark {
    background: rgba(16, 19, 34, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Active Nav Indicator */
.nav-indicator {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 2px;
    background: #2547f4;
    border-radius: 99px;
    box-shadow: 0 0 8px rgba(37, 71, 244, 0.8);
}

/* Line Clamp Utility */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Modal Transitions */
#game-modal {
    transition: opacity 0.3s ease-in-out;
}

#game-modal.opacity-0 {
    pointer-events: none;
}

/* ─── Language Flag Switcher ─── */
.lang-flag-btn {
    color: #64748b;
    /* slate-500: inactive */
    background: transparent;
    border: none;
    cursor: pointer;
}

.lang-flag-btn:hover {
    color: #e2e8f0;
}

.lang-flag-btn.active {
    background: #2547f4;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(37, 71, 244, 0.5);
}