* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: #0b0703; font: 14px/1.4 Arial, "Liberation Sans", system-ui, sans-serif; }

/* Khung mobile: stage 733 x 1498 được thu theo màn hình bằng JS (rộng tối đa 430 px) */
.m-wrap { position: relative; margin: 0 auto; width: 100%; max-width: 430px; overflow: hidden; background: #000; }
.stage { position: absolute; left: 0; top: 0; width: 733px; height: 1498px; overflow: hidden; }
.stage > * { position: absolute; display: block; }
.stage img { display: block; }

/* 6 nút lớn */
.card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: url(/assets/mobile/card.png) center / 100% 100% no-repeat; text-decoration: none;
}
.card img { width: 56px; height: 56px; object-fit: contain; }
.card span {
  color: #fff; font-size: 20px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
  line-height: 25px; max-width: 190px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Thanh kéo ngang 7 mục */
.strip-scroll { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; scroll-snap-type: x mandatory; }
.strip-scroll::-webkit-scrollbar { display: none; }
.strip-inner { position: relative; height: 74px; }
.strip-item {
  position: absolute; top: 0; width: 103px; height: 74px; scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center; text-decoration: none;
}
.strip-item img { height: 46px; width: 60px; object-fit: contain; margin-top: 2px; }
.strip-item span {
  margin-top: 4px; width: 103px; text-align: center; color: #fff; font-size: 13.9px; font-weight: 700;
  letter-spacing: -0.35px; text-transform: uppercase; line-height: 20px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.strip-sep {
  position: absolute; top: 14px; width: 1.63px; height: 46px;
  background: linear-gradient(180deg, rgba(255, 215, 110, 0), rgba(255, 215, 110, 0.75), rgba(255, 215, 110, 0));
}
.arrow { border: 0; padding: 0; background: transparent; cursor: pointer; }

/* Dòng liên hệ: chữ dài sẽ chạy ngang nối đuôi */
.contact-text {
  display: flex; align-items: center; overflow: hidden; white-space: nowrap;
  color: #fef3c7; font-size: 22px; letter-spacing: -0.5px; text-decoration: none;
}
.contact-track { display: inline-flex; white-space: nowrap; animation: marquee 16s linear infinite; }
.contact-track span { padding-right: 80px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Khu tải app */
.qr-img { background: #fff; border-radius: 13px; padding: 6px; }
.dl img { width: 100%; height: 100%; }

.card:focus-visible, .strip-item:focus-visible, .dl:focus-visible, .arrow:focus-visible, .contact-text:focus-visible {
  outline: 3px solid #fde047; outline-offset: 2px;
}

@media (min-width: 900px) {
  .m-wrap { box-shadow: 0 0 40px rgba(255, 190, 60, 0.25); }
}

/* GIF nổi ở góc dưới bên phải */
.float-gif { position: fixed; right: 10px; bottom: 10px; width: 110px; z-index: 30; }
.float-gif img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5); }
.float-close {
  position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%;
  border: none; background: #fff; color: #1a1205; font-size: 16px; line-height: 24px; cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
/* Màn hình rộng: GIF nằm sát mép phải của khung 430 px ở giữa */
@media (min-width: 900px) {
  .float-gif { right: calc(50% - 205px); }
}
