/* Nerd-Pastell Sebastian Shrine */

.widget:has(.npss-card),
.pastel-window:has(.npss-card) {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.widget:has(.npss-card) > .window-title,
.pastel-window:has(.npss-card) > .window-title {
    display: none !important;
}

.pastel-window:has(.npss-card) > *,
.widget:has(.npss-card) > * {
    margin-inline: 0 !important;
}

.sidebar .widget:has(.npss-card),
.sidebar .pastel-window:has(.npss-card) {
    width: 100% !important;
}

.npss-card {
    width: 100%;
    overflow: hidden;
    border: 2px solid #d8c8f3;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 20px 50px rgba(100, 78, 160, 0.16);
}

.npss-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 22px;
    color: #fff;
    font-family: "Space Mono", ui-monospace, monospace;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #9f82e8, #c4a9f7);
}

.npss-body {
    position: relative;
    padding: 26px 24px 24px;
    background:
        radial-gradient(circle at 18% 20%, rgba(255, 120, 173, 0.18), transparent 26%),
        radial-gradient(circle at 82% 30%, rgba(111, 220, 207, 0.16), transparent 24%),
        radial-gradient(circle at 60% 92%, rgba(169, 139, 232, 0.14), transparent 28%),
        linear-gradient(180deg, #fffafe 0%, #fff7fb 100%);
}

.npss-body::before {
    position: absolute;
    inset: 12px;
    content: "";
    border-radius: 18px;
    background-image:
        radial-gradient(circle, rgba(255, 209, 102, 0.58) 0 1px, transparent 2px),
        radial-gradient(circle, rgba(255, 120, 173, 0.36) 0 1px, transparent 2px),
        radial-gradient(circle, rgba(111, 220, 207, 0.38) 0 1px, transparent 2px);
    background-size: 68px 68px, 94px 94px, 120px 120px;
    background-position: 10px 12px, 32px 48px, 70px 20px;
    opacity: 0.55;
    pointer-events: none;
}

.npss-content,
.npss-twinkle {
    position: relative;
    z-index: 1;
}

.npss-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 118px;
    gap: 18px;
    align-items: center;
}

.npss-copy {
    color: #5f578e;
    font-family: "Nunito", system-ui, sans-serif;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.65;
}

.npss-copy p {
    margin: 0 0 12px;
}

.npss-copy p:last-child {
    margin-bottom: 0;
}

.npss-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin-top: 16px;
    padding: 0 16px;
    color: #ff78ad;
    font-family: "Nunito", system-ui, sans-serif;
    font-size: 0.82rem;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
    border: 2px solid #ffc2dc;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 10px 22px rgba(255, 120, 173, 0.10);
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.npss-link:hover {
    transform: translateY(-2px);
    background: #fff;
    box-shadow: 0 14px 28px rgba(255, 120, 173, 0.18);
}

.npss-polaroid {
    display: grid;
    gap: 8px;
    justify-items: center;
    width: 116px;
    padding: 9px 9px 13px;
    background: #fff;
    border: 2px solid #efe8ff;
    border-radius: 10px;
    box-shadow: 0 12px 24px rgba(47, 42, 96, 0.16);
    transform: rotate(5deg);
}

.npss-polaroid img {
    display: block;
    width: 96px;
    height: 112px;
    object-fit: cover;
    border-radius: 7px !important;
}

.npss-polaroid span {
    color: #a98be8;
    font-family: "Space Mono", ui-monospace, monospace;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.npss-twinkle {
    position: absolute;
    font-size: 1.1rem;
    line-height: 1;
    pointer-events: none;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
}

.npss-twinkle-1 {
    top: 18px;
    left: 24px;
    color: #ffd166;
}

.npss-twinkle-2 {
    right: 24px;
    top: 50px;
    color: #ff8fc0;
}

.npss-twinkle-3 {
    right: 84px;
    bottom: 24px;
    color: #6fdccf;
}

@media (max-width: 420px) {
    .npss-content {
        grid-template-columns: 1fr;
    }

    .npss-polaroid {
        justify-self: center;
    }
}
