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

body {
    font-family: 'Orbitron', monospace;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
    color: white;
    overflow: hidden;
    height: 100vh;
}

#startScreen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
    background: radial-gradient(circle at center, rgba(248, 201, 39, 0.1) 0%, transparent 70%);
}

.title-container {
    margin-bottom: 40px;
}

.title-container h1 {
    font-size: 4em;
    font-weight: 900;
    color: #f8c927;
    text-shadow:
            0 0 10px #f8c927,
            0 0 20px #f8c927,
            0 0 30px #ff6b00,
            2px 2px 10px rgba(0,0,0,0.8);
    margin-bottom: 10px;
    animation: glow 2s ease-in-out infinite alternate;
}

.title-container h2 {
    font-size: 2.5em;
    font-weight: 700;
    color: #ff6b00;
    text-shadow:
            0 0 5px #ff6b00,
            0 0 10px #ff6b00,
            2px 2px 5px rgba(0,0,0,0.8);
    letter-spacing: 8px;
}

@keyframes glow {
    from { text-shadow: 0 0 10px #f8c927, 0 0 20px #f8c927, 0 0 30px #ff6b00, 2px 2px 10px rgba(0,0,0,0.8); }
    to { text-shadow: 0 0 20px #f8c927, 0 0 30px #f8c927, 0 0 40px #ff6b00, 2px 2px 10px rgba(0,0,0,0.8); }
}

.game-info {
    margin-bottom: 40px;
    opacity: 0.8;
}

.game-info p {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: #ccc;
}

.play-button {
    position: relative;
    font-family: 'Orbitron', monospace;
    font-size: 1.8em;
    font-weight: 700;
    padding: 20px 50px;
    background: linear-gradient(45deg, #f83600, #ff6b00);
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow:
            0 5px 15px rgba(248, 54, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.play-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.play-button:hover {
    transform: translateY(-3px);
    box-shadow:
            0 8px 25px rgba(248, 54, 0, 0.6),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.play-button:hover::before {
    left: 100%;
}

.play-button:active {
    transform: translateY(-1px);
}

canvas {
    display: block;
    background: linear-gradient(to bottom, #87CEEB 0%, #98D8E8 50%, #B0E0E6 100%);
    cursor: crosshair;
}

#gameUI {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.hud {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), rgba(0,0,0,0.4));
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(248, 201, 39, 0.3);
    flex-wrap: wrap;
    gap: 15px;
}

.level-info, .score-info {
    font-size: 1.2em;
    font-weight: 700;
    color: #f8c927;
    text-shadow: 0 0 5px rgba(248, 201, 39, 0.5);
}

#alliesDisplay {
    font-size: 1em;
    color: #ccc;
    margin-top: 5px;
}

#alliesList {
    color: #f8c927;
    font-weight: bold;
}

.power-meter {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #fff;
}

.power-bar {
    width: 150px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(248, 201, 39, 0.5);
}

.power-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00ff00, #ffff00, #ff6600, #ff0000);
    border-radius: 8px;
    transition: width 0.1s ease;
}

.controls {
    display: flex;
    gap: 10px;
}

.controls button {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.controls button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(248, 201, 39, 0.8);
}

.stars-display {
    font-size: 2em;
    color: #FFD700;
    margin: 20px 0;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

#resetButton {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

#resetButton:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(248, 201, 39, 0.8);
    color: #f8c927;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    border: 2px solid rgba(248, 201, 39, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal-content h2 {
    font-size: 2.5em;
    color: #f8c927;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(248, 201, 39, 0.5);
}

.modal-content p {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: #ccc;
}

.modal-content button {
    font-family: 'Orbitron', monospace;
    font-size: 1.3em;
    font-weight: 700;
    padding: 15px 30px;
    background: linear-gradient(45deg, #f83600, #ff6b00);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.modal-content button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(248, 54, 0, 0.4);
}

/* Power-up indicators */
.powerup-active {
    position: fixed;
    left: 10px;
    top: 150px;
    background: rgba(0, 0, 0, 0.8);
    color: #f8c927;
    padding: 10px;
    border-radius: 5px;
    font-family: 'Orbitron', monospace;
    font-size: 14px;
    border: 2px solid rgba(248, 201, 39, 0.5);
}

/* Efeitos de partículas */
.particle {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
}

/* Responsividade */
@media (max-width: 768px) {
    .title-container h1 {
        font-size: 2.5em;
    }

    .title-container h2 {
        font-size: 1.8em;
        letter-spacing: 4px;
    }

    .play-button {
        font-size: 1.4em;
        padding: 15px 35px;
    }

    .hud {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }

    .power-meter {
        order: -1;
    }

    .hud {
        justify-content: center;
    }

    .controls {
        order: 1;
        width: 100%;
        justify-content: center;
    }
}