html {
    scroll-behavior: smooth;
}

::selection {
    background-color: #7c3aed;
    color: #ffffff;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: #09090b;
}
::-webkit-scrollbar-thumb {
    background: #27272a;
    border-radius: 5px;
    border: 2px solid #09090b;
}
::-webkit-scrollbar-thumb:hover {
    background: #3f3f46;
}

.nf-floater {
    position: absolute;
    top: -4px;
    right: -2px;
    font-size: 11px;
    font-weight: 800;
    color: #34d399;
    pointer-events: none;
    animation: nf-float-up 0.7s ease-out forwards;
}

@keyframes nf-float-up {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-18px);
    }
}

.nf-copied-flash {
    border-color: #22d3ee !important;
    animation: nf-flash 0.4s ease-out;
}

@keyframes nf-flash {
    0% {
        background-color: rgba(34, 211, 238, 0.08);
    }
    100% {
        background-color: transparent;
    }
}

.nf-vote-btn:not(:disabled):active {
    transition-duration: 50ms;
}

#nf-input,
#nf-tag-search {
    caret-color: #a855f7;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .nf-floater {
        animation: none;
        display: none;
    }
    .nf-copied-flash {
        animation: none;
    }
    * {
        transition-duration: 0.01ms !important;
    }
}

.ad-container:empty::after {
    content: '';
    display: block;
}

#ad-slot-3 {
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.nf-card .nf-copy-btn span:first-child {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
