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

body {
    font-family: 'Arial', sans-serif;
    background-color: #000;
    color: #fff;
    overflow: hidden;
    user-select: none;
}

#game-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* 游戏状态显示区域 */
#game-stats {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 10;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-label {
    font-size: 18px;
    color: #ccc;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #0f0;
}

/* 游戏画布 */
#game-canvas {
    flex: 1;
    background-color: #222;
    cursor: none;
}

/* 游戏控制区域 */
#game-controls {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.control-group {
    display: flex;
    gap: 50px;
    align-items: center;
}

/* 动作控制区域 - 容纳多个按钮 */
#action-controls {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* 移动控制按钮 */
#move-controls {
    display: inline-block;
}

.control-btn {
    width: 70px;
    height: 70px;
    background-color: #333;
    border: 3px solid #555;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.1s ease;
    touch-action: manipulation;
}

.control-btn:active, .control-btn.active {
    background-color: #0f0;
    transform: scale(0.95);
}

.control-row {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* 发射按钮 */
.fire-btn {
    background-color: #f00;
    border-color: #ff6666;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    font-size: 20px;
}

.fire-btn:active, .fire-btn.active {
    background-color: #ff6666;
}

/* 暂停按钮 */
.pause-btn {
    background-color: #ffaa00;
    border-color: #ffcc66;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    font-size: 20px;
}

.pause-btn:active, .pause-btn.active {
    background-color: #ffcc66;
}

.pause-btn.paused {
    background-color: #00aaff;
    border-color: #66ccff;
}

/* 游戏界面 */
#start-screen, #game-over-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.screen-content {
    text-align: center;
    padding: 40px;
    background-color: rgba(20, 20, 20, 0.8);
    border-radius: 20px;
    border: 2px solid #0f0;
}

h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #0f0;
}

p {
    font-size: 18px;
    margin-bottom: 15px;
    color: #ccc;
}

.game-btn {
    background-color: #0f0;
    color: #000;
    border: none;
    padding: 15px 40px;
    font-size: 24px;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.2s ease;
}

.game-btn:hover {
    background-color: #00cc00;
    transform: scale(1.05);
}

.game-btn:active {
    transform: scale(0.95);
}

/* 隐藏元素 */
.hidden {
    display: none !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    #game-stats {
        padding: 5px;
    }
    
    .stat-label {
        font-size: 14px;
    }
    
    .stat-value {
        font-size: 18px;
    }
    
    .control-btn {
        width: 60px;
        height: 60px;
        font-size: 20px;
    }
    
    .fire-btn,
    .pause-btn {
        width: 80px;
        height: 80px;
        font-size: 18px;
    }
    
    .control-group {
        gap: 30px;
    }
    
    #action-controls {
        gap: 15px;
    }
    
    h1 {
        font-size: 36px;
    }
    
    p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .control-btn {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    .fire-btn,
    .pause-btn {
        width: 70px;
        height: 70px;
        font-size: 16px;
    }
    
    .control-group {
        gap: 20px;
    }
    
    #action-controls {
        gap: 10px;
    }
}`,"rewrite":false}}}