.hero-fifa {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Stadium spotlights */
    background: radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 50% 20%, rgba(0, 204, 255, 0.1) 0%, transparent 50%),
                linear-gradient(to bottom, #0a1f2f 0%, #030a10 100%);
    overflow: hidden;
    perspective: 1000px;
    cursor: crosshair; /* Game cursor */
    padding: 100px 20px;
    z-index: 1;
}



/* Screen Shake Effect */
.screen-shake {
    animation: shake 0.4s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

/* Arcade UI Overrides */
.header .nav-links a {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

/* Pitch styling */
.pitch {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 150vh;
    background: 
        repeating-linear-gradient(
            0deg,
            #228b22,
            #228b22 40px,
            #1e7a1e 40px,
            #1e7a1e 80px
        );
    transform-origin: bottom center;
    transform: perspective(1000px) rotateX(60deg);
    -webkit-mask-image: linear-gradient(to top, black 70%, transparent 100%);
    mask-image: linear-gradient(to top, black 70%, transparent 100%);
    z-index: 1;
}

.pitch-lines {
    position: absolute;
    top: 4%;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.6);
}

.penalty-box {
    position: absolute;
    top: 4%;
    left: 50%;
    transform: translateX(-50%);
    width: 90vw;
    height: 45vw;
    border: 4px solid rgba(255,255,255,0.6);
    border-top: none;
}

.penalty-box::after {
    content: '';
    position: absolute;
    bottom: -10vw;
    left: 50%;
    transform: translateX(-50%);
    width: 20vw;
    height: 20vw;
    border: 4px solid rgba(255,255,255,0.6);
    border-radius: 50%;
    clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0 100%);
}

.goal-area {
    position: absolute;
    top: 4%;
    left: 50%;
    transform: translateX(-50%);
    width: 45vw;
    height: 15vw;
    border: 4px solid rgba(255,255,255,0.6);
    border-top: none;
}

.penalty-spot {
    position: absolute;
    top: calc(4% + 32vw);
    left: 50%;
    transform: translateX(-50%);
    width: 1.2vw;
    height: 1.2vw;
    min-width: 8px;
    min-height: 8px;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
}

.goal-container {
    position: absolute;
    bottom: clamp(250px, 40vh, 400px);
    left: 50%;
    transform: translateX(-50%);
    width: clamp(260px, 40vw, 400px);
    height: clamp(100px, 15vw, 160px);
    border: clamp(3px, 0.5vw, 5px) solid white;
    border-bottom: none;
    z-index: 2;
    /* Net pattern */
    background: 
        linear-gradient(90deg, rgba(255,255,255,0.6) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,0.6) 1px, transparent 1px);
    background-size: 20px 20px;
}

.goalkeeper {
    position: absolute;
    bottom: calc(clamp(250px, 40vh, 400px) - 10px);
    left: 50%;
    margin-left: -20px; /* Replaces transform */
    width: 40px;
    height: 70px;
    background: transparent;
    z-index: 3;
}

.football {
    position: absolute;
    bottom: 16vh;
    left: 50%;
    margin-left: -20px;
    width: 40px;
    height: 40px;
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/d/d3/Soccerball.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    border-radius: 50%;
    box-shadow: 5px 15px 20px rgba(0,0,0,0.5);
    z-index: 10;
    cursor: grab;
}

.football:hover {
    transform: translateX(-50%) scale(1.1);
}

.scoreboard {
    position: absolute;
    top: 50%;
    right: max(20px, 5vw);
    transform: translateY(-50%) scale(0.9);
    transform-origin: right center;
    background: rgba(0,0,0,0.7);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 10px 20px;
    text-align: center;
    z-index: 20;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
}

.scoreboard h2 {
    color: #fff;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
}

.shootout-indicators {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.indicator.goal {
    background: #00ff88;
    border-color: #00ff88;
    box-shadow: 0 0 10px #00ff88;
}

.indicator.miss {
    background: #ff4757;
    border-color: #ff4757;
    box-shadow: 0 0 10px #ff4757;
}

.game-title {
    position: absolute;
    top: max(140px, 18vh);
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 20;
    color: #fff;
    pointer-events: none;
    width: 100%;
}

.game-title h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin: 0;
    font-weight: 800;
    letter-spacing: 2px;
    background: linear-gradient(180deg, #fff 0%, #00ccff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 5px 15px rgba(0, 204, 255, 0.5);
    font-family: 'Space Grotesk', sans-serif;
}

.marketing-text {
    position: absolute;
    top: 50%;
    left: max(20px, 5vw);
    transform: translateY(-50%);
    max-width: clamp(220px, 20vw, 300px);
    z-index: 20;
    text-align: left;
    background: rgba(5, 5, 5, 0.9);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.15), inset 0 0 20px rgba(0,0,0,0.8);
    border: 2px solid #222;
}

/* CRT Scanline effect */
.marketing-text::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.3) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 4px, 3px 100%;
    pointer-events: none;
}

.marketing-text::before {
    content: '\25CF  INSTANT REPLAY'; /* dot and text */
    display: block;
    background: #000; 
    color: #ff3333;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2px;
    padding: 8px 15px;
    text-transform: uppercase;
    border-bottom: 2px solid #1a1a1a;
    animation: replayBlink 2s infinite;
}

@keyframes replayBlink {
    0%, 49% { color: #ff3333; text-shadow: 0 0 10px rgba(255,51,51,0.5); }
    50%, 100% { color: #550000; text-shadow: none; }
}

.marketing-text h2 {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    font-family: 'Outfit', sans-serif;
    color: #ffffff;
    padding: 20px 15px;
    margin: 0;
    text-shadow: 0 0 8px rgba(255,255,255,0.4);
    position: relative;
}



.game-title h1 {
    font-size: 4rem;
    margin: 0;
    background: linear-gradient(135deg, #00ff88, #00ccff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Space Grotesk', sans-serif;
}

.game-title p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    margin-top: 10px;
    font-family: 'Outfit', sans-serif;
}

.game-message {
    position: absolute;
    top: calc(100% + 15px); /* attach below scoreboard */
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    background: #111;
    border: 2px solid #444;
    border-radius: 6px;
    padding: 8px 16px;
    white-space: nowrap;
    opacity: 0;
    z-index: 30;
    pointer-events: none;
    font-family: 'Space Grotesk', sans-serif;
    box-shadow: 0 0 15px rgba(0,0,0,0.8), inset 0 0 10px rgba(0,0,0,0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Power Meter Styling */
.power-meter-container {
    display: none !important;
    position: absolute;
    top: max(150px, 25vh);
    left: 50%;
    transform: translateX(-50%);
    width: clamp(200px, 40vw, 300px);
    z-index: 20;
    text-align: center;
    opacity: 0; 
    transition: opacity 0.3s;
}

.power-meter-label {
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.power-meter-bar {
    width: 200px;
    height: 12px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    overflow: hidden;
}

.power-meter-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #00ff88, #ffcc00, #ff4757);
    transition: width 0.1s linear;
}

/* Improved Goalkeeper (Proper Silhouette) */
.goalkeeper::before {
    /* Head */
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: #ffcc00;
    border-radius: 50%;
    box-shadow: inset -3px -3px rgba(0,0,0,0.2);
}

.goalkeeper::after {
    /* Body */
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 40px;
    background: #e63946; /* Jersey */
    border-radius: 8px 8px 0 0;
    box-shadow: inset -5px -5px rgba(0,0,0,0.2);
}

/* Legs/Arms */
.goalkeeper-limbs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.goalkeeper-limbs::before {
    /* Left Arm raised */
    content: '';
    position: absolute;
    top: 10px;
    left: -10px;
    width: 12px;
    height: 30px;
    background: #e63946;
    border-radius: 6px;
    transform: rotate(30deg);
}
.goalkeeper-limbs::after {
    /* Right Arm raised */
    content: '';
    position: absolute;
    top: 10px;
    right: -10px;
    width: 12px;
    height: 30px;
    background: #e63946;
    border-radius: 6px;
    transform: rotate(-30deg);
}



.trajectory-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 15; /* Above pitch, below UI */
    opacity: 1;
    transition: opacity 0.2s;
}


/* Mobile Responsiveness - Static View */
@media (max-width: 1024px) {
    .pitch,
    .goal-container,
    .goalkeeper,
    .football,
    .scoreboard,
    .power-meter-container,
    .trajectory-svg {
        display: none !important;
    }
    
    .game-title {
        top: 25% !important; 
    }
    
    .marketing-text {
        top: auto;
        bottom: 30%; 
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 400px;
        text-align: center;
        background: rgba(0,0,0,0.85);
        border: 1px solid #ff3333;
        display: block !important;
        z-index: 30;
    }
    
    .marketing-text h2 {
        font-size: 1rem;
        padding: 5px;
    }
    
    .game-message {
        display: none !important;
    }
}

