html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: #ffffff;
    background:
        radial-gradient(circle at top left, rgba(108, 92, 231, 0.26), transparent 32%),
        radial-gradient(circle at right 20%, rgba(0, 212, 255, 0.2), transparent 34%),
        linear-gradient(180deg, #07090f 0%, #0f1117 42%, #090c13 100%);
    font-family: "Manrope", sans-serif;
    overflow-x: hidden;
}

body.brainrot-ui-theme {
    --brainrot-pointer-x: 50vw;
    --brainrot-pointer-y: 22vh;
}

h1,
h2,
h3,
h4,
h5,
h6,
.brainrot-rail-link,
.brainrot-page-chip,
.brainrot-rail-chip {
    font-family: "Space Grotesk", sans-serif;
}

a {
    color: inherit;
}

.brainrot-theme-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.brainrot-theme-grid {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 110px 110px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95), transparent 88%);
    opacity: 0.22;
}

.brainrot-theme-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--brainrot-pointer-x) var(--brainrot-pointer-y), rgba(0, 212, 255, 0.09), transparent 220px);
}

.brainrot-theme-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(18px);
    opacity: 0.8;
}

.brainrot-theme-orb-a {
    top: 7%;
    left: 5%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.38) 0%, rgba(108, 92, 231, 0) 68%);
    animation: brainrotPulse 11s ease-in-out infinite;
}

.brainrot-theme-orb-b {
    right: 3%;
    top: 18%;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.3) 0%, rgba(0, 212, 255, 0) 66%);
    animation: brainrotPulse 13s ease-in-out infinite reverse;
}

.brainrot-theme-orb-c {
    left: 42%;
    bottom: -120px;
    width: 540px;
    height: 540px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 72%);
    animation: brainrotPulse 16s ease-in-out infinite;
}

.brainrot-theme-stage {
    width: min(1500px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.2rem 0 1rem;
}

.brainrot-theme-shell {
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    gap: 1.35rem;
    align-items: start;
}

.brainrot-theme-rail,
.brainrot-theme-surface,
.brainrot-404-card {
    border-radius: 34px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
        linear-gradient(160deg, rgba(26, 29, 38, 0.9), rgba(16, 20, 30, 0.96));
    backdrop-filter: blur(24px);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.brainrot-theme-rail {
    position: sticky;
    top: 1rem;
    display: grid;
    gap: 1rem;
    padding: 1rem;
}

.brainrot-brand-card,
.brainrot-rail-status {
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.brainrot-brand-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brainrot-brand-link img {
    width: min(100%, 220px);
    height: auto;
}

.brainrot-brand-mark {
    display: inline-grid;
    place-items: center;
    width: 96px;
    height: 96px;
    border-radius: 30px;
    font-size: 1.45rem;
    font-weight: 800;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.35), rgba(0, 212, 255, 0.26));
}

.brainrot-brand-card p,
.brainrot-rail-status p,
.brainrot-page-header p {
    margin: 0;
    color: #a0a4b8;
    line-height: 1.65;
}

.brainrot-rail-nav {
    display: grid;
    gap: 0.72rem;
}

.brainrot-rail-link {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.85rem;
    min-height: 58px;
    padding: 0.88rem 1rem;
    border-radius: 22px;
    text-decoration: none;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.brainrot-rail-link:hover,
.brainrot-rail-link.is-active {
    transform: translateX(4px);
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.28), rgba(0, 212, 255, 0.16));
    border-color: rgba(0, 212, 255, 0.22);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.25), 0 0 18px rgba(0, 212, 255, 0.08);
}

.brainrot-rail-icon {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.5), rgba(0, 212, 255, 0.3));
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.12);
}

.brainrot-rail-icon svg {
    width: 22px;
    height: 22px;
}

.brainrot-rail-chip,
.brainrot-page-chip {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.38rem 0.78rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brainrot-rail-status h2,
.brainrot-page-header h1,
.brainrot-404-card h1 {
    margin: 0;
}

.brainrot-theme-content {
    display: grid;
}

.brainrot-theme-surface {
    padding: 1rem;
}

.brainrot-page-header {
    display: grid;
    gap: 0.8rem;
    padding: 0.5rem 0 1rem;
}

.brainrot-page-headline {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.brainrot-page-pilot {
    display: grid;
    gap: 0.2rem;
    min-width: 220px;
    padding: 0.9rem 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.brainrot-page-pilot-label {
    color: #a0a4b8;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.entry-content > :first-child {
    margin-top: 0;
}

.entry-content > :last-child {
    margin-bottom: 0;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 420ms ease, transform 420ms ease;
}

body.is-ready [data-reveal] {
    opacity: 1;
    transform: translateY(0);
}

.brainrot-page-loader {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    gap: 1rem;
    opacity: 0;
    pointer-events: none;
    background: rgba(7, 9, 15, 0.72);
    backdrop-filter: blur(12px);
    transition: opacity 220ms ease;
}

.brainrot-page-loader.is-active {
    opacity: 1;
    pointer-events: auto;
}

.brainrot-page-loader__orb {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.9), #00d4ff 26%, #6c5ce7 68%, rgba(108, 92, 231, 0));
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.28), 0 0 80px rgba(108, 92, 231, 0.26);
    animation: brainrotLoaderFloat 2.4s ease-in-out infinite;
}

.brainrot-page-loader__copy {
    display: grid;
    gap: 0.35rem;
    text-align: center;
}

.brainrot-page-loader__copy span {
    color: #a0a4b8;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.brainrot-page-loader__copy strong {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.05rem;
}

.brainrot-theme-footer {
    width: min(1500px, calc(100% - 2rem));
    margin: 0 auto 1rem;
}

.brainrot-theme-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1.2rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(22px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.38);
}

.brainrot-theme-footer__support,
.brainrot-theme-footer__socials {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.brainrot-theme-footer__support span {
    color: #a0a4b8;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.brainrot-theme-footer__support a,
.brainrot-theme-footer__socials a {
    text-decoration: none;
}

.brainrot-theme-footer__socials a {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.7rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.brainrot-theme-footer__socials img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.brainrot-theme-stage-404 {
    display: grid;
    place-items: center;
    min-height: calc(100vh - 140px);
}

.brainrot-404-card {
    max-width: 760px;
    padding: 3rem;
    text-align: center;
}

.brainrot-404-card p {
    color: #a0a4b8;
    line-height: 1.7;
}

.brainrot-404-actions {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.brainrot-404-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.85rem 1.2rem;
    border-radius: 18px;
    text-decoration: none;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.brainrot-404-button-primary {
    background: linear-gradient(135deg, #6c5ce7, #00d4ff);
    box-shadow: 0 12px 28px rgba(108, 92, 231, 0.3);
}

@keyframes brainrotPulse {
    0%,
    100% {
        transform: scale(1) translate3d(0, 0, 0);
    }
    50% {
        transform: scale(1.09) translate3d(10px, -14px, 0);
    }
}

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

@media (max-width: 1120px) {
    .brainrot-theme-shell {
        grid-template-columns: 1fr;
    }

    .brainrot-theme-rail {
        position: static;
    }
}

@media (max-width: 820px) {
    .brainrot-page-headline,
    .brainrot-theme-footer__inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 720px) {
    .brainrot-theme-stage,
    .brainrot-theme-footer {
        width: min(100%, calc(100% - 1rem));
    }

    .brainrot-theme-rail,
    .brainrot-theme-surface,
    .brainrot-404-card {
        padding: 0.9rem;
        border-radius: 24px;
    }

    .brainrot-404-card {
        padding: 2rem 1.2rem;
    }
}
