.trop-flyer:not([open]) { display: none; }
body:has(.trop-flyer[open]) { overflow: hidden; }
.trop-flyer {
    position: fixed;
    inset: 0;
    box-sizing: border-box;
    width: fit-content;
    max-width: calc(100vw - 26px);
    max-height: calc(100dvh - 30px);
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: 1px solid #e7c284;
    border-radius: 18px;
    background: #17362a;
    color: #fffdf8;
    box-shadow: 0 24px 65px #071e1580;
    font: 400 1rem/1.5 var(--trop-sans, system-ui, sans-serif);
}
.trop-flyer[open] { animation: trop-flyer-in .4s ease-out both; }
.trop-flyer::backdrop { background: #091811bb; }
.trop-flyer__body { position: relative; }
.trop-flyer .trop-flyer__close {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #fffdf8;
    border-radius: 50%;
    background: #17362a;
    color: #fffdf8;
    font: 400 1.6rem/1 system-ui, sans-serif;
    cursor: pointer;
}
.trop-flyer .trop-flyer__close:is(:hover, :focus-visible) { background: #f0c479; color: #102a21; }
.trop-flyer__image { position: relative; overflow: hidden; }
.trop-flyer__image img {
    display: block;
    width: auto;
    height: auto;
    max-width: min(680px, calc(100vw - 28px));
    max-height: calc(100dvh - 32px);
    object-fit: contain;
}
.trop-flyer__stars { position: absolute; inset: 0; pointer-events: none; }
.trop-flyer__stars span {
    position: absolute;
    top: var(--top, 15%);
    left: var(--left, 14%);
    color: #ffe8a7;
    text-shadow: 0 0 12px #f0c479;
    font-size: var(--size, 1.5rem);
    animation: trop-flyer-twinkle 3s ease-in-out var(--delay, 0s) infinite;
}
.trop-flyer__stars span:nth-child(2) { --left: 78%; --top: 25%; --delay: .4s; }
.trop-flyer__stars span:nth-child(3) { --left: 20%; --top: 59%; --delay: 1s; --size: 1rem; }
.trop-flyer__stars span:nth-child(4) { --left: 86%; --top: 66%; --delay: 1.6s; --size: 1.15rem; }
.trop-flyer__stars span:nth-child(5) { --left: 48%; --top: 11%; --delay: 2s; --size: 1rem; }
@keyframes trop-flyer-twinkle {
    0%, 100% { opacity: .3; transform: translateY(3px) scale(.8); }
    50% { opacity: 1; transform: translateY(-6px) scale(1.1); }
}
@keyframes trop-flyer-in {
    from { opacity: 0; transform: translateY(8px) scale(.98); }
    to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .trop-flyer[open], .trop-flyer__stars span { animation: none; }
}
