* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  background: #160500;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

body {
  display: flex;
  justify-content: center;
}

.page {
  position: relative;
  width: 100%;
  max-width: 499px;
  min-height: 100vh;
  background: #2b0901;
  overflow-x: hidden;
  padding-bottom: 94px;
  box-shadow: 0 0 30px rgba(0, 0, 0, .45);
}

.slice {
  position: relative;
  width: 100%;
  line-height: 0;
}

.slice > img {
  width: 100%;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.hotspot {
  position: absolute;
  display: block;
  z-index: 5;
  border-radius: 14px;
  text-indent: -9999px;
  overflow: hidden;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.hotspot:active {
  background: rgba(255, 255, 255, .08);
}

/* Hero hotspots: coordinates are based on the sliced image percentage */
.hero-download {
  left: 19%;
  top: 86.5%;
  width: 62%;
  height: 7.7%;
}

.hero-register {
  left: 4%;
  top: 54%;
  width: 92%;
  height: 19%;
}

.customer-service {
  position: fixed;
  right: max(10px, calc((100vw - 499px) / 2 + 10px));
  top: 42%;
  width: 54px;
  height: 54px;
  z-index: 40;
  border-radius: 50%;
  background: rgba(255, 180, 50, .08);
}

/* Route section hotspots */
.route .line-btn {
  right: 4%;
  width: 19%;
  height: 8.8%;
}
.route .line-1 { top: 29%; }
.route .line-2 { top: 40.5%; }
.route .line-3 { top: 52%; }
.route .line-4 { top: 63.5%; }
.route .line-5 { top: 75%; }
.route .line-6 { top: 86.5%; }

/* Game grid hotspots */
.games .game-btn,
.more-games .game-btn {
  width: 22%;
  height: 7.8%;
}
.games .g1 { left: 22%; top: 47.5%; }
.games .g2 { left: 72%; top: 47.5%; }
.games .g3 { left: 22%; top: 70%; }
.games .g4 { left: 72%; top: 70%; }

.more-games .g5 { left: 22%; top: 46%; }
.more-games .g6 { left: 72%; top: 46%; }

/* Lower banner carousel */
.carousel-wrap {
  position: relative;
  line-height: 0;
  background: #6e1206;
}

.carousel-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 998 / 743;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(4%);
  transition: opacity .45s ease, transform .45s ease;
}

.carousel-slide.active {
  opacity: 1;
  transform: translateX(0);
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 11.5%;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 6;
}

.carousel-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .35);
  padding: 0;
}

.carousel-dot.active {
  background: #178cff;
}

.banner-click {
  left: 3%;
  top: 6%;
  width: 94%;
  height: 68%;
}

/* Fixed bottom buttons rebuilt as HTML for real clicks */
.fixed-cta {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 50;
  width: 100%;
  max-width: 499px;
  transform: translateX(-50%);
  padding: 22px 12px 13px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  background: rgba(0, 0, 0, .72);
  border-top: 1px solid rgba(255, 190, 80, .16);
  backdrop-filter: blur(3px);
}

.cta {
  position: relative;
  height: 44px;
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  text-align: center;
  line-height: 44px;
  font-size: 21px;
  letter-spacing: 1px;
  box-shadow: inset 0 1px rgba(255,255,255,.3), 0 6px 12px rgba(0,0,0,.25);
}

.cta-blue {
  background: linear-gradient(180deg, #2d8fff, #1478f2);
}

.cta-gold {
  background: linear-gradient(180deg, #ffb31a, #ff9f00);
}

.cta-bubble {
  position: absolute;
  left: 50%;
  top: -35px;
  transform: translateX(-50%);
  min-width: 154px;
  padding: 7px 11px 8px;
  border-radius: 9px;
  background: #ef554b;
  color: #fff;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 4px 8px rgba(0,0,0,.2);
}

.cta-bubble::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -12px;
  border-top: 12px solid #ef554b;
  border-right: 12px solid transparent;
}

@media (min-width: 500px) {
  .page {
    max-width: 499px;
  }

  .cta {
    height: 52px;
    line-height: 52px;
    font-size: 24px;
  }
}

@media (max-width: 360px) {
  .fixed-cta {
    gap: 16px;
  }

  .cta {
    font-size: 18px;
  }

  .cta-bubble {
    min-width: 132px;
    font-size: 13px;
  }
}
