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

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

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 0 10px;
}

.game-header h1 {
    color: #667eea;
    font-size: 28px;
    font-weight: bold;
}

.score {
    font-size: 18px;
    color: #333;
    font-weight: bold;
}

#gameCanvas {
    display: block;
    border: 3px solid #667eea;
    border-radius: 10px;
    background: #f0f8ff;
    width: 100%;
    max-width: 850px;
    height: 600px;
    cursor: crosshair;
}

.game-info {
    margin-top: 15px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

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

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

.game-over button {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s;
}

.game-over button:hover {
    background: #5568d3;
}

.hidden {
    display: none;
}
