body {
    background-image: url(/event/action_img/backguard.png);
    background-size: cover;
    position: relative;
}

.theads_top {
    padding: 2%;
    background-color: #181d3a;
    text-align: center;
    font-size: 24px;
    color: white;
}

.reward_content {
    background-color: #ecddbb !important;
    color: #181d3a !important;
    text-align: center;
    border: #181d3a 2px solid;
    padding: 2%;
}

.rankList {
    font-size: 20px;
}

.swiper {
    --swiper-navigation-color: rgb(22, 20, 20);
}

.Swiper-thead {
    --swiper-navigation-size: 14px;
}

.swiper-wrapper img {
    display: block;
    margin: 0 auto;
    margin-top: 5px;
}

.slide-game {
    text-align: center;
    font-size: 18px;
    background: #1f4e7a;
    /* Center slide text vertically */
    display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
}

.swiper-slide img {
    display: block;
    object-fit: cover;
}

.mini_size {
    width: 18%;
}

.small_size {
    width: 35%;
}

.normal_size {
    width: 50%;
}

.card {
    font-size: 12px;
    display: inline-block !important;
    background-color: #ecddbb !important;
    border: none !important;
    text-align: center;
}

.card img {
    max-width: 100%;
    margin: 0 auto;
}

.reward_card {
    width: fit-content;
    display: inline-block;
}

.reward_card img {
    max-width: 70px;
}

#win_countMethod,
#multiple_countMethod li {
    list-style-type: none;
}

.loading {
    background-color: #0b608a;
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: 99;
}

.load_box {
    width: 50%;
    padding-top: 20%;
    text-align: center;
    margin: 0 auto;
}

.get_reward_list {
    display: none;
    background-color: #0b608a;
    width: 100%;

    border: #70bfe8 4px solid;
    position: absolute;
    left: 0;
    z-index: 98;
    margin-top: 8px;
}

.item_detail_list {
    display: none;
    background-color: #0b608a;
    width: 100%;

    border: #70bfe8 4px solid;
    position: absolute;
    left: 0;
    z-index: 98;
    margin-top: 8px;
}

.active_list {
    background-color: #0b608a !important;
}

.close {
    color: white;
    font-size: 40px;
    position: absolute;
    right: 13px;
    background-color: rgb(22, 20, 20, 0.5);
    padding-left: 16px;
    padding-right: 16px;
    border-radius: 50%;
    margin-top: 90px;
}

.close:hover {
    color: #000;
}

.nav_select {
    width: 100%;
    height: 60px;
    background-color: rgb(0, 0, 0, 0);
    z-index: 99;
    position: absolute;
    top: 1px;
}

.logo_top img {
    max-width: 8%;
    position: fixed;
    left: 15px;
    top: 5px;
    z-index: 95;
}

/* 語系選單專用（position:fixed + right:6px 就是「釘在右上角」的意思）。
   ⚠️ 原本寫成無前綴的 .dropdown button / .dropdown ul，會誤打頁面上任何 dropdown ——
   查詢列的下拉鏡像（.select-dd）也是 .dropdown 內的 <button>，被這條 position:fixed
   打到就會整排脫離版面流、清單內容高度歸零。故限縮到 .nav_select（語系選單所在的容器，
   partials/navSelect.ejs），行為對既有語系選單完全不變。 */
.nav_select .dropdown button {
    background-color: #ecddbb !important;
    color: black !important;
    position: fixed;
    right: 6px;
    z-index: 99;
}

.nav_select .dropdown ul {
    background-color: #ecddbb !important;
}

.banner_content img {
    width: 100%;
}

.banner_content_cn {
    position: absolute;
    top: 12%;
    left: 25%;
    z-index: 3;
}

.banner_content_en {
    position: absolute;
    top: 12%;
    left: 25%;
    z-index: 3;
}

.banner_content_cn img {
    width: 92%;
}

.banner_content_vn {
    position: absolute;
    top: 15%;
    left: 25%;
    z-index: 3;
}

.banner_content_vn img {
    width: 93%;
}

.banner_content_en img {
    width: 95%;
}

.get_reward,
.item_detail {
    margin-top: 10px;
    display: block;
    margin: 0 auto;
    border-radius: 5px;
    background-color: #70bfe8;
    font-size: 20px;
    font-weight: bolder;
    color: white;
    /* padding-left: 15px; */
    padding-bottom: 5px;
    padding-top: 5px;
    text-align: center;
    text-shadow:
        0 0 50px #0d0d6e,
        0 0 2px #0d0d6e,
        0 0 5px #0d0d6e,
        0 0 2px #0d0d6e,
        0 0 2px #0d0d6e !important;
}

.tiger {
    position: absolute;
    top: 23%;
    left: 1%;
    z-index: 3;
}

.board {
    position: absolute;
    top: 4%;
    left: 18%;
    z-index: 2;
}

.money {
    position: absolute;
    top: 62%;
    left: 40%;
    z-index: 3;
}

.money img {
    width: 11%;
}

.form-select-sm,
.select-dd__toggle,
.select-dd__menu .dropdown-item {
    background-color: #ecddbb !important;
    color: #181d3a !important;
    font-size: 22px !important;
    font-weight: bolder !important;
}

/* ── 下拉選單鏡像（select_dropdown.js）────────────────────────────────────────
   原生 <select> 展開的清單由瀏覽器/OS 繪製，吃不到頁面 CSS，導致清單與欄位的
   字級/底色/寬度不一致、位置又由瀏覽器決定（選項多時會往上翻或貼齊視窗）。
   故改用 Bootstrap dropdown 當「鏡像」：原生 select 只留作狀態載體並視覺隱藏。
   ⚠️ 字級刻意不寫在這裡 —— 上方 .form-select-sm 及其 5 個 RWD 斷點的選擇器已把
      .select-dd__toggle / .select-dd__menu .dropdown-item 一併涵蓋，框與清單因此
      必然同字級。改字級請一律改那幾處，不要在此另開一份。
   ⚠️ 選擇器一律用 .rank_select 前綴拉高權重 —— rank.css 比 bootstrap.min.css 先載入，
      同權重會被 .btn / .dropdown-menu / .dropdown-item 蓋掉。
   ────────────────────────────────────────────────────────────────────────── */

/* 狀態載體：值與 change 事件仍走這顆 select，只是不顯示（沿用 visually-hidden 手法）。 */
.rank_select .select-dd__native {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    opacity: 0;
    pointer-events: none;
}

/* 收合狀態：外觀比照 .form-select-sm（padding/邊框/圓角/靠左/單行截斷）。 */
.rank_select .select-dd__toggle {
    position: relative;
    display: block;
    width: 100%;
    padding: 0.25rem 2.25rem 0.25rem 0.5rem;
    line-height: 1.5;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-border-radius-sm);
}

/* 箭頭釘在右緣，位置比照 .form-select 的背景箭頭（right .75rem、垂直置中）。 */
.rank_select .select-dd__toggle::after {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    margin-left: 0;
    transform: translateY(-50%);
}

/* 展開清單：寬度＝欄位寬。data-bs-display="static" 已停用 Popper，清單固定貼在
   欄位正下方（.dropdown-menu[data-bs-popper]{top:100%;left:0}），代價是不會自動
   避開視窗邊界 —— 期數選項是「期數 × 每期輪數」可達數十筆，故務必保留限高與捲動。 */
.rank_select .select-dd__menu {
    --bs-dropdown-min-width: 0;
    --bs-dropdown-padding-y: 0;
    --bs-dropdown-bg: #ecddbb;
    --bs-dropdown-border-color: #181d3a;
    /* 項目左右內距從 Bootstrap 預設的 1rem 收到 .5rem。
       為什麼：清單捲動時捲軸吃掉約 15~17px，加上兩側各 1rem，項目的可用文字寬
       （W-32-捲軸 ≒ W-47）反而比收合欄位（W-8-36 = W-44）還窄 → 同一段文字
       「欄位顯示一行、展開後卻折成兩行」。收到 .5rem 後變成 W-16-捲軸 ≒ W-31，
       比欄位寬十幾 px，凡是欄位放得下一行的文字，清單必定也是一行。
       ⚠️ 要調這個值先算：W - 2×padding - 捲軸 ≥ W - 44（欄位可用寬），
          捲軸取最寬的 17px（Windows 傳統捲軸）→ padding 上限 13.5px。 */
    --bs-dropdown-item-padding-x: 0.5rem;
    width: 100%;
    max-height: 50vh;
    overflow-y: auto;
    /* 細捲軸並套本頁色票：除了好看，也讓捲軸少吃幾 px、上面的換算更寬鬆。
       舊版 WebKit（iOS Safari）不支援 → 走系統覆蓋式捲軸（不佔寬），只會更寬鬆。 */
    scrollbar-width: thin;
    scrollbar-color: #181d3a #ecddbb;
}

/* 長活動名稱換行，不要把清單撐寬（蓋掉 .dropdown-item 的 white-space:nowrap）。
   刻意「不」跟著收合欄位那樣單行截斷 —— 欄位寬度有限，清單是唯一能看到完整活動名稱的
   地方。上面的內距換算已保證只有「真的超過欄位寬」的文字才會折行。 */
.rank_select .select-dd__menu .dropdown-item {
    white-space: normal;
}

/* hover/選中態：上方 .dropdown-item 的 background-color 帶 !important，
   Bootstrap 的 --bs-dropdown-link-*-bg 會被蓋掉，故此處也必須用 !important。 */
.rank_select .select-dd__menu .dropdown-item:hover,
.rank_select .select-dd__menu .dropdown-item:focus {
    background-color: #dcc9a2 !important;
}

.rank_select .select-dd__menu .dropdown-item.active {
    background-color: #d0b98a !important;
}

#search {
    font-size: 22px !important;
    font-weight: bolder !important;
}

.nav-tabs {
    --bs-nav-tabs-border-width: none !important;
}

.nav-tabs .active {
    border: none !important;
}

.content {
    border: solid 5px #70bfe8;
    background-color: #1f4e7a;
    width: 100%;
    z-index: 5;
}

.nav-tabs li {
    width: 50%;
    display: block;
    margin: 0 auto;
}

li button {
    width: 100%;
}

li .active {
    background-color: #1f4e7a !important;
}

.top_item {
    background-color: #70bfe8 !important;
}

.btn-country {
    background-color: #ecddbb !important;
    display: block;
    width: 85% !important;
    border-radius: 50px !important;
    box-shadow: 0 10px 10px -5px #211e1c !important;
}

.country_item {
    max-width: 25% !important;
}

.country_item .active {
    background-color: #e77e23 !important;
}

.game_time_flag .active {
    background-color: #e77e23 !important;
}

.rank_time img {
    max-width: 29px;
    border-radius: 50%;
    margin-right: 5px;
}

li h1 {
    text-shadow:
        0 0 50px #0d0d6e,
        0 0 2px #0d0d6e,
        0 0 5px #0d0d6e,
        0 0 2px #0d0d6e,
        0 0 2px #0d0d6e !important;
    color: white;
}

.game img {
    padding: 5%;
    width: 60%;
    display: block;
    margin: 0 auto;
}

/* .game_title,
.game_time,
.game_content,
.warning,
.get_reward_title,
.item_detail_title {
  background-image: url(/event/rank_img/title_frame.png);
  background-size: cover;
} */

/* .warning_two {
  background-image: url(/event/rank_img/title_frame.png);
  background-size: cover;
} */

/* .game_title img,
.game_time img,
.game_content img,
.warning img,
.get_reward_title img,
.item_detail_title img {
  max-width: 100%;
  max-height: 85px;
  margin: 0 auto;
  display: block;
} */

/* .warning_two img {
  max-width: 100%;
  max-height: 85px;
  margin: 0 auto;
  display: block;
} */

.flag {
    width: 3%;
    position: absolute;
}

.gap {
    display: none;
}

.country_time {
    width: 100%;
}

.single_country {
    width: 93%;
    padding-left: 5%;
}

.single_country h2 {
    padding: 2px;
}

.country_list {
    position: relative;
    z-index: 9;
    background-color: #ecddbb;
    padding: 20px;
    border-radius: 10px;
    border: solid 3px white;
}

.calendar {
    z-index: 10;
    width: 8%;
    right: 0;
    top: -8%;
    position: absolute;
}

.trophy {
    z-index: 10;
    width: 8%;
    left: 0;
    bottom: -10%;
    position: absolute;
}

.game_content_title {
    font-size: 25px;
    color: white;
    text-shadow:
        0 0 50px #0d0d6e,
        0 0 2px #0d0d6e,
        0 0 5px #0d0d6e,
        0 0 2px #0d0d6e,
        0 0 2px #0d0d6e !important;
}

.game_content_title_ex {
    font-size: 18px;
    display: inline-block;
    width: 93%;
    margin-top: 3px;
    color: #bebebe;
}

.game_content_title_note {
    font-size: 20px;
    color: white;
    text-shadow:
        0 0 50px #0d0d6e,
        0 0 2px #0d0d6e,
        0 0 5px #0d0d6e,
        0 0 2px #0d0d6e,
        0 0 2px #0d0d6e !important;
}

.number {
    display: inline;
    width: 6%;
    vertical-align: top;
    color: white;
    text-shadow:
        0 0 50px #0d0d6e,
        0 0 2px #0d0d6e,
        0 0 5px #0d0d6e,
        0 0 2px #0d0d6e,
        0 0 2px #0d0d6e !important;
    font-size: 24px;
}

.number_note,
.number_one {
    display: inline;
    width: 6%;
    vertical-align: top;
    color: white;
    text-shadow:
        0 0 50px #0d0d6e,
        0 0 2px #0d0d6e,
        0 0 5px #0d0d6e,
        0 0 2px #0d0d6e,
        0 0 2px #0d0d6e !important;
    font-size: 19px;
}

.clock {
    margin-left: auto;
    width: 25%;
}

/* .table_box {
  display: block;
  overflow-x: auto;
  white-space: nowrap;
} */

.table {
    border-radius: 10px !important;
    border: solid 3px #181d3a !important;
    table-layout: fixed;
}

thead {
    background-color: #181d3a !important;
    text-align: center;
    font-size: 24px;
    border-radius: 12px !important;
    text-shadow:
        0 0 50px #18181a,
        0 0 2px #0d0d6e,
        0 0 5px #0d0d6e,
        0 0 2px #0d0d6e,
        0 0 2px #0d0d6e !important;
    color: white !important;
}

tbody td,
tbody th {
    border-right: #181d3a solid 3px !important;
    border-bottom: #181d3a solid 3px !important;
    color: #0d0d6e !important;
    font-size: 28px;
    font-weight: bolder !important;
    background-color: #ecddbb !important;
}

option {
    font-weight: bolder !important;
}

.Coming_soon {
    display: block;
    text-align: center;
}

.logo img {
    width: 15%;
    padding: 2%;
    margin: 0 auto;
    display: block;
}

.logo p {
    text-align: center;
    color: #fdfdfe;
}

.ingame {
    display: none;
}

.single_game img {
    max-width: 300px;
}

.point_number_outside {
    background: linear-gradient(to bottom, rgb(227, 229, 134) 0%, rgb(170, 126, 6) 100%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: #07081d solid 1px;
    box-shadow: 0px 0px 44px 9px rgba(246, 222, 3, 0.3);
}

.point_number_inside {
    background: linear-gradient(to bottom, red 0%, rgb(62, 7, 7) 100%);
    box-shadow: 6px -8px 4px -11px rgba(228, 223, 173, 1) inset;
    position: relative;
    top: 4px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    margin: 0 auto;
    text-align: center;
    font-size: 40px;
    font-weight: bolder;
}

.point_number_inside p {
    text-align: center;
    position: relative;
    bottom: 4px;
}

.img-box {
    max-width: 90%;
}

.img-box img {
    width: 60%;
}

.swiper-slide-cards .reward_cards {
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide-cards .prop-card-wrapper {
    position: relative;
    width: 220px;
    height: 300px;
}

.swiper-slide-cards .prop-card-wrapper img {
    width: 220px;
    height: 300px;
    margin-top: 0px;
    border-radius: 10px;
}

.swiper-slide-cards .prop-card-content,
.swiper-slide-cards .prop-card-name {
    position: absolute;
}

.swiper-slide-cards .prop-card-content {
    left: 0px;
    bottom: 102px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide-cards .prop-card-level {
    width: 138px;
    font-size: 30px;
    text-align: center;
    padding-left: 26px;
}

.swiper-slide-cards .prop-card-bet {
    flex: 1;
    font-size: 30px;
}

/* 同上，獎勵一覽的大卡（220x300）。同一張底圖換算：藥丸寬 193.6px、高 39.0px，
   距卡底 56.8~95.8px。目前最長的名字在 16px 下是 190.8px，對可用寬 194px
   只剩 3.2px 餘裕 —— 還沒爆，但和小卡一樣完全沒有防線，下一個長名字就會輪到它。
   故一併套上同樣的鎖：折行時會在藥丸內變兩行，而不是往上壓到 Lv 那排。
   16px 字配 19px 行高仍大於字級，單行外觀與原本幾乎無差（中心位移 1.5px）。 */
.swiper-slide-cards .prop-card-name {
    bottom: 57px;
    left: 0px;
    width: 100%;
    height: 39px;
    padding: 0 13px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 16px;
    line-height: 19px;
    overflow: hidden;
}

.swiper-slide-cards .prop-card-text {
    color: #f3d92f;
    font-weight: 700;
}

.reward-bonus-card {
    display: flex;
    justify-content: center;
    align-items: center;
}

.bonus-card-wrapper {
    position: relative;
    width: 220px;
    height: 300px;
}

.bonus-card-wrapper img {
    width: 220px;
    height: 300px;
}

.bonus-card-wrapper .bonus-card-text {
    position: absolute;
    bottom: 54px;
    left: 0px;
    width: 100%;
    text-align: center;
    color: #f3d92f;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.5;
}

.reward-bounty-card {
    display: flex;
    justify-content: center;
    align-items: center;
}

.bounty-card-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.bounty-card-img {
    width: 100px;
    height: 100px;
}

.bounty-card-img img {
    width: 100%;
    height: 100%;
}

.bounty-card-text {
    padding-left: 6px;
    color: #e97d1e;
    font-weight: 700;
    font-size: 30px;
    /* width: 164px; */
    /* text-align: left; */
}

.bounty-card-text .bounty-card-text-bet,
.bounty-card-text .bounty-card-text-name {
    font-size: 40px;
}

@media (max-width: 460px) {
    .bounty-card-img {
        width: 80px;
        height: 80px;
    }

    .bounty-card-text {
        font-size: 30px;
    }

    .bounty-card-text .bounty-card-text-bet,
    .bounty-card-text .bounty-card-text-name {
        font-size: 36px;
    }
}

@media (max-width: 400px) {
    .bounty-card-text {
        font-size: 22px;
    }

    .bounty-card-text .bounty-card-text-bet,
    .bounty-card-text .bounty-card-text-name {
        font-size: 28px;
    }
}

@media (max-width: 360px) {
    .bounty-card-text {
        font-size: 14px;
    }

    .bounty-card-text .bounty-card-text-bet,
    .bounty-card-text .bounty-card-text-name {
        font-size: 20px;
    }
}

.swiper-slide-ranks-cards .ranks-reward_cards {
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide-ranks-cards .ranks-prop-card-wrapper {
    position: relative;
    width: 90px;
    height: 120px;
}

.swiper-slide-ranks-cards .ranks-prop-card-wrapper img {
    width: 90px;
    height: 120px;
    margin-top: 0px;
    border-radius: 10px;
}

.swiper-slide-ranks-cards .ranks-prop-card-content,
.swiper-slide-ranks-cards .ranks-prop-card-name {
    position: absolute;
}

.swiper-slide-ranks-cards .ranks-prop-card-content {
    left: 0px;
    bottom: 40px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide-ranks-cards .ranks-prop-card-level {
    width: 58px;
    font-size: 12px;
    text-align: center;
    padding-left: 12px;
}

.swiper-slide-ranks-cards .ranks-prop-card-bet {
    flex: 1;
    font-size: 12px;
    padding-left: 6px;
}

/* 遊戲名。深色藥丸是「畫在卡片 PNG 裡」的，CSS 只是把字疊上去 ——
   量過 060_card_en.png（300x407 縮到 90x120）：藥丸寬 79.2px、高 15.6px，
   距卡底 22.7~38.3px；上一排 Lv/xN 藥丸的底緣在 39.9px。
   原本這個盒子 width:100%(90px) 比藥丸還寬、又沒限制高度，錨點卻釘在 bottom：
   名字一折行盒子就從 11px 長到 22px，多出來的高度只能「往上長」，直接壓進 Lv 那排
   —— 就是 bug 0011667 的「出框」（實測往上溢 6px）。
   ⚠️ 這是 PHP 舊版就有的既有缺陷（該段 CSS 與 markup 兩版逐位元組相同、
   自 hot-event commit edd7f10 引入後從未改過），不是移植造成的。
   ⚠️ 只有非中文語系會踩到：中文名最寬 61.4px 永遠碰不到 90px；而 9 個語系
   （en/th/vi/ja/es/pt-PT/pt-BR/id/ko）共用同一套英文名，78 個遊戲名中有 3 個
   （最長 TP Make a Killing Fishing 104.5px）超過 90px 會折行。
   修法：盒高釘死成藥丸高(15px)＋行高壓到 7.5px 讓兩行剛好塞滿＋overflow 兜住
   萬一的第三行 —— 盒子永遠不會變高，就永遠不可能再往上撞。
   ⚠️ padding 只能收 5px（可用寬 80px）。收到 6px 會讓可用寬變 78px，目前壓線的
   5 個名字（TP Fortune Fishing、Maya Golden City3/4/6/9，皆 78.9~79.1px）
   會從單行變成兩行 —— 反而製造新問題。 */
.swiper-slide-ranks-cards .ranks-prop-card-name {
    bottom: 23px;
    left: 0px;
    width: 100%;
    height: 15px;
    padding: 0 5px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 8px;
    line-height: 7.5px;
    overflow: hidden;
}

.swiper-slide-ranks-cards .ranks-prop-card-text {
    color: #f3d92f;
    font-weight: 700;
}

.swiper-slide-ranks-cards .ranks-reward-bonus-card {
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide-ranks-cards .ranks-bonus-card-wrapper {
    position: relative;
    width: 90px;
    height: 120px;
}

.swiper-slide-ranks-cards .ranks-bonus-card-wrapper img {
    width: 90px;
    height: 120px;
    margin-top: 0px;
    border-radius: 10px;
}

.swiper-slide-ranks-cards .ranks-bonus-card-wrapper .ranks-bonus-card-text {
    position: absolute;
    bottom: 20px;
    left: 0px;
    width: 100%;
    text-align: center;
    color: #f3d92f;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

.ranks-reward-bounty-card {
    display: flex;
    justify-content: center;
    align-items: center;
    /* width: 264px;
  height: 90px; */
    width: 100%;
    height: 100%;
}

.ranks-bounty-card-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ranks-bounty-card-img {
    width: 90px;
    height: 90px;
}

.ranks-bounty-card-img img {
    width: 100%;
    height: 100%;
    margin-top: 0px;
}

.ranks-bounty-card-text {
    padding-left: 6px;
    color: #e97d1e;
    font-weight: 700;
    font-size: 30px;
    /* width: 164px;
  text-align: left; */
}

.ranks-bounty-card-text .ranks-bounty-card-text-bet,
.ranks-bounty-card-text .ranks-bounty-card-text-name {
    font-size: 40px;
}

@media (max-width: 1000px) {
    .ranks-bounty-card-wrapper {
        display: block;
        justify-content: unset;
        align-items: unset;
    }

    .ranks-bounty-card-img {
        width: 100%;
        height: 100%;
    }

    .ranks-bounty-card-img img {
        max-width: 90px;
        max-height: 90px;
    }

    .ranks-bounty-card-text {
        padding-left: 0px;
        text-align: center;
    }

    .ranks-bounty-card-text .ranks-bounty-card-text-bet,
    .ranks-bounty-card-text .ranks-bounty-card-text-name {
        font-size: 32px;
    }
}

@media (max-width: 600px) {
    .ranks-bounty-card-text {
        font-size: 14px;
    }

    .ranks-bounty-card-text .ranks-bounty-card-text-bet,
    .ranks-bounty-card-text .ranks-bounty-card-text-name {
        font-size: 18px;
    }
}

@media (max-width: 370px) {
    .ranks-bounty-card-text {
        font-size: 12px;
    }

    .ranks-bounty-card-text .ranks-bounty-card-text-bet,
    .ranks-bounty-card-text .ranks-bounty-card-text-name {
        font-size: 16px;
    }
}

.round-time-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 6px 0;
    gap: 12px;
}

.round-time-text {
    color: #1f4e7a;
    font-weight: 700;
    font-size: 30px;
    text-align: center;
    font-family: monospace;
}

.round-time-data {
    width: 220px;
    background-color: #1f4e7a;
    border-radius: 6px;
    color: #ffffff;
    font-weight: 700;
    font-size: 30px;
    text-align: center;
}

@media (max-width: 1199px) {
    .flag {
        width: 4%;
        height: 560px;
        position: absolute;
    }

    .flag h2 {
        height: 15%;
    }

    .gap {
        display: block;
    }

    .rankList {
        font-size: 14px;
    }
}

@media (max-width: 1000px) {
    .flag h2 {
        height: 14%;
    }

    .logo_top img {
        max-width: 15%;
    }

    .form-select-sm,
    .select-dd__toggle,
    .select-dd__menu .dropdown-item {
        background-color: #ecddbb !important;
        color: #181d3a !important;
        /* font-size: 22px !important; */
        font-size: 20px !important;
        font-weight: bolder !important;
    }

    #search {
        /* font-size: 22px !important; */
        font-size: 20px !important;
        font-weight: bolder !important;
    }

    /* .game_title img,
  .game_time img,
  .game_content img,
  .warning img {
    max-height: 95px;
    margin: 0 auto;
    display: block;
  } */

    .warning_style {
        width: 12% !important;
    }

    .clock {
        margin-left: auto;
        width: 30%;
        font-size: 12px;
        padding: 5px;
        border-radius: 10px;
    }

    .theads_top {
        padding: 2%;
        background-color: #181d3a;
        text-align: center;
        font-size: 18px;
        color: white;
    }

    thead {
        background-color: #181d3a !important;
        color: white;
        text-align: center;
        font-size: 18px;
    }

    tbody td,
    tbody th {
        border-right: #181d3a solid 3px !important;
        border-bottom: #181d3a solid 3px !important;
        color: #0d0d6e !important;
        font-size: 22px;
        background-color: #ecddbb !important;
    }

    /* #dropdownMenuButton,
  .dropdown-menu {
    max-width: 140px;
    font-size: 16px;
    font-weight: bolder !important;
  } */
}

@media (max-width: 900px) {
    .swiper-slide-ranks-cards .ranks-bounty-card-text .ranks-bounty-card-text-bet,
    .swiper-slide-ranks-cards .ranks-bounty-card-text .ranks-bounty-card-text-name {
        font-size: 30px;
    }
}

@media (max-width: 780px) {
    .swiper-slide-ranks-cards .ranks-reward-bounty-card {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 90px;
        height: 120px;
    }

    .swiper-slide-ranks-cards .ranks-bounty-card-wrapper {
        width: 90px;
        height: 120px;
        display: block;
        justify-content: unset;
        align-items: unset;
    }

    .swiper-slide-ranks-cards .ranks-bounty-card-img {
        width: 90px;
        height: 90px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .swiper-slide-ranks-cards .ranks-bounty-card-img img {
        width: 100%;
        height: 100%;
        margin-top: 0px;
    }

    .swiper-slide-ranks-cards .ranks-bounty-card-text {
        width: 90px;
        height: 30px;
        color: #e97d1e;
        font-weight: 700;
        font-size: 20px;
        display: flex;
        justify-content: center;
        align-items: center;
        padding-left: 0px;
    }

    .swiper-slide-ranks-cards .ranks-bounty-card-text .ranks-bounty-card-text-bet,
    .swiper-slide-ranks-cards .ranks-bounty-card-text .ranks-bounty-card-text-name {
        font-size: 22px;
    }

    .swiper-slide-ranks-cards .ranks-bounty-card-text .ranks-bounty-card-text-x {
        margin: 0 2px;
    }
}

@media (max-width: 880px) {
    /* #dropdownMenuButton,
  .dropdown-menu {
    width: 29% !important;
    font-size: 17px;
  } */

    .single_country h2 {
        font-size: 25px;
        padding: 7px;
    }

    .round-time-text {
        font-size: 25px;
    }

    .round-time-data {
        width: 180px;
        font-size: 25px;
    }

    .img-box img {
        width: 100%;
    }

    .close {
        font-size: 28px;
        position: absolute;
        right: 10px;
        background-color: rgb(22, 20, 20, 0.5);
        padding-left: 10px;
        padding-right: 10px;
        border-radius: 50%;
        margin-top: 65px;
    }

    .get_reward,
    .item_detail {
        /* width: 90%; */
        width: 94%;
        font-size: 16px;
    }
}

@media (max-width: 770px) {
    .flag {
        width: 5%;
        position: absolute;
    }

    .flag h2 {
        height: 12%;
    }

    .single_country h2 {
        font-size: 22px;
        padding: 7px;
    }

    .round-time-text {
        font-size: 22px;
    }

    .round-time-data {
        width: 156px;
        font-size: 22px;
    }

    .country_item {
        width: 48% !important;
    }

    .btn-country {
        background-color: #ecddbb !important;
        display: block;
        width: 99% !important;
        font-size: 12px !important;
    }

    .rankList {
        font-size: 10px;
    }
}

@media (max-width: 700px) {
    .active_btn_vn,
    .rank_btn_vn {
        font-size: 20px;
    }

    .active_btn_th,
    .rank_btn_th {
        font-size: 20px;
    }

    .flag {
        width: 4%;
        position: absolute;
    }

    .flag h2 {
        height: 9%;
    }

    .single_country h2 {
        font-size: 15px;
        padding: 7px;
    }

    .round-time-text {
        font-size: 15px;
    }

    .round-time-data {
        width: 120px;
        font-size: 15px;
    }

    /* .game_title img,
  .game_time img,
  .game_content img,
  .warning img {
    max-width: 90%;
    max-height: 32px;
    margin: 0 auto;
    display: block;
  } */

    .clock {
        margin-left: auto;
        width: 40%;
        padding: 5px;
        border-radius: 10px;
    }

    .theads_top {
        padding: 2%;
        background-color: #181d3a;
        text-align: center;
        font-size: 13px;
        color: white;
    }

    thead {
        background-color: #181d3a !important;
        color: white;
        text-align: center;
        font-size: 13px;
    }

    tbody td,
    tbody th {
        border-right: #181d3a solid 3px !important;
        border-bottom: #181d3a solid 3px !important;
        color: #0d0d6e !important;
        font-size: 15px;
        background-color: #ecddbb !important;
    }

    /* .warning_two img {
    max-width: 25%;
    max-height: 50px;
    margin: 0 auto;
    display: block;
  } */
}

@media (max-width: 680px) {
    .form-select-sm,
    .select-dd__toggle,
    .select-dd__menu .dropdown-item {
        font-size: 18px !important;
    }

    #search {
        font-size: 18px !important;
    }
}

@media (max-width: 650px) {
    .active_btn_vn,
    .rank_btn_vn {
        font-size: 15px;
    }

    /* .warning_two img {
    max-width: 38%;
    max-height: 85px;
    margin: 0 auto;
    display: block;
  } */

    .form-select-sm,
    .select-dd__toggle,
    .select-dd__menu .dropdown-item {
        background-color: #ecddbb !important;
        color: #181d3a !important;
        font-size: 16px !important;
        font-weight: bolder !important;
    }

    #search {
        font-size: 16px !important;
    }

    .single_game img {
        max-width: 150px;
    }

    .swiper-slide img {
        display: block;
        object-fit: cover;
    }

    .mini_size {
        width: 22%;
    }

    .small_size {
        width: 40%;
    }

    .normal_size {
        width: 60%;
    }

    .card img {
        max-width: 60px;
        margin: 0 auto;
    }

    .swiper-button-next,
    .swiper-button-prev {
        --swiper-navigation-size: 16px;
        --swiper-navigation-top-offset: 50%;
        --swiper-navigation-sides-offset: 10px;
    }

    .get_reward,
    .item_detail {
        width: 100%;
        font-size: 12px;
        white-space: nowrap;
    }
}

@media (max-width: 600px) {
    .form-select-sm,
    .select-dd__toggle,
    .select-dd__menu .dropdown-item {
        font-size: 14px !important;
    }

    #search {
        font-size: 14px !important;
    }
}

@media (max-width: 480px) {
    /* #dropdownMenuButton,
  .dropdown-menu {
    max-width: 60px;
    font-size: 16px;
    font-weight: bolder !important;
  } */

    .lang_name {
        display: none;
    }

    .card {
        width: 100%;
        font-size: 12px;
        text-align: center;
        display: inline-block !important;
        background-color: #ecddbb !important;
        border: none !important;
    }

    .nav_select {
        width: 100%;
        height: 45px;
        background-color: rgb(0, 0, 0, 0);
        z-index: 99;
        position: absolute;
        top: 1px;
    }

    .flag {
        width: 8%;
        position: absolute;
        left: 6%;
    }

    .flag h2 {
        height: 50px;
    }

    .single_country h2 {
        font-size: 15px;
        padding: 6px;
    }

    thead {
        background-color: #181d3a !important;
        color: white;
        text-align: center;
        font-size: 12px;
    }

    .logo_top img {
        max-width: 24%;
    }

    tbody td,
    tbody th {
        border-right: #181d3a solid 1px !important;
        border-bottom: #181d3a solid 1px !important;
    }

    /* .form-select-sm {
    background-color: #ecddbb !important;
    color: #181d3a !important;
    font-size: 14px !important;
    font-weight: bolder !important;
  } */

    /* #search {
    font-size: 14px !important;
  } */

    .game_content_title {
        font-size: 15px;
        color: white;
        text-shadow:
            0 0 9px #0d0d6e,
            0 0 3px #0d0d6e,
            0 0 5px rgb(118, 115, 115),
            0 0 2px rgb(118, 115, 115),
            0 0 2px rgb(118, 115, 115);
    }

    .game_content_title_ex {
        font-size: 12px;
        display: inline-block;
        width: 93%;
        margin-top: 3px;
        color: #bebebe;
    }

    .clock {
        margin-left: auto;
        width: 50%;
        padding: 2px;
        border-radius: 10px;
    }

    tbody td,
    tbody th {
        border-right: #181d3a solid 3px !important;
        border-bottom: #181d3a solid 3px !important;
        color: #0d0d6e !important;
        /* font-size: 16px; */
        font-size: 12px;
        background-color: #ecddbb !important;
    }

    .game img {
        padding: 5%;
        width: 65%;
        display: block;
        margin: 0 auto;
    }

    /* #dropdownMenuButton,
  .dropdown-menu {
    width: 36% !important;
    font-size: 16px;
  } */

    /* .warning_two img {
    max-width: 25%;
    max-height: 80px;
    margin: 0 auto;
    display: block;
  } */

    .banner_content_en {
        position: absolute;
        top: 30%;
        left: 25%;
        z-index: 3;
    }

    .thead_top {
        font-size: 20px;
    }

    .reward_next::after {
        max-width: 20px !important;
    }
}

@media (max-width: 380px) {
    tbody td,
    tbody th {
        font-size: 10px;
    }
}

@media (max-width: 1000px) {
    .title-wrapper {
        height: 68px;
    }
}

@media (max-width: 700px) {
    .title-wrapper {
        height: 32px;
    }
}

.cus-container {
    /* --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 0; */
    width: 100%;
    /* padding-right: calc(var(--bs-gutter-x)* .5);
  padding-left: calc(var(--bs-gutter-x)* .5); */
    padding-right: 0.75rem;
    padding-left: 0.75rem;
    margin-right: auto;
    margin-left: auto;
}

@media (max-width: 1200px) {
    .cus-container {
        max-width: 1140px;
    }
}

@media (max-width: 992px) {
    .cus-container {
        max-width: 960px;
    }
}

@media (max-width: 768px) {
    .cus-container {
        max-width: 720px;
    }
}

@media (max-width: 576px) {
    .cus-container {
        max-width: 540px;
    }
}
