/* --- Fonts & Basics --- */
body {
    font-family: 'Inter', sans-serif;
    background-color: #08080A;
    color: #EAEAEA;
    overflow-x: hidden;
}

header {
    background-color: rgba(8, 8, 10, 0.9);
}

/* --- Components --- */
.bg-card {
    background-color: rgba(39, 39, 42, 0.28);
}

.border-card {
    border-color: transparent !important;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.btn-primary {
    background-color: #FAFAFA;
    color: #08080A;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: #D4D4D4;
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.04);
    color: #A1A1AA;
    border: 1px solid transparent;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: transparent;
    color: #FAFAFA;
}

.btn-auth {
    background-color: transparent;
}

.btn-auth:hover {
    background-color: #18181B;
}

.btn-outline {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    color: #A1A1AA;
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: transparent;
    color: #FAFAFA;
}

.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* --- Forms & Inputs --- */
.input-dark,
.form-input {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid transparent;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    outline: none;
    transition: background-color 0.2s, box-shadow 0.2s;
}

.input-dark:focus,
.form-input:focus {
    background-color: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* --- Modals --- */
.modal,
#loginModal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    backdrop-filter: blur(4px);
}

.modal-content,
#loginModal>div {
    background-color: #0D0E10;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    padding: 2rem;
    width: 100%;
    max-width: 24rem;
    transform: scale(0.95);
    transition: all 0.2s ease;
    position: relative;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

body.modal-open {
    overflow: hidden;
}


body.modal-open .modal.active,
body.modal-open #loginModal.active {
    opacity: 1;
    pointer-events: auto;
}

body.modal-open .modal-content,
body.modal-open #loginModal.active>div {
    transform: scale(1);
}

/* --- Store: Conveyor & Animations --- */
:root {
    --ticket-w: 80px;
    --gap: 40px;
}

.conveyor-track {
    display: flex;
    gap: var(--gap);
    width: max-content;
    will-change: transform;
}

.ticket-wrapper {
    width: var(--ticket-w);
    height: var(--ticket-w);
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: opacity, transform;
}


.pixel-art {
    image-rendering: pixelated;
    shape-rendering: crispEdges;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-float-slow {
    animation: float 4s ease-in-out infinite;
}

.animate-float-slower {
    animation: float 5s ease-in-out infinite;
}

/* --- Store: Badges Scroll --- */
@keyframes scroll-vert-down {
    0% {
        transform: translateY(-50%);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes scroll-vert-up {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

.animate-scroll-down {
    animation: scroll-vert-down 20s linear infinite;
}

.animate-scroll-up {
    animation: scroll-vert-up 20s linear infinite;
}

.badge-img {
    width: 4rem;
    height: 4rem;
    object-fit: contain;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

/* Store badge preview: grayscale until hover */
#badgeContainer .badge-img {
    opacity: 0.5;
    filter: grayscale(100%);
}

#badgeContainer:hover .badge-img {
    opacity: 1;
    filter: grayscale(0%);
}

/* --- Player Skin Custom Element --- */
player-skin {
    display: block;
    width: 100%;
}

/* --- LK: Skin Viewer --- */
#skin-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
}

#skin-container:active {
    cursor: grabbing;
}

#skin-container canvas {
    outline: none;
    border-radius: 0.5rem;
    display: block;
}

.zoom-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 175px;
    height: 8px;
    background: #27272A;
    border-radius: 999px;
    outline: none;
    right: -67.5px;
    transform: rotate(90deg);
}

.zoom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: #FAFAFA;
    cursor: pointer;
    border-radius: 50%;
}

.zoom-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: #FAFAFA;
    cursor: pointer;
    border-radius: 50%;
    border: 0;
}

/* --- 404 --- */
/* SVG Logo sizing */
.clover-logo-bg {
    width: 150px;
    height: 150px;
    pointer-events: none;
    user-select: none;
}

.eyes-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    z-index: 10;
    pointer-events: none;
}

/* Force restore header sizes overridden by Tailwind */
.rules-content h1 {
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    color: white;
    margin-top: 4rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.035);
    line-height: 1.2;
}

.rules-content h1:first-child {
    margin-top: 0;
}

.rules-content h3 {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    color: #E4E4E7;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    position: relative;
}

/* The anchor link (#) */
.rules-content h3 a.header-anchor {
    text-decoration: none;
    color: #52525B;
    /* Dark gray by default */
    margin-right: 0.75rem;
    transition: color 0.2s;
    font-weight: 400;
}

.rules-content h3:hover a.header-anchor {
    color: #FAFAFA;
    /* White on hover instead of green */
}

/* Paragraph text */
.rules-content p {
    color: #A1A1AA;
    line-height: 1.75;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

/* Highlighting animation for linked rules */
.highlight-rule {
    animation: flash-highlight 2s ease-out forwards;
}

@keyframes flash-highlight {
    0% {
        background-color: rgba(255, 255, 255, 0.08);
        border-radius: 8px;
        padding: 1rem;
        margin: -1rem;
        box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
    }

    100% {
        background-color: transparent;
        padding: 1rem;
        margin: -1rem;
        box-shadow: none;
    }
}

/* Force restore header sizes overridden by Tailwind */
.rules-content h1 {
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    color: white;
    margin-top: 4rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.035);
    line-height: 1.2;
}

.rules-content h1:first-child {
    margin-top: 0;
}

.rules-content h3 {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    color: #E4E4E7;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    position: relative;
}

/* The anchor link (#) */
.rules-content h3 a.header-anchor {
    text-decoration: none;
    color: #52525B;
    /* Dark gray by default */
    margin-right: 0.75rem;
    transition: color 0.2s;
    font-weight: 400;
}

.rules-content h3:hover a.header-anchor {
    color: #FAFAFA;
    /* White on hover instead of green */
}

/* Paragraph text */
.rules-content p {
    color: #A1A1AA;
    line-height: 1.75;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

/* Highlighting animation for linked rules */
.highlight-rule {
    animation: flash-highlight 2s ease-out forwards;
}

@keyframes flash-highlight {
    0% {
        background-color: rgba(255, 255, 255, 0.08);
        border-radius: 8px;
        padding: 1rem;
        margin: -1rem;
        box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
    }

    100% {
        background-color: transparent;
        padding: 1rem;
        margin: -1rem;
        box-shadow: none;
    }
}

/* Alert Boxes */
.success,
.warning,
.danger,
.info {
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
    border-left: 0;
    background-color: rgba(255, 255, 255, 0.03);
    /* Very subtle base */
}

.success {
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.1) 0%, rgba(34, 197, 94, 0) 100%);
}

.success h1,
.success h2,
.success h3,
.success strong {
    color: #4ade80;
}

/* Yellow (Warning) */
.warning {
    background: linear-gradient(90deg, rgba(234, 179, 8, 0.1) 0%, rgba(234, 179, 8, 0) 100%);
}

.warning h1,
.warning h2,
.warning h3,
.warning strong {
    color: #facc15;
}

/* Red (Danger) */
.danger {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0) 100%);
}

.danger h1,
.danger h2,
.danger h3,
.danger strong {
    color: #f87171;
}

/* Gray (Info/Note) */
.info {
    background: linear-gradient(90deg, rgba(113, 113, 122, 0.1) 0%, rgba(113, 113, 122, 0) 100%);
}

.info h1,
.info h2,
.info h3,
.info strong {
    color: #E4E4E7;
}

/* Remove default margins inside boxes */
.success p:last-child,
.warning p:last-child,
.danger p:last-child,
.info p:last-child {
    margin-bottom: 0;
}

/* 1. Bullet Points */
.rules-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin: 1rem 0;
    color: #d1d5db;
}

.rules-content li {
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

.rules-content li::marker {
    color: rgba(255, 255, 255, 0.5);
}

/* 2. Blockquotes - UPDATED */
/* remove style from the main container */
.rules-content blockquote {
    border-left: none;
    padding-left: 0;
    margin: 1rem 0;
}

/* apply style to the paragraphs inside */
.rules-content blockquote p {
    background: rgba(255, 255, 255, 0.035);
    border-left: 0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    /* space between stacked quotes */

}

/* 3. Standard Text */
.rules-content p {
    margin-bottom: 1rem;
    color: #e5e7eb;
    line-height: 1.75;
}

.rules-content strong {
    color: white;
    font-weight: 600;
}

.rules-content hr {
    border: 0;
    background: rgba(255, 255, 255, 0.03);
    height: 0.5px;
    margin: 3rem 0;
}

/* aw, look who's watching! */


/* --- Server Sidebar Nav --- */


.server-nav-btn {
    color: #6b7280;
    border: 1px solid transparent;
    outline: none;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.server-nav-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.server-nav-btn.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

/* --- Swup Animations --- */
/* Leave: instant — old content stays visible while new page fetches */
html.is-leaving .transition-fade {
    transition: none;
    opacity: 1;
    transform: none;
}

/* Enter: new content fades in from slightly below */
html.is-rendering .transition-fade {
    opacity: 0;
    transform: translateY(6px);
}

.transition-fade {
    transition: opacity 0.22s ease-out, transform 0.22s ease-out;
    opacity: 1;
    transform: none;
}

.c-border-gray-900 {
    --tw-border-opacity: 1;
    border-color: transparent !important;
}

.c-text-gray-700 {
    --tw-text-opacity: 1;
    color: rgb(38, 40, 45 / var(--tw-border-opacity, 1)) !important;
}

/* --- Page Transition Spinner --- */
#page-spinner {
    position: fixed;
    /* center within the viewport, accounting for possible sidebar (~224px) */
    top: 50%;
    left: calc(50% + 56px);
    /* rough center shift for when sidebar is visible */
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 9000;
}

#page-spinner.visible {
    opacity: 1;
}

.page-spinner-ring {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2.5px solid rgba(255, 255, 255, 0.08);
    border-top-color: rgba(255, 255, 255, 0.75);
    animation: page-spin 0.65s linear infinite;
}

@keyframes page-spin {
    to {
        transform: rotate(360deg);
    }
}

/* --- Markdown Body --- */
.markdown-body {
    color: #e5e7eb;
    line-height: 1.6;
    word-wrap: break-word;
}

.markdown-body p {
    margin-top: 0;
    margin-bottom: 1em;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
    font-weight: 700;
    line-height: 1.25;
    color: #ffffff;
}

.markdown-body h1 {
    font-size: 2em;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.035);
    padding-bottom: 0.3em;
}

.markdown-body h2 {
    font-size: 1.5em;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.035);
    padding-bottom: 0.3em;
}

.markdown-body h3 {
    font-size: 1.25em;
}

.markdown-body h4 {
    font-size: 1em;
}

.markdown-body ul,
.markdown-body ol {
    margin-top: 0;
    margin-bottom: 1em;
    padding-left: 2em;
}

.markdown-body ul {
    list-style-type: disc;
}

.markdown-body ol {
    list-style-type: decimal;
}

.markdown-body blockquote {
    margin: 0;
    padding: 0.75em 1em;
    color: #9ca3af;
    border-left: 0;
    background: rgba(255, 255, 255, 0.035);
    border-radius: 6px;
}

.markdown-body a {
    color: #FAFAFA;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: rgba(250, 250, 250, 0.4);
    transition: text-decoration-color 0.2s ease;
}

.markdown-body a:hover {
    text-decoration-color: #FAFAFA;
}

.markdown-body hr {
    height: 1px;
    background-color: #27272A;
    border: none;
    margin: 2em 0;
}

.markdown-body strong {
    font-weight: 600;
    color: #ffffff;
}

.markdown-body em {
    font-style: italic;
}

.markdown-body .md-media {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0.5rem 0 1rem;
    padding: 0;
    overflow: hidden;
    color: inherit;
    text-align: left;
    background: transparent;
    border: 0;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.markdown-body .md-media:hover {
    opacity: 0.9;
}

.markdown-body .md-media img,
.markdown-body .md-media video {
    display: block;
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
}

.markdown-body .md-media video {
    pointer-events: none;
}

.markdown-body .md-media-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.markdown-body .md-media-play>div {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 9999px;
    backdrop-filter: blur(4px);
}

.markdown-body .md-media-play svg {
    width: 1.5rem;
    height: 1.5rem;
    margin-left: 0.25rem;
    color: #ffffff;
}

.markdown-body code {
    padding: 0.2em 0.4em;
    margin: 0;
    font-size: 85%;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
}

.markdown-body pre {
    padding: 16px;
    overflow: auto;
    font-size: 85%;
    line-height: 1.45;
    background-color: #0D0E10;
    border-radius: 6px;
    border: 1px solid transparent;
    margin-bottom: 1em;
}

.markdown-body pre code {
    padding: 0;
    background-color: transparent;
    border-radius: 0;
}

/* --- Borderless Tailwind Overrides --- */
.border.border-card,
.border[class*="border-card"],
.border.border-gray-900,
.border[class*="border-white/"],
.border[class*="border-[#27272"],
.border[class*="border-[#18181"],
.border[class*="border-zinc-"],
.border[class*="border-gray-"] {
    border-color: transparent !important;
}

.border-t.border-card,
.border-b.border-card,
.border-l.border-card,
.border-r.border-card,
.border-t[class*="border-card"],
.border-b[class*="border-card"],
.border-l[class*="border-card"],
.border-r[class*="border-card"],
.border-t.c-border-gray-900,
.border-b.c-border-gray-900,
.border-t[class*="border-white/"],
.border-b[class*="border-white/"],
.border-l[class*="border-white/"],
.border-r[class*="border-white/"],
.border-t[class*="border-[#27272"],
.border-b[class*="border-[#27272"],
.border-l[class*="border-[#27272"],
.border-r[class*="border-[#27272"],
.border-t[class*="border-gray-"],
.border-b[class*="border-gray-"],
.border-l[class*="border-gray-"],
.border-r[class*="border-gray-"] {
    border-color: rgba(255, 255, 255, 0.035) !important;
}

.border-t.border-card,
.border-t[class*="border-card"],
.border-t.c-border-gray-900,
.border-t[class*="border-white/"],
.border-t[class*="border-[#27272"],
.border-t[class*="border-gray-"] {
    border-top-width: 0.5px !important;
}

.border-b.border-card,
.border-b[class*="border-card"],
.border-b.c-border-gray-900,
.border-b[class*="border-white/"],
.border-b[class*="border-[#27272"],
.border-b[class*="border-gray-"] {
    border-bottom-width: 0.5px !important;
}

.border-l.border-card,
.border-l[class*="border-card"],
.border-l[class*="border-white/"],
.border-l[class*="border-[#27272"],
.border-l[class*="border-gray-"] {
    border-left-width: 0.5px !important;
}

.border-r.border-card,
.border-r[class*="border-card"],
.border-r[class*="border-white/"],
.border-r[class*="border-[#27272"],
.border-r[class*="border-gray-"] {
    border-right-width: 0.5px !important;
}


/* ============================================================
   ANIMATION SYSTEM
   ============================================================ */

/* --- Scroll-triggered Fade In --- */
.anim-fade-in {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.45s ease, transform 0.45s ease;
    will-change: opacity, transform;
}

.anim-fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered children: each child gets delay via --anim-i */
.anim-stagger>* {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.38s ease, transform 0.38s ease;
    will-change: opacity, transform;
    transition-delay: calc(var(--anim-i, 0) * 55ms);
}

.anim-stagger.is-visible>* {
    opacity: 1;
    transform: translateY(0);
}

/* --- Hero one-shot entrance --- */
@keyframes heroSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.anim-hero {
    animation: heroSlideUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
}

/* delay utilities for hero stagger */
.anim-delay-0 {
    animation-delay: 0ms;
}

.anim-delay-1 {
    animation-delay: 80ms;
}

.anim-delay-2 {
    animation-delay: 160ms;
}

.anim-delay-3 {
    animation-delay: 240ms;
}

.anim-delay-4 {
    animation-delay: 340ms;
}

/* --- Hover Lift --- */
.hover-lift {
    transition: transform 0.22s ease, border-color 0.22s ease, background-color 0.22s ease !important;
}

.hover-lift:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* --- Button Press Scale --- */
.btn {
    transition: all 0.2s ease-in-out, transform 0.1s ease !important;
}

.btn:not(.btn-auth):active {
    transform: scale(0.97);
}

/* --- Nav Underline Hover --- */
.nav-link {
    position: relative;
    padding-bottom: 2px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.6);
    transition: width 0.22s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* --- Input Focus Ring Pulse --- */
@keyframes inputPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.07);
    }

    60% {
        box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.04);
    }

    100% {
        box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.03);
    }
}

.input-dark:focus,
.form-input:focus {
    animation: inputPulse 0.4s ease forwards;
}

/* --- Sidebar Nav Active Indicator --- */
.server-nav-btn {
    position: relative;
    overflow: hidden;
}

.server-nav-btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 2px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 0 2px 2px 0;
    transform: scaleY(0);
    transition: transform 0.2s ease;
    transform-origin: center;
}

.server-nav-btn.active::before {
    transform: scaleY(1);
}

/* --- Spring Modal Entrance --- */
@keyframes modalSpring {
    0% {
        opacity: 0;
        transform: scale(0.92) translateY(8px);
    }

    60% {
        transform: scale(1.015) translateY(-2px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

body.modal-open .modal-content,
body.modal-open #loginModal.active>div {
    animation: modalSpring 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* --- Shimmer skeleton --- */
@keyframes shimmer {
    0% {
        background-position: -400px 0;
    }

    100% {
        background-position: 400px 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, #18181B 25%, #27272A 50%, #18181B 75%);
    background-size: 800px 100%;
    animation: shimmer 1.4s infinite linear;
    border-radius: 0.375rem;
}

/* --- Card hover shimmer border --- */
@keyframes borderGlow {
    0% {
        border-color: rgba(255, 255, 255, 0.04);
    }

    50% {
        border-color: rgba(255, 255, 255, 0.11);
    }

    100% {
        border-color: rgba(255, 255, 255, 0.04);
    }
}

/* --- Smooth & Custom scrollbar --- */
html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #27272A #08080A;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #08080A;
    border-left: 1px solid #27272A;
}

::-webkit-scrollbar-thumb {
    background: #27272A;
    border-radius: 9999px;
    border: 2px solid #08080A;
}

::-webkit-scrollbar-thumb:hover {
    background: #52525B;
}

/* --- Hamburger: only on mobile, never on md+ --- */
@media (min-width: 768px) {
    #server-nav-hamburger {
        display: none !important;
    }
}

/* --- prefers-reduced-motion: disable all animations --- */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .anim-fade-in,
    .anim-stagger>*,
    .anim-hero {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }
}