:root {
    --vermelho-neon: #ff0000;
    --vermelho-glow: 0 0 25px #ff0000;
    --preto: #000000;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--preto);
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
}

.screen {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    transition: opacity 0.5s ease;
}

.hidden {
    display: none !important;
}

/* === LOADING RESPONSIVO === */
.loading-text {
    font-size: clamp(1.2rem, 5vw, 1.8rem);
    letter-spacing: 6px;
    color: #fff;
    text-shadow: 2px 2px var(--vermelho-neon);
    animation: glitch 1s infinite;
    font-weight: 900;
    text-align: center;
}

.progress-bar {
    width: 85%;
    max-width: 400px;
    height: 10px;
    background: #0a0a0a;
    margin: 25px 0;
    border: 1px solid #333;
    position: relative;
    overflow: hidden;
}

#progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #600, var(--vermelho-neon), #600);
    box-shadow: var(--vermelho-glow);
    transition: width 0.15s ease-out;
}

#progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: shine 1.2s infinite;
}

/* === TELA START === */
.game-title {
    font-size: clamp(40px, 10vw, 90px);
    margin: 0;
    text-shadow: var(--vermelho-glow);
    text-align: center;
}

.game-subtitle {
    font-size: clamp(14px, 4vw, 18px);
    letter-spacing: 8px;
    color: #fff;
    opacity: 0.8;
    text-align: center;
}

.blink {
    animation: blinker 1.5s linear infinite;
}

/* === BOTÃO BACK === */
.nav-button {
    position: absolute;
    top: 25px;
    left: 30px;
    background: #000;
    border: 1px solid var(--vermelho-neon);
    color: var(--vermelho-neon);
    padding: 10px 25px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: 0.3s;
    z-index: 100;
}

.nav-button:hover {
    box-shadow: var(--vermelho-glow);
    filter: brightness(1.3);
}

/* === CARDS DE SELEÇÃO === */
.games-container {
    display: flex;
    gap: 30px;
    perspective: 1200px;
}

.game-card {
    width: 220px;
    height: 320px;
    background: #050505;
    border: 1px solid #222;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    opacity: 0.9;
}

.game-card:hover,
.game-card.active {
    border-color: var(--vermelho-neon);
    box-shadow: 0 0 40px rgba(255, 0, 0, 0.6);
    transform: scale(1.1) translateY(-20px) rotateX(10deg);
    z-index: 10;
    background: #0f0000;
    opacity: 1;
}

.card-preview {
    width: 100%;
    height: 150px;
    background: #111;
    margin-bottom: 15px;
    border: 1px solid #333;
    transition: 0.3s;
    background-size: cover;
    background-position: center;
}

/* Backgrounds dos Cards */
.game-card[data-game="classic"] .card-preview {
    background-image: url('./img/game1.png');
}

.game-card[data-game="venom"] .card-preview {
    background-image: url('./img/game2.png');
}

.game-card[data-game="air"] .card-preview {
    background-image: url('./img/game3.png');
}

.game-card[data-game="boss"] .card-preview {
    background-image: url('./img/game4.png');
}

.select-button {
    margin-top: 60px;
    background: var(--vermelho-neon);
    color: white;
    border: none;
    padding: 18px 90px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: var(--vermelho-glow);
    transition: 0.3s;
    font-size: 1.1rem;
}

/* ANIMATIONS */
@keyframes glitch {
    0% {
        transform: translate(0);
        text-shadow: 2px 2px #ff0000;
    }

    25% {
        transform: translate(-2px, 1px);
        text-shadow: -2px -2px #0ff;
    }

    50% {
        transform: translate(2px, -1px);
        text-shadow: 2px -2px #ff0000;
    }

    75% {
        transform: translate(-1px, -1px);
        text-shadow: -1px 2px #0ff;
    }

    100% {
        transform: translate(0);
    }
}

@keyframes shine {
    from {
        left: -100%;
    }

    to {
        left: 100%;
    }
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}

/* === RESPONSIVO === */
.mobile-arrow {
    display: none;
}

@media (max-width: 768px) {
    .nav-button {
        top: 15px;
        left: 15px;
        padding: 6px 15px;
        font-size: 12px;
    }

    .games-container {
        flex-direction: row;
        overflow-x: auto;
        scroll-behavior: smooth;
        width: 90%;
        padding: 40px 10px;
        perspective: none;
        scrollbar-width: none;
    }

    .game-card {
        min-width: 200px;
        height: 280px;
        flex-shrink: 0;
        transform: none !important;
    }

    .mobile-arrow {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 50%;
        width: 40px;
        height: 40px;
        background-color: rgba(60, 60, 60, 0.7);
        background-image: url('./img/arrow.png');
        background-size: 40%;
        background-repeat: no-repeat;
        background-position: center;
        border-radius: 50%;
        z-index: 1000;
        filter: invert(1) drop-shadow(0 0 5px var(--vermelho-neon));
    }

    .arrow-left {
        left: 5px;
        transform: translateY(-50%) scaleX(-1);
    }

    .arrow-right {
        right: 5px;
        transform: translateY(-50%);
    }

    .progress-bar {
        width: 80%;
    }

    .select-button {
        margin-top: 30px;
        padding: 15px 50px;
        width: 80%;
    }
}