.nebula-promos { margin-bottom: 24px; }
.nebula-ad {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 4px 14px;
    padding: 12px 16px;
    border: 1px solid #8d639e;
    border-radius: 14px;
    background: linear-gradient(95deg, #261739, #171020);
    color: #fff;
    text-decoration: none;
}
.nebula-ad:hover { border-color: #ffcf83; color: #fff; }
.nebula-ad--right, .nebula-ad__headline { display: none; }
.nebula-ad__logo { grid-area: 1 / 1 / span 3; width: 68px; height: auto; }
.nebula-ad__label { color: #e3c6f0; font-size: 9px; letter-spacing: .15em; }
.nebula-ad__type { font-size: 14px; font-weight: 700; }
.nebula-ad__date { grid-column: 2; color: #ffe0a2; font-size: 12px; }
.nebula-ad__date time { display: inline-block; font-weight: 700; }
.nebula-ad__cta {
    grid-area: 2 / 3 / span 2;
    padding: 8px 12px;
    border-radius: 9px;
    background: linear-gradient(#ffe39d, #f5ae55);
    color: #281326;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}
@media (max-width: 520px) {
    .nebula-ad { grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; padding: 10px 12px; }
    .nebula-ad__logo { grid-row: 1 / span 4; }
    .nebula-ad__cta { grid-area: auto / 2; justify-self: start; margin-top: 4px; }
}
@media (min-width: 1580px) and (min-height: 360px) {
    .nebula-promos { margin: 0; }
    .nebula-ad {
        position: fixed;
        z-index: 3;
        top: clamp(16px, 12vh, 108px);
        right: calc(50% + 578px);
        width: min(222px, calc(50vw - 600px));
        height: min(490px, 82vh);
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 14px 12px;
        text-align: center;
        background: linear-gradient(180deg, #231331 18%, #27133030 49%, #1c1028 73%),
            url("/brand/nebula-ad-hall.webp") center / cover;
    }
    .nebula-ad--right { right: auto; left: calc(50% + 578px); background-position: 64% center; }
    .nebula-ad::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        background: url("/brand/nebula-ad-orbit.svg") center / 100% 100% no-repeat;
        pointer-events: none;
    }
    .nebula-ad > * { position: relative; }
    .nebula-ad__logo { width: min(100%, 155px, 22vh); margin-top: 3px; }
    .nebula-ad__type { padding: 4px 8px; border-radius: 6px; background: #20102f; color: #f0d8ff; font-size: 12px; }
    .nebula-ad__headline { display: block; margin-top: auto; font-family: var(--fd); font-size: 21px; line-height: 1.1; font-weight: 800; }
    .nebula-ad__date time { display: block; }
    .nebula-ad__cta { width: 100%; padding: 11px 8px; }
}
@media (min-width: 1580px) and (min-height: 360px) and (prefers-reduced-motion: no-preference) {
    .nebula-ad::before { animation: nebula-ad-glimmer 4.5s ease-in-out infinite alternate; }
    .nebula-ad--right::before { animation-delay: -1.8s; }
    .nebula-ad__logo { animation: nebula-ad-float 5s ease-in-out infinite; }
    .nebula-ad::after {
        content: "";
        position: absolute;
        inset: 24% 4% 16%;
        background: url("/brand/nebula-ad-lightning.svg") center / 100% 100% no-repeat;
        pointer-events: none;
        opacity: 0;
        animation: nebula-ad-strike 9s linear infinite;
    }
    .nebula-ad--right::after { animation-delay: -4.5s; }
}
@keyframes nebula-ad-glimmer {
    from { opacity: .42; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(-10px); }
}
@keyframes nebula-ad-float {
    0%, 100% { transform: translateY(0); filter: drop-shadow(0 0 6px #ba5aff45); }
    50% { transform: translateY(-6px); filter: drop-shadow(0 0 15px #c06bff90); }
}
@keyframes nebula-ad-strike {
    0%, 67%, 74%, 100% { opacity: 0; }
    68% { opacity: .75; }
    70% { opacity: .24; }
}
