*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    background: #000;
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
}

/* ===== Background Video ===== */
.bg-video {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* ===== Page Layout ===== */
.page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-bottom: 16px;
    width: 100%;
    max-width: 500px;
    margin-inline: auto;
}

/* ===== Logo ===== */
.logo-wrap {
    flex-shrink: 0;
    padding-top: 48px;
    display: flex;
    justify-content: center;
}

.logo {
    width: 160px;
    max-width: 42vw;
    aspect-ratio: 931 / 441;
    height: auto;
    object-fit: contain;
    display: block;
}

/* ===== Banner – Mobile =====
   flex: 0 → không giãn theo chiều cao viewport
   height: auto → banner ôm theo tỉ lệ ảnh, flags nằm sát bên dưới
*/
.banner-wrap {
    position: relative;
    width: 100%;
    margin-top: 16%;
    flex: 0 0 auto;
    overflow: visible;
}

.banner-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 378 / 387;
}

.access-bar {
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 94%;
    aspect-ratio: 1360 / 106;
    height: auto;
    object-fit: contain;
    z-index: 3;
    display: block;
    pointer-events: none;
}

.banner {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center top;
}

.banner-pc {
    display: none;
    aspect-ratio: 609 / 467;
}

.banner-mb {
    display: block;
    aspect-ratio: 378 / 387;
}

.pc-box {
    display: none;
}

.cta-pc {
    display: none;
}

.cta-btn {
    position: absolute;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
    background: linear-gradient(to bottom, #2b1500, #120800);
    border: 2px solid #F97316;
    color: #F97316;
    font-size: clamp(13px, 3.8vw, 18px);
    font-weight: 900;
    text-transform: uppercase;
    padding: 10px 10px;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(220, 130, 0, 0.4), inset 0 0 8px rgba(0, 0, 0, 0.5);
    transition: box-shadow 0.2s, border-color 0.2s;
}

.cta-mb {
    top: auto;
    bottom: 4%;
    left: 51%;
    transform: translateX(-50%);
}

.cta-btn:hover {
    border-color: #ffa500;
    color: #ffa500;
    box-shadow: 0 0 22px rgba(255, 160, 0, 0.65), inset 0 0 8px rgba(0, 0, 0, 0.5);
}

/* ===== Link orbs ===== */
.link-orbs {
    flex-shrink: 0;
    margin-top: 12px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 18px;
    padding: 4px 12px 20px;
    width: 100%;
    max-width: 420px;
}

.link-orb {
    flex: 1 1 0;
    max-width: 120px;
    display: block;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.link-orb img {
    display: block;
    width: 100%;
    aspect-ratio: 213 / 256;
    height: auto;
    object-fit: contain;
}

.link-orb:hover {
    transform: translateY(-4px) scale(1.04);
    filter: drop-shadow(0 0 12px rgba(249, 115, 22, 0.55));
}

@media (max-width: 430px) {
    .logo-wrap {
        padding-top: 20px;
    }

    .logo {
        width: 140px;
    }

    .link-orbs {
        margin-top: 12px;
        gap: 12px;
        padding: 0 0px 16px;
        max-width: 360px;
    }
}

@media (max-width: 360px) {
    .logo-wrap {
        padding-top: 12px;
    }

    .logo {
        width: 120px;
    }

    .link-orbs {
        gap: 8px;
        max-width: 320px;
    }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .cta-pc {
        bottom: 1% !important;
    }
}

/* ===== Desktop (≥768px) ===== */
@media (min-width: 768px) {

    .banner-pc {
        display: block;
    }

    .banner-mb {
        display: none;
    }

    .page {
        max-width: none;
        justify-content: space-between;
        padding-bottom: 0;
    }

    .logo-wrap {
        padding-top: 22px;
    }

    .logo {
        width: 220px;
        max-width: 22vw;
    }

    .banner-wrap {
        margin-top: 72px;
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: visible;
        width: 90%;
        align-self: center;
    }

    .banner-frame {
        max-width: 603px;
        width: 100%;
        aspect-ratio: 609 / 467;
    }

    .access-bar {
        top: -16%;
        width: 100%;
    }

    .pc-box {
        display: block;
        position: relative;
        width: 100%;
        max-width: 603px;
        aspect-ratio: 609 / 467;
    }

    .banner {
        width: 100%;
        height: auto;
        max-width: 603px;
        object-fit: contain;
        object-position: center center;
    }

    .cta-mb {
        display: none;
    }

    .cta-pc {
        display: inline-block;
        top: unset;
        bottom: 0%;
        left: 50%;
        transform: translateX(-45%);
        font-size: 16px;
        padding: 10px 10px;
        border-radius: 15px;
    }

    .link-orbs {
        margin-top: 0;
        gap: 40px;
        padding: 10px 40px 22px;
        max-width: 520px;
    }

    .link-orb {
        max-width: 140px;
    }
}

/* ===== Large Desktop (≥1280px) ===== */
@media (min-width: 1280px) {
    .banner-wrap {
        margin-top: 72px;
        max-width: 1100px;
        width: 78%;
    }

    .logo {
        width: 260px;
    }

    .cta-btn {
        font-size: 22px;
        padding: 13px 10px;
    }

    .link-orbs {
        gap: 36px;
        padding: 12px 20px 24px;
        max-width: 620px;
    }

    .link-orb {
        max-width: 170px;
    }
}

@media (min-width: 2560px) {
    .banner-wrap {
        margin-top: 10px;
    }
    .cta-pc {
        bottom: -1%;
    }
    .banner-wrap {
        align-items: center;
    }
}
/* ===== Laptop (màn thấp): hạ pill "Tải APP" để không đè logo ===== */
@media (min-width: 768px) and (max-height: 900px) {
    .access-bar {
        top: calc(-16% + 14px);
    }
}
