* {
    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;
    padding: 20px;
    margin: 0;
}

.game-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 30px;
    max-width: 1000px;
    width: 100%;
}

.game-header {
    text-align: center;
    margin-bottom: 20px;
}

.game-header h1 {
    color: #764ba2;
    font-size: 2.5em;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.score-board {
    display: flex;
    justify-content: space-around;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px;
    border-radius: 10px;
    color: white;
}

.score-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.score-item .label {
    font-size: 0.9em;
    opacity: 0.9;
    margin-bottom: 5px;
}

.score-item span:last-child {
    font-size: 1.5em;
    font-weight: bold;
}

.screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.screen.hidden {
    display: none;
}

.start-content,
.game-over-content {
    text-align: center;
}

.start-content h2,
.game-over-content h2 {
    color: #764ba2;
    font-size: 2em;
    margin-bottom: 20px;
}

.start-content p,
.game-over-content p {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 15px;
}

.game-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.2em;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 20px;
    font-weight: bold;
}

.game-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.game-btn:active {
    transform: translateY(0);
}

#game-canvas {
    border: 3px solid #764ba2;
    border-radius: 10px;
    background: linear-gradient(to bottom, #87CEEB 0%, #E0F6FF 100%);
    display: block;
    margin: 0 auto;
    max-width: 100%;
    width: 100%;
    height: auto;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.control-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    font-size: 2em;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    user-select: none;
}

.control-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

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

@media (max-width: 600px) {
    .game-header h1 {
        font-size: 1.8em;
    }
    
    .score-board {
        flex-direction: column;
        gap: 10px;
    }
    
    #game-canvas {
        width: 100%;
        height: auto;
    }
}

