html.dokkaebi-promo-open {
    overflow: hidden;
}

#dokkaebiPromo {
    position: fixed;
    inset: 0;
    width: min(560px, calc(100vw - 32px), calc(100vh - 48px));
    max-width: none;
    max-height: none;
    margin: auto;
    padding: 0;
    border: 1px solid rgba(255, 221, 148, 0.35);
    border-radius: 18px;
    background: #07152c;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

@supports (height: 100dvh) {
    #dokkaebiPromo {
        width: min(560px, calc(100vw - 32px), calc(100dvh - 48px));
    }
}

#dokkaebiPromo:not([open]) {
    display: none;
}

#dokkaebiPromo[open] {
    animation: dokkaebi-promo-enter 260ms cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

#dokkaebiPromo::backdrop {
    background: rgba(3, 10, 25, 0.62);
    backdrop-filter: blur(3px);
    animation: dokkaebi-promo-fade-in 260ms ease-out both;
}

#dokkaebiPromo > img {
    display: block;
    width: 100%;
    height: auto;
}

#dokkaebiPromo .dokkaebi-promo-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    background: rgba(3, 10, 25, 0.78);
    color: #fff;
    cursor: pointer;
    transition: background 150ms ease;
}

#dokkaebiPromo .dokkaebi-promo-close:hover {
    background: #203854;
}

#dokkaebiPromo .dokkaebi-promo-close:focus-visible {
    outline: 2px solid #ffe09b;
    outline-offset: 3px;
}

#dokkaebiPromo.is-closing {
    animation: dokkaebi-promo-exit 160ms ease-in both;
}

#dokkaebiPromo.is-closing::backdrop {
    animation: dokkaebi-promo-fade-in 160ms ease-in reverse both;
}

@keyframes dokkaebi-promo-enter {
    from { opacity: 0; transform: translateY(10px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes dokkaebi-promo-exit {
    to { opacity: 0; transform: translateY(6px) scale(0.98); }
}

@keyframes dokkaebi-promo-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    #dokkaebiPromo[open],
    #dokkaebiPromo::backdrop {
        animation: none;
    }
}
