* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

body {
    overflow: hidden;
    background-color: #000;
    font-family: 'Arial', sans-serif;
    position: fixed;
    width: 100%;
    height: 100%;
    --bg-opacity: 1;
    --eyes-opacity: 0;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('2.png');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
    z-index: 0;
    pointer-events: none;
    opacity: var(--bg-opacity);
    transition: opacity 0.1s linear;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('2.png');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
    z-index: 0;
    pointer-events: none;
    opacity: var(--eyes-opacity);
    transition: opacity 0.1s linear;
    filter: brightness(0.3) sepia(1) hue-rotate(-50deg) saturate(6) contrast(1.2);
    animation: redPulse 2s ease-in-out infinite alternate;
}

@keyframes redPulse {
    0% {
        filter: brightness(0.3) sepia(1) hue-rotate(-50deg) saturate(6) contrast(1.2);
    }
    100% {
        filter: brightness(0.5) sepia(1) hue-rotate(-50deg) saturate(7) contrast(1.4);
    }
}

#gameCanvas {
    display: block;
    background-color: transparent;
    position: relative;
    z-index: 1;
}

.controls {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 90%;
}

.btn {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    touch-action: manipulation;
    min-width: 120px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.4);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn:disabled:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.timer {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    font-size: 32px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 10px rgba(102, 126, 234, 0.8),
                 0 0 20px rgba(102, 126, 234, 0.6),
                 0 0 30px rgba(102, 126, 234, 0.4);
    letter-spacing: 2px;
    background: rgba(0, 0, 0, 0.5);
    padding: 15px 40px;
    border-radius: 10px;
    border: 2px solid rgba(102, 126, 234, 0.5);
}

.game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    text-align: center;
    background: rgba(0, 0, 0, 0.95);
    padding: 60px 80px;
    border-radius: 20px;
    border: 3px solid rgba(255, 50, 50, 0.8);
    box-shadow: 0 0 30px rgba(255, 50, 50, 0.5),
                0 0 60px rgba(255, 50, 50, 0.3);
    display: none;
}

.game-over.show {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

.game-title {
    font-size: 80px;
    color: #4ECDC4;
    margin: 0 0 20px 0;
    font-weight: 900;
    letter-spacing: 6px;
    text-transform: uppercase;
    text-shadow: 
        4px 4px 0px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(78, 205, 196, 0.8),
        0 0 40px rgba(78, 205, 196, 0.6),
        0 0 60px rgba(78, 205, 196, 0.4);
    animation: bubblePop 0.8s ease-out;
    font-family: 'Arial Black', 'Arial', sans-serif;
    -webkit-text-stroke: 3px rgba(255, 255, 255, 0.3);
    paint-order: stroke fill;
}

.game-over h2 {
    font-size: 72px;
    color: #ff3232;
    margin: 0 0 30px 0;
    text-shadow: 0 0 20px rgba(255, 50, 50, 0.8),
                 0 0 40px rgba(255, 50, 50, 0.6);
    letter-spacing: 4px;
}

.game-over p {
    font-size: 36px;
    color: #fff;
    margin: 0;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

@keyframes bubblePop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    70% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
    .controls {
        top: 10px;
        gap: 10px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
        min-width: 100px;
    }
    
    .timer {
        bottom: 15px;
        font-size: 24px;
        padding: 10px 25px;
    }
    
    .game-over {
        padding: 40px 30px;
        max-width: 90%;
        box-sizing: border-box;
    }
    
    .game-title {
        font-size: 48px;
        letter-spacing: 3px;
        margin: 0 0 15px 0;
        -webkit-text-stroke: 2px rgba(255, 255, 255, 0.3);
    }
    
    .game-over h2 {
        font-size: 42px;
        margin: 0 0 20px 0;
        letter-spacing: 2px;
    }
    
    .game-over p {
        font-size: 24px;
    }
}

@media screen and (max-width: 480px) {
    .controls {
        top: 5px;
        gap: 8px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 12px;
        min-width: 80px;
        letter-spacing: 0.5px;
    }
    
    .timer {
        bottom: 10px;
        font-size: 20px;
        padding: 8px 20px;
    }
    
    .game-over {
        padding: 30px 20px;
    }
    
    .game-title {
        font-size: 36px;
        letter-spacing: 2px;
        margin: 0 0 10px 0;
        -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.3);
    }
    
    .game-over h2 {
        font-size: 32px;
        margin: 0 0 15px 0;
    }
    
    .game-over p {
        font-size: 20px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

