html,
body,
* {
    cursor: var(--site-cursor, auto) !important;
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
    color: #fff;
    font-family: monospace;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

body {
    position: relative;
}

#bgvid {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
    filter: grayscale(0.24) blur(1px) brightness(0.58);
    transform: scale(1.03);
}

#bg-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0.08), transparent 36%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.24)),
        radial-gradient(circle at center, rgba(0, 0, 0, 0.01), rgba(0, 0, 0, 0.34) 78%);
}

#particles {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: none;
    pointer-events: none;
    opacity: 0.9;
}

#cursor-light {
    position: fixed;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 50;
    display: none;
    opacity: 0.18;
    transition: opacity 0.18s ease;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02) 46%, transparent 72%);
}

#intro {
    position: fixed;
    inset: 0;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 100;
    transition: opacity 0.8s ease;
}

#heart {
    font-size: 28px;
    line-height: 1;
    opacity: 0.95;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.14);
}

#enter {
    margin-top: 14px;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: lowercase;
    color: rgba(255, 255, 255, 0.42);
}

#main {
    position: fixed;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    perspective: 1200px;
    transition: opacity 1.1s ease;
}

#profile-wrap {
    position: relative;
    width: 600px;
    max-width: calc(100vw - 36px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 18px 0 18px;
    overflow: visible;
    isolation: isolate;
    transform-style: preserve-3d;
    will-change: transform;
    transition: filter 0.16s ease-out;
    filter:
        drop-shadow(0 0 7px rgba(255, 255, 255, 0.06))
        drop-shadow(0 0 16px rgba(255, 255, 255, 0.03));
    zoom: 1;
}

#profile-wrap::before {
    content: "";
    position: absolute;
    inset: -14px -18px -18px;
    z-index: -1;
    border-radius: 34px;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 26%, rgba(255, 255, 255, 0.1), transparent 28%),
        radial-gradient(circle at 50% 72%, rgba(255, 255, 255, 0.06), transparent 38%);
    filter: blur(16px);
    opacity: 0.28;
    transition: opacity 0.14s ease;
}

#profile-wrap:hover {
    filter:
        drop-shadow(0 0 7px rgba(255, 255, 255, 0.06))
        drop-shadow(0 0 16px rgba(255, 255, 255, 0.03));
    zoom: 1.03;
}

#profile-wrap:hover::before {
    opacity: 0.28;
}

#rain-layer {
    position: fixed;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    opacity: 0.22;
    background-image:
        linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 72%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 68%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.09), transparent 70%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 65%);
    background-size: 2px 170px, 1px 210px, 1px 230px, 2px 190px;
    background-position: 18% -30px, 36% -90px, 64% -65px, 81% -120px;
    background-repeat: repeat-y;
    animation: rain-fall 9s linear infinite;
}

@keyframes rain-fall {
    from {
        transform: translateY(-120px);
    }

    to {
        transform: translateY(120px);
    }
}

#eye-banner {
    position: relative;
    width: 500px;
    height: 166px;
    border-radius: 6px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02) 22%, rgba(0, 0, 0, 0.04) 58%, rgba(0, 0, 0, 0.16)),
        url("./assets/banner.png") center / cover no-repeat;
    backdrop-filter: blur(10px) saturate(0.95);
    -webkit-backdrop-filter: blur(10px) saturate(0.95);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 26px rgba(255, 255, 255, 0.05);
}

#eye-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.12)),
        linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.04) 18%, transparent 36%, transparent 64%, rgba(255, 255, 255, 0.04) 82%, transparent 100%);
}

#member-rank {
    position: absolute;
    top: 38px;
    right: 54px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.025);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#member-rank-icon {
    width: 17px;
    height: 17px;
    object-fit: contain;
    display: block;
    opacity: 0.92;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.1));
}

#member-rank-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 12px);
    transform: translateX(-50%) translateY(4px);
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(14, 14, 14, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.94);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

#member-rank:hover #member-rank-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

#profile-views {
    position: absolute;
    top: 38px;
    left: 54px;
    z-index: 4;
    padding: 5px 9px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(14, 14, 14, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.92);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1;
    white-space: nowrap;
}

.views-eye {
    font-size: 10px;
    opacity: 0.82;
}

#avatar-shell {
    position: relative;
    margin-top: -52px;
    z-index: 2;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    padding: 3px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.05)),
        rgba(0, 0, 0, 0.65);
    box-shadow:
        0 0 14px rgba(255, 255, 255, 0.2),
        0 12px 24px rgba(0, 0, 0, 0.26);
}

#pfp {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    filter: saturate(0.82) contrast(1.04);
}

#silhouette {
    position: absolute;
    top: 134px;
    left: 50%;
    width: 390px;
    height: 660px;
    transform: translateX(-50%);
    background:
        radial-gradient(circle at 50% 14%, rgba(255, 255, 255, 0.12), transparent 18%),
        radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.07), transparent 20%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04) 28%, rgba(0, 0, 0, 0.08) 56%, rgba(0, 0, 0, 0.18)),
        rgba(255, 255, 255, 0.04);
    opacity: 0.24;
    filter: grayscale(1) blur(0.8px) contrast(1.04);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.92), transparent 96%);
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.92), transparent 96%);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 180px 180px 120px 120px / 220px 220px 90px 90px;
    pointer-events: none;
}

#identity {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 12px;
    text-align: center;
}

#username {
    margin: 0;
    font-size: 48px;
    line-height: 1;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.98);
    text-shadow:
        0 0 4px rgba(255, 255, 255, 0.08),
        0 0 8px rgba(255, 255, 255, 0.02);
    min-height: 1em;
    display: inline-block;
}

#username::after {
    content: "";
    display: inline-block;
    width: 2px;
    height: 0.9em;
    margin-left: 6px;
    vertical-align: -0.08em;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.18);
    animation: blink-caret 0.9s step-end infinite;
}

#username.typing-complete::after {
    opacity: 0;
    animation: none;
}

#username.typewriter-finish {
    animation: username-finish 0.7s ease;
}

#mini-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: -2px;
}

.mini-badge {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    font-size: 10px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.06);
}

.asset-badge {
    position: relative;
    width: 22px;
    height: 22px;
    padding: 0;
    background: rgba(255, 255, 255, 0.08);
}

.asset-badge img {
    width: 13px;
    height: 13px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.1));
}

.mini-badge-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%) translateY(4px);
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(14, 14, 14, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.94);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.asset-badge:hover .mini-badge-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

#tag-row {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    margin-top: 2px;
}

.identity-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(9, 9, 9, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 8px 18px rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.88);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.small-pill {
    min-width: 26px;
    padding: 0 8px;
}

#profile-link {
    color: rgba(255, 255, 255, 0.96);
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    margin-top: 6px;
    text-shadow:
        0 0 4px rgba(255, 255, 255, 0.09),
        0 0 8px rgba(255, 255, 255, 0.03);
}

#status,
#location {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.82);
}

#status {
    margin-top: 4px;
    max-width: 420px;
    line-height: 1.5;
    font-style: italic;
}

#status::after {
    content: "";
    display: inline-block;
    width: 2px;
    height: 0.95em;
    margin-left: 6px;
    vertical-align: -0.08em;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.14);
    animation: blink-caret 0.9s step-end infinite;
}

#status.typing-complete::after {
    opacity: 0;
    animation: none;
}

#location {
    position: relative;
    padding-left: 14px;
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.78);
}

#location::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: rgba(255, 255, 255, 0.72);
}

#social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
}

#social-icons a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

#social-icons img {
    width: 30px;
    height: 30px;
    opacity: 0.95;
    filter:
        grayscale(1)
        brightness(2)
        drop-shadow(0 0 6px rgba(255, 255, 255, 0.18));
    transition: transform 0.16s ease, opacity 0.16s ease, filter 0.16s ease;
}

#social-icons img:hover {
    opacity: 1;
    transform: translateY(-1px);
    filter:
        grayscale(1)
        brightness(2.2)
        drop-shadow(0 0 10px rgba(255, 255, 255, 0.26));
}

@keyframes blink-caret {
    0%,
    45% {
        opacity: 1;
    }

    46%,
    100% {
        opacity: 0;
    }
}

@keyframes username-finish {
    0%,
    100% {
        transform: translateX(0);
        opacity: 1;
    }

    10%,
    30%,
    50%,
    70% {
        opacity: 0.55;
    }

    20%,
    60% {
        transform: translateX(-1px);
        opacity: 1;
    }

    40%,
    80% {
        transform: translateX(1px);
        opacity: 0.82;
    }
}

#discord-copy-tooltip,
#roblox-redirect-tooltip,
#namemc-redirect-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 12px);
    transform: translateX(-50%) translateY(4px);
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(14, 14, 14, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.94);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

#discord-copy.show-tooltip #discord-copy-tooltip,
#roblox-link.show-tooltip #roblox-redirect-tooltip,
#namemc-link.show-tooltip #namemc-redirect-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 560px) {
    #profile-wrap {
        width: min(100vw - 20px, 600px);
        padding-top: 18px;
    }

    #profile-views {
        top: 26px;
        left: 26px;
    }

    #member-rank {
        top: 26px;
        right: 26px;
    }

    #eye-banner,
    #eye-banner {
        width: 100%;
        height: 136px;
    }

    #silhouette {
        width: 310px;
        height: 520px;
    }

}
