/* =====================================================
   OVERLAY
===================================================== */

.game-notice-overlay {
    position: fixed;

    inset: 0;

    z-index: 99999;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 20px;

    background:
        rgba(0, 0, 0, .72);

    backdrop-filter: blur(5px);

    opacity: 0;

    visibility: hidden;

    transition:
        opacity .3s ease,
        visibility .3s ease;
}


/* mở popup */

.game-notice-overlay.show {
    opacity: 1;
    visibility: visible;
}


/* =====================================================
   NOTICE
===================================================== */

.game-notice {

    position: relative;

    width: min(440px, 100%);

    padding: 0px 28px 20px;

    overflow: hidden;

    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            #171c27,
            #090c12
        );

    border: 1px solid rgba(255, 193, 7, .45);

    box-shadow:
        0 25px 80px rgba(0,0,0,.7),
        0 0 45px rgba(255, 145, 0, .12);

    transform:
        translateY(-180px)
        scale(.88)
        rotateX(-10deg);

    opacity: 0;

    animation: none;
}


/* popup animation */

.game-notice-overlay.show .game-notice {

    animation:
        noticeDrop .7s
        cubic-bezier(.18,.89,.32,1.28)
        forwards;
}


@keyframes noticeDrop {

    0% {
        transform:
            translateY(-180px)
            scale(.88)
            rotateX(-10deg);

        opacity: 0;
    }

    70% {
        transform:
            translateY(12px)
            scale(1.015)
            rotateX(0);

        opacity: 1;
    }

    100% {
        transform:
            translateY(0)
            scale(1)
            rotateX(0);

        opacity: 1;
    }
}

/* =====================================================
   CLOSE
===================================================== */

.notice-close {

    position: absolute;

    top: 13px;
    right: 13px;

    width: 34px;
    height: 34px;

    border: 1px solid rgba(255,255,255,.12);

    border-radius: 50%;

    background: rgba(255,255,255,.06);

    color: rgba(255,255,255,.7);

    cursor: pointer;

    transition: .2s;
}

.notice-close:hover {

    background: #ff3d22;

    color: white;

    transform: rotate(90deg);
}


/* =====================================================
   TOP TITLE
===================================================== */

.notice-top {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    margin-bottom: 10px;
}

.notice-line {

    width: 45px;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #ffc107
        );
}

.notice-line:last-child {

    background:
        linear-gradient(
            90deg,
            #ffc107,
            transparent
        );
}

.notice-label {

    color: #ffc107;

    font-size: 11px;

    font-weight: 1000;

    letter-spacing: 3px;
}

.notice-countdown {
    margin: 0 auto 14px;
    text-align: center;
}

.notice-countdown__label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.notice-countdown__time {
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 6px;
}

.notice-countdown__time span {
    min-width: 28px;
    padding: 4px 6px;
    border-radius: 6px;
    background: rgba(255, 193, 7, 0.12);
    border: 1px solid rgba(255, 193, 7, 0.35);
    color: #ffc107;
    font-size: 15px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.notice-countdown__time small {
    margin-right: 4px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 10px;
    font-weight: 600;
}

.notice-countdown.is-done .notice-countdown__label {
    color: #ffc107;
}

.notice-countdown.is-done .notice-countdown__time {
    display: none;
}


/* =====================================================
   ICON
===================================================== */

.notice-icon {
    width: 190px;
    height: 190px;

    margin: -25px auto -32px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: transparent;

    border: none;

    box-shadow: none;

    transform: none;
}

.notice-icon img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    filter:
        drop-shadow(1px 0 2px rgba(0,0,0,.5))
        drop-shadow(0 0 5px rgba(255,193,7,.2));
}

/* =====================================================
   TEXT
===================================================== */

.game-notice h2 {

    margin: 18px 0 4px;

    text-align: center;

    font-size: 27px;

    font-weight: 1000;

    color: white;

    letter-spacing: .5px;
}

.notice-subtitle {

    text-align: center;

    color: #ffc107;

    font-size: 11px;

    font-weight: 1000;

    letter-spacing: 2px;
}

.game-notice p {

    margin: 16px auto 22px;

    max-width: 350px;

    text-align: center;

    color: rgba(255,255,255,.62);

    font-size: 13px;

    line-height: 1.65;
}


/* =====================================================
   ACTION BUTTON
===================================================== */

.notice-actions {

    display: flex;

    flex-direction: column;

    gap: 9px;
}


.notice-btn {

    position: relative;

    min-height: 58px;

    display: flex;

    align-items: center;

    gap: 13px;

    padding: 9px 13px;

    text-decoration: none;

    color: white;

    border-radius: 10px;

    border: 1px solid rgba(255,255,255,.09);

    background:
        rgba(255,255,255,.045);

    transition: .22s;

    overflow: hidden;
}


.notice-btn::before {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            100deg,
            transparent,
            rgba(255,255,255,.08),
            transparent
        );

    transform: translateX(-120%);

    transition: .5s;
}

.notice-btn:hover::before {

    transform: translateX(120%);
}


.notice-btn:hover {

    transform: translateX(4px);

    border-color: rgba(255,193,7,.45);

    background:
        rgba(255,255,255,.075);
}


.notice-btn > i:first-child {

    width: 38px;
    height: 38px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 8px;

    font-size: 17px;
}


/* ZALO */

.notice-btn.zalo > i:first-child {

    background: #0068ff;

    color: white;
}


/* FACEBOOK */

.notice-btn.facebook > i:first-child {

    background: #1877f2;

    color: white;
}


/* GIFTCODE */

.notice-btn.giftcode > i:first-child {

    background:
        linear-gradient(
            135deg,
            #ffc107,
            #ff7200
        );

    color: #1c1200;
}

/* ANDROID */

.notice-btn.android > i:first-child {
    background: #3ddc84;
    color: #0d2818;
}

/* iOS */

.notice-btn.ios > i:first-child {
    background: linear-gradient(135deg, #555, #222);
    color: white;
}

/* WINDOWS */

.notice-btn.pc > i:first-child {
    background: #0078d4;
    color: white;
}

.notice-btn.is-current {
    border-color: rgba(255, 193, 7, .7);
    background: rgba(255, 193, 7, .1);
}


.notice-btn div {

    flex: 1;

    text-align: left;
}


.notice-btn strong {

    display: block;

    font-size: 13px;

    font-weight: 1000;
}


.notice-btn small {

    display: block;

    margin-top: 2px;

    color: rgba(255,255,255,.45);

    font-size: 10px;
}


.notice-btn .arrow {

    width: auto !important;
    height: auto !important;

    background: transparent !important;

    color: rgba(255,255,255,.3);

    font-size: 11px;

    transition: .2s;
}


.notice-btn:hover .arrow {

    color: #ffc107;

    transform: translateX(3px);
}


/* =====================================================
   LATER
===================================================== */

.notice-later {

    width: 100%;

    margin-top: 15px;

    padding: 8px;

    border: 0;

    background: transparent;

    color: rgba(255,255,255,.35);

    font-size: 11px;

    cursor: pointer;
}

.notice-later:hover {

    color: rgba(255,255,255,.7);
}

.notice-fullpage {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 6px;
    text-align: center;
    text-decoration: none;
    color: rgba(255, 193, 7, .75);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
}

.notice-fullpage:hover {
    color: #ffc107;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 500px) {

    .game-notice {
        padding: 4px 18px 19px;
        border-radius: 15px;
    }

    .game-notice h2 {
        font-size: 23px;
    }

    .game-notice p {
        font-size: 12px;
        margin-bottom: 18px;
    }

    .notice-btn {
        min-height: 54px;
    }

    .notice-icon {
        width: 158px;
        height: 158px;
        margin: -28px auto -28px;
        font-size: 24px;
    }
}
