:root {
    --accent: #ffffff;
    --accent-2: #ffffff;
    --text: #ffffff;
    --muted: rgba(255, 255, 255, 0.65);
    --bg-overlay: 0.35;
    --card-opacity: 0.75;
    --pill-bg: rgba(0, 0, 0, 0.35);
    --pill-border: rgba(255, 255, 255, 0.18);
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    background: #000;
    font-family: 'Poppins', system-ui, sans-serif;
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

#jsi-flying-fish-container {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: #050608;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.bg-video.hidden {
    display: none;
}

#jsi-flying-fish-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, var(--bg-overlay));
    pointer-events: none;
    z-index: 1;
}

.profile {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    position: relative;
    z-index: 1;
}

.profile-body {
    width: 100%;
    max-width: 560px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.avatar-column {
    margin-right: -10px;
}

.profile-left {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.name {
    margin: 0;
    padding-left: 2px;
    font-size: clamp(1.8rem, 3.6vw, 2.4rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.01em;
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.name-accent {
    opacity: 0.7;
    font-weight: 500;
}

.socials-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    width: fit-content;
    max-width: 100%;
    margin-top: 4px;
    margin-left: -6px;
}

.socials-pill:empty {
    display: none;
}

.social-item {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    background: transparent;
    border: none;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.05rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    transition: transform 0.2s ease, color 0.2s ease, filter 0.2s ease;
}

.social-item:hover {
    color: var(--text);
    transform: translateY(-2px) scale(1.08);
    filter: drop-shadow(0 4px 12px rgba(255, 255, 255, 0.3));
}

.location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--muted);
    letter-spacing: 0.01em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
    margin: 0;
    padding-left: 2px;
}

.location i {
    font-size: 0.75rem;
    width: 12px;
    text-align: center;
}

.location:has(#locationText:empty) {
    display: none;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 300;
    color: var(--muted);
    letter-spacing: 0.06em;
    text-transform: lowercase;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.tag:has(#tagText:empty) {
    display: none;
}

.role {
    margin: 0;
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 400;
    letter-spacing: 0.02em;
}

.role:empty {
    display: none;
}

.greeting {
    margin: 6px 0 0;
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 300;
    line-height: 1.55;
    max-width: 460px;
}

.greeting:empty {
    display: none;
}

.avatar-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.avatar-orb {
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.avatar-img,
.avatar-fallback {
    overflow: hidden;
}

.view-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    white-space: nowrap;
    align-self: center;
    transform: translateX(24px);
}

.view-chip.hidden {
    display: none;
}

#adt-blocker {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 20px;
}

#adt-blocker.show {
    display: flex;
}

#adt-blocker .adt-inner {
    max-width: 400px;
}

#adt-blocker i {
    font-size: 3rem;
    color: #ff6b6b;
    margin-bottom: 16px;
    display: block;
}

#adt-blocker h2 {
    margin: 0 0 8px;
    font-size: 1.4rem;
    font-weight: 600;
}

#adt-blocker p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.view-chip i {
    font-size: 0.82rem;
    opacity: 0.9;
}

.avatar-orb.hidden {
    display: none;
}

.avatar-img,
.avatar-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    z-index: 2;
}

.avatar-img {
    object-fit: cover;
    object-position: center;
    display: block;
    background: #0a0a0a;
}

.avatar-img.broken {
    display: none;
}

.avatar-fallback {
    display: none;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    color: #fff;
    font-size: 2.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    user-select: none;
    z-index: 1;
}

.avatar-fallback.show {
    display: flex;
}

@media (max-width: 620px) {
    .profile {
        padding: 30px 16px;
    }

    .profile-body {
        gap: 18px;
    }

    .avatar-column {
        margin-right: 0;
    }

    .name {
        font-size: clamp(1.6rem, 8vw, 2.2rem);
    }

    .avatar-orb {
        width: 140px;
        height: 140px;
    }

    .avatar-column {
        gap: 10px;
    }

    .view-chip {
        font-size: 0.78rem;
        padding: 5px 12px;
        transform: translateX(18px);
    }

    .social-item {
        width: 38px;
        height: 38px;
        font-size: 1.15rem;
    }

    .socials-pill {
        gap: 8px;
    }

    .avatar-fallback {
        font-size: 1.8rem;
    }
}

@media (max-width: 380px) {
    .avatar-orb {
        width: 120px;
        height: 120px;
    }

    .name {
        font-size: 1.4rem;
    }
}
