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

html,
body {
    margin: 0;
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    background: #050302;
    color: #e9d8cc;
    font-family: monospace;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    caret-color: transparent;
}

body {
    position: relative;
    padding: 32px 0;
}

#bgvid {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
    filter: blur(5px) brightness(0.34) saturate(0.62) sepia(0.2);
    transform: scale(1.08);
}

#bg-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 55%, rgba(255, 228, 200, 0.12), transparent 26%),
        radial-gradient(circle at 50% 50%, rgba(255, 183, 120, 0.08), transparent 48%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4)),
        radial-gradient(circle at center, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.56) 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: 140px;
    height: 140px;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 50;
    display: none;
    opacity: 0.18;
    background: radial-gradient(circle, rgba(255, 205, 166, 0.16), rgba(255, 205, 166, 0.04) 46%, transparent 72%);
}

#audio-toggle {
    position: fixed;
    top: 22px;
    left: 22px;
    z-index: 15;
    width: 42px;
    height: 42px;
    border-radius: 0;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.88);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

#audio-toggle::after {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.12) 34%, rgba(255, 255, 255, 0.02) 58%, transparent 74%);
    filter: blur(10px);
    opacity: 0.95;
}

.speaker-ring {
    display: none;
}

.speaker-icon {
    position: relative;
    z-index: 1;
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
    opacity: 1;
    filter:
        brightness(3.8)
        grayscale(1)
        drop-shadow(0 0 10px rgba(255, 255, 255, 0.85))
        drop-shadow(0 0 22px rgba(255, 255, 255, 0.58))
        drop-shadow(0 0 42px rgba(255, 255, 255, 0.34));
}

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

#intro-text {
    color: rgba(106, 111, 154, 0.88);
    font-size: 32px;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-shadow: 0 0 10px rgba(93, 101, 179, 0.1);
}

#main {
    position: relative;
    min-height: calc(100vh - 64px);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    perspective: 1200px;
    transition: opacity 1s ease;
}

#profile-wrap {
    position: relative;
    width: 684px;
    max-width: calc(100vw - 34px);
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
    transform-style: preserve-3d;
    will-change: transform;
}

#main.is-scrollable {
    align-items: flex-start;
}

.glass-card {
    position: relative;
    background: linear-gradient(180deg, rgba(57, 33, 22, 0.42), rgba(16, 10, 9, 0.32));
    border: 1px solid rgba(85, 95, 173, 0.45);
    border-radius: 28px;
    box-shadow:
        inset 0 1px 0 rgba(255, 233, 214, 0.05),
        0 0 0 1px rgba(59, 70, 136, 0.08),
        0 24px 50px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px) saturate(0.95);
    -webkit-backdrop-filter: blur(18px) saturate(0.95);
}

#hero-card {
    min-height: 338px;
    padding: 38px 42px 34px;
}

#hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 38%, rgba(255, 200, 150, 0.1), transparent 18%),
        linear-gradient(90deg, rgba(102, 122, 255, 0.08), transparent 18%, transparent 82%, rgba(102, 122, 255, 0.08));
}

#profile-views {
    position: absolute;
    top: 18px;
    left: 18px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: rgba(122, 126, 173, 0.9);
    font-size: 12px;
    z-index: 3;
}

.views-eye {
    font-size: 11px;
}

#member-rank {
    position: absolute;
    right: 22px;
    top: 18px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(25, 18, 22, 0.42);
    border: 1px solid rgba(82, 92, 163, 0.45);
    z-index: 3;
}

#member-rank-icon {
    width: 17px;
    height: 17px;
    opacity: 0.9;
}

#member-rank-tooltip {
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(13, 11, 13, 0.9);
    border: 1px solid rgba(92, 103, 184, 0.42);
    font-size: 11px;
    color: rgba(225, 226, 255, 0.92);
    white-space: nowrap;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    pointer-events: none;
}

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

#avatar-shell {
    width: 108px;
    height: 108px;
    margin: 0 auto 16px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(180deg, rgba(255, 236, 217, 0.28), rgba(81, 90, 160, 0.35));
    box-shadow:
        0 0 18px rgba(32, 20, 13, 0.26),
        0 0 26px rgba(85, 98, 189, 0.16);
}

#pfp,
#discord-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

#identity {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#name-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

#username {
    position: relative;
    margin: 0;
    font-size: 42px;
    font-weight: 500;
    line-height: 1;
    color: rgba(107, 113, 166, 0.96);
    text-shadow: 0 0 10px rgba(93, 101, 179, 0.16);
}

#username::before,
#username::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 132%;
    height: 30px;
    pointer-events: none;
    transform: translateX(-50%);
    filter: blur(18px);
    opacity: 0.7;
}

#username::before {
    top: -8px;
    background:
        radial-gradient(circle at 18% 55%, rgba(255, 255, 255, 0.12), transparent 24%),
        radial-gradient(circle at 48% 25%, rgba(255, 255, 255, 0.11), transparent 26%),
        radial-gradient(circle at 77% 52%, rgba(255, 255, 255, 0.13), transparent 23%);
}

#username::after {
    bottom: -10px;
    background:
        radial-gradient(circle at 26% 42%, rgba(101, 113, 199, 0.16), transparent 24%),
        radial-gradient(circle at 62% 60%, rgba(138, 146, 214, 0.14), transparent 26%),
        radial-gradient(circle at 84% 28%, rgba(255, 255, 255, 0.08), transparent 20%);
}

#mini-badges {
    display: inline-flex;
    gap: 8px;
}

.mini-badge {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(32, 22, 28, 0.38);
    border: 1px solid rgba(85, 95, 173, 0.35);
}

.mini-badge img {
    width: 13px;
    height: 13px;
    object-fit: contain;
    opacity: 0.7;
    filter: grayscale(1);
}

.asset-badge {
    position: relative;
}

.mini-badge-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%) translateY(4px);
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(11, 9, 11, 0.92);
    border: 1px solid rgba(88, 98, 181, 0.42);
    color: rgba(234, 238, 255, 0.95);
    font-size: 11px;
    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);
}

#status {
    margin: 12px 0 0;
    font-size: 18px;
    color: rgba(106, 111, 154, 0.88);
    min-height: 1.1em;
}

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

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

#center-orb {
    position: relative;
    margin-top: 22px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(81, 92, 175, 0.48);
    background: rgba(28, 18, 23, 0.36);
    box-shadow:
        0 0 16px rgba(75, 87, 170, 0.16),
        inset 0 0 0 7px rgba(36, 24, 28, 0.28);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

#center-orb img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
    filter: brightness(0.95);
}

#spotify-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    transform: translateX(-50%) translateY(4px);
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(11, 9, 11, 0.92);
    border: 1px solid rgba(88, 98, 181, 0.42);
    color: rgba(234, 238, 255, 0.95);
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

#center-orb:hover #spotify-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

#discord-card {
    min-height: 92px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

#discord-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

#discord-avatar-shell {
    position: relative;
    width: 62px;
    height: 62px;
    flex: 0 0 auto;
}

#discord-avatar-shell::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(255, 211, 191, 0.24), rgba(86, 96, 175, 0.2));
}

#discord-avatar {
    position: relative;
    z-index: 1;
}

#discord-online-dot {
    position: absolute;
    right: 2px;
    bottom: 2px;
    z-index: 2;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e1b000;
    border: 2px solid rgba(39, 23, 22, 0.88);
}

#discord-copy {
    min-width: 0;
    user-select: none;
    -webkit-user-select: none;
}

#discord-copy p {
    margin: 0;
}

#discord-action,
.card-title,
.link-card,
#center-orb,
#audio-toggle,
#discord-copy,
#discord-copy p,
#discord-name,
#discord-handle,
#status,
#username {
    user-select: none;
    -webkit-user-select: none;
    cursor: var(--site-cursor, auto) !important;
}

#discord-name {
    font-size: 18px;
    font-weight: 700;
    color: rgba(234, 220, 212, 0.94);
}

#discord-handle {
    margin-top: 2px;
    font-size: 16px;
    color: rgba(108, 116, 178, 0.92);
}

#discord-bio {
    margin-top: 4px;
    font-size: 14px;
    color: rgba(125, 122, 162, 0.86);
}

#discord-action {
    position: relative;
    flex: 0 0 auto;
    min-width: 186px;
    height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: rgba(139, 146, 207, 0.92);
    border: 1px solid rgba(84, 94, 176, 0.44);
    background: rgba(25, 17, 20, 0.32);
    box-shadow: inset 0 1px 0 rgba(255, 235, 222, 0.04);
}

#discord-action-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 12px);
    transform: translateX(-50%) translateY(4px);
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(11, 9, 11, 0.92);
    border: 1px solid rgba(88, 98, 181, 0.42);
    color: rgba(234, 238, 255, 0.95);
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

#discord-action.show-tooltip #discord-action-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

#link-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link-card {
    min-height: 50px;
    border-radius: 999px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    text-decoration: none;
    color: rgba(121, 129, 186, 0.94);
    border: 1px solid rgba(84, 94, 176, 0.42);
    background: rgba(20, 13, 16, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 233, 220, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: transform 0.16s ease, color 0.16s ease, border-color 0.16s ease;
    padding: 0;
    width: 100%;
    text-align: inherit;
    font: inherit;
    cursor: var(--site-cursor, auto) !important;
}

.link-card span {
    font-size: 18px;
}

.card-title {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 18px;
}

.embed-shell {
    display: none;
    padding: 0 10px 10px;
}

.embed-shell iframe {
    width: 100%;
    height: 352px;
    border: 0;
    border-radius: 22px;
    background: rgba(12, 12, 12, 0.52);
}

.youtube-card.is-open .embed-shell,
.spotify-card.is-open .embed-shell {
    display: block;
}

.youtube-card.is-open,
.spotify-card.is-open {
    border-radius: 30px;
    padding-top: 8px;
}

.youtube-card {
    min-height: 50px;
}

.youtube-card .card-title {
    min-height: 50px;
}

.link-card:hover {
    transform: translateY(-1px);
    color: rgba(181, 187, 238, 0.98);
    border-color: rgba(109, 120, 215, 0.56);
}

.accent {
    color: rgba(121, 129, 186, 0.94);
}

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

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

@media (max-width: 640px) {
    body {
        padding: 18px 0;
    }

    #profile-wrap {
        width: min(100vw - 22px, 684px);
    }

    #hero-card {
        min-height: 290px;
        padding: 30px 24px 24px;
    }

    #discord-card {
        flex-direction: column;
        align-items: stretch;
    }

    #discord-action {
        width: 100%;
        min-width: 0;
    }

}
