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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: white;
}

.game-container {
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.game-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: bold;
}

.score, .lives {
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

#gameCanvas {
    border: 3px solid #fff;
    border-radius: 10px;
    background: #000;
    display: block;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.game-instructions {
    margin-top: 15px;
    font-size: 16px;
    opacity: 0.8;
}

.game-instructions p {
    margin: 5px 0;
}

.game-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    background: rgba(0, 0, 0, 0.7);
    padding: 30px 60px;
    border-radius: 15px;
    z-index: 100;
}

.game-message.win {
    color: #4CAF50;
}

.game-message.lose {
    color: #f44336;
}

.hidden {
    display: none !important;
}

/* 響應式設計 */
@media (max-width: 900px) {
    #gameCanvas {
        width: 90vw;
        height: auto;
    }
    
    .game-header {
        font-size: 20px;
    }
    
    .game-message {
        font-size: 36px;
        padding: 20px 40px;
    }
}
