* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f1f2f7;
    color: #1f1f2a;
}

.page {
    max-width: 640px;
    margin: 0 auto;
    min-height: 100vh;
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.hero {
    height: 190px;
    overflow: hidden;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-bg-fallback {
    background: linear-gradient(135deg, #8bb7ff 0%, #8d8dff 50%, #c495ff 100%);
}

.profile {
    margin-top: -32px;
    padding: 0 24px 8px;
    text-align: center;
}

.avatar-wrap {
    display: flex;
    justify-content: center;
}

.avatar {
    width: 84px;
    height: 84px;
    border-radius: 999px;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

.avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #5f6fff;
    color: white;
    font-weight: 700;
    font-size: 28px;
}

.profile h1 {
    margin: 14px 0 6px;
    font-size: 1.9rem;
    line-height: 1.1;
}

.profile p {
    margin: 0;
    color: #63637a;
}

.content {
    padding: 18px 20px 28px;
}

.content h2 {
    margin: 20px 4px 10px;
    font-size: 1.2rem;
}

.link-card {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    border: 1px solid #ececf2;
    border-radius: 18px;
    padding: 12px 14px;
    margin-bottom: 10px;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.link-card:hover {
    transform: translateY(-1px);
    border-color: #d8d8e7;
    box-shadow: 0 8px 16px rgba(23, 26, 38, 0.08);
}

.icon {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-emoji {
    font-size: 1.15rem;
}

.icon-image {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.link-texts {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.link-title {
    font-weight: 600;
    line-height: 1.2;
}

.link-description {
    color: #737389;
    font-size: .93rem;
    margin-top: 2px;
}

.arrow {
    font-size: 1.4rem;
    color: #2d2d3f;
}

.footer {
    text-align: center;
    color: #6b6b7d;
    padding: 8px 20px 24px;
}

@media (max-width: 480px) {
    .hero {
        height: 150px;
    }

    .profile h1 {
        font-size: 1.55rem;
    }
}
