* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    height: 100%;
    overflow-x: hidden;
    position: relative;
    background-image: url('assets/fundo-mobile.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.6));
    z-index: 0;
    pointer-events: none;
}

.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    padding: 60px 24px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: max(60px, env(safe-area-inset-top) + 20px);
    padding-bottom: max(40px, env(safe-area-inset-bottom) + 20px);
}

.profile-header {
    text-align: center;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-logo {
    width: 80px;
    height: 80px;
    border-radius: 999px;
    object-fit: cover;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.profile-handle {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

.links-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.link-card {
    display: flex;
    align-items: center;
    background-color: #fff;
    color: #333;
    text-decoration: none;
    height: 52px;
    border-radius: 12px;
    padding: 0 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.link-icon-area {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.link-icon {
    width: 32px;
    height: 32px;
    display: block;
}

.link-text {
    flex-grow: 1;
    text-align: center;
    font-weight: 500;
    margin-right: 54px;
    font-size: 1rem;
}

.link-card:active {
    transform: scale(0.98);
}

.link-card:focus-visible {
    outline: 3px solid #ffcc00;
    outline-offset: 2px;
}

@media (min-width: 768px) {
    body {
        background-image: url('assets/fundo-desktop.png');
    }

    .container {
        max-width: 520px;
        padding-top: 80px;
    }

    .profile-logo {
        width: 100px;
        height: 100px;
    }

    .profile-handle {
        font-size: 1.25rem;
    }

    .link-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
        cursor: pointer;
    }
}