:root {
    --accent: #10b981;
    --accent-glow: rgba(16, 185, 129, 0.5);
    --gold: #fbbf24;
    --bg-dark: #020617;
    --bg-stadium: radial-gradient(circle at 50% -20%, #1e293b 0%, #020617 80%);
}

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

body, html {
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    font-family: 'Outfit', sans-serif;
    color: #fff;
    overflow: hidden;
}

.cinematic-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    background: var(--bg-stadium);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Atmospheric Effects */
.mist {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(16, 185, 129, 0.05) 0%, transparent 40%);
    pointer-events: none;
    z-index: 2;
}

.floodlights {
    position: absolute;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    padding: 0 5%;
    z-index: 1;
}

.light {
    width: 10px;
    height: 10px;
    background: #fff;
    box-shadow: 0 0 100px 50px rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

/* UI Overlay */
.overlay-ui {
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 60px;
    z-index: 100;
}

.logo-area .brand-name {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 4px;
}

.logo-area .brand-name span {
    color: var(--accent);
    text-shadow: 0 0 20px var(--accent-glow);
}

.pulse-line {
    height: 2px;
    width: 100px;
    background: linear-gradient(90deg, var(--accent), transparent);
    margin-top: 5px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.6);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
    animation: pulse 2s infinite;
}

/* 3D Scene */
.scene-container {
    position: relative;
    width: 100%;
    height: 100vh;
    perspective: 1200px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.field-perspective {
    position: relative;
    width: 200%;
    height: 1500px;
    transform: rotateX(65deg) translateY(-200px);
    transform-origin: bottom center;
    background: linear-gradient(to top, #064e3b, #065f46);
    box-shadow: 0 0 200px rgba(0,0,0,0.9) inset;
}

.grass {
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(90deg, transparent 0, transparent 5%, rgba(255,255,255,0.02) 5%, rgba(255,255,255,0.02) 10%);
}

.markings {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    border: 4px solid rgba(255,255,255,0.1);
}

/* The Goal */
.goal-zone {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%) rotateX(-15deg);
    width: 400px;
    height: 150px;
}

.goal-frame {
    position: relative;
    width: 100%;
    height: 100%;
}

.goal-frame .post {
    position: absolute;
    bottom: 0;
    width: 10px;
    height: 100%;
    background: #fff;
    box-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.goal-frame .post.left { left: 0; }
.goal-frame .post.right { right: 0; }

.goal-frame .crossbar {
    position: absolute;
    top: 0;
    width: 100%;
    height: 10px;
    background: #fff;
}

.net-mesh {
    position: absolute;
    top: 10px;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(transparent, transparent 9px, rgba(255,255,255,0.1) 9px, rgba(255,255,255,0.1) 10px),
        repeating-linear-gradient(90deg, transparent, transparent 9px, rgba(255,255,255,0.1) 9px, rgba(255,255,255,0.1) 10px);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Ball Physics */
.pro-ball {
    position: absolute;
    bottom: 200px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 50;
    transition: all 0.1s linear;
}

.pro-ball::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMCIgaGVpZ2h0PSIzMCIgdmlld0JveD0iMCAwIDMwIDMwIj48cGF0aCBkPSJNMTEgNmw3LTMtNSAxMXoiIGZpbGw9IiMzMzMiLz48L3N2Zz4=');
    background-size: cover;
}

.ball-shadow {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 10px;
    background: rgba(0,0,0,0.4);
    border-radius: 50%;
    filter: blur(5px);
}

/* Players */
.striker-silhouette {
    position: absolute;
    bottom: 10vh;
    left: 25%;
    width: 60px;
    height: 120px;
    z-index: 100;
}

.striker-silhouette div, .keeper-silhouette div {
    background: #0f172a;
    border: 1px solid rgba(255,255,255,0.1);
}

.s-head { width: 25px; height: 25px; border-radius: 50%; margin: 0 auto; }
.s-body { width: 35px; height: 50px; border-radius: 10px; margin: -2px auto; }
.s-leg-l, .s-leg-r { width: 12px; height: 50px; position: absolute; bottom: 0; }
.s-leg-l { left: 15px; transform-origin: top; }
.s-leg-r { right: 15px; transform-origin: top; }

.keeper-silhouette {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 120px;
    z-index: 40;
}

.k-head { width: 22px; height: 22px; border-radius: 50%; margin: 0 auto; }
.k-body { width: 32px; height: 45px; border-radius: 8px; margin: 0 auto; background: #ef4444 !important; }
.k-arm-l, .k-arm-r { width: 10px; height: 40px; position: absolute; top: 25px; }
.k-arm-l { left: 0; transform: rotate(45deg); }
.k-arm-r { right: 0; transform: rotate(-45deg); }

/* Success Messages */
.success-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    text-align: center;
    z-index: 200;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-message.active {
    transform: translate(-50%, -50%) scale(1);
}

.goal-glow {
    font-size: 8rem;
    font-weight: 900;
    color: var(--gold);
    text-shadow: 0 0 50px rgba(251, 191, 36, 0.6);
    letter-spacing: 20px;
}

.sub-text {
    font-size: 1.2rem;
    letter-spacing: 5px;
    color: #fff;
    margin-top: -20px;
    opacity: 0.8;
}

#confetti {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 150;
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes legRun {
    0% { transform: rotate(-30deg); }
    100% { transform: rotate(30deg); }
}

.running .s-leg-l { animation: legRun 0.4s infinite alternate; }
.running .s-leg-r { animation: legRun 0.4s infinite alternate-reverse; }
