/* =========================================================
   PEWJAY OFFICIAL
   OPENING.CSS
   Cinematic Blue Night Opening
   Slide-Down Countdown
   ========================================================= */


/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html,
body {

    width: 100%;
    min-height: 100%;

    font-family:
        "Inter",
        Arial,
        sans-serif;

    background: #020914;

}


/* =========================================================
   OPENING SCREEN
   ========================================================= */

.opening-screen {

    position: relative;

    width: 100%;
    min-height: 100vh;
    min-height: 100svh;

    display: flex;

    align-items: center;
    justify-content: center;

    overflow: hidden;

    color: #FFFFFF;

}


/* =========================================================
   BACKGROUND PHOTO
   ========================================================= */

.opening-background {

    position: absolute;

    inset: 0;

    z-index: 0;

    background-image:
        url("../images/hero/hero-bg.jpg");

    background-position:
        center center;

    background-size:
        cover;

    background-repeat:
        no-repeat;

    transform:
        scale(1.05);

    animation:
        openingBackground
        18s
        ease-in-out
        infinite
        alternate;

}


/* =========================================================
   DARK BLUE OVERLAY
   ========================================================= */

.opening-overlay {

    position: absolute;

    inset: 0;

    z-index: 1;

    background:
        linear-gradient(
            180deg,
            rgba(1, 9, 19, 0.48) 0%,
            rgba(2, 15, 29, 0.68) 45%,
            rgba(1, 7, 15, 0.94) 100%
        );

}


/* =========================================================
   BLUE CENTER LIGHT
   ========================================================= */

.opening-overlay::before {

    content: "";

    position: absolute;

    inset: 0;

    background:
        radial-gradient(
            circle at 50% 45%,
            rgba(50, 180, 255, 0.17),
            transparent 43%
        );

}


/* =========================================================
   TOP DARK FADE
   ========================================================= */

.opening-overlay::after {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(0, 5, 12, 0.38),
            transparent 35%,
            transparent 65%,
            rgba(0, 4, 10, 0.55)
        );

}


/* =========================================================
   AMBIENT LIGHT
   ========================================================= */

.opening-light {

    position: absolute;

    z-index: 2;

    border-radius: 50%;

    pointer-events: none;

    filter:
        blur(35px);

}


/* =========================================================
   LIGHT ONE
   ========================================================= */

.opening-light-one {

    width: 550px;

    height: 550px;

    left: -260px;

    bottom: -280px;

    background:
        radial-gradient(
            circle,
            rgba(35, 160, 255, 0.18),
            transparent 70%
        );

    animation:
        openingLightOne
        9s
        ease-in-out
        infinite
        alternate;

}


/* =========================================================
   LIGHT TWO
   ========================================================= */

.opening-light-two {

    width: 500px;

    height: 500px;

    right: -260px;

    top: -230px;

    background:
        radial-gradient(
            circle,
            rgba(65, 190, 255, 0.14),
            transparent 70%
        );

    animation:
        openingLightTwo
        11s
        ease-in-out
        infinite
        alternate;

}


/* =========================================================
   CONTENT
   ========================================================= */

.opening-content {

    position: relative;

    z-index: 5;

    width:
        min(900px, 92%);

    padding:
        50px 20px;

    display: flex;

    flex-direction: column;

    align-items: center;

    text-align: center;

    animation:
        openingContent
        1.2s
        cubic-bezier(
            0.16,
            1,
            0.3,
            1
        )
        forwards;

}


/* =========================================================
   LABEL
   ========================================================= */

.opening-label {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    color:
        rgba(120, 215, 255, 0.90);

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 4px;

    text-transform: uppercase;

}


.opening-label::before,
.opening-label::after {

    content: "";

    width: 32px;

    height: 1px;

    background:
        rgba(90, 205, 255, 0.55);

    box-shadow:
        0 0 8px
        rgba(70, 200, 255, 0.25);

}


/* =========================================================
   LOGO
   ========================================================= */

.opening-logo {

    width:
        clamp(135px, 19vw, 215px);

    margin-top: 22px;

    display: flex;

    align-items: center;

    justify-content: center;

}


.opening-logo img {

    width: 100%;

    height: auto;

    display: block;

    object-fit: contain;

    filter:
        drop-shadow(
            0 10px 28px
            rgba(0, 0, 0, 0.55)
        );

    animation:
        logoFloat
        5s
        ease-in-out
        infinite;

}


/* =========================================================
   WELCOME
   ========================================================= */

.opening-content h1 {

    margin-top: 25px;

    color: #FFFFFF;

    font-size:
        clamp(
            48px,
            9vw,
            100px
        );

    font-weight: 900;

    line-height: 0.85;

    letter-spacing:
        -5px;

    text-transform: uppercase;

    text-shadow:
        0 10px 40px
        rgba(0, 0, 0, 0.65);

}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.opening-description {

    width:
        min(600px, 100%);

    margin-top: 20px;

    color:
        rgba(225, 242, 252, 0.72);

    font-size: 11px;

    line-height: 1.8;

    letter-spacing:
        1px;

}


/* =========================================================
   COUNTDOWN
   ========================================================= */

.opening-countdown {

    margin-top: 42px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 14px;

}


/* =========================================================
   COUNTDOWN ITEM
   ========================================================= */

.countdown-item {

    position: relative;

    width: 100px;

    height: 105px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    border-top:
        1px solid
        rgba(100, 205, 255, 0.25);

    border-bottom:
        1px solid
        rgba(100, 205, 255, 0.12);

    background:
        linear-gradient(
            180deg,
            rgba(30, 120, 180, 0.12),
            rgba(2, 15, 28, 0.22)
        );

    box-shadow:
        inset 0 1px 20px
        rgba(50, 170, 230, 0.025);

}


/* =========================================================
   COUNTDOWN TOP LIGHT
   ========================================================= */

.countdown-item::before {

    content: "";

    position: absolute;

    top: 0;

    left: -30%;

    width: 160%;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #64D4FF,
            transparent
        );

    box-shadow:
        0 0 14px
        rgba(80, 205, 255, 0.45);

    animation:
        countdownLine
        4s
        ease-in-out
        infinite;

}


/* =========================================================
   COUNTDOWN NUMBER
   ========================================================= */

.countdown-item strong {

    position: relative;

    display: block;

    color: #FFFFFF;

    font-size:
        clamp(
            32px,
            5vw,
            52px
        );

    font-weight: 800;

    line-height: 1;

    font-variant-numeric:
        tabular-nums;

    text-shadow:
        0 0 20px
        rgba(70, 195, 255, 0.22);

}


/* =========================================================
   SLIDE-DOWN NUMBER
   ========================================================= */

.countdown-item strong.slide-down {

    animation:
        countdownSlideDown
        0.55s
        cubic-bezier(
            0.22,
            1,
            0.36,
            1
        );

}


/* =========================================================
   SLIDE-DOWN KEYFRAME
   ========================================================= */

@keyframes countdownSlideDown {

    0% {

        opacity: 0;

        transform:
            translateY(-45px);

        filter:
            blur(5px);

    }

    45% {

        opacity: 1;

        transform:
            translateY(7px);

        filter:
            blur(0);

    }

    70% {

        transform:
            translateY(-2px);

    }

    100% {

        opacity: 1;

        transform:
            translateY(0);

        filter:
            blur(0);

    }

}


/* =========================================================
   COUNTDOWN LABEL
   ========================================================= */

.countdown-item span {

    margin-top: 10px;

    color:
        rgba(120, 210, 255, 0.58);

    font-size: 6px;

    font-weight: 800;

    letter-spacing: 2px;

}


/* =========================================================
   SEPARATOR
   ========================================================= */

.countdown-separator {

    margin-top: -15px;

    color:
        rgba(100, 210, 255, 0.48);

    font-size: 20px;

    font-weight: 400;

    animation:
        separatorPulse
        2s
        ease-in-out
        infinite;

}


/* =========================================================
   STATUS
   ========================================================= */

.opening-status {

    margin-top: 28px;

    color:
        rgba(120, 215, 255, 0.75);

    font-size: 7px;

    font-weight: 800;

    letter-spacing: 3px;

    text-transform: uppercase;

    animation:
        statusPulse
        3s
        ease-in-out
        infinite;

}


/* =========================================================
   PROGRESS BAR
   ========================================================= */

.opening-progress {

    position: relative;

    width:
        min(320px, 70%);

    height: 2px;

    margin-top: 16px;

    overflow: hidden;

    background:
        rgba(130, 210, 255, 0.12);

}


/* =========================================================
   PROGRESS BAR FILL
   ========================================================= */

.opening-progress span {

    position: absolute;

    left: 0;

    top: 0;

    width: 0%;

    height: 100%;

    background:
        linear-gradient(
            90deg,
            rgba(50, 170, 255, 0.25),
            #65D2FF,
            rgba(50, 170, 255, 0.25)
        );

    box-shadow:
        0 0 12px
        rgba(70, 200, 255, 0.50);

    transition:
        width 0.8s linear;

}


/* =========================================================
   CORNER INFORMATION
   ========================================================= */

.opening-corner {

    position: absolute;

    z-index: 6;

    bottom: 28px;

    color:
        rgba(180, 220, 240, 0.35);

    font-size: 7px;

    font-weight: 700;

    letter-spacing: 3px;

}


.opening-corner-left {

    left: 30px;

}


.opening-corner-right {

    right: 30px;

}


/* =========================================================
   BACKGROUND ANIMATION
   ========================================================= */

@keyframes openingBackground {

    0% {

        transform:
            scale(1.05)
            translate3d(
                0,
                0,
                0
            );

    }

    100% {

        transform:
            scale(1.11)
            translate3d(
                -0.8%,
                -0.5%,
                0
            );

    }

}


/* =========================================================
   CONTENT REVEAL
   ========================================================= */

@keyframes openingContent {

    0% {

        opacity: 0;

        transform:
            translateY(35px);

    }

    100% {

        opacity: 1;

        transform:
            translateY(0);

    }

}


/* =========================================================
   LOGO FLOAT
   ========================================================= */

@keyframes logoFloat {

    0%,
    100% {

        transform:
            translateY(0);

    }

    50% {

        transform:
            translateY(-6px);

    }

}


/* =========================================================
   AMBIENT LIGHT ONE
   ========================================================= */

@keyframes openingLightOne {

    0% {

        opacity: 0.35;

        transform:
            translate(
                0,
                0
            )
            scale(0.9);

    }

    100% {

        opacity: 0.75;

        transform:
            translate(
                100px,
                -70px
            )
            scale(1.15);

    }

}


/* =========================================================
   AMBIENT LIGHT TWO
   ========================================================= */

@keyframes openingLightTwo {

    0% {

        opacity: 0.30;

        transform:
            translate(
                0,
                0
            )
            scale(0.9);

    }

    100% {

        opacity: 0.70;

        transform:
            translate(
                -90px,
                80px
            )
            scale(1.1);

    }

}


/* =========================================================
   COUNTDOWN LINE
   ========================================================= */

@keyframes countdownLine {

    0%,
    100% {

        opacity: 0.25;

        transform:
            translateX(-20px);

    }

    50% {

        opacity: 0.8;

        transform:
            translateX(20px);

    }

}


/* =========================================================
   SEPARATOR PULSE
   ========================================================= */

@keyframes separatorPulse {

    0%,
    100% {

        opacity: 0.30;

    }

    50% {

        opacity: 1;

        text-shadow:
            0 0 10px
            rgba(70, 200, 255, 0.40);

    }

}


/* =========================================================
   STATUS PULSE
   ========================================================= */

@keyframes statusPulse {

    0%,
    100% {

        opacity: 0.50;

    }

    50% {

        opacity: 1;

        text-shadow:
            0 0 12px
            rgba(80, 200, 255, 0.20);

    }

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 800px) {

    .opening-countdown {

        gap: 10px;

    }


    .countdown-item {

        width: 80px;

        height: 95px;

    }


    .countdown-separator {

        font-size: 18px;

    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .opening-content {

        width: 94%;

        padding:
            40px 10px;

    }


    .opening-label {

        font-size: 6px;

        letter-spacing: 2.5px;

    }


    .opening-label::before,
    .opening-label::after {

        width: 18px;

    }


    .opening-logo {

        width: 130px;

    }


    .opening-content h1 {

        margin-top: 20px;

        font-size:
            clamp(
                42px,
                15vw,
                65px
            );

        letter-spacing:
            -2px;

    }


    .opening-description {

        max-width: 330px;

        margin-top: 16px;

        font-size: 9px;

        line-height: 1.7;

    }


    .opening-countdown {

        margin-top: 32px;

        gap: 5px;

    }


    .countdown-item {

        width: 68px;

        height: 85px;

    }


    .countdown-item strong {

        font-size: 27px;

    }


    .countdown-item span {

        margin-top: 8px;

        font-size: 5px;

        letter-spacing: 1.2px;

    }


    .countdown-separator {

        margin-top: -15px;

        font-size: 14px;

    }


    .opening-status {

        margin-top: 24px;

        font-size: 6px;

        letter-spacing: 2px;

    }


    .opening-progress {

        width: 220px;

    }


    .opening-corner {

        bottom: 18px;

        font-size: 5px;

        letter-spacing: 2px;

    }


    .opening-corner-left {

        left: 18px;

    }


    .opening-corner-right {

        right: 18px;

    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {

    .opening-logo {

        width: 110px;

    }


    .opening-countdown {

        gap: 3px;

    }


    .countdown-item {

        width: 58px;

        height: 75px;

    }


    .countdown-item strong {

        font-size: 23px;

    }


    .countdown-item span {

        font-size: 4px;

        letter-spacing: 1px;

    }


    .countdown-separator {

        font-size: 12px;

    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .opening-background,
    .opening-light-one,
    .opening-light-two,
    .opening-logo img,
    .opening-content,
    .opening-status,
    .countdown-item::before,
    .countdown-separator {

        animation: none;

    }


    .countdown-item strong.slide-down {

        animation: none;

    }

}


/* =========================================================
   OPENING ACTION BUTTONS
   ========================================================= */

.opening-actions {

    margin-top: 24px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

}


/* =========================================================
   ACTION BUTTON
   ========================================================= */

.opening-action {

    min-height: 38px;

    padding:
        0 15px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    border:
        1px solid
        rgba(100, 210, 255, 0.20);

    background:
        rgba(3, 20, 35, 0.45);

    color:
        rgba(215, 240, 250, 0.75);

    font-family:
        "Inter",
        Arial,
        sans-serif;

    font-size: 7px;

    font-weight: 800;

    letter-spacing: 1.5px;

    text-decoration: none;

    cursor: pointer;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease,
        color 0.3s ease;

}


/* =========================================================
   ICON
   ========================================================= */

.opening-action i {

    color:
        #63D4FF;

    font-size: 11px;

}


/* =========================================================
   NOTIFICATION COUNT
   ========================================================= */

.notify-button strong {

    min-width: 18px;

    height: 18px;

    padding:
        0 5px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    border:
        1px solid
        rgba(100, 210, 255, 0.20);

    color:
        #63D4FF;

    font-size: 6px;

    font-weight: 800;

}


/* =========================================================
   HOVER
   ========================================================= */

.opening-action:hover {

    color:
        #FFFFFF;

    border-color:
        rgba(100, 210, 255, 0.55);

    background:
        rgba(20, 110, 160, 0.15);

    transform:
        translateY(-2px);

}


.opening-action:hover i {

    text-shadow:
        0 0 10px
        rgba(80, 205, 255, 0.65);

}


/* =========================================================
   CLICK
   ========================================================= */

.opening-action:active {

    transform:
        translateY(0)
        scale(0.97);

}


/* =========================================================
   NOTIFICATION ENABLED
   ========================================================= */

.notify-button.is-enabled {

    border-color:
        rgba(100, 220, 255, 0.55);

    color:
        #FFFFFF;

}


.notify-button.is-enabled i {

    color:
        #63D4FF;

    text-shadow:
        0 0 12px
        rgba(80, 205, 255, 0.65);

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .opening-actions {

        width: 100%;

        margin-top: 22px;

        gap: 7px;

    }


    .opening-action {

        min-height: 36px;

        padding:
            0 11px;

        gap: 6px;

        font-size: 6px;

        letter-spacing: 1px;

    }


    .opening-action i {

        font-size: 10px;

    }


    .notify-button strong {

        min-width: 16px;

        height: 16px;

        font-size: 5px;

    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {

    .opening-actions {

        gap: 5px;

    }


    .opening-action {

        min-height: 34px;

        padding:
            0 8px;

        font-size: 5px;

        letter-spacing: 0.8px;

    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .opening-action {

        transition: none;

    }

}