/* Separate from the carousel: only the close button dismisses this picture. */
.floating-promo {
    position: fixed;
    z-index: 110;
    right: max(24px, env(safe-area-inset-right));
    bottom: calc(24px + env(safe-area-inset-bottom));
    width: 224px;
    aspect-ratio: 1;
    transform-origin: bottom right;
    animation: floating-promo-enter .7s cubic-bezier(.16, 1, .3, 1) .35s both;
}
.floating-promo-frame {
    height: 100%;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
}
.floating-promo-image { display: block; width: 100%; height: 100%; object-fit: contain; }
.floating-promo-placeholder {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    padding: 21px;
    background: radial-gradient(ellipse at 70% 20%, #7744ab70, transparent 70%), linear-gradient(145deg, #26133b, #140c20);
}
.floating-promo-number {
    position: absolute;
    z-index: -1;
    top: 32px;
    right: 18px;
    color: #ffda7207;
    -webkit-text-stroke: 1px #e6c16940;
    font: 900 132px/.9 "Arial Black", sans-serif;
    letter-spacing: -.12em;
    transform: rotate(-10deg);
}
.floating-promo-kicker { position: absolute; top: 20px; left: 20px; color: #c3a879; font: 8px Consolas, monospace; letter-spacing: .12em; }
.floating-promo-star { color: var(--gold); font-size: 28px; line-height: 1; margin-bottom: 12px; }
.floating-promo-placeholder strong { color: #ffedc2; font-size: 24px; line-height: 1.4; font-weight: 600; }
.floating-promo-caption { margin-top: 7px; color: #c1adc9; font-size: 11px; }
.floating-promo-close {
    position: absolute;
    top: 0;
    right: 0;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 50%;
    color: #fff1d6;
    cursor: pointer;
}
.floating-promo-close span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #10091ee6; border: 1px solid #e9c99566; font: 23px/1 Arial, sans-serif; transition: background .2s, color .2s; }
.floating-promo-close:hover span { background: var(--gold); color: #24142b; }
.floating-promo-close .ui-icon { width: 16px; height: 16px; }
.floating-promo-close:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.floating-promo.is-closing { animation: floating-promo-leave .18s ease-in both; pointer-events: none; }
@keyframes floating-promo-enter {
    from { opacity: 0; transform: translateY(36px) scale(.85) rotate(3deg); }
    70% { opacity: 1; transform: translateY(-4px) scale(1.015) rotate(-.5deg); }
    to { opacity: 1; transform: none; }
}
@keyframes floating-promo-leave { to { opacity: 0; transform: translateY(16px) scale(.94); } }
@media (max-width: 680px) {
    .floating-promo { width: 144px; right: max(12px, env(safe-area-inset-right)); bottom: calc(14px + env(safe-area-inset-bottom)); }
    .floating-promo-placeholder { padding: 13px; }
    .floating-promo-number { font-size: 92px; top: 24px; right: 17px; }
    .floating-promo-kicker { font-size: 6px; top: 16px; left: 13px; letter-spacing: .04em; }
    .floating-promo-star { font-size: 20px; margin-bottom: 7px; }
    .floating-promo-placeholder strong { font-size: 18px; }
    .floating-promo-caption { font-size: 9px; margin-top: 4px; }
    html[lang="en"] .floating-promo-placeholder strong { font-size: 16px; }
}
/* Small phones still show the invitation above the floating picture. */
@media (max-width: 680px) and (max-height: 700px) {
    .floating-promo { width: 112px; }
    .floating-promo-placeholder { padding: 10px; }
    .floating-promo-kicker, .floating-promo-star { display: none; }
    .floating-promo-number { top: 10px; font-size: 72px; }
    .floating-promo-placeholder strong { font-size: 16px; }
    .floating-promo-caption { font-size: 8px; }
    html[lang="en"] .floating-promo-placeholder strong { font-size: 13px; }
    .hero { padding-top: 16px; }
    .hero > .hero-copy > .eyebrow { display: none; }
    .hero h1, html[lang="en"] .hero h1 { font-size: 32px; line-height: 1.2; margin-block: 10px 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .floating-promo, .floating-promo.is-closing { animation: none; }
}
@media print { .floating-promo { display: none; } }
