/*
 * ============================================================
 * custom.css  —  AAbet project overrides
 * ============================================================
 * PURPOSE:
 *   Designer-delivered styles live in style.css / style-theme-*.css.
 *   Do NOT edit those files for project-specific fixes.
 *   Put extra / override rules here so design CSS stays clean.
 *
 * LOAD ORDER (master.master):
 *   1) style-theme-N.css  (designer)
 *   2) custom.css         (this file — wins on equal specificity)
 *
 * NOTES:
 *   - Daily page: keep aabet reward-item design; CSS below only
 *     patches missing states that exist in CMM_28WINS_MYR.
 * ============================================================
 */

/* ------------------------------------------------------------
 * Daily Reward — ended / empty state
 * Source reference: CMM_28WINS_MYR .btn-bfr / button.btn-dly
 * Designer style.css does not define these classes.
 * ------------------------------------------------------------ */
.daily-bg {
    position: relative; /* anchor for absolute ended-state button */
}

.btn-bfr {
    position: absolute;
    bottom: 30%;
    left: 0;
    right: 0;
    margin: 0 auto;
    display: flex;
    gap: 10px;
    justify-content: center;
    list-style: none;
    z-index: 2;
}

button.btn-dly {
    background: #faca46;
    color: #000;
    border: none;
    padding: 10px 30px;
    box-shadow: 0 0 5px 2px #faca4678;
    font-size: 18px;
    border-radius: 10px;
    font-weight: bold;
    cursor: default;
}

/* ------------------------------------------------------------
 * Daily Reward — login CTA inside .daily-rewards
 * Designer grid is 7 columns; a single login button should
 * not sit in one cell — stretch / center it instead.
 * ------------------------------------------------------------ */
.daily-rewards.daily-rewards-login {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 120px;
    padding: 30px 0;
}

.daily-rewards.daily-rewards-login .dep-submit-btn {
    width: auto;
    min-width: 260px;
    max-width: 100%;
}

/* ------------------------------------------------------------
 * Daily Reward — today's claimable day highlight
 * (JS adds .claimable on the current_day card)
 * ------------------------------------------------------------ */
.reward-item.claimable .reward-box {
    outline: 2px solid #faca46;
    box-shadow: 0 0 12px rgba(250, 202, 70, 0.55);
    transform: translateY(-2px);
}

.reward-item.claimable .reward-box:hover {
    transform: translateY(-4px);
}

/* ------------------------------------------------------------
 * Daily Reward — claimed overlay readability on small screens
 * ------------------------------------------------------------ */
@media (max-width: 767px) {
    .claimed-mark span {
        font-size: 11px;
    }

    .claimed-mark i {
        font-size: 18px;
        margin-bottom: 2px;
    }

    button.btn-dly {
        font-size: 14px;
        padding: 8px 16px;
    }
}

/* ------------------------------------------------------------
 * Language switcher
 * CN label is CJK; keep a system font in the stack so
 * 简体中文 is not lost when Outfit has no Chinese glyphs.
 * The header button is shown on mobile as well.
 * ------------------------------------------------------------ */
.lang-select .dropdown-item {
    font-family: "Outfit", "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
}

/* Logged-in bottom bar hides the deposit shortcut; keep the other 4 items even. */
.menu-wrapper.no-wallet-entry {
    grid-template-columns: repeat(4, 1fr);
}

@media only screen and (max-width: 991px) {
    .lang-select {
        display: block;
        flex-shrink: 0;
    }

    .lang-select .dropdown-menu {
        z-index: 20;
    }
}

/* ------------------------------------------------------------
 * Announcement marquee — iPhone cut / restart
 *
 * .ann-bar sits in a flex row next to the icon and is
 * width:100%. The nowrap line's min-content size is the whole
 * announcement, and justify-content:center then centers that
 * overflow. iOS resolves padding-left:100% and translateX(-100%)
 * against that circular width, so the loop is about half the
 * sentence: it cuts off and starts again from the middle.
 *
 * Give the track a definite leftover width (basis 0 + grow).
 * iPhone motion is started from _announce_bar.ascx with a measured
 * pixel `left` animation — a transformed layer wider than the GPU
 * texture (~4096 device px) is painted in two pieces, which is the
 * other way the line dies halfway and comes back mid-sentence.
 * ------------------------------------------------------------ */
.announce-wrap {
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

.ann-icon {
    flex: 0 0 auto;
}

.ann-bar {
    flex: 1 1 0%;
    width: auto;
    min-width: 0;
    overflow: hidden;
}

.announce-text {
    box-sizing: content-box;
}

#index-promo-slider .carousel-item > a {
    position: relative;
    display: block;
}

.announce-text.is-ios-marquee {
    display: block;
    width: max-content;
    max-width: none;
    position: relative;
    left: 0;
    animation: none !important;
    -webkit-animation: none !important;
}

/* ------------------------------------------------------------
 * Popup announcement
 * Designer rules live in style-theme-*.css and target
 * #announcementpopup plus .announcementmodal .close.
 * This modal is #popup_announcement_listing_index_modal.
 * Bootstrap 5 also paints a native button face on .close.
 * ------------------------------------------------------------ */
.announcementmodal .modal-dialog,
.announcementmodal .modal-content {
    overflow: visible;
}

.announcementmodal .close {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    color: #fff;
    padding: 0;
    line-height: 1;
    cursor: pointer;
}

#popup_announcement_listing_index_modal .carousel-control-prev {
    left: -22px;
}

#popup_announcement_listing_index_modal .carousel-control-next {
    right: -22px;
}

#popup_announcement_listing_index_modal .announcementpopupimg img {
    max-width: 100%;
    height: auto;
}
