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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #e8e8e8;
}

.game-container {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.header {
    margin-bottom: 15px;
}

.header h1 {
    font-size: 2.5rem;
    color: #4ecca3;
    text-shadow: 0 0 10px rgba(78, 204, 163, 0.5);
    margin-bottom: 10px;
}

.score-board {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 1.2rem;
}

.score-board span {
    padding: 8px 16px;
    background: rgba(78, 204, 163, 0.2);
    border-radius: 8px;
    border: 1px solid #4ecca3;
}

#gameCanvas {
    border: 3px solid #4ecca3;
    border-radius: 10px;
    background: #0f0f23;
    box-shadow: 0 0 20px rgba(78, 204, 163, 0.3);
}

.controls {
    margin-top: 15px;
}

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

button {
    padding: 10px 30px;
    font-size: 1rem;
    font-weight: bold;
    color: #1a1a2e;
    background: #4ecca3;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

button:hover {
    background: #3db892;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(78, 204, 163, 0.5);
}

button:active {
    transform: scale(0.98);
}

.game-over {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(26, 26, 46, 0.95);
    padding: 40px 60px;
    border-radius: 20px;
    border: 2px solid #4ecca3;
    box-shadow: 0 0 40px rgba(78, 204, 163, 0.4);
    display: none;
    z-index: 10;
}

.game-over.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.game-over h2 {
    font-size: 2rem;
    color: #4ecca3;
    margin-bottom: 15px;
}

.game-over p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}
