:root {
    --bg: #D1F6FF;
    --bg-deep: #B7ECFA;
    --ink: #083170;
    --ink-soft: #1d4589;
    --card: #ffffff;
    --card-hover: #fbfdff;
    --shadow-lg: 0 10px 30px rgba(8, 49, 112, 0.10);
    --shadow-sm: 0 2px 6px rgba(8, 49, 112, 0.08);
    --shadow-hover-lg: 0 18px 40px rgba(8, 49, 112, 0.16);
    --shadow-hover-sm: 0 3px 10px rgba(8, 49, 112, 0.10);
    --radius: 8px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
    background-attachment: fixed;
    color: var(--ink);
    font-family: 'Nunito Sans', -apple-system, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    position: relative;
}

.confetti {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 520px;
    height: 260px;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 70%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 70%, transparent 100%);
}
.confetti svg {
    width: 100%;
    height: 100%;
    display: block;
}

.page {
    max-width: 420px;
    margin: 0 auto;
    padding: 40px 22px 60px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

.profile {
    text-align: center;
    margin-bottom: 28px;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 9999px;
    object-fit: cover;
    border: 4px solid #ffffff;
    box-shadow: var(--shadow-lg), var(--shadow-sm);
    display: block;
    margin: 0 auto 18px;
    background: #fff;
}

.name {
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 26px;
    margin: 0 0 10px;
    color: var(--ink);
    letter-spacing: -0.01em;
}

.bio {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink-soft);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.section-header {
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 17px;
    color: var(--ink);
    text-align: center;
    margin: 22px 0 2px;
    letter-spacing: 0.01em;
}

.links > .section-header:first-child { margin-top: 8px; }

.link-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--card);
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 16px 18px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg), var(--shadow-sm);
    transition: transform 150ms ease-out, box-shadow 150ms ease-out, background 150ms ease-out;
    text-align: center;
    line-height: 1.35;
    min-height: 64px;
    position: relative;
}

.link-card.has-thumb {
    padding: 8px 64px;
    gap: 0;
    justify-content: center;
}

.link-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
    background: #eef5fb;
}

.link-card.has-thumb .link-thumb {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
}

.link-card.has-thumb .link-title {
    flex: 0 1 auto;
    text-align: center;
    padding: 0;
    min-width: 0;
}

.link-card:hover,
.link-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover-lg), var(--shadow-hover-sm);
    background: var(--card-hover);
    outline: none;
}

.link-card:active {
    transform: translateY(0);
}

.link-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.link-title {
    flex: 1;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 22px;
    margin: 34px 0 18px;
}

.socials a {
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    transition: transform 150ms ease-out, color 150ms ease-out;
}

.socials a:hover,
.socials a:focus-visible {
    transform: scale(1.15);
    color: var(--ink-soft);
    outline: none;
}

.foot {
    text-align: center;
    font-size: 12px;
    color: var(--ink);
    opacity: 0.45;
    margin-top: 8px;
    letter-spacing: 0.02em;
}

@media (max-width: 380px) {
    .page { padding: 32px 16px 48px; }
    .name { font-size: 24px; }
}
