:root {
    color-scheme: dark;
    --bg: #050b17;
    --gradient-1: #041f4d;
    --gradient-2: #092c6c;
    --gradient-3: #047c9f;
    --text: #f3f6ff;
    --muted: #9db7d0;
    --glass: rgba(8, 17, 34, 0.75);
    --border: rgba(255, 255, 255, 0.12);
    --accent: #38e7ff;
    font-size: 16px;
    font-family: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at 20% 20%, var(--gradient-3), transparent 60%),
        radial-gradient(circle at 80% 0%, var(--gradient-2), transparent 45%),
        linear-gradient(135deg, var(--bg), #02040a);
    color: var(--text);
}

.background-grid {
    position: fixed;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.25;
    pointer-events: none;
    filter: blur(0.5px);
}

.shell {
    width: min(960px, 92vw);
    margin: 3rem auto;
    padding: 2rem;
    border-radius: 32px;
    background: var(--glass);
    border: 1px solid var(--border);
    box-shadow: 0 25px 60px rgba(5, 14, 36, 0.7);
    backdrop-filter: blur(18px);
}

.hero {
    text-align: center;
    margin-bottom: 1.5rem;
}

.network-label {
    display: inline-flex;
    padding: 0.35rem 1.2rem;
    border-radius: 999px;
    border: 1px solid rgba(56, 231, 255, 0.55);
    letter-spacing: 0.35em;
    font-size: 0.78rem;
    color: var(--accent);
}

.profile-card {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.avatar-stack {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    justify-content: center;
    margin: 0 auto;
}

.avatar {
    border-radius: 32px;
    width: 160px;
    height: 160px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
    transition: transform 350ms ease, box-shadow 350ms ease;
}

.avatar-stack:hover .avatar {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.links-panel {
    margin-top: 2rem;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
    gap: 0.375rem;
    justify-items: center;
}

.link-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    border: none;
    background: transparent;
    padding: 0;
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.link-chip:hover,
.link-chip:focus-visible {
    transform: translateY(-4px);
}

.chip-icon {
    width: 68px;
    height: 68px;
    object-fit: contain;
    border-radius: 50%;
    padding: 0.125rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.link-chip:hover .chip-icon,
.link-chip:focus-visible .chip-icon {
    transform: scale(1.08);
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.45);
    border-color: rgba(56, 231, 255, 0.7);
}

@media (max-width: 650px) {
    .shell {
        padding: 1.5rem;
    }

    .avatar {
        width: 120px;
        height: 120px;
    }

    .link-grid {
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    }
}
