/* ===========================
   RESET
=========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html,
body{
    width:100%;
    height:100%;
    font-family:Arial, Helvetica, sans-serif;
    background:#09131f;
    color:#fff;
}

/* ===========================
   LAYOUT
=========================== */

#liveApp{

    min-height:100vh;

    display:flex;
    flex-direction:column;

}

/* ===========================
   HEADER
=========================== */

#liveHeader{

    height:90px;

    background:#111d2b;

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:0 40px;

    border-bottom:3px solid #1f3148;

}

.header-left{

    width:220px;

}

#logoFBL{

    max-height:65px;

}

.header-center{

    text-align:center;

    flex:1;

}

.evento-tipo{

    color:#8fb3d9;

    font-size:14px;

    letter-spacing:3px;

    text-transform:uppercase;

    margin-bottom:6px;

}

.header-center h1{

    font-size:34px;

    font-weight:bold;

}

.header-right{

    width:220px;

    display:flex;
    justify-content:flex-end;

}

.liveBadge{

    background:#d60000;

    color:white;

    padding:10px 22px;

    border-radius:30px;

    font-weight:bold;

    letter-spacing:2px;

}

/* ===========================
   ESTRAZIONE
=========================== */

#liveMain{

    flex:1;

    display:flex;
    justify-content:center;
    align-items:center;

    padding:40px;

}

#estrazione{

    width:900px;

    min-height:300px;

    background:#14263c;

    border:2px solid #284666;

    border-radius:20px;

    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;

}

#faseCorrente{

    color:#9db9d6;

    font-size:18px;

    margin-bottom:20px;

}

#titoloGruppo{

    font-size:52px;

    font-weight:bold;

    margin-bottom:20px;

}

#nomeEstratto{

    font-size:74px;

    font-weight:bold;

    text-transform:uppercase;

}

/* ===========================
   RISULTATI
=========================== */

#risultati{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:25px;

    padding:35px;

    background:#0c1826;

}
#risultati.dueGironi{

    grid-template-columns:repeat(2,380px);

    justify-content:center;

}

.cardClan{

    background:#17283d;

    border:2px solid #294462;

    border-radius:15px;

    overflow:hidden;

}

.cardHeader{

    background:#223955;

    padding:12px;

    text-align:center;

    font-size:20px;

    font-weight:bold;

}

.cardBody{

    padding:20px;

}

.clubSlot{

    min-height:64px;

    display:flex;

    align-items:center;

    justify-content:flex-start;

    gap:12px;

    padding:8px 12px;

    margin-bottom:15px;

    background:#0f1c2d;

    border-radius:10px;

    font-size:22px;

    font-weight:bold;

    border:1px dashed #44698f;

}
.clubLive{

    display:flex;

    align-items:center;
    justify-content:center;

    gap:12px;

    width:100%;

}

.clubLogo{

    width:42px;
    height:42px;

    object-fit:contain;

    flex-shrink:0;

}

.clubNome{

    flex:1;

    font-size:20px;
    font-weight:bold;

    text-align:center;

}
/* ===========================
   COUNTDOWN
=========================== */

#countdownPage{

    min-height:100vh;

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    background:#07121f;

    color:white;

}

#logoCountdown{

    width:170px;

    margin-bottom:25px;

}

.countdownTipo{

    font-size:22px;

    letter-spacing:3px;

    color:#b8c9dd;

    margin-bottom:10px;

}

.countdownTitolo{

    font-size:48px;

    margin-bottom:60px;

    text-align:center;

}

.countdownBoxes{

    display:flex;

    gap:25px;

    margin-bottom:60px;

}

.box{

    width:170px;

    height:170px;

    border:2px solid rgba(255,255,255,.15);

    border-radius:18px;

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    background:rgba(255,255,255,.04);

}

.box span{

    font-size:70px;

    font-weight:bold;

    line-height:1;

}

.box small{

    margin-top:15px;

    font-size:16px;

    letter-spacing:2px;

    color:#c8d6e5;

}

.countdownFooter{

    margin-top:20px;

    font-size:22px;

    color:#dbe7f2;

}
@keyframes pulseBox{

    0%{
        transform:scale(1);
    }

    50%{
        transform:scale(1.04);
    }

    100%{
        transform:scale(1);
    }

}

.box{

    animation:pulseBox 2.5s infinite ease-in-out;

}
@keyframes fadeIn{

    from{

        opacity:0;
        transform:translateY(25px);

    }

    to{

        opacity:1;
        transform:translateY(0);

    }

}

#countdownPage{

    animation:fadeIn 1s;

}
/*==================================================
CARD SQUADRA ESTRATTA
==================================================*/

#cardEstratta{

    display:none;

    flex-direction:column;

    align-items:center;

    justify-content:center;

    min-height:340px;

    animation:estrazioneZoom .45s ease;

}

#logoEstratto{

    width:220px;

    height:220px;

    object-fit:contain;

    margin-bottom:20px;

    filter:drop-shadow(0 0 25px rgba(255,255,255,.35));

}

#nomeEstrattoGrande{

    font-size:42px;

    font-weight:700;

    color:#ffffff;

    text-align:center;

    text-transform:uppercase;

    letter-spacing:2px;

}
#logoEstratto,
#nomeEstrattoGrande{

    transition: opacity .20s ease;

}

@keyframes estrazioneZoom{

    0%{

        opacity:0;

        transform:scale(.65);

    }

    100%{

        opacity:1;

        transform:scale(1);

    }

}
/* ==========================================================
   MOBILE - SORTEGGIO LIVE
========================================================== */

@media (max-width: 768px){

    /* =========================
       PAGINA LIVE
    ========================= */

    #liveApp{
        width:100%;
        min-height:100vh;
        overflow-x:hidden;
    }


    /* =========================
       HEADER
    ========================= */

    #liveHeader{
        height:auto;
        min-height:90px;

        padding:12px 15px;

        gap:10px;

        flex-wrap:wrap;
    }

    .header-left{
        width:auto;
        flex:0 0 auto;
    }

    #logoFBL{
        max-width:120px;
        max-height:55px;
        object-fit:contain;
    }

    .header-center{
        min-width:0;
        flex:1;
        text-align:center;
    }

    .evento-tipo{
        font-size:11px;
        letter-spacing:1.5px;
        margin-bottom:3px;
    }

    .header-center h1{
        font-size:20px;
        line-height:1.15;
    }

    .header-right{
        width:auto;
        flex:0 0 auto;
    }

    .liveBadge{
        padding:7px 10px;
        font-size:11px;
        letter-spacing:1px;
    }


    /* =========================
       AREA ESTRAZIONE
    ========================= */

    #liveMain{
        width:100%;
        padding:20px 12px;

        display:flex;
        justify-content:center;
        align-items:center;
    }

    #estrazione{
        width:100%;
        max-width:500px;
        min-height:320px;

        padding:25px 15px;

        border-radius:16px;
    }

    #faseCorrente{
        font-size:15px;
        margin-bottom:12px;
        text-align:center;
    }

    #titoloGruppo{
        font-size:36px;
        line-height:1.1;
        margin-bottom:15px;
        text-align:center;
    }

    #nomeEstratto{
        max-width:100%;

        font-size:34px;
        line-height:1.1;

        text-align:center;
        word-break:break-word;
    }


    /* =========================
       SQUADRA ESTRATTA
    ========================= */

    #cardEstratta{
        width:100%;
        min-height:300px;
        padding:10px;
    }

    #logoEstratto{
        width:150px;
        height:150px;
        margin-bottom:15px;
    }

    #nomeEstrattoGrande{
        max-width:100%;

        font-size:30px;
        line-height:1.1;

        letter-spacing:1px;
        word-break:break-word;
    }


    /* =========================
       RISULTATI
    ========================= */

    #risultati{
        width:100%;

        display:grid;
        grid-template-columns:repeat(2,minmax(0,1fr));

        gap:12px;

        padding:18px 12px;
    }

    #risultati.dueGironi{
        grid-template-columns:repeat(2,minmax(0,1fr));

        gap:12px;

        justify-content:stretch;
    }


    /* =========================
       CARD CLAN / GIRONE
    ========================= */

    .cardClan{
        width:100%;
        border-radius:12px;
    }

    .cardHeader{
        padding:9px 5px;

        font-size:16px;
        line-height:1.2;
    }

    .cardBody{
        padding:10px;
    }


    /* =========================
       SLOT SQUADRA
    ========================= */

    .clubSlot{
        min-height:58px;

        gap:7px;

        padding:7px;

        margin-bottom:8px;

        border-radius:8px;

        font-size:14px;
    }

    .clubSlot:last-child{
        margin-bottom:0;
    }

    .clubLive{
        gap:6px;
    }

    .clubLogo{
        width:34px;
        height:34px;
    }

    .clubNome{
        font-size:14px;
        line-height:1.1;

        word-break:break-word;
    }


    /* =========================
       COUNTDOWN MOBILE
    ========================= */

    #countdownPage{
        min-height:100vh;

        padding:25px 15px;

        text-align:center;
    }

    #logoCountdown{
        width:120px;
        margin-bottom:20px;
    }

    .countdownTipo{
        font-size:16px;
        letter-spacing:2px;
    }

    .countdownTitolo{
        font-size:32px;
        line-height:1.15;

        margin-bottom:35px;
    }

    .countdownBoxes{
        width:100%;

        display:grid;
        grid-template-columns:repeat(2,1fr);

        gap:12px;

        margin-bottom:35px;
    }

    .box{
        width:100%;
        height:125px;

        border-radius:14px;
    }

    .box span{
        font-size:48px;
    }

    .box small{
        margin-top:10px;
        font-size:13px;
        letter-spacing:1px;
    }

    .countdownFooter{
        font-size:16px;
        line-height:1.4;
    }

}


/* ==========================================================
   MOBILE STRETTO
========================================================== */

@media (max-width: 480px){

    #liveHeader{
        min-height:80px;
        padding:10px 10px;
    }

    #logoFBL{
        max-width:95px;
        max-height:48px;
    }

    .header-center h1{
        font-size:17px;
    }

    .evento-tipo{
        font-size:9px;
    }

    .liveBadge{
        padding:6px 8px;
        font-size:9px;
    }


    #liveMain{
        padding:15px 10px;
    }

    #estrazione{
        min-height:290px;
        padding:20px 10px;
    }

    #faseCorrente{
        font-size:14px;
    }

    #titoloGruppo{
        font-size:30px;
    }

    #nomeEstratto{
        font-size:28px;
    }


    #logoEstratto{
        width:130px;
        height:130px;
    }

    #nomeEstrattoGrande{
        font-size:27px;
    }


    #risultati{
        gap:10px;
        padding:15px 8px;
    }

    #risultati.dueGironi{
        gap:10px;
    }

    .cardHeader{
        font-size:14px;
        padding:8px 4px;
    }

    .cardBody{
        padding:8px;
    }

    .clubSlot{
        min-height:52px;
        padding:6px;
    }

    .clubLogo{
        width:30px;
        height:30px;
    }

    .clubNome{
        font-size:12px;
    }


    .countdownTitolo{
        font-size:27px;
    }

    .countdownBoxes{
        gap:10px;
    }

    .box{
        height:110px;
    }

    .box span{
        font-size:42px;
    }

}