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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%);
    color: #ffffff;
    overflow-x: hidden;
    position: relative;
}

/* Animação de fundo */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    animation: backgroundPulse 10s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes backgroundPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

.container {
    text-align: center;
    background: rgba(26, 26, 26, 0.8);
    padding: 60px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(255, 255, 255, 0.1),
                0 0 100px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    max-width: 900px;
    width: 90%;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-container {
    margin-bottom: 30px;
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.logo {
    max-width: 250px;
    filter: drop-shadow(0 10px 20px rgba(255, 255, 255, 0.2));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.title {
    font-size: 3em;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #ffffff 0%, #cccccc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 2s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    }
    50% {
        text-shadow: 0 0 40px rgba(255, 255, 255, 0.5);
    }
}

.subtitle {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #cccccc;
}

/* Contagem regressiva estilizada */
.countdown-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    padding: 20px 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 100px;
    animation: countdownPulse 2s ease-in-out infinite;
}

@keyframes countdownPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5),
                    inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 40px rgba(255, 255, 255, 0.2),
                    inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
}

.countdown-value {
    font-size: 3em;
    font-weight: bold;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    text-shadow: 0 0 20px rgba(0, 123, 255, 0.5);
}

.countdown-label {
    font-size: 0.9em;
    color: #aaaaaa;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.countdown-separator {
    font-size: 3em;
    color: #007bff;
    font-weight: bold;
    animation: separatorBlink 1s ease-in-out infinite;
}

@keyframes separatorBlink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

/* Seção do jogo */
.game-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.game-title {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: #ffffff;
}

.game-instructions {
    font-size: 1.1em;
    color: #aaaaaa;
    margin-bottom: 20px;
}

.score-display {
    font-size: 1.5em;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 20px;
}

#gameCanvas {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: block;
    margin: 20px auto;
    max-width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    cursor: crosshair;
}

.start-game-btn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.2em;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}

.start-game-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.6);
    background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
}

.start-game-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(0, 123, 255, 0.4);
}

/* Responsividade */
@media (max-width: 768px) {
    .container {
        padding: 40px 20px;
    }

    .title {
        font-size: 2em;
    }

    .subtitle {
        font-size: 1em;
    }

    .countdown-item {
        padding: 15px 20px;
        min-width: 80px;
    }

    .countdown-value {
        font-size: 2em;
    }

    .countdown-separator {
        font-size: 2em;
    }

    .game-title {
        font-size: 1.4em;
    }

    .logo {
        max-width: 180px;
    }
}

@media (max-width: 480px) {
    .countdown-container {
        gap: 10px;
    }

    .countdown-item {
        padding: 10px 15px;
        min-width: 70px;
    }

    .countdown-value {
        font-size: 1.5em;
    }

    .countdown-label {
        font-size: 0.7em;
    }

    .countdown-separator {
        font-size: 1.5em;
    }
}

