/* ตั้งค่าเริ่มต้น */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}

body {
    background-color: #ffd04b; /* สีพื้นหลังเหลืองทอง */
    color: #333;
}
.root {
     --scrollBarColor: #729dc8 var(--primary-light);
}
/* แถบด้านบน (App Bar) */
.app-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #729dc8; /* สีฟ้า */
    height: 80px;
    padding: 0 20px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
}

.app-bar .logo img {
    height: 40px;
    margin-left: 30px;
}
.top-menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
}
.top-menu a {
    color: #000000;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
}
/* จัดระเบียบกลุ่มปุ่มด้านบน */
.user-actions {
    display: flex;
    align-items: center;
    gap: 10px; /* ระยะห่างระหว่างแต่ละปุ่ม */
}

/* จัดรูปแบบพื้นฐานของปุ่ม */
.user-actions button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px; /* ระยะห่างระหว่างไอคอนกับตัวหนังสือ */
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
}

/* สีปุ่มเข้าสู่ระบบ */
.btn-login { 
    background-color: #ffd04b; 
    color: #333; 
}

/* สีปุ่มสมัครสมาชิก */
.btn-register { 
    background-color: transparent; 
    border: 1px solid #333 !important; /* เปลี่ยนสีกรอบให้มองเห็นชัดขึ้น */
    color: #333; 
}

/* ปรับขนาดไอคอนในปุ่มให้พอดี */
.user-actions button i.mdi {
    font-size: 18px;
}

/* ตั้งค่าปุ่มเปลี่ยนภาษาให้โปร่งใสและไม่มีขอบ */
.btn-lang {
    background-color: transparent !important;
    padding: 0 !important;
    border: none !important;
}

/* ทำให้รูปธงชาติเป็นวงกลม */
.flag-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%; /* บังคับให้รูปเป็นวงกลม */
    object-fit: cover;
    border: 1px solid #ccc; /* เพิ่มขอบบางๆ ให้ธงดูมีมิติ */
}
.menu-auto .menu-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
}
.menu-auto a img {
    width: 24px;
    height: 24px;
    margin-right: 6px;
    /* margin-top: 6px; */
    transform: skew(10deg);
}


/* โครงสร้างเลย์เอาต์หลัก */
.main-layout {
    display: flex;
   
    height: calc(100vh - 60px);
}

/* เมนูด้านซ้าย (Sidebar) */
.sidebar {
    width: 250px;
    background-color: #ffd04b; /* สีเหลืองอ่อน */
    padding: 0px 25px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
    position: fixed; 
    left: 0;
    top: 90px;
    z-index: 999; /* ตัวเลขเยอะ = ลอยอยู่ชั้นบนสุด */
    
    height: calc(100vh - 60px);
    overflow-y: auto;
    
    
}
.sidebar-icon {
    width: 45px;
    margin-top:auto;
    margin-bottom:auto;
    overflow-clip-margin: content-box;
    align-items: center;
}

.sidebar-item {
    display: flex;
    align-items: center;
    flex-direction: row;     
    background-color: #729dc8; /* สีฟ้าเมนู */
    color: #fff;
    padding: .75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    display: inline-flex;
    width: 100%;
    gap: 5px;
}
.side-text {
    margin-left: 10px;
    font-size: 16px;
    font-weight: bold;
    color: #0c0707;
}
.sidebar-item.active, .sidebar-item:hover {
    background-color: #3a8ccc; /* สีฟ้าเข้มเมื่อ hover */
}

/* พื้นที่เนื้อหาตรงกลาง */
.content-area {
    margin-left: 250px; /* เว้นที่ให้ Sidebar */
    padding: 10px;
    width: calc(100% - 250px);
    overflow-y: auto;
}

/* แบนเนอร์ */
.banner-section .banner-placeholder img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
    height: auto; /* ปรับความสูงแบนเนอร์ตามต้องการ */
    margin: 0;
    padding: 0;
}

/* หมวดหมู่เกมส์มาแรง */
.section-title {
    text-align: center;
    margin: 10px 0;
    color: #333;
}

.category-list {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.cat-card {
    width: 120px;
    height: 120px;
    background-color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    font-weight: bold;
}

/* ตารางแสดงเกม */
.game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 คอลัมน์ */
    gap: 15px;
}

.game-card {
    background-color: #333;
    color: #fff;
    height: 150px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* กรอบครอบตัวหนังสือวิ่ง */
.announcement-bar {
    /* 🌟 1. พื้นหลังสาดสีฟ้า: ไล่สีจาก ซ้าย(โปร่งใส) -> กลาง(ฟ้า) -> ขวา(โปร่งใส) 
       ทำให้ขอบซ้ายและขวากลืนหายไปกับพื้นสีเหลืองแบบเบลอๆ */
    background: linear-gradient(80deg, transparent 0%, #729dc8 15%, #729dc8 55%, transparent 80%);
    
    /* 🌟 2. ทำขอบบน-ล่างให้ฟุ้ง: ใช้ box-shadow (เงา) สีเหลือง แทน border (เส้นขอบแข็งๆ) */
    box-shadow: 0px 4px 8px rgba(223, 177, 63, 0.8), 0px -4px 8px rgba(223, 177, 63, 0.8);
    border: none; /* ลบเส้นขอบแข็งๆ อันเก่าทิ้ง */
    margin-top: 90px; /* เว้นระยะจาก App Bar */ 
    height: 4ch; 
    display: flex;
    align-items: center; 
    overflow: hidden;
    width: 100vw; 
    position: relative;
    z-index: 1; /* ให้น้อยกว่า Sidebar (999) มันจะได้มุดไปข้างหลัง */
}

/* ลู่วิ่งของตัวหนังสือ */
.announcement-bar marquee {
    width: 100%;
    display: block;
    
    /* 🌟 ท่าไม้ตาย (แถมให้ครับ): ทำให้ตัวหนังสือค่อยๆ เฟดจางหายไปตอนวิ่งสุดขอบซ้าย-ขวา 
       จะช่วยให้ดูเนียนและแพงขึ้นมาก ไม่โดนตัดฉับแบบแข็งๆ */
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 5%, black 95%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, black 5%, black 95%, transparent 100%);
}

/* ตัวอักษร */
.marquee-text {
    color: #333; 
    font-size: 15px; 
    font-weight: 500;
    white-space: nowrap; /* ห้ามตัดคำขึ้นบรรทัดใหม่ */
}
/* กล่องครอบทั้งหมด */
.games-title-container {
    display: flex;
    justify-content: center; /* ดึงทุกอย่างมาอยู่กึ่งกลางแนวนอน */
    align-items: center;     /* จัดให้อยู่กึ่งกลางแนวตั้ง (ไม่ให้เบี้ยวขึ้นหรือลง) */
    gap: 15px;               /* ระยะห่างระหว่างภาพกับตัวหนังสือ (ปรับตัวเลขได้ตามใจชอบครับ) */
    margin: 20px 0;          /* ระยะห่างด้านบนและด้านล่างของตัวกลุ่มหัวข้อ */
    width: 100%;/* กว้างเต็มพื้นที่ */
}

/* ตั้งค่ารูปภาพโคมไฟ */
.games-title-container .lantern-img {
    width: 40px;             /* ปรับความกว้างของโคมไฟให้พอดีกับตัวหนังสือ (ปรับขนาดตามใจชอบได้ครับ) */
    height: auto;            /* ให้ความสูงปรับตามสัดส่วนภาพอัตโนมัติ */
    object-fit: contain;
}

/* ตั้งค่าตัวหนังสือตรงกลาง */
.games-title-text {
    font-size: 24px;         /* ขนาดตัวอักษรใหญ่-เล็ก */
    font-weight: bold;       /* ตัวหนา */
    color: #000000;          /* สีดำสนิทแบบในรูป */
    margin: 0;               /* ล้างค่า margin ของ h2 ออกเพื่อให้ไม่ไปเบียดรูป */
    line-height: 1;          /* จัดระยะห่างบรรทัดให้พอดี */
}
/* ตัวครอบตารางเกม (บังคับให้เรียงต่อกัน) */
.game-menu-grid {
    display: flex;
    justify-content: center; /* ให้อยู่กึ่งกลางหน้า */
    gap: 15px; /* ระยะห่างระหว่างแต่ละกล่อง */
    flex-wrap: wrap; /* ถ้ายาวเกินจอ ให้ปัดตกลงบรรทัดใหม่ */
    margin: 20px 0;
}

/* รูปร่างของกล่องเกม */
.game-card {
    display: flex;
    flex-direction: column; /* บังคับให้เรียงบน-ลง-ล่าง (รูปอยู่บน ข้อความอยู่ล่าง) */
    align-items: center;    /* จัดให้อยู่กึ่งกลาง */
    justify-content: flex-end; /* ดันเนื้อหาลงมาข้างล่าง */
    
    background-color: #6998d4; /* สีฟ้าพื้นหลังกล่อง */
    border-radius: 12px;       /* ทำขอบให้มน */
    padding: 10px;
    
    width: 120px;  /* ความกว้างของกล่อง (ปรับได้ตามชอบ) */
    height: 140px; /* ความสูงของกล่อง (ปรับได้ตามชอบ) */
    
    text-decoration: none; /* เอาเส้นใต้ลิงก์ออก */
    transition: transform 0.2s ease; /* ใส่แอนิเมชั่นเวลาเอาเมาส์ชี้ */
}

/* แอนิเมชั่น: เวลาเอาเมาส์ไปชี้ให้กล่องเด้งขึ้นนิดนึง */
.game-card:hover {
    transform: translateY(-5px);
}

/* ตั้งค่ารูปภาพเกม */
.game-card .game-image {
    width: 100%; /* ให้รูปกว้างเต็มกล่อง */
    height: 100px; /* ล็อคความสูงรูป (ป้องกันรูปเบี้ยว) */
    object-fit: contain; /* บังคับรูปให้อยู่ในกรอบโดยไม่เสียสัดส่วน */
    margin-bottom: 5px; /* ระยะห่างระหว่างรูปกับตัวหนังสือ */
}

/* ตั้งค่าตัวหนังสือชื่อเกม */
.game-card .game-title {
    color: #000;         /* สีตัวหนังสือ (สีดำ) */
    font-size: 14px;     /* ขนาดตัวอักษร */
    font-weight: bold;
    text-align: center;
}
/* ตารางเรียง 6 กล่อง (CSS Grid) */
.slot-games-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* แบ่งเป็น 6 คอลัมน์เท่าๆ กัน */
    gap: 10px; /* ระยะห่างระหว่างกล่อง */
    width: 100%;
    margin-top: 10px;
}

/* รูปร่างกล่องเกม 1 กล่อง */
.slot-card {
    position: relative; /* สำคัญมาก: เพื่อให้ป้ายต่างๆ แปะทับได้ตรงจุด */
    border-radius: 8px; /* ขอบโค้ง */
    overflow: hidden; /* ตัดส่วนรูปที่เกินขอบออก */
    height: 120px; /* ความสูงของกล่อง (ปะป๊าปรับเพิ่มลดได้ครับ) */
    cursor: pointer;
}

/* รูปภาพเกม (เป็นแบคกราวด์) */
.slot-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* สไตล์พื้นฐานของป้ายดำโปร่งแสง ซ้าย-ขวาบน */
.badge-players, .badge-rtp {
    position: absolute;
    top: 0;
    background-color: rgba(0, 0, 0, 0.7); /* พื้นหลังดำโปร่งใส 70% */
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 3px 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
}

/* ป้ายซ้ายบน (คนเล่น) */
.badge-players {
    left: 0;
    border-bottom-right-radius: 6px; /* มุมล่างขวาโค้ง */
}

/* จุดสีเขียว */
.dot-green {
    width: 6px;
    height: 6px;
    background-color: #00ff00; /* สีเขียวสว่าง */
    border-radius: 50%;
}

/* ป้ายขวาบน (RTP) */
.badge-rtp {
    right: 0;
    border-bottom-left-radius: 6px; /* มุมล่างซ้ายโค้ง */
}

/* แถบชื่อเกมด้านล่าง */
.slot-bottom-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* ดำโปร่งแสง */
    padding: 5px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    z-index: 2;
}

/* ชื่อเกม (ตัวหนังสือเล็ก) */
.slot-name {
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    white-space: nowrap; /* ห้ามตัดบรรทัด */
    overflow: hidden;
    text-overflow: ellipsis; /* ถ้ายาวไปให้ใส่ ... */
}

/* ไอคอนหัวใจ */
.slot-heart {
    color: #fff;
    font-size: 14px;
}

/* 🌟 เอฟเฟกต์ปุ่ม "เล่น" ตอนเอาเมาส์ไปชี้ (Hover) */
.slot-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* มืดลงนิดนึงตอนเมาส์ชี้ */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0; /* ซ่อนไว้ก่อน */
    transition: opacity 0.2s;
    z-index: 3;
}
.slot-card:hover .slot-hover {
    opacity: 1; /* โชว์เมื่อเอาเมาส์ชี้ */
}

/* ปุ่ม "เล่น" สีเหลือง */
.btn-play {
    background-color: #ffb300;
    color: #000;
    border: none;
    padding: 5px 25px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 13px;
    cursor: pointer;
}
/* กรอบรวมของแต่ละหมวดหมู่ */
.category-block {
    width: 100%;
    margin-top: 30px; /* เว้นระยะห่างจากด้านบน */
}

/* แถบหัวข้อสีฟ้า (เช่น "สล็อต") */
.category-header {
    background-color: #6998d4; /* สีฟ้า */
    border-radius: 4px;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between; /* แยกหัวข้อกับปุ่มให้อยู่ซ้ายสุด-ขวาสุด */
    align-items: center;
    margin-bottom: 15px;
}

/* ตัวหนังสือหัวข้อ */
.category-title {
    color: #000;
    font-size: 18px;
    font-weight: bold;
    margin: 0;
}

/* ปุ่ม "เพิ่มเติม >" */
.btn-more {
    color: #333;
    font-size: 13px;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
}
.btn-more:hover {
    color: #fff; /* เปลี่ยนสีตอนเอาเมาส์ชี้ */
}


/* ตารางเกม (ใช้ร่วมกันทั้งหมวดสล็อต และ ค่ายคาสิโน) */
.category-games-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr; /* กว้าง: กล่องใหญ่ 2 ส่วน, กล่องเล็ก 1 ส่วน */
    grid-template-rows: repeat(2, 140px);       /* ล็อคความสูงแถวบนและแถวล่างให้เท่ากันที่ 140px */
    gap: 12px;                                  /* ระยะห่างช่องไฟตรงกลาง (ซ้าย-ขวา และ บน-ล่าง เท่ากันเป๊ะ) */
    align-items: stretch;                       /* บังคับให้ทุกกล่องยืดเต็มช่องตาราง */
}

/* รูปร่างกล่องเกมเล็กแต่ละกล่อง */
.category-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 100%; /* เปลี่ยนจาก 120px เป็น 100% เพื่อให้ยืดชนขอบบนและขอบล่างพอดี */
    cursor: pointer;
    background-color: #333;
}

/* กล่องใหญ่ซ้ายสุด (PGSoft / Pretty Gaming) */
.category-card.card-large {
    grid-row: span 2; /* กินพื้นที่ควบ 2 แถว (ความสูงจะเท่ากับ แถวบน + ช่องไฟกลาง + แถวล่าง อัตโนมัติ) */
    height: 100%;
}

/* รูปภาพเกม */
.cat-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* แถบชื่อเกมด้านล่าง (ไล่สีดำโปร่งแสง) */
.cat-bottom-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    /* ไล่สีจากล่าง(ดำสนิท) ไปบน(โปร่งใส) เพื่อให้อ่านตัวหนังสือชัดขึ้น */
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 15px 10px 5px 10px; /* เพิ่ม padding ด้านบนให้เงาดำไล่ขึ้นไปสูงหน่อย */
    box-sizing: border-box;
    z-index: 2;
}
.category-section {
    background-color: #b38a1c; /* สีพื้นหลังของแต่ละหมวดหมู่ */
    border-radius: 15px;
    padding:  25px 20px;
    height: auto;   
    margin-top: 15px;

}


.casino-providers-grid {
    margin-top: 15px;
}

/* ตกแต่งขีด 2 ขีดหน้าคำว่า คาสิโน */
.header-left-accent {
    display: flex;
    align-items: center;
    gap: 5px;
}
.accent-bar {
    width: 4px;
    height: 20px;
    background-color: #6998d4;
    border-radius: 2px;
    display: inline-block;
    box-shadow: -2px 0 0 #dfb13f;
}

/* กล่องใหญ่สีทองเข้มครอบโซนโต๊ะไพ่ */
.dragon-pingpong-container {
    background-color: #c59b38; /* สีทองเข้มตามภาพ */
    border-radius: 12px;
    padding: 20px 15px;
    margin-top: 10px;
}

/* หัวข้อ โต๊ะไพ่มังกรกับปิงปอง */
.dp-title-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}
.dp-icon {
    width: 38px;
    height: auto;
}
.dp-title {
    font-size: 20px;
    font-weight: bold;
    color: #000;
    margin: 0;
}

/* โครงสร้างเรียง 6 โต๊ะ */
.baccarat-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
}

/* การ์ดแต่ละโต๊ะ */
.baccarat-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

/* ส่วนบน: รูปดีลเลอร์และป้ายข้อมูล */
.bacc-top {
    position: relative;
    height: 115px;
    background-color: #1a1c29;
}
.bacc-dealer-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ป้ายมุมขวาบน: จำนวนผู้เล่น */
.bacc-Viewers {
    position: absolute;
    top: 6px;
    right: 6px;
    background-color: rgba(15, 18, 30, 0.85);
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 3px 7px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ป้ายมุมซ้ายล่าง: ชื่อโต๊ะ */
.bacc-table-name {
    position: absolute;
    bottom: 5px;
    left: 5px;
    background-color: rgba(15, 18, 30, 0.85);
    color: #fff;
    font-size: 10px;
    padding: 3px 6px;
    border-radius: 4px;
}

/* ป้ายมุมขวาล่าง: สกอร์รวม (# 120 50 60 10) */
.bacc-stats {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background-color: rgba(15, 18, 30, 0.85);
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    padding: 3px 6px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* จุดสีในป้ายสกอร์ */
.stat-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}
.dot-blue { background-color: #2196f3; }
.dot-red { background-color: #f44336; }
.dot-green { background-color: #4caf50; }

/* ส่วนล่าง: ตารางเค้าไพ่ (6 แถว x 12 คอลัมน์) */
.bacc-roadmap {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(6, 1fr);
    height: 78px;
    background-color: #fff;
    border-top: 2px solid #222;
    position: relative;
}

/* ช่องตารางแต่ละช่อง */
.road-cell {
    border-right: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* วงกลมเค้าไพ่ (แดง / น้ำเงิน) */
.Bead {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    box-sizing: border-box;
}
.bead-p {
    border: 2px solid #e53935; /* สีแดง Player */
}
.bead-b {
    border: 2px solid #1e88e5; /* สีน้ำเงิน Banker */
}
/* ขีดสีเขียวคาดกลางกรณีออก Tie (เสมอ) */
.bead-tie::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 2px;
    background-color: #43a047;
    transform: rotate(-45deg);
}

/* เอฟเฟกต์กระพริบสำหรับเม็ดล่าสุดที่เพิ่งออก */
@keyframes blinkCircle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.2; transform: scale(0.85); }
}
.blinking-bead {
    animation: blinkCircle 0.6s infinite ease-in-out;
}

/* ไฮไลท์แถบคอลัมน์มังกร/ปิงปองที่กำลังลุ้น */
.road-cell.highlight-col {
    background-color: rgba(30, 136, 229, 0.12);
}
.road-cell.highlight-col-red {
    background-color: rgba(229, 57, 53, 0.12);
}

/* ================= โซน Footer (สินค้าของเรา) ================= */
.site-footer {
    background-color: #b0913b; /* สีพื้นหลังทองเข้มโซนฟุตเตอร์ */
    padding: 30px 20px 40px 20px;
    margin-top: 35px;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
}

/* หัวข้อ สินค้าของเรา */
.footer-main-title {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: #000;
    margin-bottom: 20px;
}

/* ตารางพาร์ทเนอร์: บังคับแถวละ 23 รูป */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(23, 1fr); /* 23 ตัวต่อ 1 แถว */
    gap: 6px; /* ระยะห่างระหว่างกล่องโลโก้ */
    width: 100%;
    margin-bottom: 25px;
}

/* กล่องใส่โลโก้พาร์ทเนอร์แต่ละตัว */
.partner-box {
    background-color: rgba(255, 255, 255, 0.14); /* สีกรอบจางๆ แบบในภาพ */
    border-radius: 6px;
    aspect-ratio: 1 / 1; /* บังคับให้เป็นสี่เหลี่ยมจัตุรัส */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px;
    overflow: hidden;
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.partner-box:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: scale(1.06);
}

.partner-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* โซนกล่องข้อมูล ซ้าย - ขวา */
.footer-info-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 15px;
    gap: 20px;
}

/* คอลัมน์ซ้าย (ความปลอดภัย + ความรับผิดชอบ) */
.footer-left-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 300px;
}

/* คอลัมน์ขวา (ช่องทางการชำระเงิน) */
.footer-right-col {
    width: 300px;
}

/* การ์ดพื้นหลังสีครีมทองโปร่งแสง */
.footer-info-card {
    background-color: rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    padding: 12px 16px;
}

.payment-card {
    min-height: 135px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.info-card-title {
    font-size: 13px;
    font-weight: bold;
    color: #000;
    margin: 0 0 10px 0;
}

/* แถวเรียงโลโก้ฝั่งซ้าย */
.info-logos-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.security-logo,
.responsible-logo {
    height: 26px;
    width: auto;
    object-fit: contain;
}

/* ตารางเรียงโลโก้ชำระเงิน 2x2 ฝั่งขวา */
.payment-logos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 15px;
    align-items: center;
}

.pay-logo {
    width: 100%;
    max-height: 28px;
    object-fit: contain;
}

/* โซนโลโก้ Shibuya55 ด้านล่างสุด */
.footer-bottom-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 25px;
    gap: 8px;
}

.footer-main-logo {
    width: 130px;
    height: auto;
    object-fit: contain;
}

.copyright-text {
    font-size: 12px;
    font-weight: bold;
    color: #000;
    margin: 0;
}

/* ปุ่มแคปซูล สล็อต / คาสิโน ล่างสุด */
.footer-Mini-tags {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.footer-tag-btn {
    background-color: #ffd571;
    color: #000;
    font-size: 11px;
    font-weight: bold;
    padding: 4px 14px;
    border-radius: 15px;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.footer-tag-btn:hover {
    background-color: #ffe08a;
}
/* ================= โซนหน้าโปรโมชั่น ================= */
/* ================= โซนหน้าโปรโมชั่น ================= */
.promo-section {
    /* ดันลงมาให้พ้นแถบเมนูด้านบน (60px) + เว้นช่องว่างสีเหลืองด้านบนอีก 18px ให้เหมือนในภาพ */
    margin-top: 78px; 
    padding: 0 15px;
    min-height: 520px;
    box-sizing: border-box;
}

/* แถวรวมขีดตั้ง 2 ขีด + แถบยาวสีฟ้า */
.promo-header-row {
    display: flex;
    align-items: center;
    gap: 5px;            /* ระยะห่างระหว่างขีดตั้งทั้ง 2 ขีดและกล่องสีฟ้า */
    margin-bottom: 20px; /* ระยะห่างจากแถบคำว่าโปรโมชั่น ลงมาถึงรูปการ์ดด้านล่าง */
    width: 100%;
}

/* ขีดตั้งสีฟ้า 2 ขีดด้านซ้ายสุด */
.promo-pill {
    width: 6px;
    height: 38px;
    background-color: #6998d4;
    border-radius: 4px;
    flex-shrink: 0;
}

/* กล่องแถบยาวสีฟ้าที่มีคำว่า "โปรโมชั่น" */
.promo-header-box {
    background-color: #6998d4;
    height: 38px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    flex-grow: 1; /* ยืดเต็มความกว้างไปจนสุดขอบขวา */
}

/* ตัวหนังสือคำว่า "โปรโมชั่น" */
.promo-header-title {
    color: #000;
    font-size: 18px;
    font-weight: bold;
    margin: 0;
}

/* ตารางเรียงการ์ดโปรโมชั่น */
.promo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ตัวการ์ดโปรโมชั่น */
.promo-card {
    background-color: #6998d4;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    max-width: 420px;
}

/* กรอบรูปโปรโมชั่นด้านบน */
.promo-img-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.promo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ส่วนข้อความด้านล่างรูป */
.promo-card-body {
    padding: 12px 15px 15px 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 180px;
    box-sizing: border-box;
}

.promo-title {
    font-size: 20px;
    font-weight: bold;
    color: #000;
    margin: 0 0 12px 0;
}

.promo-desc {
    font-size: 18px;
    color: #111;
    margin: 15px 0 25px 0;
}

.promo-more {
    font-size: 12px;
    color: #000;
    font-weight: bold;
    text-decoration: none;
    margin-top: auto;
}
/* ================= โซนหน้ารายละเอียดโปรโมชั่น ================= */
/* ปุ่ม "< โปรโมชั่นทั้งหมด" ด้านบนซ้าย */
.btn-back-promo {
    background-color: #c59b38;
    color: #000;
    border: none;
    border-radius: 4px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 12px;
}

.btn-back-promo:hover {
    background-color: #b58d2f;
}

/* กล่องใหญ่สีน้ำตาลเข้มด้านใน */
.promo-detail-box {
    background-color: #61501b;
    border-radius: 6px;
    padding: 25px 35px 40px 35px;
    width: 100%;
    box-sizing: border-box;
}

/* หัวข้อตรงกลางด้านบนรูป */
.promo-detail-main-title {
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    color: #000;
    margin: 0 0 20px 0;
}

/* จัดรูปภาพให้อยู่กึ่งกลาง */
.promo-detail-img-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.promo-detail-img-wrap img {
    width: 290px;
    max-width: 100%;
    height: auto;
    display: block;
}

/* เนื้อหารายละเอียดด้านล่างรูป */
.promo-detail-content {
    color: #000;
    font-size: 14px;
    line-height: 1.6;
}

.pd-subtitle {
    font-size: 18px;
    font-weight: bold;
    color: #000;
    margin: 0 0 20px 0;
}

.pd-highlight {
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 12px !important;
}

.pd-group {
    margin-bottom: 26px;
}

.pd-group p {
    margin: 0 0 8px 0;
}

/* ตัวหนังสือสีน้ำเงิน "SHIBUYA55" */
.pd-brand-blue {
    color: #0044ff;
    font-weight: bold;
    font-size: 18px;
}
/* ================= โซนหน้ารายละเอียดบทความ ================= */
.article-detail-img-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.article-detail-img-wrap img {
    width: 550px; /* ขนาดรูปแนวนอนในหน้ารายละเอียดบทความ */
    max-width: 100%;
    height: auto;
    display: block;
}

/* ระยะห่างของโซน "บทความเพิ่มเติม" ด้านล่างกล่องเนื้อหา */
.more-articles-block {
    margin-top: 25px;
}
/* ================= โซนป๊อปอัพ ติดต่อเรา (Modal) ================= */
/* พื้นหลังสีดำโปร่งแสงเต็มจอ */
.contact-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.55);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* ให้อยู่ชั้นบนสุดทับทุกอย่าง */
}

/* กล่องการ์ดสีขาวตรงกลาง */
.contact-modal-card {
    background-color: #ffffff;
    width: 440px;
    max-width: 90%;
    border-radius: 20px;
    padding: 24px 26px 28px 26px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
    animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* ส่วนหัวป๊อปอัพ */
.contact-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* กล่องสีฟ้าอ่อนใส่ไอคอนหูฟัง */
.contact-headset-box {
    width: 44px;
    height: 44px;
    background-color: #eef2f8;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #6998d4;
    font-size: 24px;
}

/* ตัวหนังสือ "ติดต่อเรา" ด้านบน */
.contact-modal-title {
    font-size: 18px;
    font-weight: bold;
    color: #000000;
}

/* ปุ่มกากบาท X มุมขวาบน */
.contact-close-btn {
    background: transparent;
    border: none;
    color: #666666;
    font-size: 22px;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-close-btn:hover {
    color: #000000;
}

/* เส้นคั่นกลาง */
.contact-divider {
    height: 1px;
    background-color: #eeeeee;
    margin: 18px 0 20px 0;
}

/* กรอบปุ่ม LINE */
.contact-line-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background-color: #ffffff;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

/* 🌟 เอฟเฟกต์เวลาเอาเมาส์ชี้: ขึ้นกรอบสีน้ำเงินและพื้นหลังสีฟ้าอ่อนตามรูปที่ 2 */
.contact-line-item:hover {
    border-color: #6998d4;
    background-color: #f2f7fc;
}

.contact-line-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* กรอบสีเขียวของโลโก้ LINE */
.line-app-icon {
    width: 46px;
    height: 46px;
    background-color: #06c755;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

/* ข้อความด้านในปุ่ม LINE */
.contact-line-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.line-main-label {
    font-size: 15px;
    font-weight: bold;
    color: #000000;
}

.line-sub-id {
    font-size: 13px;
    color: #777777;
}

.contact-arrow {
    font-size: 20px;
    color: #888888;
}
/* ================= โซนป๊อปอัพ ฝาก-ถอน (Modal) ================= */
.withdraw-modal-card {
    background-color: #ffffff;
    width: 460px;
    max-width: 92%;
    border-radius: 22px;
    padding: 24px 28px 30px 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    box-sizing: border-box;
    animation: modalFadeIn 0.2s ease-out;
}

.withdraw-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.withdraw-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* กล่องไอคอนมุมซ้ายบน */
.withdraw-icon-box {
    width: 46px;
    height: 46px;
    background-color: #eef2f8;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #6998d4;
    font-size: 24px;
    flex-shrink: 0;
}

.withdraw-title-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

/* คำว่า SHIBUYA55 สีฟ้าตัวเล็กด้านบน */
.withdraw-brand-top {
    font-size: 12px;
    font-weight: bold;
    color: #6998d4;
    letter-spacing: 0.5px;
}

/* หัวข้อ "กรุณาดำเนินการสมัครสมาชิกเพื่อทำการ ฝาก-ถอน" */
.withdraw-main-title {
    font-size: 18px;
    font-weight: bold;
    color: #000000;
    margin: 0;
    line-height: 1.35;
}

/* ฟอร์มด้านใน */
.withdraw-form-body {
    display: flex;
    flex-direction: column;
}

.withdraw-label {
    font-size: 14px;
    font-weight: bold;
    color: #000000;
    margin-bottom: 8px;
}

.withdraw-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    margin-bottom: 8px;
}

.withdraw-label-row .withdraw-label {
    margin-bottom: 0;
}

/* ลิงก์ ลืมรหัสผ่าน? */
.withdraw-forgot-link {
    font-size: 13px;
    font-weight: bold;
    color: #5b87bd;
    text-decoration: underline;
}

/* กรอบช่องกรอกข้อมูล */
.withdraw-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #f4f5f7;
    border: 1px solid #dcdfe6;
    border-radius: 12px;
    height: 48px;
    padding: 0 14px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.withdraw-input-wrap:focus-within {
    border-color: #6998d4;
    background-color: #ffffff;
}

.input-left-icon {
    font-size: 20px;
    color: #7ea3d4;
    margin-right: 10px;
}

.withdraw-input {
    border: none;
    background: transparent;
    width: 100%;
    height: 100%;
    font-size: 14px;
    color: #333333;
    outline: none;
    font-family: inherit;
}

.withdraw-input::placeholder {
    color: #999999;
}

/* ไอคอนรูปดวงตาดูรหัสผ่าน */
.input-right-eye {
    font-size: 20px;
    color: #555555;
    cursor: pointer;
    margin-left: 8px;
}

/* ปุ่ม "เข้าสู่ระบบ ->" ไล่สีฟ้า-ทอง */
.btn-withdraw-submit {
    margin-top: 22px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(180deg, #6b95c2 0%, #e8c65c 100%);
    color: #000000;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
    transition: filter 0.2s, transform 0.1s;
    cursor: pointer;
}

.btn-withdraw-submit:hover {
    filter: brightness(1.05);
}

/* ข้อความด้านล่างสุด: ไม่มีบัญชี? สมัครสมาชิกตอนนี้! */
.withdraw-footer-text {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #222222;
}

.withdraw-register-link {
    color: #5b87bd;
    font-weight: bold;
    text-decoration: underline;
}
/* ================= ปุ่มแฮมเบอร์เกอร์ & หน้าเมนูสีเหลืองเต็มจอ ================= */
.mobile-hamburger-btn {
    display: none;
    background: transparent;
    border: none;
    color: #000000;
    font-size: 30px;
    cursor: pointer;
    padding: 4px 8px;
    align-items: center;
    justify-content: center;
}

/* พื้นหลังสีเหลืองทองเต็มจอเมื่อกดแฮมเบอร์เกอร์ */
.hm-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #ecd055;
    z-index: 9990;
    display: flex;
    flex-direction: column;
    padding: 20px 18px 40px 18px;
    box-sizing: border-box;
    overflow-y: auto;
    animation: modalFadeIn 0.2s ease-out;
}

/* ปุ่มกากบาทสีขาวมุมขวาบน */
.hm-close-btn {
    align-self: flex-end;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 30px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

/* โลโก้ Shibuya55 ตรงกลาง */
.hm-logo-wrap {
    display: flex;
    justify-content: center;
    margin: 10px 0 24px 0;
}

.hm-logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
}

/* ปุ่มยาว "บัญชีของฉัน" และ "รายการโปรด & เล่นล่าสุด" */
.hm-full-btn {
    width: 100%;
    height: 54px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    cursor: pointer;
    margin-bottom: 14px;
    font-family: inherit;
    box-sizing: border-box;
}

.hm- full-btn i {
    font-size: 22px;
}

/* สีปุ่ม บัญชีของฉัน */
.hm-account-btn {
    background-color: #f4c85b;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* สีปุ่ม รายการโปรด & เล่นล่าสุด (มีเส้นขอบดำตามรูป) */
.hm-fav-btn {
    background-color: #f4d058;
    border: 1px solid #1a1a1a;
}

/* ตารางเมนูสติ๊กเกอร์ 3 คอลัมน์ */
.hm-grid-menu {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 4px;
    margin-bottom: 18px;
}

.hm-grid-card {
    background-color: #a89446; /* สีน้ำตาลทองหม่นเหมือนต้นแบบ */
    border-radius: 10px;
    height: 96px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #000000;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s ease;
}

/* ปุ่มที่เลือกอยู่เป็นสีฟ้า (เช่น หน้าหลัก) */
.hm-grid-card.active {
    background-color: #6998d4;
}

.hm-sticker-img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

/* แถบภาษาไทยด้านล่าง */
.hm-lang-bar {
    width: 100%;
    height: 52px;
    background-color: #f4c85b;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    box-sizing: border-box;
    cursor: pointer;
}

.hm-lang-left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 500;
    color: #000000;
}

.hm-flag-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.hm-lang-arrow {
    font-size: 22px;
    color: #000000;
}

/* ================= แถบนำทางด้านล่างสุด (Bottom Navigation) ================= */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 68px;
    background-color: #f3ce62;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.2);
    z-index: 9900;
    justify-content: space-around;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom);
}

.mb-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #000000;
    font-size: 12px;
    font-weight: bold;
    gap: 4px;
    position: relative;
}

.mb-nav-icon {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.mb-center-circle {
    position: absolute;
    top: -34px;
    width: 58px;
    height: 58px;
    background-color: #6998d4;
    border: 3px solid #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.mb-center-circle img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.mb-center-text {
    margin-top: 28px;
}

/* ================= 📱 RESPONSIVE สำหรับ iPhone 15-18, Samsung S, Oppo และ iPad mini 6 ================= */
@media screen and (max-width: 1024px) {
    /* โชว์ปุ่มแฮมเบอร์เกอร์ และซ่อนเมนู 5 ปุ่มด้านบนของหน้าคอม */
    .mobile-hamburger-btn {
        display: inline-flex !important;
    }

    .top-menu {
        display: none !important;
    }

    .mobile-bottom-nav {
        display: flex !important;
    }

    body {
        padding-bottom: 80px !important;
    }

    /* ปรับโครงสร้างหน้าเว็บให้เรียงลงมา และเปลี่ยนเมนูซ้าย (สล็อต, คาสิโน, กีฬา...) เป็นแถบเลื่อนแนวนอนใต้ตัวหนังสือวิ่ง */
    .main-container, .content-wrapper, .layout-container {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }

    .sidebar, .left-menu, aside {
        width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        gap: 8px !important;
        padding: 10px 12px !important;
        box-sizing: border-box !important;
        scrollbar-width: none;
    }

    .sidebar::-webkit-scrollbar, .left-menu::-webkit-scrollbar, aside::-webkit-scrollbar {
        display: none;
    }

    .sidebar > *, .left-menu > *, aside > * {
        flex: 0 0 76px !important;
        height: 76px !important;
        background-color: #a89446 !important;
        border-radius: 12px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 6px !important;
        font-size: 13px !important;
        text-align: center !important;
    }
}

/* ================= ฉากที่ 1: ปรับปรุงให้ตรงกับต้นแบบ sby55.net 100% ================= */
@media screen and (max-width: 1024px) {
    /* โชว์ปุ่มแฮมเบอร์เกอร์ และซ่อนเมนู 5 ปุ่มด้านบนของหน้าคอม */
    .mobile-hamburger-btn {
        display: inline-flex !important;
        font-size: 26px !important;
        padding: 0 4px 0 2px !important;
        margin: 0 !important;
        width: auto !important;
        height: auto !important;
        flex-shrink: 0 !important;
    }

    .top-menu {
        display: none !important;
    }

    .mobile-bottom-nav {
        display: flex !important;
    }

    body {
        padding-bottom: 80px !important;
    }

    /* 1. แถบ Header สีฟ้าด้านบน: ย่อโลโก้ชิดซ้ายใกล้แฮมเบอร์เกอร์ + ดึงปุ่มสมัครสมาชิกไม่ให้ล้นจอ */
    header.app-bar, .app-bar {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding: 4px 8px !important;
        height: 50px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        gap: 4px !important;
        position: relative !important;
        z-index: 100 !important;
    }

    /* โลโก้ Shibuya55 ย่อเล็กลงและขยับมาชิดแฮมเบอร์เกอร์ */
    .app-bar .logo {
        margin: 0 auto 0 2px !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        flex: 0 0 auto !important;
    }

    .app-bar .logo img {
        height: 25px !important;
        max-width: 88px !important;
        width: auto !important;
        object-fit: contain !important;
        display: block !important;
    }

    /* กล่องปุ่มเข้าสู่ระบบ & สมัครสมาชิก ด้านขวา: ย่อขนาดให้พอดีจอ ไม่ล้นขอบ */
    .app-bar > div:last-child,
    .app-bar .header-right,
    .app-bar .auth-buttons {
        margin-left: auto !important;
        display: flex !important;
        align-items: center !important;
        gap: 5px !important;
        flex-shrink: 0 !important;
    }

    .app-bar button:not(.mobile-hamburger-btn),
    .app-bar a:not(.logo a) {
        white-space: nowrap !important;
        font-size: 11px !important;
        font-weight: 600 !important;
        padding: 4px 8px !important;
        height: 30px !important;
        min-width: unset !important;
        width: auto !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 3px !important;
        border-radius: 5px !important;
        flex-shrink: 0 !important;
        box-sizing: border-box !important;
    }

    /* ซ่อนปุ่มธงชาติบนแถบด้านบน */
    .app-bar img[src*="flag"],
    .app-bar img[alt*="ไทย"],
    .app-bar .lang-select,
    .app-bar .flag-btn {
        display: none !important;
    }

    /* 2. ปลดล็อกกล่องโครงสร้างหลัก ไม่ให้ล็อกความสูงหรือบังกัน */
    .sby-unlock-layout,
    main,
    .main-content,
    .content-area {
        position: static !important;
        display: block !important;
        width: 100% !important;
        max-width: 100vw !important;
        margin: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    /* 3. แถบตัวอักษรวิ่ง (Marquee) ให้แสดงชัดเจนใต้แถบ Header สีฟ้า */
    .sby-marquee-bar {
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        height: 30px !important;
        margin: 0 !important;
        padding: 0 8px !important;
        background: linear-gradient(90deg, #ecd055 0%, #c8ad45 50%, #ecd055 100%) !important;
        color: #000000 !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        position: relative !important;
        z-index: 2 !important;
        box-sizing: border-box !important;
    }

    /* 4. แถบปุ่มหมวดหมู่ (สล็อต, คาสิโน, กีฬา, ไพ่, ตกปลา): วางจมเรียบ พื้นสีน้ำตาลทอง ไม่ลอย */
    .shibuya-cat-bar {
        position: static !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        z-index: 1 !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        align-items: center !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        width: 100% !important;
        height: auto !important;
        padding: 10px 10px 8px 10px !important;
        margin: 0 !important;
        gap: 8px !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        box-sizing: border-box !important;
        scrollbar-width: none !important;
    }

    .shibuya-cat-bar::-webkit-scrollbar {
        display: none !important;
    }

    /* ตัวปุ่มหมวดหมู่แต่ละอัน: สีน้ำตาลทอง (#a89446) จมเรียบ ไม่มีสีฟ้าด้านใน */
    .shibuya-cat-item {
        position: static !important;
        flex: 0 0 68px !important;
        width: 68px !important;
        min-width: 68px !important;
        max-width: 68px !important;
        height: 68px !important;
        min-height: 68px !important;
        background: #a89446 !important;
        background-color: #a89446 !important;
        border: 1.5px solid #bda853 !important;
        border-radius: 10px !important;
        box-shadow: none !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 4px 2px !important;
        margin: 0 !important;
        gap: 4px !important;
        box-sizing: border-box !important;
    }

    /* ล้างพื้นหลังสีฟ้าและเงาของปุ่มด้านในออกทั้งหมด */
    .shibuya-cat-item * {
        background: transparent !important;
        background-color: transparent !important;
        background-image: none !important;
        box-shadow: none !important;
        border: none !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
        padding: 0 !important;
        margin: 0 !important;
        color: #000000 !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        line-height: 1.1 !important;
        text-align: center !important;
        display: block !important;
    }

    .shibuya-cat-item img {
        width: 32px !important;
        height: 32px !important;
        object-fit: contain !important;
        margin: 0 auto 2px auto !important;
    }

    /* 5. กล่อง "เกมส์มาแรง" (PG Slot, SexySlot, PramaticPaly, Pretty Gaming): เรียงแถวเดียว ปัดซ้าย-ขวาได้ */
    .sby-hot-row {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        gap: 8px !important;
        padding: 4px 4px 12px 4px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        scrollbar-width: none !important;
    }

    .sby-hot-row::-webkit-scrollbar {
        display: none !important;
    }

    /* การ์ดในเกมส์มาแรงแต่ละใบ (ขนาดเรียวพอดีโชว์เรียงกันเหมือนต้นแบบ) */
    .sby-hot-card {
        flex: 0 0 84px !important;
        width: 84px !important;
        min-width: 84px !important;
        max-width: 84px !important;
        height: 118px !important;
        background: #b8a048 !important;
        border: 1.5px solid #d4be65 !important;
        border-radius: 10px !important;
        box-shadow: none !important;
        padding: 6px 4px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: center !important;
        box-sizing: border-box !important;
    }

    /* ใบแรก (PG Slot) พื้นหลังสีฟ้าเหมือนรูปต้นแบบ */
    .sby-hot-card:first-child {
        background: #76a0d4 !important;
        border-color: #8bb2e2 !important;
    }

    .sby-hot-card img {
        width: 66px !important;
        height: 66px !important;
        object-fit: cover !important;
        border-radius: 10px !important;
        margin: 0 auto 6px auto !important;
    }

    .sby-hot-card span,
    .sby-hot-card div,
    .sby-hot-card p {
        font-size: 11px !important;
        font-weight: 700 !important;
        color: #000000 !important;
        text-align: center !important;
        line-height: 1.15 !important;
        white-space: normal !important;
    }
}

/* สำหรับหน้าจอมือถือ iPhone 15-18 / Samsung S / Oppo (เกมด้านล่างเรียง 2 คอลัมน์ ยกเว้นแถวเกมส์มาแรง) */
@media screen and (max-width: 768px) {
    .slots-grid:not(.sby-hot-row),
    .games-grid:not(.sby-hot-row),
    .baccarat-grid:not(.sby-hot-row),
    .casino-grid:not(.sby-hot-row) {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
}
/* ดึงแถบตัวอักษรวิ่งและเนื้อหาให้ชิดแถบ Header สีฟ้า ไม่ให้มีช่องว่างสีเหลืองคั่น */
@media screen and (max-width: 1024px) {
    body,
    .sby-unlock-layout,
    main,
    .main-content,
    .content-area {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .sby-marquee-bar {
        margin-top: 0 !important;
        border-radius: 0 !important;
    }
}
