/* =========================================================
   TVG PLAYZ — CASINO PAGE TRANSITION
   ========================================================= */

#tvg-page-transition {
    position: fixed;
    inset: 0;
    z-index: 999999;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 45%,
            rgba(32, 199, 107, 0.10),
            transparent 30%
        ),
        radial-gradient(
            circle at 50% 50%,
            rgba(212, 175, 55, 0.07),
            transparent 48%
        ),
        #050706;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.45s ease,
        visibility 0.45s ease;
}


#tvg-page-transition.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}


/* =========================================================
   CASINO BACKGROUND
   ========================================================= */

.tvg-casino-symbols {
    position: absolute;
    inset: 0;

    pointer-events: none;
    overflow: hidden;
}


.tvg-casino-symbol {
    position: absolute;

    color: rgba(212, 175, 55, 0.10);

    font-family:
        Georgia,
        serif;

    font-size: 70px;

    animation:
        tvgCasinoFloat 5s
        ease-in-out infinite;
}


.tvg-casino-symbol:nth-child(1) {
    top: 12%;
    left: 14%;
}

.tvg-casino-symbol:nth-child(2) {
    top: 18%;
    right: 16%;

    color: rgba(32, 199, 107, 0.08);

    animation-delay: -1s;
}

.tvg-casino-symbol:nth-child(3) {
    bottom: 14%;
    left: 18%;

    animation-delay: -2s;
}

.tvg-casino-symbol:nth-child(4) {
    bottom: 18%;
    right: 17%;

    color: rgba(32, 199, 107, 0.08);

    animation-delay: -3s;
}


@keyframes tvgCasinoFloat {

    0%,
    100% {
        transform:
            translateY(0)
            rotate(-5deg);
    }

    50% {
        transform:
            translateY(-12px)
            rotate(5deg);
    }

}


/* =========================================================
   GLOW
   ========================================================= */

.tvg-transition-glow {
    position: absolute;

    width: 420px;
    height: 420px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(32, 199, 107, 0.075),
            rgba(212, 175, 55, 0.025) 38%,
            transparent 70%
        );

    filter: blur(12px);

    animation:
        tvgTransitionGlow 2.8s
        ease-in-out infinite;
}


@keyframes tvgTransitionGlow {

    0%,
    100% {
        transform: scale(0.92);
        opacity: 0.65;
    }

    50% {
        transform: scale(1.08);
        opacity: 1;
    }

}


/* =========================================================
   INNER
   ========================================================= */

.tvg-transition-inner {
    position: relative;
    z-index: 5;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 18px;

    opacity: 0;
    transform: translateY(10px) scale(0.97);

    transition:
        opacity 0.5s ease,
        transform 0.5s ease;
}


#tvg-page-transition.is-active
.tvg-transition-inner {

    opacity: 1;

    transform:
        translateY(0)
        scale(1);
}


/* =========================================================
   BRAND
   ========================================================= */

.tvg-transition-brand {

    display: flex;
    align-items: baseline;

    gap: 5px;

    font-family:
        "Space Grotesk",
        "Inter",
        sans-serif;

    font-size: 34px;
    font-weight: 800;

    letter-spacing: -1.5px;

    text-shadow:
        0 0 25px rgba(32, 199, 107, 0.12);
}


.tvg-transition-brand .tvg {
    color: #ffffff;
}


.tvg-transition-brand .playz {
    color: #20c76b;

    text-shadow:
        0 0 18px rgba(32, 199, 107, 0.35);
}


/* =========================================================
   CASINO DIVIDER
   ========================================================= */

.tvg-transition-divider {

    display: flex;
    align-items: center;

    gap: 12px;

    color: #d4af37;

    font-size: 13px;

    opacity: 0.75;
}


.tvg-transition-divider::before,
.tvg-transition-divider::after {

    content: "";

    width: 45px;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(212, 175, 55, 0.55)
        );
}


.tvg-transition-divider::after {

    background:
        linear-gradient(
            90deg,
            rgba(212, 175, 55, 0.55),
            transparent
        );
}


/* =========================================================
   LOADING BAR
   ========================================================= */

.tvg-transition-line {

    position: relative;

    width: 150px;
    height: 3px;

    overflow: hidden;

    border-radius: 999px;

    background:
        rgba(255, 255, 255, 0.07);

    box-shadow:
        0 0 15px rgba(32, 199, 107, 0.05);
}


.tvg-transition-line::after {

    content: "";

    position: absolute;

    top: 0;
    left: -70px;

    width: 70px;
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            transparent,
            #20c76b,
            #d4af37,
            transparent
        );

    box-shadow:
        0 0 12px rgba(32, 199, 107, 0.6);

    animation:
        tvgLoadingBar 1.15s
        ease-in-out infinite;
}


@keyframes tvgLoadingBar {

    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(220px);
    }

}


/* =========================================================
   TEXT
   ========================================================= */

.tvg-transition-text {

    color:
        rgba(255, 255, 255, 0.42);

    font-family:
        "Inter",
        sans-serif;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 3px;

    text-transform: uppercase;
}


/* =========================================================
   PAGE EXIT
   ========================================================= */

body.tvg-page-transition-exit {
    overflow: hidden;
}


body.tvg-page-transition-exit > * {

    transition:
        opacity 0.4s ease,
        transform 0.4s ease;
}


body.tvg-page-transition-exit >
*:not(#tvg-page-transition) {

    opacity: 0.08;

    transform:
        scale(0.995);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .tvg-transition-brand {
        font-size: 28px;
    }

    .tvg-transition-line {
        width: 120px;
    }

    .tvg-casino-symbol {
        font-size: 48px;
    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    #tvg-page-transition,
    .tvg-transition-inner {

        transition: none !important;
    }

    .tvg-casino-symbol,
    .tvg-transition-glow,
    .tvg-transition-line::after {

        animation: none !important;
    }

}