/* ================= GLOBAL & VARS ================= */
:root {
    --gold-1: #FFD700;
    --gold-dark: #B8860B;
    --bg-dark: #140a05;
    --radius-xl: 22px;
    --topbar-h: 72px;
    --text-0: #FFF1C9;
    --text-1: #FFE7AF;
}

@font-face {
    font-family: 'CustomArialBlack'; /* ကိုယ်ကြိုက်တဲ့ နာမည်ပေးလို့ရပါတယ် */
    src: url('assets/fonts/ariblk.ttf') format('truetype'); /* ttf ဖိုင်ရှိတဲ့ လမ်းကြောင်း အမှန်ဖြစ်ရပါမယ် */
    font-weight: 900;
    font-style: normal;
    font-display: swap; /* ဖောင့်မပေါ်ခင် စာအရင်ပေါ်နေစေရန် */
}

body {
    background-color: #000;
    color: #fff;
    font-family: "Montserrat", sans-serif;
    margin: 0;
    padding-top: 78px; /* Topbar Height + Space */
    padding-bottom: 50px;
}

/* ================= LAYOUT ================= */
main.container {
    width: 100%;
    overflow-x: hidden;
    padding-left: 0;
    padding-right: 0;
}

@media (min-width: 992px) {
    main.container {
        max-width: 1090px;
        margin: 0 auto;
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* ================= BACKGROUNDS ================= */
.bg-fixed {
    position: fixed;
    inset: 0;
    z-index: -5;
    background: 
        radial-gradient(circle at 50% 0%, rgba(255, 208, 99, 0.15), transparent 60%),
        linear-gradient(180deg, #2e180e 0%, #1a0f0a 100%);
}

#snowCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

/* ================= TOPBAR ================= */
.topbar {
    height: var(--topbar-h);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    background: linear-gradient(180deg, rgba(34, 18, 10, 0.95) 0%, rgba(77, 40, 24, 0.98) 100%);
    border-bottom: 1.5px solid rgba(255, 208, 99, 0.9);
    backdrop-filter: blur(10px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-0);
    font-weight: 800;
    font-size: 20px;
}

/* ================= BUTTONS & PILLS ================= */
.pill-btn {
    border: 1px solid rgba(255, 227, 154, .22);
    background: rgba(255, 227, 154, .12);
    color: var(--text-0);
    border-radius: 999px;
    padding: 6px 12px;
    font-weight: 700;
    font-size: 12px;
    transition: 0.2s;
}

.pill-btn.primary {
    background: linear-gradient(135deg, rgba(255, 208, 99, .38), rgba(255, 184, 74, .22));
    color: #FFD700;
}

.balance-wrapper { display: flex; align-items: center; gap: 8px; }

.balance-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 4px 12px;
    min-width: 100px;
}

.bal-row { display: flex; justify-content: space-between; align-items: center; font-size: 10px; line-height: 1.4; }
.bal-val-main { color: #FFD700; font-weight: 800; }
.bal-val-safe { color: #00e5ff; font-weight: 700; }

.logout-btn {
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(255, 50, 50, 0.15); border: 1px solid rgba(255, 50, 50, 0.4);
    color: #ff4d4d; display: flex; align-items: center; justify-content: center; text-decoration: none;
}

/* ================= HERO SECTION ================= */
.hero-wrap { display: flex; flex-direction: column; }
@media (min-width: 1400px) { .hero-wrap { max-width: 100%; margin: 0 auto; } }

/* Swiper Container အချိုးအစားကို 1920x720 အတိအကျ ပြောင်းခြင်း */
.swiper.main-swiper {
    width: 100%; 
    aspect-ratio: 1920 / 720; /* ဒီအချိုးအစားက ပုံကို အပြည့်ပေါ်စေပါမည် */
    border-radius: 18px; 
    overflow: hidden; 
    background: #000;
    box-shadow: 0 12px 35px rgba(0,0,0,.55);
}

.swiper-slide img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; /* ပုံမပိပြားသွားစေရန် */
    object-position: center; 
}

@media (max-width: 768px) {
    .swiper.main-swiper { 
        width: 100vw; 
        margin-left: calc(50% - 50vw); 
        border-radius: 0; 
        aspect-ratio: 1920 / 720; /* ဖုန်းမှာလည်း ဘေးမပြတ်စေရန် မူရင်းအချိုးအတိုင်းထားပါမည် */
    }
}
.swiper-pagination-bullet-active { width: 24px; background: var(--gold-1); }

/* Marquee */
.marquee-box {
    background: rgba(20, 10, 5, 0.9); border-radius: 12px; border-top: 1px solid rgba(255, 208, 99, 0.2);
    padding: 2px 12px; display: flex; align-items: center; gap: 10px; overflow: hidden; z-index: 10;
}
.marquee-content { white-space: nowrap; overflow: hidden; width: 100%; color: #FFE7AF; font-size: 12px; font-weight: 600; }
.marquee-content span { display: inline-block; padding-left: 100%; animation: marquee 30s linear infinite; }
@keyframes marquee { 0% { transform: translate(0, 0); } 100% { transform: translate(-100%, 0); } }

@media (min-width: 769px) { .marquee-box.marquee-attached { border-radius: 18px 18px 0 0; border-bottom: 0; } .swiper.main-swiper { border-radius: 0 0 18px 18px; } }
@media (max-width: 768px) { .marquee-box.marquee-attached { width: 100vw; margin-left: calc(50% - 50vw); border-radius: 0; } .swiper.main-swiper { border-radius: 0; } }

/* ================= CATEGORY TABS (UPDATED SIZE & SPACING) ================= */
.scroll-container { 
    display: flex; 
    gap: 2px; /* ခလုတ် တစ်ခုနဲ့တစ်ခု အကွာအဝေးကို နီးသွားအောင် လျှော့ချလိုက်ပါတယ် */
    overflow-x: auto; 
    padding: 15px 5px; /* အပေါ်အောက် Space လျှော့လိုက်ပါတယ် */
    scrollbar-width: none; 
}
.scroll-container::-webkit-scrollbar { display: none; }
@media (min-width: 992px) { .scroll-container { justify-content: center; } }

.cat-btn {
    min-width: 70px; /* ခလုတ်အကျယ်ကို သေးလိုက်ပါတယ် */
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    gap: 6px; /* ပုံနဲ့ စာ ကြားက အကွာအဝေးကို ပိုကပ်သွားအောင် 3px ပဲ ထားလိုက်ပါတယ် */
    background: transparent; 
    border: none; 
    text-decoration: none; 
    position: relative;
    transition: all 0.3s ease;
}

.cat-btn img {
    width: 38px; /* ပုံအရွယ်အစားကို သေးလိုက်ပါတယ် */
    height: 38px;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
    filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.6)); /* အရိပ်ကို အချိုးကျ လျှော့ထားပါတယ် */
}

.cat-btn span { 
    font-size: 11px; /* စာလုံးအရွယ်အစားကို သေးလိုက်ပါတယ် */
    font-weight: 800; 
    color: rgba(255, 255, 255, 0.6); 
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* Active ဖြစ်တဲ့အချိန် Animation ပမာဏကိုလည်း အချိုးကျ လျှော့ထားပါတယ် */
.cat-btn.active img, .cat-btn:hover img {
    transform: translateY(-4px) scale(1.1); 
    filter: drop-shadow(0 3px 4px rgba(255, 215, 0, 0.5)); 
}

.cat-btn.active span, .cat-btn:hover span {
    color: #FFD700; 
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5); 
}

/* အောက်ခြေက Active မျဉ်းတိုလေးကိုပါ အချိုးကျ သေးပေးထားပါတယ် */
.cat-btn::after {
    content: '';
    position: absolute;
    bottom: -5px; 
    width: 0;
    height: 2px;
    background: #FFD700;
    border-radius: 5px;
    transition: width 0.3s ease;
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.6);
}
.cat-btn.active::after {
    width: 30px; 
}

/* ================= JACKPOT FIX ================= */
.jackpot-container {
    position: relative; width: 100%; height: 170px; margin-bottom: 5px;
    display: flex; align-items: center; justify-content: center;
}
.jackpot-bg-img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5)); padding-bottom: 20px; }
.jackpot-overlay { position: absolute; top: 58%; left: 50%; transform: translate(-50%, -50%); width: 100%; text-align: center; z-index: 10; }

/* ၁။ စာကို အလယ်တည့်တည့်ကျစေရန် Overlay ကို ပြင်ခြင်း */
.jackpot-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    padding-bottom: 3px; /* အရိပ် မပြတ်သွားအောင် */
}

/* ၂။ 3D အထူနဲ့ အရိပ်ကို လျှော့ချခြင်း */
.jackpot-amount {
    font-family: 'CustomArialBlack', 'Arial Black', Impact, sans-serif !important;
    font-size: 42px !important;
    font-weight: 900 !important;
    line-height: 1.2;
    display: inline-block;
    
    /* Drop-shadow တွေကို အများကြီးမသုံးတော့ဘဲ အနေတော်ပဲထားလိုက်ပါပြီ */
    filter: 
        drop-shadow(0px 2px 0px #804D00)
        drop-shadow(0px 4px 3px rgba(0, 0, 0, 0.4));
}

/* ၃။ အလယ်မှာလင်းပြီး အစွန်းမှာရင့်တဲ့ Gradient နဲ့ Border ထည့်ခြင်း */
.jackpot-amount .odometer-value,
.jackpot-amount .odometer-formatting-mark {
    /* ထိပ်နဲ့ အောက်ခြေမှာ ရင့်ပြီး အလယ်မှာ အဖြူရောင်ဘက်သွားတဲ့ လင်းတဲ့ရွှေရောင် */
    background: linear-gradient(180deg, #a05e01 0%, #ffc94b 35%, #fcebcc 50%, #fac55a 65%, #956400 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    color: transparent !important;
    
    /* စာလုံးဘေးက အညိုရင့်ရောင် ဘောင် (နည်းနည်းပါးလိုက်ပါတယ်) */
    -webkit-text-stroke: 1.5px #5e2f00 !important;
    
    padding: 0 2px;
}
/* ================= PROVIDER INFINITE LOOP ================= */
.provider-wrapper { position: relative; padding: 10px 0; margin-bottom: 15px; }
.swiper.provider-swiper { width: 100%; padding: 10px 5px; }
.provider-slide { width: auto; display: flex; justify-content: center; }

.pv-btn {
    min-width: 80px; max-width: 100px; height: 40px;
    background: linear-gradient(180deg, #2b1608 0%, #1a0b04 100%);
    border: 1px solid rgba(197, 160, 89, 0.3); border-radius: 8px;
    display: flex; align-items: center; justify-content: center; padding: 0 15px;
    cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 6px rgba(0,0,0,0.5);
}
.pv-btn span {
    color: #DBB670; font-size: 12px; font-weight: 700; letter-spacing: 0.5px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase;
}
.pv-btn.active, .pv-btn:hover {
    background: linear-gradient(0deg, #FFD700 0%, #FDB931 100%);
    border-color: #fff; transform: translateY(-2px); box-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}
.pv-btn.active span, .pv-btn:hover span { color: #4a1c06; text-shadow: none; }

/* ================= GAMES & WINNERS ================= */
.game-col { padding: 5px; margin-bottom: 5px; }
.col-4-mobile { width: 33.3333%; flex: 0 0 auto; }
@media (min-width: 992px) { .col-lg-2-desktop { width: 16.6666%; } }

.game-card-mini {
    border-radius: 16px; overflow: hidden; position: relative;
    background: #221008; border: 1px solid rgba(255, 227, 154, 0.15); box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}
.game-img { width: 100%; aspect-ratio: 1/1; background: linear-gradient(45deg, #5a361f, #8B5A3B); display:flex; align-items:center; justify-content:center; color:rgba(255,255,255,0.3); font-size:28px; }
.game-name { font-size: 11px; font-weight: 700; text-align: center; padding: 8px 4px; color: #FFE7AF; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.winners-stack-container { position: relative; height: 220px; overflow: hidden; mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%); -webkit-mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%); }
.winner-card { position: absolute; width: 100%; height: 70px; display: flex; align-items: center; padding: 0 12px; background: rgba(40, 20, 10, 0.9); border: 1px solid rgba(255, 215, 0, 0.3); border-left: 4px solid #FFD700; border-radius: 12px; opacity: 0; transition: 0.5s; }
.winner-card.active { opacity: 1; }
.w-info { flex-grow: 1; padding-left: 10px; } 
.w-game-name { color: #FFD700; font-size: 13px; font-weight: 800; } 
.w-user { color: #fff; font-size: 11px; } 
.w-amount { color: #0f0; font-weight: 800; font-size: 15px; }

.d-none { display: none !important; }

/* Blinking Animation for Real Time Dot */
@keyframes blink {
    0% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 rgba(0, 255, 0, 0.4); }
    50% { opacity: 0.5; transform: scale(1.1); box-shadow: 0 0 10px rgba(0, 255, 0, 0.8); }
    100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 rgba(0, 255, 0, 0.4); }
}

.live-dot {
    width: 8px; 
    height: 8px; 
    background-color: #00ff00; 
    border-radius: 50%; 
    display: inline-block;
    margin-right: 5px;
    animation: blink 1.5s infinite ease-in-out;
}