/* 像素气球爆破游戏样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #87CEEB 0%, #98FB98 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    touch-action: none;
}

.game-container {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    padding: 20px;
    max-width: 450px;
    width: 100%;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background: #2c3e50;
    border-radius: 8px;
    color: white;
    font-weight: bold;
}

.score, .timer, .combo {
    font-size: 16px;
    text-align: center;
}

.score {
    color: #f39c12;
}

.timer {
    color: #e74c3c;
}

.combo {
    color: #27ae60;
}

#gameCanvas {
    border: 3px solid #34495e;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
    background: linear-gradient(to bottom, #87CEEB 0%, #98FB98 70%, #90EE90 100%);
    cursor: pointer;
}

.game-controls {
    text-align: center;
    margin-top: 20px;
}

.btn-primary, .btn-secondary {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    margin: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.btn-primary:hover, .btn-secondary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.btn-secondary {
    background: #95a5a6;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.game-over {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    z-index: 1000;
}

.game-over h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #f39c12;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

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

/* 响应式设计 */
@media (max-width: 480px) {
    .game-container {
        padding: 15px;
    }
    
    #gameCanvas {
        width: 100%;
        height: auto;
    }
    
    .game-header {
        flex-direction: column;
        gap: 5px;
    }
    
    .score, .timer, .combo {
        font-size: 14px;
    }
}

/* 像素化效果 */
.pixel-text {
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

/* 触摸优化 */
@media (hover: none) {
    .btn-primary, .btn-secondary {
        min-height: 44px;
        min-width: 88px;
    }
}