body {
    margin: 0;
    padding: 0;
    background-color: #000;
    color: #fff;
    font-family: 'Roboto', 'Arial', sans-serif;
    overflow: hidden;
}

.game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
}

.screen {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 10;
}

.hidden {
    display: none;
}

h1 {
    color: #ffe81f;
    font-size: 3rem;
    text-shadow: 0 0 10px #ffe81f;
    margin-bottom: 2rem;
}

button {
    background-color: #ffe81f;
    color: #000;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 20px;
    transition: all 0.3s;
}

button:hover {
    background-color: #fff;
    transform: scale(1.05);
}

canvas {
    border: 1px solid #333;
    background-color: #000;
    display: block;
}

.game-info {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 20px;
}

.score, .lives, .level {
    font-size: 1.5rem;
    color: #ffe81f;
    text-shadow: 0 0 5px #ffe81f;
}

/* 爆炸效果 */
.explosion {
    position: absolute;
    width: 50px;
    height: 50px;
    background-image: radial-gradient(circle, #ffe81f, #ff6600, #ff0000);
    border-radius: 50%;
    pointer-events: none;
    z-index: 5;
    animation: explode 0.5s forwards;
}

@keyframes explode {
    0% { transform: scale(0.1); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

/* 道具效果 */
.power-up {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: #00ff00;
    border-radius: 50%;
    animation: pulse 1s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 5px #00ff00; }
    100% { transform: scale(1.2); box-shadow: 0 0 15px #00ff00; }
}