/* assets/css/duckhunt.css */

.game-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: none; /* We'll hide the default cursor */
    overflow: hidden;
    user-select: none;
}

.game-overlay.active {
    display: flex;
}

#game-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.game-ui {
    position: absolute;
    top: 20px;
    width: 90%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10001;
    pointer-events: auto;
}

.score-board {
    font-size: 2rem;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.close-game-btn {
    background: #E93B81;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.close-game-btn:hover {
    background: #C729D8;
    transform: scale(1.05);
}

.game-instructions {
    position: absolute;
    bottom: 40px;
    color: #e0e0e0;
    font-size: 1.2rem;
    background: rgba(0, 0, 0, 0.4);
    padding: 8px 16px;
    border-radius: 30px;
    z-index: 10001;
    pointer-events: none;
}

/* Custom Crosshair Cursor */
.custom-cursor {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid white;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10002;
    transform: translate(-50%, -50%);
    display: none;
}

.custom-cursor::before,
.custom-cursor::after {
    content: '';
    position: absolute;
    background: white;
}

.custom-cursor::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    transform: translateY(-50%);
}

.custom-cursor::after {
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    transform: translateX(-50%);
}

.game-overlay.active .custom-cursor {
    display: block;
}

/* Ducks */
.duck {
    cursor: pointer;
}
