#ry-app-promo,
#ry-app-promo * { box-sizing: border-box; }

.ry-app-promo {
  --ry-promo-radius: 22px;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999999;
  font-family: inherit;
  background-size: cover;
  background-position: center;
  box-shadow: 0 -10px 35px rgba(0,0,0,.18);
  transform: translateY(115%);
  opacity: 0;
  visibility: hidden;
  transition: transform .36s ease, opacity .3s ease, visibility .3s ease;
}
.ry-app-promo.is-visible { transform: translateY(0); opacity: 1; visibility: visible; }
.ry-app-promo__inner {
  width: min(1280px, calc(100% - 56px));
  margin: 0 auto;
  min-height: 118px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 18px 0;
}
.ry-app-promo__icon-wrap { flex: 0 0 auto; }
.ry-app-promo__icon {
  display: block;
  width: 82px;
  height: 82px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,.2);
}
.ry-app-promo__copy { min-width: 0; }
.ry-app-promo__title {
  font-family: inherit;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.05;
  font-weight: 800;
  margin: 0 0 8px;
}
.ry-app-promo__subtitle {
  font-family: inherit;
  font-size: 15px;
  line-height: 1.45;
  opacity: .95;
  max-width: 860px;
}
.ry-app-promo__cta { display: flex; align-items: center; justify-content: flex-end; padding-right: 40px; }
.ry-app-promo__badge { display:block; width: 184px; max-width: 100%; height: auto; }
.ry-app-promo__close {
  position: absolute;
  top: 12px;
  right: 15px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  color: inherit;
  font: inherit;
  font-size: 26px;
  line-height: 30px;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 2;
}
.ry-app-promo__close:hover { background: rgba(255,255,255,.28); }

@media (max-width: 700px) {
  .ry-app-promo {
    left: 14px;
    right: 14px;
    bottom: 14px;
    border-radius: var(--ry-promo-radius);
    overflow: hidden;
    transform: translateY(calc(100% + 30px));
    box-shadow: 0 20px 60px rgba(0,0,0,.28);
  }
  .ry-app-promo__inner {
    width: 100%;
    min-height: 0;
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 14px;
    align-items: start;
    padding: 20px 20px 18px;
  }
  .ry-app-promo__icon { width: 64px; height: 64px; border-radius: 16px; }
  .ry-app-promo__copy { padding-right: 18px; }
  .ry-app-promo__title { font-size: 22px; line-height: 1.08; margin-bottom: 7px; }
  .ry-app-promo__subtitle { font-size: 14px; line-height: 1.42; }
  .ry-app-promo__cta {
    grid-column: 1 / -1;
    width: 100%;
    padding: 2px 0 0;
    justify-content: center;
  }
  .ry-app-promo__badge { width: 190px; }
  .ry-app-promo__close {
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: rgba(0,0,0,.20);
  }
}


/* Google Play badge: subtle bounce on hover/focus/tap */
.ry-app-promo__cta a {
  display: inline-block;
  border-radius: 10px;
  outline-offset: 4px;
}
.ry-app-promo__badge {
  transform-origin: center bottom;
  will-change: transform;
}
@keyframes ry-app-promo-bounce {
  0%, 100% { transform: translateY(0) scale(1); }
  28% { transform: translateY(-10px) scale(1.035); }
  50% { transform: translateY(0) scale(.99); }
  68% { transform: translateY(-5px) scale(1.015); }
  84% { transform: translateY(0) scale(1); }
}
@media (hover: hover) and (pointer: fine) {
  .ry-app-promo__cta a:hover .ry-app-promo__badge,
  .ry-app-promo__cta a:focus-visible .ry-app-promo__badge {
    animation: ry-app-promo-bounce .62s cubic-bezier(.2,.8,.25,1);
  }
}
.ry-app-promo__cta a.is-bouncing .ry-app-promo__badge {
  animation: ry-app-promo-bounce .62s cubic-bezier(.2,.8,.25,1);
}

@media (prefers-reduced-motion: reduce) {
  .ry-app-promo { transition: none; }
  .ry-app-promo__badge { animation: none !important; }
}
