*,
*::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;
}

.bg-pc {
    display: none;
}

.bg-mb {
    display: block;
}

/* ===== 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;
}

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

.logo {
    width: 160px;
    max-width: 42vw;
    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%;
}

.access-bar {
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 94%;
    height: auto;
    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;
}

.banner-mb {
    display: block;
}

.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);
}

/* ===== Flags ===== */
.flags {
    flex-shrink: 0;
    margin-top: 28px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 28px;
    padding: 4px 16px 20px;
}

.flag-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: inherit;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font: inherit;
}

.flag-item img {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.flag-item span {
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}
@media (max-width: 430px) {
    .logo-wrap {
        padding-top: 20px;
    }

    .logo {
        width: 140px;
    }

    .flags {
        margin-top: 24px;
        gap: 30px;
        padding: 0 10px 16px;
    }

    .flag-item img {
        width: 84px;
        height: 84px;
    }

    .flag-item span {
        font-size: 10px;
    }
}

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

    .logo {
        width: 120px;
    }

    .flags {
        gap: 12px;
    }

    .flag-item img {
        width: 76px;
        height: 76px;
    }

    .flag-item span {
        font-size: 9px;
    }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .cta-pc {
        bottom: 1% !important;
    }
}

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

    .bg-pc {
        display: block;
    }

    .bg-mb {
        display: none;
    }

    .banner-pc {
        display: block;
    }

    .banner-mb {
        display: none;
    }

    .page {
        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;
    }

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

    .pc-box {
        display: block;
        position: relative;
        width: 100%;
        max-width: 603px;
    }

    .banner {
        width: 100%;
        height: auto;
        max-width: 603px;
        max-height: 467px;
        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;
    }

    .flags {
        margin-top: 0;
        gap: 56px;
        padding: 10px 40px 22px;
    }

    .flag-item img {
        width: 110px;
        height: 110px;
    }

    .flag-item span {
        font-size: 13px;
        letter-spacing: 0.8px;
    }
}

/* ===== 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;
    }

    .flags {
        gap: 80px;
        padding: 12px 60px 24px;
    }

    .flag-item img {
        width: 130px;
        height: 130px;
    }

    .flag-item span {
        font-size: 14px;
    }
}

@media (min-width: 2560px) {
    .banner-wrap {
        margin-top: 10px;
    }
    .cta-pc {
        bottom: -1%;
    }
    .banner-wrap {
        align-items: center;
    }
}

/* ===== Turkey Popup ===== */
.popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.75);
}

.popup-overlay[hidden] {
    display: none;
}

.popup-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.popup-content img {
    display: block;
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 12px;
}

.popup-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: #000;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}