/* --- base visual FIFA HUD --- */
* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: #dbeafe;
    background: radial-gradient(1200px 700px at 50% -10%, #0c1f33 0%, #0a1523 45%, #06101c 100%);
}

:root {
    --hud-bg: rgba(16, 30, 48, .8);
    --hud-stroke: rgba(123, 210, 255, .25);
    --accent: #39e28f;
    --muted: #9fb3c8;
}

.header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px clamp(16px, 4vw, 48px);
    border-bottom: 1px solid var(--hud-stroke);
    background: linear-gradient(180deg, rgba(18, 32, 52, .85), rgba(10, 22, 36, .4))
}

/* ===== Menu responsivo ===== */
.nav {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto;
}

.nav a {
    color: #dbeafe;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav a:hover {
    color: #39e28f;
}

/* Hambúrguer oculto no desktop */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: #dbeafe;
    border-radius: 2px;
    transition: 0.3s;
}

/* Mobile layout */
@media (max-width: 820px) {
    .nav {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 200px;
        height: calc(100vh - 70px);
        flex-direction: column;
        justify-content: start;
        gap: 20px;
        padding: 24px;
        background: rgba(10, 22, 36, 0.95);
        border-left: 1px solid var(--hud-stroke);
        transition: right 0.3s ease;
        z-index: 100;
    }

    .nav.open {
        right: 0;
    }

    .menu-toggle {
        display: flex;
    }

    /* Animação do hambúrguer */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8.5px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8.5px) rotate(-45deg);
    }
}

.fullscreen-btn {
    background: none;
    border: none;
    color: #dbeafe;
    font-size: 22px;
    margin-left: 16px;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.fullscreen-btn:hover {
    color: #39e28f;
    transform: scale(1.2);
}

.fullscreen-btn.active {
    color: #39e28f;
}




.logo {}

.title {
    font-weight: 700;
    font-size: clamp(18px, 2.2vw, 28px);
    text-shadow: 0 0 18px rgba(26, 178, 255, .35)
}

.players {
    display: flex;
    gap: 18px;
    padding: 16px clamp(16px, 4vw, 48px);
    overflow-x: auto
}

.player {
    display: grid;
    place-items: center;
    gap: 6px;
    min-width: 86px;
    cursor: pointer
}

.avatar {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    overflow: hidden;
    border: 2px solid var(--hud-stroke);
    box-shadow: 0 0 0 3px rgba(26, 178, 255, .08);
    transition: all .2s
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.player.selecionado .avatar {
    border-color: var(--accent);
    box-shadow: 0 0 14px var(--accent)
}

.pname {
    font-size: 12px;
    color: var(--muted)
}

.stage {
    padding: 12px clamp(16px, 4vw, 48px) 24px;
    display: grid;
    place-items: center
}

.goal-wrap {
    position: relative;
    width: min(920px, 90vw);
    aspect-ratio: 2.1 / 1.2;
    /* ligeiramente mais alta */
    padding: 18px;
    border-radius: 14px;
    background: var(--hud-bg);
    border: 1px solid var(--hud-stroke);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, .45),
        inset 0 0 0 1px rgba(255, 255, 255, .03);
}

/* Baliza com topo e laterais, fundo aberto */
.goal {
    position: absolute;
    left: 10%;
    top: 10%;
    width: 80%;
    height: 80%;
    border-left: 4px solid rgba(130, 200, 255, .3);
    border-right: 4px solid rgba(130, 200, 255, .3);
    border-top: 4px solid rgba(130, 200, 255, .3);
    border-bottom: none;
    /* aberto em baixo */
    border-radius: 8px 8px 0 0;
    background:
        radial-gradient(200px 120px at 50% 10%, rgba(26, 178, 255, .15), transparent 60%),
        #0a1626;
    box-shadow:
        0 0 20px rgba(26, 178, 255, .2) inset,
        0 0 30px rgba(26, 178, 255, .25);
    overflow: visible;
}

/* Redes só no topo e meio */
.goal::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(173, 216, 255, .08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(173, 216, 255, .08) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, white 70%, transparent);
    pointer-events: none;
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
    place-items: center;
    background: rgba(4, 10, 16, .55);
    backdrop-filter: blur(4px);
    z-index: 50
}

.modal.open {
    display: grid
}

.card {
    width: min(680px, 92vw);
    background: linear-gradient(180deg, rgba(10, 22, 36, .9), rgba(8, 18, 30, .95));
    border: 1px solid var(--hud-stroke);
    border-radius: 14px;
    padding: clamp(16px, 3.5vw, 28px);
    box-shadow: 0 18px 80px rgba(0, 0, 0, .6)
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(80px, 1fr));
    gap: clamp(10px, 2.2vw, 18px)
}

.pick {
    display: grid;
    gap: 8px;
    justify-items: center;
    padding: 10px 8px;
    border-radius: 12px;
    background: rgba(20, 34, 54, .45);
    border: 1px solid rgba(123, 210, 255, .12);
    cursor: pointer;
    transition: transform .08s, box-shadow .12s, border-color .12s
}

.pick:hover {
    transform: translateY(-2px);
    border-color: rgba(58, 220, 255, .45);
    box-shadow: 0 0 24px rgba(58, 220, 255, .25)
}

.pick img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .35))
}

.pick span {
    font-size: 12px;
    color: var(--muted)
}

.stats {
    width: min(1100px, 94vw);
    margin: 26px auto 46px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px
}

.stat {
    background: var(--hud-bg);
    border: 1px solid var(--hud-stroke);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .35)
}

.stat label {
    display: block;
    color: var(--muted);
    margin-bottom: 6px
}

.stat strong {
    font-size: clamp(22px, 3vw, 28px);
    color: #e6f6ff;
    text-shadow: 0 0 16px rgba(26, 178, 255, .35)
}

.cta {
    display: inline-grid;
    place-items: center;
    padding: 10px 16px;
    border-radius: 10px;
    margin-top: 16px;
    color: #e9fdff;
    text-decoration: none;
    font-weight: 600;
    background: linear-gradient(180deg, #1aa0ff, #0b74ff);
    box-shadow: 0 10px 30px rgba(25, 140, 255, .35), 0 0 0 1px rgba(255, 255, 255, .08) inset;
    border: 1px solid rgba(80, 180, 255, .4)
}

/* === Pontos (remates) === */
.ponto {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: aparece 0.5s ease forwards, brilho 1.2s ease-out;
}

@keyframes aparece {
    0% {
        transform: translate(-50%, -50%) scale(0.4);
        opacity: 0
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1
    }
}

@keyframes brilho {
    0% {
        box-shadow: 0 0 0px rgba(255, 255, 255, .8)
    }

    50% {
        box-shadow: 0 0 16px rgba(255, 255, 255, .7)
    }

    100% {
        box-shadow: 0 0 0px rgba(255, 255, 255, 0)
    }
}

@media(max-width:920px) {
    .result-grid {
        grid-template-columns: repeat(3, 1fr)
    }
}

@media(max-width:560px) {
    .result-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}