*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    background:#efefef;
    font-family:Arial, Helvetica, sans-serif;
}

.header{

    max-width:480px;

    margin:auto;

    height:70px;

    background:#fff5e7;

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:0 15px;

}

.menu-btn{

    font-size:30px;

    cursor:pointer;

}

.logo{

    height:55px;

}

.gift-btn{

    width:42px;

    height:42px;

    border-radius:10px;

    background:#1f8cff;

    display:flex;

    justify-content:center;

    align-items:center;

    color:white;

    font-size:24px;

}

/* Khu vực 2 nút */
.top-buttons{

    max-width:480px;

    margin:auto;

    display:flex;

    gap:10px;

    padding:10px;

    background:#f4a623;

}

/* Chung */

.top-buttons button{

    flex:1;

    height:48px;

    border-radius:30px;

    font-size:20px;

    font-weight:bold;

    cursor:pointer;

}

/* Đăng nhập */

.login-btn{

    background:#ffffff;

    border:3px solid #0b8dff;

}

/* Đăng ký */

.register-btn{

    background:#ffd400;

    border:none;

}

/* Banner */

.banner {
    max-width: 480px;
    margin: auto;
    overflow: hidden;
}

.banner img {
    width: 100%;
    height: 220px;      /* Chiều cao cố định */
    object-fit: cover;  /* Cắt ảnh để lấp đầy khung */
    display: block;
}
.menu-grid{

    max-width:480px;

    margin:auto;

    display:grid;

    grid-template-columns:repeat(4,1fr);

    background:white;

}

.item{

    padding:15px 0;

    text-align:center;

    font-size:30px;

    border:1px solid #eee;

}

.item span{

    display:block;

    font-size:14px;

    margin-top:8px;

}

/* ===== Slider ===== */

.slider{
    max-width:480px;
    overflow:hidden;
    margin:auto;
}

.slides{
    display:flex;
    transition:transform .5s ease;
}

.slides img{
    width:100%;
    flex:0 0 100%;
    display:block;
}
/* ===========================
        NOTICE
=========================== */

.notice{

    max-width:480px;

    margin:auto;

    display:flex;

    align-items:center;

    background:#fff;

    padding:10px;

    border-top:1px solid #eee;

    border-bottom:1px solid #eee;

}

.notice-icon{

    font-size:22px;

    margin-right:10px;

}

.notice-text{

    flex:1;

    color:#ff6600;

    font-size:14px;

    font-weight:bold;

}
/*=========================
        GAME GRID
=========================*/

.game-section{

    max-width:480px;

    margin:auto;

    padding:15px;

    background:#fff;

}

.game-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:15px;

}

.game-card{

    transition:.25s;

    cursor:pointer;

}

.game-card:hover{

    transform:translateY(-4px);

}

.game-card img{

    width:100%;

    display:block;

    border-radius:15px;

    box-shadow:0 4px 12px rgba(0,0,0,.15);

}

.game-title{

    margin-top:6px;

    display:flex;

    align-items:center;

    border:2px solid #ff9900;

    border-radius:30px;

    background:#fff;

    overflow:hidden;

    font-size:11px;

    font-weight:bold;

}

.logo-mini{

    color:#ff7b00;

    padding:4px 6px;

}

.game-title span:last-child{

    flex:1;

    text-align:center;

}
/*========================
      PROMOTION
========================*/

.promo-section{

    max-width:480px;

    margin:15px auto;

    padding:0 10px;

}

.promo-card{

    margin-bottom:12px;

}

.promo-card img{

    width:100%;

    display:block;

    border-radius:14px;

    box-shadow:0 4px 10px rgba(0,0,0,.15);

    transition:.3s;

}

.promo-card img:hover{

    transform:scale(1.02);

}
/*========================
        INFO BOX
========================*/

.info-box{

    max-width:480px;

    margin:15px auto;

    padding:0 12px;

}

.info-link{

    display:block;

    text-align:center;

    text-decoration:none;

    background:#fff8e8;

    color:#f39c12;

    font-size:22px;

    font-weight:bold;

    line-height:1.4;

    padding:18px 15px;

    border:3px solid #ffd54f;

    border-radius:10px;

    box-shadow:0 0 12px rgba(255,193,7,.7);

    transition:.3s;

}

.info-link:hover{

    transform:translateY(-2px);

    box-shadow:0 0 18px rgba(255,193,7,.9);

}
/*=========================
      ABOUT
=========================*/

.about-section{

    max-width:480px;

    margin:auto;

    padding:18px;

    background:#fff;

}

.about-section h2{

    color:#ff8c00;

    text-align:center;

    font-size:22px;

    margin-bottom:18px;

    line-height:1.4;

}

.about-section p{

    color:#555;

    font-size:15px;

    line-height:1.8;

    margin-bottom:16px;

    text-align:justify;

}

.about-section strong{

    color:#ff8c00;

}
/*=========================
        GUIDE
=========================*/

.guide-section{

    max-width:480px;

    margin:auto;

    background:#fff7dd;

    padding:18px;

}

.guide-section h2{

    color:#ff4d2d;

    font-size:22px;

    font-weight:bold;

    margin-bottom:15px;

    border-bottom:2px solid #ddd;

    padding-bottom:10px;

}

.guide-list{

    padding-left:20px;

}

.guide-list li{

    margin:18px 0;

    line-height:1.6;

}

.guide-list a{

    color:#0066cc;

    text-decoration:none;

    font-size:17px;

}

.guide-list a:hover{

    text-decoration:underline;

}
/*=========================
        ABOUT LINK
=========================*/

.about-links{

    max-width:480px;

    margin:auto;

    padding:18px;

    background:#fff7dd;

}

.about-links h2{

    color:#ff4d2d;

    font-size:22px;

    font-weight:bold;

    border-bottom:2px solid #ddd;

    padding-bottom:10px;

    margin-bottom:15px;

}

.about-links ul{

    padding-left:22px;

}

.about-links li{

    margin:18px 0;

}

.about-links a{

    color:#0066cc;

    text-decoration:none;

    font-size:17px;

}

.about-links a:hover{

    text-decoration:underline;

}
/*=========================
     CONTACT SECTION
=========================*/

.contact-section{

    max-width:480px;

    margin:auto;

    background:#fff7dd;

    padding:18px;

}

.contact-section h2{

    color:#ff4d2d;

    font-size:22px;

    font-weight:bold;

    margin-bottom:15px;

    border-bottom:2px solid #ddd;

    padding-bottom:10px;

}

.contact-list{

    padding-left:22px;

}

.contact-list li{

    margin:16px 0;

    line-height:1.8;

    color:#222;

    font-size:16px;

}

.contact-list strong{

    color:#000;

}

.contact-list a{

    color:#0066cc;

    text-decoration:none;

    word-break:break-all;

}

.contact-list a:hover{

    text-decoration:underline;

}
/*=========================
        FOOTER
=========================*/

.footer{

    max-width:480px;

    margin:auto;

    background:#f3ad16;

    padding:18px;

    text-align:center;

}

.footer p{

    color:#5c3d00;

    font-size:15px;

    line-height:1.8;

}

.footer strong{

    font-weight:bold;

}
/*========================
        DRAWER
========================*/

#sideMenu{

    position:fixed;

    top:0;

    left:-280px;

    width:260px;

    height:100vh;

    background:white;

    z-index:9999;

    transition:.35s;

    box-shadow:4px 0 12px rgba(0,0,0,.25);

}

#sideMenu.open{

    left:0;

}

.menu-header{

    background:#ff9800;

    padding:20px;

    text-align:center;

}

.menu-header img{

    width:130px;

}

#sideMenu a{

    display:block;

    padding:18px;

    color:#333;

    text-decoration:none;

    border-bottom:1px solid #eee;

    font-weight:bold;

}

#sideMenu a:hover{

    background:#fff4dd;

}

#overlay{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.45);

    display:none;

    z-index:9998;

}

#overlay.show{

    display:block;

}
/* POPUP REGISTER */

.register-modal{

    display:none;
    position:fixed;

    inset:0;

    background:rgba(0,0,0,.65);

    justify-content:center;
    align-items:center;

    z-index:9999;

}


.register-box{

    width:92%;
    max-width:390px;

    background:#fffaf0;

    border-radius:22px;

    padding:25px 22px;

    box-shadow:0 10px 40px rgba(0,0,0,.3);

    position:relative;

}



/* dấu X */

.close-register{

    position:absolute;

    right:20px;
    top:15px;

    font-size:28px;

    color:#222;

    cursor:pointer;

}



/* tiêu đề */


.register-box h1{

    margin:0;

    text-align:center;

    font-size:26px;

    font-weight:800;

    color:#e60012;

}



/* mô tả */


.register-note{

    margin-top:18px;

    font-size:15px;

    line-height:22px;

    color:#333;

}


.login-link{

    font-size:15px;

    margin-bottom:20px;

}


.login-link a{

    color:#8e44ad;

    font-weight:600;

}



/* INPUT */


.register-box input[type=text],
.register-box input[type=password],
.register-box input[type=tel]{


    width:100%;

    height:48px;

    box-sizing:border-box;


    border:none;

    outline:none;


    background:white;


    border-radius:25px;


    padding:0 18px;


    font-size:15px;


    margin-bottom:14px;


    box-shadow:
    0 4px 12px rgba(0,0,0,.08);

}



/* PHONE */


.phone-group{

    display:flex;

    gap:10px;

}


.phone-group span{


    width:70px;

    height:48px;

    background:white;

    border-radius:25px;


    display:flex;

    justify-content:center;

    align-items:center;


    font-size:14px;


    box-shadow:
    0 4px 12px rgba(0,0,0,.08);

}



.phone-group input{

    flex:1;

}



/* CHECKBOX */


.agree{


    display:flex;

    align-items:center;


    gap:10px;


    font-size:14px;

    margin:10px 0 20px;


}


.agree input{

    width:16px;

    height:16px;

}



/* BUTTON */


.register-buttons{


    display:flex;

    gap:15px;


}



.register-buttons button{


    flex:1;

    height:50px;


    border-radius:30px;


    border:none;


    font-size:16px;


    font-weight:bold;


    cursor:pointer;


}



#cancelRegister{


    background:#ddd;

    color:#333;

}



.register-buttons button:last-child{


    background:#ff9800;

    color:white;


}
.register-modal.show{

    display:flex;

}
/* ===== ERROR MESSAGE ===== */


.error{

    display:block;

    color:#e60000;

    font-size:13px;

    margin:-8px 0 10px 15px;

    min-height:15px;

}


.input-error{

    border:2px solid #e60000 !important;

}


.input-success{

    border:2px solid #22c55e !important;

}

/* ===== SUCCESS POPUP ===== */

.success-popup{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.6);
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:99999;
    animation:fadeIn .3s;
}

.success-box{
    width:320px;
    background:#fff;
    border-radius:20px;
    text-align:center;
    padding:30px 20px;
    animation:zoom .35s;
}

.success-icon{
    font-size:70px;
    margin-bottom:15px;
}

.success-box h2{
    color:#16a34a;
    font-size:28px;
    margin-bottom:10px;
}

.success-box p{
    color:#666;
    font-size:16px;
}

@keyframes zoom{
    from{
        transform:scale(.7);
        opacity:0;
    }
    to{
        transform:scale(1);
        opacity:1;
    }
}

@keyframes fadeIn{
    from{
        opacity:0;
    }
    to{
        opacity:1;
    }
}