/* ==========================================================================
   Mobile download banner — replaces the old bottom tab bar.
   Only shown below the lg breakpoint; the page shell gets matching bottom
   padding so the footer can always scroll clear of the fixed banner.
   ========================================================================== */

.dl-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  background:
    radial-gradient(140% 190% at 88% 135%, rgba(255, 61, 110, 0.24), transparent 58%),
    linear-gradient(180deg, #1a1015 0%, #0f0a0d 100%);
  border-top: 1px solid rgba(255, 61, 110, 0.26);
  box-shadow: 0 -14px 40px rgba(0, 0, 0, 0.62);
  -webkit-tap-highlight-color: transparent;
}

.dl-banner::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 61, 110, 0.9), transparent);
  pointer-events: none;
}

.dl-banner *,
.dl-banner *::before,
.dl-banner *::after {
  box-sizing: border-box;
}

.dl-banner__logo {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  object-fit: cover;
  background: #ff3d6e;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.16),
    0 6px 18px rgba(255, 61, 110, 0.34);
}

.dl-banner__copy {
  flex: 1 1 auto;
  min-width: 0;
}

.dl-banner__title {
  min-width: 0;
  margin: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.dl-banner__title-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


.dl-banner__sub {
  margin: 3px 0 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dl-banner__btn {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff3d6e 0%, #ff5b87 100%);
  box-shadow:
    0 6px 18px rgba(255, 61, 110, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  touch-action: manipulation;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.dl-banner__btn:hover {
  filter: brightness(1.06);
}

.dl-banner__btn:active {
  transform: scale(0.96);
}

.dl-banner__btn-text {
  display: block;
}

.dl-banner__dl-icon {
  flex: none;
  width: 15px;
  height: 15px;
}

/* Give the footer room to clear the fixed banner on phones/tablets. */
@media (max-width: 1023.98px) {
  .app-shell {
    padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
  }
}

@media (min-width: 1024px) {
  .dl-banner {
    display: none;
  }
}

/* Very narrow phones: drop the secondary line so the title and CTA stay roomy. */
@media (max-width: 359.98px) {
  .dl-banner {
    gap: 8px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .dl-banner__logo {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .dl-banner__sub {
    display: none;
  }

  .dl-banner__title {
    font-size: 13.5px;
  }

  .dl-banner__btn {
    height: 36px;
    padding: 0 10px;
    gap: 5px;
    font-size: 12px;
  }

  .dl-banner__dl-icon {
    width: 14px;
    height: 14px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .dl-banner {
    animation: dl-banner-in 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  @keyframes dl-banner-in {
    from {
      transform: translateY(100%);
    }
    to {
      transform: translateY(0);
    }
  }
}

.dl-banner__btn.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}
