/* ==========================================================================
   external NSFW link interstitial
   ========================================================================== */

.qr-nsfw {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    max-width: 300px;
    margin: 0 auto 14px;
    padding: 8px 10px;
    border: 1px solid rgba(200, 68, 47, .45);
    border-left: 2px solid var(--shu);
    background: rgba(200, 68, 47, .08);
    color: #dfb3a3;
    font-size: 12px;
    line-height: 1.7;
    letter-spacing: .035em;
    text-align: left;
}

.qr-nsfw-badge {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex: none;
    border: 1px solid rgba(200, 68, 47, .62);
    border-radius: 50%;
    color: #ef8569;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.qr-nsfw b {
    color: var(--gold-bright);
    font-weight: 500;
    letter-spacing: .08em;
}

dialog.nsfw-modal {
    width: min(548px, calc(100vw - 32px));
    max-width: 548px;
    max-height: calc(100svh - 32px);
    margin: auto;
    padding: 0;
    border: 1px solid var(--gold-line-strong);
    border-radius: 2px;
    background: linear-gradient(150deg, #101a2b 0%, #080d17 58%, #060a12 100%);
    color: var(--text);
    box-shadow: 0 44px 120px -32px rgba(0, 0, 0, .95);
    overflow: auto;
}

dialog.nsfw-modal::backdrop {
    background: rgba(3, 6, 12, .82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.nsfw-shell {
    position: relative;
    padding: 34px 32px 24px;
    border-top: 2px solid var(--shu);
    overflow: hidden;
}

.nsfw-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(70% 48% at 88% 0%, rgba(200, 68, 47, .12), transparent 70%),
        radial-gradient(52% 40% at 4% 100%, rgba(214, 179, 122, .06), transparent 72%);
}

.nsfw-shell > * {
    position: relative;
    z-index: 1;
}

.nsfw-close {
    position: absolute;
    right: 13px;
    top: 13px;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--gold-line);
    border-radius: 50%;
    color: var(--gold);
    font-size: 12px;
    transition: border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}

.nsfw-close:hover {
    border-color: var(--gold-line-strong);
    color: var(--gold-bright);
    transform: rotate(90deg);
}

.nsfw-stamp {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 18px;
    border: 1px solid rgba(200, 68, 47, .78);
    border-radius: 50%;
    color: #ef8569;
    font-family: var(--font-sans);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: .03em;
    transform: rotate(-6deg);
    box-shadow: inset 0 0 0 4px rgba(200, 68, 47, .06);
}

.nsfw-kicker {
    margin: 0;
    color: var(--gold);
    font-family: var(--font-sans);
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: .24em;
}

.nsfw-title {
    margin: 8px 0 10px;
    color: var(--cream);
    font-family: var(--font-serif);
    font-size: clamp(22px, 3vw, 27px);
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: .035em;
}

.nsfw-desc {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.95;
    letter-spacing: .025em;
}

.nsfw-linkbox {
    margin-top: 20px;
    padding: 11px 13px;
    border: 1px solid var(--gold-line);
    border-left: 2px solid var(--shu);
    background: rgba(214, 179, 122, .045);
}

.nsfw-link-label {
    display: block;
    margin-bottom: 5px;
    color: var(--faint);
    font-family: var(--font-sans);
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: .16em;
}

.nsfw-url {
    display: block;
    max-height: 66px;
    overflow: auto;
    color: var(--gold-bright);
    font-family: var(--font-sans);
    font-size: 12px;
    line-height: 1.65;
    letter-spacing: .01em;
    overflow-wrap: anywhere;
    word-break: break-all;
    scrollbar-width: thin;
    scrollbar-color: var(--gold-deep) transparent;
}

.nsfw-actions {
    display: flex;
    gap: 9px;
    margin-top: 22px;
}

.nsfw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 0 19px;
    border-radius: 2px;
    font-family: var(--font-serif);
    font-size: 13px;
    line-height: 1;
    letter-spacing: .12em;
    transition: border-color .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}

.nsfw-cancel {
    flex: 1;
    border: 1px solid var(--gold-line-strong);
    background: rgba(5, 9, 16, .3);
    color: var(--gold-bright);
}

.nsfw-cancel:hover {
    border-color: var(--gold);
    background: rgba(214, 179, 122, .09);
}

.nsfw-go {
    flex: 1.18;
    border: 1px solid rgba(246, 228, 184, .45);
    background: linear-gradient(180deg, #e9c893 0%, #cda367 62%, #aa7d47 100%);
    color: #1d120a;
    box-shadow: 0 12px 26px rgba(0, 0, 0, .3);
}

.nsfw-go:hover {
    background: linear-gradient(180deg, #f7dda9 0%, #dbb378 62%, #b98a50 100%);
    transform: translateY(-1px);
}

.nsfw-go i {
    font-size: 12px;
}

.nsfw-hint {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 14px 0 0;
    color: var(--faint);
    font-size: 12px;
    line-height: 1.65;
    letter-spacing: .035em;
}

.nsfw-hint i {
    color: var(--gold);
    font-size: 12px;
}

@media (max-width: 520px) {
    .nsfw-shell {
        padding: 28px 20px 20px;
    }

    .nsfw-stamp {
        width: 48px;
        height: 48px;
        margin-bottom: 14px;
        font-size: 15px;
    }

    .nsfw-title {
        font-size: 21px;
    }

    .nsfw-desc {
        font-size: 13px;
        line-height: 1.85;
    }

    .nsfw-actions {
        flex-direction: column;
        margin-top: 18px;
    }

    .nsfw-btn {
        width: 100%;
    }

    .nsfw-hint {
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nsfw-close,
    .nsfw-btn {
        transition: none;
    }

    .nsfw-go:hover {
        transform: none;
    }
}
