:root{
  --blue:#1976d2;
  --blue2:#0f5fb8;
  --yellow:#ffd400;
  --text:#0b1220;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family: "Noto Sans Myanmar", system-ui, -apple-system, sans-serif;
  background:#fff;
  color:var(--text);
}

/* TOP BAR */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  padding: 0 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  background: linear-gradient(180deg,var(--blue),var(--blue2));
  box-shadow: 0 10px 22px rgba(0,0,0,.14);
}

.brand-title{
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  letter-spacing: .5px;
  color:#fff;
  font-size: 20px;
}

/* WALLET BUTTON (yellow 3D) */
.walletBtn{
  border:none;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:10px;
  padding: 10px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg,#ffe66b,var(--yellow));
  box-shadow:
    0 10px 18px rgba(0,0,0,.20),
    inset 0 1px 0 rgba(255,255,255,.65);
  font-weight: 900;
  color:#1b1b1b;
}
.walletBtn i{ font-size:18px; }
.walletBtn:active{
  transform: translateY(2px) scale(.99);
  box-shadow:
    0 6px 14px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.55);
}

.wrap{
  max-width: 720px;
  margin: 0 auto;
  padding: 14px;
}

/* SLIDER 16:9 */
.slider{
  width:100%;
  border-radius: 18px;
  overflow:hidden;
  background: #f3f6fb;
  box-shadow: 0 12px 28px rgba(0,0,0,.10);
  margin-bottom: 14px;
}

.sliderTrack{
  display:flex;
  width:100%;
  transform: translateX(0);
  transition: transform .35s ease;
  touch-action: pan-y;
}

.slide{
  min-width:100%;
  aspect-ratio: 16/9;
  background:#e9eef7;
}
.slide img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.dots{
  display:flex;
  gap:8px;
  justify-content:center;
  padding: 10px 0 12px;
  background: rgba(255,255,255,.8);
}
.dot{
  width:8px;
  height:8px;
  border-radius: 999px;
  background: rgba(15,95,184,.25);
  transition: .2s;
}
.dot.active{
  width:18px;
  background: rgba(15,95,184,.95);
}

/* GAME GRID 2 per row */
.grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-bottom: 10px;
}

.gameCard{
  position:relative;
  border:none;
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(15,95,184,.12);
  border-radius: 18px;
  overflow:hidden;
  box-shadow: 0 10px 22px rgba(0,0,0,.10);
  padding: 0;
  text-align:left;
  cursor:pointer;
  transition: transform .12s ease, box-shadow .2s ease;
}

.gameCard:active{
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 16px 30px rgba(0,0,0,.14);
}

.gameImg{
  width:100%;
  aspect-ratio: 16/9;
  object-fit:cover;
  display:block;
  background:#eef2f8;
}

.gameName{
  padding: 10px 12px 12px;
  font-weight: 900;
  color:#0f172a;
}

/* HOT badge */
.hotBadge{
  position:absolute;
  top:10px;
  left:10px;
  padding: 6px 10px;
  border-radius: 12px;
  font-weight: 900;
  font-size: 12px;
  color:#fff;
  background: linear-gradient(180deg,#ff6b6b,#ef4444);
  box-shadow: 0 12px 22px rgba(239,68,68,.25);
  animation: hotPulse 1.6s ease-in-out infinite;
}
.hotBadge::after{
  content:"";
  position:absolute;
  inset:-6px;
  border-radius: 16px;
  background: radial-gradient(circle at 30% 30%, rgba(255,220,120,.60), rgba(255,90,90,0) 60%);
  filter: blur(6px);
  z-index:-1;
  opacity:.9;
  animation: hotGlow 1.6s ease-in-out infinite;
}

@keyframes hotPulse{
  0%,100%{ transform: translateY(0) scale(1); }
  50%{ transform: translateY(-1px) scale(1.03); }
}
@keyframes hotGlow{
  0%,100%{ opacity:.7; }
  50%{ opacity:1; }
}

/* MODAL */
.modal{
  position: fixed;
  inset: 0;
  display:none;
  align-items:center;
  justify-content:center;
  background: rgba(0,0,0,.45);
  z-index: 9999;
  padding: 14px;
}
.modal.show{ display:flex; }

.modalBox{
  width: min(420px, 100%);
  border-radius: 22px;
  padding: 16px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 45px rgba(0,0,0,.30);
}

.modalTitle{
  font-weight: 900;
  color:#fff;
  margin-bottom: 10px;
}
.modalText{
  color:#fff;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 14px;
}

.modalBtns{
  display:flex;
  gap: 10px;
}

.btn3d{
  flex:1;
  border:none;
  cursor:pointer;
  padding: 12px 12px;
  border-radius: 16px;
  font-weight: 900;
  box-shadow:
    0 12px 22px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.45);
}
.btn3d:active{
  transform: translateY(2px) scale(.99);
}

.btnRed{
  color:#fff;
  background: linear-gradient(180deg,#ff5a5a,#ef4444);
}
.btnGray{
  color:#0b1220;
  background: linear-gradient(180deg,#ffffff,#e9edf6);
}

/* TOAST */
.toast{
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  background: rgba(20,20,20,.88);
  color:#fff;
  padding: 10px 14px;
  border-radius: 14px;
  font-weight: 800;
  opacity:0;
  pointer-events:none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 99999;
}
.toast.show{
  opacity:1;
  transform: translateX(-50%) translateY(-6px);
}

/* Small screens */
@media (max-width: 380px){
  .brand-title{ font-size:18px; }
  .walletText{ font-size:13px; }
}