/* Use the newly added PNG backgrounds without changing their file format. */
body {
    background-image: url("../frontend/home/v1/images/fullBg.png") !important;
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 100% auto;
}

@media only screen and (max-width: 1023px) {
    body {
        background-image: url("../frontend/home/v1/images/smBg.png") !important;
        background-repeat: no-repeat;
        background-position: center top;
        background-size: 100% auto;
    }
}

.logo-top {
    display: block !important;
}

.main--game__show .text--brand {
    height: 0;
    margin-top: 0 !important;
    min-height: 0;
    overflow: hidden;
}

@media only screen and (max-width: 1023px) {
    .main--game__show .text--brand {
        height: 0;
        min-height: 0;
    }
}

/* Keep the desktop hero in the same 1920:1005 ratio as fullBg.png. */
@media only screen and (min-width: 1024px) {
    .game--brand__show,
    .game--brand__show > .limit__game {
        height: 52.34375vw;
        min-height: 0;
    }

    .game--brand__show {
        padding-bottom: 0;
        position: relative;
    }

    .game--brand__show .main--game__show .text--brand {
        margin-top: 0;
        min-height: 0;
    }

    .game--brand__show .box--download {
        position: absolute;
        right: 0;
        bottom: 1.875vw;
        left: 0;
        margin-top: 0;
        z-index: 3;
    }
}

/* Keep the mobile hero in the same 750:1423 ratio as smBg.png. */
@media only screen and (max-width: 1023px) {
    .game--brand__show,
    .game--brand__show > .limit__game {
        height: 189.733333vw;
        min-height: 0;
    }

    .game--brand__show {
        padding-bottom: 0;
        position: relative;
    }

    .game--brand__show .box--download {
        position: absolute;
        right: 0;
        bottom: 5vw;
        left: 0;
        margin-top: 0;
        z-index: 3;
    }
}

@media only screen and (min-width: 1024px) {
    .main--box__new.no-slides .box-list-new {
        width: 100%;
        margin-left: 0;
        margin-top: 0;
        float: none;
    }
}

.zalo-notice-modal[hidden] {
    display: none;
}

.zalo-notice-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.zalo-notice-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
}

.zalo-notice-modal__dialog {
    position: relative;
    width: min(420px, 94vw);
    border: 2px solid #ffd364;
    border-radius: 8px;
    background: #151515;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    color: #fff;
    padding: 26px 22px 24px;
    text-align: center;
}

.zalo-notice-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    background: #2f2f2f;
    color: #fff;
    cursor: pointer;
    font-size: 24px;
    line-height: 28px;
}

.zalo-notice-modal__icon {
    width: 54px;
    height: 54px;
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0aa8ff 0%, #0963de 52%, #17c88a 100%);
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 12px;
}

.zalo-notice-modal h2 {
    margin: 0 34px 10px;
    color: #ffd364;
    font-family: "tahomabold", Tahoma, Arial, sans-serif;
    font-size: 24px;
    line-height: 1.2;
}

.zalo-notice-modal p {
    margin: 0 0 18px;
    color: #e6e6e6;
    font-size: 15px;
    line-height: 1.5;
}

.zalo-notice-modal__action,
.zalo-notice-modal__missing {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 6px;
    padding: 0 18px;
    font-family: "tahomabold", Tahoma, Arial, sans-serif;
}

.zalo-notice-modal__action {
    background: linear-gradient(135deg, #0aa8ff 0%, #17c88a 100%);
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(10, 168, 255, 0.22);
}

.zalo-notice-modal__action:hover {
    filter: brightness(1.08);
}

.zalo-notice-modal__missing {
    background: #2a2a2a;
    color: #d8d8d8;
}

body.zalo-notice-open {
    overflow: hidden;
}
