/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --ease: cubic-bezier(.4, 0, .2, 1);
}

html { font-size: 16px; }

body {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 48px 20px 60px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;

    /* Soft light background — barely-there lavender blush */
    background-color: #faf9ff;
    background-image:
        radial-gradient(ellipse 80% 60% at 20% -10%, hsla(280, 100%, 95%, .55) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 110%, hsla(330, 90%, 94%, .45) 0%, transparent 60%);
    color: #1a1a2e;
}

/* ── Layout ───────────────────────────────────────────────── */
.page {
    width: 100%;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

/* ── Profile ──────────────────────────────────────────────── */
.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

/* Gradient ring around avatar */
.avatar-ring {
    padding: 3px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c084fc, #f472b6, #818cf8);
    margin-bottom: 6px;
    box-shadow: 0 8px 32px hsla(280, 80%, 70%, .25);
}

.avatar {
    display: block;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
}

.name {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -.03em;
    color: #1a1a2e;
}

.handle {
    font-size: .875rem;
    font-weight: 500;
    color: #9ca3af;
    letter-spacing: .02em;
}

.bio {
    font-size: .9375rem;
    color: #6b7280;
    margin-top: 4px;
}

/* ── Divider ──────────────────────────────────────────────── */
.page::after {
    display: none;
}

/* ── Grid ─────────────────────────────────────────────────── */
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    width: 100%;
}

/* ── Tile (card) ──────────────────────────────────────────── */
.tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 22px 12px 20px;
    border-radius: 20px;
    text-decoration: none;
    color: #1a1a2e;
    background: rgba(255, 255, 255, .75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .9);
    box-shadow:
        0 1px 2px rgba(0,0,0,.04),
        0 4px 16px rgba(140, 100, 220, .07);
    transition:
        transform .22s var(--ease),
        box-shadow .22s var(--ease),
        background .22s var(--ease);
    position: relative;
    overflow: hidden;
}

.tile::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .25s var(--ease);
    border-radius: inherit;
}

.tile:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 2px 4px rgba(0,0,0,.06),
        0 12px 32px rgba(140, 100, 220, .14);
}

.tile:hover::before { opacity: 1; }
.tile:active { transform: translateY(-1px) scale(1.01); }

/* Icon circle */
.tile-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .22s var(--ease), background .22s var(--ease);
}

.tile-icon svg { width: 24px; height: 24px; }

.tile:hover .tile-icon { transform: scale(1.08); }

/* Text */
.tile-name {
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: -.01em;
}

.tile-handle {
    font-size: .75rem;
    color: #9ca3af;
    font-weight: 400;
}

/* ── Per-platform colours ─────────────────────────────────── */

/* YouTube */
#t-youtube .tile-icon   { background: #fff0f0; color: #ff0000; }
#t-youtube:hover        { background: rgba(255,240,240,.9); }
#t-youtube:hover::before { background: linear-gradient(135deg, rgba(255,0,0,.04), transparent); }

/* Instagram */
#t-instagram .tile-icon { background: #fff0f7; color: #e1306c; }
#t-instagram:hover      { background: rgba(255,240,247,.9); }

/* TikTok */
#t-tiktok .tile-icon    { background: #f0f0f0; color: #010101; }
#t-tiktok:hover         { background: rgba(240,240,240,.9); }

/* X / Twitter */
#t-twitter .tile-icon   { background: #f0f0f0; color: #000; }
#t-twitter:hover        { background: rgba(240,240,240,.9); }

/* Facebook */
#t-facebook .tile-icon  { background: #f0f4ff; color: #1877f2; }
#t-facebook:hover       { background: rgba(240,244,255,.9); }

/* Website */
#t-website .tile-icon   { background: linear-gradient(135deg, #f3e8ff, #fce7f3); color: #9333ea; }
#t-website:hover        { background: rgba(243,232,255,.6); }
.tile--web .tile-name   { color: #9333ea; }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
    font-size: .75rem;
    color: #c4b5d6;
    letter-spacing: .06em;
    text-transform: lowercase;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 400px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .tile { padding: 20px 10px 18px; }
    .name { font-size: 1.5rem; }
}
