body.like-notice-open {
    overflow: hidden;
}

.jm-like-notice {
    position: fixed;
    inset: 0;
    width: min(480px, calc(100vw - 48px));
    max-width: none;
    max-height: min(760px, calc(100dvh - 48px));
    margin: auto;
    padding: 0;
    overflow: visible;
    border: 0;
    background: transparent;
    color: #1f1917;
    opacity: 0;
    transition: opacity 0.22s ease;
}

.jm-like-notice:not([open]) {
    display: none;
}

.jm-like-notice::backdrop {
    background: rgba(15, 15, 15, 0.56);
    backdrop-filter: blur(7px);
}

.jm-like-notice.is-open {
    opacity: 1;
}

.jm-like-notice-card {
    position: relative;
    max-height: min(760px, calc(100dvh - 48px));
    padding: 28px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 18px;
    background:
        radial-gradient(circle at 92% 8%, rgba(177, 0, 0, 0.08), transparent 25%),
        linear-gradient(145deg, #fffaf4 0%, #f7f0e7 56%, #eee6dc 100%);
    box-shadow: 0 32px 90px rgba(15, 6, 4, 0.34);
    transform: translateY(16px) scale(0.985);
    transition: transform 0.22s ease;
}

.jm-like-notice-card::before {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(177, 0, 0, 0.12);
    border-radius: 12px;
    pointer-events: none;
}

.jm-like-notice.is-open .jm-like-notice-card {
    transform: translateY(0) scale(1);
}

.jm-like-notice-close {
    position: absolute;
    top: 22px;
    right: 22px;
    z-index: 1;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(78, 42, 35, 0.24);
    border-radius: 50%;
    color: #1f1917;
    background: rgba(255, 255, 255, 0.66);
    cursor: pointer;
    font: inherit;
    font-size: 22px;
    line-height: 1;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.jm-like-notice-close:hover {
    border-color: #b10000;
    color: #b10000;
    transform: rotate(6deg);
}

.jm-like-notice-kicker {
    margin: 0 48px 8px 0;
    color: #b10000;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.18em;
}

.jm-like-notice-title {
    margin: 0 48px 0 0;
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: clamp(20px, 4vw, 26px);
    line-height: 1.32;
    letter-spacing: 0;
}

.jm-like-notice-description {
    margin: 12px 0 0;
    color: #695e56;
    font-size: 13px;
    line-height: 1.65;
}

.jm-like-notice-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 18px;
}

.jm-like-notice-secondary,
.jm-like-notice-confirm {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border: 1px solid #8d0000;
    border-radius: 999px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .03em;
    text-decoration: none;
    white-space: nowrap;
}

.jm-like-notice-secondary {
    color: #8d0000 !important;
    background: linear-gradient(180deg, #fffaf7 0%, #f3e8df 100%);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.58);
}

.jm-like-notice-confirm {
    color: #ffffff;
    background: linear-gradient(180deg, #c30000 0%, #8d0000 100%);
    box-shadow: 0 12px 24px rgba(177, 0, 0, 0.2);
}

.jm-like-notice-secondary:hover,
.jm-like-notice-secondary:active {
    color: #7a0000 !important;
    border-color: #a80b0b;
    background: linear-gradient(180deg, #fff6f0 0%, #eedfd3 100%);
}

.jm-like-notice-confirm:hover,
.jm-like-notice-confirm:active {
    color: #ffffff;
    border-color: #7f0000;
}

.jm-like-notice-close:focus-visible,
.jm-like-notice-secondary:focus-visible,
.jm-like-notice-confirm:focus-visible {
    outline: 3px solid rgba(177, 0, 0, 0.32);
    outline-offset: 3px;
}

@media (max-width: 520px) {
    .jm-like-notice {
        width: calc(100vw - 20px);
        max-height: calc(100dvh - 20px - env(safe-area-inset-bottom));
    }

    .jm-like-notice-card {
        max-height: calc(100dvh - 20px - env(safe-area-inset-bottom));
        padding: 22px 18px 18px;
        border-radius: 18px 18px 14px 14px;
        transform: translateY(28px);
    }

    .jm-like-notice-card::before {
        inset: 9px;
        border-radius: 12px 12px 8px 8px;
    }

    .jm-like-notice-close {
        top: 18px;
        right: 18px;
        width: 34px;
        height: 34px;
    }

    .jm-like-notice-title {
        font-size: 20px;
    }

    .jm-like-notice-description {
        font-size: 12px;
    }

    .jm-like-notice-actions {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .jm-like-notice,
    .jm-like-notice-card,
    .jm-like-notice-close {
        transition: none;
    }
}
