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

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

.container {
    display: flex;
    gap: 30px;
    align-items: center;
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

canvas {
    border: 3px solid #333;
    background: linear-gradient(to bottom, #87CEEB 0%, #E0F6FF 100%);
    border-radius: 10px;
    display: block;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.info-panel {
    width: 200px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.score-display {
    background: #f0f0f0;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid #ddd;
}

.score-display p {
    font-size: 18px;
    margin: 10px 0;
    color: #333;
}

.score-display span {
    font-weight: bold;
    color: #667eea;
    font-size: 24px;
}

.start-screen {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.start-screen h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.start-screen p {
    font-size: 14px;
    opacity: 0.9;
}

.game-over {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.game-over h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.game-over p {
    font-size: 16px;
    margin: 10px 0;
}

#finalScore {
    font-weight: bold;
    font-size: 24px;
}

#restartBtn {
    padding: 12px 24px;
    font-size: 16px;
    background: white;
    color: #f5576c;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

#restartBtn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.hidden {
    display: none;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        padding: 20px;
    }

    canvas {
        width: 100%;
        height: auto;
    }

    .info-panel {
        width: 100%;
    }
}
