*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: #000;
  color: #fff;
  font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

body::-webkit-scrollbar,
*::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.score-strip,
.promo-track,
.goods-track,
.reward-list {
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body {
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

.top-actions img {
  pointer-events: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  background: none;
}

.app-viewport {
  width: calc(498px * var(--app-scale, 1));
  height: calc(2048px * var(--app-scale, 1));
  margin: 0 auto;
  overflow: hidden;
}

.app-shell {
  position: relative;
  width: 498px;
  height: 2048px;
  overflow: hidden;
  background: #000;
  transform: scale(var(--app-scale, 1));
  transform-origin: top left;
}

.app-tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  width: 498px;
  height: 118px;
  transform: translateX(-50%) scale(var(--app-scale, 1));
  transform-origin: bottom center;
  z-index: 20;
  overflow: hidden;
}

.app-tabbar::before {
  content: none;
}

.tabbar-image {
  width: 498px;
  height: 118px;
  max-width: none;
  object-fit: fill;
  pointer-events: none;
}

.tabbar-hitareas {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.tabbar-hitarea {
  position: absolute;
  display: block;
  pointer-events: auto;
}

.tabbar-home {
  left: 8px;
  top: 20px;
  width: 88px;
  height: 84px;
}

.tabbar-rewards {
  left: 102px;
  top: 20px;
  width: 100px;
  height: 84px;
}

.tabbar-wallet {
  left: 176px;
  top: 0;
  width: 148px;
  height: 106px;
}

.tabbar-inbox {
  left: 324px;
  top: 20px;
  width: 88px;
  height: 84px;
}

.tabbar-member {
  right: 4px;
  top: 20px;
  width: 90px;
  height: 84px;
}

.home-indicator {
  position: absolute;
  left: 160px;
  bottom: 14px;
  width: 178px;
  height: 6px;
  border-radius: 999px;
  background: #fff;
}

.side-menu {
  position: fixed;
  left: 50%;
  top: 0;
  width: 498px;
  height: var(--app-visible-height, 1078px);
  transform: translateX(-50%) scale(var(--app-scale, 1));
  transform-origin: top center;
  opacity: 0;
  pointer-events: none;
  z-index: 60;
}

.side-menu::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 180ms ease;
}

.side-menu-panel {
  position: absolute;
  left: 0;
  top: 0;
  width: 292px;
  height: 100%;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 22% 6%, rgba(255, 255, 255, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(36, 36, 38, 0.96), rgba(24, 24, 26, 0.95) 42%, rgba(18, 18, 20, 0.96));
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 20px 0 36px rgba(0, 0, 0, 0.55);
  transform: translateX(-292px);
  transition: transform 220ms ease;
  overflow: hidden;
}

.menu-open .side-menu {
  opacity: 1;
  pointer-events: auto;
}

.menu-open .side-menu::before {
  opacity: 1;
}

.menu-open .side-menu-panel {
  transform: translateX(0);
}

.side-menu-top {
  position: relative;
  padding: 25px 0 8px;
}

.side-menu-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 34px;
}

.side-menu-time {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

.side-menu-status-img {
  width: 88px;
  height: 18px;
  opacity: 0.96;
}

.side-menu-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 0 16px;
}

.side-menu-head-btn {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 0;
  background: transparent;
  flex: 0 0 auto;
}

.side-menu-head-btn img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  pointer-events: none;
}

.side-menu-member {
  margin-left: 0;
  display: grid;
  gap: 4px;
}

.side-menu-member-label {
  font-size: 15px;
  color: #d8bd7a;
}

.side-menu-member-number {
  font-size: 17px;
  letter-spacing: 0.2px;
  color: #d8bd7a;
}

.side-menu-content {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
}

.side-menu-list {
  list-style: none;
  padding: 6px 0 0;
  margin: 0;
  flex: 0 0 auto;
}

.side-menu-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 9px 24px 9px 18px;
  color: #d8bd7a;
  font-size: 17px;
  line-height: 1.15;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.side-menu-item:first-child {
  border-top: 0;
}

.side-menu-item.active {
  color: #f6df91;
}

.side-menu-ico {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 28px;
}

.side-menu-ico img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.side-menu-ico.globe {
  position: relative;
  width: 28px;
  height: 28px;
  border: 2px solid #d8bd7a;
  border-radius: 50%;
}

.side-menu-ico.globe::before,
.side-menu-ico.globe::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid #d8bd7a;
  border-left: 0;
  border-right: 0;
  width: 20px;
  height: 10px;
  border-radius: 50%;
}

.side-menu-ico.globe::after {
  width: 10px;
  height: 20px;
  border-top: 0;
  border-bottom: 0;
  border-left: 2px solid #d8bd7a;
  border-right: 2px solid #d8bd7a;
}

.side-menu-chevron {
  margin-left: auto;
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(216, 189, 122, 0.85);
  border-bottom: 2px solid rgba(216, 189, 122, 0.85);
  transform: rotate(45deg);
}

.side-menu-footer {
  margin-top: 0;
  padding: 2px 22px 0 20px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.14) 34%, rgba(0, 0, 0, 0.34));
}

.side-menu-footer-row {
  display: grid;
  grid-template-columns: max-content 1fr max-content;
  align-items: center;
  gap: 0;
  font-size: 12px;
  color: #d8bd7a;
}

.side-menu-footer-divider {
  justify-self: center;
  margin: 0;
  width: 1px;
  height: 14px;
  background: rgba(216, 189, 122, 0.85);
}

.side-menu-footer-link {
  color: inherit;
  white-space: nowrap;
}

.side-menu-footer-privacy {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
  color: #d8bd7a;
}

.side-menu-footer-version {
  margin-top: 18px;
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.35);
}
