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

body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a0a2e 50%, #2d1b4e 100%);
    color: #00ff41;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 900px;
    width: 100%;
    text-align: center;
}

header {
    margin-bottom: 20px;
    animation: glow 2s ease-in-out infinite alternate;
}

header h1 {
    font-size: 3rem;
    color: #00ff41;
    text-shadow: 0 0 10px #00ff41, 0 0 20px #00ff41, 0 0 30px #00ff41;
    margin-bottom: 10px;
    letter-spacing: 3px;
}

.tagline {
    font-size: 1.2rem;
    color: #ff00ff;
    text-shadow: 0 0 5px #ff00ff;
    font-weight: bold;
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px #00ff41, 0 0 20px #00ff41, 0 0 30px #00ff41;
    }
    to {
        text-shadow: 0 0 20px #00ff41, 0 0 30px #00ff41, 0 0 40px #00ff41, 0 0 50px #00ff41;
    }
}

.game-info {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 255, 65, 0.1);
    border: 2px solid #00ff41;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.label {
    font-size: 0.9rem;
    color: #888;
}

.value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #00ff41;
    text-shadow: 0 0 10px #00ff41;
}

#gameCanvas {
    display: block;
    margin: 0 auto 20px;
    border: 3px solid #00ff41;
    border-radius: 5px;
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.5);
    background: #0a0a1a;
}

.controls {
    margin: 20px 0;
}

.controls p {
    margin-bottom: 15px;
    font-size: 1rem;
    color: #888;
}

.btn {
    background: linear-gradient(135deg, #00ff41 0%, #00cc33 100%);
    color: #0a0a1a;
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    border-radius: 5px;
    margin: 0 10px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
}

.btn:hover {
    background: linear-gradient(135deg, #00cc33 0%, #00ff41 100%);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.8);
}

.btn:active {
    transform: translateY(0);
}

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

.modal-content {
    background: linear-gradient(135deg, #1a0a2e 0%, #2d1b4e 100%);
    padding: 40px;
    border-radius: 15px;
    border: 3px solid #ff0055;
    box-shadow: 0 0 50px rgba(255, 0, 85, 0.6);
    text-align: center;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content h2 {
    font-size: 3rem;
    color: #ff0055;
    text-shadow: 0 0 20px #ff0055;
    margin-bottom: 20px;
}

.modal-score {
    font-size: 1.8rem;
    color: #00ff41;
    margin: 20px 0;
}

.modal-message {
    font-size: 1.2rem;
    color: #888;
    margin-bottom: 30px;
}

footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 255, 65, 0.3);
}

footer p {
    color: #888;
    font-size: 0.9rem;
}

@media (max-width: 850px) {
    header h1 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1rem;
    }

    #gameCanvas {
        width: 100%;
        height: auto;
    }

    .game-info {
        gap: 10px;
    }

    .value {
        font-size: 1.4rem;
    }

    .btn {
        padding: 12px 30px;
        font-size: 1rem;
        margin: 5px;
    }
}
