:root {
    color-scheme: dark;
    --page: #100e14;
    --surface: #1a171f;
    --line: rgba(255, 255, 255, .09);
    --text: #f7f5f9;
    --muted: #aaa3b1;
    --focus: #e6c46a;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; background: var(--page); }
body { margin: 0; }
a, button { color: inherit; font: inherit; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { text-decoration: none; }
svg { display: block; flex-shrink: 0; }

.links-page {
    min-height: 100svh;
    color: var(--text);
    background:
        radial-gradient(ellipse at 25% 0, rgba(128, 60, 187, .13), transparent 45%),
        radial-gradient(ellipse at 90% 70%, rgba(216, 165, 58, .035), transparent 45%),
        var(--page);
}

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.links-shell {
    position: relative;
    width: min(100%, 500px);
    min-height: 100svh;
    margin-inline: auto;
    padding: 52px 24px 24px;
    padding-bottom: max(24px, env(safe-area-inset-bottom));
}

.share-button {
    position: absolute;
    top: 24px;
    inset-inline-end: 24px;
    display: grid;
    width: 40px;
    height: 40px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, .035);
    color: #c7c0ce;
    transition: background .18s, color .18s;
}

.share-button svg { width: 17px; height: 17px; }
.share-button:hover { background: #29232f; color: white; }

.profile-header { display: flex; flex-direction: column; align-items: center; text-align: center; }
.logo-stage {
    display: grid;
    width: 120px;
    height: 120px;
    place-items: center;
    border: 1px solid rgba(197, 157, 69, .18);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(152, 71, 212, .09), transparent 70%);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .18);
}
.logo-art { display: block; width: 112px; height: 112px; object-fit: contain; }

.social-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 22px 0 26px;
}
.social-link {
    position: relative;
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, .035);
    color: #d2cbd9;
    transition: color .18s, border-color .18s, background .18s, transform .18s;
}
.social-link svg { width: 21px; height: 21px; }
.social-link:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: #211c28;
    transform: translateY(-2px);
}

.profile-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 9px;
    color: #bcb4c6;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.5;
}
.profile-eyebrow span { width: 5px; height: 5px; border-radius: 50%; background: #bb86e4; }
.profile-header h1 { margin: 0; font-size: 36px; font-weight: 750; line-height: 1.35; }
.profile-bio { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.brand-signal { display: flex; width: 32px; height: 2px; margin-top: 22px; overflow: hidden; border-radius: 2px; }
.brand-signal span:first-child { width: 60%; background: #9747d5; }
.brand-signal span:last-child { flex: 1; background: #e2ba58; }

.links-section { margin-top: 26px; }
.link-list { display: grid; gap: 12px; }
.link-item {
    position: relative;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 14px;
    min-height: 82px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(110deg, rgba(255, 255, 255, .018), rgba(255, 255, 255, .04));
    text-align: start;
    transition: border-color .18s, background .18s, transform .18s;
}
.link-item:hover { border-color: #54445f; background: #231d2b; transform: translateY(-2px); }
.link-item:active { transform: translateY(0); }
.link-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 12px;
    background: rgba(255, 255, 255, .035);
    color: var(--accent);
}
.link-icon svg { width: 25px; height: 25px; }
.link-copy { min-width: 0; }
.link-copy strong { display: block; font-size: 16px; font-weight: 650; line-height: 1.4; }
.link-copy > span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.link-action { color: #847a90; }
.link-action svg { width: 18px; height: 18px; }

.page-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
    color: #77707f;
    font-size: 11px;
    line-height: 1.6;
}
.page-footer > span:nth-child(2) { width: 3px; height: 3px; border-radius: 50%; background: #65596e; }

[data-tooltip]::after {
    position: absolute;
    z-index: 5;
    top: calc(100% + 8px);
    left: 50%;
    width: max-content;
    max-width: 180px;
    padding: 6px 9px;
    border: 1px solid #3d3247;
    border-radius: 7px;
    background: #28212f;
    color: var(--text);
    font-size: 11px;
    line-height: 1.5;
    content: attr(data-tooltip);
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%);
    transition: opacity .15s;
}
[data-tooltip]:hover::after, [data-tooltip]:focus-visible::after { opacity: 1; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }

.toast {
    position: fixed;
    z-index: 10;
    bottom: max(24px, env(safe-area-inset-bottom));
    left: 50%;
    display: flex;
    align-items: center;
    gap: 8px;
    width: max-content;
    max-width: calc(100% - 32px);
    padding: 12px 16px;
    border: 1px solid #45394f;
    border-radius: 12px;
    background: #28212f;
    box-shadow: 0 8px 30px #0006;
    font-size: 13px;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 12px);
    transition: opacity .2s, transform .2s;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast svg { width: 17px; height: 17px; color: #70d6a2; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 560px) {
    .links-shell { padding: 38px 20px 24px; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
    .share-button { top: 18px; inset-inline-end: 20px; width: 36px; height: 36px; }
    .logo-stage { width: 112px; height: 112px; }
    .logo-art { width: 104px; height: 104px; }
    .social-links { margin-top: 20px; margin-bottom: 22px; }
    .profile-header h1 { font-size: 32px; }
    .links-section { margin-top: 24px; }
    .link-item { min-height: 78px; padding: 14px; }
}
@media (max-width: 360px) {
    .links-shell { padding-inline: 16px; }
    .social-links { gap: 10px; }
    .social-link { width: 44px; height: 44px; flex-basis: 44px; }
    .link-item { gap: 10px; padding: 12px; }
    .link-copy strong { font-size: 15px; }
    .link-copy > span { font-size: 11px; }
    .profile-bio { font-size: 13px; }
}
@media (hover: none) { [data-tooltip]::after { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
