﻿* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --page-max: 390px;
  --top-bar-height: 54px;
  --carousel-side-gap: 12px;
  --carousel-top: 29.1%;
  --carousel-slide-width: 66%;
  --carousel-gap: 8px;
}

html,
body {
  width: 100%;
}

body {
  font-family: Arial, sans-serif;
  background: #09021b;
  display: flex;
  justify-content: center;
}

.container {
  width: min(100%, var(--page-max));
  min-height: 100vh;
  padding-top: var(--top-bar-height);
  background: #140038;
}

/* Top fixed download bar */
.top-floating {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, var(--page-max));
  height: var(--top-bar-height);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #080113;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 6px;
}

.top-floating .left_img {
  display: block;
  height: 44px;
  width: auto;
  max-width: calc(100% - 120px);
  object-fit: contain;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.top-btn {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.top-floating .right_img {
  display: block;
  height: 38px;
  width: auto;
  max-width: 112px;
  object-fit: contain;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.page-wrap {
  position: relative;
  width: 100%;
}

.main-bg {
  width: 100%;
  display: block;
}

.download-hotspot {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 20.7%;
  height: 7%;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

/* Promo carousel: anchored between green button and partner area */
.promo-carousel {
  position: absolute;
  left: var(--carousel-side-gap);
  right: var(--carousel-side-gap);
  top: var(--carousel-top);
  overflow: hidden;
  border-radius: 8px;
  z-index: 2;
}

.promo-track {
  display: flex;
  width: 100%;
  gap: var(--carousel-gap);
  transition: transform 0.45s ease;
  will-change: transform;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
}

.promo-slide {
  width: var(--carousel-slide-width);
  flex: 0 0 var(--carousel-slide-width);
}

.promo-slide img {
  width: 100%;
  display: block;
  border-radius: 8px;
}

.promo-dots {
  position: absolute;
  left: 50%;
  bottom: 4px;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  padding: 3px 7px;
  border-radius: 12px;
  background: rgba(20, 6, 48, 0.6);
}

.promo-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}

.promo-dots .dot.active {
  background: #ffffff;
}

@media (max-width: 360px) {
  .top-floating .left_img {
    height: 40px;
  }

  .top-floating .right_img {
    height: 34px;
  }

  .promo-carousel {
    top: 29.4%;
  }
}
