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

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

.game-container {
    text-align: center;
    position: relative;
}

.game-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #ff69b4;
    text-shadow: 0 0 10px rgba(255, 105, 180, 0.8),
                 0 0 20px rgba(255, 105, 180, 0.6),
                 0 0 30px rgba(255, 105, 180, 0.4);
    letter-spacing: 0.1em;
}

.game-info {
    display: flex;
    justify-content: space-between;
    width: 800px;
    margin: 0 auto 10px;
    font-size: 1.2em;
    font-weight: bold;
}

.score {
    color: #ffd700;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.8);
}

.lives {
    color: #ff6b6b;
    text-shadow: 0 0 5px rgba(255, 107, 107, 0.8);
}

#gameCanvas {
    border: 3px solid #ff69b4;
    border-radius: 10px;
    background: linear-gradient(180deg, #0a0015 0%, #1a0033 50%, #2a0048 100%);
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.5),
                inset 0 0 50px rgba(0, 0, 0, 0.5);
    cursor: crosshair;
}

.controls {
    margin-top: 15px;
    font-size: 0.9em;
    color: #ccc;
}

.game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    padding: 40px;
    border-radius: 15px;
    border: 3px solid #ff69b4;
    box-shadow: 0 0 30px rgba(255, 105, 180, 0.8);
    z-index: 1000;
}

.game-over.hidden {
    display: none;
}

.game-over h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #ff69b4;
}

.game-over p {
    font-size: 1.3em;
    margin-bottom: 20px;
    color: #ffd700;
}

#restartBtn {
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    border: none;
    color: white;
    padding: 15px 30px;
    font-size: 1.2em;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.4);
}

#restartBtn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.6);
}

#restartBtn:active {
    transform: scale(1.05);
}

