@import url('https://fonts.googleapis.com/css2?family=Bowlby+One+SC&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
    --blue: #1557ed;
    --purple: #312582;
    --orange: #ff7800;
    --green: #3daf35;
    --yellow: #ffb916;
    --ink: #17152a;
    --paper: #fffdf8;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--purple);
    color: var(--ink);
    font-family: 'DM Sans', sans-serif;
    overflow-x: hidden;
}

.pattern {
    position: fixed;
    inset: 0;
    opacity: .14;
    background-image: linear-gradient(30deg, transparent 48%, #5e52ba 49%, #5e52ba 51%, transparent 52%), linear-gradient(150deg, transparent 48%, #5e52ba 49%, #5e52ba 51%, transparent 52%);
    background-size: 76px 76px;
    pointer-events: none;
}

.page-shell {
    width: min(100% - 32px, 520px);
    margin: 0 auto;
    padding: 42px 0 28px;
    position: relative;
}

.profile {
    position: relative;
    text-align: center;
    color: white;
}

.share-button {
    position: absolute;
    right: 0;
    top: 0;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: white;
    font-size: 21px;
    cursor: pointer;
    transition: .2s ease;
}

.share-button:hover {
    background: white;
    color: var(--purple);
    transform: rotate(8deg);
}

.avatar-frame {
    width: 152px;
    height: 152px;
    padding: 6px;
    margin: 0 auto 15px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 14px 30px rgba(17, 8, 69, .28);
}

.avatar-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.handle {
    margin: 0 0 10px;
    color: #b7ddff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .04em;
}

h1 {
    margin: 0;
    font-family: 'Bowlby One SC', sans-serif;
    font-size: clamp(24px, 7vw, 38px);
    line-height: 1.02;
    letter-spacing: .01em;
}

h1 span {
    color: var(--yellow);
}

.bio {
    margin: 14px 0 20px;
    font-size: 16px;
    line-height: 1.42;
    color: #fff;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 11px;
    margin-bottom: 28px;
}

.socials a {
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 50%;
    color: white;
    font-size: 19px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s, background .2s;
}

.socials a:hover {
    background: var(--orange);
    border-color: var(--orange);
    transform: translateY(-3px);
}

.links {
    display: grid;
    gap: 12px;
}

.link-card {
    min-height: 76px;
    display: grid;
    grid-template-columns: 44px 1fr 24px;
    align-items: center;
    gap: 13px;
    padding: 13px 18px 13px 14px;
    border: 2px solid transparent;
    border-radius: 14px;
    background: var(--paper);
    color: var(--ink);
    text-decoration: none;
    box-shadow: 0 8px 0 rgba(13, 8, 53, .16);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.link-card:hover {
    transform: translateY(-3px) translateX(2px);
    box-shadow: 0 11px 0 rgba(13, 8, 53, .16);
    border-color: var(--yellow);
}

.link-card.primary {
    background: var(--orange);
    color: white;
    border-color: var(--yellow);
    box-shadow: 0 8px 0 #b54d00;
}

.link-card.primary:hover {
    border-color: white;
}

.link-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--purple);
    color: var(--yellow);
    font-size: 22px;
    font-weight: 700;
}

.link-card.primary .link-icon {
    background: var(--yellow);
    color: var(--purple);
}

.link-icon.youtube {
    background: #ffebe5;
    color: #e33119;
}

.link-icon.instagram {
    background: #f6e8ff;
    color: #ad36b7;
}

.link-icon.tiktok {
    background: #e3f7f3;
    color: #111;
}

.link-icon.facebook {
    background: #e6eeff;
    color: #1557ed;
}

.link-card strong,
.link-card small {
    display: block;
}

.link-card strong {
    font-size: 15px;
    line-height: 1.15;
}

.link-card small {
    margin-top: 4px;
    color: #716d7d;
    font-size: 12px;
}

.primary small {
    color: rgba(255, 255, 255, .88);
}

.arrow {
    color: var(--purple);
    font-size: 24px;
    font-weight: 700;
}

.primary .arrow {
    color: white;
}

.campaign-note {
    display: flex;
    gap: 16px;
    align-items: center;
    margin: 28px 0 25px;
    padding: 16px 18px;
    border-left: 5px solid var(--yellow);
    background: rgba(255, 255, 255, .12);
    color: white;
}

.note-number {
    color: var(--yellow);
    font-family: 'Bowlby One SC', sans-serif;
    font-size: 20px;
}

.campaign-note p {
    margin: 0;
    font-size: 13px;
    line-height: 1.35;
}

.campaign-note b {
    color: white;
}

.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .2);
    color: #b7b2dc;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.footer img {
    width: 150px;
    height: auto;
    max-height: 34px;
    object-fit: contain;
    object-position: left center;
    mix-blend-mode: screen;
}

.reveal {
    animation: rise .55s both;
}

.links .reveal:nth-child(2) {
    animation-delay: .08s;
}

.links .reveal:nth-child(3) {
    animation-delay: .14s;
}

.links .reveal:nth-child(4) {
    animation-delay: .2s;
}

.links .reveal:nth-child(5) {
    animation-delay: .26s;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 22px;
    padding: 11px 17px;
    border-radius: 99px;
    background: var(--yellow);
    color: var(--purple);
    font-size: 13px;
    font-weight: 700;
    opacity: 0;
    transform: translate(-50%, 15px);
    transition: .25s ease;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

@media (max-width: 420px) {
    .page-shell {
        width: min(100% - 22px, 520px);
        padding-top: 30px;
    }

    .avatar-frame {
        width: 136px;
        height: 136px;
    }

    .link-card {
        padding-right: 13px;
    }

    .link-card small {
        font-size: 11px;
    }

    .campaign-note {
        gap: 10px;
        padding: 14px 12px;
    }

    .note-number {
        font-size: 17px;
    }
}