:root {
    --background: #000000;
    --card-bg: rgba(255, 255, 255, 0.04);
    --text: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --accent: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--background);
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-x: hidden;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(151, 75, 250, 0.185), transparent 80%);
    pointer-events: none;
    z-index: -1;
}

main {
    width: 100%;
    max-width: 600px;
    margin: 20px;
    perspective: 1000px;
}

.card {
    background: var(--card-bg);
    border-radius: 24px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform-style: preserve-3d;
    transform: translateZ(0);
    transition: transform 0.3s ease;
}

.card-content {
    padding: 32px;
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.avatar {
    width: 88px;
    border-radius: 50%;
    border: 2px solid #ffffff;
}

.profile-info h1 {
    font-size: 26px;
    margin-bottom: 4px;
}

.badges {
    display: flex;
    gap: 6px;
}

.badges img {
    width: 30px;
}

.status-container {
    position: absolute;
    bottom: -4px;
    right: -4px;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #ffffff;
    margin-bottom: 0;
}

.status-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgb(0, 0, 0);
}

#status-text {
    color: var(--text-secondary);
    font-size: 18px;
    display: block;
    margin-top: 4px;
}

.avatar-container {
    position: relative;
    width: 80px;
    height: 80px;
}

.activity-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.075);
    padding: 12px;
    border-radius: 16px;
}

.activity-image {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    transition: transform 0.2s ease;
}

.activity-image:hover {
    transform: scale(1.25);
}

.bio {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.links {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.075);
    border-radius: 16px;
    transition: all 0.2s ease;
}

.link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.247);
    transform: translateY(-2px);
}

#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease-out;
    flex-direction: column;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-top: 5px solid var(--accent);
    border-radius: 50%;
    animation: spin 2s linear infinite;
    margin-bottom: 15px;
}

.loading-text {
    color: var(--text);
    font-size: 16px;
    letter-spacing: 2px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#snowfall-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    color: var(--text);
    font-size: 20px;
    line-height: 1;
    pointer-events: none;
    z-index: 1000;
    user-select: none;
}

@keyframes fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0.3;
    }
}

@supports (-webkit-overflow-scrolling: touch) {
  body {
    min-height: -webkit-fill-available;
  }
  
  main {
    width: 100%;
    max-width: 90vw;
  }
}
