/* ==========================================================
   GO EVENTS PREMIUM V2
   Popup plein écran + thème + ticket premium
========================================================== */

:root{
    --go-bg:#07111f;
    --go-primary:#0f6b3f;
    --go-secondary:#d4af37;
    --go-text:#ffffff;
    --go-card:rgba(255,255,255,.12);
    --go-card-border:rgba(255,255,255,.22);
    --go-danger:#ff4d4d;
    --go-success:#28d17c;
}

/* OVERLAY */

.go-events-overlay{
    position:fixed;
    inset:0;
    z-index:2147483000;
    display:flex;
    align-items:center;
    justify-content:center;
    width:100vw;
    height:100vh;
    overflow:hidden;
    background:#000;
    font-family:Montserrat, Arial, sans-serif;
}

.go-events-backdrop{
    position:absolute;
    inset:0;
    background:
        radial-gradient(circle at 20% 15%, rgba(212,175,55,.35), transparent 30%),
        radial-gradient(circle at 80% 15%, rgba(0,174,193,.28), transparent 32%),
        radial-gradient(circle at 50% 90%, rgba(15,107,63,.42), transparent 35%),
        linear-gradient(135deg,#06111f,#0b2b3d 45%,#07111f);
    background-size:cover;
    background-position:center;
    filter:saturate(1.2);
    animation:goBgMove 14s ease-in-out infinite alternate;
}

.go-events-backdrop::after{
    content:"";
    position:absolute;
    inset:0;
    background:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size:42px 42px;
    mask-image:linear-gradient(to bottom, transparent, black 18%, black 82%, transparent);
}

@keyframes goBgMove{
    from{ transform:scale(1); filter:saturate(1.15) brightness(.95); }
    to{ transform:scale(1.06); filter:saturate(1.35) brightness(1.08); }
}

/* POPUP */

.go-events-popup{
    position:relative;
    width:min(94vw,470px);
    min-height:min(92vh,760px);
    max-height:94vh;
    border-radius:34px;
    padding:18px;
    overflow:hidden;
    background:
        linear-gradient(180deg,rgba(5,15,45,.84),rgba(10,20,55,.74));
    border:1px solid rgba(255,255,255,.30);
    box-shadow:
        0 40px 90px rgba(0,0,0,.60),
        inset 0 1px 0 rgba(255,255,255,.25),
        0 0 65px rgba(212,175,55,.25);
    backdrop-filter:blur(16px);
    animation:goPopupIn .55s cubic-bezier(.18,1.15,.35,1);
}

.go-events-popup::before{
    content:"";
    position:absolute;
    inset:-2px;
    background:
        linear-gradient(120deg,
            transparent 0%,
            rgba(255,255,255,.22) 18%,
            transparent 34%,
            transparent 100%);
    transform:translateX(-120%);
    animation:goShine 5s ease-in-out infinite;
    pointer-events:none;
}

.go-events-popup::after{
    content:"";
    position:absolute;
    inset:auto -40px -70px -40px;
    height:170px;
    background:radial-gradient(circle, rgba(212,175,55,.30), transparent 65%);
    pointer-events:none;
}

@keyframes goPopupIn{
    from{ opacity:0; transform:translateY(35px) scale(.94); }
    to{ opacity:1; transform:translateY(0) scale(1); }
}

@keyframes goShine{
    0%,58%{ transform:translateX(-130%); }
    100%{ transform:translateX(130%); }
}

/* CLOSE */

.go-events-close{
    position:absolute;
    top:16px;
    right:16px;
    z-index:20;
    width:42px;
    height:42px;
    border:0;
    border-radius:50%;
    background:rgba(0,0,0,.42);
    color:white;
    font-size:20px;
    font-weight:900;
    cursor:pointer;
    backdrop-filter:blur(8px);
    box-shadow:0 8px 20px rgba(0,0,0,.35);
}

.go-events-close:hover{
    transform:scale(1.05);
}

/* STAGE */

.go-events-stage{
    position:relative;
    z-index:5;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-start;
    min-height:calc(min(92vh,760px) - 36px);
    padding:34px 16px 20px;
    text-align:center;
    color:var(--go-text);
}

.go-events-theme-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:7px 14px;
    border-radius:999px;
    background:rgba(255,255,255,.14);
    border:1px solid rgba(255,255,255,.22);
    color:#fff;
    font-size:11px;
    font-weight:900;
    letter-spacing:2px;
    text-transform:uppercase;
    margin-bottom:12px;
}

.go-events-logo-zone{
    width:82px;
    height:82px;
    border-radius:24px;
    display:flex;
    align-items:center;
    justify-content:center;
    margin-bottom:14px;
    background:
        radial-gradient(circle at 30% 20%,rgba(255,255,255,.5),transparent 35%),
        linear-gradient(145deg,var(--go-secondary),#9f7a15);
    box-shadow:
        0 14px 35px rgba(0,0,0,.35),
        0 0 35px rgba(212,175,55,.45);
}

.go-events-logo{
    max-width:72%;
    max-height:72%;
    object-fit:contain;
}

.go-events-logo-fallback{
    color:#fff;
    font-size:46px;
    font-weight:1000;
    text-shadow:0 4px 18px rgba(0,0,0,.45);
}

.go-events-title{
    margin:0;
    font-size:clamp(30px,7vw,44px);
    line-height:.95;
    font-weight:1000;
    letter-spacing:-1px;
    text-transform:uppercase;
    text-shadow:0 5px 25px rgba(0,0,0,.45);
}

.go-events-subtitle{
    margin-top:12px;
    max-width:360px;
    color:rgba(255,255,255,.88);
    font-size:14px;
    font-weight:700;
    line-height:1.45;
}

/* SCRATCH HOST */

.go-events-scratch-host{
    width:100%;
    margin:24px 0 18px;
    display:flex;
    justify-content:center;
    align-items:center;
    perspective:900px;
}

/* RESULT */

.go-events-result{
    position:relative;
    width:100%;
    margin:18px 0;
    padding:22px 18px;
    border-radius:26px;
    background:
        radial-gradient(circle at 50% 0%,rgba(212,175,55,.35),transparent 45%),
        rgba(255,255,255,.14);
    border:1px solid rgba(255,255,255,.22);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.25),
        0 15px 35px rgba(0,0,0,.28);
    animation:goResultIn .45s ease-out;
}

@keyframes goResultIn{
    from{ opacity:0; transform:translateY(18px) scale(.96); }
    to{ opacity:1; transform:translateY(0) scale(1); }
}

.go-events-result-icon{
    font-size:48px;
    line-height:1;
    margin-bottom:8px;
    filter:drop-shadow(0 8px 18px rgba(0,0,0,.35));
}

.go-events-reward-image{
    width:140px;
    height:140px;
    object-fit:contain;
    margin:6px auto 12px;
    border-radius:22px;
    background:rgba(255,255,255,.9);
    padding:10px;
    box-shadow:0 15px 35px rgba(0,0,0,.35);
}

.go-events-result-title{
    font-size:26px;
    font-weight:1000;
    text-transform:uppercase;
    color:#fff;
    text-shadow:0 5px 22px rgba(0,0,0,.5);
}

.go-events-result-message{
    margin-top:8px;
    font-size:15px;
    font-weight:800;
    color:rgba(255,255,255,.9);
    line-height:1.4;
}
/* ==========================================================
   BUTTON
========================================================== */

.go-events-main-button{
    width:100%;
    min-height:64px;
    border:0;
    border-radius:22px;
    background:
        linear-gradient(180deg,#ffe28a,var(--go-secondary) 55%,#9f7815);
    color:#111;
    font-size:18px;
    font-weight:1000;
    letter-spacing:.8px;
    text-transform:uppercase;
    cursor:pointer;
    box-shadow:
        0 18px 35px rgba(0,0,0,.36),
        inset 0 2px 0 rgba(255,255,255,.55);
    transition:.18s ease;
}

.go-events-main-button:hover,
.go-events-main-button:active{
    transform:translateY(-2px) scale(1.01);
}

.go-events-main-button:disabled{
    opacity:.55;
    cursor:not-allowed;
    transform:none;
}

.go-events-small-note{
    margin-top:12px;
    font-size:12px;
    font-weight:800;
    color:rgba(255,255,255,.78);
}

/* ==========================================================
   CONFETTI / FIREWORKS
========================================================== */

.go-events-confetti,
.go-events-fireworks{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    pointer-events:none;
    z-index:30;
}

/* ==========================================================
   LOADER
========================================================== */

.go-events-loading{
    position:fixed;
    inset:0;
    z-index:2147483600;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:16px;
    background:rgba(0,0,0,.78);
    color:#fff;
    font-family:Montserrat,Arial,sans-serif;
    font-weight:900;
}

.go-events-spinner{
    width:56px;
    height:56px;
    border-radius:50%;
    border:5px solid rgba(255,255,255,.25);
    border-top-color:var(--go-secondary);
    animation:goSpin .8s linear infinite;
}

@keyframes goSpin{
    to{
        transform:rotate(360deg);
    }
}

/* ==========================================================
   THEME 4 JULY
========================================================== */

.go-events-overlay.theme-4july .go-events-backdrop{

    background-image:

        linear-gradient(
            rgba(5,15,45,.30),
            rgba(5,15,45,.55)
        ),

        url("/Go/modules/go-events/themes/4july/background.webp");

    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;

    animation:goBgMove 18s ease-in-out infinite alternate;

}

.go-events-overlay.theme-4july .go-events-popup{

    background-image:

        linear-gradient(
            rgba(5,15,45,.58),
            rgba(5,15,45,.72)
        ),

        url("/Go/modules/go-events/themes/4july/background.webp");

    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;

    border:2px solid rgba(255,255,255,.35);

    box-shadow:
        0 35px 90px rgba(0,0,0,.60),
        0 0 40px rgba(255,40,40,.25),
        0 0 60px rgba(0,90,255,.20);

}

.go-events-overlay.theme-4july .go-events-theme-badge{

    background:linear-gradient(
        90deg,
        #0038a8,
        #ffffff,
        #d52b1e
    );

    color:#07133a;

}

.go-events-overlay.theme-4july .go-events-logo-zone{

    background:
        radial-gradient(circle at 30% 20%,#fff,transparent 35%),
        linear-gradient(145deg,#0038a8,#d52b1e);

}

.go-events-overlay.theme-4july .go-events-title{

    color:#ffd700;

    text-shadow:
        0 3px 0 #0038a8,
        0 6px 18px rgba(213,43,30,.80);

}

.go-events-overlay.theme-4july .go-events-subtitle{

    color:#ffffff;

}

.go-events-overlay.theme-4july .go-events-main-button{

    background:
        linear-gradient(
            180deg,
            #fff6c7,
            #ffd700 45%,
            #d52b1e
        );

    color:#07133a;

}

.go-events-overlay.theme-4july .go-events-result{

    background:
        linear-gradient(
            rgba(0,56,168,.75),
            rgba(213,43,30,.75)
        );

}

/* ==========================================================
   CHRISTMAS
========================================================== */

.go-events-overlay.theme-christmas .go-events-backdrop{

    background:
        radial-gradient(circle at 20% 20%,rgba(255,255,255,.35),transparent 30%),
        radial-gradient(circle at 80% 20%,rgba(212,175,55,.3),transparent 30%),
        linear-gradient(135deg,#06351e,#7b0d1e);

}

/* ==========================================================
   HALLOWEEN
========================================================== */

.go-events-overlay.theme-halloween .go-events-backdrop{

    background:
        radial-gradient(circle at 25% 20%,rgba(255,120,0,.35),transparent 32%),
        radial-gradient(circle at 80% 80%,rgba(120,0,255,.25),transparent 35%),
        linear-gradient(135deg,#0c0612,#3a1600);

}

/* ==========================================================
   COMPATIBILITÉ
========================================================== */

.go-ticket-overlay,
.go-ticket-popup,
.go-ticket-loading{

    font-family:Montserrat,Arial,sans-serif;

}

/* ==========================================================
   MOBILE
========================================================== */

@media(max-width:480px){

    .go-events-popup{

        width:100vw;
        height:100vh;
        max-height:none;
        min-height:100vh;
        border-radius:0;
        padding:12px;

    }

    .go-events-stage{

        min-height:calc(100vh - 24px);
        padding:42px 12px 18px;
        justify-content:center;

    }

    .go-events-close{

        top:14px;
        right:14px;

    }

    .go-events-logo-zone{

        width:70px;
        height:70px;
        border-radius:20px;

    }

    .go-events-title{

        font-size:34px;

    }

    .go-events-subtitle{

        font-size:13px;

    }

    .go-events-main-button{

        min-height:60px;
        font-size:16px;

    }

}
/* 4 JULY - logo principal sans badge */

.go-events-overlay.theme-4july .go-events-theme-badge{
    display:none !important;
}

.go-events-overlay.theme-4july .go-events-logo-zone{
    width:210px !important;
    height:210px !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    margin-bottom:18px !important;
}

.go-events-overlay.theme-4july .go-events-logo{
    display:block !important;
    width:100% !important;
    height:100% !important;
    max-width:100% !important;
    max-height:100% !important;
    object-fit:contain !important;
}

.go-events-overlay.theme-4july .go-events-logo-fallback{
    display:none !important;
}

@media(max-width:480px){
    .go-events-overlay.theme-4july .go-events-logo-zone{
        width:190px !important;
        height:190px !important;
    }
}
.go-events-title{
    display:none !important;
}