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

body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #333333;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 1s ease-in-out;
    min-height: 100vh;
    position: relative;
    cursor: url('images/crosshair.svg') 32 32, crosshair;
}

.game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    perspective: 1000px;
}

.score {
    position: fixed;
    top: 20px;
    left: 20px;
    color: white;
    font-size: 24px;
    font-family: Arial, sans-serif;
    z-index: 1000;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.score.pulse {
    transform: scale(1.5);
    color: #ff6b6b;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

@keyframes numberPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.5); }
    100% { transform: scale(1); }
}

.cow {
    position: absolute;
    width: 120px;
    height: 120px;
    background-image: url('images/cow.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    cursor: url('images/crosshair.svg') 32 32, crosshair;
    transition: transform 0.1s linear;
    filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.15));
    z-index: 1000;
    will-change: transform;
}

.cow:hover {
    transform: scale(1.1);
}

@keyframes gentle-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.burger {
    position: absolute;
    width: 80px;
    height: 80px;
    background-image: url('images/burger.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
    z-index: 999;
    animation: flyToward 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    transform-origin: center;
    filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.3));
}

@keyframes flyToward {
    0% {
        transform: scale(0.1) translateZ(0) rotate(0deg);
        opacity: 0;
    }
    20% {
        transform: scale(1) translateZ(200px) rotate(180deg);
        opacity: 1;
    }
    100% {
        transform: scale(4) translateZ(1000px) rotate(720deg);
        opacity: 0;
    }
}

/* Flash effect when cow is hit */
.flash {
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, 
        rgba(255,255,0,0.8) 0%, 
        rgba(255,165,0,0.5) 50%, 
        transparent 100%
    );
    pointer-events: none;
    z-index: 1001;
    animation: flash 0.3s ease-out forwards;
    mix-blend-mode: screen;
}

@keyframes flash {
    0% {
        transform: scale(0.1);
        opacity: 1;
    }
    50% {
        transform: scale(2);
        opacity: 0.8;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

.bullet {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ffff00;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1000;
    filter: drop-shadow(0 0 5px #ff8800);
    animation: bulletTrail 0.2s linear;
}

@keyframes bulletTrail {
    from {
        transform: scale(1);
        opacity: 1;
    }
    to {
        transform: scale(0.5);
        opacity: 0;
    }
}

.hidden-video {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 2000;
    opacity: 0;
    transform: scale(0);
    transition: all 1s ease-in-out;
    pointer-events: none;
}

.hidden-video.visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: #ff0000;
    padding: 20px 40px;
    border-radius: 10px;
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    z-index: 2000;
    animation: pulseNotification 0.5s ease-in-out infinite alternate;
    text-shadow: 0 0 10px #ff0000;
    border: 2px solid #ff0000;
    pointer-events: none;
}

@keyframes pulseNotification {
    from {
        transform: translate(-50%, -50%) scale(1);
        text-shadow: 0 0 10px #ff0000;
    }
    to {
        transform: translate(-50%, -50%) scale(1.1);
        text-shadow: 0 0 20px #ff0000, 0 0 30px #ff0000;
    }
}

.bullseye {
    position: fixed;
    right: 50px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 100px;
    height: 100px;
    cursor: pointer;
    transition: transform 0.5s ease-in-out;
    z-index: 1000;
}

.bullseye.visible {
    transform: translateY(-50%) scale(1);
}

.bullseye:hover {
    filter: brightness(1.2);
}

.bullseye-text {
    position: fixed;
    right: 20px;
    top: 35%;
    color: #ff4444;
    font-size: 24px;
    font-family: 'Arial Black', sans-serif;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5),
                 2px 2px 2px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-out;
    text-align: center;
    font-weight: bold;
    z-index: 9999;
}

.bullseye-text.visible {
    opacity: 1;
    transform: translateY(0);
}

.bullseye-text span {
    display: block;
    animation: textPulse 2s infinite;
}

@keyframes textPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.mass-explosion {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    background: rgba(255, 100, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.mass-explosion.visible {
    opacity: 1;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.screen-shake {
    animation: shake 0.1s linear infinite;
}

.a10-plane {
    position: fixed;
    top: 50%;
    right: -800px;
    transform: translateY(-50%);
    width: 600px;
    height: auto;
    z-index: 9999;
    pointer-events: none;
    animation: flyAcross 3s linear;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

@keyframes flyAcross {
    from {
        right: -800px;
    }
    to {
        right: 100%;
    }
}

#score {
    position: fixed;
    top: 20px;
    left: 20px;
    font-size: 24px;
    font-family: 'Arial Black', sans-serif;
    z-index: 1000;
}

#scoreLabel {
    color: #39FF14; /* Neon green */
    text-shadow: 0 0 5px #39FF14, 0 0 10px #39FF14; /* Neon glow effect */
}

#scoreValue {
    color: #ff4444; /* Red */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    display: inline-block;
    margin-left: 10px;
    transition: transform 0.3s ease;
    font-size: 32px; /* Made base size bigger */
}

#scoreValue.pulse {
    animation: scorePulse 0.3s ease-out;
    color: #ff0000;
    text-shadow: 0 0 15px #ff4444;
}

@keyframes scorePulse {
    0% { transform: scale(1); }
    50% { transform: scale(2.5); } /* Much bigger pulse */
    100% { transform: scale(1); }
}

.smoke-particle {
    position: fixed;
    pointer-events: none;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(150,150,150,0) 70%);
    border-radius: 50%;
    z-index: 9998;
    animation: smokeAnim 1.5s forwards;
}

@keyframes smokeAnim {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 0.8;
    }
    100% {
        transform: scale(4) translate(var(--dx), var(--dy));
        opacity: 0;
    }
}

.firing .smoke-particle {
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, rgba(255,100,100,0.9) 0%, rgba(150,50,50,0) 70%);
    animation-duration: 0.8s;
}

.beefocalypse-button {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 120px;
    height: 120px;
    background: #111;
    border: 3px solid #ffff00;
    border-radius: 20px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.5s ease;
    z-index: 10000;
    padding: 10px;
    box-shadow: 0 0 20px rgba(255, 255, 0, 0.5);
}

.beefocalypse-button.visible {
    opacity: 1;
    animation: buttonPulse 2s infinite;
}

@keyframes buttonPulse {
    0% { transform: translateY(-50%) scale(1); box-shadow: 0 0 20px rgba(255, 255, 0, 0.5); }
    50% { transform: translateY(-50%) scale(1.1); box-shadow: 0 0 40px rgba(255, 255, 0, 0.8); }
    100% { transform: translateY(-50%) scale(1); box-shadow: 0 0 20px rgba(255, 255, 0, 0.5); }
}

.beefocalypse-button:hover {
    transform: translateY(-50%) scale(1.2);
    box-shadow: 0 0 40px rgba(255, 255, 0, 1);
    border-color: #ffffff;
}

.beefocalypse-button img {
    filter: drop-shadow(0 0 5px rgba(255, 255, 0, 0.8));
}

.countdown {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 200px;
    font-family: 'Arial Black', sans-serif;
    color: #ff0000;
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
    z-index: 10001;
    opacity: 0;
    transition: all 0.5s ease;
}

.countdown.visible {
    opacity: 1;
    animation: countdownPulse 0.5s infinite;
}

@keyframes countdownPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
}

.nuclear-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    transition: all 1s ease;
    pointer-events: none;
}

.nuclear-flash {
    background: white;
    opacity: 1 !important;
    transition: none;
}

.nuclear-yellow {
    background: #ffff00;
    opacity: 0.9 !important;
}

.nuclear-orange {
    background: #ff8800;
    opacity: 0.9 !important;
}

.nuclear-red {
    background: #ff0000;
    opacity: 0.9 !important;
}

.extreme-shake {
    animation: extremeShake 0.1s infinite;
}

@keyframes extremeShake {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-10px, -10px) rotate(-2deg); }
    50% { transform: translate(10px, 10px) rotate(2deg); }
    75% { transform: translate(-10px, 10px) rotate(-2deg); }
}

.beef-finale {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 2s ease;
    z-index: 10002;
}

.beef-finale.visible {
    opacity: 1;
}

.beef-finale img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

/* Intro Screen */
.intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.intro-content {
    background: #222;
    padding: 30px;
    border-radius: 15px;
    max-width: 800px;
    width: 90%;
    color: white;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.play-button {
    text-align: center;
    margin-bottom: 30px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.play-button:hover {
    transform: scale(1.05);
}

.play-button img {
    width: 150px;
    height: 150px;
    margin-bottom: 15px;
}

.play-button div {
    font-size: 20px;
    font-family: 'Arial Black', sans-serif;
    color: #ff4444;
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.4;
}

.disclaimer {
    font-size: 16px;
    line-height: 1.6;
    text-align: left;
}

.disclaimer p {
    margin-bottom: 15px;
}

.disclaimer a {
    text-decoration: none;
    font-size: 24px;
}

.disclaimer a:hover {
    transform: scale(1.2);
    display: inline-block;
}

/* Game Screen */
.game-screen {
    width: 100%;
    height: 100%;
}
