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

body {
    background: #87CEEB;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
    overflow: hidden;
    touch-action: none;
}

#game-title {
    color: #4a90d9;
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 15px;
    text-shadow:
        3px 3px 0 #2c5f8f,
        -1px -1px 0 #ffffff,
        0 4px 8px rgba(0, 0, 0, 0.4);
    font-family: 'Arial Black', Arial, sans-serif;
    letter-spacing: 3px;
    -webkit-text-stroke: 1px #1a3a5c;
}

#game-container {
    position: relative;
    background: #87CEEB;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

#game-canvas {
    display: block;
    background-color: #87CEEB;
    border-radius: 8px;
}

#ui {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
}

#bird-count {
    background: linear-gradient(180deg, rgba(74, 144, 217, 0.9), rgba(44, 95, 143, 0.9));
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 16px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.ui-btn {
    pointer-events: auto;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

#restart-btn {
    background: linear-gradient(180deg, #e74c3c, #c0392b);
}

#restart-btn:hover {
    background: linear-gradient(180deg, #ff6b5b, #e74c3c);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

#restart-btn:active {
    transform: scale(0.95) translateY(0);
}

#mute-btn {
    background: linear-gradient(180deg, rgba(74, 144, 217, 0.9), rgba(44, 95, 143, 0.9));
    padding: 10px 15px;
    margin-left: 10px;
}

#mute-btn:hover {
    background: linear-gradient(180deg, rgba(94, 164, 237, 0.9), rgba(64, 115, 163, 0.9));
}

#mute-btn.muted {
    background: linear-gradient(180deg, rgba(150, 150, 150, 0.9), rgba(100, 100, 100, 0.9));
}

#message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 40px 80px;
    border-radius: 20px;
    font-size: 42px;
    font-weight: bold;
    text-align: center;
    border: 4px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: popIn 0.3s ease-out;
}

@keyframes popIn {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

#message.hidden {
    display: none;
}

#message.win {
    background: linear-gradient(180deg, rgba(46, 204, 113, 0.95), rgba(39, 174, 96, 0.95));
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

#message.lose {
    background: linear-gradient(180deg, rgba(231, 76, 60, 0.95), rgba(192, 57, 43, 0.95));
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

@media (max-width: 920px) {
    #game-container {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
    }

    #game-canvas {
        border-radius: 0;
    }
}
