:root {
    --bg:#0f172a;
    --card:#020617;
    --text:#e5e7eb;
    --muted:#94a3b8;
    --accent:#38bdf8;
}

.light {
    --bg:#f8fafc;
    --card:#ffffff;
    --text:#0f172a;
    --muted:#475569;
}

* {
    box-sizing:border-box;
    font-family:system-ui,sans-serif;
}

body {
    margin:0;
    min-height:100vh;
    background:var(--bg);
    color:var(--text);
    display:flex;
    justify-content:center;
    align-items:center;
}

.container {
    max-width:440px;
    width:100%;
    padding:20px;
    text-align:center;
}

.avatar {
    width:110px;
    height:110px;
    border-radius:50%;
    border:3px solid var(--accent);
    margin:10px 0 12px;
    object-fit:cover;
}

.links a {
    display:flex;
    align-items:center;
    gap:12px;
    background:var(--card);
    padding:14px 16px;
    margin:0 0 12px;
    border-radius:12px;
    text-decoration:none;
    color:var(--text);
    border:1px solid #1e293b;
    transition:transform .15s ease,border .15s ease;
}

.links a:hover {
    transform:translateY(-2px);
    border-color:var(--accent);
}

.count {
    margin-left:auto;
    color:var(--muted);
    font-size:.9rem;
}

.toggle {
    position:absolute;
    top:15px;
    right:15px;
    cursor:pointer;
    font-size:1.2rem;
    user-select:none;
}

.sub {
    color:var(--muted);
    margin:0 0 18px;
}

.smallrow {
    display:flex;
    justify-content:center;
    gap:14px;
    margin-top:14px;
}

.smallrow a {
    color:var(--muted);
    text-decoration:none;
    font-size:.9rem;
}

/* Touch-friendly feedback */
.links a:active {
    transform: scale(0.98);
    border-color: var(--accent);
}

/* Keyboard accessibility */
.links a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* Prevent sticky hover on touch devices */
@media (hover: none) {
    .links a:hover {
        transform: none;
        border-color: #1e293b;
    }
}
