/* NookSky — pastel cosy (inspiré Vulpine)
   Thème par Maêlioh (@maelioh) */

:root {
    --ns-primary: #6FCF7E;
    --ns-accent: #6EC4EB;
    --ns-secondary: #9FE0C8;
    --ns-bg: #F4FAF7;
    --ns-bg-soft: #E3F4EA;
    --ns-sky: #EAF6FC;
    --ns-text: #3A4A3C;
    --ns-muted: #6E7F72;
    --ns-radius: 22px;
    --ns-radius-sm: 14px;
    --ns-shadow: 0 10px 25px -8px rgba(58, 90, 70, .16);
    --ns-shadow-hover: 0 14px 30px -6px rgba(58, 90, 70, .24);
    --ns-discord: #5865F2;
    --ns-font: "Quicksand", "Trebuchet MS", sans-serif;
    --ns-display: "Baloo 2", "Quicksand", sans-serif;
}

html { height: 100%; }

body.ns-body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--ns-bg);
    color: var(--ns-text);
    font-family: var(--ns-font);
    font-weight: 600;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

#app { flex: 1 0 auto; }
.ns-footer { flex-shrink: 0; }

a { color: var(--ns-primary); text-decoration: none; }
a:hover { color: var(--ns-accent); }
img { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6,
.ns-brand-text {
    font-family: var(--ns-display);
    font-weight: 700;
}

.ns-page-transition { animation: nsIn .45s ease both; }
@keyframes nsIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Header */
.ns-fixed-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1030;
}

.ns-topbanner {
    padding: .45rem 1rem;
    text-align: center;
    color: #fff;
    font-weight: 700;
    font-size: .9rem;
    background: linear-gradient(90deg, #6EC4EB, #7ED39A);
}

.ns-navbar {
    background: rgba(244, 250, 247, .96);
    box-shadow: 0 4px 18px -6px rgba(34, 74, 51, .12);
    padding: .7rem 0;
    border-bottom: 1px solid rgba(227, 244, 234, .9);
}

.ns-brand {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: var(--ns-text) !important;
    font-size: 1.35rem;
}

.ns-brand-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    background: transparent !important;
}

.ns-brand-text .g { color: #57C46C; }
.ns-brand-text .s { color: #57B6E0; }

.ns-toggler {
    border: none;
    background: var(--ns-bg-soft);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--ns-text);
}

.ns-navbar .nav-link {
    font-weight: 700;
    color: var(--ns-text) !important;
    border-radius: 999px;
    padding: .5rem 1rem !important;
    margin: 0 .12rem;
    transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.ns-navbar .nav-link:hover,
.ns-navbar .nav-link.active {
    background: var(--ns-bg-soft);
    color: #3F9E55 !important;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 6px 14px -6px rgba(58, 90, 70, .25);
}

.ns-dropdown {
    border: none;
    border-radius: var(--ns-radius-sm);
    box-shadow: var(--ns-shadow);
    padding: .5rem;
}

.ns-dropdown .dropdown-item {
    border-radius: 10px;
    padding: .5rem .75rem;
    font-weight: 700;
}

.ns-dropdown .dropdown-item:hover {
    background: var(--ns-bg-soft);
    color: #3F9E55;
}

.ns-avatar {
    border-radius: 50%;
    border: 2px solid var(--ns-secondary);
    object-fit: cover;
}

.ns-wumpus-sm {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    background: transparent !important;
    transition: transform .25s cubic-bezier(.34, 1.45, .64, 1);
}

.ns-btn-discord:hover .ns-wumpus-sm,
.ns-social-discord:hover img {
    transform: rotate(-12deg) scale(1.15);
}

/* Buttons */
.ns-btn,
.btn {
    border-radius: 999px !important;
    font-weight: 700;
    border: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .55rem 1.35rem;
    transition: transform .2s cubic-bezier(.34, 1.4, .64, 1), box-shadow .2s ease, filter .2s ease;
    box-shadow: var(--ns-shadow);
}

.ns-btn:hover, .btn:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: var(--ns-shadow-hover);
}

.ns-btn:active, .btn:active {
    transform: translateY(0) scale(.98);
}

.ns-btn-lg { padding: .8rem 1.8rem; font-size: 1.05rem; }

.ns-btn-primary,
.btn-primary {
    background: linear-gradient(135deg, var(--ns-primary), #57B6E0) !important;
    color: #fff !important;
}

.ns-btn-primary:hover,
.btn-primary:hover { color: #fff !important; }

.ns-btn-ghost {
    background: #fff !important;
    color: var(--ns-text) !important;
    box-shadow: inset 0 0 0 2px var(--ns-bg-soft), var(--ns-shadow);
}

.ns-btn-discord {
    background: var(--ns-discord) !important;
    color: #fff !important;
}

.ns-btn-light {
    background: #fff !important;
    color: #3F9E55 !important;
}

/* Cards / forms */
.card, .ns-card, .alert, .list-group {
    border: none !important;
    border-radius: var(--ns-radius) !important;
    box-shadow: var(--ns-shadow);
    background: #fff;
    transition: transform .22s cubic-bezier(.34, 1.3, .64, 1), box-shadow .22s ease;
}

.card:hover, .ns-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: var(--ns-shadow-hover);
}

.card-header {
    background: var(--ns-bg-soft) !important;
    border: none !important;
    border-radius: var(--ns-radius) var(--ns-radius) 0 0 !important;
    font-weight: 700;
}

.ns-profile-delete-box {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.15rem 1.25rem;
    border-radius: var(--ns-radius-sm);
    border: 2px dashed #F2A4A4;
    background: linear-gradient(135deg, #FFF7F7 0%, #FFF0F3 100%);
    color: #5A3A3A;
}

.ns-profile-delete-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #FFE0E3;
    color: #D35B6A;
    font-size: 1.25rem;
}

.ns-profile-delete-box strong {
    display: block;
    margin-bottom: .35rem;
    font-family: "Baloo 2", sans-serif;
    font-size: 1.15rem;
    color: #C44757;
}

.ns-profile-delete-box p {
    margin: 0 0 .85rem;
    font-size: .95rem;
    line-height: 1.45;
    color: #6B4A4A;
}

.form-control, .form-select {
    border-radius: var(--ns-radius-sm) !important;
    border: 2px solid var(--ns-bg-soft);
    padding: .6rem 1rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--ns-accent);
    box-shadow: 0 0 0 .2rem rgba(110, 196, 235, .25);
}

.ns-kicker {
    display: inline-block;
    background: var(--ns-bg-soft);
    color: #3F9E55;
    font-weight: 700;
    padding: .35rem 1rem;
    border-radius: 999px;
    margin-bottom: .75rem;
    font-size: .9rem;
}

.ns-section-title {
    font-size: 2rem;
    margin-bottom: .75rem;
    color: var(--ns-text);
}

.ns-subtitle {
    color: var(--ns-muted);
    max-width: 640px;
    margin: 0 auto;
}

.ns-page-content { padding-top: 1.5rem; padding-bottom: 3rem; }

/* Hero */
.ns-hero {
    position: relative;
    padding: 3.5rem 0 4rem;
    overflow: hidden;
    background: linear-gradient(180deg, #EAF6FC 0%, var(--ns-bg) 100%);
}

.ns-blob {
    position: absolute;
    border-radius: 50%;
    opacity: .45;
    z-index: 0;
    pointer-events: none;
}
.ns-blob-1 {
    width: 240px; height: 240px;
    background: #B8E8C8;
    top: -50px; right: -40px;
}
.ns-blob-2 {
    width: 180px; height: 180px;
    background: #B5E0F5;
    bottom: 10%; left: -50px;
}

.ns-hero .container { position: relative; z-index: 1; }

.ns-hero-title {
    font-size: clamp(2.1rem, 4.2vw, 3rem);
    margin-bottom: .9rem;
    color: var(--ns-text);
    line-height: 1.12;
}

.ns-hero-text {
    font-size: 1.1rem;
    color: var(--ns-muted);
    line-height: 1.7;
    max-width: 34rem;
}

.ns-hero-logo-wrap {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 320px;
}

.ns-hero-glow {
    position: absolute;
    width: min(340px, 80%);
    height: min(340px, 80%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.85) 0%, rgba(184, 232, 200, .45) 40%, transparent 70%);
    z-index: 0;
    animation: nsPulseGlow 4s ease-in-out infinite;
}

.ns-hero-logo {
    position: relative;
    z-index: 1;
    width: min(340px, 78%);
    height: auto;
    background: transparent !important;
    animation: nsFloat 4.5s ease-in-out infinite;
    filter: drop-shadow(0 18px 28px rgba(58, 90, 70, .18));
}

/* Stats */
.ns-stats { padding: 0.5rem 0 3.5rem; }

.ns-stat-card {
    background: #fff;
    border-radius: var(--ns-radius);
    box-shadow: var(--ns-shadow);
    padding: 1.6rem 1.1rem 1.4rem;
    width: 100%;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    transition: transform .25s cubic-bezier(.34, 1.4, .64, 1), box-shadow .25s ease;
}

.ns-stat-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: var(--ns-shadow-hover);
}

.ns-stat-card:hover .ns-stat-icon-wrap {
    transform: rotate(-8deg) scale(1.12);
}

.ns-stat-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: var(--ns-bg-soft);
    margin-bottom: .35rem;
    transition: transform .25s cubic-bezier(.34, 1.45, .64, 1);
}

.ns-stat-icon-wrap.is-online {
    background: #DFF7E7;
}

.ns-stat-icon {
    font-size: 1.45rem;
    color: var(--ns-accent);
    line-height: 1;
    display: block;
}

.ns-stat-icon-wrap.is-online .ns-stat-icon {
    color: #3F9E55;
    animation: nsOnlineBlink 2s ease-in-out infinite;
}

.ns-stat-number {
    display: block;
    font-family: var(--ns-display);
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--ns-text);
    line-height: 1;
    min-height: 2.1rem;
}

.ns-stat-label {
    color: var(--ns-muted);
    font-weight: 700;
    font-size: .95rem;
    min-height: 1.35rem;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
}

.ns-stat-max {
    color: var(--ns-muted);
    font-weight: 700;
    font-size: .85rem;
}

/* About */
.ns-about { padding: 0.5rem 0 3rem; }

.ns-about-panel {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    background: #fff;
    border-radius: var(--ns-radius);
    box-shadow: var(--ns-shadow);
    padding: clamp(1.6rem, 3vw, 2.4rem) clamp(1.2rem, 3vw, 2.2rem);
    transition: transform .25s ease, box-shadow .25s ease;
}

.ns-about-panel:hover {
    transform: translateY(-4px);
    box-shadow: var(--ns-shadow-hover);
}

.ns-about-panel .ns-section-title {
    margin-bottom: .75rem;
}

.ns-about-text {
    color: var(--ns-muted);
    line-height: 1.75;
    font-size: 1.05rem;
    margin: 0 auto;
    max-width: 40rem;
}

.ns-news-placeholder {
    height: 180px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #EAF6FC, #E3F4EA);
}

.ns-news-placeholder img {
    width: 96px;
    height: 96px;
    object-fit: contain;
    background: transparent !important;
    opacity: .9;
}

/* Servers */
.ns-section { padding: 1rem 0 3rem; }
.ns-progress {
    height: 8px;
    border-radius: 999px;
    background: var(--ns-bg-soft);
    overflow: hidden;
}
.ns-progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--ns-primary), var(--ns-accent));
}

/* News */
.ns-news {
    padding: 3.5rem 0;
    background: var(--ns-bg-soft);
    border-radius: 60px;
    margin: 1rem 1rem 2rem;
}

.ns-news-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--ns-radius);
    box-shadow: var(--ns-shadow);
    overflow: hidden;
    color: var(--ns-text);
    height: 100%;
    transition: transform .25s cubic-bezier(.34, 1.3, .64, 1), box-shadow .25s ease;
}
.ns-news-card:hover {
    transform: translateY(-6px) scale(1.015);
    box-shadow: var(--ns-shadow-hover);
    color: var(--ns-text);
}
.ns-news-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform .45s ease;
}
.ns-news-card:hover .ns-news-image { transform: scale(1.06); }
.ns-news-body { padding: 1.25rem 1.3rem 1.4rem; flex: 1; }
.ns-news-date { color: var(--ns-accent); font-size: .85rem; font-weight: 800; }
.ns-news-title { font-size: 1.15rem; margin-top: .4rem; line-height: 1.3; }

/* Discord frame CTA */
.ns-cta { padding: 2rem 0 4rem; }

.ns-discord-frame {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.25rem 1.5rem;
    padding: 1.1rem 1.4rem 1.1rem 1rem;
    border-radius: 28px;
    background:
        radial-gradient(circle at 12% 80%, rgba(255,255,255,.18), transparent 35%),
        linear-gradient(125deg, #6A75F5 0%, #5865F2 45%, #4752C4 100%);
    color: #fff !important;
    box-shadow: 0 16px 34px -12px rgba(88, 101, 242, .45);
    border: 3px solid rgba(255,255,255,.22);
    overflow: hidden;
    position: relative;
    transition: transform .25s cubic-bezier(.34, 1.35, .64, 1), box-shadow .25s ease;
}

.ns-discord-frame:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 22px 40px -10px rgba(88, 101, 242, .55);
    color: #fff !important;
}

.ns-discord-wumpus {
    width: 132px;
    height: 132px;
    display: grid;
    place-items: end center;
    flex-shrink: 0;
}

.ns-discord-wumpus img {
    width: 132px;
    height: auto;
    object-fit: contain;
    background: transparent !important;
    filter: drop-shadow(0 10px 16px rgba(0,0,0,.25));
    transform-origin: bottom center;
    animation: nsWumpusIdle 3.6s ease-in-out infinite;
    transition: transform .3s cubic-bezier(.34, 1.5, .64, 1);
}

.ns-discord-frame:hover .ns-discord-wumpus img {
    animation: none;
    transform: translateY(-8px) rotate(-6deg) scale(1.08);
}

.ns-discord-copy {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    min-width: 0;
}

.ns-discord-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    width: fit-content;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 999px;
    padding: .25rem .7rem;
    font-size: .8rem;
    font-weight: 800;
}

.ns-discord-copy strong {
    font-family: var(--ns-display);
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    line-height: 1.15;
}

.ns-discord-copy > span:last-child {
    color: rgba(255,255,255,.92);
    font-weight: 600;
    line-height: 1.45;
}

.ns-discord-action {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: #fff;
    color: #4752C4;
    font-weight: 800;
    font-family: var(--ns-display);
    padding: .75rem 1.2rem;
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(0,0,0,.15);
    transition: transform .2s ease, gap .2s ease;
    white-space: nowrap;
}

.ns-discord-frame:hover .ns-discord-action {
    transform: scale(1.05);
    gap: .7rem;
}

/* Footer */
.ns-footer {
    background: #4FAE7A;
    color: #fff;
    margin-top: auto;
    padding-bottom: .5rem;
}
.ns-footer-wave {
    color: #4FAE7A;
    height: 54px;
    margin-top: -1px;
}
.ns-footer-wave svg { width: 100%; height: 100%; display: block; }

.ns-footer-brand {
    display: flex;
    align-items: center;
    gap: .65rem;
    font-family: var(--ns-display);
    font-size: 1.4rem;
    font-weight: 800;
}
.ns-footer-logo {
    width: 56px; height: 56px;
    object-fit: contain;
    background: transparent !important;
}
.ns-footer-brand .g { color: #D9FFD4; }
.ns-footer-brand .s { color: #D6F3FF; }

.ns-footer-title {
    font-size: 1.05rem;
    margin-bottom: .75rem;
    color: #fff;
}
.ns-footer-text {
    color: #EFFFF5;
    font-weight: 600;
    line-height: 1.55;
}
.ns-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}
.ns-footer-links a {
    color: #fff !important;
    font-weight: 700;
    display: inline-block;
    padding: .2rem 0;
}
.ns-footer-links a:hover { color: #D6F3FF !important; }

.ns-social {
    width: 42px; height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.2);
    color: #fff !important;
    transition: transform .2s cubic-bezier(.34, 1.4, .64, 1);
}
.ns-social:hover { transform: translateY(-3px) scale(1.08); }

.ns-social-discord {
    background: #fff;
    width: auto;
    height: 44px;
    padding: 0 .65rem;
    gap: .15rem;
}
.ns-social-discord img {
    width: 30px; height: 30px;
    object-fit: contain;
    background: transparent !important;
}

.ns-footer-bottom {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,.25);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .5rem;
    color: #fff;
    font-weight: 700;
    font-size: .92rem;
}

@media (max-width: 991.98px) {
    .ns-nav-actions {
        width: 100%;
        flex-wrap: wrap;
        margin-top: .75rem;
        padding-bottom: .35rem;
    }
    .ns-hero { padding-top: 2.2rem; padding-bottom: 2.5rem; }
    .ns-hero-logo-wrap { min-height: 240px; order: -1; }
    .ns-hero .row { flex-direction: column-reverse; }
    .ns-hero-logo { width: min(240px, 70%); }
    .ns-news { border-radius: 32px; margin: 1rem .5rem; }
    .ns-stat-card { min-height: 160px; }
    .ns-discord-frame {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
        padding: 1.4rem 1.2rem;
    }
    .ns-discord-copy { align-items: center; }
    .ns-discord-wumpus { width: 120px; height: 120px; }
    .ns-discord-wumpus img { width: 120px; }
}

@keyframes nsFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

@keyframes nsPulseGlow {
    0%, 100% { transform: scale(1); opacity: .7; }
    50% { transform: scale(1.08); opacity: 1; }
}

@keyframes nsOnlineBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: .55; }
}

@keyframes nsWumpusIdle {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-7px) rotate(2deg); }
}

/* ===== Vote page ===== */
.ns-vote-hero {
    text-align: center;
    margin-bottom: 1.75rem;
}

.ns-vote-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: #3F9E55;
    margin: .35rem 0 .5rem;
}

.ns-vote-lead {
    max-width: 34rem;
    margin: 0 auto;
    color: var(--ns-muted);
    font-size: 1.05rem;
}

.ns-vote-status:empty { display: none; }
.ns-vote-status { margin-bottom: 1rem; }

.ns-vote-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .85rem;
    margin-bottom: 1.25rem;
}

.ns-vote-stat {
    padding: 1rem 1.1rem;
    border-radius: var(--ns-radius-sm);
    background: #fff;
    border: 2px solid #C8EBD6;
    box-shadow: var(--ns-shadow);
    text-align: center;
}

.ns-vote-stat-label {
    display: block;
    color: var(--ns-muted);
    font-size: .86rem;
    font-weight: 700;
    margin-bottom: .35rem;
}

.ns-vote-stat-value {
    display: block;
    font-family: var(--ns-display);
    font-size: clamp(1.45rem, 2.5vw, 1.9rem);
    color: #3F9E55;
    line-height: 1;
}

.ns-vote-top30-title {
    margin-top: 1.75rem;
    margin-bottom: .85rem;
    padding-top: 1rem;
    border-top: 2px dashed #C8EBD6;
}

.ns-vote-panel,
.ns-vote-goal,
.ns-vote-rank {
    border: 2px solid rgba(158, 224, 200, .55) !important;
}

.ns-vote-panel:hover,
.ns-vote-goal:hover,
.ns-vote-rank:hover {
    transform: none;
}

.ns-vote-section-title {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-size: 1.35rem;
    color: #3F9E55;
    margin-bottom: 1.1rem;
}

.ns-vote-section-title i { color: var(--ns-accent); }

.ns-vote-step-hint {
    text-align: center;
    color: var(--ns-muted);
    margin-bottom: 1rem;
}

.ns-vote-name-form {
    max-width: 420px;
    margin: 0 auto;
    text-align: left;
}

.ns-vote-name-row {
    display: flex;
    gap: .65rem;
    flex-wrap: wrap;
}

.ns-vote-name-row .form-control { flex: 1 1 180px; }
.ns-vote-name-row .btn { flex: 0 0 auto; }

.ns-vote-auth { text-align: center; }

.ns-vote-sites {
    display: grid;
    grid-template-columns: 1fr;
    gap: .85rem;
}

.ns-vote-site {
    display: flex !important;
    align-items: center;
    gap: .85rem;
    padding: 1rem 1.1rem !important;
    border-radius: var(--ns-radius-sm) !important;
    background: linear-gradient(135deg, #F7FDF9, #EAF8F0) !important;
    border: 2px solid #C8EBD6 !important;
    color: var(--ns-text) !important;
    text-align: left;
    box-shadow: none !important;
    transition: transform .2s cubic-bezier(.34, 1.3, .64, 1), border-color .2s ease, background .2s ease;
}

.ns-vote-site:hover {
    transform: translateY(-3px);
    border-color: var(--ns-primary) !important;
    background: #fff !important;
    color: var(--ns-text) !important;
}

.ns-vote-site-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #D9F5E3;
    color: #3F9E55;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.ns-vote-site-body {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    flex: 1;
    min-width: 0;
}

.ns-vote-site-body strong {
    font-family: var(--ns-display);
    font-size: 1.05rem;
}

.ns-vote-site-body .vote-timer:empty { display: none; }
.ns-vote-site-body .vote-timer {
    align-self: flex-start;
    background: #6E7F72 !important;
    font-weight: 700;
}

.ns-vote-site-go {
    color: var(--ns-accent);
    font-size: 1.1rem;
}

.ns-vote-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border-radius: var(--ns-radius-sm) !important;
}

.ns-vote-empty-soft {
    text-align: center;
    padding: 1.5rem 1rem;
    color: var(--ns-muted);
    background: var(--ns-bg-soft);
    border-radius: var(--ns-radius-sm);
}

.ns-vote-goal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .85rem;
}

.ns-vote-goal-pct {
    font-family: var(--ns-display);
    font-size: 1.4rem;
    color: var(--ns-accent);
    font-weight: 800;
}

.ns-vote-progress {
    height: 1.15rem;
    border-radius: 999px;
    background: var(--ns-bg-soft);
    overflow: hidden;
}

.ns-vote-progress .progress-bar {
    background: linear-gradient(90deg, #6FCF7E, #6EC4EB);
    border-radius: 999px;
}

.ns-vote-goal-text {
    color: var(--ns-muted);
    font-weight: 700;
}

.ns-vote-leaderboard {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.ns-vote-rank-row {
    display: grid;
    grid-template-columns: 3.2rem 1fr auto;
    align-items: center;
    gap: .75rem;
    padding: .75rem 1rem;
    border-radius: var(--ns-radius-sm);
    background: var(--ns-bg);
    border: 1px solid transparent;
}

.ns-vote-rank-row.is-top-1 {
    background: linear-gradient(135deg, #FFF8E1, #FFF3C4);
    border-color: #F0D56A;
}
.ns-vote-rank-row.is-top-2 {
    background: linear-gradient(135deg, #F3F6FA, #E8EEF5);
    border-color: #C5D0DE;
}
.ns-vote-rank-row.is-top-3 {
    background: linear-gradient(135deg, #FFF1E8, #FFE4D4);
    border-color: #E8B48A;
}

.ns-vote-rank-pos {
    font-weight: 800;
    text-align: center;
    font-size: 1.05rem;
}

.ns-vote-rank-name {
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ns-vote-rank-count {
    font-family: var(--ns-display);
    font-size: 1.15rem;
    color: #3F9E55;
    text-align: right;
    line-height: 1.1;
}

.ns-vote-rank-count small {
    display: block;
    font-family: var(--ns-font);
    font-size: .72rem;
    color: var(--ns-muted);
    font-weight: 700;
}

.ns-vote-user-stats {
    padding-top: .85rem;
    border-top: 1px dashed #C8EBD6;
    color: var(--ns-muted);
    font-weight: 700;
    text-align: center;
}

.ns-vote-podium {
    display: grid;
    grid-template-columns: 1fr 1.15fr 1fr;
    align-items: end;
    gap: 1rem;
    padding: .5rem .25rem 0;
}

.ns-vote-podium-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.ns-vote-podium-skin {
    width: 100%;
    max-width: 220px;
    min-height: 220px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    filter: drop-shadow(0 18px 22px rgba(47, 99, 68, .22));
}

.ns-vote-podium-slot.is-pos-1 .ns-vote-podium-skin {
    min-height: 280px;
    max-width: 240px;
}

.ns-skin-canvas {
    display: block;
    width: 100%;
    height: auto;
    background: transparent;
}

.ns-vote-podium-placeholder {
    width: 88px;
    height: 140px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-family: var(--ns-display);
    font-size: 2rem;
    color: #9BB5A4;
    background: linear-gradient(180deg, #E8F5EE, #D7EBDF);
    border: 2px dashed #B7D9C5;
}

.ns-vote-podium-meta {
    margin-top: .35rem;
    margin-bottom: .55rem;
    z-index: 1;
}

.ns-vote-podium-medal {
    display: inline-block;
    padding: .2rem .7rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .02em;
    margin-bottom: .35rem;
    background: #E3F4EA;
    color: #3F9E55;
}

.ns-vote-podium-slot.is-pos-1 .ns-vote-podium-medal {
    background: linear-gradient(90deg, #FFE58A, #FFD24D);
    color: #7A5A00;
}

.ns-vote-podium-slot.is-pos-2 .ns-vote-podium-medal {
    background: linear-gradient(90deg, #E8EEF5, #CDD7E4);
    color: #445466;
}

.ns-vote-podium-slot.is-pos-3 .ns-vote-podium-medal {
    background: linear-gradient(90deg, #FFD7BE, #F0B888);
    color: #7A4020;
}

.ns-vote-podium-name {
    display: block;
    font-family: var(--ns-display);
    font-size: 1.15rem;
    color: var(--ns-text);
    line-height: 1.15;
    word-break: break-word;
}

.ns-vote-podium-name-empty {
    color: var(--ns-muted);
    font-size: 1rem;
}

.ns-vote-podium-votes {
    display: block;
    margin-top: .2rem;
    color: #3F9E55;
    font-weight: 800;
    font-size: .92rem;
}

.ns-vote-podium-block {
    width: 100%;
    border-radius: 16px 16px 10px 10px;
    background: linear-gradient(180deg, #D9F0E3 0%, #BFE4D0 100%);
    border: 2px solid #A7D8BB;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.65);
}

.ns-vote-podium-slot.is-pos-1 .ns-vote-podium-block {
    height: 92px;
    background: linear-gradient(180deg, #FFE9A8 0%, #F5C84A 100%);
    border-color: #E0B830;
}

.ns-vote-podium-slot.is-pos-2 .ns-vote-podium-block {
    height: 68px;
    background: linear-gradient(180deg, #EEF2F7 0%, #C8D2DF 100%);
    border-color: #A9B7C8;
}

.ns-vote-podium-slot.is-pos-3 .ns-vote-podium-block {
    height: 52px;
    background: linear-gradient(180deg, #FFDCC6 0%, #E8A978 100%);
    border-color: #D3925E;
}

.ns-vote-podium-slot.is-empty {
    opacity: .72;
}

.ns-vote-server-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
}

@media (max-width: 767.98px) {
    .ns-vote-stats {
        grid-template-columns: 1fr;
    }

    .ns-vote-podium {
        grid-template-columns: 1fr;
        gap: 1.4rem;
    }

    .ns-vote-podium-slot.is-pos-1 { order: -1; }

    .ns-vote-podium-block {
        height: 42px !important;
    }

    .ns-vote-rank-row {
        grid-template-columns: 2.6rem 1fr;
        grid-template-rows: auto auto;
    }
    .ns-vote-rank-count {
        grid-column: 2;
        text-align: left;
    }
}

@media (max-width: 575.98px) {
    .ns-vote-rank-row {
        grid-template-columns: 2.6rem 1fr;
        grid-template-rows: auto auto;
    }
    .ns-vote-rank-count {
        grid-column: 2;
        text-align: left;
    }
}

/* ===== Wiki ===== */
.ns-wiki-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem 2rem;
    margin-bottom: 1.75rem;
    padding: 1.35rem 1.5rem;
    border-radius: var(--ns-radius);
    background:
        radial-gradient(circle at 12% 20%, rgba(110, 196, 235, .22), transparent 42%),
        radial-gradient(circle at 88% 30%, rgba(111, 207, 126, .24), transparent 40%),
        linear-gradient(135deg, #F7FDF9, #EAF6FC);
    border: 2px solid rgba(158, 224, 200, .55);
}

.ns-wiki-title {
    margin: .25rem 0 .35rem;
    font-size: clamp(1.9rem, 3.5vw, 2.5rem);
    color: #3F9E55;
}

.ns-wiki-lead {
    margin: 0;
    color: var(--ns-muted);
    max-width: 28rem;
}

.ns-wiki-search {
    flex: 1 1 280px;
    max-width: 420px;
}

.ns-wiki-search-row {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .35rem .35rem .35rem .85rem;
    border-radius: 999px;
    background: #fff;
    border: 2px solid #C8EBD6;
    box-shadow: var(--ns-shadow);
}

.ns-wiki-search-row > i {
    color: var(--ns-accent);
}

.ns-wiki-search-row .form-control {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding-left: 0;
    border-radius: 0 !important;
}

.ns-wiki-search-row .btn {
    border-radius: 999px !important;
    white-space: nowrap;
}

.ns-wiki-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.ns-wiki-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .75rem;
    padding: 1.5rem 1.1rem 1.2rem;
    border-radius: var(--ns-radius);
    background: #fff;
    border: 2px solid #C8EBD6;
    color: var(--ns-text) !important;
    box-shadow: var(--ns-shadow);
    transition: transform .22s cubic-bezier(.34, 1.3, .64, 1), border-color .2s ease, box-shadow .2s ease;
}

.ns-wiki-cat-card:hover {
    transform: translateY(-6px);
    border-color: var(--ns-primary);
    box-shadow: var(--ns-shadow-hover);
    color: var(--ns-text) !important;
}

.ns-wiki-cat-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    font-size: 1.7rem;
    color: #3F9E55;
    background: linear-gradient(135deg, #E3F4EA, #D6F0FB);
}

.ns-wiki-cat-card h2 {
    margin: 0;
    font-size: 1.25rem;
    color: #3A4A3C;
}

.ns-wiki-cat-cta {
    font-size: .9rem;
    font-weight: 800;
    color: var(--ns-accent);
}

.ns-wiki-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: 7.5rem;
}

.ns-wiki-side-block {
    padding: 1rem;
    border-radius: var(--ns-radius);
    background: #fff;
    border: 2px solid #C8EBD6;
    box-shadow: var(--ns-shadow);
}

.ns-wiki-side-title {
    margin: 0 0 .75rem;
    font-size: 1rem;
    color: #3F9E55;
}

.ns-wiki-nav {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.ns-wiki-nav-link {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .65rem .75rem;
    border-radius: 12px;
    color: var(--ns-text) !important;
    font-weight: 700;
    background: var(--ns-bg);
    transition: background .15s ease, color .15s ease, transform .15s ease;
}

.ns-wiki-nav-link i {
    color: var(--ns-accent);
    flex-shrink: 0;
}

.ns-wiki-nav-link:hover {
    background: var(--ns-bg-soft);
    transform: translateX(3px);
}

.ns-wiki-nav-link.active {
    background: linear-gradient(135deg, #6FCF7E, #6EC4EB);
    color: #fff !important;
}

.ns-wiki-nav-link.active i {
    color: #fff;
}

.ns-wiki-article {
    border: 2px solid rgba(158, 224, 200, .55) !important;
}

.ns-wiki-article:hover {
    transform: none;
}

.ns-wiki-article-title {
    margin: 0 0 1rem;
    padding-bottom: .75rem;
    border-bottom: 2px dashed #C8EBD6;
    color: #3F9E55;
    font-size: clamp(1.5rem, 2.5vw, 1.9rem);
}

.ns-wiki-content {
    color: var(--ns-text);
    line-height: 1.7;
    font-size: 1.02rem;
}

.ns-wiki-content h1,
.ns-wiki-content h2,
.ns-wiki-content h3,
.ns-wiki-content h4 {
    color: #3F9E55;
    margin-top: 1.4rem;
}

.ns-wiki-content a {
    color: var(--ns-accent);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

.ns-wiki-content img {
    border-radius: var(--ns-radius-sm);
    box-shadow: var(--ns-shadow);
}

.ns-wiki-content ul,
.ns-wiki-content ol {
    padding-left: 1.2rem;
}

.ns-wiki-content blockquote {
    margin: 1rem 0;
    padding: .85rem 1rem;
    border-left: 4px solid var(--ns-primary);
    background: var(--ns-bg-soft);
    border-radius: 0 var(--ns-radius-sm) var(--ns-radius-sm) 0;
}

.ns-wiki-content pre,
.ns-wiki-content code {
    border-radius: 10px;
    background: #EAF6FC;
}

.ns-wiki-content pre {
    padding: 1rem;
    overflow-x: auto;
}

.ns-wiki-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: var(--ns-radius-sm);
    border: 1px solid #C8EBD6;
}

.ns-wiki-content th,
.ns-wiki-content td {
    padding: .65rem .8rem;
    border-bottom: 1px solid #E3F4EA;
}

.ns-wiki-content th {
    background: var(--ns-bg-soft);
    color: #3F9E55;
}

.ns-wiki-results {
    display: flex;
    flex-direction: column;
    gap: .9rem;
}

.ns-wiki-result {
    border: 2px solid #C8EBD6 !important;
    color: inherit !important;
    transition: transform .2s cubic-bezier(.34, 1.3, .64, 1), border-color .2s ease;
}

.ns-wiki-result:hover {
    border-color: var(--ns-primary) !important;
    color: inherit !important;
}

.ns-wiki-result-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    margin-bottom: .45rem;
}

.ns-wiki-result-top h2 {
    margin: 0;
    font-size: 1.25rem;
    color: #3F9E55;
}

.ns-wiki-result-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .25rem .7rem;
    border-radius: 999px;
    background: #EAF6FC;
    color: #3A7FA0;
    font-size: .85rem;
    font-weight: 800;
}

.ns-wiki-result p {
    margin: 0;
    color: var(--ns-muted);
}

.ns-wiki-empty {
    text-align: center;
    padding: 2.5rem 1.25rem;
    border-radius: var(--ns-radius);
    background: #fff;
    border: 2px dashed #C8EBD6;
    color: var(--ns-muted);
    grid-column: 1 / -1;
}

.ns-wiki-empty i {
    font-size: 2rem;
    color: var(--ns-accent);
    display: block;
    margin-bottom: .65rem;
}

.ns-wiki-empty p {
    margin: 0;
    font-weight: 700;
}

.ns-wiki-pagination {
    margin-top: .5rem;
}

/* ===== Updates (Discord sync) ===== */
.ns-updates-hero {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1.4rem 1.25rem;
    border-radius: var(--ns-radius);
    background:
        radial-gradient(circle at 15% 20%, rgba(110, 196, 235, .22), transparent 42%),
        radial-gradient(circle at 85% 25%, rgba(111, 207, 126, .24), transparent 40%),
        linear-gradient(135deg, #F7FDF9, #EAF6FC);
    border: 2px solid rgba(158, 224, 200, .55);
}

.ns-updates-title {
    margin: .3rem 0 .4rem;
    font-size: clamp(1.9rem, 3.5vw, 2.5rem);
    color: #3F9E55;
}

.ns-updates-lead {
    margin: 0 auto;
    max-width: 34rem;
    color: var(--ns-muted);
}

.ns-updates-count {
    margin: 0 0 1rem;
    color: var(--ns-muted);
    font-weight: 700;
    font-size: .92rem;
}

.ns-updates-bricks {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.15rem;
}

.ns-updates-brick {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    width: 100%;
    padding: 0;
    border: 2px solid #C8EBD6;
    border-radius: var(--ns-radius);
    background: #fff;
    box-shadow: var(--ns-shadow);
    overflow: hidden;
    cursor: pointer;
    transition: transform .22s cubic-bezier(.34, 1.3, .64, 1), box-shadow .2s ease, border-color .2s ease;
}

.ns-updates-brick:hover {
    transform: translateY(-6px);
    border-color: var(--ns-primary);
    box-shadow: var(--ns-shadow-hover);
}

.ns-updates-brick-banner {
    position: relative;
    min-height: 150px;
    padding: 1rem 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
    background:
        radial-gradient(circle at 88% 20%, rgba(255,255,255,.18), transparent 40%),
        linear-gradient(145deg, #3F9E55 0%, #2F8F7A 48%, #2A6F8F 100%);
}

.ns-updates-brick.is-annonce .ns-updates-brick-banner {
    background:
        radial-gradient(circle at 88% 20%, rgba(255,255,255,.18), transparent 40%),
        linear-gradient(145deg, #E0A84A 0%, #D4893A 50%, #C26B2E 100%);
}

.ns-updates-brick-icon {
    position: absolute;
    top: .85rem;
    left: .85rem;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.2);
    font-size: 1.1rem;
}

.ns-updates-brick-banner-copy {
    position: relative;
    z-index: 1;
    max-width: calc(100% - 3rem);
}

.ns-updates-brick-cat {
    display: block;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    opacity: .9;
    margin-bottom: .2rem;
}

.ns-updates-brick-banner-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: var(--ns-display);
    font-size: 1.2rem;
    line-height: 1.15;
    font-weight: 800;
}

.ns-updates-brick-banner-title strong { font-weight: 800; }

.ns-updates-brick-go {
    position: absolute;
    right: .85rem;
    bottom: .85rem;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.92);
    color: #3F9E55;
    font-size: 1rem;
}

.ns-updates-brick.is-annonce .ns-updates-brick-go { color: #C26B2E; }

.ns-updates-brick-meta {
    padding: .85rem 1rem 0;
    color: #C49A3C;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.ns-updates-brick.is-maj .ns-updates-brick-meta { color: #3F9E55; }

.ns-updates-brick-title {
    margin: .35rem 1rem .45rem;
    font-size: 1.15rem;
    line-height: 1.25;
    color: var(--ns-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ns-updates-brick-emoji { margin-right: .25rem; }

.ns-updates-brick-excerpt {
    margin: 0 1rem .85rem;
    color: var(--ns-muted);
    font-size: .95rem;
    line-height: 1.45;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ns-updates-brick-cta {
    display: block;
    padding: 0 1rem 1.05rem;
    color: #C49A3C;
    font-weight: 800;
    font-size: .92rem;
}

.ns-updates-brick.is-maj .ns-updates-brick-cta { color: #3F9E55; }

.ns-updates-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--ns-bg-soft);
    flex-shrink: 0;
}

.ns-updates-content {
    color: var(--ns-text);
    line-height: 1.65;
    font-size: 1.02rem;
    overflow-wrap: anywhere;
}

.ns-updates-content img {
    max-width: 100%;
    border-radius: var(--ns-radius-sm);
    margin: .5rem 0;
}

.ns-updates-content a {
    color: var(--ns-accent);
    font-weight: 700;
}

.ns-updates-empty {
    text-align: center;
    padding: 2.5rem 1.25rem;
    border-radius: var(--ns-radius);
    background: #fff;
    border: 2px dashed #C8EBD6;
    color: var(--ns-muted);
}

.ns-updates-empty i {
    font-size: 2rem;
    color: var(--ns-accent);
    display: block;
    margin-bottom: .65rem;
}

.ns-updates-pagination {
    margin-top: 1.25rem;
}

.ns-updates-modal {
    z-index: 2000 !important;
}

.ns-updates-modal .modal-dialog {
    width: min(960px, calc(100vw - 1.5rem));
    max-width: 960px;
    margin: 1.25rem auto;
}

.ns-updates-modal .modal-content {
    border: none !important;
    border-radius: var(--ns-radius) !important;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(30, 60, 40, .28);
    background: #fff;
    min-height: min(70vh, 720px);
    transform: none !important;
}

.ns-updates-modal .modal-body {
    min-height: 280px;
    max-height: min(65vh, 640px);
    overflow-y: auto;
    padding: 1.25rem 1.5rem;
}

.ns-updates-modal .modal-header,
.ns-updates-modal .modal-footer {
    border: none;
    background: #F7FDF9;
    padding: 1rem 1.35rem;
}

.ns-updates-modal-head {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding-right: .5rem;
}

.ns-updates-modal .modal-title {
    font-size: 1.35rem;
    color: #3F9E55;
    margin: 0;
}

.ns-updates-modal-meta {
    color: var(--ns-muted);
    font-size: .88rem;
    font-weight: 600;
}

.modal-backdrop {
    z-index: 1990 !important;
}

.modal-backdrop.show {
    opacity: .45;
}

@media (max-width: 991.98px) {
    .ns-updates-bricks {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .ns-updates-bricks {
        grid-template-columns: 1fr;
    }
}

/* ===== Error pages ===== */
.ns-error {
    display: flex;
    justify-content: center;
    padding: 1rem 0 2rem;
}

.ns-error-card {
    position: relative;
    width: min(100%, 560px);
    text-align: center;
    padding: 2.4rem 1.75rem 2rem;
    border-radius: var(--ns-radius);
    background:
        radial-gradient(circle at 18% 12%, rgba(110, 196, 235, .22), transparent 42%),
        radial-gradient(circle at 86% 18%, rgba(111, 207, 126, .26), transparent 40%),
        #fff;
    border: 2px solid #C8EBD6;
    box-shadow: var(--ns-shadow);
    overflow: hidden;
}

.ns-error-card:hover {
    transform: none;
}

.ns-error-glow {
    position: absolute;
    inset: auto auto -40% -20%;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(111, 207, 126, .28), transparent 70%);
    pointer-events: none;
    animation: nsPulseGlow 4s ease-in-out infinite;
}

.ns-error-visual {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
}

.ns-error-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    animation: nsFloat 3.6s ease-in-out infinite;
    filter: drop-shadow(0 14px 18px rgba(63, 158, 85, .22));
}

.ns-error-code {
    margin-top: -.35rem;
    font-family: var(--ns-display);
    font-size: clamp(3.4rem, 10vw, 5rem);
    line-height: 1;
    letter-spacing: .04em;
    background: linear-gradient(120deg, #57C46C, #57B6E0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
}

.ns-error-title {
    margin: .4rem 0 .65rem;
    font-size: clamp(1.55rem, 3vw, 2rem);
    color: #3F9E55;
}

.ns-error-message {
    margin: 0 auto 1.5rem;
    max-width: 28rem;
    color: var(--ns-muted);
    font-size: 1.05rem;
    line-height: 1.55;
}

.ns-error-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem;
}

@media (max-width: 991.98px) {
    .ns-wiki-sidebar {
        position: static;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ns-page-transition,
    .ns-hero-logo,
    .ns-hero-glow,
    .ns-discord-wumpus img,
    .ns-stat-icon-wrap.is-online .ns-stat-icon { animation: none; }

    .ns-navbar .nav-link:hover,
    .ns-btn:hover, .btn:hover,
    .card:hover, .ns-card:hover,
    .ns-stat-card:hover,
    .ns-news-card:hover,
    .ns-discord-frame:hover,
    .ns-vote-site:hover,
    .ns-wiki-cat-card:hover,
    .ns-wiki-result:hover,
    .ns-wiki-nav-link:hover {
        transform: none;
    }
}
