/* ============================================================
   CSS Design Tokens
   ============================================================ */
:root {
  --color-bg: #c0deff;
  --color-blue-primary: #52b9ff;
  --color-blue-accent: #1b75ef;
  --color-text-gray: #7b7b7b;
  --color-white: #ffffff;

  --grad-pink: linear-gradient(180deg, #ffffff 0%, #ffa0d0 100%);
  --grad-yellow: linear-gradient(180deg, #ffffff 0%, #ffdb9e 100%);
  --grad-mint: linear-gradient(180deg, #ffffff 0%, #9effce 100%);
  --grad-lgreen: linear-gradient(180deg, #ffffff 0%, #b0ffb0 100%);
  --grad-cyan: linear-gradient(180deg, #ffffff 0%, #94eaff 100%);
  --grad-purple: linear-gradient(180deg, #ffffff 0%, #c99eff 100%);

  --btn-pink-bg: #ffdfef;
  --btn-yellow-bg: #fff3de;
  --btn-mint-bg: #e1ffef;
  --btn-lgreen-bg: #d0ffd0;
  --btn-cyan-bg: #c9f4ff;
  --btn-purple-bg: #e4cdff;

  --grad-dl-btn: linear-gradient(270deg, #ffffff 0%, #d8efff 100%);
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--color-bg);
  font-family: 'Be Vietnam Pro', sans-serif;
}

img {
  display: block;
}

/* ============================================================
   View Switching
   Desktop view : ≥ 768px  (iPad mini portrait+landscape, tablet, desktop)
   Mobile view  : ≤ 767px  (phone only)
   ============================================================ */

.view--mobile {
  display: none;
}

.view--desktop {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-bg);
}

/* bg-casino — full viewport */
.view--desktop::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/bg-casino.png') center / cover no-repeat;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

/* bg-fractal (screen blend) — full viewport */
.view--desktop::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/bg-fractal.jpg') center / cover no-repeat;
  mix-blend-mode: screen;
  opacity: 0.8;
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 767px) {
  .view--desktop {
    display: none;
  }

  .view--mobile {
    display: flex;
    width: 100%;
    min-height: 100svh;
    justify-content: center;
    background: var(--color-bg);
    position: relative;
  }

  /* bg-casino — full mobile viewport */
  .view--mobile::before {
    content: '';
    position: fixed;
    inset: 0;
    background: url('../images/bg-casino.png') center / cover no-repeat;
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
  }

  /* bg-fractal (screen blend) — full mobile viewport */
  .view--mobile::after {
    content: '';
    position: fixed;
    inset: 0;
    background: url('../images/bg-fractal.jpg') center / cover no-repeat;
    mix-blend-mode: screen;
    opacity: 0.8;
    pointer-events: none;
    z-index: 0;
  }
}

/* ============================================================
   DESKTOP SCENE  (Figma canvas: 1920 × 1080)
   CSS-only scaling: scale(min(100vw/1920, 100vh/1080))
   Fits canvas proportionally to any viewport — no JS
   ============================================================ */

.desktop {
  position: relative;
  width: 1920px;
  height: 1080px;
  background-color: transparent;
  flex-shrink: 0;
  transform-origin: center center;
  z-index: 1;
  will-change: transform;
}

/* Scale is applied via JS (see index.html) for cross-browser compatibility */

/* --- Desktop Backgrounds --- */
.desktop__bg-casino {
  position: absolute;
  width: 2000px;
  height: 1333px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 0.3;
  pointer-events: none;
  max-width: none;
}

.desktop__radial-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 898px 505px at 50% 50%, rgba(192, 222, 255, 0) 0%, rgba(192, 222, 255, 1) 100%);
  pointer-events: none;
}

.desktop__bg-fractal {
  position: absolute;
  width: 2334px;
  height: 1308px;
  left: -263px;
  top: -104px;
  object-fit: cover;
  mix-blend-mode: screen;
  opacity: 0.8;
  pointer-events: none;
  max-width: none;
}

/* --- Desktop Logo --- */
.desktop__logo {
  position: absolute;
  width: 336px;
  height: 100px;
  left: 50%;
  top: 60px;
  transform: translateX(-50%);
  object-fit: contain;
  z-index: 10;
}

/* --- Desktop Content Area (1200 × 860, centered) --- */
.desktop__content {
  position: absolute;
  width: 1200px;
  height: 860px;
  left: 50%;
  top: 110px;
  transform: translateX(-50%);
  overflow: visible;
}

/* --- Center Character Images --- */
.desktop__img-3d {
  position: absolute;
  width: 794px;
  height: 156px;
  left: 203px;
  top: 560px;
  object-fit: cover;
  pointer-events: none;
}

.desktop__img-girl {
  position: absolute;
  width: 686px;
  height: 515px;
  left: 271px;
  top: 115px;
  object-fit: cover;
  pointer-events: none;
  z-index: 2;
}

.desktop__img-cards-wrap {
  position: absolute;
  width: 272px;
  height: 471px;
  left: 463px;
  top: 100px;
  overflow: hidden;
  pointer-events: none;
  z-index: 3;
}

.desktop__img-cards-wrap img {
  width: 100%;
  height: 136%;
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  object-fit: contain;
}

.desktop__img-coins1 {
  position: absolute;
  width: 347px;
  height: 176px;
  left: 360px;
  top: 445px;
  object-fit: cover;
  pointer-events: none;
  z-index: 3;
}

.desktop__img-coins2 {
  position: absolute;
  width: 347px;
  height: 176px;
  left: 507px;
  top: 453px;
  object-fit: cover;
  pointer-events: none;
  z-index: 3;
}

.desktop__img-crown {
  position: absolute;
  width: 181px;
  height: 132px;
  left: calc(50% - 250px);
  top: 459px;
  object-fit: cover;
  pointer-events: none;
  z-index: 4;
}

/* ============================================================
   LINK CARDS
   ============================================================ */

.card {
  position: absolute;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  z-index: 5;
}

.card:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.card--desktop {
  width: 160px;
  height: 130px;
}

.card--mobile {
  position: relative;
  width: 90px;
  height: 73px;
  border-radius: 10px;
  flex-shrink: 0;
}

.card--mobile:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Pin decorations */
.card__pin {
  position: absolute;
  height: 7px;
  top: 0;
  z-index: 3;
}

.card__pin--left {
  left: 23.13%;
  right: 73.75%;
}

.card__pin--right {
  left: 73.75%;
  right: 23.13%;
}

/* Gradient body */
.card__body {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 127px;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}

.card__body--sm {
  height: 70px;
  border-radius: 10px;
}

.card__body--pink {
  background: var(--grad-pink);
}

.card__body--yellow {
  background: var(--grad-yellow);
}

.card__body--mint {
  background: var(--grad-mint);
}

.card__body--lgreen {
  background: var(--grad-lgreen);
}

.card__body--cyan {
  background: var(--grad-cyan);
}

.card__body--purple {
  background: var(--grad-purple);
}

/* Value "150 MS" */
.card__value {
  position: absolute;
  top: calc(50% - 17px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 20px;
  font-weight: 800;
  color: var(--color-text-gray);
  white-space: nowrap;
  text-align: center;
}

.card__value--sm {
  font-size: 14px;
  top: calc(50% - 13px);
}

/* "CHƠI NGAY" button */
.card__btn {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 79px;
  padding: 5px 10px;
  border-radius: 20px;
  border: 1px solid #ffffff;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-gray);
  white-space: nowrap;
  text-align: center;
  z-index: 2;
}

.card__btn--sm {
  top: auto;
  bottom: 5px;
  font-size: 10px;
  padding: 3px 6px;
}

.card__btn--pink {
  background: var(--btn-pink-bg);
}

.card__btn--yellow {
  background: var(--btn-yellow-bg);
}

.card__btn--mint {
  background: var(--btn-mint-bg);
}

.card__btn--lgreen {
  background: var(--btn-lgreen-bg);
}

.card__btn--cyan {
  background: var(--btn-cyan-bg);
}

.card__btn--purple {
  background: var(--btn-purple-bg);
}

/* Banner ribbon */
.card__banner {
  position: absolute;
  height: 34px;
  left: 24.7%;
  right: 24.7%;
  top: 0;
  width: 50.6%;
  z-index: 2;
}

.card__banner--sm {
  height: 24px;
}

/* Link name */
.card__name {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  white-space: nowrap;
  text-align: center;
  z-index: 4;
  line-height: 1;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.card__name--sm {
  font-size: 12px;
  top: 3px;
}

/* Mobile card pin overrides */
.card--mobile .card__pin {
  height: 4px;
}

.card--mobile .card__pin--left {
  left: 17.57%;
  right: 79.31%;
}

.card--mobile .card__pin--right {
  left: 79.31%;
  right: 17.57%;
}

/* ============================================================
   DESKTOP DOWNLOAD BAR  (1000 × 200)
   ============================================================ */
.dl-bar {
  position: absolute;
  width: 1000px;
  height: 200px;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  overflow: hidden;
  z-index: 6;
}

.dl-bar__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.dl-bar__gift {
  position: absolute;
  width: 249px;
  height: 249px;
  left: 745px;
  top: -9px;
  object-fit: cover;
  pointer-events: none;
  z-index: 5;
}

.dl-bar__orbit {
  position: absolute;
  left: 0;
  top: 0;
  width: 280px;
  height: 200px;
  z-index: 2;
}

.dl-bar__orbit-arc {
  position: absolute;
  overflow: hidden;
}

.dl-bar__orbit-arc--0 {
  top: 31px;
  left: 55px;
  width: 150px;
  height: 313px;
}

.dl-bar__orbit-arc--0 img {
  position: absolute;
  width: 313px;
  height: 150px;
  left: calc(50% - 157px);
  top: calc(50% - 75px);
  transform: rotate(90deg);
  transform-origin: center center;
  max-width: none;
}

.dl-bar__orbit-arc--2 {
  top: 33px;
  left: 56px;
  width: 147px;
  height: 310px;
}

.dl-bar__orbit-arc--2 img {
  position: absolute;
  width: 310px;
  height: 147px;
  left: calc(50% - 155px);
  top: calc(50% - 74px);
  transform: rotate(90deg);
  transform-origin: center center;
  max-width: none;
}

.dl-bar__orbit-arc--3 {
  top: 36px;
  left: 60px;
  width: 139px;
  height: 164px;
}

.dl-bar__orbit-arc--3 img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.dl-bar__orbit-v4 {
  position: absolute;
  top: 45px;
  left: 109px;
  width: 40px;
  height: 10px;
  object-fit: fill;
}

.dl-bar__orbit-v5 {
  position: absolute;
  top: 49px;
  left: 110px;
  width: 40px;
  height: 5px;
  object-fit: fill;
}

.dl-bar__orbit-g1 {
  position: absolute;
  top: 132px;
  left: 204px;
  width: 3px;
  height: 49px;
  object-fit: fill;
}

.dl-bar__orbit-g2 {
  position: absolute;
  top: 89px;
  left: 53px;
  width: 3px;
  height: 11px;
  object-fit: fill;
}

.dl-bar__orbit-g3 {
  position: absolute;
  top: 107px;
  left: 53px;
  width: 3px;
  height: 19px;
  object-fit: fill;
}

.dl-bar__orbit-g4 {
  position: absolute;
  top: 130px;
  left: 53px;
  width: 3px;
  height: 19px;
  object-fit: fill;
}

.dl-bar__qr {
  position: absolute;
  left: 69px;
  top: 68px;
  width: 120px;
  height: 120px;
  object-fit: cover;
  z-index: 3;
}

.dl-bar__text {
  position: absolute;
  font-weight: 900;
  color: #ffffff;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
  z-index: 4;
  letter-spacing: 0.02em;
}

.dl-bar__text--title1 {
  left: 387px;
  top: 26px;
  font-size: 30px;
}

.dl-bar__text--title2 {
  left: 307px;
  top: 62px;
  font-size: 30px;
}

.dl-bar__text--amount {
  left: 618px;
  top: 52px;
  font-size: 40px;
}

.dl-bar__btn-group {
  position: absolute;
  width: 200px;
  height: 80px;
  top: 104px;
  z-index: 4;
}

.dl-bar__btn-group--ios {
  left: 295px;
}

.dl-bar__btn-group--android {
  left: 505px;
}

.dl-bar__btn-icon {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(180deg, #eef6ff 0%, #ffffff 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dl-bar__btn-icon img {
  width: 54%;
  height: 62%;
  object-fit: contain;
}

.dl-bar__btn-icon--android {
  background: transparent;
  border-radius: 0;
}

.dl-bar__btn-icon--android img {
  width: 100%;
  height: 100%;
}

.dl-bar__btn-body {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 160px;
  height: 60px;
  border-radius: 10px;
  background: var(--grad-dl-btn);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dl-bar__btn-text {
  text-align: center;
  font-weight: 700;
  font-size: 20px;
  color: var(--color-blue-primary);
  text-transform: uppercase;
  line-height: 1.1;
  padding-left: 20px;
}

/* ============================================================
   MOBILE SCENE  (Figma canvas: 390 × 966)
   ============================================================ */

.mobile {
  position: relative;
  width: 100%;
  min-height: 100svh;
  background: transparent;
  flex-shrink: 0;
  z-index: 1;
  padding: 30px 10px 10px;
}

/* --- Mobile Backgrounds --- */
.mobile__bg-casino {
  position: absolute;
  width: 680px;
  height: 453px;
  left: 50%;
  top: 50%;
  transform: translate(calc(-50% - 24px), calc(-50% - 207px));
  object-fit: cover;
  opacity: 0.4;
  pointer-events: none;
  max-width: none;
}

.mobile__radial-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 447px 292px at 185px 277px, rgba(192, 222, 255, 0) 0%, rgba(192, 222, 255, 1) 100%);
  pointer-events: none;
}

.mobile__bg-fractal {
  position: absolute;
  width: 2089px;
  height: 1170px;
  left: -883px;
  top: -106px;
  object-fit: cover;
  mix-blend-mode: screen;
  opacity: 0.8;
  pointer-events: none;
  max-width: none;
}

.mobile__confetti {
  position: absolute;
  width: 423px;
  height: 152px;
  left: -43px;
  top: 175px;
  object-fit: cover;
  pointer-events: none;
}

.mobile__logo {
  position: absolute;
  width: 189px;
  height: 56px;
  left: 50%;
  top: 22px;
  transform: translateX(-50%);
  object-fit: contain;
  z-index: 10;
}

/* --- Mobile Character Images --- */
.mobile__img-3d {
  position: absolute;
  width: 100%;
  height: 66px;
  left: 50%;
  transform: translate(-50%);
  top: 323px;
  object-fit: cover;
  pointer-events: none;
}

.mobile__img-girl {
  position: absolute;
  width: 292px;
  height: 219px;
  left: 50%;
  transform: translate(-50%);
  top: 133px;
  object-fit: cover;
  pointer-events: none;
  z-index: 2;
}

.mobile__img-cards-wrap {
  position: absolute;
  width: 116px;
  height: 200px;
  left: 50%;
  transform: translate(-50%);
  top: 127px;
  overflow: hidden;
  pointer-events: none;
  z-index: 3;
}

.mobile__img-cards-wrap img {
  width: 100%;
  height: 136%;
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  object-fit: cover;
}

.mobile__img-coins1 {
  position: absolute;
  width: 148px;
  height: 75px;
  top: 274px;
  object-fit: cover;
  pointer-events: none;
  z-index: 3;
  left: 50%;
  transform: translate(-70%);
}

.mobile__img-coins2 {
  position: absolute;
  width: 148px;
  height: 75px;
  left: 50%;
  transform: translate(-30%);
  top: 277px;
  object-fit: cover;
  pointer-events: none;
  z-index: 3;
}

.mobile__img-crown {
  position: absolute;
  width: 77px;
  height: 56px;
  left: calc(50% - 107px);
  top: 280px;
  object-fit: cover;
  pointer-events: none;
  z-index: 4;
}

/* --- Mobile Link Card Grid (3×2) --- */
.mobile__card-grid {
  position: relative;
  width: calc(100%);
  margin: 395px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  z-index: 5;
}

.mobile__card-grid .card--mobile {
  position: relative;
  width: 100%;
  height: 73px;
}

/* ============================================================
   MOBILE DOWNLOAD BAR  (300 × 120)
   ============================================================ */
.dl-bar-m {
  position: relative;
  width: 100%;
  height: 120px;
  left: auto;
  top: auto;
  transform: none;
  margin: 12px auto 0;
  overflow: hidden;
  z-index: 3;
}

.dl-bar-m__bg {
  position: absolute;
  width: 100%;
  height: 100px;
  bottom: 0;
  left: 0;
  object-fit: fill;
}

.dl-bar-m__gift {
  position: absolute;
  width: 127px;
  height: 127px;
  right: -10px;
  top: -7px;
  object-fit: cover;
  z-index: 5;
}

.dl-bar-m__text {
  position: absolute;
  font-weight: 900;
  color: #ffffff;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
  z-index: 4;
}

.dl-bar-m__text--title1 {
  left: 75px;
  top: 34px;
  font-size: 14px;
}

.dl-bar-m__text--title2 {
  left: 40px;
  top: 51px;
  font-size: 14px;
  margin-top: 2px;
}

.dl-bar-m__text--amount {
  left: 185px;
  top: 46px;
  font-size: 20px;
  margin-top: 2px;
}

.dl-bar-m__btn-group {
  position: absolute;
  width: 100px;
  height: 36px;
  top: 73px;
  z-index: 4;
}

.dl-bar-m__btn-group--ios {
  left: 40px;
}

.dl-bar-m__btn-group--android {
  left: 150px;
}

.dl-bar-m__btn-icon {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(270deg, #ffffff 0%, #d8efff 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dl-bar-m__btn-icon img {
  width: 55%;
  height: 62%;
  object-fit: contain;
}

.dl-bar-m__btn-icon--android {
  background: transparent;
  border-radius: 0;
}

.dl-bar-m__btn-icon--android img {
  width: 100%;
  height: 100%;
}

.dl-bar-m__btn-body {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 70px;
  height: 26px;
  border-radius: 5px;
  background: var(--grad-dl-btn);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dl-bar-m__btn-body--android {
  right: 0;
  width: 80px;
}

.dl-bar-m__btn-text {
  text-align: center;
  font-weight: 700;
  font-size: 10px;
  color: var(--color-blue-primary);
  text-transform: uppercase;
  line-height: 1.1;
  padding-left: 8px;
}

.dl-bar-m__btn-body--android .dl-bar-m__btn-text {
  padding-left: 24px;
}

/* ============================================================
   MOBILE SOCIAL BUTTONS
   ============================================================ */
.mobile__social {
  position: relative;
  width: 100%;
  padding: 12px 0;
  z-index: 6;
  margin-top: 20px;
}

.social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.social-btn {
  position: relative;
  width: 100%;
  height: 36px;
  background: #ffffff;
  border: 0.5px solid var(--color-blue-accent);
  border-radius: 10px;
  box-shadow: 0 2px 0 var(--color-blue-accent),
  0 4px 3px rgba(27, 117, 239, 0.35),
  inset 0 0 10px 0 #e3f4ff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 10px;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
}

a.social-btn {
  text-decoration: none;
}

.social-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.social-btn__icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.social-btn__label {
  font-weight: 600;
  font-size: 12px;
  color: var(--color-blue-accent);
  white-space: nowrap;
  line-height: 1;
}

/*Download*/
.download-section {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  width: 100%;
}
.download-section .image {
  max-width: 62.5rem;
}
.download-section .image img {
  width: 100%;
  height: 100%;
}
.download-btn {
  position: absolute;
  display: flex;
  gap: 1rem;
  align-items: center;
  bottom: 1rem;
}
.download-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.download-btn .button-download-ios {

}
.download-btn .button-download-android {

}

.download-section-mobile {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}
.download-section-mobile .image {
  max-width: 100%;
}
.download-section-mobile .image img {
  width: 100%;
  height: 100%;
}
.download-btn-mobile {
  position: absolute;
  display: flex;
  gap: 16px;
  align-items: center;
  bottom: 1rem;
  left: 5%;
}
.download-btn-mobile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.download-btn-mobile .button-download-ios {
  height: 45px;
  width: 100px;
}
.download-btn-mobile .button-download-android {
  height: 45px;
  width: 100px;
}
/*End Download*/

/* ============================================================
   Mobile canvas scaling for very small screens (< 390px)
   Pure CSS — no JS
   ============================================================ */
@media (max-width: 389px) {
  .view--mobile {
    align-items: flex-start;
  }

  /* Scale applied via JS for screens narrower than 390px */
}

/* ============================================================
    FLOATING SOCIAL ICONS (desktop-only)
============================================================ */
.floating-right {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 50;
}

.float-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  filter: drop-shadow(0 0 4px #d9e0ff);
}

.float-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

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

@media (max-width: 767px) {
  .floating-right {
    display: none;
  }
  .download-section {
    display: none;
  }
  .download-section-mobile {
    display: flex;
  }
  .social {
    display: flex;
  }
  .download-btn .button-download-ios {
    height: 30px;
  }
  .download-btn .button-download-android {
    height: 30px;
  }
}

@media (min-width: 540px) and (max-width: 540px) {
  .dl-bar-m__text--title1 {
    left: 130px;
  }
  .dl-bar-m__text--title2 {
    left: 90px;
  }
  .dl-bar-m__text--amount {
    left: 235px;
  }
  .dl-bar-m__btn-group {
  }
  .dl-bar-m__btn-group--ios {
    left: 80px;
  }
  .dl-bar-m__btn-group--android {
    left: 185px;
  }

  /* Scale applied via JS for screens narrower than 390px */
}
@media (min-width: 414px) and (max-width: 414px) {
  .dl-bar-m__text--title1 {
    left: 100px;
  }
  .dl-bar-m__text--title2 {
    left: 60px;
  }
  .dl-bar-m__text--amount {
    left: 205px;
  }
  .dl-bar-m__btn-group {
  }
  .dl-bar-m__btn-group--ios {
    left: 50px;
  }
  .dl-bar-m__btn-group--android {
    left: 155px;
  }
}

/* 14 promax */
@media (min-width: 430px) and (max-width: 430px) {
  .dl-bar-m__text--title1 {
    left: 120px;
  }
  .dl-bar-m__text--title2 {
    left: 80px;
  }
  .dl-bar-m__text--amount {
    left: 225px;
  }
  .dl-bar-m__btn-group--ios {
    left: 70px;
  }
  .dl-bar-m__btn-group--android {
    left: 175px;
  }
}

/* galaxy s8 */
@media (min-width: 360px) and (max-width: 360px) {
  .dl-bar-m__text--title1 {
    left: 55px;
  }
  .dl-bar-m__text--title2 {
    left: 20px;
  }
  .dl-bar-m__text--amount {
    left: 165px;
  }
  .dl-bar-m__btn-group--ios {
    left: 15px;
  }
  .dl-bar-m__btn-group--android {
    left: 120px;
  }
}

/* surface dou */
@media (min-width: 540px) and (max-width: 540px) {
  .dl-bar-m__text--title1 {
    left: 145px;
  }
  .dl-bar-m__text--title2 {
    left: 115px;
  }
  .dl-bar-m__text--amount {
    left: 260px;
  }
  .dl-bar-m__btn-group {
    width: 120px;
    height: 43px;
  }
  .dl-bar-m__btn-body {
    width: 110px;
    height: 30px;
  }

  .dl-bar-m__btn-group--ios {
    left: 80px;
  }
  .dl-bar-m__btn-group--android {
    left: 210px;
  }
}

/* surface dou */
@media (min-width: 540px) and (max-width: 540px) {
  .download-btn-mobile .button-download-ios {
    height: 70px;
    width: 120px;
  }
  .download-btn-mobile .button-download-android {
    height: 70px;
    width: 120px;
  }
  .download-btn-mobile {
    left: 10%;
  }
}

@media (max-width: 344px) {
  .download-btn-mobile {
    left: 0;
  }
  .download-btn-mobile .button-download-ios {
    height: 30px;
    width: 100px;
  }
  .download-btn-mobile .button-download-android {
    height: 30px;
    width: 100px;
  }
  .download-btn-mobile {
    gap: 0;
  }
}

@media (min-width: 344px) and (max-width: 344px) {
  .dl-bar-m__text--title1 {
    left: 30px;
  }
  .dl-bar-m__text--title2 {
    left: 15px;
  }
  .dl-bar-m__text--amount {
    left: 157px;
  }
  .dl-bar-m__btn-group--ios {
    left: 10px;
  }
  .dl-bar-m__btn-group--android {
    left: 115px;
  }
}

@media (min-width: 320px) and (max-width: 320px) {
  .dl-bar-m__text--title1 {
    left: 55px;
    font-size: 11px;
  }
  .dl-bar-m__text--title2 {
    left: 30px;
    font-size: 11px;
  }
  .dl-bar-m__text--amount {
    left: 145px;
    font-size: 16px;
  }
  .dl-bar-m__btn-group--ios {
    left: 20px;
  }
  .dl-bar-m__btn-group--android {
    left: 130px;
  }
  .dl-bar-m__gift {
    width: 90px;
    height: 90px;
    right: -5px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .download-section {
    display: flex;
  }
  .download-section-mobile {
    display: none;
  }
  .social {
    display: none;
  }
  .download-btn .button-download-ios {
    height: 65px;
  }
  .download-btn .button-download-android {
    height: 65px;
  }
}
