*{
  box-sizing:border-box;
}
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}
.seo-links-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
    padding: 15px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8f9ff, #eef3ff);
    border: 1px solid #dbe6ff;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.seo-links-box a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    color: #1f3a93;
    background: #ffffff;
    border: 1px solid #e6e6e6;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

/* hover effect */
.seo-links-box a:hover {
    transform: translateY(-2px);
    background: #1f3a93;
    color: #fff;
    border-color: #1f3a93;
    box-shadow: 0 8px 20px rgba(31,58,147,0.25);
}

/* icon highlight animation */
.seo-links-box a::before {
    content: "";
    position: absolute;
    left: -50%;
    top: 0;
    width: 50%;
    height: 100%;
    background: rgba(255,255,255,0.15);
    transform: skewX(-20deg);
    transition: 0.5s;
}

.seo-links-box a:hover::before {
    left: 120%;
}
@supports(height:100dvh){
  html,body{
    height:100dvh;
    min-height:100dvh;
  }
}

a{
  text-decoration:none;
  color:inherit;
}

img{
  display:block;
  max-width:100%;
}

/* PAGE */
.page{
  width:100%;
  max-width:430px;
  height:100svh;
  min-height:100svh;
  max-height:100svh;
  margin:0 auto;
  background:#fff;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  box-shadow:0 0 30px #0001;
}

@supports(height:100dvh){
  .page{
    height:100dvh;
    min-height:100dvh;
    max-height:100dvh;
  }
}

/* APP DOWNLOAD */
.app-download{
  height:58px;
  flex-shrink:0;
  background:#fff;
  border-bottom:1px solid #e9e9e9;
  display:flex;
  align-items:center;
  gap:10px;
  padding:0 10px;
  transition:height .35s ease,padding .35s ease,opacity .25s ease;
}

.app-close{
  border:0;
  background:none;
  color:#888;
  font-size:30px;
  line-height:1;
  padding:0 4px;
  cursor:pointer;
}

.app-icon{
  width:42px;
  height:42px;
  object-fit:contain;
  background:#f3f3f3;
  border-radius:10px;
  padding:4px;
  flex-shrink:0;
  box-shadow:0 2px 4px rgba(0,0,0,.08);
}

.app-info{
  flex:1;
  line-height:1.05;
  color:#111;
  min-width:0;
}

.app-info b{
  display:block;
  font-size:17px;
  font-weight:700;
}

.app-info span{
  display:block;
  font-size:15px;
}

.app-btn{
  background:#3399e6;
  color:#fff;
  border-radius:4px;
  padding:10px 16px;
  font-size:15px;
  white-space:nowrap;
}

/* TOP */
.top{
  height:44px;
  flex-shrink:0;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  padding:0 8px 4px;
  background:#fff;
}

.logo{
  height:24px;
  width:auto;
}

.top-btns{
  display:flex;
  gap:6px;
}

.top-btns .top-btns{
  display:flex;
}

.btn{
  height:26px;
  display:flex;
  align-items:center;
  gap:5px;
  color:#fff;
  border-radius:18px;
  padding:4px 13px 4px 5px;
  font-size:14px;
  line-height:1;
  white-space:nowrap;
  overflow:hidden;
  text-shadow:0 1px 0 rgba(0,0,0,.12);
}

.orange{
  background:#ff9a25;
}

.blue{
  background:#249bd7;
}

.btn-icon{
  width:22px;
  height:22px;
  flex-shrink:0;
  display:flex;
  align-items:center;
  justify-content:center;
}

.btn-icon img{
  width:18px !important;
  height:18px !important;
  object-fit:contain !important;
}

/* BANNER */
.banner{
  height:150px;
  flex-shrink:0;
  margin:0 8px 8px;
  overflow:hidden;
  border-radius:8px;
  position:relative;
  background:#eaf4ff;
  transition:height .35s ease,margin .35s ease;
}

.banner img{
  width:100%;
  height:100%;
  object-fit:cover;
}

/* SLIDER */
.slider{
  position:relative;
}

.slides{
  width:100%;
  height:100%;
  position:relative;
}

.slide{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0;
  transition:opacity .6s ease;
}

.slide.active{
  opacity:1;
}

.dots{
  position:absolute;
  left:50%;
  bottom:8px;
  transform:translateX(-50%);
  display:flex;
  gap:6px;
  z-index:10;
}

.dot{
  width:7px;
  height:7px;
  border-radius:50%;
  background:#fff;
  opacity:.65;
  box-shadow:0 1px 3px rgba(0,0,0,.35);
}

.dot.active{
  opacity:1;
}

.banner::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:18%;
  z-index:8;
  pointer-events:none;
  background:linear-gradient(to bottom,rgba(255,255,255,.65),rgba(255,255,255,0));
}

.banner::after{
  content:"";
  position:absolute;
  bottom:0;
  left:0;
  width:100%;
  height:18%;
  z-index:8;
  pointer-events:none;
  background:linear-gradient(to top,rgba(255,255,255,.65),rgba(255,255,255,0));
}

/* MAIN */
.layout{
  flex:1;
  min-height:0;
  display:grid;
  grid-template-columns:72px 1fr;
  gap:6px;
  padding:0 8px 6px;
  overflow:hidden;
}

/* LEFT MENU */
.left-menu{
  height:100%;
  min-height:0;
  display:grid;
  grid-template-rows:repeat(8,1fr);
  gap:7px;
}

.left-menu a{
  position:relative;
  border-radius:9px;
  background:#eaf4ff;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  border:1px solid transparent;
  transition:.25s;
  overflow:hidden;
}

.left-menu a.active{
  border:1px solid #43a7ff;
  box-shadow:
    inset 0 0 0 1px rgba(67,167,255,.15),
    0 0 8px rgba(67,167,255,.12);
}

.left-menu img{
  width:32%;
  height:32%;
  object-fit:contain;
  margin-bottom:5px;
}

.left-menu span{
  font-size:11px;
  font-weight:700;
  line-height:1.12;
  color:#535867;
  text-align:center;
}

.hot-fire{
  width:58% !important;
  height:58% !important;
  animation:hotFloat 1.2s ease-in-out infinite alternate;
  filter:drop-shadow(0 8px 3px rgba(0,0,0,.18));
}

@keyframes hotFloat{
  from{transform:translateY(0);}
  to{transform:translateY(-7px);}
}

/* CARDS AREA */
.cards-area{
  position:relative;
  width:100%;
  height:100%;
  min-height:0;
  overflow:hidden;
}

.cards,
.tab-content{
  height:100%;
  min-height:0;
  grid-template-columns:1fr 1fr;
  grid-template-rows:repeat(3,1fr);
  gap:6px;
}

.tab-content{
  position:absolute;
  inset:0;
  display:none;
}

.tab-content.active{
  display:grid;
}



.game-card h3{
  position:absolute;
  top:6%;
  left:7%;
  margin:0;
  z-index:5;
  color:#555;
  font-size:15px;
  font-weight:900;
  line-height:1.08;
}







/* EVENT */
.event h3{
  background:#ff5a2f;
  color:#fff;
  padding:4% 7%;
  border-radius:0 0 12px 12px;
  top:0;
  left:6%;
}

/* MINI */
.mini-wrap{
  height:100%;
  min-height:0;
  display:grid;
  grid-template-rows:1fr 1fr;
  gap:6px;
}

.mini-card{
  height:auto;
  min-height:0;
  border-radius:9px;
  background:#d9d1ff;
  position:relative;
  overflow:hidden;
  padding:12% 8%;
  font-size:14px;
  font-weight:900;
  color:#555;
  line-height:1.12;
}

.mini-card img{
  position:absolute;
  right:8%;
  top:32%;
  width:24%;
}

/* BOTTOM */
.bottom{
  width:100%;
  height:56px;
  flex-shrink:0;
  background:#fff;
  border-top:1px solid #ddd;
  z-index:50;
  display:flex;
  align-items:center;
  justify-content:space-around;
}

.bottom a{
  width:20%;
  height:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  font-size:11px;
  font-weight:bold;
  color:#111;
}



.bottom .svg-icon{
    width:20%;
    display:flex;
    flex-direction:column;
    align-items:center;
}

.bottom .svg-icon img{
    width:24px;
    height:24px;      /* khung hiển thị */
    object-fit:cover;
    object-position:top;
}
.bottom .gift{
    transform: translateY(-9px);
}
.bottom .gift img{
    width:60px;
    height:60px;
    
    object-fit:contain;
}
.bottom a span{
    font-size:11px;
    white-space:nowrap;
    line-height:1;
}
.bottom .money{
    width:20%;
    display:flex;
    transform:translateY(-8px);
    flex-direction:column;
    align-items:center;
}

.bottom .money img{
    width:40px;
    height:40px;
    object-fit:cover;
    
    object-position:top;
}
/* CLICK X */
.page.hide-app .app-download{
  height:0;
  padding-top:0;
  padding-bottom:0;
  opacity:0;
  overflow:hidden;
  border-bottom:0;
}

.page.hide-app .banner{
  height:185px;
}

/* MÀN THẤP - ĐIỆN THOẠI THẬT CÓ THANH CHROME */
@media(max-height:760px){
  .app-download{
    height:52px;
    gap:7px;
    padding:0 7px;
  }

  .app-close{
    font-size:26px;
  }

  .app-icon{
    width:38px;
    height:38px;
  }

  .app-info b{
    font-size:15px;
  }

  .app-info span{
    font-size:13px;
  }

  .app-btn{
    font-size:15px;
    padding:9px 12px;
  }

  .top{
    height:38px;
    padding:0 7px 3px;
  }

  .logo{
    height:23px;
  }

  .btn{
    height:25px;
    font-size:12px;
    padding:4px 8px 4px 4px;
  }

  .btn-icon{
    width:20px;
    height:20px;
  }

  .btn-icon img{
    width:18px !important;
    height:18px !important;
  }

  .banner{
    height:128px;
    margin:0 7px 7px;
  }

  .layout{
    grid-template-columns:64px 1fr;
    gap:6px;
    padding:0 7px 5px;
  }

  .left-menu{
    gap:5px;
  }

  .left-menu img{
    width:30%;
    height:30%;
    margin-bottom:4px;
  }

  .left-menu span{
    font-size:10px;
  }

  .game-card h3{
    font-size:13px;
  }

  .mini-card{
    font-size:12px;
  }

  .bottom{
    height:52px;
  }

.bottom img{
    width:24px;
    height:48px;       /* chiều cao gốc */
    object-fit:none;
    object-position:center top;
}

  .bottom a{
    font-size:10px;
  }

 
  .page.hide-app .banner{
    height:170px;
  }
}

/* MÀN RẤT NHỎ */
@media(max-width:380px){
  .layout{
    grid-template-columns:58px 1fr;
    padding:0 6px 5px;
  }

  .banner{
    height:125px;
    margin:0 6px 6px;
  }

  .left-menu span{
    font-size:9px;
  }

  .game-card h3{
    font-size:12px;
  }

  .mini-card{
    font-size:11px;
  }

  .logo{
    height:22px;
  }

  .btn{
    font-size:12px;
    padding-right:7px;
  }
}

/* PC CHỈ GIỮ KHUNG MOBILE */
@media(min-width:700px){
  .page{
    width:430px;
    max-width:430px;
  }
}
/* ===== CARD GHÉP NHIỀU ẢNH ===== */





/* ===== CARD 1 ẢNH ===== */

/* ===== CARD 1 ẢNH - PHÓNG TO FULL KHUNG ===== */

/* ===== CARD 1 ẢNH - FULL KHUNG ===== */

.game-card{
    position:relative;
    overflow:hidden;
    border-radius:9px;
    background:#eaf4ff;
}

.game-card .full-img{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
   
    object-position:center;
    
}
/* iPhone 6/7/8 - cao 667px */
@media (max-height: 667px){
    .game-card .full-img{
        
    }
}
/* nếu vẫn dùng tiêu đề */
.game-card h3{
    position: absolute;
    top: 8px;
    left: 10px;
    z-index: 5;

    margin: 0;

    font-size: 15px;
    font-weight: 900;
    color: #555;
}

/* card world cup */
.event h3{
    background: #ff5a2f;
    color: #fff;
    padding: 5px 10px;
    border-radius: 0 0 12px 12px;
}

/* mini card */
/* mini card */
.mini-card{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 10px;
    border-radius:10px;
    overflow:hidden;
    background:#d9d1ff;
}

.scroll-box,
.mini-text{
    flex:1;
    min-width:0;
}

/* chữ chạy */
.scroll-box{
    height:42px; /* 2 dòng × 22px */
    overflow:hidden;
    position:relative;
}

.scroll-text{
    display:flex;
    flex-direction:column;
    animation:scrollUp 12s infinite;
}

.scroll-text span,
.mini-text span{
    display:block;
    font-size:clamp(20px, 3vw, 15px);
    font-weight:700;
    line-height:22px;
    color:#555;
    white-space:nowrap;
}

/* gạch ngang chạy theo chữ */
.scroll-text span{
    position:relative;
    width:max-content;
}

.scroll-text span::after{
    content:"";
    position:absolute;
    left:0;
    bottom:1px;
    width:100%;
    height:1px;
    background:#8f8adf;
}

/* chữ dưới đứng im */
.mini-text span{
    line-height:1.1;
}

/* ảnh bên phải */
.mini-card img{
    width:30px;
    height:30px;
    object-fit:contain;
    margin-left:8px;
    flex-shrink:0;
}

/* chạy + đứng im */
@keyframes scrollUp{
    0%,20%{
        transform:translateY(0);
    }

    30%,50%{
        transform:translateY(-22px);
    }

    60%,80%{
        transform:translateY(-44px);
    }

    100%{
        transform:translateY(0);
    }
}
.login-overlay{
    display:none;
    position:fixed;
    inset:0;
    background: rgba(0,0,0,.2);
    z-index:9999;
    justify-content:center;
    align-items:center;
}

.login-overlay.show{
    display:flex;
}

.login-box{
    width:380px;
    min-height:290px;
    background:#fff;
    border-radius:18px;
    overflow:hidden;
}

.login-header{
    position:relative;
    height:48px;
    background:#eee;
    display:flex;
    align-items:center;
    justify-content:center;
}

.login-header h2{
    margin:0;
    font-size:17px;
    font-weight:700;
    color:#111;
}

.close-login{
    position:absolute;
    right:14px;
    top:14px;
    border:none;
    background:none;
    cursor:pointer;
    padding:0;
}

.close-login img{
    width:22px;
    height:22px;
    opacity:.45;
}

.login-body{
    padding:30px 28px 1px;
}

.input-group{
    display:flex;
    align-items:flex-end;
    border-bottom:1px solid #ddd;
    margin-bottom:10px;
    padding-bottom:0;
}
.input-icon{
    display:flex;
    align-items:center;
    justify-content:center;
    transform:translateY(-2px);
}

.input-icon img{
    width:32px;
    height:32px;
    position:relative;
    top:-5px;
}
.input-group input{
   flex:1;
    border:none;
    outline:none;
    background:transparent;

    height:40px;
   

    
    text-transform:uppercase;

    color:#111;
    padding-left:10px;
}
.input-group input::placeholder{
    font-size:20px;
    color:#aaa;
    text-transform:none; /* 👈 giữ nguyên */
    font-weight:400;
}
.eye-btn{
    border:none;
    background:none;
    padding:0;
    cursor:pointer;
} 

.eye-btn img{
    width:24px;
    height:24px;
     position:relative;
    top:-5px;
    transform: scale(1.2);
}

.forgot{
    text-align:right;
    margin-top:8px;
    margin-bottom:15px;
}

.forgot a{
    color:#1d71b8;
    font-size:19px;
    position:relative;
    top:5px;
}

.login-buttons{
    display:flex;
    justify-content:center; /* 👈 căn giữa */
    gap:12px;
}

.register-btn,
.login-btn{
    flex:unset;      /* bỏ giãn full */
    width:160px;     /* thu lại */
    height:46px;
}
.login-btn {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none;
    appearance: none;
}

.login-btn:focus,
.login-btn:active {
    outline: none !important;
    box-shadow: none !important;
}
.login-btn{
    background:#aaa;
    color:#fff;
    transition:.25s;
    opacity:.7;
    cursor:pointer;
}

.login-btn.active{
    background:#45b5d9;
    pointer-events:auto;
    opacity:1;
}
.register-btn{
    background:#ff7500;
    color:#fff;
    text-align:center;
    line-height:48px;
}

.login-btn{
    background:#aaa;
    color:#fff;
     font-size:15px;
}
.notice-popup{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.55);
    display:none;
    align-items:center;
    justify-content:center;
    z-index:99999;
}

.notice-popup.show{
    display:flex;
}

.notice-box{
    width:90%;
    max-width:320px;
    background:#fff;
    border-radius:12px;
    padding:20px;
    text-align:center;
}

.notice-title{
    font-size:18px;
    font-weight:700;
    margin-bottom:12px;
}

.notice-text{
    font-size:14px;
    line-height:1.5;
    margin-bottom:18px;
}

.notice-box button{
    width:100%;
    height:42px;
    border:none;
    border-radius:8px;
    background:#0d6efd;
    color:#fff;
    font-weight:600;
    cursor:pointer;
}
.phone-group{
    max-height:0;
    opacity:0;
    overflow:hidden;
    transition:.3s;
}

.phone-group.show{
    display:flex;
    max-height:50px;
    opacity:1;
}
.login-box.phone-open{
    min-height:340px;
}
.msg-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.35);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:99999;
}

.msg-overlay.show{
    display:flex;
}

.msg-box{
    width:270px;
    background:#fff;
    border-radius:6px;
    overflow:hidden;
    box-shadow:0 10px 25px rgba(0,0,0,.15);
}

.msg-title{
    text-align:center;
    font-size:16px;
    font-weight:700;
    padding:10px 15px 4px;
    color:#222;
}

.msg-text{
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;

    min-height:50px;

    padding:0 18px;
    font-size:14px;
    color:#000;
    line-height:1.25;
}
.msg-actions{
    display:flex;
    border-top:1px solid #ddd;
}

.msg-actions button{
    flex:1;
    height:38px;
    border:none;
    background:#fff;
    font-size:15px;
    cursor:pointer;
}

.msg-cancel{
    color:#999;
    border-right:1px solid #ddd !important;
}

.msg-forgot{
    color:#007aff;
    font-weight:600;
}