.app-floating-banner {
  position: fixed;
  z-index: 1000;
  right: 18px;
  bottom: 14px;
  width: 250px;
  height: 156px;
  box-sizing: border-box;
  color: #fff;
  font-family: inherit;
  filter: drop-shadow(0 18px 25px rgb(35 18 82 / 28%));
}

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

.app-floating-banner__link {
  position: absolute;
  inset: 0;
  display: block;
  color: inherit;
  text-decoration: none;
}

.app-floating-banner__link:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  border-radius: 42%;
}

.app-floating-banner__fox {
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: 0;
  width: 112px;
  max-width: none;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 8px 8px rgb(33 20 56 / 22%));
}

.app-floating-banner__bubble {
  position: absolute;
  right: 0;
  bottom: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  width: 184px;
  height: 142px;
  padding: 22px 22px 18px 48px;
  background: linear-gradient(110deg, #ff1024 0%, #ff008d 52%, #b500ff 100%);
  border: 1px solid rgb(255 255 255 / 25%);
  border-radius: 54% 46% 42% 58% / 48% 54% 46% 52%;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 14%);
}

.app-floating-banner__bubble::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 5px;
  bottom: 11px;
  width: 48px;
  height: 42px;
  background: #ff075d;
  border-radius: 68% 32% 62% 38%;
  transform: rotate(-18deg);
}

.app-floating-banner__amount {
  display: block;
  padding: 5px 10px;
  color: #321d50;
  background: #fff;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 950;
  line-height: 1.1;
  text-transform: uppercase;
  transform: rotate(-3deg);
}

.app-floating-banner__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 125px;
  min-height: 46px;
  padding: 8px 11px;
  color: #241b35;
  background: #fff;
  border: 1px solid rgb(255 255 255 / 76%);
  border-radius: 999px;
  box-shadow: 0 7px 16px rgb(23 11 53 / 20%);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.app-floating-banner__link:hover .app-floating-banner__cta { box-shadow: 0 9px 20px rgb(48 0 77 / 30%); transform: translateY(-1px); }

.app-floating-banner > button {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  padding: 0;
  color: #d71935;
  background: #fff;
  border: 0;
  border-radius: 50%;
  font: inherit;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}

.mobile-dock,
.mobile-dock-panel { display: none; }
.mobile-dock-panel[hidden] { display: none !important; }

@media (max-width: 720px) {
  .app-floating-banner { right: 8px; bottom: 82px; width: 216px; height: 128px; }
  .app-floating-banner__fox { width: 82px; }
  .app-floating-banner__bubble { gap: 7px; width: 160px; height: 116px; padding: 17px 19px 14px 34px; }
  .app-floating-banner__bubble::before { left: 4px; bottom: 9px; width: 39px; height: 34px; }
  .app-floating-banner__amount { padding: 4px 9px; font-size: 14px; }
  .app-floating-banner__cta { width: 118px; min-height: 44px; padding: 7px 9px; font-size: 11px; }
  .app-floating-banner > button { top: 12px; right: 9px; width: 25px; height: 25px; font-size: 16px; }

  .mobile-dock {
    position: fixed;
    z-index: 950;
    right: 10px;
    bottom: max(9px, env(safe-area-inset-bottom));
    left: 10px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-height: 64px;
    padding: 6px;
    background: rgb(255 255 255 / 94%);
    border: 1px solid rgb(218 216 228 / 88%);
    border-radius: 22px;
    box-shadow: 0 16px 42px rgb(28 20 52 / 22%);
    backdrop-filter: blur(18px);
  }
  .mobile-dock a,
  .mobile-dock button {
    display: flex;
    min-width: 0;
    min-height: 50px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3px;
    padding: 5px 2px;
    color: #777585;
    background: transparent;
    border: 0;
    border-radius: 16px;
    font: inherit;
    cursor: pointer;
  }
  .mobile-dock span { font-size: 17px; line-height: 1; }
  .mobile-dock b { overflow: hidden; max-width: 100%; font-size: 10px; line-height: 1.05; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-dock a.active,
  .mobile-dock button.active { color: #fff; background: linear-gradient(135deg, #5b08ef, #7a23ff); box-shadow: 0 7px 17px rgb(91 8 239 / 22%); }

  .mobile-dock-panel {
    position: fixed;
    z-index: 940;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 18px 12px 86px;
    background: rgb(19 13 39 / 42%);
    backdrop-filter: blur(5px);
  }
  .mobile-dock-panel__card {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 16px;
    background: #fff;
    border-radius: 23px;
    box-shadow: 0 22px 60px rgb(24 15 48 / 28%);
  }
  .mobile-dock-panel__card header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; padding: 0 3px; }
  .mobile-dock-panel__card header b { font-size: 17px; }
  .mobile-dock-panel__card header button { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; color: #5d5a69; background: #f0eef5; border: 0; border-radius: 50%; font-size: 22px; cursor: pointer; }
  .mobile-dock-panel__links { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
  .mobile-dock-panel__links a { display: flex; min-height: 52px; align-items: center; gap: 10px; padding: 10px 12px; color: #33313d; background: #f6f4fa; border-radius: 15px; font-size: 12px; font-weight: 850; }
  .mobile-dock-panel__links span { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 auto; color: #5b08ef; background: #ece5fd; border-radius: 10px; }
  body.mobile-menu-open { overflow: hidden; }
  body.mobile-menu-open .app-floating-banner { display: none; }
}

@media (max-width: 360px) {
  .app-floating-banner { width: 198px; height: 118px; }
  .app-floating-banner__fox { width: 75px; }
  .app-floating-banner__bubble { width: 147px; height: 107px; padding-left: 31px; }
  .app-floating-banner__cta { width: 106px; font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .app-floating-banner__cta { transition: none; }
}
