
@import url('https://fonts.googleapis.com/css2?family=Bungee&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&display=swap');

:root {
    --fortnite-cyan: #00D9FF;
    --fortnite-purple: #9D4EDD;
    --fortnite-yellow: #FFD60A;
    --fortnite-green: #06FFA5;
    --fortnite-pink: #FF006E;
    --fortnite-blue: #0096FF;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Bungee', cursive;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

/* Fortnite-style UI elements */
.fortnite-panel {
    background: linear-gradient(145deg, rgba(0,151,254,0.8) 0%, rgba(157,78,221,0.8) 100%);
    border: 3px solid white;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3), 
                0 0 0 2px rgba(0,0,0,0.3),
                0 0 20px var(--fortnite-cyan);
    transform: rotate(-2deg);
    padding: 12px;
    position: relative;
    overflow: hidden;
}

.fortnite-panel::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: linear-gradient(45deg, 
        transparent 45%, 
        rgba(255,255,255,0.2) 50%, 
        transparent 55%);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.fortnite-score {
    font-size: 2.5rem;
    color: var(--fortnite-yellow);
    text-shadow: 3px 3px 0 #000, 
                -1px -1px 0 #000, 
                1px -1px 0 #000, 
                -1px 1px 0 #000, 
                1px 1px 0 #000;
    animation: bounce 0.5s;
}

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

.fortnite-badge {
    background: linear-gradient(to right, var(--fortnite-purple), var(--fortnite-pink));
    border-radius: 20px;
    padding: 4px 12px;
    border: 2px solid white;
    box-shadow: 0 4px 0 rgba(0,0,0,0.2);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.fortnite-button {
    background: linear-gradient(to right, var(--fortnite-blue), var(--fortnite-cyan));
    border: none;
    border-radius: 50px;
    color: white;
    padding: 12px 24px;
    font-family: 'Fredoka One', cursive;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 3px solid white;
    box-shadow: 0 6px 0 rgba(0,0,0,0.2),
                inset 0 4px 10px rgba(255,255,255,0.3);
    transition: all 0.2s;
    transform: rotate(-1deg);
    cursor: pointer;
}

.fortnite-button:hover {
    transform: scale(1.05) rotate(-1deg);
    box-shadow: 0 8px 0 rgba(0,0,0,0.2),
                inset 0 4px 15px rgba(255,255,255,0.4);
}

.fortnite-button:active {
    transform: translateY(4px) rotate(-1deg);
    box-shadow: 0 2px 0 rgba(0,0,0,0.2);
}
#game-container {
    perspective: 1000px;
}

.zombie {
    position: absolute;
    bottom: 0;
    transform-origin: center bottom;
    transition: transform 0.1s;
    will-change: transform;
}

.zombie-hit {
    animation: hitFlash 0.2s;
}

@keyframes hitFlash {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.5); }
}
.blood-splatter {
    position: absolute;
    background-image: radial-gradient(circle, 
        rgba(255,0,0,0.8) 0%, 
        rgba(255,0,150,0.6) 30%,
        rgba(255,100,0,0.4) 60%,
        transparent 80%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 80;
    animation: splatter 0.5s forwards;
    filter: drop-shadow(0 0 5px rgba(255,0,0,0.5));
}

.hit-number {
    position: absolute;
    font-family: 'Fredoka One', cursive;
    font-size: 1.8rem;
    color: var(--fortnite-yellow);
    text-shadow: 3px 3px 0 #000;
    animation: floatUp 1s forwards;
    z-index: 100;
    pointer-events: none;
}

.headshot-text {
    position: absolute;
    font-family: 'Fredoka One', cursive;
    font-size: 2.5rem;
    color: var(--fortnite-pink);
    text-shadow: 4px 4px 0 #000;
    animation: headshotPop 1s forwards;
    z-index: 100;
    pointer-events: none;
    text-transform: uppercase;
}

@keyframes floatUp {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(-100px) scale(1.5); opacity: 0; }
}

@keyframes headshotPop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.5); opacity: 1; }
    100% { transform: scale(1); opacity: 0; }
}
@keyframes splatter {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}
.muzzle-flash {
    position: absolute;
    background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(255,165,0,0.8) 50%, transparent 70%);
    pointer-events: none;
    z-index: 100;
}

.screen-shake {
    animation: shake 0.3s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}
.low-health {
    animation: dangerPulse 0.5s infinite alternate;
}

@keyframes dangerPulse {
    0% { 
        box-shadow: inset 0 0 50px rgba(255,0,0,0.5); 
        backdrop-filter: brightness(1.2) hue-rotate(-20deg);
    }
    100% { 
        box-shadow: inset 0 0 70px rgba(255,0,0,0.8); 
        backdrop-filter: brightness(1.5) hue-rotate(-40deg);
    }
}

.combo-counter {
    position: fixed;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Bungee', cursive;
    font-size: 3rem;
    color: white;
    text-shadow: 0 0 10px var(--fortnite-cyan),
                 0 0 20px var(--fortnite-purple),
                 0 0 30px var(--fortnite-pink);
    text-transform: uppercase;
    animation: comboPulse 0.5s infinite alternate;
    z-index: 99;
    background: linear-gradient(to right, 
        var(--fortnite-cyan), 
        var(--fortnite-purple),
        var(--fortnite-pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    border: 3px solid white;
    border-radius: 20px;
    padding: 0 20px;
    box-shadow: 0 0 30px rgba(157,78,221,0.5);
}

@keyframes comboPulse {
    0% { transform: translateX(-50%) scale(1); }
    100% { transform: translateX(-50%) scale(1.1); }
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--fortnite-yellow);
    opacity: 0.8;
    animation: confettiFall 2s linear forwards;
    z-index: 90;
}

@keyframes confettiFall {
    0% { transform: translateY(-100px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}
#image-upload {
    z-index: 1;
}
#crosshair {
    z-index: 90;
    filter: drop-shadow(0 0 5px var(--fortnite-cyan));
}

#crosshair div {
    background: white;
    box-shadow: 0 0 0 2px var(--fortnite-purple),
                0 0 10px var(--fortnite-cyan);
}

@keyframes crosshairPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.crosshair-hit {
    animation: crosshairPulse 0.3s, hitColor 0.5s;
}

@keyframes hitColor {
    0% { filter: drop-shadow(0 0 10px var(--fortnite-pink)); }
    100% { filter: drop-shadow(0 0 5px var(--fortnite-cyan)); }
}
#weapon {
    z-index: 95;
}

.recoil {
    animation: recoil 0.1s ease-out;
}

@keyframes recoil {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(10px) rotate(-5deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

.zombie-death {
    animation: deathAnim 0.5s forwards;
}

@keyframes deathAnim {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(100px) rotate(90deg); opacity: 0; }
}