/* ================= WRAPPER ================= */
.uug-penalty-wrapper{
    max-width:420px;
    margin:40px auto;
    padding:24px;
    border-radius:18px;
    background:#fff;
    box-shadow:0 10px 25px rgba(0,0,0,.08);
    text-align:center;
    position:relative;
}

/* ================= COUNTER ================= */
.uug-goals-counter{
    font-weight:800;
    margin-bottom:12px;
    background:#111;
    color:#fff;
    padding:6px 10px;
    border-radius:8px;
    display:inline-block;
}

/* ================= FIELD ================= */
.uug-penalty-field{
    position:relative;
    height:230px;
    border-radius:16px;
    background:linear-gradient(180deg,#1e7a46,#145c34);
    margin-bottom:16px;
    overflow:hidden;
}

/* ================= GOAL ================= */
.uug-goalpost{
    position:absolute;
    top:24px;
    left:50%;
    transform:translateX(-50%);
    width:72%;
    height:110px;
    border:3px solid #fff;
    border-bottom:none;
    display:flex;
    overflow:hidden;
}

/* ===== REAL NET GRID (visual only) ===== */
.uug-goalpost::after{
    content:"";
    position:absolute;
    inset:0;
    background-image:
        linear-gradient(rgba(255,255,255,.45) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.45) 1px, transparent 1px);
    background-size:12px 12px;
    pointer-events:none;
}



/* ===== REAL NET ELEMENT ===== */
.uug-net{
    position:absolute;
    inset:0;                 /* fill the goal */
    z-index:2;               /* above zones */
    pointer-events:none;

    background-image:
        linear-gradient(rgba(255,255,255,.45) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.45) 1px, transparent 1px);
    background-size:12px 12px;
}





/* ================= GOAL ZONES ================= */
.uug-zone{
    flex:1;
    height:100%;
    transition:filter .2s ease, transform .15s ease;
}

/* modern bright colors */
.uug-zone-low  { background:rgba(239,68,68,0.55); }   /* MISS */
.uug-zone-mid  { background:rgba(59,130,246,0.55); }  /* BIG WIN */
.uug-zone-high { background:rgba(245,158,11,0.60); }  /* SMALL WIN */

/* tap feedback */
.uug-zone:active{
    transform:scale(.97);
    filter:brightness(1.1);
}

/* ================= HUMAN BASE ================= */
.uug-human{
    position:absolute;
    width:42px;
    height:64px;
}

.uug-human::before{
    content:"";
    position:absolute;
    top:4px;
    left:50%;
    transform:translateX(-50%);
    width:16px;
    height:16px;
    background:#000;
    border-radius:50%;
}

.uug-human::after{
    content:"";
    position:absolute;
    bottom:2px;
    left:50%;
    transform:translateX(-50%);
    width:18px;
    height:40px;
    background:#000;
    border-radius:10px;
}

/* ================= PLAYER ================= */
.uug-player{
    bottom:-6px;
    left:50%;
    transform:translateX(-120%);
    z-index:2;
}

/* ================= BALL ================= */
.uug-ball{
    position:absolute;
    bottom:18px;
    left:50%;
    transform:translate(-50%,0);
    width:22px;
    height:22px;
    background:#fff;
    border-radius:50%;
    box-shadow:0 3px 8px rgba(0,0,0,.25);
    transition:transform .25s ease;
    z-index:5;
}

/* ===== BALL FIRE IMPACT ===== */
.uug-ball.fire{
    box-shadow:
        0 0 12px rgba(255,120,0,.9),
        0 0 24px rgba(255,60,0,.7);
    background:radial-gradient(circle,#fff 40%, #ff9800 70%, #ff5722 100%);
}

/* ================= NET SHAKE (ONLY NET VISUAL) ================= */
@keyframes uugNetShake{
    0%   { transform: translateX(0) scaleY(1); }
    15%  { transform: translateX(-6px) scaleY(.94); }
    30%  { transform: translateX(6px)  scaleY(1.06); }
    45%  { transform: translateX(-4px) scaleY(.97); }
    60%  { transform: translateX(4px)  scaleY(1.03); }
    75%  { transform: translateX(-2px) scaleY(.99); }
    100% { transform: translateX(0) scaleY(1); }
}

.uug-net.shake {
    animation: uugNetShake .35s ease;
}


/* ================= POWER BAR ================= */
.uug-power-bar{
    width:100%;
    margin:18px 0 10px;
}

.uug-power-label{
    font-weight:800;
    font-size:14px;
    color:#111;
    margin-bottom:6px;
    letter-spacing:.5px;
}

.uug-power-track{
    width:100%;
    height:16px;
    background:#111;
    border-radius:999px;
    overflow:hidden;
    box-shadow:inset 0 2px 6px rgba(0,0,0,.4);
}

.uug-power-fill{
    width:0%;
    height:100%;
    background:linear-gradient(90deg,#22c55e,#facc15,#ef4444);
    box-shadow:0 0 10px rgba(255,80,0,.7);
    transition:width .05s linear;
}

/* suspense glow */
@keyframes uugPowerPulse{
    0%   { filter:brightness(1); }
    50%  { filter:brightness(1.4); }
    100% { filter:brightness(1); }
}

.uug-power-glow{
    animation:uugPowerPulse .6s infinite;
}

/* ================= BUTTON ================= */
.uug-kick-btn{
    background:#7a003c;
    color:#fff;
    border:none;
    padding:12px 26px;
    border-radius:12px;
    font-weight:700;
    cursor:pointer;
    transition:.2s ease;
}

.uug-kick-btn:hover{
    background:#5c002d;
}

.uug-kick-btn:disabled{
    opacity:.5;
    cursor:not-allowed;
    transform:scale(.97);
}

/* ================= RESULT BANNER ================= */
.uug-green-banner{
    background:linear-gradient(135deg,#16a34a,#22c55e);
    color:#fff;
    padding:14px 18px;
    border-radius:12px;
    margin-bottom:14px;
    box-shadow:0 8px 18px rgba(0,0,0,.15);
    text-align:center;
}

.uug-result-text{
    font-size:16px;
    font-weight:700;
}

.uug-cooldown-text{
    font-size:15px;
    font-weight:600;
    margin-top:4px;
    opacity:.95;
}

/* ================= REPLAY OVERLAY ================= */
#uug-replay-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.15);
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:9999;
}

#uug-replay-overlay.hidden{
    display:none;
}

.uug-replay-box{
    background:linear-gradient(135deg,#16a34a,#22c55e);
    padding:24px 28px;
    border-radius:16px;
    text-align:center;
    color:#fff;
    box-shadow:0 20px 40px rgba(0,0,0,.25);
    max-width:320px;
    width:90%;
}

.uug-replay-title{
    font-size:18px;
    font-weight:800;
    margin-bottom:14px;
}

.uug-replay-actions{
    display:flex;
    gap:14px;
    justify-content:center;
}

.uug-btn-replay,
.uug-btn-other{
    flex:1;
    max-width:160px;
    padding:10px 18px;
    border-radius:10px;
    font-weight:700;
    cursor:pointer;
    border:none;
}

.uug-btn-replay{ background:#fde047; color:#000; }
.uug-btn-other{ background:#0ea5e9; color:#fff; }

/* ================= MOBILE ================= */
@media (max-width:480px){
    .uug-replay-actions{
        flex-direction:column;
        gap:10px;
    }
    .uug-btn-replay,
    .uug-btn-other{
        width:100%;
        max-width:none;
    }
}


/* ===== PLAYER KICK ANIMATION ===== */

@keyframes uugKick {
    0%   { transform: translateX(-120%) rotate(0deg); }
    40%  { transform: translateX(-120%) rotate(-18deg); }
    70%  { transform: translateX(-120%) rotate(12deg); }
    100% { transform: translateX(-120%) rotate(0deg); }
}

.uug-player.kick {
    animation: uugKick .45s ease;
}



/* ================= CENTER RESULT OVERLAY ================= */

.uug-target-result-overlay{
position:absolute;
inset:0;
display:flex;
align-items:center;
justify-content:center;
z-index:30;
pointer-events:none;
}

.uug-target-result-box{
background:rgba(0,0,0,.75);
backdrop-filter:blur(4px);
padding:22px 28px;
border-radius:14px;
text-align:center;
color:#fff;
animation:uugResultPop .35s ease;
}

.uug-target-result-text{
font-weight:700;
font-size:14px;
letter-spacing:.5px;
opacity:.9;
}

.uug-target-result-points{
font-size:42px;
font-weight:900;
color:#fde047;
margin:6px 0;
}

.uug-target-result-label{
font-size:13px;
font-weight:700;
opacity:.85;
}

@keyframes uugResultPop{
0%{transform:scale(.7);opacity:0;}
100%{transform:scale(1);opacity:1;}
}