
/* ==========================================
   SC88 PRO V2 - NO LOADING
========================================== */

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
    font-family: Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

button {
    outline: none;
    border: none;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}

/* ==========================================
   VIDEO NỀN
========================================== */

.video-wrapper {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    background: #000;
}

#bgVideo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    /* HIỆN VIDEO NGAY, KHÔNG CHỜ LOADING */
    opacity: 1;

    transform: translateZ(0);
    backface-visibility: hidden;
    pointer-events: none;
    user-select: none;
}

/* LỚP PHỦ VIDEO */
.overlay {
    position: absolute;
    inset: 0;

    background: linear-gradient(
        rgba(0, 0, 0, 0.18),
        rgba(0, 0, 0, 0.18)
    );

    pointer-events: none;
}

/* ==========================================
   VỊ TRÍ NÚT
========================================== */

.button-container {
    position: fixed;
    left: 50%;
    bottom: 85px;

    transform: translateX(-50%);

    z-index: 999;
    width: max-content;
    max-width: 95%;
}

/* ==========================================
   GLASS BUTTON
========================================== */

.glass-button {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 320px;
    height: 72px;

    border-radius: 22px;
    cursor: pointer;

    background: rgba(255, 255, 255, 0.18);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border: 1px solid rgba(255, 255, 255, 0.28);

    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.35),
        inset 0 1px rgba(255, 255, 255, 0.35),
        0 0 25px rgba(255, 255, 255, 0.08);

    transition:
        background 0.25s ease,
        box-shadow 0.25s ease,
        opacity 0.35s ease,
        width 0.25s ease,
        height 0.25s ease;

    animation: floating 3s ease-in-out infinite;
}

/* CHỮ TRÊN NÚT */
.btn-text {
    position: relative;
    z-index: 5;

    color: #fff;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1.5px;

    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.35);
    white-space: nowrap;
}

/* ==========================================
   ÁNH SÁNG LƯỚT QUA
========================================== */

.shine {
    position: absolute;
    top: 0;
    left: -180px;

    width: 90px;
    height: 100%;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.80),
        transparent
    );

    transform: skewX(-25deg);
    animation: shineMove 2.6s infinite;
    pointer-events: none;
}

/* VIỀN SÁNG */
.glass-button::before {
    content: "";

    position: absolute;
    inset: 0;

    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.4);

    pointer-events: none;
    z-index: 4;
}

/* HOVER */
.glass-button:hover {
    background: rgba(255, 255, 255, 0.28);

    box-shadow:
        0 15px 45px rgba(255, 255, 255, 0.18),
        0 0 40px rgba(255, 255, 255, 0.20),
        inset 0 1px rgba(255, 255, 255, 0.45);
}

/* CLICK */
.glass-button:active {
    animation-play-state: paused;
    transform: scale(0.96);
}

/* ==========================================
   HIỆU ỨNG NỔI
========================================== */

@keyframes floating {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

/* ÁNH SÁNG DI CHUYỂN */
@keyframes shineMove {
    0% {
        left: -150px;
    }

    100% {
        left: 420px;
    }
}

/* ==========================================
   RIPPLE EFFECT
========================================== */

.ripple {
    position: absolute;

    width: 18px;
    height: 18px;

    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);

    transform: translate(-50%, -50%) scale(0);
    animation: ripple 0.7s ease-out forwards;

    pointer-events: none;
    z-index: 3;
}

@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0.7;
    }

    100% {
        transform: translate(-50%, -50%) scale(20);
        opacity: 0;
    }
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 900px) {
    .button-container {
        bottom: 75px;
    }

    .glass-button {
        width: 280px;
        height: 64px;
        border-radius: 20px;
    }

    .btn-text {
        font-size: 20px;
    }
}

@media (max-width: 600px) {
    .button-container {
        bottom: 60px;
    }

    .glass-button {
        width: 240px;
        height: 58px;
        border-radius: 18px;
    }

    .btn-text {
        font-size: 18px;
        letter-spacing: 1px;
    }
}

@media (max-width: 400px) {
    .button-container {
        bottom: 50px;
    }

    .glass-button {
        width: 210px;
        height: 54px;
    }

    .btn-text {
        font-size: 16px;
    }
}

/* ==========================================
   END
========================================== */
