/* ABBABET mobile layout — scoped for unified page */

.layout-mobile {
  margin: 0;
  font-family: Rubik, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #fff;
  background: #353148;
  -webkit-font-smoothing: antialiased;
}

.layout-mobile a {
  color: inherit;
  text-decoration: none;
}

.layout-mobile img {
  display: block;
  max-width: 100%;
}

.layout-mobile #page_bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #353148;
}

.layout-mobile .m-shell {
  min-height: 100vh;
  padding-bottom: calc(1.4rem + env(safe-area-inset-bottom, 0px));
}

.layout-mobile .header-content {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
}

.layout-mobile .header-user {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 1.2rem;
  padding: 0 0.2rem 0 0.1rem;
  background: url(../../m/img/header-bg.4fae9165.png) no-repeat 50% / cover;
}

.layout-mobile .header-user::after {
  position: absolute;
  top: -0.03rem;
  z-index: -1;
  width: 100%;
  height: 1.28rem;
  content: "";
  background: url(../../m/img/header-bg2.41e71b6e.png) no-repeat 50% / cover;
}

.layout-mobile .header-logo {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  margin-left: 0.05rem;
}

.layout-mobile .header-logo img {
  width: 1.8rem;
  height: auto;
}

.layout-mobile .header-nav {
  display: flex;
  flex: 1;
  gap: 0.12rem;
  align-items: center;
  justify-content: flex-end;
  padding-right: 0.15rem;
}

.layout-mobile .m-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 0.56rem;
  padding: 0 0.22rem;
  font-size: 0.22rem;
  font-weight: 600;
  color: #000;
  white-space: nowrap;
  border: 1px solid #f5e089;
  border-radius: 1rem;
  background: linear-gradient(90deg, #f5e089, #ad802e 23%, #fdf3af 40%, #f5e089 50.5%, #ad802e 73%, #f5e089);
}

.layout-mobile .m-auth-btn--ghost {
  color: #f5e089;
  background: rgba(0, 0, 0, 0.35);
}

.layout-mobile .header-spacer {
  height: 1.2rem;
}

.layout-mobile .notice_bg {
  display: flex;
  gap: 0.12rem;
  align-items: center;
  width: 96%;
  height: 0.64rem;
  padding: 0 0.24rem;
  margin: 0.1rem auto 0;
  overflow: hidden;
  font-size: 0.22rem;
  line-height: 1.3;
  background: #1e1038;
  border-radius: 0.5rem;
}

.layout-mobile .notice_bg img {
  flex-shrink: 0;
  width: 0.36rem;
  height: 0.36rem;
}

.layout-mobile .notice_bg p {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.layout-mobile .home-banner {
  width: 100%;
  padding: 0.16rem 0.2rem 0;
}

.layout-mobile .home-banner img {
  width: 100%;
  border-radius: 0.16rem;
}

.layout-mobile .game-menu {
  width: 100%;
  padding: 0.2rem 0 0.12rem;
}

.layout-mobile .game-menu-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.layout-mobile .game-menu-scroll::-webkit-scrollbar {
  display: none;
}

.layout-mobile .game-menu-list {
  display: flex;
  gap: 0.1rem;
  width: max-content;
  padding: 0 0.2rem;
}

.layout-mobile .game-menu-item {
  display: flex;
  gap: 0.08rem;
  align-items: center;
  justify-content: center;
  padding: 0.06rem 0.16rem;
  font-family: inherit;
  font-size: 0.22rem;
  font-weight: 500;
  color: #abadc8;
  white-space: nowrap;
  cursor: pointer;
  background: #000;
  border: 0.06rem solid #555;
  border-radius: 1rem;
}

.layout-mobile .game-menu-item.on {
  color: #fae990;
  border-color: #f1c137;
  background: #32146b;
}

.layout-mobile .game-menu-icon {
  width: 0.4rem;
  height: 0.4rem;
  background-repeat: no-repeat;
  background-position: 50%;
  background-size: cover;
}

.layout-mobile .game-menu-item[data-tab="HOME"] .game-menu-icon { background-image: url(../../m/img/game-menu-home.33cccd52.png); }
.layout-mobile .game-menu-item[data-tab="HOME"].on .game-menu-icon { background-image: url(../../m/img/game-menu-home-on.ffb89a59.png); }
.layout-mobile .game-menu-item[data-tab="HOT"] .game-menu-icon { background-image: url(../../m/img/game-menu-hot.540bbfcf.png); }
.layout-mobile .game-menu-item[data-tab="HOT"].on .game-menu-icon { background-image: url(../../m/img/game-menu-hot-on.8085a93b.png); }
.layout-mobile .game-menu-item[data-tab="RNG"] .game-menu-icon { background-image: url(../../m/img/game-menu-slot.433147b0.png); }
.layout-mobile .game-menu-item[data-tab="RNG"].on .game-menu-icon { background-image: url(../../m/img/game-menu-slot-on.0a7f5194.png); }
.layout-mobile .game-menu-item[data-tab="LIVE"] .game-menu-icon { background-image: url(../../m/img/game-menu-live.c29d73a1.png); }
.layout-mobile .game-menu-item[data-tab="LIVE"].on .game-menu-icon { background-image: url(../../m/img/game-menu-live-on.e642d433.png); }
.layout-mobile .game-menu-item[data-tab="SPORTS"] .game-menu-icon { background-image: url(../../m/img/game-menu-sport.220d6212.png); }
.layout-mobile .game-menu-item[data-tab="SPORTS"].on .game-menu-icon { background-image: url(../../m/img/game-menu-sport-on.1d978225.png); }
.layout-mobile .game-menu-item[data-tab="FISH"] .game-menu-icon { background-image: url(../../m/img/game-menu-fish.635de7b1.png); }
.layout-mobile .game-menu-item[data-tab="FISH"].on .game-menu-icon { background-image: url(../../m/img/game-menu-fish-on.90e9cc6a.png); }

.layout-mobile .home-content {
  padding: 0.12rem 0.2rem 0.3rem;
}

.layout-mobile .game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.16rem;
}

.layout-mobile .game-card {
  overflow: hidden;
  border-radius: 0.12rem;
}

.layout-mobile .game-card__img {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  overflow: hidden;
  background: #1f1736;
  border-radius: 0.1rem;
}

.layout-mobile .game-card__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.layout-mobile .game-card__vendor {
  padding: 0.08rem 0.04rem 0;
  overflow: hidden;
  font-size: 0.18rem;
  font-weight: 500;
  color: #fff837;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.layout-mobile .home-footer {
  padding: 0.4rem 0.3rem 0.2rem;
  margin-top: 0.2rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.25);
}

.layout-mobile .home-footer h3 {
  margin: 0 0 0.12rem;
  font-size: 0.28rem;
  color: #fae990;
}

.layout-mobile .home-footer p {
  margin: 0;
  font-size: 0.22rem;
  line-height: 1.5;
  color: #c7c7c7;
}

.layout-mobile #menu {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  width: 100%;
  height: calc(1.4rem + env(safe-area-inset-bottom, 0px));
  padding-top: 0.14rem;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: linear-gradient(0deg, #5700ff -8.01%, #20002e 88.08%);
}

.layout-mobile #menu a {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 0.2rem;
  font-weight: 500;
  color: #957bf1;
  text-align: center;
}

.layout-mobile #menu a.on {
  color: #fae990;
}

.layout-mobile .footer_icon {
  width: 0.48rem;
  height: 0.64rem;
  margin-bottom: 0.04rem;
  background-repeat: no-repeat;
  background-position: 50%;
  background-size: contain;
}

.layout-mobile #menu a .footer_icon.sports {
  width: 0.68rem;
  height: 0.66rem;
  background-image: url(../../m/img/icon-sports.f80207e9.png);
}

.layout-mobile #menu a .footer_icon.member {
  background-image: url(../../m/img/icon-member.a1736bc6.png);
}

.layout-mobile #menu a.on .footer_icon.member {
  background-image: url(../../m/img/icon-member-on.9b343e45.png);
}

.layout-mobile #menu a .footer_icon.invite {
  background-image: url(../../m/img/icon-invite.6817c12d.png);
}

.layout-mobile #menu a .footer_icon.promo {
  width: 0.6rem;
  background-image: url(../../m/img/icon-promo.e69624ce.png);
}

.layout-mobile #menu a.on .footer_icon.promo {
  background-image: url(../../m/img/icon-promo-on.085ab14f.png);
}

.layout-mobile #menu a .footer_icon.service {
  width: 0.62rem;
  background-image: url(../../m/img/icon-service.21340e2b.png);
}

.layout-mobile .game-panel {
  display: none;
}

.layout-mobile .game-panel.is-active {
  display: block;
}

@media (max-width: 360px) {
  .layout-mobile .game-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .layout-mobile .m-auth-btn {
    padding: 0 0.14rem;
    font-size: 0.2rem;
  }
}
