* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Prompt', sans-serif;
}

.mobile-sidebar {
    display: none;
}

body {
    background: #f3f7f5;
    overflow-y: auto;
}

.sidebar {
    position: fixed;
    top: 70px;
    left: 0;
    width: 210px;
    height: calc(100vh - 70px);  
    background: #ffffff;
    padding-bottom: 80px; 
    overflow-y: auto;
    padding: 20px 12px;
    box-shadow: 2px 0 8px rgba(0,0,0,0.15);
    z-index: 10000;
}

.sidebar-logo-box {
    width: 100%;
    background: #ffffff;
    border-radius: 14px;
    padding: 15px 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    margin-bottom: 20px;
}

.sidebar-logo {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;   
}


.logo-box {
    text-align: center;
    margin-bottom: 20px;
}

.logo {
    width: 100px;
}

.btn-register {
    width: 100%;
    padding: 14px;
    font-size: 17px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    color: #000;
    border-radius: 14px;

    background: linear-gradient(135deg, #ffefb3 0%, #ffd860 40%, #f4b400 100%);
    position: relative;
    overflow: hidden;

    box-shadow:
        0 4px 0 #b98600,
        0 6px 18px rgba(0,0,0,0.28);

    transition: 0.25s ease;  
}

.btn-register::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120px;
    width: 80px;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.8) 50%,
        rgba(255,255,255,0) 100%
    );
    transform: skewX(-25deg);
    animation: laserRun 2.5s infinite ease-in-out;
}


.btn-register:hover {
    transform: translateY(-4px) scale(1.03); 
    box-shadow:
        0 5px 0 #a67700,
        0 10px 22px rgba(0,0,0,0.35);
    filter: brightness(1.15);   
}


.btn-register:hover::before {
    animation-duration: 1.3s;  
}


@keyframes laserRun {
    0%   { left: -140px; opacity: 0.15; }
    50%  { left: 160px; opacity: 1; }
    100% { left: 320px; opacity: 0.15; }
}


.menu {
    list-style: none;
    padding: 0;
}

/* ============================================
   เอฟเฟกต์ปุ่ม Sidebar แบบมีแท่งด้านขวา
============================================ */

/* ปุ่มหลัก */
.menu li {
    position: relative;
    background: #0bbd55;
    color: #ffffff;
    margin: 12px 0;
    padding: 14px 12px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    border: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: 0.25s ease;
    overflow: hidden;
}

/* ไอคอน */
.menu li img {
    width: 42px;
    height: 42px;
}

/* ---- แท่งด้านขวาขณะ Hover ---- */
.menu li::after {
    content: "";
    position: absolute;
    right: 6px;                /* ให้ติดขวาเนียน ๆ */
    top: 50%;
    transform: translateY(-50%);
    width: 8px;                /* ความกว้างแท่ง */
    height: 18px;              /* ตอน hover = สั้น */
    background: #ffffff;
    border-radius: 20px;
    opacity: 0;
    transition: 0.25s ease;
}

/* แสดงบน hover */
.menu li:hover::after {
    opacity: 1;
    height: 28px;              /* hover = ขยายขึ้นเล็กน้อย */
}

/* ---- ACTIVE → พื้นขาว + แท่งเขียวยาว ---- */
.menu li.active {
    background: #ffffff;
    color: #00a84a;
    border: 3px solid #00d36f;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

/* แท่ง active = เขียว + ยาวแนวตั้ง */
.menu li.active::after {
    opacity: 1;
    background: #00c46b;
    height: 60%;               /* ยาวประมาณเต็มปุ่ม */
    top: 50%;
    transform: translateY(-50%);
}


.main {
    margin-left: 210px;
    padding: 20px;


    padding-top: 135px;  

    min-height: calc(100vh - 100px);
    box-sizing: border-box;
}

.rider-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
}

.content {
    padding-bottom: 0 !important;
}

.top-banner {
    margin-top: 0;    
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}

.banner {
    width: 100%;
    border-radius: 10px;
}


.title-center {
    text-align: center;
    font-size: 22px;
    margin: 20px 0;
    font-weight: 700;
}


.game-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px 100px;               /* บน-ล่าง 14px | ซ้าย-ขวา 10px */
    max-width: 1300px;            /* จำกัดกรอบเพื่อให้อยู่ตรงกลาง */
    margin: 0 auto;               /* จัดกึ่งกลาง */
    padding: 0 10px;              /* กันภาพติดขอบซ้ายขวา */
    justify-items: center;        /* จัดให้แต่ละ block อยู่กลางช่อง */
}

.game-card {
    background: transparent;      
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding: 0;                  
    box-shadow: none;            
    transition: 0.2s;
}

.game-thumb {
    height: 180px;            /* 👈 ปรับตามตัวอย่าง */
    background: #000;    
    display: block;
    position: relative;    
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: 0.3s;
    text-decoration: none; 
    aspect-ratio: 16/9;
}

.game-thumb img {
    width: 100%;
    height: 160px;
    border-radius: 10px;    
    object-fit: cover;
    display: block;
    transition: 0.3s;
        object-fit: cover;                 /* 👈 แสดงเต็ม ไม่บีบ */
    object-position: center;           /* 👈 จัดรูปให้อยู่กลาง */
}

.game-card:hover {
    transform: translateY(-5px);
}


.game-card img {
    width: 100%;
    height: 180px;          
    object-fit: cover;
    border-radius: 10px;         
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); 
}


.game-card p {
    font-weight: 700;
    font-size: 15px;
    margin-top: 8px;
    background: none;            
}

.game-thumb::after {
    content: "";
    position: absolute;
    inset: 0;               
    background: rgba(0,0,0,0);
    transition: 0.3s;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1dd75f; 
    color: #fff;
    padding: 8px 22px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    opacity: 0;
    transition: 0.3s;
    pointer-events: none;   
    box-shadow: 0 0 12px rgba(0, 255, 120, 0.8);
    z-index: 5;      
}    

.game-thumb:hover img {
    transform: scale(1.05);
}

.game-thumb:hover::after {
    background: rgba(0,0,0,0.45);
}

.game-thumb:hover .play-btn {
    opacity: 1;
}

.game-card p {
    font-weight: 700;
    font-size: 15px;
    margin-top: 8px;
}

@media (max-width: 1200px) {
    .game-grid {
        grid-template-columns: repeat(3, 1fr); 
    }
}


@media (max-width: 600px) {
    .game-grid {
        grid-template-columns: repeat(2, 1fr); 
        gap: 15px;
    }

    .game-card img {
        height: 140px; 
    }

    .play-btn {
        padding: 8px 18px;
        font-size: 14px;
    }

    .game-card p {
        font-size: 14px;
    }
}

.rider-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: #003828;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;   
    height: 70px;         
}

.logo-box .logo {
    width: 150px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.line-btn {
    display: flex;
    align-items: center;
    padding: 6px 16px;

    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    color: #003d00;
    background: linear-gradient(135deg, #eaffd5 0%, #c2ff8e 35%, #5fd948 70%, #1d8f20 100%);
    border: 2px solid #c6a500;
    box-shadow:
        inset 0 2px 4px rgba(255,255,255,0.5),
        inset 0 -3px 6px rgba(0,0,0,0.15),
        0 4px 10px rgba(0,0,0,0.25);
    position: relative;
    overflow: hidden;
    transition: 0.25s ease;
}


.line-btn img {
    width: 28px;
    margin-right: 8px;
    filter: drop-shadow(0px 1px 2px rgba(0,0,0,0.2));
}


.line-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100px;
    width: 80px;
    height: 100%;

    background: linear-gradient(
        to right,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.7) 50%,
        rgba(255,255,255,0) 100%
    );
    transform: skewX(-25deg);
    animation: shineGreenGold 2.4s infinite ease-in-out;
}


.line-btn:hover {
    transform: translateY(-2px) scale(1.03);
    filter: brightness(1.15);
    box-shadow:
        inset 0 2px 4px rgba(255,255,255,0.6),
        inset 0 -3px 6px rgba(0,0,0,0.2),
        0 8px 16px rgba(0,0,0,0.35);
}

@keyframes shineGreenGold {
    0%   { left: -120px; opacity: 0.2; }
    50%  { left: 160px; opacity: 0.9; }
    100% { left: 260px; opacity: 0.2; }
}



.login-btn {
    padding: 12px 26px;
    background: linear-gradient(135deg, #fff3c4 0%, #ffdb6e 35%, #e8b100 70%, #b8860b 100%);
    border-radius: 30px;
    color: #000;
    font-weight: 800;
    text-decoration: none;
    font-size: 16px;

    position: relative;
    overflow: hidden;
    display: inline-block;


    box-shadow:
        inset 0 2px 4px rgba(255,255,255,0.4),
        inset 0 -3px 5px rgba(0,0,0,0.25),
        0 6px 12px rgba(0,0,0,0.25),
        0 4px 0 #b68400;

    transition: 0.25s ease;
}


.login-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120px;
    width: 90px;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.8) 50%,
        rgba(255,255,255,0) 100%
    );
    transform: skewX(-25deg);
    animation: goldShine 2.2s infinite ease-in-out;
    pointer-events: none;
}


.login-btn:hover {
    transform: translateY(-3px) scale(1.04);
    filter: brightness(1.25);
    box-shadow:
        inset 0 2px 4px rgba(255,255,255,0.5),
        inset 0 -3px 6px rgba(0,0,0,0.2),
        0 10px 18px rgba(0,0,0,0.35),
        0 4px 0 #a07000;
}

.login-btn:hover::before {
    animation-duration: 1.1s; 
}

@keyframes goldShine {
    0%   { left: -120px; opacity: 0.15; }
    50%  { left: 160px; opacity: 0.9; }
    100% { left: 260px; opacity: 0.15; }
}

.announce-bar {
    background: #015C40;
    height: 45px;                
    display: flex;
    align-items: center;
    padding: 0 10px;
    border-bottom: 3px solid #003828;   
    filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.4));
}

.announce-box {
    display: flex;
    align-items: center;
    color: #fff;
    width: 100%;
    filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.4));    
}

.sound-icon {
    width: 50px;
    margin-right: 10px;
    margin-left: 200px;
    filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.4));
}

.header-logo {
    width: 125px !important;
    margin-top: 28px;   
    margin-left: 10px;    
}


.slider {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 20px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    height: 400px;       
}

.slides {
    display: flex;
    width: auto;
    height: auto;
    transition: transform 0.6s ease-in-out;
}

.slider, .slide-container {
    height: auto;
}

.slide {
    width: 100%;
    flex-shrink: 0;
    height: 100%;     
}


.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;      
    object-position: center;
}


.dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}


.slide-dot {
    width: 12px;
    height: 12px;
    background: #ffffff90;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.slide-dot.active {
    background: #ffc400;
    width: 26px;
    border-radius: 10px;
}








@media (max-width: 900px) {
    .sidebar {
        display: none !important;
    }

    
}





.bottom-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: #003b29;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-bottom: 5px;
    z-index: 99999;
    border-top: 3px solid #006944;
}

.bm-item {
    color: white;
    font-size: 13px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 20%;
}

.bm-item img {
    width: 28px;
    height: 28px;
    margin-bottom: 3px;
}


.center-menu {
    width: 80px !important;
    height: 80px;
    border-radius: 50%;
    margin-top: -45px;


    background: linear-gradient(135deg, #fff6d1 0%, #ffe27a 40%, #ffc638 70%, #e3a400 100%);


    box-shadow:
        inset 0 2px 4px rgba(255,255,255,0.6),
        inset 0 -4px 8px rgba(0,0,0,0.25),
        0 6px 12px rgba(0,0,0,0.35);
    
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: 0.25s ease;
}




.center-menu span {
    color: #000;
    font-weight: 700;
    margin-top: 0px;   
    font-size: 13px;
    line-height: 1.1;  
}



.center-menu img {
    width: 40px;
}


.center-menu::before {
    content: "";
    position: absolute;
    top: -10px;
    left: -80px;
    width: 80px;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.8) 50%,
        rgba(255,255,255,0) 100%
    );
    transform: skewX(-25deg);
    animation: goldShine 2.4s infinite ease-in-out;
    pointer-events: none;
}


.center-menu:hover {
    transform: translateY(-6px) scale(1.05);
    filter: brightness(1.15);
    box-shadow:
        inset 0 2px 4px rgba(255,255,255,0.7),
        inset 0 -4px 8px rgba(0,0,0,0.35),
        0 10px 18px rgba(0,0,0,0.45);
}


.center-menu:hover::before {
    animation-duration: 1.3s;
}


@keyframes goldShine {
    0%   { left: -100px; opacity: 0.3; }
    50%  { left: 120px; opacity: 0.8; }
    100% { left: 220px; opacity: 0.3; }
}


.center-menu img {
    width: 50px;
    height: 50px;
}

.bm-item.active span {
    color: #00ff91;
    font-weight: 700;
}


.line-float {
    position: fixed;
    bottom: 90px;      
    right: 20px;
    z-index: 999999;


    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    box-shadow: none;

    display: flex;
    align-items: center;
    justify-content: center;

    animation: floatUp 2s infinite ease-in-out;
}

.line-float img {
    width: 65px;   
    height: auto;
}



@keyframes floatUp {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}


@media (min-width: 769px) {
    .bottom-menu, .line-float {
        display: none !important;
    }
}

.bottom-menu a {
    text-decoration: none !important;
    color: inherit;            
}


.bottom-menu .bm-item span {
    color: #ffffff;
}


.bottom-menu .center-menu span {
    color: #000000;
}


.sidebar::-webkit-scrollbar,
.mobile-sidebar::-webkit-scrollbar {
    width: 5px;
}

.sidebar::-webkit-scrollbar-track,
.mobile-sidebar::-webkit-scrollbar-track {
    background: #003d28;
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb,
.mobile-sidebar::-webkit-scrollbar-thumb {
    background: #17b05d;
    border-radius: 10px;
}

.bottom-menu {
    padding-bottom: env(safe-area-inset-bottom);
}

.main-title {
    position: absolute;
    left: -9999px;
    top: -9999px;
}


#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #2e3235; 
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999999;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
    animation: fadeIn 1.2s ease-in-out infinite alternate;
}

.dot-box {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    background: #00ff66;
    border-radius: 50%;
    opacity: 0.7;
    animation: bounce 0.6s infinite alternate;
}

.dot1 { animation-delay: 0s; }
.dot2 { animation-delay: 0.2s; }
.dot3 { animation-delay: 0.4s; }

@keyframes bounce {
    0% { transform: translateY(0); opacity: 0.3; }
    100% { transform: translateY(-10px); opacity: 1; }
}

@keyframes fadeIn {
    0% { opacity: 0.4; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}


.preloader-hide {
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}


.main-footer {
    background: #f5f7f5;
    padding: 40px 20px 20px;
    margin-top: 50px;
    border-top: 2px solid #dcdcdc;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 10fr 1fr 1fr;
    gap: 5px;
    max-width: 1400px;
    margin: auto;
}

.footer-about p {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 15px;
}

.footer-icons {
    display: flex;
    gap: 20px;
}

.footer-icon-box {
    text-align: center;
}

.footer-icon-box img {
    width: 55px;
}

.footer-icon-box span {
    display: block;
    margin-top: 5px;
    font-weight: 700;
    color: #00994d;
}



.tag-list {
    display: flex;
    flex-wrap: wrap;       /* ให้ขึ้นบรรทัดใหม่ */
    gap: 5px 4px;        /* ระยะห่างระหว่างแท็ก */
    align-items: center;
}
.tag-list span {
    background: #00c160;
    color: white;
    padding: 6px 14px;
    border-radius: 18px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;   /* ห้ามตัดคำ */
    display: inline-block; /* ให้กว้างเท่าข้อความจริง */
}

.footer-tags h3 {
    margin-bottom: 10px !important;   /* ลดช่องว่างใต้คำว่า Tags */
}


html, body {
  height: 100%;
  overflow: auto; 
}


body::-webkit-scrollbar {
  display: none;
}


body {
  scrollbar-width: none;
}

body {
  -ms-overflow-style: none;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.partner-grid img {
    width: 55px;
    height: 55px;
    object-fit: contain;
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.payment-grid img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.footer-bottom {
    text-align: center;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #ccc;
    font-size: 14px;
    color: #555;
}

.main-footer {
    padding-bottom: 10px;
}

.footer-bottom {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

body {
    overflow-x: hidden; 
}

.main {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.main-footer {
    margin-top: 20px !important;   
    padding-bottom: 0 !important;
}

.footer-bottom {
    margin-bottom: 0 !important;
    padding-bottom: 10px !important;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

.main {
    min-height: calc(100vh - 80px); 
    display: block;
}

.content {
    min-height: 50vh;  
}

.main-footer {
    margin-top: auto !important;
}


.slide img {
object-fit: cover;
object-position: center;
}

.sidebar,
.sidebar *,
.sidebar-menu,
.sidebar-menu * {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.sidebar::-webkit-scrollbar,
.sidebar *::-webkit-scrollbar,
.sidebar-menu::-webkit-scrollbar,
.sidebar-menu *::-webkit-scrollbar {
    display: none !important;
}

html, body {
    height: 100%;
    overflow-y: auto;
    scrollbar-width: none;       
    -ms-overflow-style: none;    
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
}

.main {
    scrollbar-width: none !important;   
    -ms-overflow-style: none !important; 
}

.main::-webkit-scrollbar {
    display: none !important; 
}

* {
    scrollbar-width: none !important;
}

*::-webkit-scrollbar {
    display: none !important;
}

/* =========================================
   RESPONSIVE FIX FOR RIDER88
========================================= */

@media (max-width: 768px) {

    /* ปิด sidebar desktop */
    .sidebar {
        display: none !important;
    }

    /* เปิด mobile-sidebar แบบพอดีทุกจอ */


    /* ปรับตำแหน่งเนื้อหา .main */
    .main {
        margin-left: 90px !important;
        width: calc(100% - 90px) !important;

        padding-top: 115px !important;   /* รวม header + announce-bar */
        padding-bottom: 140px !important; /* เว้นให้ bottom-menu */
        
        min-height: auto !important;
    }

    /* ปรับ header logo */
    .header-logo {
        width: 105px !important;
        margin-top: 5px !important;
        margin-left: -3px !important;
    }

    /* แก้ sound-icon ชน sidebar */
    .sound-icon {
        position: relative;
        left: 0 !important;
        margin-left: 6px !important;
        width: 34px !important;
    }

    /* แก้ slider ให้ตอบสนองแต่ละหน้าจอ */
    .slider {
        height: 190px !important;
        border-radius: 12px;
    }

    .slide img {
        height: 190px !important;
        object-fit: cover;
    }

    /* จุด slide-dot ให้อยู่กลางเสมอ */
    .dots {
        bottom: 12px !important;
    }
    .slide-dot {
        width: 10px !important;
        height: 10px !important;
    }
    .slide-dot.active {
        width: 22px !important;
        border-radius: 50px !important;
    }

}

@media (max-width: 768px) {





        .sound-icon {
        width: 42px !important;   /* เดิม 30–34px → เพิ่มเป็น 42px */
        height: auto;
        margin-left: 95px !important; /* ให้ขยับออกจาก sidebar */
        margin-right: 8px !important;
        position: relative;
        top: 0;
        transform: none;
    }

}




@media (max-width: 420px) {

    .slider {
        height: 150px !important;
    }

    .slide img {
        height: 150px !important;
    }

    .game-card img {
        height: 120px !important;
    }

    .sound-icon {
        width: 30px !important;
    }


}

/* ============================
   LOGIN BUTTON – MOBILE VERSION
===============================*/
@media (max-width: 768px) {
    .login-btn {
        padding: 10px 18px;      /* เล็กลงเล็กน้อย */
        font-size: 14px;         /* ขนาดตัวอักษรลดลง */
        border-radius: 26px;     /* โค้งให้เหมาะมือถือ */
        margin-right: 6px;       /* ชิดไลน์เล็กน้อย */

        box-shadow:
            inset 0 2px 3px rgba(255,255,255,0.35),
            inset 0 -3px 5px rgba(0,0,0,0.25),
            0 4px 10px rgba(0,0,0,0.25),
            0 3px 0 #b68400;
    }

    .login-btn::before {
        width: 70px;      /* ทำแสงหดลงให้พอเหมาะมือถือ */
        left: -90px;
        animation: goldShine 2.6s infinite ease-in-out;
    }

    .login-btn:hover {
        transform: translateY(-2px) scale(1.03);
        box-shadow:
            inset 0 2px 4px rgba(255,255,255,0.5),
            inset 0 -3px 6px rgba(0,0,0,0.2),
            0 8px 16px rgba(0,0,0,0.35),
            0 3px 0 #a07000;
    }
}

@media (max-width: 768px) {
    .announce-box {
        position: relative;
    }

    .sound-icon {
        position: absolute !important;
        left: 5px !important;   /* ชิดซ้ายจริง */
        top: 50%;
        transform: translateY(-50%);
        width: 38px !important; /* ขนาดใหญ่เหมาะสม */
        margin: 0 !important;
        z-index: 9999;
    }


}

/* ===============================
   ANNOUNCE BAR & SOUND ICON FINAL 
=============================== */

.announce-bar {
    background: #015C40;
    height: 45px;
    display: flex;
    align-items: center;
    border-bottom: 3px solid #003828;
    filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.4));
}

.announce-box {
    position: relative;
    width: 100%;
    height: 45px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* ลำโพงซ้ายสุดชัวร์ */
.sound-icon {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: auto;
    margin: 0;
    z-index: 50;
}

/* ข้อความวิ่งเริ่มถัดจากลำโพงแบบล็อกตำแหน่ง */
.announce-box marquee {
    padding-left: 48px; /* 34px + ระยะเผื่อ */
    width: 100%;
    color: white;
    font-size: 15px;
    white-space: nowrap;
}

/* ===== MOBILE FIX ===== */
@media (max-width: 768px) {

    .sound-icon {
        width: 30px;
        left: 6px;
    }

    .announce-box marquee {
        padding-left: 42px;
        font-size: 14px;
    }
}

/* ==========================
   MOBILE SIDEBAR DESIGN (แบบในภาพ)
============================= */

@media (max-width: 768px) {

.mobile-sidebar {
    display: block !important;
    position: fixed;
    top: 115px;
    bottom: 70px;
    left: 0;
    width: 95px;
    background: #ffffff;   /* 👈 พื้นหลังขาวกลับมาแล้ว */
    padding: 8px 4px;
    overflow-y: auto;

    box-shadow: 2px 0 8px rgba(0,0,0,0.15);  /* เงาด้านขวา */
    border-right: 3px solid #e5e5e5;        /* เส้นขอบให้โดดเด่น */
    
    z-index: 9999;
}


    /* ปุ่ม mobile แบบในภาพ */
    .mobile-sidebar li {
        margin: 10px 0;
        padding: 12px 6px;
        
        background: #0BBE56; /* เขียวตามภาพ */
        border-radius: 14px;
        
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        text-align: center;
        color: white;
        font-size: 12px;
        font-weight: 700;
        gap: 5px;

        box-shadow:
            0 4px 10px rgba(0,0,0,0.20),
            inset 0 2px 4px rgba(255,255,255,0.4);
        
        transition: 0.22s ease;
        cursor: pointer;
    }

    .mobile-sidebar li img {
        width: 32px;
        height: 32px;
        object-fit: contain;
        filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.25));
    }

    /* Hover – นูนขึ้น */
    .mobile-sidebar li:hover {
        transform: translateY(-3px);
        filter: brightness(1.1);
        box-shadow:
            0 6px 16px rgba(0,0,0,0.28),
            inset 0 2px 4px rgba(255,255,255,0.55);
    }

    /* ACTIVE – แบบในภาพ */
    .mobile-sidebar li.active {
        background: #ffffff !important;
        color: #00a84a !important;
        border: 2px solid #22c96b;
        box-shadow:
            0 4px 14px rgba(0,0,0,0.3),
            inset 0 2px 4px rgba(255,255,255,0.6);
    }

    .mobile-sidebar li.active img {
        filter: none !important;
    }
}

/* ============================
   GAME THUMB – RESPONSIVE MOBILE (FIX)
============================ */
@media (max-width: 600px) {

    .game-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding: 0 5px !important;
    }

    .game-thumb {
        height: auto !important;              /* ยกเลิก height เดิม */
        aspect-ratio: 16 / 9 !important;      /* รูปเป็นแนวนอนพอดี */
        border-radius: 10px !important;
    }

    .game-thumb img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 10px !important;
    }

    .game-card img {
        height: auto !important;  /* ยกเลิกค่าเก่า 180px */
    }

    .play-btn {
        font-size: 12px !important;
        padding: 6px 14px !important;
    }

    .game-card p {
        font-size: 13px !important;
        margin-top: 4px !important;
    }
}

@media (max-width: 600px) {

    .tag-list {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 4px 4px !important;     /* ช่องไฟเท่ามือถือจริง */
        justify-content: center;     /* เรียงตรงกลางแบบในภาพ */
        padding: 0 8px !important;
    }

    .tag-list span {
        font-size: 11px !important;  /* ขนาดเท่ามือถือจริงในภาพ */
        padding: 4px 10px !important;
        border-radius: 14px !important;
        white-space: nowrap !important;
        display: inline-block !important;
    }
}


