* {
    box-sizing: border-box;
}

html,
body {
    overflow-x: clip;
}

body {
    min-height: 100vh;
    background: var(--bg);
    color: #ffffff;
    font-family:
        system-ui,
        -apple-system,
        "Segoe UI",
        sans-serif;
    -webkit-font-smoothing: antialiased;
}

header.neon-head {
    position: relative;
    background: linear-gradient(135deg, #db2777 0%, #7e22ce 55%, #3730a3 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.neon-glow {
    position: absolute;
    inset: 0;
    opacity: 0.12;
    background: radial-gradient(ellipse at top right, #facc15, transparent 60%);
    pointer-events: none;
}
.neon-live {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(74, 222, 128, 0.4);
    border-radius: 999px;
    padding: 0.25rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #86efac;
}
.neon-live-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #4ade80;
    animation: neon-pulse 1s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes neon-pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.35;
    }
}

.sticky-safe {
    position: sticky;
    z-index: 40;
}
.neon-bar {
    background: rgba(17, 24, 39, 0.85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.pill {
    flex: 0 0 auto;
    white-space: nowrap;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--c, #ffffff);
    background: color-mix(in srgb, var(--c, #ffffff) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--c, #ffffff) 40%, transparent);
    border-radius: 999px;
    padding: 0.35rem 1rem;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}
.pill:hover {
    transform: translateY(-1px);
}
.pill .pill-ico {
    opacity: 1;
}
.pill .pill-txt {
    opacity: 0.6;
    transition: opacity 0.18s ease;
}
.pill:hover .pill-txt,
.pill.is-active .pill-txt {
    opacity: 1;
}
.pill.is-active {
    transform: translateY(-1px);
    box-shadow:
        inset 0 0 0 2px currentColor,
        0 4px 14px rgba(0, 0, 0, 0.45);
}

.cat-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}
.cat-coin {
    flex: 0 0 auto;
    font-size: 1.75rem;
    line-height: 1;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}
.cat-eyebrow {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}
.cat-title {
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.05;
    color: var(--c, #ffffff);
    text-shadow: 0 0 18px color-mix(in srgb, var(--c, #ffffff) 55%, transparent);
}
.cat-rule {
    flex: 1 1 40px;
    min-width: 24px;
    height: 1px;
    background: color-mix(in srgb, var(--c, #ffffff) 35%, transparent);
}
.cat-tag {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--c, #ffffff);
    background: color-mix(in srgb, var(--c, #ffffff) 18%, transparent);
    border: 1px solid color-mix(in srgb, var(--c, #ffffff) 32%, transparent);
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
}

.neon-card {
    position: relative;
    display: block;
    background: linear-gradient(135deg, color-mix(in srgb, var(--c, #ffffff) 18%, transparent), transparent 85%);
    border: 1px solid color-mix(in srgb, var(--c, #ffffff) 30%, transparent);
    border-radius: 1rem;
    padding: 1rem;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}
.neon-card:hover,
.neon-card:focus-visible {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--c, #ffffff) 55%, transparent);
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.45),
        0 0 22px color-mix(in srgb, var(--c, #ffffff) 22%, transparent);
    outline: none;
}
.ico {
    font-size: 1.5rem;
    line-height: 1;
    margin-bottom: 0.5rem;
}
.card-title {
    font-weight: 700;
    color: #ffffff;
    transition: color 0.15s ease;
}
.neon-card:hover .card-title {
    color: var(--c, #ffffff);
}
.card-desc {
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 0.25rem;
    line-height: 1.35;
}
.neon-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0a0a12;
    background: var(--c, #ffffff);
    border-radius: 999px;
    padding: 0.1rem 0.5rem;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--c, #ffffff) 45%, transparent);
}

#toTop {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 60;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    color: #ffffff;
    background: linear-gradient(135deg, #db2777, #7e22ce);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.2s ease;
}
#toTop.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
#toTop:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(219, 39, 119, 0.45);
}

footer.neon-foot {
    background: var(--panel);
    border-top: 1px solid var(--line);
}
.neon-foot-title {
    font-weight: 900;
    font-size: 1.25rem;
    color: #ffffff;
}
.neon-foot-tag {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 0.75rem;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .pill,
    .pill .pill-txt,
    .neon-card,
    #toTop,
    .neon-live-dot {
        transition: none;
        animation: none;
    }
    html {
        scroll-behavior: auto;
    }
}
