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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.game-header {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 800px;
}

.game-header h1 {
    color: #667eea;
    margin-bottom: 10px;
}

.game-header p {
    color: #000;
    margin-bottom: 15px;
}

.back-btn {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s;
    margin-right: 10px;
}

.back-btn:hover {
    transform: scale(1.05);
}

.game-container {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    text-align: center;
}

canvas {
    border: 3px solid #667eea;
    border-radius: 10px;
    display: block;
    margin: 20px auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.score-board {
    font-size: 1.5em;
    color: #000;
    margin: 15px 0;
    font-weight: 600;
}

.controls {
    margin-top: 20px;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 10px;
}

.controls h3 {
    color: #667eea;
    margin-bottom: 10px;
}

.controls p {
    color: #000;
    margin: 5px 0;
}

button {
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin: 5px;
}

button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

button:active {
    transform: scale(0.98);
}

.game-over {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    display: none;
    z-index: 1000;
}

.game-over.show {
    display: block;
}

.game-over h2 {
    color: #667eea;
    font-size: 2.5em;
    margin-bottom: 20px;
}

.game-over p {
    font-size: 1.5em;
    color: #000;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    canvas {
        max-width: 100%;
        height: auto;
    }

    .game-container {
        padding: 15px;
    }
}