@keyframes gradient-shift {
    0%,
    100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes neon-pulse {
    0%,
    100% {
        box-shadow:
            0 0 20px rgba(34, 211, 238, 0.3),
            0 0 40px rgba(34, 211, 238, 0.2),
            0 0 60px rgba(34, 211, 238, 0.1);
    }
    50% {
        box-shadow:
            0 0 30px rgba(34, 211, 238, 0.5),
            0 0 60px rgba(34, 211, 238, 0.3),
            0 0 90px rgba(34, 211, 238, 0.2);
    }
}

@keyframes glow-purple {
    0%,
    100% {
        box-shadow:
            0 0 20px rgba(168, 85, 247, 0.3),
            0 0 40px rgba(168, 85, 247, 0.2);
    }
    50% {
        box-shadow:
            0 0 30px rgba(168, 85, 247, 0.5),
            0 0 60px rgba(168, 85, 247, 0.3);
    }
}

body {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.gradient-animate {
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

.neon-glow-cyan {
    animation: neon-pulse 2s ease-in-out infinite;
}

.neon-glow-purple {
    animation: glow-purple 2s ease-in-out infinite;
}

.prob-bar-transition {
    transition: all 0.3s ease-out;
}

.toast {
    transform: translateY(-100px);
    opacity: 0;
    transition: all 0.4s ease;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.cyber-border {
    position: relative;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
}

.cyber-border::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, #06b6d4, #a855f7);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(63, 63, 70, 0.9);
    background: rgba(24, 24, 27, 0.8);
    color: rgb(212, 212, 216);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        background 0.25s ease;
}

.nav-link:hover {
    transform: translateY(-1px);
    border-color: rgba(34, 211, 238, 0.5);
    color: #fff;
}

.nav-link.active {
    border-color: rgba(34, 211, 238, 0.7);
    color: #fff;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(168, 85, 247, 0.22));
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.12);
}

.page-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(63, 63, 70, 0.9);
    padding: 0.5rem 0.9rem;
    background: rgba(24, 24, 27, 0.85);
    color: rgb(212, 212, 216);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.mini-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(82, 82, 91, 0.9);
    background: rgba(39, 39, 42, 0.7);
    color: rgb(244, 244, 245);
    font-size: 0.8rem;
    font-weight: 700;
}

.section-kicker {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgb(103, 232, 249);
}

.rank-row {
    display: grid;
    grid-template-columns: 64px minmax(0, 1.5fr) repeat(3, minmax(0, 0.8fr)) minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
}

.rank-row + .rank-row {
    margin-top: 0.9rem;
}

.rank-number {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    font-weight: 900;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(168, 85, 247, 0.25));
    border: 1px solid rgba(103, 232, 249, 0.25);
}

.hot-take-quote {
    position: relative;
    overflow: hidden;
}

.hot-take-quote::after {
    content: "";
    position: absolute;
    inset: auto -20% -40% auto;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.18), transparent 68%);
    pointer-events: none;
}

@media (max-width: 900px) {
    .rank-row {
        grid-template-columns: 56px minmax(0, 1fr);
    }
}
