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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #87CEEB 0%, #98D8C8 50%, #F7DC6F 100%);
    overflow: hidden;
    user-select: none;
    cursor: none;
}

.game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#gameCanvas {
    background: linear-gradient(to bottom, #87CEEB 0%, #98D8C8 50%, #8B7355 100%);
    border: 3px solid #654321;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    cursor: none;
}

.hud {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.6);
    padding: 15px;
    border-radius: 10px;
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.hud div {
    display: flex;
    gap: 5px;
}

.crosshair {
    position: absolute;
    width: 30px;
    height: 30px;
    pointer-events: none;
    z-index: 100;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    display: none;
}

.crosshair::before,
.crosshair::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
}

.crosshair::before {
    width: 2px;
    height: 20px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.crosshair::after {
    width: 20px;
    height: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

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

.menu h1 {
    font-size: 3em;
    margin-bottom: 20px;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.instructions {
    margin: 20px 0;
    line-height: 1.8;
    color: #ccc;
    font-size: 1.1em;
}

button {
    padding: 15px 40px;
    font-size: 1.2em;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    margin: 10px;
}

button:hover {
    background: #45a049;
    transform: scale(1.05);
}

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

.high-score {
    margin-top: 20px;
    color: #FFD700;
    font-size: 1.2em;
}

.game-over {
    display: none;
}

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

.final-score,
.final-ducks {
    margin: 15px 0;
    font-size: 1.3em;
    color: #FFD700;
}

.controls {
    position: absolute;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.mobile-controls {
    display: flex;
    gap: 10px;
}

.mobile-controls button {
    padding: 12px 24px;
    font-size: 1em;
    background: #2196F3;
}

.mobile-controls button:hover {
    background: #0b7dda;
}

@media (max-width: 768px) {
    .hud {
        font-size: 14px;
        padding: 10px;
    }
    
    .menu h1 {
        font-size: 2em;
    }
    
    .instructions {
        font-size: 0.9em;
    }
}
