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

body {
    font-family: Arial, sans-serif;
    background-color: #000;
    color: #fff;
    overflow: hidden;
    touch-action: none; /* 防止页面滚动 */
}

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

#game-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0a0a2a;
}

/* 开始游戏界面 */
#start-screen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

#start-screen h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #ff6b6b;
}

#start-screen p {
    font-size: 18px;
    margin-bottom: 10px;
}

#start-btn {
    background-color: #4ecdc4;
    color: #fff;
    border: none;
    padding: 15px 30px;
    font-size: 20px;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s;
}

#start-btn:hover {
    background-color: #45b7aa;
}

/* 游戏结束界面 */
#game-over-screen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

#game-over-screen h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #ff6b6b;
}

#final-score {
    font-size: 24px;
    margin-bottom: 30px;
}

#restart-btn {
    background-color: #4ecdc4;
    color: #fff;
    border: none;
    padding: 15px 30px;
    font-size: 20px;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#restart-btn:hover {
    background-color: #45b7aa;
}

/* 游戏状态显示 */
.game-status {
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    font-size: 18px;
    font-weight: bold;
    z-index: 5;
}

.score, .lives {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 5px 15px;
    border-radius: 20px;
}