/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
}

.game-container {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 900px;
    width: 100%;
}

h1 {
    color: #4a5568;
    margin-bottom: 20px;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.game-info {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    background: #f7fafc;
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
}

.score, .lives {
    font-size: 1.2em;
    font-weight: bold;
    color: #2d3748;
}

.score span, .lives span {
    color: #3182ce;
    font-size: 1.3em;
}

#gameCanvas {
    border: 3px solid #4a5568;
    border-radius: 10px;
    background: #87ceeb;
    margin: 20px 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    z-index: 1000;
}

.game-over h2 {
    color: #e53e3e;
    margin-bottom: 20px;
    font-size: 2em;
}

.game-over p {
    margin-bottom: 25px;
    font-size: 1.2em;
    color: #4a5568;
}

#restartButton {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2em;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#restartButton:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

#restartButton:active {
    transform: translateY(0);
}

.controls {
    background: #f7fafc;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    border: 2px solid #e2e8f0;
}

.controls h3 {
    color: #4a5568;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.controls p {
    margin: 8px 0;
    color: #718096;
    font-size: 1em;
}

.hidden {
    display: none;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .game-container {
        padding: 20px;
        margin: 10px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    #gameCanvas {
        width: 100%;
        height: auto;
        max-width: 400px;
    }
    
    .game-info {
        flex-direction: column;
        gap: 10px;
    }
}
