* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#snowCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 3;
    pointer-events: none;
    opacity: 0.7;
}

img,
video,
canvas {
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
    pointer-events: none !important;
    -webkit-user-drag: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    touch-action: none !important;
}

a,
button,
.social-icon,
.music-toggle {
    pointer-events: auto !important;
    cursor: pointer !important;
}

* {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

body {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.card-name,
.card-subtitle,
.intro-text {
    -webkit-user-select: none;
    user-select: none;
}

:root {
    --base: #000000;
    --card: #141418;
    --elevated: #1e1e24;
    --primary: #ffffff;
    --secondary: #a0a0b0;
    --subtle: rgba(255, 255, 255, .05);
    --sans: 'Geist Sans', ui-sans-serif, system-ui, sans-serif;
}

html,
body {
    min-height: 100vh;
    background: var(--base);
    color: var(--primary);
    font-family: var(--sans);
    overflow: hidden;
}

#bgVideo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.4) saturate(0.6) contrast(1.1);
    pointer-events: none;
}

.video-fallback {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: radial-gradient(ellipse at center, #18181e, #0a0a0e);
}

.gradient-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.015), transparent 60%),
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.01), transparent 50%);
}

.aurora {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.aurora-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    will-change: transform;
}

.aurora-blob.a {
    top: -20%;
    left: 20%;
    width: 50vmax;
    height: 50vmax;
    opacity: .0010;
    background: radial-gradient(circle, rgba(200, 200, 220, 0.3), transparent 60%);
    animation: aurora-drift 20s ease-in-out infinite;
}

.aurora-blob.b {
    top: 40%;
    right: -15%;
    width: 45vmax;
    height: 45vmax;
    opacity: .0008;
    background: radial-gradient(circle, rgba(160, 160, 180, 0.2), transparent 60%);
    animation: aurora-drift 24s ease-in-out infinite reverse;
}

.aurora-blob.c {
    bottom: 0;
    left: 30%;
    width: 40vmax;
    height: 40vmax;
    opacity: .0008;
    background: radial-gradient(circle, rgba(120, 120, 140, 0.2), transparent 60%);
    animation: aurora-drift 28s ease-in-out infinite;
}

.aurora-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 80% at 50% 0%, transparent, #0a0a0e 80%);
}

@keyframes aurora-drift {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(3%, -2%, 0) scale(1.06);
    }
}

.noise {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 2;
    opacity: .015;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

.intro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.intro.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(1.05);
}

.intro-text {
    font-family: var(--sans);
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    padding: 1.8rem 3.5rem;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    letter-spacing: 0.08em;
    animation: introPulse 2s ease-in-out infinite;
    user-select: none;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.05);
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.intro-text:hover {
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
    box-shadow: 0 0 60px rgba(255, 255, 255, 0.15);
    text-shadow: 0 0 50px rgba(255, 255, 255, 0.2);
}

@keyframes introPulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
        text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
    }
    50% {
        opacity: 0.8;
        transform: scale(0.98);
        text-shadow: 0 0 60px rgba(255, 255, 255, 0.25);
    }
}

.container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    padding: 2rem;
    margin-top: 0px;
}

.avatar-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
}

.avatar-ring {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--base);
    padding: 3px;
    box-shadow: 0 0 0 2px var(--subtle), 0 8px 32px rgba(0, 0, 0, 0.6);
    position: relative;
    z-index: 2;
}

.avatar-ring img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    background: var(--elevated);
}

.avatar-decoration-wrapper {
    position: absolute;
    top: -7.5%;
    left: -7.5%;
    width: 115%;
    height: 115%;
    z-index: 3;
    pointer-events: none;
    display: none;
}

.avatar-decoration-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.card-name {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 2rem;
    letter-spacing: -0.04em;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.15),
        0 2px 0 rgba(255, 255, 255, 0.08),
        0 3px 4px rgba(0, 0, 0, 0.5),
        0 4px 8px rgba(0, 0, 0, 0.4),
        0 8px 16px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg,
            #c0c0d0 0%,
            #e8e8f0 25%,
            #ffffff 50%,
            #e8e8f0 75%,
            #c0c0d0 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientMove 6s ease-in-out infinite;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.card-subtitle {
    font-size: 1rem;
    font-weight: 400;
    color: #ffffff;
    margin-top: 0.3rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.8),
        0 4px 8px rgba(0, 0, 0, 0.6),
        0 8px 16px rgba(0, 0, 0, 0.4);
    opacity: 1;
}

.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-top: 4rem;
    position: relative;
    z-index: 10;
}

.social-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer !important;
    pointer-events: auto !important;
}

.social-icon svg {
    width: 30px;
    height: 30px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: #ffffff;
    transform: translateY(-4px) scale(1.1);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.social-icon:hover svg {
    transform: scale(1.05);
}

.tooltip {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ffffff;
    padding: 0.4rem 0.9rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
}

.social-icon:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}

.music-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 50;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: auto !important;
}

.music-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    transform: scale(1.08);
}

@media (max-width: 480px) {
    .container {
        margin-top: 20px;
    }
    .avatar-wrapper {
        width: 110px;
        height: 110px;
    }
    .card-name {
        font-size: 1.6rem;
        margin-top: 1.5rem;
    }
    .card-subtitle {
        font-size: 0.8rem;
    }
    .avatar-decoration-wrapper {
        top: -5.5%;
        left: -5.5%;
        width: 111%;
        height: 111%;
    }
    .intro-text {
        font-size: 1.5rem;
        padding: 1.2rem 2rem;
    }
    .social-icons {
        gap: 2rem;
        margin-top: 3rem;
    }
    .social-icon {
        width: 48px;
        height: 48px;
    }
    .social-icon svg {
        width: 26px;
        height: 26px;
    }
    .tooltip {
        font-size: 0.6rem;
        padding: 0.3rem 0.7rem;
    }
    .music-toggle {
        width: 44px;
        height: 44px;
        font-size: 1rem;
        bottom: 20px;
        right: 20px;
    }
}